/* Prime Motors
   Liquid glass over a dark, warm scene; poster-size type set behind the glass so it bends through it;
   every section is one bento grid that fits a screen. */

:root {
    --bg: #08080a;
    --text: #f1efea;
    --text-2: rgba(241, 239, 234, 0.72);
    --text-3: rgba(241, 239, 234, 0.5);
    --accent: #ff5f2e;
    --accent-2: #ff8a5c;
    --accent-ink: #1a0802;

    --f-display: "Geologica", "Helvetica Neue", Arial, sans-serif;
    --f-sans: "Golos Text", "Helvetica Neue", Arial, sans-serif;

    --fs-sm: 0.875rem;
    --fs-base: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
    --fs-lg: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
    --fs-h2: clamp(1.7rem, 1rem + 1.9vw, 2.9rem);

    --wrap: 1480px;
    --pad: clamp(14px, 2.6vw, 40px);
    --gap: clamp(10px, 1vw, 16px);
    --r: clamp(20px, 2vw, 30px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-sans);
    font-size: var(--fs-base);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* Warm and cool light far behind everything: glass needs something to bend */
body::before {
    content: "";
    position: fixed;
    inset: -20vmax;
    z-index: -1;
    background:
        radial-gradient(40vmax 30vmax at 12% 20%, rgba(255, 95, 46, 0.22), transparent 70%),
        radial-gradient(36vmax 28vmax at 88% 70%, rgba(80, 120, 255, 0.14), transparent 70%),
        radial-gradient(30vmax 24vmax at 60% 110%, rgba(255, 140, 80, 0.12), transparent 70%);
    pointer-events: none;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, select, button { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 16px; }

/* ============================================
   Liquid glass
   ============================================ */
.glass {
    position: relative;
    isolation: isolate;
    border-radius: var(--r);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04) 42%, rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 24px rgba(255, 255, 255, 0.04),
        0 30px 70px -30px rgba(0, 0, 0, 0.75);
}
/* Specular rim: bright where the light hits, fading round the edge */
.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.06) 32%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
/* A soft highlight that follows the pointer (set by script) */
.glass::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 30%) var(--my, 0%), rgba(255, 255, 255, 0.14), transparent 45%);
    opacity: var(--glow, 0.6);
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.glass--liquid {
    -webkit-backdrop-filter: blur(14px) saturate(190%) brightness(1.08);
    backdrop-filter: blur(14px) saturate(190%) brightness(1.08);
}
@supports (backdrop-filter: url(#liquid)) {
    .glass--liquid { backdrop-filter: url(#liquid) blur(12px) saturate(190%) brightness(1.08); }
}
.glass--accent {
    background: linear-gradient(145deg, rgba(255, 120, 70, 0.55), rgba(255, 80, 30, 0.22) 50%, rgba(255, 140, 90, 0.32));
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 200, 0.6),
        inset 0 0 30px rgba(255, 140, 90, 0.2),
        0 30px 70px -30px rgba(255, 80, 30, 0.45);
}
.glass--chip { border-radius: calc(var(--r) - 8px); }
.glass--inset { background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1); }
.glass--inset::before { opacity: 0.4; }

/* ============================================
   Type and controls
   ============================================ */
.mega {
    font-family: var(--f-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.065em;
    line-height: 0.8;
    white-space: nowrap;
    user-select: none;
}
.tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-family: var(--f-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    color: var(--text-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    font-size: var(--fs-sm);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 220, 200, 0.7), 0 10px 30px -10px rgba(255, 95, 46, 0.8);
    transition: transform 0.35s var(--spring), background-color 0.2s ease, box-shadow 0.3s ease;
}
.btn:active { transform: scale(0.96); }
.btn--sm { min-height: 40px; padding: 0 18px; }
.btn.btn--glass { color: var(--text); background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)); }
@media (hover: hover) and (pointer: fine) {
    .btn:hover { transform: translateY(-2px); background-color: var(--accent-2); box-shadow: inset 0 1px 0 rgba(255, 230, 215, 0.8), 0 16px 40px -12px rgba(255, 95, 46, 0.9); }
    .btn.btn--glass:hover { background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 16px 40px -16px rgba(0, 0, 0, 0.8); }
}

