/* =============================================================
   Inspire Hospitality — Page components (Home / About / Contact)
   Extends "Nightfall Dawn" (styles.css). Same tokens, same language:
   ink-dark stages, champagne-cream counterweights, the signature
   gradient as light / accent. Loaded AFTER styles.css.
   ============================================================= */

/* ---- Shared: image frame with gradient hairline edge ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg,
    rgba(209, 169, 242, 0.55) 0%,
    rgba(229, 186, 196, 0.40) 40%,
    rgba(242, 211, 157, 0.45) 70%,
    rgba(251, 232, 115, 0.28) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

/* =============================================================
   SUBHERO — interior-page hero with a real photograph
   ============================================================= */
.subhero {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-deepest);
  color: var(--text-primary);
  padding: 200px 0 clamp(56px, 7vw, 96px);
  isolation: isolate;
}
.subhero__media { position: absolute; inset: 0; z-index: 0; }
.subhero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.62);
  transform: scale(1.06);
  animation: subheroDrift 26s var(--ease-in-out) infinite alternate;
}
@keyframes subheroDrift {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1%); }
}
.subhero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26,14,32,0.55) 0%, rgba(26,14,32,0.10) 32%, rgba(26,14,32,0.20) 60%, rgba(26,14,32,0.82) 100%),
    linear-gradient(95deg, rgba(26,14,32,0.70) 0%, rgba(26,14,32,0.20) 45%, rgba(26,14,32,0) 75%),
    radial-gradient(ellipse 60% 55% at 88% 18%, rgba(209,169,242,0.35) 0%, rgba(209,169,242,0) 60%);
}
.subhero__grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.subhero__content { position: relative; z-index: 3; max-width: 860px; }
.subhero__eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--text-secondary);
  margin: 0 0 28px;
}
.subhero__eyebrow::before {
  content: ""; width: 48px; height: 1px;
  background: var(--gradient-signature);
  box-shadow: 0 0 12px rgba(209,169,242,0.6);
}
.subhero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.subhero__title em {
  font-style: italic;
  background: var(--gradient-signature);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 0 28px rgba(229,186,196,0.35));
}
/* "Inspire hospitality" rests as the normal off-white, with a purple→yellow
   gradient band that sweeps across once in a while. */
.subhero__title-flash {
  background:
    linear-gradient(110deg,
      transparent 38%,
      #6E4D85 44%,
      #C9A5E8 48%,
      #F2D39D 52%,
      #FBE873 56%,
      transparent 62%),
    linear-gradient(0deg, var(--text-primary), var(--text-primary));
  background-size: 220% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: titleFlash 6s linear 1.5s infinite;
}
@keyframes titleFlash {
  0%   { background-position: 200% 0, 0 0; }
  45%  { background-position: -120% 0, 0 0; }
  100% { background-position: -120% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .subhero__title-flash { animation: none; }
}

.subhero__lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0;
}

/* ---- Our Work subhero: centred layout with a pulled-out accent word ---- */
/* Vertically centred in the banner rather than sitting on its bottom edge.
   Padding stays symmetrical (and clears the fixed nav) so the block reads
   as centred in the full frame. */
.subhero--middle {
  align-items: center;
  padding: clamp(132px, 14vw, 176px) 0;
}
.subhero--center .subhero__content { margin-inline: auto; text-align: center; }
.subhero--center .subhero__eyebrow { justify-content: center; }
.subhero--center .subhero__lede { margin-inline: auto; }
.subhero--center .subhero__actions { justify-content: center; }
.subhero__title-accent {
  display: inline-block;
  font-size: 1.32em;
  font-weight: 500;
  filter: drop-shadow(0 0 32px rgba(229, 186, 196, 0.55)) drop-shadow(0 0 18px rgba(242, 211, 157, 0.4));
}
.subhero__hairline {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gradient-signature); opacity: 0.9; z-index: 4;
}

/* ---- Small banner variant: a compact strip instead of a near-full page ---- */
.subhero--small {
  min-height: 0;
  padding: clamp(120px, 18vh, 168px) 0 clamp(40px, 5vw, 56px);
}
.subhero--small .subhero__title { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 0; }

/* ---- Photographic lead hero (Home) ---- */
.subhero--lead {
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding-top: clamp(150px, 18vh, 220px);
  padding-bottom: clamp(90px, 13vh, 150px);
}
.subhero--lead .subhero__title { font-size: clamp(48px, 7.4vw, 108px); }
.subhero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 48% 58% at 86% 22%, rgba(209,169,242,0.34) 0%, transparent 60%),
    radial-gradient(ellipse 42% 52% at 10% 78%, rgba(122,84,145,0.42) 0%, transparent 65%);
}
.subhero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(34px, 4vw, 46px); }
.subhero--lead .subhero__lede { margin-bottom: 0; }

/* Home hero: a polished metallic-purple field instead of a photograph,
   with a slight warm-yellow glow on the right. */
