/* ==========================================================================
   KATARI JYOTHSNA - home3d.css
   --------------------------------------------------------------------------
   The scroll-driven, 3D home page. Choreography lives in assets/js/home3d.js
   (GSAP + ScrollTrigger + Lenis); this file only sets the stage.

   Contract with the script:
   - Every section is laid out as normal, readable flow FIRST. That is what
     visitors without JavaScript, or with prefers-reduced-motion, receive.
   - home3d.js adds `html.has-3d` only when it is going to animate. Every
     initial "hidden" or "transformed" state below is scoped under .has-3d,
     so nothing can ever be stranded invisible if the script fails.
   ========================================================================== */

/* Section hooks home3d.js looks for. Each pins or measures itself, so each
   must be its own positioning context. */
.zoom, .hs, .wall, .ring { position: relative; }

/* Stage surface, glows, kickers and header-over-dark rules: see stage.css */

/* ==========================================================================
   2. HERO - the 3D tunnel
   ========================================================================== */
.tunnel {
  /* pull the stage up under the sticky header so the header floats on it */
  margin-top: calc(var(--header-h) * -1);
}
.tunnel__sticky {
  position: relative;
  height: 100svh;
  min-height: 36rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tunnel__view {
  position: absolute;
  inset: 0;
  perspective: 900px;
  perspective-origin: 50% 50%;
  pointer-events: none;
}
.tunnel__world {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Each card carries its own 3D coordinates as custom properties:
   --x / --y in vw/vh from the centre, --z in px (negative = further away).
   With no perspective (no .has-3d) z is visually inert, so the same markup
   degrades to a flat, scattered collage. */
.tunnel__card {
  position: absolute;
  width: var(--w, clamp(9rem, 16vw, 15rem));
  aspect-ratio: 3 / 4;
  margin: calc(var(--w, clamp(9rem, 16vw, 15rem)) * -0.667) 0 0 calc(var(--w, clamp(9rem, 16vw, 15rem)) * -0.5);
  transform: translate3d(calc(var(--x) * 1vw), calc(var(--y) * 1vh), calc(var(--z) * 1px)) rotate(var(--r, 0deg));
  border-radius: var(--r-l);
  overflow: hidden;
  background: #2A0C23;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  backface-visibility: hidden;
}
.tunnel__card img { width: 100%; height: 100%; object-fit: cover; }
.tunnel__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(160deg, rgba(255,255,255,.12), transparent 40%);
}

.tunnel__dot {
  position: absolute;
  width: var(--s, 6px); height: var(--s, 6px);
  border-radius: 50%;
  background: var(--c, #FFC53D);
  box-shadow: 0 0 12px var(--c, #FFC53D);
  transform: translate3d(calc(var(--x) * 1vw), calc(var(--y) * 1vh), calc(var(--z) * 1px));
}

/* the copy floats above the world, dead centre */
.tunnel__copy {
  position: relative;
  z-index: 5;
  text-align: center;
  padding-inline: var(--gutter);
  max-width: 62rem;
}
.tunnel__copy::before {
  /* a soft dark pool so the type stays legible over any card */
  content: "";
  position: absolute;
  inset: -30% -20%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(18,4,15,.82), rgba(18,4,15,0));
}
.tunnel__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 8.5rem);
  line-height: .96;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  margin-top: 1.25rem;
}
.tunnel__title .tl { display: block; overflow: hidden; padding-bottom: .08em; }
.tunnel__title .tl > span { display: inline-block; }
.tunnel__sub {
  margin: 1.5rem auto 0;
  max-width: 44ch;
  font-size: var(--step-0);
  line-height: 1.7;
  color: rgba(255,248,244,.8);
}
.tunnel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
}