/* Logo: the wordmark alone. PRIME heavy, MOTORS light, a slanted orange bar between them like a speed stripe */
.logo { display: inline-flex; align-items: center; font-family: var(--f-display); font-size: 1.05rem; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.logo b { font-weight: 600; }
.logo span { font-weight: 200; }
.logo__slash { display: inline-block; width: 0.26em; height: 1.05em; margin: 0 0.32em 0 0.28em; background: var(--accent); transform: skewX(-22deg); box-shadow: 0 0 12px rgba(255, 95, 46, 0.7); transition: transform 0.4s var(--spring); }
@media (hover: hover) and (pointer: fine) { .logo:hover .logo__slash { transform: skewX(-22deg) scaleY(1.25); } }

/* ============================================
   Navigation: a floating glass pill
   ============================================ */
.nav { position: fixed; inset: 14px 0 auto; z-index: 50; display: flex; justify-content: center; padding-inline: var(--pad); pointer-events: none; }
.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); width: 100%; padding: 7px 7px 7px 18px; border-radius: 999px; }
.nav__pill .logo { margin-right: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); font-size: var(--fs-sm); color: var(--text-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color 0.2s ease; }
.nav__links a.is-active { color: var(--text); }
/* Telegram and WhatsApp in the phone menu: line icons in round glass buttons */
.social { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); color: var(--text-2); transition: color 0.25s ease, background-color 0.25s ease; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .social:hover { color: var(--accent-ink); background-color: var(--accent); } }

/* phone menu button: a word and two strokes that cross into an X */
.nav__toggle { display: none; flex: none; align-items: center; gap: 10px; min-width: 112px; height: 44px; padding: 0 16px 0 18px; justify-content: space-between; border-radius: 999px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); font-size: var(--fs-sm); font-weight: 500; }
.nav__toggle i { position: relative; width: 16px; height: 10px; }
.nav__toggle i::before, .nav__toggle i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: top 0.45s var(--ease), transform 0.45s var(--ease), left 0.45s var(--ease); }
.nav__toggle i::before { top: 0; }
.nav__toggle i::after { top: 8.5px; left: 5px; }
.nav.is-open .nav__toggle i::before { top: 4.25px; transform: rotate(45deg); }
.nav.is-open .nav__toggle i::after { top: 4.25px; left: 0; transform: rotate(-45deg); }
.drawer, .nav__scrim { display: none; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); } }

/* ============================================
   Hero reel
   ============================================ */
/* The film is drawn full screen and clipped to a window. The script moves the window from the empty bento cell
   (.reel__slot) to the whole screen as you scroll, and scales the picture so it always covers the window:
   --cl/--ct/--cr/--cb are the clip insets, --cr2 the corner radius, --tx/--ty/--sc the picture's move and scale. */
.reel { position: relative; height: 560svh; --open: 0; --hud: 0; --progress: 0; --cl: 0px; --ct: 0px; --cr: 0px; --cb: 0px; --rad: 0px; --tx: 0px; --ty: 0px; --sc: 1; }
.reel__stage { position: sticky; top: 0; height: 100svh; min-height: 600px; overflow: hidden; }
.reel__frame { position: absolute; inset: 0; z-index: 1; background: #050506; clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--rad)); }
/* The picture keeps the film's 16:9 shape; the script sizes it and moves it into the window */
.reel__poster, .reel__canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 52% 56%;
    transform: translate(var(--tx), var(--ty)) scale(var(--sc));
    transform-origin: 0 0;
}
.reel__canvas { opacity: 0; transition: opacity 0.5s ease; }
.reel.has-frames .reel__canvas { opacity: 1; }
.reel.has-frames .reel__poster { visibility: hidden; transition: visibility 0s 0.5s; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 10, 0.45) 0%, rgba(8, 8, 10, 0) 30%, rgba(8, 8, 10, 0) 62%, rgba(8, 8, 10, 0.7) 100%); opacity: var(--open); pointer-events: none; }
/* the rim of the framed film catches the light like the glass tiles */
.reel__frame::after { content: ""; position: absolute; inset: var(--ct) var(--cr) var(--cb) var(--cl); border-radius: var(--rad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12); opacity: calc(1 - var(--open)); pointer-events: none; }