.subhero--lead .subhero__media {
  background:
    /* slight bit of yellow on the right */
    radial-gradient(ellipse 50% 62% at 93% 30%, rgba(242, 211, 157, 0.34) 0%, rgba(251, 232, 115, 0.13) 36%, transparent 66%),
    /* lavender metallic lift, upper right */
    radial-gradient(ellipse 58% 56% at 82% 16%, rgba(209, 169, 242, 0.45) 0%, transparent 56%),
    /* metallic lavender lift, left-centre */
    radial-gradient(ellipse 46% 56% at 6% 44%, rgba(201, 165, 232, 0.30) 0%, transparent 60%),
    /* plum depth, lower left */
    radial-gradient(ellipse 62% 58% at 8% 90%, rgba(91, 58, 107, 0.55) 0%, transparent 60%),
    /* polished metallic purple — sharp specular banding reads as reflective metal */
    linear-gradient(118deg,
      #140A1A 0%,
      #3A2349 6%,
      #7C5A92 11%,
      #2C1A38 18%,
      #1E1228 24%,
      #4A2E59 32%,
      #835D99 41%,
      #3A2349 48%,
      #6E4D85 56%,
      #C2A0E0 63%,
      #5B3A6B 69%,
      #2C1A38 82%,
      #160B1C 100%);
}
/* A warm yellow flash that sweeps across the hero background now and then */
.subhero--lead .subhero__flash {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(242, 211, 157, 0.20) 47%,
    rgba(251, 232, 115, 0.55) 50%,
    rgba(242, 211, 157, 0.20) 53%,
    transparent 60%
  );
  background-size: 250% 100%;
  background-position: 200% 0;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  animation: heroYellowFlash 9s linear 2s infinite;
}
@keyframes heroYellowFlash {
  0%        { background-position: 200% 0; opacity: 0; }
  4%        { opacity: 1; }
  34%       { background-position: -120% 0; opacity: 1; }
  40%, 100% { background-position: -120% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .subhero--lead .subhero__flash { animation: none; opacity: 0; }
}

/* Brushed-metal striations along the polish direction */
.subhero--lead .subhero__media::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    118deg,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(255, 255, 255, 0) 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.6;
}
/* A crisp specular glint, like light catching polished metal */
.subhero--lead .subhero__media::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    118deg,
    transparent 6%,
    rgba(255, 255, 255, 0.05) 10%,
    rgba(209, 169, 242, 0.16) 12%,
    rgba(255, 255, 255, 0.05) 14%,
    transparent 19%,
    transparent 53%,
    rgba(255, 255, 255, 0.06) 60%,
    rgba(255, 249, 197, 0.18) 63%,
    rgba(255, 255, 255, 0.10) 66%,
    transparent 71%
  );
  mix-blend-mode: screen;
}

/* =============================================================
   GENERIC dark / cream section wrappers
   ============================================================= */
.section { position: relative; overflow: hidden; isolation: isolate; }
.section--dark  { background: var(--bg-deep);  color: var(--text-primary); padding: clamp(110px,14vw,180px) 0; }
.section--raised{ background: var(--bg-raised); color: var(--text-primary); padding: clamp(110px,14vw,180px) 0; }
.section--cream {
  color: var(--ink);
  padding: clamp(120px,15vw,200px) 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 22%, rgba(209,169,242,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 78%, rgba(242,211,157,0.15) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-blush) 50%, var(--cream) 100%);
}
.section--edge::before,
.section--edge::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--gradient-signature); opacity: 0.6; z-index: 3;
  box-shadow: 0 0 20px rgba(229,186,196,0.45);
}
.section--edge::before { top: 0; }
.section--edge::after  { bottom: 0; }
.section > .container { position: relative; z-index: 2; }
.section--cream .section-mark { color: var(--soft-charcoal); }
.section--cream .display { color: var(--ink); }
.section--dark .display em,
.section--raised .display em {
  filter: drop-shadow(0 0 18px rgba(229,186,196,0.35));
}
.section--cream .display em { --text-grad: var(--gradient-on-light); }
.section--cream .section-head__lede { color: var(--soft-charcoal); }
/* Body copy defaults to light (for dark surfaces); restore dark ink on cream. */
.section--cream .lede { color: var(--soft-charcoal); }
.section--cream .team-card__name { color: var(--ink); }
.section--cream .team-card__role { color: var(--plum); }