/* the second phrase that replaces the first as you travel in */
.tunnel__after {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  text-align: center;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.tunnel__after p {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  max-width: 16ch;
}
.has-3d .tunnel__after { opacity: 0; }
.no-3d .tunnel__after,
html:not(.has-3d) .tunnel__after { display: none; }

.tunnel__hint {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  translate: -50% 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,248,244,.6);
}
.tunnel__hint i {
  width: 1.4rem; height: 2.2rem;
  border: 1px solid rgba(255,248,244,.4);
  border-radius: 999px;
  position: relative;
}
.tunnel__hint i::after {
  content: "";
  position: absolute;
  left: 50%; top: .4rem;
  width: 3px; height: 6px;
  translate: -50% 0;
  border-radius: 3px;
  background: var(--brand-marigold);
  animation: hint-drop 1.8s var(--ease-in-out) infinite;
}
@keyframes hint-drop { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ==========================================================================
   3. VELOCITY MARQUEE - skews with scroll speed
   ========================================================================== */
.vmarquee {
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.vmarquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.vmarquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink-strong);
}
.vmarquee__item em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vmarquee__item i {
  width: .32em; height: .32em;
  rotate: 45deg;
  background: var(--grad);
  flex: none;
}
html:not(.has-3d) .vmarquee__track { animation: ticker-run 40s linear infinite; }

/* ==========================================================================
   4. MANIFESTO - words light up as you read down
   ========================================================================== */
.manifesto {
  padding-block: clamp(6rem, 16vw, 13rem);
}
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 4.1rem);
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: var(--ink-strong);
  max-width: 22ch;
}
.manifesto__text .mw { transition: none; }
.has-3d .manifesto__text .mw { opacity: .14; }
.manifesto__text em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 60rem;
}
.manifesto__meta div { display: flex; flex-direction: column; gap: .25rem; }
.manifesto__meta dt {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.manifesto__meta dd { margin: 0; color: var(--ink-strong); font-size: var(--step-0); }

/* ==========================================================================
   5. THE PORTAL - the photograph the tunnel opens into
   The clip is painted by home3d.js every frame from one 0..1 value, never
   tweened as a string: browsers collapse inset() to its shortest form and a
   string tween then pairs the wrong numbers and opens lopsided.
   ========================================================================== */
.tunnel__portal {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
}
.has-3d .tunnel__portal {
  /* present from the first frame as a small, distant picture BEHIND the
     headline (z 4 < copy 5); home3d.js pulls it towards the camera */
  z-index: 4;
  opacity: 0;
  clip-path: inset(47% 47% 47% 47% round 24px);
}
.tunnel__portal img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  will-change: transform;
}
.tunnel__portal::after {
  content: "";
  position: absolute;
  inset: 0;
  /* the caption lands on the lower third, which can be bright marigold */
  background:
    linear-gradient(to top, rgba(18,4,15,.96) 0%, rgba(18,4,15,.72) 22%, rgba(18,4,15,.18) 58%, rgba(18,4,15,.45) 100%);
}

.tunnel__side {
  position: absolute;
  top: 46%;
  z-index: 8;          /* above the portal, which clips its own children */
  translate: 0 -50%;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.8rem);
  line-height: 1.05;
  color: #FFFFFF;
  max-width: 11ch;
  text-shadow: 0 2px 24px rgba(18,4,15,.8);
}
.tunnel__side--l { left: var(--gutter); }
.tunnel__side--r { right: var(--gutter); text-align: right; }

.tunnel__caption {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(2rem, 8vh, 5.5rem);
  z-index: 4;
  margin-inline: auto;
  max-width: 54rem;
  padding-inline: var(--gutter);
  text-align: center;
}
/* a soft pool so the caption reads over a bright stage, not just over the
   page-wide gradient */
.tunnel__caption::before {
  content: "";
  position: absolute;
  inset: -45% -12% -60%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(18,4,15,.8), rgba(18,4,15,0));
  pointer-events: none;
}
.tunnel__caption .kicker { color: rgba(255,248,244,.85); }
.tunnel__caption h2 {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 2px 30px rgba(18,4,15,.85);
}
.tunnel__caption p {
  margin-top: 1rem;
  color: rgba(255,248,244,.9);
  text-shadow: 0 1px 18px rgba(18,4,15,.9);
}
.has-3d .tunnel__caption,
.has-3d .tunnel__side { opacity: 0; }