/* Intro: headline, then a bento of the film cell and two glass tiles */
.reel__intro {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: clamp(100px, 13.5vh, 136px) var(--pad) var(--pad);
}
.reel.is-open .reel__intro { visibility: hidden; }
.reel__title { width: max-content; font-size: 9vw; line-height: 0.82; opacity: calc(1 - var(--open) * 1.8); transform: translateY(calc(var(--open) * -60px)); }
.reel__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.reel__title .line > span { display: block; }
.reel__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto; gap: var(--gap); }
.reel__slot { grid-column: 1 / 9; grid-row: 1 / 3; min-height: 0; }
.reel__proof, .reel__about { position: relative; z-index: 2; opacity: calc(1 - var(--open) * 2); transform: translateX(calc(var(--open) * 80px)) scale(calc(1 - var(--open) * 0.06)); }
/* Protocol tile: the car, the gain, and before/after power and torque in two rows that never wrap */
/* the tile is a size container: type scales with its height (cqh), so the protocol never spills on short screens */
.reel__proof { grid-column: 9 / 13; grid-row: 1; min-height: 0; container-type: size; justify-content: space-between; gap: clamp(6px, 3cqh, 14px) !important; padding: clamp(14px, 5cqh, 24px) !important; }
.proof__head { display: grid; gap: 2px; font-size: clamp(0.75rem, 4.2cqh, 0.875rem); line-height: 1.3; color: rgba(255, 240, 232, 0.85) !important; }
.proof__head b { font-weight: 600; color: var(--text); }
.proof__gain { display: flex; align-items: baseline; gap: 8px; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.2rem, min(1.6rem + 3.6vw, 20cqh), 6rem); line-height: 0.9; letter-spacing: -0.06em; white-space: nowrap; color: var(--text) !important; }
.proof__gain small { font-size: 0.28em; letter-spacing: 0; font-weight: 400; }
.proof__table { display: grid; gap: clamp(2px, 1.5cqh, 6px); }
.proof__table div { display: grid; grid-template-columns: 4.2em 1fr 1fr; align-items: baseline; gap: 8px; padding-top: clamp(3px, 1.5cqh, 6px); border-top: 1px solid rgba(255, 235, 225, 0.25); font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof__table dt, .proof__facts dt { font-size: 0.75rem; color: rgba(255, 240, 232, 0.72); }
.proof__table dd { font-family: var(--f-display); font-size: clamp(0.9375rem, 5.4cqh, 1.3rem); letter-spacing: -0.02em; }
.proof__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: clamp(6px, 2.4cqh, 10px) 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.18); }
.proof__facts dd { font-family: var(--f-display); font-weight: 500; font-size: clamp(0.8125rem, 4.4cqh, 1rem); white-space: nowrap; color: var(--text); }
/* short tile: drop the "before" row (the gain already tells it), then the title, then the table */
@container (max-height: 250px) {
    .proof__table div:first-child { display: none; }
}
@container (max-height: 200px) {
    .proof__head b { display: none; }
}
@container (max-height: 150px) {
    .proof__table { display: none; }
}

.reel__about { grid-column: 9 / 13; grid-row: 2; }
.reel__about p { font-size: var(--fs-sm); }
.reel__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }
.reel__actions .btn { width: 100%; min-height: 46px; }
.reel__hud { z-index: 3; }

.reel__hud { position: absolute; inset: auto var(--pad) clamp(20px, 4vh, 40px); display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap); opacity: var(--hud); transform: translateY(calc((1 - var(--hud)) * 30px)); pointer-events: none; }
.reel__chapters { position: relative; width: min(440px, 100%); min-height: 148px; padding: 20px 22px 18px; }
.reel__chapter { position: absolute; inset: 20px 22px 34px; color: var(--text-2); opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.6s var(--ease); }
.reel__chapter b { display: block; margin-bottom: 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05; color: var(--text); }
.reel__chapter.is-on { opacity: 1; transform: none; }
.reel__progress { position: absolute; left: 22px; right: 22px; bottom: 16px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.reel__progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 10px var(--accent); transform-origin: left; transform: scaleX(var(--progress)); }
.reel__readout { display: grid; justify-items: end; padding: 18px 22px; text-align: right; }
.reel__label { font-size: var(--fs-sm); color: var(--text-2); }
.reel__power { display: flex; align-items: baseline; gap: 6px; color: var(--text-2); font-size: var(--fs-lg); }
.reel__power b { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 2rem + 3.4vw, 5.6rem); line-height: 1; letter-spacing: -0.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.reel__gain { font-family: var(--f-display); font-size: 1.4rem; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.reel__hint { position: absolute; left: 50%; bottom: calc(var(--pad) + 16px); padding: 8px 16px; border-radius: 999px; transform: translateX(-50%); font-size: var(--fs-sm); color: var(--text-2); opacity: calc(1 - var(--open) * 4); pointer-events: none; }
.reel__static { display: none; padding: 16px var(--pad) 0; color: var(--text-2); }
.reel__static b { color: var(--accent-2); }

.reel--static { height: 100svh; }
.reel--static .reel__stage { position: relative; }
.reel--static .reel__hud, .reel--static .reel__hint, .reel--static .reel__canvas { display: none; }
.reel--static + .reel__static { display: block; }

/* ============================================
   Bento sections
   ============================================ */
/* Each section is one screen: the giant heading first, whole, then the bento fills what is left. Nothing overlaps. */
.bento-sec {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.4vh, 24px);
    height: 100svh;
    min-height: 640px;
    max-height: 1100px;
    max-width: calc(var(--wrap) + 2 * var(--pad));
    margin-inline: auto;
    padding: clamp(84px, 11vh, 110px) var(--pad) clamp(16px, 2.6vh, 28px);
}
.bento-sec__word { flex: none; width: max-content; max-width: 100%; font-size: 14vw; line-height: 0.78; padding-top: 0.06em; color: var(--text); }
.bento { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tile { position: relative; min-width: 0; overflow: hidden; border-radius: var(--r); }
.tile.glass { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2vw, 28px); }
.tile h2 { font-size: var(--fs-h2); }
.tile__huge { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 1.2rem + 3.6vw, 5.4rem); line-height: 0.9; letter-spacing: -0.06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile--gain, .bento--log .tile--stat { justify-content: space-between; }
.tile__big { font-family: var(--f-display); font-size: clamp(1.4rem, 0.9rem + 1.3vw, 2.2rem); line-height: 1.08; letter-spacing: -0.03em; }
.tile p:not(.tile__huge):not(.tile__big) { color: var(--text-2); }
.glass--accent p:not(.tile__huge) { color: rgba(255, 240, 232, 0.85) !important; }