/* =============================================================
   FEATURED WORK — project image cards (Home)
   ============================================================= */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 26px);
}
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  background: var(--bg-mid);
}
.work-card--wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.work-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.78);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out), filter 0.8s var(--ease-out);
  z-index: 0;
}
.work-card:hover img { transform: scale(1.09); filter: saturate(1) brightness(0.86); }
.work-card__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,14,32,0) 35%, rgba(26,14,32,0.30) 62%, rgba(26,14,32,0.85) 100%);
}
.work-card::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(209,169,242,0.0) 40%, rgba(229,186,196,0.0) 70%, rgba(251,232,115,0.0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 3;
  transition: background 0.6s var(--ease-out);
}
.work-card:hover::after {
  background: linear-gradient(135deg, rgba(209,169,242,0.6) 0%, rgba(229,186,196,0.45) 45%, rgba(251,232,115,0.4) 100%);
}
.work-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(22px, 2.4vw, 34px);
}
.work-card__tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--peach);
  margin: 0 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.work-card__tag::before {
  content: ""; width: 18px; height: 1px; background: var(--gradient-signature);
}
.work-card__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}
.work-card__meta {
  font-size: 13px; color: var(--text-muted); margin: 8px 0 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.work-card:hover .work-card__meta { opacity: 1; transform: none; }

.work-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---- Quiet text link with arrow (on light surfaces) ---- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--plum);
  transition: color 0.3s var(--ease-out);
}
.link-arrow .btn__arrow { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { color: var(--plum-deep); }
.link-arrow:hover .btn__arrow { transform: translateX(5px); }
.section--dark .link-arrow, .section--raised .link-arrow { color: var(--peach); }

/* =============================================================
   PARTNERS — dual-row infinite marquee (opposite directions)
   ============================================================= */
.marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.5vw, 6px);
  /* soft fade at both edges */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__row {
  display: flex;
  /* clip the scrolling track horizontally; the vertical padding gives the
     hover "pop" (lift + scale) room so the chip is never clipped at the edge */
  overflow: hidden;
  padding-block: clamp(16px, 2vw, 24px);
}
.marquee__track {
  display: flex;
  width: max-content;
  flex: 0 0 auto;
  animation: marqueeLeft 52s linear infinite;
  will-change: transform;
}
.marquee__track--reverse { animation: marqueeRight 64s linear infinite; }
@keyframes marqueeLeft  { from { transform: translateX(0); }      to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); }   to { transform: translateX(0); } }

/* hovering the banner pauses BOTH rows */
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  position: relative;
  flex: 0 0 auto;
  /* uniform right margin (not flex gap) keeps the duplicated set seamless at -50% */
  margin-right: clamp(14px, 1.6vw, 22px);
  width: clamp(150px, 15vw, 196px);
  height: clamp(96px, 9vw, 118px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-warm);
  box-shadow: 0 10px 30px -24px rgba(31, 27, 46, 0.4);
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out);
}
.marquee__item img {
  max-width: 100%; max-height: 100%; width: auto; object-fit: contain;
  /* full colour at rest */
}
.marquee__item:hover {
  transform: translateY(-10px) scale(1.12);
  z-index: 3;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 0 0 1px rgba(229, 186, 196, 0.55),
    0 28px 56px -22px rgba(91, 58, 107, 0.45),
    0 14px 40px -18px rgba(251, 232, 115, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  /* drop the duplicate set so logos don't appear twice when static */
  .marquee__item[aria-hidden="true"] { display: none; }
  .marquee__item { margin: clamp(7px, 0.8vw, 11px); }
}

/* ---- Photographic background layer for dark sections (stats / CTA) ---- */
.photo-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.photo-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) brightness(0.42);
  opacity: 0.5;
  transform: scale(1.04);
}
.photo-bg__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,14,32,0.82) 0%, rgba(26,14,32,0.7) 45%, rgba(26,14,32,0.9) 100%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(26,14,32,0.2) 0%, rgba(26,14,32,0.75) 100%);
}
/* lift the stats/cta content above the photo layer */
.track.track--photo > .container { position: relative; z-index: 2; }
.cta.cta--photo .cta__inner { position: relative; z-index: 3; }
.cta.cta--photo .cta__bloom { z-index: 1; }

/* ---- Editorial pull-quote band (full-bleed photo) ---- */
.quote-band {
  position: relative;
  min-height: clamp(360px, 52vh, 560px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--bg-deepest);
  isolation: isolate;
}
.quote-band__media { position: absolute; inset: 0; z-index: 0; }
.quote-band__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.9) brightness(0.55);
  transform: scale(1.05);
  animation: subheroDrift 28s var(--ease-in-out) infinite alternate;
}
.quote-band__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(95deg, rgba(26,14,32,0.82) 0%, rgba(26,14,32,0.35) 55%, rgba(26,14,32,0.1) 100%);
}
.quote-band__inner { position: relative; z-index: 2; max-width: 880px; }
.quote-band__q {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}
.quote-band__q em {
  font-style: italic;
  background:
    linear-gradient(110deg, transparent 36%, rgba(251, 232, 115, 0.92) 50%, transparent 64%),
    var(--gradient-signature);
  background-size: 200% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: textFlash 8s var(--ease-in-out) 3.4s infinite;
}
.quote-band__cite {
  margin: 26px 0 0; display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-secondary);
}
.quote-band__cite::before { content: ""; width: 34px; height: 1px; background: var(--gradient-signature); }
.quote-band::before, .quote-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; z-index: 3;
  background: var(--gradient-signature); opacity: 0.6; box-shadow: 0 0 20px rgba(229,186,196,0.45);
}
.quote-band::before { top: 0; } .quote-band::after { bottom: 0; }

/* =============================================================
   STORY — alternating image + text split (About)
   ============================================================= */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.story-grid + .story-grid { margin-top: clamp(80px, 10vw, 150px); }
