/* ══════════════════════════════════════
   HEADER
   ══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-header__logo svg,
.site-header__logo img {
  height: 88px;
  width: auto;
  display: block;
}

.site-header__nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.site-header__nav .pill-nav {
  flex: 0 0 auto;
  min-height: 44px;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.site-header__nav li.pill-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.site-header__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.site-header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  margin: 5px 0;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ══════════════════════════════════════
   COLOR BAR
   ══════════════════════════════════════ */
.color-bar {
  overflow: hidden;
  background: var(--color-white);
  padding: 0.5rem 0;
}

.color-bar__track {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  animation: color-bar-scroll 20s linear infinite;
}

.color-bar__pill {
  height: 28px;
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
}

@keyframes color-bar-scroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ══════════════════════════════════════
   HERO DIVIDERS
   ══════════════════════════════════════ */
.hero-divider {
  height: 1px;
  background: var(--color-black);
  width: 100%;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  background: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.hero__title {
  font-family: var(--font-offbit);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 0.92;
  color: var(--color-black);
  padding: 0 var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ══════════════════════════════════════
   WORKSHOPS
   ══════════════════════════════════════ */
.workshops {
  background: var(--color-royal-blue);
  color: var(--color-white);
  padding: var(--space-xl) 0 0;
}

.workshops__header {
  text-align: center;
  padding: 0 var(--space-md) var(--space-lg);
}

.workshops__header h2 {
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.workshops__header p {
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto var(--space-md);
  opacity: 0.85;
}


.workshops__carousel {
  position: relative;
  overflow: hidden;
}

.workshops__slides {
  display: flex;
  align-items: center;
  padding: 0;
  flex-wrap: nowrap;
  will-change: transform;
}

.workshops__product {
  --art-height: 88%;
  --art-ratio: 0.616;
  --art-x: -1.1%;
  --art-y: -0.9%;
  --product-panel-color: #ff78c1;
  position: relative;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 740px;
  isolation: isolate;
}

.workshops__product::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  height: 48%;
  aspect-ratio: 0.735;
  border-radius: 29% / 21%;
  background: var(--product-panel-color);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.workshops__product--matylda {
  --art-height: 99%;
  --art-ratio: 0.549;
  --art-x: -0.5%;
  --art-y: 4.6%;
  --product-panel-color: #d3e92a;
}

.workshops__product--phone-case {
  --art-height: 78%;
  --art-ratio: 0.707;
  --art-x: 14.3%;
  --art-y: -4.5%;
  --product-panel-color: #35109c;
}

.workshops__product--bottle {
  --art-height: 77%;
  --art-ratio: 0.812;
  --art-x: 1.6%;
  --art-y: -4.6%;
  --product-panel-color: #ff4800;
}

.workshops__product--makeup {
  --art-height: 63.3%;
  --art-ratio: 0.812;
  --art-x: -1%;
  --art-y: -6.3%;
  --product-panel-color: #ff78c1;
}

.workshops__product-link {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  height: var(--art-height);
  aspect-ratio: var(--art-ratio);
  margin: 0;
  display: block;
  transform-origin: 50% 50%;
  transform: translate(calc(-50% + var(--art-x)), calc(-50% + var(--art-y)));
  transition: transform 0.3s ease;
}

.workshops__product-link img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .workshops__product-link:hover,
  .workshops:has(.workshops__omrkni:hover) .workshops__product-link {
    animation: product-sway 1.2s ease-in-out infinite;
  }
}

.workshops__product-link:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 4px;
}

.workshops__footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
  padding-bottom: var(--space-xl);
}

.btn.workshops__omrkni {
  font-size: 1.05rem;
  padding: 0.55em 2em;
}

@media (max-width: 480px) {
  .btn.workshops__omrkni {
    font-size: 0.9rem;
    padding: 0.55em 1.2em;
  }
}