/* Photo tiles: the picture fills the tile, a glass chip carries the caption */
.tile--photo img, .tile--svc img, .tile--person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo figcaption, .tile--person figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; font-size: var(--fs-sm); color: var(--text); line-height: 1.4; }
.tile--person figcaption b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 2px; }
.tile--person img { object-position: 50% 20%; }
@media (hover: hover) and (pointer: fine) {
    .tile--photo:hover img, .tile--svc:hover img, .tile--person:hover img { transform: scale(1.06); }
}

/* Calculator */
.bento--dyno .tile--calc { grid-column: 1 / 6; grid-row: 1 / 4; }
.bento--dyno .tile--chart { grid-column: 6 / 13; grid-row: 1 / 3; }
.bento--dyno .tile--gain { grid-column: 6 / 9; grid-row: 3; justify-content: space-between; }
.bento--dyno .tile--photo { grid-column: 9 / 13; grid-row: 3; }
.tile--calc { gap: 10px !important; }
.tile--calc h2 { margin-bottom: 6px; }
.calc__label { font-size: var(--fs-sm); color: var(--text-3); margin-top: 6px; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select {
    width: 100%;
    min-height: 54px;
    padding: 0 44px 0 18px;
    border: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    appearance: none;
    font-family: var(--f-display);
    font-size: var(--fs-lg);
    cursor: pointer;
}
.select option, .select optgroup { background: #1a1a1e; color: var(--text); font-family: var(--f-sans); }
.stages { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 0; padding: 5px; border: 0; border-radius: 999px; }
.stages label { position: relative; z-index: 1; }
.stages input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.stages span { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); transition: color 0.3s ease; }
.stages input:checked + span { color: var(--accent-ink); }
.stages input:focus-visible + span { outline: 2px solid var(--text); outline-offset: -3px; }
.stages__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 230, 215, 0.8), 0 6px 20px -6px rgba(255, 95, 46, 0.9); transform: translateX(calc(var(--s, 0) * 100%)); transition: transform 0.5s var(--spring); }
.calc__stage { font-size: var(--fs-sm); min-height: 3em; margin-top: 4px; }
.calc__meta { font-size: var(--fs-sm); color: var(--text) !important; }
.calc__book { margin-top: auto; align-self: flex-start; }

.tile--chart { gap: 0 !important; }
.chart__readout { display: flex; gap: clamp(24px, 4vw, 64px); }
.chart__readout p { display: flex; flex-direction: column; color: var(--text) !important; }
.chart__readout span { font-size: var(--fs-sm); color: var(--text-3); }
.chart__readout strong { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 1.4rem + 3vw, 4.6rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.chart__readout p:first-child strong { color: var(--accent-2); text-shadow: 0 0 30px rgba(255, 95, 46, 0.5); }
.chart__readout em { font-style: normal; font-size: var(--fs-sm); color: var(--text-3); }
.chart__readout em b { color: var(--text-2); font-weight: 500; }
.chart { flex: 1; min-height: 0; width: 100%; height: 100%; margin-top: 10px; overflow: visible; }
.chart__grid line { stroke: rgba(255, 255, 255, 0.08); }
.chart__grid text { fill: var(--text-3); font-family: var(--f-sans); font-size: 11px; }
.chart__area { fill: url(#gainFill); }
.chart__before { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; stroke-dasharray: 4 5; }
.chart__after { fill: none; stroke: var(--accent-2); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255, 95, 46, 0.7)); }
.chart__tq-before { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.2; stroke-dasharray: 2 5; }
.chart__tq-after { fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.5; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 0.8125rem; color: var(--text-3); }
.k { display: inline-flex; align-items: center; gap: 8px; }
.k::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--accent-2); }
.k--before::before { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 4px, transparent 4px 8px); }
.k--torque::before { background: rgba(255, 255, 255, 0.75); height: 2px; }

