/* ============================================================
   Nikita Kardash — UGC portfolio
   One sans (Hanken Grotesk) + one mono for timecode-style labels.
   Dark "screening room" grounds, paper reading bands, one REC accent.
   ============================================================ */

:root {
  --ink: #0c0c0b;
  --ink-2: #171614;
  --ink-3: #262521;
  --paper: #eceae3;
  --paper-2: #e0ddd4;
  --rec: #ff4b1f;

  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(20px, 4.4vw, 64px);
  --max: 1400px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad-y: clamp(80px, 10vw, 152px);
}

/* Each ground sets its own ink, so components never hard-code a colour */
.dark  { --bg: var(--ink);   --fg: #f2f0e9; --mute: #a3a097; --line: rgba(242, 240, 233, .16); --slate: var(--ink-2); --slate-line: rgba(242, 240, 233, .5); --ghost: rgba(242, 240, 233, .17); color-scheme: dark; }
.paper { --bg: var(--paper); --fg: #11110f; --mute: #5a574f; --line: rgba(17, 17, 15, .16);   --slate: var(--ink-2); --slate-line: rgba(242, 240, 233, .5); --ghost: rgba(17, 17, 15, .15); color-scheme: light; }
.dark, .paper { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; scroll-padding-bottom: 96px; background: var(--ink); }
body { margin: 0; font: 400 17px/1.5 var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: clip; padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); -webkit-tap-highlight-color: rgba(255, 75, 31, .2); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, input { touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--rec); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }

.skip { position: absolute; left: 16px; top: 16px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: #f2f0e9; color: #11110f; font-weight: 500; transform: translateY(-96px); transition: transform .2s var(--ease); }
.skip:focus-visible { transform: none; }

/* ---------- small parts ---------- */
.rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); flex: none; }

.link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease); }
.link:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) { .link:hover::after { transform: scaleX(1); } }

/* viewfinder corners */
.vf { position: relative; }
.vf::before {
  content: ""; position: absolute; inset: 12px; z-index: 3; pointer-events: none;
  --c: var(--slate-line); --l: 16px; --t: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat;
}

/* "not filled in yet" = ghost type, everywhere */
.unset { color: var(--ghost); }

/* ---------- buttons ---------- */
/* Hover styles sit inside (hover: hover) so they do not stick after a tap on a phone */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 16px; line-height: 1; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line); }
.btn__arrow { transition: transform .25s var(--ease); }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
@media (hover: hover) { .btn:hover .btn__arrow { transform: translate(2px, -2px); } }
@media (hover: hover) { .btn--primary:hover { background: var(--rec); color: #0c0c0b; } }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--fg); } }
.btn:active { transform: translateY(0) scale(.98); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 82% 46%, rgba(255, 75, 31, .13), transparent 70%), radial-gradient(50% 60% at 8% 100%, rgba(242, 240, 233, .06), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.top__mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; white-space: nowrap; }
.top__mark b { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.top__mark .mono { color: var(--mute); padding-left: 10px; border-left: 1px solid var(--line); }
.top__status { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); text-align: right; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #62d26f; box-shadow: 0 0 0 4px rgba(98, 210, 111, .16); }

.hero__grid { flex: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 6vw, 96px); align-items: end; padding-block: clamp(12px, 3vh, 40px) clamp(24px, 4.5vh, 48px); }
.hero__grid.no-reel { grid-template-columns: minmax(0, 1fr); }
.hero__text { container-type: inline-size; min-width: 0; }


.hero__title { display: block; font-weight: 500; }
.hero__name { display: block; font-size: clamp(56px, min(calc(100cqi / (var(--len, 7) * var(--cw, .44))), 18svh), 320px); line-height: .86; letter-spacing: -.055em; margin-left: -.045em; }
.hero__name .line { display: block; white-space: nowrap; overflow: clip; overflow-clip-margin: .02em; padding-block: .03em .2em; }
.hero__name .line + .line { margin-top: -.25em; }
.hero__name .ch { display: inline-block; }
.hero__role { display: block; margin-top: -.1em; font-size: clamp(22px, 2.5vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 400; }
.hero__lead { margin-top: clamp(12px, 2vh, 20px); max-width: 66ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--mute); text-wrap: pretty; }
.niches { margin-top: clamp(14px, 2.2vh, 22px); }
.niches__label { color: var(--mute); margin-bottom: 10px; }
.niches__list { display: flex; flex-wrap: wrap; gap: 8px; }
.niches__list li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 1.3; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3vh, 30px); }