.story-grid--reverse .story__media { order: 2; }
.story__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.7);
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
/* Portrait photographs: taller frame so heads are never cropped */
.story__media--portrait { aspect-ratio: 3 / 4; max-width: 460px; justify-self: center; }
.story__media--portrait img { object-position: 50% 12%; }
.story__eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px;
}
.story__eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gradient-signature); }
.section--cream .story__eyebrow { color: var(--soft-charcoal); }
.story__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
}
.story__title em {
  font-style: italic;
  background:
    linear-gradient(110deg, transparent 36%, rgba(251, 232, 115, 0.92) 50%, transparent 64%),
    var(--gradient-signature);
  background-size: 200% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: textFlash 8.5s var(--ease-in-out) 2.5s infinite;
}
.story__body p { margin: 0 0 18px; }
.story__body p:last-child { margin-bottom: 0; }

/* =============================================================
   TIMELINE — milestones (About)
   ============================================================= */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(110px, 12vw, 160px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3.2vw, 44px) 0;
  border-top: 1px solid var(--hairline);
}
.timeline li:last-child { border-bottom: 1px solid var(--hairline); }
.timeline__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  background: var(--gradient-signature);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.timeline__title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.timeline__copy { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin: 0; max-width: 56ch; }

/* =============================================================
   TEAM — leadership portraits (About)
   ============================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 30px);
}
.team-card { position: relative; }
.team-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-mid);
  margin-bottom: 20px;
}
.team-card__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.96);
  transform: scale(1.01);
  transition: transform 1s var(--ease-out);
}
.team-card:hover .team-card__photo img { transform: scale(1.06); }
.team-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26,14,32,0.45) 100%);
  pointer-events: none;
}
.team-card__name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.team-card__role {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--peach); margin: 0;
}
/* placeholder portrait card for unnamed team slots */
.team-card--placeholder .team-card__photo {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(209,169,242,0.18), transparent 60%),
    var(--bg-mid);
}
.team-card--placeholder .team-card__photo span {
  font-family: var(--font-serif); font-style: italic; font-size: 40px;
  background: var(--gradient-signature);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* =============================================================
   GALLERY — event/forum montage (About)
   ============================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 16vw, 220px);
  gap: clamp(12px, 1.4vw, 20px);
}
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-mid); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.86); transition: transform 1s var(--ease-out), filter 0.6s var(--ease-out); }
.gallery-grid figure:hover img { transform: scale(1.06); filter: saturate(1) brightness(0.95); }
.g-span-2c { grid-column: span 2; }
.g-span-2r { grid-row: span 2; }

/* =============================================================
   CONTACT — form + details (Contact)
   ============================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.contact-form { display: grid; gap: clamp(18px, 2vw, 26px); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.field label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(209,169,242,0.6);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 3px rgba(209,169,242,0.12), 0 0 24px -10px rgba(209,169,242,0.5);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.contact-form__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.form-note { font-size: 12.5px; color: var(--text-faint); font-style: italic; font-family: var(--font-serif); }
.form-status { font-size: 13px; color: var(--peach); min-height: 1.2em; }

.contact-aside { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.contact-block { }
.contact-block__label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 12px; padding-bottom: 12px; position: relative;
}
.contact-block__label::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 1px;
  background: var(--gradient-signature);
}
.contact-block a, .contact-block p {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s var(--ease-out);
}
.contact-block a:hover { color: var(--lavender); }
.contact-block .contact-block__sub {
  font-family: var(--font-sans); font-size: 14px; color: var(--text-secondary); font-weight: 400;
  margin-top: 6px;
}

/* =============================================================
   CONTACT — single-column inquiry layout
   ============================================================= */
.contact-single { max-width: 860px; }

/* Optional consultation — a contained panel inside the form */
.booking-panel {
  margin: 0; min-inline-size: 0;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.booking-panel__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
}
.booking-panel__tag {
  flex: 0 0 auto; align-self: center;
  font-family: var(--font-sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--peach);
  border: 1px solid rgba(242, 211, 157, 0.42); border-radius: 999px;
  padding: 6px 12px;
}

/* Two-pane scheduler: calendar | times (times scroll internally) */
.booking-widget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(20px, 2.4vw, 26px);
  padding-top: clamp(20px, 2.4vw, 26px);
  border-top: 1px solid var(--hairline);
  animation: bookingReveal 0.45s var(--ease-out) both;
}
.booking-widget[hidden] { display: none; }
.booking-cal { min-width: 0; }
.booking-times { display: flex; flex-direction: column; min-width: 0; }

/* =============================================================
   FAQ — accordion (native <details>)
   ============================================================= */
.faq {
  max-width: 760px; margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(20px, 2.4vw, 28px) 2px;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(18px, 1.9vw, 24px); line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.3s var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--lavender); }