/* Prices */
.bento--prices .tile--svc-xl { grid-column: 1 / 6; grid-row: 1 / 3; }
.bento--prices .tile--svc:nth-child(2) { grid-column: 6 / 9; grid-row: 1; }
.bento--prices .tile--svc:nth-child(3) { grid-column: 9 / 13; grid-row: 1; }
.bento--prices .tile--svc:nth-child(4) { grid-column: 6 / 9; grid-row: 2; }
.bento--prices .tile--svc:nth-child(5) { grid-column: 9 / 11; grid-row: 2; }
.bento--prices .tile--svc:nth-child(6) { grid-column: 11 / 13; grid-row: 2; }
.bento--prices .tile--svc:nth-child(7) { grid-column: 1 / 5; grid-row: 3; }
/* Estimate tile: the promise and its note on the left, the button on the right, centred in the tile */
.bento--prices .tile--note { grid-column: 5 / 13; grid-row: 3; flex-direction: row !important; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 48px) !important; }
.note__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.note__text p:last-child { font-size: var(--fs-sm); max-width: 52ch; }
.tile--note .btn { flex: none; }
.tile--svc .svc { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; padding: 12px 14px; border-radius: calc(var(--r) - 8px); }
.svc h3 { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.3rem); }
.svc p { grid-column: 1; font-size: 0.8125rem; color: var(--text-2); line-height: 1.35; }
.svc b { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile--svc-xl .svc { left: 14px; right: 14px; bottom: 14px; padding: 18px 20px; }
.tile--svc-xl .svc h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); }
.tile--svc-xl .svc p { font-size: var(--fs-sm); max-width: 40ch; }
.tile--svc-xl .svc b { font-size: var(--fs-sm); background: var(--accent); color: var(--accent-ink); }
.bento--prices .tile--svc:nth-child(5) .svc, .bento--prices .tile--svc:nth-child(6) .svc { grid-template-columns: 1fr; }
.bento--prices .tile--svc:nth-child(5) .svc b, .bento--prices .tile--svc:nth-child(6) .svc b { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }

/* A day on the dyno */
.bento--day .tile--day-photo { grid-column: 1 / 8; grid-row: 1 / 3; }
/* «1 день» tile: the figure and its explanation side by side, the figure never wraps */
.bento--day .tile--stat { grid-column: 1 / 8; grid-row: 3; display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 2.4vw, 36px) !important; }
.tile--day-stat .tile__huge { white-space: nowrap; font-size: clamp(2.6rem, 1.4rem + 3.4vw, 5rem); }
.tile--day-stat p:last-child { font-size: var(--fs-sm); max-width: 44ch; }
.bento--day .tile--schedule { grid-column: 8 / 13; grid-row: 1 / 4; }
.schedule { flex: 1; display: flex; flex-direction: column; justify-content: space-between; margin-top: 6px; }
.schedule li { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.schedule time { font-family: var(--f-display); font-size: 1.25rem; font-weight: 300; letter-spacing: -0.03em; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.schedule h3 { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.schedule p { font-size: 0.8125rem; line-height: 1.4; }

/* Team */
.bento--team .tile--person:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 4; }
.bento--team .tile--person:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 4; }
.bento--team .tile--person:nth-child(3) { grid-column: 7 / 10; grid-row: 1 / 4; }
.bento--team .tile--quote { grid-column: 10 / 13; grid-row: 1 / 4; justify-content: space-between; }
.tile--quote p { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.3rem, 0.9rem + 1vw, 1.9rem); line-height: 1.22; letter-spacing: -0.02em; color: var(--text) !important; }
.tile--quote footer { font-size: var(--fs-sm); color: var(--text-3); }
.tile h2.tag { font-family: var(--f-sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; line-height: 1.2; }

/* Log */
.bento--log .tile--table { grid-column: 1 / 9; grid-row: 1 / 4; }
.bento--log .tile--stat { grid-column: 9 / 13; grid-row: 1; justify-content: space-between; }
.bento--log .tile--photo { grid-column: 9 / 13; grid-row: 2 / 4; }
.log { width: 100%; margin-top: auto; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.log th { padding: 0 0 10px; font-size: 0.8125rem; font-weight: 400; color: var(--text-3); text-align: left; }
.log td { padding: clamp(9px, 1.6vh, 14px) 12px clamp(9px, 1.6vh, 14px) 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.log td:first-child { font-weight: 500; }
.log td:nth-child(2) { color: var(--text-2); }
.log .num { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 16px; }
.log td.gain { font-family: var(--f-display); font-size: 1.35rem; font-weight: 300; color: var(--accent-2); }

/* Booking */
.booking { position: relative; height: 100svh; min-height: 640px; max-height: 1100px; display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 24px); padding: clamp(84px, 11vh, 110px) var(--pad) clamp(16px, 2.6vh, 28px); overflow: hidden; isolation: isolate; }
.booking__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.booking::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(8, 8, 10, 0.25) 25%, rgba(8, 8, 10, 0.3) 70%, var(--bg) 100%); }
.booking__word { width: 100%; max-width: var(--wrap); margin-inline: auto; font-size: min(14vw, 19vh); line-height: 0.78; padding-top: 0.06em; color: var(--text); }
.booking__inner { width: 100%; max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 4fr 7fr; gap: var(--gap); align-items: stretch; }
.booking__info { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 32px); }
.booking__info h2 { font-size: var(--fs-h2); }
.booking__info dl { margin-top: auto; display: grid; gap: 12px; }
.booking__info dt { font-size: 0.8125rem; color: var(--text-3); }
.booking__info dd { font-family: var(--f-display); font-size: var(--fs-lg); letter-spacing: -0.02em; }
.form { padding: clamp(20px, 2.4vw, 32px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff { display: flex; flex-direction: column; gap: 6px; }
.ff--full { grid-column: 1 / -1; }
.ff span { font-size: 0.8125rem; color: var(--text-2); padding-left: 4px; }
.ff input, .ff select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    appearance: none;
    font-size: var(--fs-base);
    transition: box-shadow 0.2s ease;
}
.ff select { cursor: pointer; padding-right: 40px; background: rgba(0, 0, 0, 0.32) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.ff select option { background: #1a1a1e; color: var(--text); }
.ff input::placeholder { color: var(--text-3); }
.ff input:focus, .ff select:focus { outline: none; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--accent); }
.ff [aria-invalid="true"] { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 2px #ff7a5c; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 0.75rem; line-height: 1.4; color: var(--text-3); cursor: pointer; }
.consent input { flex: none; appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 6px; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); cursor: pointer; transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.consent input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23140804' stroke-width='2'/%3E%3C/svg%3E") no-repeat center; box-shadow: none; }
.consent input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.consent input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff7a5c; }
.consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.form__submit { width: 100%; margin-top: 14px; min-height: 56px; font-size: var(--fs-base); }
.form__status { min-height: 1.4em; margin-top: 12px; font-size: var(--fs-sm); color: var(--accent-2); }

/* Footer */
.foot { position: relative; padding: 40px var(--pad) 24px; overflow: hidden; }
.foot__word { width: max-content; margin: 0 auto 0.12em; font-size: 12vw; line-height: 0.8; padding-top: 0.06em; color: var(--text); }
.foot__addr { color: var(--text-2); }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; max-width: var(--wrap); margin-inline: auto; padding: 16px 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: var(--fs-sm); }
.foot__bar nav, .foot__contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); }
.foot__bar a { transition: color 0.2s ease; }
.foot__bar a:hover { color: var(--text); }
.foot__credits { max-width: var(--wrap); margin: 20px auto 0; padding-inline: 18px; font-size: 0.75rem; color: var(--text-3); line-height: 1.6; }
.foot__credits a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================
   Motion
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .js [data-line] { transform: translateY(105%); animation: up 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 0.12s + 0.15s); }
    .js [data-rise] { opacity: 0; transform: translateY(24px) scale(0.98); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 0.1s + 0.5s); }
    /* once risen, the hero tiles hand over to the scroll and slide away as the film opens */
    .js .reel [data-rise].is-risen { animation: none; opacity: calc(1 - var(--open) * 2); transform: translateX(calc(var(--open) * 80px)) scale(calc(1 - var(--open) * 0.06)); }
    .js [data-reveal] { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
    .js [data-reveal].is-in { opacity: 1; transform: none; }
    .js .bento-sec__word, .js .booking__word, .js .foot__word { transform: translateY(var(--drift, 0px)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============================================
   ≤ 1100: tighten the grids
   ============================================ */
@media (max-width: 1100px) {
    .nav__links { gap: 14px; }
    .nav__links a:nth-child(3) { display: none; }
    .bento--dyno .tile--calc { grid-column: 1 / 7; }
    .bento--dyno .tile--chart { grid-column: 7 / 13; }
    .bento--dyno .tile--gain { grid-column: 7 / 10; }
    .bento--dyno .tile--photo { grid-column: 10 / 13; }
}

/* ============================================
   Brands: a running line of logos between the hero and the first bento
   ============================================ */
/* the track holds two identical lists; moving it by one list's width (-50%) and starting over is seamless */
.brands { position: relative; padding: clamp(28px, 5vh, 52px) 0; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, 0.08); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brands__track { display: flex; width: max-content; animation: brands 36s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__list { display: flex; align-items: center; gap: clamp(48px, 6vw, 96px); padding-right: clamp(48px, 6vw, 96px); }
/* the logo file is only a shape; its colour is the text colour, and the accent under the pointer */
.brand { flex: none; height: calc(clamp(34px, 4vw, 52px) * var(--h, 1)); aspect-ratio: var(--w); background-color: var(--text-2); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; transition: background-color 0.35s ease; }
.brand:hover { background-color: var(--accent); }
@keyframes brands { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .brands { -webkit-mask-image: none; mask-image: none; }
    .brands__track { width: auto; animation: none; justify-content: center; }
    .brands__list { flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); }
    .brands__list[aria-hidden] { display: none; }
}

/* ============================================
   Plain pages: privacy policy, 404
   ============================================ */
.page__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 780px; margin: 0 auto; padding: 24px var(--pad); }
.page__body { max-width: 780px; margin: 0 auto; padding: 32px var(--pad) 80px; }
.page__body h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em; }
.page__body h2 { margin-top: 36px; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.02em; }
.page__body p { margin-top: 12px; color: var(--text-2); max-width: 66ch; }
.page__body p a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.page__lead { color: var(--text-3) !important; }
.page--404 .page__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 8vh; }
.page--404 .btn { margin-top: 24px; }
.page__code { font-size: clamp(7rem, 30vw, 16rem); color: var(--accent); }