.hero__reel { justify-self: end; align-self: center; width: 100%; max-width: min(430px, calc((100svh - 250px) * .688)); }
.reel { aspect-ratio: 1040 / 1512; border-radius: 22px; overflow: hidden; background: var(--slate); border: 1px solid var(--line); box-shadow: 0 40px 120px -30px rgba(255, 75, 31, .28), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.reel::before { inset: 18px; --c: rgba(255, 255, 255, .75); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero__strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 18px 26px; border-top: 1px solid var(--line); color: var(--mute); }
.strip__down { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--fg); }
.strip__down svg { transition: transform .3s var(--ease); }
@media (hover: hover) { .strip__down:hover svg { transform: translateY(3px); } }
.strip__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.strip__links a { min-height: 32px; transition: color .2s; }
@media (hover: hover) { .strip__links a:hover { color: var(--fg); } }

/* slate = an empty slot */
.slate { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #1c1b18, #121210 60%); color: #f2f0e9; --ghost: rgba(242, 240, 233, .16); }
.slate__num { font-size: clamp(64px, 9vw, 132px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.slate__tag, .slate__hint { position: absolute; left: 0; right: 0; text-align: center; font-size: 11px; }
.slate__tag { bottom: 46px; color: #f2f0e9; }
.slate__hint { bottom: 26px; color: rgba(242, 240, 233, .5); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: var(--pad-y); }
.section--tight { padding-top: 0; }

.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 28ch); column-gap: 48px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.head__no { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; color: var(--mute); margin-bottom: 20px; }
.head__no::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.head__title { font-size: clamp(44px, 7.4vw, 112px); line-height: .92; letter-spacing: -.05em; font-weight: 500; text-wrap: balance; scroll-margin-top: 24px; }
.head__side { color: var(--mute); font-size: 16px; line-height: 1.5; padding-bottom: .5em; text-wrap: pretty; }

/* ---------- work: phones ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px) clamp(14px, 2.2vw, 36px); }
.card { min-width: 0; container-type: inline-size; }

/* iPhone: the screen is 9:19.5, the 9:16 video sits under the Dynamic Island
   and the sound controls take the strip below it, so nothing covers the video */
.phone { --bezel: 2.4cqi; --sw: calc(100cqi - 2 * var(--bezel)); --vt: 15cqi; --vh: calc(var(--sw) * 16 / 9); position: relative; padding: var(--bezel); border-radius: 17.5cqi; background: #070707; box-shadow: inset 0 0 0 .55cqi #3b3b3f, inset 0 0 0 1px rgba(255, 255, 255, .28), 0 30px 56px -24px rgba(17, 17, 15, .6), 0 8px 16px -8px rgba(17, 17, 15, .35); transition: transform .4s var(--ease); }
.phone::before, .phone::after { content: ""; position: absolute; width: 1cqi; border-radius: 1cqi; background: #2a2a2d; }
.phone::before { left: -.9cqi; top: 16%; height: 3.4%; box-shadow: 0 13cqi 0 #2a2a2d, 0 13cqi 0 #2a2a2d, 0 26cqi 0 #2a2a2d; }
.phone::after { right: -.9cqi; top: 25%; height: 9.5%; }
@media (hover: hover) { .card:hover .phone { transform: translateY(-4px); } }
.phone__screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 15.2cqi; overflow: hidden; background: #000; isolation: isolate; }
.phone__screen video { position: absolute; left: 0; top: var(--vt); width: 100%; height: var(--vh); object-fit: cover; }
.phone__island { position: absolute; z-index: 4; top: calc(var(--bezel) + 3.6cqi); left: 50%; width: 26cqi; height: 7.4cqi; margin-left: -13cqi; border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); pointer-events: none; }
.phone__island::after { content: ""; position: absolute; right: 1.9cqi; top: 50%; width: 2.6cqi; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #24304a, #0a0c12 70%); }

.phone__tap { position: absolute; left: 0; top: var(--vt); z-index: 1; width: 100%; height: var(--vh); }
.phone__tap:focus-visible { outline-offset: -4px; }
.phone__play { position: absolute; z-index: 2; left: 50%; top: calc(var(--vt) + var(--vh) / 2); width: clamp(48px, 24cqi, 72px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; display: grid; place-items: center; padding-left: 3px; background: rgba(242, 240, 233, .94); color: #0c0c0b; pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
@media (hover: hover) { .card:hover .phone__play { transform: scale(1.08); } }
.is-playing .phone__play { opacity: 0; transform: scale(.7); }

.phone__bar { position: absolute; z-index: 3; left: 9cqi; right: 11cqi; top: calc(var(--vt) + var(--vh)); bottom: 0; display: flex; align-items: center; gap: 2.5cqi; color: #fff; }
.phone__btn { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
@media (hover: hover) { .phone__btn:hover { background: rgba(255, 255, 255, .18); } }
.phone__btn:active { transform: scale(.92); }
.phone__vol { -webkit-appearance: none; appearance: none; flex: 1 1 0; min-width: 0; height: 36px; margin: 0; background: transparent; cursor: pointer; }
.phone__vol::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, #fff var(--v, 100%), rgba(255, 255, 255, .32) var(--v, 100%)); }
.phone__vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.phone__vol::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); }
.phone__vol::-moz-range-progress { height: 3px; border-radius: 3px; background: #fff; }
.phone__vol::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: #fff; }
.phone__progress { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--vt) + var(--vh) - 3px); height: 3px; background: rgba(255, 255, 255, .22); pointer-events: none; }
.phone__progress span { display: block; height: 100%; background: var(--rec); transform: scaleX(0); transform-origin: left center; }

.card__stat { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: clamp(12px, 5cqi, 20px); min-height: 32px; text-align: center; }
.card__stat b { font-size: clamp(22px, 9.5cqi, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .2s; }
.card__stat .mono { color: var(--mute); }
@media (hover: hover) { a.card__stat:hover b { color: #c8370f; } }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: clamp(20px, 3vw, 40px) 24px clamp(20px, 3vw, 40px) 0; }
.stat + .stat { padding-left: clamp(16px, 2.4vw, 40px); border-left: 1px solid var(--line); }
.stat dt { color: var(--mute); font-size: 16px; }
.stat dd { font-size: clamp(64px, 9.6vw, 148px); line-height: .9; letter-spacing: -.055em; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- brands ---------- */
.brands { display: flex; flex-wrap: wrap; align-items: center; gap: .16em .42em; font-size: clamp(32px, 5.6vw, 88px); line-height: 1.1; letter-spacing: -.045em; font-weight: 500; }
.brands li { display: inline-flex; align-items: center; gap: .42em; }
.brands li:not(:last-child)::after { content: "/"; color: var(--rec); font-weight: 400; }
.brand { display: inline-flex; align-items: center; gap: .22em; transition: color .2s; }
.brand__logo { width: .68em; height: .68em; flex: none; border-radius: 23%; object-fit: cover; box-shadow: 0 0 0 1px rgba(242, 240, 233, .14); transition: transform .35s var(--ease); }
@media (hover: hover) { a.brand:hover { color: var(--rec); } }
@media (hover: hover) { a.brand:hover .brand__logo { transform: scale(1.08) rotate(-4deg); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.about.no-photo { grid-template-columns: minmax(0, 1fr); }
.about__photo { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--slate); max-width: 520px; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.about__text { display: grid; gap: 1em; max-width: 30em; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.22; letter-spacing: -.03em; text-wrap: pretty; }
.about__text p + p { color: var(--mute); }

.sub { margin-top: clamp(64px, 9vw, 128px); margin-bottom: 24px; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -.03em; font-weight: 500; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); counter-reset: step; }
.step { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--fg); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mute); margin-bottom: clamp(28px, 4vw, 56px); }
.step h4 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; font-weight: 500; }
.step p { color: var(--mute); font-size: 16px; line-height: 1.5; text-wrap: pretty; }

/* ============================================================
   CONTACT
   ============================================================ */
.close { padding-block: var(--pad-y) calc(112px + env(safe-area-inset-bottom)); }
.close .head__no { margin-bottom: clamp(24px, 4vw, 48px); }
.close .head__no span + span { color: var(--fg); }
.close__title { font-size: clamp(48px, 9.4vw, 156px); line-height: .9; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; max-width: 12em; }
.close__row { margin-top: clamp(32px, 5vw, 64px); }
.close__text { max-width: 36ch; color: var(--mute); font-size: clamp(17px, 1.5vw, 21px); text-wrap: pretty; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.pill { display: inline-flex; align-items: center; gap: 14px; min-height: 68px; padding: 0 28px; border: 1px solid rgba(242, 240, 233, .45); border-radius: 999px; font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.01em; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.pill svg { flex: none; }
.pill__text { min-width: 0; overflow-wrap: anywhere; }
.pill__go { margin-left: 6px; transition: transform .25s var(--ease); }
.pill--fill { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (hover: hover) { .pill:hover { transform: translateY(-2px); background: var(--fg); color: var(--bg); border-color: var(--fg); } }
@media (hover: hover) { .pill--fill:hover { background: var(--rec); border-color: var(--rec); color: #0c0c0b; } }
@media (hover: hover) { .pill:hover .pill__go { transform: translate(3px, -3px); } }
.pill:active { transform: translateY(0) scale(.98); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mute); }
.legal a { padding-block: 12px; }
.legal__tm { font-size: 11px; }

/* ============================================================
   DOCK (floating section bar)
   ============================================================ */
.dock { position: fixed; z-index: 50; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(20, 20, 18, .84); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(242, 240, 233, .14); box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .55); color: #f2f0e9; font-size: 14.5px; font-weight: 500; transition: transform .5s var(--ease), opacity .3s, visibility 0s; }
.dock.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform .5s var(--ease), opacity .3s, visibility 0s .5s; }
.dock a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
@media (hover: hover) { .dock a:hover { background: rgba(242, 240, 233, .08); } }
.dock a { position: relative; }
.dock__glider { position: absolute; left: 0; top: 6px; height: 44px; width: 0; border-radius: 999px; background: rgba(242, 240, 233, .16); opacity: 0; pointer-events: none; transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.dock .dock__cta, .dock .dock__cta[aria-current="true"] { background: #f2f0e9; color: #0c0c0b; margin-left: 6px; }
@media (hover: hover) { .dock .dock__cta:hover { background: var(--rec); } }

/* ============================================================
   TOAST
   ============================================================ */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(20px + env(safe-area-inset-top)); translate: -50% 0; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: #f2f0e9; color: #0c0c0b; font-size: 15px; font-weight: 500; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(-16px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.toast.is-on { opacity: 1; transform: none; }

.noscript { padding: 24px; background: var(--paper); color: #11110f; }

/* ============================================================
   HERO ENTRANCE (once, on load)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__name .ch { transform: translateY(125%); animation: rise 1s var(--ease) forwards; animation-delay: calc(120ms + var(--i) * 45ms); }
  .js [data-enter] { opacity: 0; transform: translateY(14px); animation: fade-up .8s var(--ease) forwards; }
  .js [data-enter="1"] { animation-delay: 80ms; }
  .js [data-enter="2"] { animation-delay: 620ms; }
  .js [data-enter="3"] { animation-delay: 720ms; }
  .js [data-enter="4"] { animation-delay: 800ms; }
  .js [data-enter="5"] { animation-delay: 880ms; }
  .js [data-enter="reel"] { transform: translateY(28px) scale(.97); animation-duration: 1.1s; animation-delay: 380ms; }
  @keyframes rise { to { transform: translateY(0); } }
  @keyframes fade-up { to { opacity: 1; transform: none; } }
}

/* ============================================================
   REVEAL ON SCROLL (app.js marks the elements and adds .in)
   ============================================================ */
main section:focus, .close:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }

  /* section heads: the title rises out of a mask, the rule draws, the note fades */
  .js [data-reveal="head"], .js [data-reveal="title"], .js [data-reveal="rule"] { opacity: 1; transform: none; }
  .js [data-reveal="head"] .head__title, .js [data-reveal="title"] { overflow: clip; padding-bottom: .16em; margin-bottom: -.16em; }
  .js .rise { display: block; transform: translateY(112%); transition: transform 1.15s var(--ease); }
  .js [data-reveal].in .rise { transform: none; }
  .js [data-reveal="head"] .head__no::after, .js .head__no[data-reveal]::after { transform: scaleX(0); transform-origin: left center; transition: transform 1.3s var(--ease) .1s; }
  .js [data-reveal="head"].in .head__no::after, .js .head__no[data-reveal].in::after { transform: none; }
  .js [data-reveal="head"] .head__side { opacity: 0; transition: opacity .9s var(--ease) .4s; }
  .js [data-reveal="head"].in .head__side { opacity: 1; }

  /* brand icons pop a beat after their name */
  .js [data-reveal="brand"] .brand__logo { transform: scale(.4) rotate(-18deg); transition: transform .8s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--d, 0ms) + 180ms); }
  .js [data-reveal="brand"].in .brand__logo { transform: none; }

  /* the portrait settles inside its frame */
  .js [data-reveal="photo"] img { transform: scale(1.16); transition: transform 1.8s var(--ease); }
  .js [data-reveal="photo"].in img { transform: none; }

  /* step rules draw from the left */
  .js [data-reveal="step"] { border-top-color: transparent; position: relative; }
  .js [data-reveal="step"]::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
  .js [data-reveal="step"].in::after { transform: none; }

  /* the hero portrait drifts back as the first screen scrolls away */
  @supports (animation-timeline: scroll()) {
    .reel { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    @keyframes drift { to { transform: translateY(70px) scale(.95); } }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head__side { margin-top: 16px; max-width: 44ch; padding-bottom: 0; }
}

@media (max-width: 859px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; }
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .hero { min-height: min(100svh, 860px); }
  .hero__reel { align-self: end; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 32px; }
  .hero__reel { justify-self: start; max-width: min(300px, 78vw); }
  .reel { border-radius: 18px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 340px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pills li, .pill { width: 100%; }
  .pill { min-height: 62px; padding: 0 22px; }
  .pill__go { margin-left: auto; }
  .top__mark .mono { font-size: 10.5px; }
  .legal__tm { order: 3; flex-basis: 100%; }
}

@media (max-width: 639px) {
  .actions .btn { flex: 1 1 100%; }
  .top__status { font-size: 10.5px; }
  .dock { font-size: 14px; }
  .dock a { padding: 0 13px; }
  .phone__btn { width: 32px; height: 32px; }
}

@media (max-width: 479px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .top__mark .mono { display: none; }
  .top__status { white-space: nowrap; }
  .dock .dock__opt { display: none; }
}