.faq__item summary:focus-visible { outline: 2px solid var(--lavender); outline-offset: 4px; }
.faq__icon { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq__icon::before,
.faq__icon::after {
  content: ""; position: absolute; background: var(--peach); border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a {
  padding: 0 2px clamp(22px, 2.6vw, 30px);
  font-family: var(--font-sans); font-weight: 300;
  font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.75;
  color: var(--text-secondary); max-width: 64ch;
  animation: faqReveal 0.4s var(--ease-out) both;
}
.faq__a p { margin: 0 0 1em; }
.faq__a p:last-child { margin-bottom: 0; }
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   BOOKING — inquiry form + optional consultation calendar
   ============================================================= */
.booking__intro {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 18px 0 0;
  line-height: 1.7;
}
.booking__label {
  display: block;
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 6px;
}

/* Optional booking toggle — a clean clickable row inside the card */
.booking__optin {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}
.booking__optin input { position: absolute; opacity: 0; width: 0; height: 0; }
.booking__optin:hover .booking__optin-box { border-color: rgba(209,169,242,0.55); }
.booking__optin-box {
  flex: 0 0 auto;
  width: 20px; height: 20px; margin-top: 2px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  position: relative;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.booking__optin input:checked + .booking__optin-box {
  border-color: rgba(209,169,242,0.9);
  background: rgba(209,169,242,0.18);
}
.booking__optin input:checked + .booking__optin-box::after {
  content: "";
  position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--lavender);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.booking__optin input:focus-visible + .booking__optin-box {
  box-shadow: 0 0 0 3px rgba(209,169,242,0.25);
}
.booking__optin-text { display: flex; flex-direction: column; gap: 3px; }
.booking__optin-text strong {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; color: var(--text-primary);
}
.booking__optin-text em {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--text-muted);
}

@keyframes bookingReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.booking__tz {
  font-family: var(--font-sans);
  font-size: 12.5px; color: var(--text-muted);
  margin: 0 0 14px; letter-spacing: 0.02em;
}

/* Calendar — fills the card (no nested border box) */
.booking__calendar { width: 100%; }
.booking__cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.booking__cal-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.booking__cal-nav {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.booking__cal-nav:hover:not(:disabled) { border-color: rgba(209,169,242,0.6); color: var(--text-primary); }
.booking__cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.booking__cal-dow,
.booking__cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.booking__cal-dow { margin-bottom: 6px; }
.booking__cal-dow span {
  text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint);
  padding: 4px 0;
}
.booking__cal-blank { aspect-ratio: 1 / 1; }
.booking__cal-day {
  aspect-ratio: 1 / 1;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.booking__cal-day:hover:not(:disabled) {
  border-color: rgba(209,169,242,0.6);
  background: rgba(255,255,255,0.07);
}
.booking__cal-day:disabled {
  color: var(--text-faint);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.4;
}
.booking__cal-day--today { border-color: var(--hairline); }
.booking__cal-day[aria-selected="true"] {
  background: rgba(209,169,242,0.18);
  border-color: rgba(209,169,242,0.95);
  color: var(--text-primary);
  box-shadow: 0 0 22px -10px rgba(209,169,242,0.7);
}

/* Times pane — heading + self-scrolling slot list */
.booking__showing {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-primary);
  margin: 0 0 4px;
}
.booking__showing strong { font-weight: 500; }
.booking__slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  align-content: start;
  max-height: 268px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.booking__slots::-webkit-scrollbar { width: 5px; }
.booking__slots::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; }
.booking__slots-empty {
  grid-column: 1 / -1;
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; color: var(--text-muted); margin: 2px 0;
}
.booking__slot {
  font-family: var(--font-sans);
  font-size: 14.5px; font-weight: 500;
  color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 13px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}
.booking__slot:hover:not(:disabled) {
  border-color: rgba(209,169,242,0.7);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}
.booking__slot[aria-pressed="true"] {
  border-color: rgba(209,169,242,0.95);
  background: rgba(209,169,242,0.16);
  color: var(--text-primary);
  box-shadow: 0 0 22px -10px rgba(209,169,242,0.7);
}
/* Greyed-out: already booked/requested */
.booking__slot:disabled,
.booking__slot[aria-disabled="true"] {
  color: var(--text-faint);
  background: rgba(255,255,255,0.015);
  border-color: var(--hairline-soft);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(242,235,224,0.25);
  opacity: 0.55;
}
.booking__slot:disabled:hover,
.booking__slot[aria-disabled="true"]:hover { transform: none; }

.booking__selected {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-secondary);
  margin: 14px 0 0;
}
.booking__selected:empty { display: none; }
.booking__selected strong { color: var(--lavender); font-weight: 500; }

/* Stack the scheduler panes on narrower screens */
@media (max-width: 680px) {
  .booking-widget { grid-template-columns: 1fr; gap: 22px; }
  .booking-panel__head { flex-direction: column; gap: 14px; }
  .booking-panel__tag { align-self: flex-start; }
  .booking__slots { max-height: 220px; }
}
@media (max-width: 640px) {
  .booking__slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

/* =============================================================
   PORTFOLIO — filterable gallery + lightbox
   ============================================================= */
.folio-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 0 clamp(26px, 3vw, 40px);
}
.folio-head .section-head { margin: 0; }
.folio-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.folio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 clamp(40px, 5vw, 64px);
}
.folio-filter__btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
              background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.folio-filter__btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.4);
}
.folio-filter__btn.is-active {
  color: var(--bg-deepest);
  background: var(--gradient-signature);
  background-size: 180% 100%;
  border-color: transparent;
  box-shadow: 0 8px 24px -12px rgba(209, 169, 242, 0.5);
}
.folio-filter__btn:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }

.folio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.5vw, 22px);
}
/* One category shows at a time; spans compose each category's own rows.
   Feature rows stagger: the shorter neighbour top-aligns beside the tall card. */