/* with no script the portal is just the next block on the page */
html:not(.has-3d) .tunnel__portal {
  position: relative;
  inset: auto;
  min-height: 70svh;
  margin-top: clamp(2rem, 6vw, 4rem);
  border-radius: var(--r-xl);
}
html:not(.has-3d) .tunnel__side { display: none; }

/* ==========================================================================
   6. CEREMONIES - horizontal scroll with 3D coverflow cards
   ========================================================================== */
.hs__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.75rem, 4vh, 3rem);
  padding-block: clamp(5rem, 12vh, 7rem) clamp(2.5rem, 6vh, 4rem);
  overflow: hidden;
}
.hs__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  flex-wrap: wrap;
}
.hs__head h2 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1; max-width: 14ch; }
.hs__meta { display: flex; align-items: center; gap: 1.25rem; }
.hs__count { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; color: var(--ink-muted); }
.hs__count b { color: var(--ink-strong); font-weight: 500; }
.hs__progress { width: clamp(6rem, 16vw, 12rem); height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.hs__progress i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(.125); }

.hs__viewport { perspective: 1400px; }
.hs__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  padding-inline: var(--gutter);
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
}
/* without the script it is simply a native, swipeable row */
html:not(.has-3d) .hs__viewport,
.hs--native .hs__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
html:not(.has-3d) .hs__card,
.hs--native .hs__card { scroll-snap-align: center; }

.hs__card {
  position: relative;
  flex: none;
  width: clamp(16rem, 27vw, 24rem);
  aspect-ratio: 3 / 4.2;
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: #FFFFFF;
  background: #2A0C23;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.9);
}
.hs__media { position: absolute; inset: -6% -14%; }
.hs__media img { width: 100%; height: 100%; object-fit: cover; }
.hs__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,4,15,.92) 0%, rgba(18,4,15,.35) 48%, rgba(18,4,15,.05) 100%);
}
.hs__num {
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(18,4,15,.5);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.hs__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 1.4rem; }
.hs__native { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-marigold); }
.hs__name { display: block; margin-top: .35rem; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.05; }
.hs__desc { display: block; margin-top: .5rem; font-size: .9rem; line-height: 1.55; color: rgba(255,248,244,.78); }
.hs__card:hover .hs__media img { transform: scale(1.05); transition: transform 1s var(--ease-out-expo); }

/* ==========================================================================
   7. STATS - numbers that count, over a gradient rule
   ========================================================================== */
.gstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gstat {
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--line);
}
.gstat:first-child { border-left: 0; }
.gstat__num {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.gstat__label {
  display: block;
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ==========================================================================
   8. STACKING CARDS - each service slides over the last
   ========================================================================== */
.stack { display: flex; flex-direction: column; gap: clamp(1.5rem, 4vw, 2.5rem); }
.stack__card {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem + var(--i, 0) * 1.1rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: min(72svh, 38rem);
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 -20px 60px -30px rgba(41,8,31,.35);
  transform-origin: 50% 0%;
  will-change: transform;
}
.stack__media { position: relative; overflow: hidden; min-height: 18rem; }
.stack__media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.stack__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(1.75rem, 4.5vw, 4rem);
}
.stack__num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.stack__title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.02; color: var(--ink-strong); }
.stack__text { color: var(--ink-soft); line-height: 1.72; max-width: 44ch; }
.stack__list { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .5rem 0 0; }
.stack__list li {
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-soft);
}
.stack__card:nth-child(even) .stack__media { order: 2; }
/* the shade the script fades in as the next card covers this one */
.stack__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #12040F;
  opacity: var(--shade, 0);
  pointer-events: none;
}

/* ==========================================================================
   9. PROCESS - a line that draws itself down the page
   ========================================================================== */