@keyframes product-sway {
  0%, 100% { transform: translate(calc(-50% + var(--art-x)), calc(-50% + var(--art-y))) rotate(-3deg); }
  50%      { transform: translate(calc(-50% + var(--art-x)), calc(-50% + var(--art-y))) rotate(3deg); }
}

/* The colored panels stay identical at every carousel breakpoint. Each image
   has its own transparent canvas, so its height/offset is normalized above. */
@media (min-width: 1025px) {
  .workshops__product {
    height: 870px;
  }
}

/* Wider monitors: products are height-constrained and fill the container, so
   shrink them ~15% by lowering the container height. */
@media (min-width: 1440px) {
  .workshops__product {
    height: 740px;
  }
}

/* ══════════════════════════════════════
   TEAMBUILDING
   ══════════════════════════════════════ */
.teambuilding {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(0.75rem, 3vw, 2rem);
  background: var(--color-orangy-red);
  color: var(--color-white);
}

.teambuilding__image {
  position: relative;
  flex: none;
  width: min(100%, var(--max-width));
  aspect-ratio: 3 / 2;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  overflow: clip;
  border-radius: var(--radius-card);
}

.teambuilding__image img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.teambuilding__content {
  width: min(100%, var(--max-width));
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.teambuilding__content h1,
.teambuilding__content h2 {
  font-weight: 500;
  font-size: var(--fs-h1);
  max-width: 1100px;
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}

.teambuilding__content p {
  font-weight: 500;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  margin-bottom: var(--space-md);
  max-width: 720px;
}

/* Buttons placed directly on the orange panel use the same white ink as the
   surrounding copy. Keep the global green/black hover state unchanged. */
.teambuilding__content .btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

@media (min-width: 768px) {
  .teambuilding__image { aspect-ratio: 16 / 9; }
}

/* ══════════════════════════════════════
   VOUCHERS
   ══════════════════════════════════════ */
.vouchers {
  background: var(--color-barbie-pink);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.vouchers__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.vouchers__text {
  min-width: 0;
  color: var(--color-white);
  padding: 0;
}

.vouchers__text h2 {
  font-weight: 500;
  font-size: clamp(1.25rem, 5vw, 2rem);
  margin-bottom: var(--space-sm);
}

.vouchers__text h2 br { display: none; }

.vouchers__text p {
  font-weight: 500;
  margin: 0 auto var(--space-md);
  max-width: 600px;
}

.vouchers__text p br { display: none; }

.vouchers__cta {
  border-color: var(--color-white);
  color: var(--color-white);
}

.vouchers__image {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* On stacked layouts the artwork keeps its capped size but bleeds through
     the inner padding so the hand finishes exactly at the right viewport edge. */
  width: min(520px, calc(100% + var(--space-md)));
  margin: 0 calc(-1 * var(--space-md)) 0 auto;
}

.vouchers__image img {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  transform-origin: 80% 50%;
  transition: transform 0.3s ease;
}

@media (min-width: 900px) {
  .vouchers__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: 0 0 0 var(--space-md);
    text-align: left;
  }

  .vouchers__text { padding: var(--space-md) 0 0 var(--space-lg); }
  .vouchers__text h2 { font-size: var(--fs-h1); }
  .vouchers__text h2 br,
  .vouchers__text p br { display: initial; }
  .vouchers__text p { margin: 0 0 var(--space-md); }

  .vouchers__image {
    justify-content: flex-end;
    width: auto;
    margin: 0 calc(-1 * max(0px, (100vw - var(--max-width)) / 2)) 0 0;
  }

  .vouchers__image img {
    width: 120%;
    max-width: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .vouchers__image:hover img,
  .vouchers:has(.vouchers__cta:hover) .vouchers__image img {
    animation: hand-wiggle 0.6s ease-in-out infinite;
  }
}

@keyframes hand-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20%      { transform: rotate(-3deg); }
  40%      { transform: rotate(3deg); }
  60%      { transform: rotate(-2deg); }
  80%      { transform: rotate(2deg); }
}

/* ══════════════════════════════════════
   STAR DECORATION BARS
   ══════════════════════════════════════ */
.star-bar {
  padding: 0.6rem 0;
  overflow: hidden;
  position: relative;
}

.star-bar--pink {
  background: var(--color-barbie-pink);
}

.star-bar--green {
  background: var(--color-electric-green);
}

.star-bar--orange {
  background: var(--color-orangy-red);
}

.star-bar__track {
  display: flex;
  width: max-content;
  animation: star-bar-scroll 30s linear infinite;
  will-change: transform;
}

.star-bar__track svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  /* Rozestup uvnitř položky (ne `gap`) — jinak posun o 50 % neodpovídá
     přesně polovině obsahu a smyčka poskočí. */
  margin-right: 1.5rem;
}