.folio-item { grid-column: span 2; height: clamp(280px, 26vw, 360px); }
.folio-item--half { grid-column: span 3; }
.folio-item--feature { grid-column: span 4; height: clamp(360px, 35vw, 480px); }
.folio-item--feature .folio-item__title { font-size: clamp(22px, 2.2vw, 34px); }
.folio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-mid);
  cursor: pointer;
  isolation: isolate;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
}
.folio-item.is-hidden { display: none; }
.folio-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.82);
  transform: scale(1.02);
  transition: transform 1.1s var(--ease-out), filter 0.7s var(--ease-out);
  z-index: 0;
}
.folio-item:hover img,
.folio-item:focus-visible img { transform: scale(1.09); filter: saturate(1) brightness(0.9); }
.folio-item__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(26,14,32,0) 40%, rgba(26,14,32,0.35) 65%, rgba(26,14,32,0.85) 100%);
}
/* Hover / focus: the whole image falls under a dark tint so the description reads */
.folio-item__scrim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,14,32,0.42) 0%, rgba(26,14,32,0.6) 55%, rgba(26,14,32,0.94) 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.folio-item:hover .folio-item__scrim::after,
.folio-item:focus-visible .folio-item__scrim::after { opacity: 1; }
.folio-item::after {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(209,169,242,0) 40%, rgba(251,232,115,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 3; transition: background 0.6s var(--ease-out);
}
.folio-item:hover::after,
.folio-item:focus-visible::after {
  background: linear-gradient(135deg, rgba(209,169,242,0.6) 0%, rgba(229,186,196,0.45) 45%, rgba(251,232,115,0.4) 100%);
}
.folio-item__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(18px, 2vw, 26px);
}
/* Service tags as individual "sticker" chips instead of one long comma-
   separated line — easier to scan, and each pill stays legible over any photo */
.folio-item__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 10px; padding: 0; list-style: none;
}
.folio-item__tags li {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--peach);
  background: rgba(26, 14, 32, 0.58);
  border: 1px solid rgba(242, 211, 157, 0.38);
  border-radius: 999px;
  padding: 5px 11px;
  line-height: 1.2;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.folio-item__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(19px, 1.5vw, 25px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--text-primary); margin: 0;
}
.folio-item__desc {
  max-height: 0; opacity: 0; overflow: hidden;
  font-size: 13.5px; line-height: 1.58;
  color: rgba(244, 237, 224, 0.82);
  margin: 0; max-width: 52ch;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out),
              margin-top 0.5s var(--ease-out);
}
.folio-item:hover .folio-item__desc,
.folio-item:focus-visible .folio-item__desc {
  max-height: 160px; opacity: 1; margin-top: 10px;
}
/* No hover on touch — the description lives in the project overlay instead */
@media (hover: none), (pointer: coarse) {
  .folio-item__desc { display: none; }
}
.folio-empty {
  text-align: center; color: var(--text-muted); font-family: var(--font-serif);
  font-style: italic; font-size: 18px; padding: 48px 0; display: none;
}

/* Project gallery overlay */
.project {
  position: fixed; inset: 0; z-index: 120;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.project.is-open { opacity: 1; visibility: visible; }
.project__scrim {
  position: fixed; inset: 0;
  background: rgba(16, 8, 20, 0.86);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.project__close {
  position: fixed; top: 22px; right: 24px; z-index: 2;
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.project__close:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255,255,255,0.4); }
.project__close:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.project__panel {
  position: relative; z-index: 1;
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 104px) 0 clamp(48px, 8vh, 80px);
}
.project__head {
  text-align: center;
  max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px);
}
.project__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--peach); margin: 0 0 18px;
}
.project__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.015em;
  color: var(--text-primary); margin: 0 0 0.55em;
  /* a project title can carry a forced line break (\n in its data — see
     script.js) to control where a long title wraps; textContent keeps \n
     literal, so it needs this to actually render as a break */
  white-space: pre-line;
}
.project__body {
  font-family: var(--font-sans); font-weight: 300;
  font-size: clamp(16px, 1.2vw, 17px); line-height: 1.7;
  color: var(--text-secondary); margin: 0 auto; max-width: 640px;
}
/* Project gallery — cinematic carousel */
.project__gallery { width: 100%; }
.pcar__stage {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius); background: var(--bg-mid);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  touch-action: pan-y;
}
.pcar__track {
  display: flex; height: 100%;
  transition: transform 0.6s var(--ease-out);
  touch-action: pan-y; user-select: none; cursor: grab;
}
.pcar__track:active { cursor: grabbing; }
.pcar__slide {
  position: relative; flex: 0 0 100%; height: 100%;
  border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in; overflow: hidden;
}
.pcar__slide img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.95) brightness(0.9);
  transition: transform 1.1s var(--ease-out), filter 0.7s var(--ease-out);
}
.pcar__slide:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.pcar__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(20, 12, 26, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.pcar__nav--prev { left: 16px; }
.pcar__nav--next { right: 16px; }
.pcar__nav:hover { background: rgba(20, 12, 26, 0.85); border-color: rgba(255, 255, 255, 0.6); }
.pcar__nav:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.pcar__counter {
  position: absolute; right: 16px; bottom: 14px; z-index: 2;
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  color: var(--text-primary); background: rgba(20, 12, 26, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline);
}
.pcar__progress {
  margin-top: 16px; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.pcar__bar {
  display: block; height: 100%; width: 11%;
  background: var(--gradient-signature); background-size: 180% 100%;
  transition: width 0.5s var(--ease-out);
}
.pcar__thumbs {
  display: flex; gap: 10px; margin-top: 16px;
  overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.pcar__thumbs::-webkit-scrollbar { height: 6px; }
.pcar__thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 999px; }
.pcar__thumb {
  flex: 0 0 auto; width: 92px; height: 62px; border-radius: 8px; overflow: hidden;
  border: 1px solid transparent; padding: 0; cursor: pointer; background: var(--bg-mid);
  opacity: 0.45; transition: opacity 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  scroll-snap-align: center;
}
.pcar__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcar__thumb:hover { opacity: 0.8; }
.pcar__thumb.is-active { opacity: 1; border-color: var(--lavender); }
.pcar__thumb:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; }
@media (max-width: 600px) {
  .pcar__stage { aspect-ratio: 4 / 3; }
  .pcar__thumb { width: 68px; height: 46px; }
  .pcar__nav { width: 40px; height: 40px; }
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 72px);
  background: rgba(26, 14, 32, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s var(--ease-out);
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; position: relative; }
.lightbox__img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06);
  transform: scale(0.96); transition: transform 0.5s var(--ease-out);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__cap {
  margin-top: 18px; font-family: var(--font-serif); font-style: italic;
  font-size: clamp(16px, 1.4vw, 19px); color: var(--text-secondary);
}
.lightbox__cap span { font-style: normal; font-family: var(--font-sans); font-size: 10px;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--peach); display: block; margin-bottom: 8px; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(26,14,32,0.5);
  color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.lightbox__btn:hover { background: rgba(26,14,32,0.8); border-color: rgba(255,255,255,0.6); }