.path { position: relative; }
.path__svg {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  width: min(100%, 64rem);
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.path__track { fill: none; stroke: var(--line); stroke-width: 2; }
.path__line  { fill: none; stroke: url(#kjGrad); stroke-width: 3; stroke-linecap: round; }
.path__steps { position: relative; display: flex; flex-direction: column; gap: clamp(3rem, 9vw, 6.5rem); padding-block: 1rem; }
.path__step { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.path__dot {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-muted);
  transition: background .5s var(--ease-out-expo), color .5s, border-color .5s, transform .5s var(--ease-spring);
  z-index: 1;
}
.path__step.is-lit .path__dot { background: var(--grad); border-color: transparent; color: #FFFFFF; transform: scale(1.12); }
.path__card {
  grid-column: 1;
  text-align: right;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--r-l);
  background: var(--surface);
  border: 1px solid var(--line);
}
.path__step:nth-child(even) .path__card { grid-column: 3; text-align: left; }
.path__step:nth-child(even) .path__dot { grid-row: 1; }
.path__when { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.path__card h3 { margin-top: .4rem; font-size: var(--step-2); color: var(--ink-strong); }
.path__card p { margin-top: .5rem; font-size: .95rem; line-height: 1.65; color: var(--ink-soft); }
.has-3d .path__card { opacity: 0; }

/* ==========================================================================
   10. GALLERY WALL - a tilted table of photographs, columns out of step
   ========================================================================== */
.wall__stage {
  position: relative;
  height: clamp(40rem, 110vh, 62rem);
  overflow: hidden;
  perspective: 1600px;
}
.wall__grid {
  position: absolute;
  left: 50%; top: 50%;
  width: 150vw;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.25rem);
  translate: -50% -50%;
  transform: rotateX(38deg) rotateZ(-14deg);
  transform-style: preserve-3d;
}
.wall__col { display: flex; flex-direction: column; gap: clamp(.75rem, 1.4vw, 1.25rem); will-change: transform; }
.wall__tile {
  display: block;
  border-radius: var(--r-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #2A0C23;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.wall__tile:nth-child(3n+2) { aspect-ratio: 1 / 1; }
.wall__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out-expo); }
.wall__tile:hover img { transform: scale(1.07); }
.wall__stage::after {
  /* sink the edges so the copy owns the centre */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(18,4,15,.2), rgba(18,4,15,.94) 100%);
  pointer-events: none;
}
.wall__copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding-inline: var(--gutter);
}
.wall__copy h2 { font-size: clamp(2.6rem, 8vw, 7.4rem); line-height: .95; color: #FFFFFF; }
.wall__copy .kicker,
.wall__copy p { color: rgba(255,248,244,.9); text-shadow: 0 2px 18px rgba(18,4,15,.9); }
.wall__copy p { margin: 1.1rem auto 0; max-width: 40ch; color: rgba(255,248,244,.8); }
.wall__copy .btn { margin-top: 1.75rem; }

/* ==========================================================================
   11. REVIEWS - a 3D cylinder that turns as you scroll
   ========================================================================== */
.ring__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  padding-block: clamp(5rem, 10vh, 7rem) clamp(2rem, 5vh, 3rem);
  overflow: hidden;
}
.ring__head { text-align: center; }
.ring__head h2 { margin-top: .9rem; font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1; }
.ring__scene {
  position: relative;
  height: clamp(22rem, 52vh, 27rem);
  perspective: 2000px;
}
.ring__cyl {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.ring__card {
  position: absolute;
  width: var(--card-w, 22rem);
  margin-left: calc(var(--card-w, 22rem) / -2);
  top: 0;
  translate: 0 -50%;
  backface-visibility: hidden;
}
.ring__card .testimonial {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
  min-height: 19rem;
}
.ring__card .testimonial__text { font-size: 1.12rem; line-height: 1.5; }
.ring__card .testimonial__name { color: var(--ink-strong); }
.ring__card .testimonial__meta { color: var(--ink-muted); }

/* without the script the reviews are an ordinary swipeable row */
html:not(.has-3d) .ring__scene,
.ring--flat .ring__scene { height: auto; perspective: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
html:not(.has-3d) .ring__cyl,
.ring--flat .ring__cyl { position: static; width: auto; height: auto; display: flex; gap: 1rem; padding-inline: var(--gutter); transform: none !important; }
html:not(.has-3d) .ring__card,
.ring--flat .ring__card { position: relative; margin: 0; translate: none; flex: none; scroll-snap-align: center; transform: none !important; opacity: 1 !important; width: min(84vw, 22rem); }

.ring__note { text-align: center; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }

/* ==========================================================================
   12. FINALE - rows of type sliding against each other
   ========================================================================== */
.finale { padding-block: clamp(5rem, 12vw, 9rem); }
.finale__rows { display: flex; flex-direction: column; gap: .2em; }
.finale__row {
  display: flex;
  width: max-content;
  gap: .45em;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 10rem);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: var(--ink-strong);
  will-change: transform;
}
.finale__row span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.finale__row em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finale__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  padding-inline: var(--gutter);
}
.finale__center p { max-width: 42ch; color: var(--ink-soft); }
.finale__center .cta-actions { margin-top: .5rem; }

/* ==========================================================================
   13. SMALL SCREENS
   ========================================================================== */
@media (max-width: 899px) {
  /* the mono kicker wrapped into two ragged lines with its dot adrift */
  .kicker { font-size: .6rem; letter-spacing: .14em; gap: .5rem; flex-wrap: wrap; justify-content: center; }
  .kicker::before { width: 1.25rem; }
  .tunnel__copy .kicker::before { display: none; }

  /* both hero actions the same full width, stacked */
  .tunnel__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 22rem; margin-inline: auto; }
  .tunnel__actions .magnetic,
  .tunnel__actions .magnetic__inner,
  .tunnel__actions > .btn { display: flex; width: 100%; justify-content: center; }

  /* a deeper pool behind the type - the cards crowd closer on a phone */
  .tunnel__copy::before { inset: -18% -30%; background: radial-gradient(closest-side, rgba(18,4,15,.92), rgba(18,4,15,0)); }

  /* two captions either side of the frame have nowhere to go on a phone */
  .tunnel__side { display: none; }
  /* clear the sticky call bar and the floating WhatsApp button */
  .tunnel__caption { bottom: 6.5rem; }
  .tunnel__caption h2 { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .tunnel__caption p { font-size: .92rem; }

  .tunnel__card { --w: clamp(6.5rem, 30vw, 9rem); }
  .tunnel__title { font-size: clamp(2.5rem, 13vw, 4rem); }
  .tunnel__sub { font-size: .95rem; }
  .tunnel__actions .btn { flex: 1 1 auto; justify-content: center; }

  .hs__card { width: min(78vw, 20rem); }

  .gstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gstat:nth-child(3) { border-left: 0; }
  .gstat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .stack__card { grid-template-columns: minmax(0, 1fr); min-height: auto; top: calc(var(--header-h) + .75rem + var(--i, 0) * .6rem); }
  .stack__card:nth-child(even) .stack__media { order: 0; }
  .stack__media { min-height: 13rem; aspect-ratio: 16 / 10; }
  .stack__num { font-size: 3rem; }

  .path__svg { left: 1.7rem; translate: 0 0; width: 4px; }
  .path__step,
  .path__step:nth-child(even) { grid-template-columns: auto 1fr; }
  .path__dot,
  .path__step:nth-child(even) .path__dot { grid-column: 1; grid-row: 1; }
  .path__card,
  .path__step:nth-child(even) .path__card { grid-column: 2; text-align: left; }

  .wall__grid { width: 220vw; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wall__col:nth-child(5) { display: none; }

  .ring__scene { --card-w: min(80vw, 19rem); }
}

/* ==========================================================================
   14. REDUCED MOTION - the static layout, and nothing moving at all
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .tunnel__hint i::after { animation: none; }
  .vmarquee__track { animation: none !important; }
  .wall__grid { transform: rotateX(0) rotateZ(0); }
}