@keyframes star-bar-scroll {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .color-bar__track,
  .star-bar__track,
  .workshops__product-link:hover img,
  .vouchers__image:hover img,
  .vouchers:has(.vouchers__cta:hover) .vouchers__image img {
    animation: none !important;
  }
}

/* ══════════════════════════════════════
   MANUMI
   ══════════════════════════════════════ */
.manumi {
  background: var(--color-royal-blue);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.manumi__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.manumi__image {
  order: 2;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Mirror the voucher treatment: the artwork reaches the left viewport
     edge while its intrinsic proportions and maximum size stay unchanged. */
  width: min(520px, calc(100% + var(--space-md)));
  margin: 0 auto 0 calc(-1 * var(--space-md));
}

.manumi__image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.manumi__text {
  order: 1;
  min-width: 0;
  padding: 0;
}

.manumi__text h2 {
  font-weight: 500;
  font-size: clamp(1.25rem, 5vw, 2rem);
  margin-bottom: var(--space-sm);
}

.manumi__text h2 br { display: none; }

.manumi__text p {
  font-weight: 500;
  margin: 0 auto var(--space-md);
  max-width: 600px;
}

.manumi__text p br { display: none; }

@media (min-width: 900px) {
  .manumi__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: 0 var(--space-md) 0 0;
    text-align: left;
  }

  .manumi__image {
    order: initial;
    justify-content: flex-start;
    width: auto;
    margin: 0 0 0 calc(-1 * max(0px, (100vw - var(--max-width)) / 2));
  }

  .manumi__image img {
    width: 120%;
    max-width: none;
  }

  .manumi__text {
    order: initial;
    padding: var(--space-md) 0 0 var(--space-lg);
  }

  .manumi__text h2 { font-size: var(--fs-h1); }
  .manumi__text h2 br,
  .manumi__text p br { display: initial; }
  .manumi__text p { margin: 0 0 var(--space-md); }
}

/* ══════════════════════════════════════
   ABOUT (split layout)
   ══════════════════════════════════════ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.about-split__image {
  position: relative;
  overflow: hidden;
  background: var(--color-dark-purple);
}

.about-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__name-tag {
  position: absolute;
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-small);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  color: var(--color-white);
}

.about__name-tag--megi {
  background: var(--color-barbie-pink);
  top: 25%;
  left: 8%;
  transform: rotate(-5deg);
}

.about__name-tag--kaci {
  background: var(--color-orangy-red);
  top: 18%;
  left: 42%;
  transform: rotate(3deg);
}

.about-split__content {
  background: var(--color-dark-purple);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
}

.about-split__content h2 {
  font-weight: 500;
  font-size: var(--fs-h1);
  margin-bottom: var(--space-sm);
}

.about-split__content p {
  font-weight: 300;
  margin-bottom: var(--space-sm);
  max-width: 420px;
}

/* ══════════════════════════════════════
   CONTACT / COLLABORATION
   ══════════════════════════════════════ */