.lightbox__btn--prev { left: clamp(-8px, -2vw, -64px); }
.lightbox__btn--next { right: clamp(-8px, -2vw, -64px); }
.lightbox__btn:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.lightbox__close {
  position: fixed; top: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(26,14,32,0.5);
  color: var(--text-primary); font-size: 22px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.lightbox__close:hover { background: rgba(26,14,32,0.85); border-color: rgba(255,255,255,0.6); transform: rotate(90deg); }

@media (max-width: 1000px) {
  .folio-grid { grid-template-columns: repeat(2, 1fr); }
  .folio-item, .folio-item--half { grid-column: span 1; height: clamp(240px, 36vw, 320px); }
  .folio-item--feature { grid-column: span 2; height: clamp(280px, 44vw, 400px); }
}
@media (max-width: 560px)  {
  .folio-grid { grid-template-columns: 1fr; }
  .folio-item, .folio-item--half, .folio-item--feature { grid-column: span 1; aspect-ratio: 4 / 3; height: auto; }
  .folio-item--feature .folio-item__title { font-size: clamp(19px, 1.5vw, 25px); }
  .folio-head { align-items: baseline; }

  /* Project showcase modal */
  .project__panel { width: 90vw; padding: 64px 0 48px; }
  .project__head { margin-bottom: 28px; }
  .project__close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 24px; }

  /* Lightbox — keep image + caption fully on-screen and reachable */
  .lightbox { padding: 16px; }
  .lightbox__figure { max-width: 94vw; }
  .lightbox__img { max-height: 64vh; }
  .lightbox__cap { margin-top: 12px; font-size: 14px; }
  .lightbox__btn { width: 42px; height: 42px; }
  .lightbox__btn--prev { left: 4px; }
  .lightbox__btn--next { right: 4px; }
  .lightbox__close { top: 14px; right: 14px; width: 42px; height: 42px; }
}

/* =============================================================
   PROSE intro (centered narrow lede block)
   ============================================================= */
.prose-narrow { max-width: 760px; margin-inline: auto; text-align: center; }
.prose-narrow .lede { margin-inline: auto; text-align: center; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card--wide { grid-column: span 2; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-grid--reverse .story__media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .field--row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  /* 150px of top padding was clearing a desktop nav; the mobile bar is 64px.
     Combined with 60vh it made a 560px-tall banner holding a 16:9 photo in a
     3:4 box — 41% of the frame. Trimming both shows appreciably more of the
     image and pulls the page's first real content above the fold. */
  .subhero { min-height: 52svh; padding-top: 104px; padding-bottom: clamp(40px, 6vw, 64px); }

  /* 12px uppercase on a single text line is a 20px-tall target. Padding
     (not a height) keeps it inline and on its baseline while giving the
     thumb a 44px row. Used site-wide, incl. the founder LinkedIn link. */
  .link-arrow { padding: 12px 0; }

  /* month arrows sit next to each other; at 36px they are easy to cross-tap */
  .booking__cal-nav { width: 44px; height: 44px; }
}

/* =============================================================
   WHO WE ARE — interactive story timeline (Home #positioning)
   A clickable three-chapter rail drives a cross-fading media frame
   and a stack of editorial panels. Same tokens as the cream spread.
   ============================================================= */
.journey__head { max-width: 760px; margin: 0 0 clamp(48px, 6vw, 80px); }
.journey__head .display { margin-bottom: 0; }

/* ---- Clickable timeline rail ---- */
.journey__rail {
  position: relative;
  list-style: none;
  margin: 0 0 clamp(44px, 5vw, 68px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 40px);
}
/* The connecting line lives between the first and last dot centres
   (1/6 .. 5/6 of the row), so it always meets the dots cleanly. */
.journey__rail-track {
  position: absolute;
  top: 6px;
  left: 16.6667%;
  right: 16.6667%;
  height: 2px;
  background: var(--hairline-warm);
  border-radius: 2px;
  z-index: 0;
}
.journey__rail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--gradient-on-light);
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(176, 127, 208, 0.55);
  transition: width 0.8s var(--ease-out);
}
.journey__rail-item { display: flex; justify-content: center; }