/* ============================================
   Short desktop screens (laptops with browser chrome): compact tiles so one screen still holds them
   ============================================ */
@media (min-width: 901px) and (max-height: 800px) {
    .tile.glass:not(.reel__proof) { padding: 16px 18px; }
    .reel__intro { padding-top: 92px; }
    .tile__huge { font-size: min(clamp(2.6rem, 1.2rem + 3.6vw, 5.4rem), 7.5vh); }
    .tile--gain, .bento--log .tile--stat { gap: 4px !important; }
    .reel__about p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .reel__actions .btn { min-height: 40px; }
    .tile--calc { gap: 6px !important; }
    .tile--calc .tag { display: none; }
    .tile--calc h2 { margin-bottom: 0; font-size: clamp(1.3rem, 3.4vh, 2.2rem); }
    .calc__label { margin-top: 0; }
    .select select { min-height: 44px; }
    .stages span { min-height: 36px; }
    .calc__stage { min-height: 0; margin-top: 0; }
    .calc__book { min-height: 42px; }
    .tile--day-stat .tile__huge { font-size: min(clamp(2.6rem, 1.4rem + 3.4vw, 5rem), 8vh); }
    .tile--day-stat p:last-child { font-size: 0.8125rem; line-height: 1.35; }
    .schedule li { padding: 6px 0; }
    .schedule p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ============================================
   ≤ 900: phones and small tablets — the bentos stack
   ============================================ */
@media (max-width: 900px) {
    .nav__links, .nav__cta, .hide-phone { display: none; }
    .nav__toggle { display: inline-flex; }

    /* the pill unfolds into a card: its second row (the drawer) grows from 0 to its height */
    .nav__pill { flex-wrap: wrap; row-gap: 0; padding: 6px 6px 6px 18px; border-radius: 28px; transition: background-color 0.4s ease; }
    .nav.is-open .nav__pill { background-color: rgba(14, 14, 17, 0.72); }
    /* the drawer spans the pill edge to edge (the pill pads 18px left, 6px right) */
    .drawer { display: grid; grid-template-rows: 0fr; flex-basis: calc(100% + 12px); margin-left: -12px; transition: grid-template-rows 0.55s var(--ease); }
    .nav.is-open .drawer { grid-template-rows: 1fr; }
    .drawer__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.55s; }
    .nav.is-open .drawer__inner { visibility: visible; transition: none; }
    .drawer__links { display: grid; padding: 10px 12px 0; }
    .drawer__links a, .drawer__actions, .drawer__contacts { opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.3s var(--ease); }
    .nav.is-open .drawer__links a, .nav.is-open .drawer__actions, .nav.is-open .drawer__contacts { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.5s var(--ease); transition-delay: calc(90ms + var(--k) * 40ms); }
    .drawer__links a { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--f-display); font-size: 1.45rem; font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
    .drawer__links a:first-child { border-top: 0; }
    .drawer__links small { grid-column: 1; margin-top: 4px; font-family: var(--f-sans); font-size: 0.75rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
    /* a thin arrow at the end of each row */
    .drawer__links a::after { content: ""; grid-column: 2; grid-row: 1 / 3; width: 9px; height: 9px; margin-right: 6px; border-top: 1.5px solid var(--text-3); border-right: 1.5px solid var(--text-3); transform: rotate(45deg); }
    .drawer__links a.is-active { color: var(--accent-2); }
    .drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
    .drawer__actions .btn { min-height: 50px; }
    .drawer__contacts { display: flex; align-items: center; gap: 8px; padding: 10px 6px 4px 0; font-size: 0.8125rem; color: var(--text-2); }
    .drawer__contacts .social { width: 44px; height: 44px; }
    .drawer__contacts span { margin-left: auto; color: var(--text-3); }

    /* the page under the open card dims and stays put */
    html.menu-open { overflow: hidden; }
    .nav__scrim { display: block; position: fixed; inset: 0; z-index: 49; background: rgba(5, 5, 6, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
    html.menu-open .nav__scrim { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }

    .reel { height: auto; }
    .reel__stage { position: relative; height: auto; min-height: 0; }
    .reel__intro { position: relative; inset: auto; }
    .reel__title { width: auto; font-size: 13vw !important; }
    .reel__title .line > span { white-space: normal; }
    /* phone: the film cell is a 16:9 band, the two tiles sit side by side under it */
    .reel__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-content: start; }
    .reel__slot { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; }
    .reel__proof { grid-column: 1; grid-row: 2; }
    .reel__about { grid-column: 2; grid-row: 2; }
    .reel__proof { container-type: normal; padding: 16px !important; gap: 10px !important; }
    .proof__head { font-size: 0.8125rem; }
    .proof__gain { font-size: 2.6rem; }
    .proof__table div { grid-template-columns: 1fr 1fr; row-gap: 2px; }
    .proof__table dt { grid-column: 1 / -1; }
    .proof__table dd { font-size: 0.875rem; }
    .proof__facts { grid-template-columns: 1fr; gap: 6px; }
    .proof__facts div { display: flex; justify-content: space-between; gap: 6px; }
    .proof__facts dd { font-size: 0.8125rem; }
    .reel__about { padding: 16px !important; }
    .reel__about p { font-size: 1rem; line-height: 1.4; }
    .reel__actions .btn { width: 100%; min-height: 48px; padding: 8px 12px; white-space: normal; text-align: center; line-height: 1.2; }
    /* phone: no scroll film; the hero is one screen and the film plays on a loop in its window */
    .reel__shade, .reel__hud { display: none; }

    .bento-sec { height: auto; min-height: 0; max-height: none; padding-top: 72px; }
    .bento-sec__word { font-size: 18vw; }
    .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: auto; }
    .bento--prices .tile--note { flex-direction: column !important; align-items: flex-start; }
    .bento--day .tile--stat { grid-template-columns: 1fr; }
    .bento > .tile { grid-column: 1 / -1 !important; grid-row: auto !important; }
    .tile--photo, .tile--svc, .tile--person { min-height: 0; aspect-ratio: 4 / 3; }
    .bento--prices .tile--svc:not(.tile--svc-xl), .bento--team .tile--person { grid-column: auto !important; aspect-ratio: 3 / 4; }
    .bento--prices .tile--svc:not(.tile--svc-xl) .svc { grid-template-columns: 1fr; }
    .bento--prices .tile--svc:not(.tile--svc-xl) .svc b { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
    .bento--prices .tile--svc-xl { aspect-ratio: 4 / 5; }
    .bento--team .tile--person:first-child { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3; }
    .bento--prices .tile--note { grid-template-columns: 1fr; }
    .tile--note .btn { justify-self: start; margin-top: 12px; }
    .chart { height: auto; }
    .bento--day .tile--stat { flex-direction: column !important; align-items: flex-start; gap: 10px !important; }
    .log td:nth-child(2), .log th:nth-child(2) { display: none; }

    .booking { height: auto; min-height: 0; max-height: none; padding-top: 72px; }
    .booking__inner { grid-template-columns: 1fr; }
    .booking__word { font-size: 18vw; }
    .form__grid { grid-template-columns: 1fr; }

    .foot__word { font-size: 15vw; }
}