.contact {
  background: var(--color-electric-green);
  padding: var(--space-xl) 0;
  position: relative;
  --contact-photo-width: min(460px, 58vw);
}

.contact__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.contact__heading {
  color: var(--color-royal-blue);
  font-weight: 500;
  font-size: var(--fs-h1);
  margin-bottom: var(--space-xs);
}

.contact__subheading {
  color: var(--color-royal-blue);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.contact__photo {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  /* Reserve no bottom space — card pulls up via negative margin-top below */
  margin-bottom: 0;
  pointer-events: none;
  width: var(--contact-photo-width);
  aspect-ratio: 1200 / 777;
  margin-inline: auto;
}

.contact__photo img {
  position: absolute;
  inset: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
  pointer-events: auto;
}

.contact__photo-default {
  /* Keep the approved 22px overlap at the 460px desktop size and scale it
     with the cut-out on narrower viewports. */
  transform: translateY(calc(var(--contact-photo-width) * 0.047826));
}

.contact__photo-hover {
  position: absolute;
  inset: 0;
  /* This source has a different transparent crop. The correction plus the
     approved 23px desktop overlap both scale with the rendered image. */
  transform: translateY(calc(var(--contact-photo-width) * 0.02835));
  width: 100%;
  max-width: none;
  opacity: 0;
  pointer-events: none;
}

/* The source cut-out has 208 transparent pixels below the hands in a 1200px-wide image.
   A proportional overlap keeps the fingers on the card edge at every viewport width. */
.contact__photo + .contact__card {
  margin-top: calc(var(--contact-photo-width) * -0.173333);
}

.contact:has(.contact__submit:hover) .contact__photo-default {
  opacity: 0;
}

.contact:has(.contact__submit:hover) .contact__photo-hover {
  opacity: 1;
}

.contact__card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

.contact__card form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-md);
}

/* Zpráva (4. child — hidden input je 1.) přes obě sloupce */
/* Hidden WordPress security fields must not affect the form's column layout. */
.contact__card form .form-group:has(textarea) { grid-column: 1 / -1; }

/* tlačítko přes obě sloupce, vycentrované */
.contact__card form .contact__submit { grid-column: 1 / -1; justify-self: center; }

.contact__card .form-textarea.form-input--filled { min-height: 140px; }

.contact__submit {
  display: block;
  margin: var(--space-md) auto 0;
  padding-left: 3em;
  padding-right: 3em;
}

.contact__card h3,
.contact__card-title {
  font-weight: 400;
  font-size: var(--fs-h3);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
  color: var(--color-royal-blue);
}

/* ══════════════════════════════════════
   INSTAGRAM
   ══════════════════════════════════════ */
.instagram {
  background: var(--color-barbie-pink);
  padding: var(--space-xl) 0;
}

.instagram__title {
  text-align: center;
  color: var(--color-black);
  font-weight: 500;
  font-size: var(--fs-h2);
  margin-bottom: var(--space-lg);
}

.instagram__carousel {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.instagram__grid {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.instagram__grid .instagram__item {
  flex: 0 0 25%;
}

.instagram__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
}

.instagram__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.instagram__item:hover img {
  transform: scale(1.05);
}

.instagram__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-barbie-pink);
  background: transparent;
  color: var(--color-barbie-pink);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast);
  z-index: 10;
}

.instagram__arrow:hover {
  background: var(--color-barbie-pink);
  color: var(--color-white);
}

.instagram__arrow--prev { left: 0; }
.instagram__arrow--next { right: 0; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  background: var(--color-dark-purple);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
  font-family: var(--font-obviously);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__col h4,
.site-footer__heading,
.site-footer__col .widget-title {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.site-footer__col a {
  display: block;
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--color-white);
  margin-bottom: 0.4em;
  transition: opacity var(--transition-fast);
}

.site-footer__col a:hover {
  opacity: 0.7;
}

.site-footer__col p {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--color-white);
}

