/* IRONVALE Fitness: example site (Signature package).
   Look: the Ironvale design system (a gym floor under stadium lights, bumper-plate colour code).
   Rules kept from this project: motion animates transform/opacity only, one easing
   (agreed exceptions: linear loops, the stepped light flicker, smoothstep on scroll),
   start states only via JS (.js), everything off under prefers-reduced-motion. */

/* ---------- Fonts (self-hosted, SIL OFL; latin + a ₹-only latin-ext file each) ---------- */
@font-face { font-family: 'Big Shoulders Display'; font-weight: 100 900; font-display: swap; src: url('../fonts/bigshoulders-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 100 900; font-display: swap; src: url('../fonts/bigshoulders-var-ext.woff2') format('woff2'); unicode-range: U+20B9; }
@font-face { font-family: 'Familjen Grotesk'; font-weight: 400 700; font-display: swap; src: url('../fonts/familjen-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Familjen Grotesk'; font-weight: 400 700; font-display: swap; src: url('../fonts/familjen-var-ext.woff2') format('woff2'); unicode-range: U+20B9; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 700; font-display: swap; src: url('../fonts/jetbrainsmono-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 700; font-display: swap; src: url('../fonts/jetbrainsmono-var-ext.woff2') format('woff2'); unicode-range: U+20B9; }

:root {
  --floor: #0f1114;       /* rubber floor */
  --floor-2: #16191e;     /* raised surfaces */
  --floor-3: #1e2229;     /* photo/frame slots */
  --steel: #2b3038;       /* hairlines, never text */
  --chalk: #eeebe4;       /* primary text */
  --chalk-dim: #a3a7ae;   /* secondary text (also used where the design had chalk-faint on small text: AA) */
  --chalk-faint: #6f747c; /* decorative only */
  --red: #e3392d;         /* 25 kg · primary action */
  --red-band: #d63326;    /* trial band: a touch deeper so white body text passes AA (4.8:1) */
  --blue: #3a78e0;        /* 20 kg */
  --yellow: #f3c437;      /* 15 kg · focus ring */
  --green: #34a86f;       /* 10 kg · open now */
  --wa: #167a3e;          /* WhatsApp; deepened from #1d8a4b so 16px white labels pass AA (5.4:1) */
  --beam: rgba(255, 246, 222, .10);
  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Familjen Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--floor); scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--floor); color: var(--chalk); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: .92; letter-spacing: .005em; }
h2 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 900; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--chalk-dim); margin-bottom: 18px; }
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; flex: none; }
.lede { color: var(--chalk-dim); max-width: 56ch; margin: 18px 0 0; }
.tag { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid var(--steel); border-radius: 2px; color: var(--chalk); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 2px; border: 1px solid transparent;
  font: 800 19px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { border-color: var(--steel); color: var(--chalk); background: transparent; }
.btn-wa { background: var(--wa); color: #fff; height: 44px; padding: 0 18px; font-size: 16px; border-radius: 44px; }
@media (hover: hover) {
  .btn-red:hover { background: #f04a3d; }
  .btn-ghost:hover { border-color: var(--chalk); }
  .btn-wa:hover { background: #1a8a47; }
  .btn:hover { transform: translateY(-2px); }
  .btn:hover svg { transform: translateX(2px); }
}
/* Press: only on things that do something when tapped. */
.btn:active, .ph:active, .chip:active { transform: scale(.97); transition-duration: .12s; }

/* ---------- Banner + header (stick together) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; }
.promo { background: var(--chalk); color: #14161a; font: 500 13.5px/1.3 var(--f-body); text-align: center; padding: 9px var(--gut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo b { font-weight: 600; }
.promo a { color: #14161a; font-weight: 600; margin-left: 10px; text-decoration: none; border-bottom: 2px solid var(--red); }
.promo__short { display: none; }
@media (max-width: 640px) { .promo { font-size: 12.5px; } .promo__full { display: none; } .promo__short { display: inline; } } /* 13.5px needs 327 of 328px at 360: too tight */

.nav { background: rgba(15, 17, 20, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--steel); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand span { font: 900 26px/1 var(--f-display); letter-spacing: .16em; }
.links { display: flex; align-items: center; gap: 30px; }
.links a:not(.btn) { text-decoration: none; color: var(--chalk-dim); font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; }
.links a:not(.btn):hover { color: var(--chalk); }
.links .btn-wa { letter-spacing: .06em; }
.burger { display: none; background: none; border: 1px solid var(--steel); color: var(--chalk); width: 44px; height: 44px; border-radius: 2px; cursor: pointer; padding: 0; }
.burger i { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s var(--ease), opacity .2s; }
.nav.is-open .burger i:nth-of-type(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .burger i:nth-of-type(2) { opacity: 0; }
.nav.is-open .burger i:nth-of-type(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .links { display: none; }
  .burger:not([hidden]) { display: block; }
  .nav.is-open .mobile-menu { display: grid; gap: 4px; padding: 8px var(--gut) 20px; border-top: 1px solid var(--steel); animation: menu-in .3s var(--ease); }
  .mobile-menu a { font: 800 34px/1.25 var(--f-display); text-transform: uppercase; text-decoration: none; letter-spacing: .03em; }
  .mobile-menu a:hover { color: var(--red); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 1. Hero (layered) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--steel); --mx: 0; --my: 0; --sp: 0; }
.layer { position: absolute; inset: 0; pointer-events: none; }

/* Grid floor: a perspective plane; the grid inside slides one cell per loop (transform, linear). */
.gridfloor { z-index: -5; top: auto; height: 55%; perspective: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%); mask-image: linear-gradient(to top, #000 10%, transparent 95%); }
.gridfloor__plane { position: absolute; left: -50%; right: -50%; bottom: -20%; height: 180%; transform: rotateX(68deg); transform-origin: bottom; overflow: hidden; }
.gridfloor__grid { position: absolute; inset: -64px 0 0; background-image: linear-gradient(var(--steel) 1px, transparent 1px), linear-gradient(90deg, var(--steel) 1px, transparent 1px); background-size: 64px 64px; }
.js .gridfloor__grid { animation: floor-run 6s linear infinite; }
@keyframes floor-run { to { transform: translateY(64px); } }

/* Stadium lights: they flicker on once (opacity, stepped: the agreed exception). */
.beams { z-index: -4; transform: translate3d(calc(var(--mx) * -10px), calc(var(--sp) * -60px), 0); }
.beam { position: absolute; top: -10%; width: 34%; height: 120%; background: conic-gradient(from 180deg at 50% 0%, transparent 165deg, var(--beam) 175deg, rgba(255, 246, 222, .16) 180deg, var(--beam) 185deg, transparent 195deg); filter: blur(4px); }
.beam:nth-child(1) { left: 2%; } .beam:nth-child(2) { left: 33%; } .beam:nth-child(3) { left: 64%; }
.lamp { position: absolute; top: 0; width: 90px; height: 6px; border-radius: 0 0 6px 6px; background: #fff6de; box-shadow: 0 0 40px 10px rgba(255, 240, 200, .35); }
.lamp.l1 { left: calc(19% - 45px); } .lamp.l2 { left: calc(50% - 45px); } .lamp.l3 { left: calc(81% - 45px); }
.js .beam { opacity: 0; animation: lights-on 1.6s steps(1, end) forwards; }
.js .lamp { opacity: .15; animation: lamp-on 1.6s steps(1, end) forwards; }
.js .beam:nth-child(1), .js .lamp.l1 { animation-delay: .2s; }
.js .beam:nth-child(2), .js .lamp.l2 { animation-delay: .45s; }
.js .beam:nth-child(3), .js .lamp.l3 { animation-delay: .7s; }
@keyframes lights-on { 0% { opacity: 0; } 12% { opacity: 1; } 18% { opacity: .2; } 26% { opacity: 1; } 32% { opacity: .4; } 40%, 100% { opacity: 1; } }
@keyframes lamp-on { 0% { opacity: .15; } 12% { opacity: 1; } 18% { opacity: .3; } 26%, 100% { opacity: 1; } }

.ghost { z-index: -3; display: flex; align-items: center; white-space: nowrap; font: 900 clamp(160px, 26vw, 380px)/1 var(--f-display); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(238, 235, 228, .07); transform: translate3d(calc(-6% + var(--sp) * -18% + var(--mx) * -14px), calc(var(--my) * -8px), 0); top: 6%; bottom: auto; }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 20px; padding-block: clamp(48px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.hero-copy { position: relative; z-index: 2; transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 4px), 0); }
.loc { color: var(--chalk-dim); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.loc svg { width: 14px; height: 14px; color: var(--red); }
.hero h1 { font-size: clamp(60px, 8vw, 124px); font-weight: 900; text-transform: uppercase; line-height: .86; }
.hero h1 .row { display: block; padding-bottom: .04em; }
.hero h1 .row > span { display: inline-block; }
.hero h1 .out { color: transparent; -webkit-text-stroke: 2px var(--chalk); }
.hero h1 .red { color: var(--red); }
.h1-tag { display: block; margin-top: 14px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; line-height: 1; letter-spacing: .04em; color: var(--chalk); }
.hero p.sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--chalk-dim); max-width: 44ch; margin: 26px 0 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--chalk-dim); }
.status .dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; }
.status .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); opacity: 0; }
.status.closed .dot { background: var(--chalk-faint); }
.js .status:not(.closed) .dot::after { animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }

/* Headline: rows rise into place WITHOUT a fade or a clip, so the headline is painted on
   the first frame (keeps Lighthouse LCP at first paint). The rest fades + rises after it. */
.js .hero h1 .row > span { animation: rise .9s var(--ease) var(--d, 0ms) both; }
.js .hero-in { animation: fade-up .9s var(--ease) var(--d, 0ms) both; }
@keyframes rise { from { transform: translateY(.45em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

/* Plate stack */
.stage { position: relative; z-index: 1; height: clamp(360px, 42vw, 580px); min-width: 0; }
.stage .lyr { position: absolute; }
.stage .lyr > svg, .stage .roll, .stage .roll > svg { display: block; width: 100%; height: 100%; }
/* Plate shadow: a still circle behind each plate (same offset and blur as the old drop-shadow).
   A filter on the plate's wrapper had to be redrawn every frame while the plate spins; a plate
   is a disc, so its shadow never changes with rotation and this one is painted once. */
.stage .p-red::before, .stage .p-blue::before, .stage .p-yel::before, .stage .p-grn::before { content: ""; position: absolute; inset: 1%; z-index: -1; border-radius: 50%; box-shadow: 0 18px 24px rgba(0, 0, 0, .55); }
.js .stage .lyr::before { animation: shadow-in 1.3s var(--ease) var(--r, 0s) both; }
@keyframes shadow-in { from { transform: translateX(var(--from)); opacity: 0; } }
.frame { inset: 7% 12% 12% 16%; z-index: 2; transform: translate3d(calc(var(--mx) * -8px), calc(var(--my) * -6px), 0) rotate(-2deg); }
.frame .ph-hero { position: relative; width: 100%; height: 100%; background: radial-gradient(70% 60% at 50% 0%, rgba(255, 246, 222, .18), transparent 70%), linear-gradient(170deg, #262b33, #121418); border: 1px solid var(--steel); overflow: hidden; display: flex; align-items: flex-end; padding: 16px; }
.frame .ph-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 10px); }
.frame .ph-hero span { position: relative; z-index: 1; color: var(--chalk-dim); background: rgba(15, 17, 20, .7); padding: 6px 9px; border-radius: 2px; font-size: 10.5px; }
.frame .crop { position: absolute; width: 18px; height: 18px; border: 2px solid var(--chalk); opacity: .7; }
.crop.tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.crop.br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.p-red { width: 48%; aspect-ratio: 1; top: -2%; right: -4%; z-index: 1; transform: translate3d(calc(var(--mx) * 14px), calc(var(--my) * 10px + var(--sp) * -80px), 0); }
.p-blue { width: 34%; aspect-ratio: 1; bottom: 2%; left: 2%; z-index: 3; transform: translate3d(calc(var(--mx) * -26px), calc(var(--my) * -18px + var(--sp) * 60px), 0); }
.p-yel { width: 17%; aspect-ratio: 1; top: 4%; left: 6%; z-index: 3; transform: translate3d(calc(var(--mx) * -36px), calc(var(--my) * -24px + var(--sp) * -40px), 0); }
.p-grn { width: 12%; aspect-ratio: 1; bottom: 36%; right: 2%; z-index: 4; transform: translate3d(calc(var(--mx) * 30px), calc(var(--my) * 22px), 0); }
/* Plates roll in, then turn slowly forever (linear: an agreed loop exception). */
/* Roll-in and spin sit on separate elements: two transform animations on one element can't
   run on the compositor, so the spin would cost a style recalc every frame, forever. */
.js .roll { animation: roll 1.3s var(--ease) var(--r, 0s) both; }
.js .spin { animation: spin var(--sd, 40s) linear calc(var(--r, 0s) + 1.3s) infinite var(--dir, normal); }
.p-red { --from: -60%; --r: .35s; }
.p-blue { --from: 60%; --r: .5s; --dir: reverse; }
.p-yel { --from: -80%; --r: .65s; --sd: 26s; }
.p-grn { --from: 80%; --r: .8s; --sd: 22s; --dir: reverse; }
@keyframes roll { from { transform: translateX(var(--from)) rotate(-220deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero.is-offscreen *, .hero.is-offscreen *::after { animation-play-state: paused !important; }
.js .frame .ph-hero { animation: frame-in 1.1s var(--ease) .2s both; }
@keyframes frame-in { from { opacity: 0; transform: translateY(30px) rotate(2deg); } }
.tagcard { right: 4%; bottom: 4%; z-index: 5; background: var(--chalk); color: var(--floor); padding: 14px 16px; border-radius: 2px; box-shadow: 10px 10px 0 rgba(0, 0, 0, .35); transform: translate3d(calc(var(--mx) * 20px), calc(var(--my) * 14px), 0) rotate(2deg); }
.js .tagcard > * { animation: fade-up .8s var(--ease) 1.1s both; }
/* Fixed width + single lines: pinned bottom-right, so a late font swap must not resize it (layout shift). */
.tagcard { width: 262px; }
.tagcard b { display: block; font: 900 34px/1 var(--f-display); letter-spacing: .02em; }
.tagcard span { display: block; font: 500 10.5px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; color: #3a3f47; white-space: nowrap; }
.plate-key { display: flex; gap: 5px; margin-top: 8px; }
.plate-key i { width: 16px; height: 6px; border-radius: 1px; display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 36px; }
  .stage { height: clamp(320px, 90vw, 440px); order: -1; }
  .ghost { top: 2%; }
  .tagcard { padding: 10px 12px; } .tagcard b { font-size: 26px; }
}

/* ---------- Strip (two rows, opposite directions, linear loop) ---------- */
.marquee { border-bottom: 1px solid var(--steel); overflow: hidden; padding-block: 18px; display: grid; gap: 6px; background: var(--floor-2); }
.track { display: flex; width: max-content; }
.js .track { animation: slide 38s linear infinite; }
.js .track.rev { animation-direction: reverse; animation-duration: 46s; }
.js .track.is-paused { animation-play-state: paused; }
.track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 900 clamp(34px, 4.6vw, 58px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.track.rev span { color: transparent; -webkit-text-stroke: 1px var(--chalk-faint); }
.track i { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 4px solid currentColor; }
.track.rev i { color: var(--chalk-faint); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
main > section:not(.hero), .book > .wrap { padding-block: clamp(72px, 10vw, 130px); }
.book { padding-block: 0 !important; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head > div { min-width: 0; }

/* Cards: hover lifts (transform) on hover devices; colour changes are instant (not animated). */
@media (hover: hover) and (pointer: fine) {
  .zone:hover { transform: translateY(-6px); border-color: var(--chalk-faint); }
  .zone:hover .zplate { transform: rotate(80deg) translate(-10px, 10px); }
  .plan:hover { transform: translateY(-8px); border-color: var(--pc); }
  .plan:hover .pplate { transform: rotate(-120deg); }
  .review:hover { transform: translateY(-6px); }
  .ph:hover::before { transform: scale(1.08); }
}

/* ---------- 2. Classes (floor zones) ---------- */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.zone { position: relative; background: var(--floor-2); border: 1px solid var(--steel); border-radius: 2px; padding: 28px; overflow: hidden; min-height: 290px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .35s var(--ease); }
.zone h3 { font-size: 40px; font-weight: 900; text-transform: uppercase; }
.zone p { color: var(--chalk-dim); margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; }
.zone .zplate { position: absolute; top: -60px; right: -60px; width: 190px; height: 190px; transition: transform .8s var(--ease); }
.zone .ztag { position: absolute; top: 24px; left: 28px; color: var(--chalk-dim); }
/* Three columns only when cards are wide enough to clear the corner plate. */
@media (min-width: 821px) and (max-width: 1099px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .zones { grid-template-columns: 1fr; }
  /* Phones: smaller corner plate + taller card, so long titles and the label stay clear of it. */
  .zone { min-height: 260px; }
  .zone .zplate { width: 140px; height: 140px; top: -48px; right: -48px; }
  .zone h3 { font-size: 36px; }
}

/* ---------- 3. Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 190px); gap: 12px; }
.gallery li { min-width: 0; grid-column: span 2; }
.gallery li:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.ph { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--floor-3); border: 1px solid var(--steel); border-radius: 2px; display: flex; align-items: flex-end; padding: 16px; cursor: zoom-in; text-align: left; transition: transform .3s var(--ease); }
.ph::before { content: ""; position: absolute; inset: -10%; background: var(--g); transition: transform 1.2s var(--ease); }
.ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 10px); }
.ph > span { position: relative; z-index: 1; color: var(--chalk-dim); background: rgba(15, 17, 20, .7); padding: 6px 9px; border-radius: 2px; font-size: 10.5px; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph[data-tone="1"] { --g: radial-gradient(60% 80% at 70% 0%, rgba(227, 57, 45, .35), transparent 70%), linear-gradient(160deg, #252a31, #121418); }
.ph[data-tone="2"] { --g: radial-gradient(70% 90% at 20% 0%, rgba(58, 120, 224, .35), transparent 70%), linear-gradient(160deg, #20252c, #131519); }
.ph[data-tone="3"] { --g: radial-gradient(70% 90% at 80% 10%, rgba(52, 168, 111, .32), transparent 70%), linear-gradient(160deg, #20252c, #131519); }
.ph[data-tone="4"] { --g: radial-gradient(70% 90% at 30% 0%, rgba(243, 196, 55, .26), transparent 70%), linear-gradient(160deg, #22262d, #121418); }
.ph[data-tone="5"] { --g: radial-gradient(60% 90% at 70% 0%, rgba(238, 235, 228, .16), transparent 70%), linear-gradient(160deg, #22262d, #121418); }
.ph[data-tone="6"] { --g: radial-gradient(70% 90% at 50% 0%, rgba(227, 57, 45, .22), transparent 70%), linear-gradient(160deg, #20252c, #131519); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery li { grid-column: span 1; grid-row: span 1; }
  .gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* Lightbox */
.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 64px 16px 56px; border: 0; background: transparent; color: var(--chalk); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox::backdrop { background: rgba(15, 17, 20, .94); }
.lightbox__stage { width: min(100%, calc((100vh - 160px) * 4 / 3), 1100px); aspect-ratio: 4 / 3; }
.lightbox__stage > .ph { cursor: default; }
.lightbox__caption { color: var(--chalk-dim); }
.lightbox__btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--steel); border-radius: 2px; background: var(--floor-2); color: var(--chalk); cursor: pointer; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; bottom: 12px; }
.lightbox__next { right: 12px; bottom: 12px; }
@media (min-width: 768px) {
  .lightbox__prev, .lightbox__next { bottom: auto; top: 50%; margin-top: -22px; }
  .lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
}
.lightbox[open] .lightbox__stage, .lightbox[open] .lightbox__caption { animation: lb-in .35s var(--ease); }
.lightbox[open]::backdrop { animation: fade-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- 4. Plans (named by plate) ---------- */
.plans { position: relative; overflow: hidden; }
.plans .bgplate { position: absolute; width: 520px; height: 520px; right: -180px; top: 40px; opacity: .07; transform: rotate(calc(var(--sp2, 0) * 200deg)); pointer-events: none; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--floor-2); border: 1px solid var(--steel); border-radius: 2px; padding: 30px 28px 28px; display: flex; flex-direction: column; overflow: hidden; transition: transform .35s var(--ease); }
.plan.feat { border-color: var(--pc); }
.plan .pplate { width: 116px; height: 116px; margin-bottom: 22px; transition: transform 1s var(--ease); }
.plan .kg { display: flex; align-items: center; gap: 8px; color: var(--chalk-dim); }
.plan .kg i { width: 20px; height: 8px; border-radius: 2px; background: var(--pc); }
.plan h3 { font-size: 46px; font-weight: 900; text-transform: uppercase; margin-top: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.price b { font: 900 60px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.price span { color: var(--chalk-dim); font-size: 15px; }
.save { color: var(--chalk-dim); font-size: 14px; min-height: 22px; }
.plan .note { color: var(--chalk-dim); font-size: 15.5px; line-height: 1.55; margin: 18px 0 28px; flex: 1; }
.plan .btn { width: 100%; }
.includes { margin-top: 18px; padding: 28px; background: var(--floor-2); border: 1px solid var(--steel); border-radius: 2px; }
.includes__title { color: var(--chalk-dim); }
.includes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 28px; margin-top: 16px; }
.includes li { display: flex; gap: 12px; font-size: 15.5px; color: var(--chalk-dim); }
.includes li::before { content: ""; width: 12px; height: 4px; background: var(--red); margin-top: 11px; flex: none; border-radius: 1px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } .includes ul { grid-template-columns: 1fr; } }

/* ---------- 5. Reviews + FAQ ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review { position: relative; background: var(--floor-2); border: 1px solid var(--steel); border-radius: 2px; padding: 34px 28px 28px; overflow: hidden; transition: transform .35s var(--ease); }
.review::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--pc); }
.review blockquote { font-size: 17px; line-height: 1.6; color: var(--chalk); }
.review figcaption { margin-top: 18px; color: var(--chalk-dim); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 80px); margin-top: clamp(72px, 10vw, 130px); }
.faq details { border-bottom: 1px solid var(--steel); }
.faq details:first-child { border-top: 1px solid var(--steel); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 800 clamp(22px, 2.2vw, 28px)/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .02em; transition: transform .12s var(--ease); }
.faq summary:active { transform: scale(.985); }
.faq summary::-webkit-details-marker { display: none; }
.pm { width: 22px; height: 22px; flex: none; position: relative; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--chalk); transition: transform .3s var(--ease); }
.pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details p { margin: 0 0 24px; color: var(--chalk-dim); max-width: 60ch; }
.faq details[open] p { animation: fade-up .35s var(--ease); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* ---------- 6. Book a free trial + visit us ---------- */
.trial { background: var(--red-band); color: #fff; position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 130px); }
.trial .stripes { position: absolute; inset: 0 -160px 0 0; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .06) 0 18px, transparent 18px 36px); transform: translateX(calc(var(--sp3, 0) * -120px)); pointer-events: none; }
.trial__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.trial h2 { color: #fff; }
.trial .lede { color: #fff; }
.trial .eyebrow { color: #fff; }
.trial .eyebrow i { background: #fff; }
form.card { background: var(--floor); color: var(--chalk); padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; border-radius: 2px; box-shadow: 18px 18px 0 rgba(0, 0, 0, .25); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { color: var(--chalk-dim); font-size: 11px; padding: 0; margin-bottom: 8px; }
.field > label { margin-bottom: 0; }
input[type="text"], select { font: 400 17px/1.2 var(--f-body); color: var(--chalk); background: var(--floor-2); border: 1px solid var(--steel); border-radius: 2px; padding: 14px; width: 100%; min-width: 0; height: 52px; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23eeebe4' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input[type="text"]:focus, select:focus { outline: none; border-color: var(--yellow); }
input[type="text"]:focus-visible, select:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
[aria-invalid="true"] { border-color: #ff8a80 !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; transition: transform .3s var(--ease); }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid var(--steel); border-radius: 44px; color: var(--chalk-dim); font: 500 15px/1 var(--f-body); }
.chip input:checked + span { background: var(--chalk); color: var(--floor); border-color: var(--chalk); }
.chip input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 3px; }
.err { color: #ff8a80; font-size: 14px; }
form.card .btn-red { width: 100%; }
.form__alt { font-size: 15px; color: var(--chalk-dim); }
.form__alt a { color: var(--chalk); text-underline-offset: 3px; }
@media (max-width: 900px) { .trial__grid { grid-template-columns: 1fr; } }

.visit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--steel); }
.visit > div { padding: 28px 28px 28px 0; min-width: 0; }
.visit > div + div { border-left: 1px solid var(--steel); padding-left: 28px; }
.visit__k { color: var(--chalk-dim); }
.visit h3 { font-size: 28px; font-weight: 800; text-transform: uppercase; margin: 10px 0 12px; }
.visit p, .visit li { color: var(--chalk-dim); font-size: 16px; }
.visit li { display: flex; justify-content: space-between; gap: 12px; color: var(--chalk); font-variant-numeric: tabular-nums; }
.visit__note { margin-top: 6px; font-size: 14px !important; }
.copyrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.phone { font: 500 17px/1 var(--f-mono); text-decoration: none; }
.copybtn { background: none; border: 1px solid var(--steel); color: var(--chalk-dim); font-size: 11px; padding: 8px 10px; border-radius: 2px; cursor: pointer; }
.copybtn:hover { color: var(--chalk); border-color: var(--chalk-faint); }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } .visit > div + div { border-left: 0; border-top: 1px solid var(--steel); padding-left: 0; } }
.bigword { font: 900 clamp(72px, 16vw, 240px)/.8 var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: var(--floor-3); padding-inline: var(--gut); max-width: var(--wrap); margin: 0 auto; overflow: hidden; white-space: nowrap; }

/* ---------- Footer + phone WhatsApp bar ---------- */
.ftr { border-top: 1px solid var(--steel); padding-block: 40px 120px; color: var(--chalk-dim); }
.ftr .wrap:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.ftr a { color: var(--chalk); text-underline-offset: 3px; }
.ftr__note { margin-top: 18px; font-size: 14px; }
@media (min-width: 901px) { .ftr { padding-bottom: 40px; } }
.wa-bar { display: none; }
@media (max-width: 900px) {
  .nav .btn-wa { display: none; }
  .wa-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--floor) 60%, transparent); }
  .wa-bar .btn-wa { width: 100%; height: 54px; border-radius: 2px; font-size: 18px; }
}

/* ---------- Scroll reveals ----------
   Start from a visible state (opacity .15, as in the design), set only when JS runs.
   Rise via `translate` so card hover lifts (transform) never fight it. */
.js .rv, .js .rv-x {
  --rd: calc(var(--i, 0) * 80ms);
  opacity: .15;
  transition: opacity .9s var(--ease) var(--rd), translate .9s var(--ease) var(--rd), transform .35s var(--ease);
}
.js .rv { translate: 0 46px; }
.js .rv-x { translate: -60px 0; }
.js .rv.is-in, .js .rv-x.is-in, .js.reveal-all .rv, .js.reveal-all .rv-x { opacity: 1; translate: none; }

/* ---------- Reduced motion: all of it off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lightbox::backdrop { animation: none !important; } /* own rule: unsupported ::backdrop would drop the list above */
  .js .beam, .js .lamp { opacity: 1; }
  .js .rv, .js .rv-x { opacity: 1; translate: none; }
  .btn:hover, .btn:active, .ph:active, .chip:active, .faq summary:active,
  .zone:hover, .plan:hover, .review:hover { transform: none; }
  .btn:hover svg, .zone:hover .zplate, .plan:hover .pplate, .ph:hover::before { transform: none; }
}