.journey__node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  color: inherit;
}
.journey__node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--hairline-warm);
  box-shadow: 0 0 0 0 rgba(176, 127, 208, 0);
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.journey__node-year {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 1;
  color: var(--soft-charcoal);
  transition: color 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
  opacity: 0.6;
}
.journey__node-label {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(31, 27, 46, 0.42);
  transition: color 0.4s var(--ease-out);
}
.journey__node:hover .journey__node-dot,
.journey__node:focus-visible .journey__node-dot {
  border-color: var(--plum-light);
  transform: scale(1.08);
}
.journey__node:hover .journey__node-year { opacity: 0.85; }
.journey__node:focus-visible { outline: none; }
.journey__node:focus-visible .journey__node-label { color: var(--plum); }

.journey__node.is-active .journey__node-dot {
  background: var(--gradient-on-light);
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(176, 127, 208, 0.16), 0 0 18px rgba(176, 127, 208, 0.6);
  transform: scale(1.05);
}
.journey__node.is-active .journey__node-year {
  opacity: 1;
  background: var(--gradient-on-light);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.journey__node.is-active .journey__node-label { color: var(--ink); }

/* ---- Stage body: media + text split ---- */
.journey__body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 88px);
}

/* ---- Cross-fading media frame ---- */
.journey__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-mid);
  box-shadow: 0 44px 100px -54px rgba(0, 0, 0, 0.7);
}
.journey__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0.9s var(--ease-out);
}
.journey__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.journey__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.journey__slide.is-active img {
  transform: scale(1);
  animation: journeyZoom 9s ease-out forwards;
}
@keyframes journeyZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.journey__count {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(26, 14, 32, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}
.journey__count-current { font-weight: 600; color: #fff; font-size: 14px; }
.journey__count-sep { opacity: 0.5; }

/* ---- Stacked text panels (all share one grid cell → no layout jump) ---- */
.journey__panels { display: grid; }
.journey__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out),
    visibility 0.7s var(--ease-out);
  pointer-events: none;
}
.journey__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.1s;
}
/* Staggered rise of the panel's lines when it becomes active */
.journey__panel > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.journey__panel.is-active > * { opacity: 1; transform: none; }
.journey__panel.is-active > *:nth-child(1) { transition-delay: 0.16s; }
.journey__panel.is-active > *:nth-child(2) { transition-delay: 0.27s; }
.journey__panel.is-active > *:nth-child(3) { transition-delay: 0.38s; }

.journey__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--soft-charcoal);
}
.journey__kicker span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-right: 14px;
  border-right: 1px solid var(--hairline-warm);
  color: var(--plum);
}
.journey__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 24px;
}
.journey__title em {
  font-style: italic;
  background:
    linear-gradient(110deg, transparent 36%, rgba(251, 232, 115, 0.9) 50%, transparent 64%),
    var(--gradient-on-light);
  background-size: 200% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: textFlash 8.5s var(--ease-in-out) 2.5s infinite;
}
.journey__copy {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.18vw, 19px);
  line-height: 1.72;
  color: var(--soft-charcoal);
  margin: 0;
  max-width: 54ch;
}

/* ---- Controls ---- */
.journey__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(30px, 3.4vw, 44px);
  flex-wrap: wrap;
}
.journey__arrows { display: flex; gap: 12px; }
.journey__arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--hairline-warm);
  background: rgba(255, 255, 255, 0.5);
  color: var(--plum);
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out),
    color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.journey__arrow:hover {
  border-color: var(--plum-light);
  background: #fff;
  color: var(--plum-deep);
  transform: translateY(-2px);
}
.journey__arrow:active { transform: translateY(0); }
.journey__arrow:focus-visible { outline: 2px solid var(--plum-light); outline-offset: 3px; }

@media (max-width: 820px) {
  .journey__body { grid-template-columns: 1fr; gap: 32px; }
  .journey__media { order: -1; }
}
@media (max-width: 560px) {
  .journey__rail { gap: 6px; }
  .journey__node-year { font-size: 18px; }
  .journey__node-label { font-size: 9px; letter-spacing: 0.18em; }
  .journey__controls { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .journey__slide.is-active img { animation: none; transform: scale(1); }
}