.site-footer__social {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--color-white);
  border: none;
  color: var(--color-dark-purple);
  transition: opacity var(--transition-fast);
}

.site-footer__social a:hover {
  opacity: 0.8;
}

.site-footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__lang {
  display: flex;
  gap: var(--space-xs);
  font-size: var(--fs-small);
}

.site-footer__lang a {
  font-family: var(--font-obviously);
  color: var(--color-white);
  font-weight: 400;
  transition: opacity var(--transition-fast);
}

.site-footer__lang a:not(.active) {
  opacity: 0.6;
}

.site-footer__lang a.active,
.site-footer__lang a:hover {
  opacity: 1;
}

.site-footer__copyright {
  font-family: var(--font-obviously);
  font-size: var(--fs-small);
  color: var(--color-white);
  font-weight: 400;
}

@media (pointer: coarse) {
  .pill-nav,
  .site-footer__col > a,
  .site-footer__lang a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
/* Compact desktop navigation before it switches to the mobile menu. */
@media (min-width: 901px) and (max-width: 1180px) {
  .site-header__inner {
    padding-inline: 0.75rem;
  }

  .site-header__logo svg,
  .site-header__logo img {
    height: clamp(62px, 7vw, 74px);
  }

  .site-header__nav {
    gap: clamp(0.2rem, 0.5vw, 0.4rem);
  }

  .site-header__nav .pill-nav {
    padding-inline: clamp(0.7em, 1.15vw, 1em);
    font-size: clamp(0.7rem, 1.05vw, 0.8rem);
  }
}

@media (max-width: 1024px) {
  /* 2-up: products are height-constrained here, so the height sets their size. */
  .workshops__product {
    height: 620px;
  }
}

@media (max-width: 900px) {
  .site-header__nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    z-index: 99;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
  }

  .about-split__image {
    min-height: 220px;
  }

  .about-split__content {
    padding: var(--space-lg) var(--space-md);
  }

  .contact__heading br { display: none; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__col--social {
    order: -1;
  }

  .instagram__carousel {
    padding: 0 var(--space-md);
  }

  .instagram__grid .instagram__item {
    flex: 0 0 50%;
  }

  .site-footer__social {
    justify-content: center;
  }

  .instagram__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* still 2-up down to 640px */
  .workshops__product {
    height: 540px;
  }
}

@media (max-width: 640px) {
  /* 1-up on phones: products are height-constrained, so the height sets size. */
  .workshops__product {
    height: 390px;
    padding: 0 var(--space-sm);
  }

  .workshops__header {
    padding: 0 var(--space-md) var(--space-md);
  }

  .workshops__header h2 {
    font-size: clamp(1.1rem, 4vw, 1.75rem);
  }

  .workshops__header p {
    font-size: 0.95rem;
  }

  .contact__inner { padding: 0 var(--space-sm); }
  .contact__card {
    padding: clamp(0.875rem, 3vw, 1.25rem);
  }
  .contact__card form { grid-template-columns: 1fr; }
  .contact__heading {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }
  .contact__subheading {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
  }
  .contact__card h3,
  .contact__card-title {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
  }
  .contact__submit {
    width: 100%;
    padding-left: 1.5em;
    padding-right: 1.5em;
  }
}

@media (max-width: 480px) {
  .workshops__product { height: 390px; }
}

/* On wider layouts, budget artwork and whitespace against window height.
   Sections retain automatic height so enlarged text never gets clipped. */
@media (min-width: 769px) {
  .workshops {
    padding-top: clamp(1.5rem, 3svh, 2.5rem);
  }

  .workshops__header {
    padding-bottom: clamp(0.75rem, 2svh, 1.5rem);
  }

  .workshops__header p {
    margin-bottom: 1rem;
  }

  .workshops__product {
    height: clamp(280px, calc(100svh - 25rem), 580px);
  }

  .workshops__footer {
    margin-top: 0.75rem;
    padding-bottom: clamp(1.25rem, 3svh, 2.5rem);
  }

  .teambuilding {
    padding-block: clamp(1.5rem, 3svh, 2.5rem);
  }

  .teambuilding__content h1,
  .teambuilding__content h2 {
    font-size: clamp(1.75rem, 1rem + 2.5vw, 3rem);
    margin-bottom: 0.75rem;
  }

  .teambuilding__content p {
    margin-bottom: 1rem;
  }

  .teambuilding__image {
    /* Keep the existing 16:9 crop; reduce width with height rather than
       cutting more people out of a progressively wider image. */
    width: min(100%, var(--max-width), max(420px, calc((100svh - 24rem) * 16 / 9)));
    margin-top: 1.25rem;
  }

}

/* Homepage feature panels share one desktop rhythm. Use a minimum rather
   than clipping content when text grows or the browser is zoomed in. */
@media (min-width: 900px) {
  body[data-page="home"] {
    --home-panel-height: clamp(620px, calc(100svh - var(--header-height) - 1rem), 1040px);
  }

  body[data-page="home"] :is(.workshops, .teambuilding, .vouchers, .manumi, .about-split, .contact) {
    min-height: var(--home-panel-height);
  }

  body[data-page="home"] :is(.workshops, .teambuilding) {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body[data-page="home"] .workshops__product {
    height: calc(clamp(260px, calc(var(--home-panel-height) - 20rem), 580px) * 1.15);
  }

  body[data-page="home"] .teambuilding__image {
    width: min(100%, var(--max-width), max(420px, calc((var(--home-panel-height) - 20rem) * 16 / 9)));
  }

  body[data-page="home"] :is(.vouchers, .manumi) {
    display: flex;
    align-items: center;
    padding-block: clamp(1.5rem, 3svh, 2.5rem);
  }

  body[data-page="home"] :is(.vouchers__inner, .manumi__inner) {
    width: 100%;
  }

  body[data-page="home"] :is(.vouchers__image img, .manumi__image img) {
    /* Existing flex alignment keeps the artwork at the viewport edges. */
    width: min(120%, calc((var(--home-panel-height) - 6rem) * 1700 / 1463));
  }

  body[data-page="home"] .about-split {
    grid-template-columns: min(50%, calc(var(--home-panel-height) * 1147 / 1500)) 1fr;
  }

  body[data-page="home"] .about-split__image img {
    position: absolute;
    inset: 0;
    object-fit: contain;
  }

  body[data-page="home"] .about-split__content {
    padding-block: clamp(1.5rem, 3svh, 2.5rem);
  }

  body[data-page="home"] .contact {
    display: flex;
    align-items: center;
    padding-block: 1.25rem;
    --contact-photo-width: clamp(220px, calc(var(--home-panel-height) * 0.34), 340px);
  }

  body[data-page="home"] .contact__inner {
    width: 100%;
  }

  body[data-page="home"] .contact__heading {
    font-size: var(--fs-h1);
  }

  body[data-page="home"] .contact__subheading {
    margin-bottom: 0.5rem;
  }

  body[data-page="home"] .contact__photo {
    width: var(--contact-photo-width);
  }

  body[data-page="home"] .contact__card {
    padding: 1.5rem 2rem 1.25rem;
  }

  body[data-page="home"] .contact__card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  body[data-page="home"] .contact__card .form-group {
    margin-bottom: 0.75rem;
  }

  body[data-page="home"] .contact__card .form-textarea.form-input--filled {
    height: 6rem;
    min-height: 6rem;
  }

  body[data-page="home"] .contact__submit {
    margin-top: 0.25rem;
  }
}

.contact__success {
  font-family: var(--font-obviously);
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--color-royal-blue);
  text-align: center;
  padding: var(--space-lg) 0;
}

.contact__error {
  font-family: var(--font-obviously);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--color-orangy-red);
  margin-top: var(--space-sm);
}
