/* Agave Studio homepage. Graphite ground, one ember accent, real media first.
   Motion: entrances ease out (expo), moves ease in-out (quart), exits ease in and run 40-50% shorter.
   Nothing bounces, nothing glows. Mono type is only for model names and @tags. */
:root {
  --pad: clamp(16px, 2vw, 28px);
  --g: 8px;
  --r: 14px;
  --space: 96px;
  --panel: #111114;
  --panel-2: #17171b;
  --well: #1c1c21;
  --dim: #8d8a83; /* small labels: 5.6:1 on the ground */
  --on-ember: #170904;
  --display: "Anybody", "Arial Narrow", "Helvetica Neue", sans-serif;
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-move: cubic-bezier(.76, 0, .24, 1);
  --e-in: cubic-bezier(.7, 0, .84, 0);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--font-sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
body.locked .top-end .cta { visibility: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
code { font: 500 .92em var(--font-mono); color: var(--ember-2); }
:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Heavy condensed caps for every head. */
.display {
  margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 62%;
  text-transform: uppercase; line-height: .86; letter-spacing: -.004em;
}

/* ---------- Buttons and tags ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--ember); color: var(--on-ember); font: 600 15px/1 var(--font-sans); letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; transition: background-color .15s var(--e-out), transform .15s var(--e-out);
}
.cta:hover { background: #ff7f57; }
.cta:active { transform: scale(.98); }
.cta.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.cta.lg { height: 54px; padding: 0 28px; font-size: 16px; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-2); background: none; color: var(--ink); font: 500 15px/1 var(--font-sans); text-decoration: none;
  white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.ghost:hover { background: rgba(255, 255, 255, .05); border-color: rgba(235, 232, 226, .32); }
.ghost .ico { width: 17px; height: 17px; }
.tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 5px; flex: none;
  background: var(--ember); color: var(--on-ember); font: 700 10px/1 var(--font-sans); letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; gap: 18px; padding: 0 var(--pad);
  background: rgba(8, 8, 10, .86); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-word { font: 600 16px/1 var(--font-sans); letter-spacing: -.02em; white-space: nowrap; }
.tabs { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.tabs a, .gh {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 10px;
  color: var(--ink-2); font: 500 14px/1 var(--font-sans); text-decoration: none; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.tabs a:hover, .gh:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gh .ico { width: 17px; height: 17px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: none; cursor: pointer; place-items: center; align-content: center; gap: 5px; padding: 0; }
.burger i { display: block; width: 16px; height: 1.6px; background: var(--ink); transition: transform .3s var(--e-out); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.3px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 60px 0 0; z-index: 39; display: flex; flex-direction: column; padding: 8px var(--pad) 28px;
  background: var(--bg); overflow-y: auto;
}
.sheet[hidden] { display: none; }
.sheet a:not(.cta) {
  display: flex; align-items: center; gap: 14px; min-height: 58px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font: 900 28px/1 var(--display); font-stretch: 72%; text-transform: uppercase;
}
.sheet a .ico { width: 22px; height: 22px; color: var(--dim); }
.sheet .nav-btn { padding-left: 36px; }
.sheet .cta { margin-top: 22px; height: 54px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 22px var(--pad) 0; }
.hero-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 18px; }
.hero-title { font-size: clamp(52px, 8.8vw, 150px); line-height: .8; white-space: nowrap; }
.hero-title .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .02em; }
.hero-title .ln + .ln { margin-left: .15em; }
.hero-title .ln > span { display: inline-block; animation: rise .75s var(--e-out) both; }
.hero-title .ln + .ln > span { animation-delay: .09s; }
@keyframes rise { from { transform: translateY(104%); } }
.hero-side { width: min(420px, 100%); }
.hero-side p { margin: 0 0 14px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .ghost { height: 42px; font-size: 14px; }

/* The strip: one card open and playing; the reel cuts to the next card before each clip ends. */
.reel { display: flex; gap: var(--g); height: clamp(400px, calc(100svh - 60px - 22px - 7.04vw - 18px - 18px), 700px); }
.shot {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; background: var(--panel);
  transition: flex-grow .75s var(--e-move);
  animation: wipe .75s var(--e-out) both; animation-delay: calc(.16s + var(--i, 0) * 60ms);
}
.shot:nth-child(2) { --i: 1; }
.shot:nth-child(3) { --i: 2; }
.shot:nth-child(4) { --i: 3; }
.shot:nth-child(5) { --i: 4; }
.shot.on { flex-grow: 2.6; }
@keyframes wipe { from { clip-path: inset(100% 0 0 0 round var(--r)); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
.shot-link { position: absolute; inset: 0; display: block; }
.shot-link:focus-visible { outline-offset: -3px; } /* .shot clips its overflow, so the ring sits inside the card */
.shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .32s var(--e-in), filter .32s var(--e-in); }
.shot:not(.on) video { filter: brightness(.74) saturate(.9); }
.shot.on video { transition: transform .6s var(--e-out), filter .6s var(--e-out); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8, 8, 10, 0) 50%, rgba(8, 8, 10, .82)); }
.shot-cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; height: 106px; pointer-events: none; }
.shot-t { margin: 0; font: 900 clamp(26px, 2.4vw, 36px)/.9 var(--display); font-stretch: 66%; text-transform: uppercase; white-space: nowrap; }
.shot-cap p { margin: 8px 0 0; max-width: 34ch; color: var(--ink); font-size: 14px; line-height: 1.4; opacity: .6; transition: opacity .2s var(--e-in); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-wrap: pretty; }
.shot-k { display: block; margin-top: 6px; font: 500 12px/1.3 var(--font-sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .12s var(--e-in); }
.shot.on .shot-cap p { opacity: 1; transition: opacity .3s var(--e-out) .2s; }
.shot.on .shot-k { opacity: 1; transition: opacity .3s var(--e-out) .3s; }
.shot-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ember); transform: scaleX(0); transform-origin: 0 50%; }
.shot-bar.run { animation: bar var(--t, 4.5s) linear forwards; }
@keyframes bar { from { transform: scaleX(var(--from, 0)); } to { transform: scaleX(1); } }
@media (hover: hover) { .shot.on:hover video { transform: scale(1.03); } }
.shot-ref {
  position: absolute; z-index: 2; top: 14px; left: 14px; display: flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px;
  border-radius: 999px; background: rgba(8, 8, 10, .72); pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.shot-ref img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.shot-ref code { font-size: 13px; }
.shot-ref small { max-width: 0; overflow: hidden; margin-left: -9px; color: var(--ink-2); font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .12s var(--e-in), max-width .3s var(--e-in), margin-left .3s var(--e-in); }
.shot.on .shot-ref small { max-width: 220px; margin-left: 0; opacity: 1; transition: opacity .3s var(--e-out) .3s, max-width .6s var(--e-out), margin-left .6s var(--e-out); }

/* ---------- Sections ---------- */
.sec { padding: var(--space) var(--pad) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; margin-bottom: 20px; }
.sec-head h2 { font-size: clamp(48px, 6vw, 92px); }
.sec-head p { margin: 0; max-width: 52ch; color: var(--ink-2); font-size: 16px; }
.sec-head h2 + p { margin-top: 12px; }
.sec-head .intro { max-width: none; color: var(--ink); font-size: 18px; }

/* Tools: four modes with a live picture on top, then the rest as dense rows, then the model row. */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.mode {
  display: flex; flex-direction: column; padding: 8px 8px 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: background-color .15s, border-color .15s;
}
.mode:hover { background: var(--panel-2); border-color: var(--line-2); }
.vis { position: relative; display: grid; place-items: center; height: 168px; margin-bottom: 14px; border-radius: 9px; overflow: hidden; background: var(--well); }
.mode-name { padding: 0 8px; font: 900 28px/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.mode-line { margin-top: 8px; padding: 0 8px; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.vis em { position: absolute; left: 10px; bottom: 10px; font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--ink-2); padding: 5px 7px; border-radius: 6px; background: rgba(8, 8, 10, .62); }
.vis-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vis-frames { display: block; }
.vis-frames i {
  position: relative; overflow: hidden; border: 1.5px solid var(--line-2); border-radius: 6px; font-style: normal;
  animation: pick 7.2s steps(1, end) infinite;
}
.vis-frames i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vis-frames i b { position: absolute; left: 5px; bottom: 5px; padding: 3px 5px; border-radius: 4px; background: rgba(8, 8, 10, .7); color: var(--ink); font: 600 10px/1 var(--font-sans); letter-spacing: .04em; }
.vis-frames .f169 { position: absolute; inset: 0; border: 0; border-radius: 0; animation: none; }
.vis-frames .f169 img { object-position: 50% 50%; }
.vis-frames .f11, .vis-frames .f916 { position: absolute; bottom: 12px; border-color: rgba(235, 232, 226, .7); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.vis-frames .f11 { right: 74px; width: 72px; height: 72px; animation-delay: -4.8s; }
.vis-frames .f916 { right: 12px; width: 54px; height: 96px; animation-delay: -2.4s; }
.vis-frames .f169 b { left: 10px; bottom: 10px; }
@keyframes pick { 0% { border-color: var(--ember); } 50% { border-color: rgba(235, 232, 226, .7); } }
.vis-frames em { left: auto; right: 10px; bottom: auto; top: 10px; }
.vis-wave { display: flex; align-items: center; justify-content: center; gap: 4px; }
.vis-wave i { display: block; width: 4px; height: 64px; border-radius: 2px; background: var(--ink-2); transform-origin: 50% 50%; animation: talk 1.4s var(--e-move) infinite alternate; }
.vis-wave i:nth-child(3n) { animation-duration: 1.1s; }
.vis-wave i:nth-child(3n + 1) { animation-duration: 1.7s; }
.vis-wave i:nth-child(4n) { animation-delay: -.5s; }
.vis-wave i:nth-child(5n + 2) { animation-delay: -.9s; background: var(--ember); }
.vis-wave i:nth-child(7n) { animation-delay: -.3s; }
@keyframes talk { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
.vis-3d { display: flex; align-items: center; justify-content: center; gap: 14px; }
.in3d { width: 104px; height: 104px; border-radius: 9px; overflow: hidden; border: 1.5px solid rgba(235, 232, 226, .7); flex: none; }
.in3d img { width: 100%; height: 100%; object-fit: cover; }
.vis-3d .to, .track .to { position: relative; flex: none; width: 26px; height: 1.5px; background: var(--dim); }
.vis-3d .to::after, .track .to::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 1.5px solid var(--dim); border-right: 1.5px solid var(--dim); transform: translate(0, -50%) rotate(45deg); }
.out3d { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; }
.vis-3d em { top: 10px; bottom: auto; }
.out3d span { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 500 12px/1 var(--font-mono); }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin-top: var(--g); }
.tool {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 92px; padding: 14px 16px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.tool:hover { background: var(--panel-2); border-color: var(--line-2); }
.tool-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-name { font: 900 21px/1 var(--display); font-stretch: 72%; text-transform: uppercase; }
.tool-line { color: var(--ink-2); font-size: 13.5px; line-height: 1.4; }
.num { font: 900 34px/.8 var(--display); font-stretch: 62%; color: var(--ink); }
.model-row {
  display: flex; flex-wrap: wrap; gap: 10px 6px; margin-top: var(--g); padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s;
}
.model-row:hover { border-color: var(--line-2); }
.mg { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-right: 18px; }
.mg span, .mg b { white-space: nowrap; }
.mg:last-child { margin-right: 0; }
.mg b { margin-right: 6px; color: var(--ember-2); font: 600 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; }
.mg span { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--well); color: var(--ink-2); font: 500 12px/1 var(--font-mono); }

/* Reel: four hand-balanced columns (each holds one 9:16, one 4:5, one 1:1 and one 16:9 crop), capped with a fade. */
.filters { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.filters button {
  height: 32px; padding: 0 15px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer;
  font: 500 13px/1 var(--font-sans); transition: background-color .15s, color .15s;
}
.filters button:hover { color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--bg); }
.reel-wrap { position: relative; }
.reel-wrap:not(.open) .masonry { max-height: 1240px; overflow: hidden; }
.reel-more { display: flex; justify-content: center; }
.reel-wrap:not(.open) .reel-more { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 0 0; background: linear-gradient(180deg, rgba(8, 8, 10, 0), var(--bg) 78%); }
.reel-wrap.open .reel-more { margin-top: 18px; }
.reel-more .ghost { background: rgba(17, 17, 20, .9); }
.masonry { display: flex; align-items: flex-start; gap: var(--g); }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--g); }
.m { position: relative; margin: 0; break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--panel); }
.m img, .m video { width: 100%; height: 100%; object-fit: cover; transition: transform .32s var(--e-in); }
.m.clip::after { content: ""; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.m figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  padding: 32px 10px 9px; background: linear-gradient(180deg, rgba(8, 8, 10, 0), rgba(8, 8, 10, .8)); pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.m figcaption > span { font: 600 13px/1.2 var(--font-sans); color: var(--ink); opacity: 0; transition: opacity .12s var(--e-in); }
.m figcaption em { order: -1; min-width: 0; font: 500 11px/1.2 var(--font-mono); font-style: normal; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .m:hover img, .m:hover video { transform: scale(1.035); transition: transform .6s var(--e-out); }
  .m:hover figcaption > span { opacity: 1; transition: opacity .24s var(--e-out); }
}
@media (hover: none) {
  .m figcaption { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 3px; }
  .m figcaption > span { opacity: 1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m figcaption em { order: 0; max-width: 100%; }
  .m figcaption em .by { display: none; }
}

/* Pipelines: one lane at a time; paid steps are picture cells, free steps are the links between them. */
.lane { padding: 14px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.lane[hidden] { display: none; }
.lane-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin: 2px 4px 14px; }
.lane-head p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.lane-head p b { color: var(--ink); font-weight: 600; }
.receipt { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--well); color: var(--ink-2); font: 500 13px/1 var(--font-sans); white-space: nowrap; }
.receipt b { color: var(--ink); font-weight: 600; }
.track { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: var(--g); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.track .to { align-self: center; width: 22px; }
.track::-webkit-scrollbar { display: none; }
.photo { position: relative; flex: 0 0 168px; height: 176px; border-radius: 11px; overflow: hidden; background: var(--well); scroll-snap-align: start; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 8, 10, 0) 45%, rgba(8, 8, 10, .86)); }
.photo-cap { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: flex-start; gap: 7px; color: var(--ink); font: 600 13px/1.3 var(--font-sans); }
.photo-cap .ico { width: 16px; height: 16px; margin-top: 1px; color: var(--ember-2); }
.step {
  flex: 1 0 172px; height: 176px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 14px 14px; border-radius: 11px; background: var(--well); border: 1px solid var(--line); scroll-snap-align: start;
}
.step-n { font: 900 30px/.9 var(--display); font-stretch: 62%; color: var(--ember); margin-bottom: 6px; }
.step b { font: 600 16px/1.2 var(--font-sans); letter-spacing: -.01em; }
.step-p { margin-top: 2px; color: var(--ink); font: 600 14px/1.3 var(--font-sans); }
.step .gate { margin-top: auto; }
.mdl { color: var(--ink-2); font: 500 12px/1.35 var(--font-mono); }
.gate { margin-top: 6px; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--ember); color: var(--ember); font: 600 11.5px/1 var(--font-sans); white-space: nowrap; }
/* A step's real output sits on top of its card. */
.step .made { position: relative; align-self: stretch; aspect-ratio: 16 / 9; margin: -4px -6px 8px; border-radius: 7px; overflow: hidden; background: var(--panel); }
.step .made img, .step .made video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step .made.none { display: grid; place-items: center; padding: 0 12px; border: 1px dashed var(--line-2); background: none; color: var(--dim); font: 500 12px/1.3 var(--font-sans); text-align: center; }
.lane .step { height: auto; min-height: 176px; max-width: 320px; }
.lane .photo { height: auto; min-height: 176px; flex-basis: clamp(168px, 14vw, 240px); }
.link {
  position: relative; flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 0 10px; text-align: center; color: var(--ink-2); font: 500 12.5px/1.3 var(--font-sans);
}
.link::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); z-index: 0; transform: translateY(-40px); }
.link > * { position: relative; }
.link .fee { color: var(--dim); font-size: 11.5px; }
.fine { margin: 14px 0 0; max-width: 84ch; color: var(--dim); font-size: 13px; }

/* Why it is free */
.free { position: relative; isolation: isolate; overflow: hidden; padding: var(--space) var(--pad); }
.free-bg { position: absolute; inset: 0; z-index: -1; }
.free-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.free-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 8, 10, .85) 0%, rgba(8, 8, 10, .4) 60%, rgba(8, 8, 10, .25) 100%), linear-gradient(180deg, var(--bg) 0%, rgba(8, 8, 10, 0) 18%, rgba(8, 8, 10, 0) 72%, var(--bg) 100%); }
.free-title { font-size: clamp(58px, 10.5vw, 172px); }
.facts { list-style: none; margin: 40px 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts li { padding: 2px 28px 2px 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line-2); }
.facts b { color: var(--ink); font-weight: 600; }
.free .ghost { height: 54px; padding: 0 24px; font-size: 16px; }

/* Footer: one row. */
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 28px var(--pad) 32px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-right: auto; }
.foot-links a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot p { margin: 0; }

/* Reveal: below-the-fold blocks wipe up once (home.js adds .pre only to blocks that start off screen). */
.pre[data-wipe] { clip-path: inset(100% 0 0 0 round var(--r)); }
.pre.in[data-wipe] { clip-path: inset(0 0 0 0 round var(--r)); transition: clip-path .75s var(--e-out) var(--d, 0ms); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  .tabs a { padding: 0 9px; }
  .gh span { display: none; }
  .modes, .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-head { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: clamp(52px, 12.6vw, 150px); }
  .reel { height: clamp(380px, calc(100svh - 60px - 22px - 10.1vw - 150px), 640px); }
}
@media (max-width: 960px) {
  .tabs, .gh { display: none; }
  .burger { display: grid; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  :root { --space: 64px; }
  .hero { padding-top: 12px; }
  .hero-head { margin-bottom: 12px; }
  .hero-title { font-size: 56px; white-space: normal; line-height: .84; margin-bottom: 10px; }
  .hero-side p { font-size: 15px; margin-bottom: 10px; }
  .hero .ghost { height: 42px; }
  .hero-title .ln { display: block; }
  .hero-title .ln + .ln { margin-left: 0; }
  .hero-side { width: 100%; }
  .reel {
    height: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none;
  }
  .reel::-webkit-scrollbar { display: none; }
  .shot, .shot.on { flex: 0 0 84%; height: max(380px, calc(100svh - 312px)); scroll-snap-align: start; }
  .shot:not(.on) video { filter: none; }
  .shot .shot-cap p, .shot .shot-k, .shot .shot-ref small { opacity: 1; transition: none; }
  .shot .shot-ref small { max-width: none; margin-left: 0; }
  .shot-bar { display: none; }
  .vis { height: 112px; margin-bottom: 10px; }
  .vis-frames .f11, .vis-frames .f916 { bottom: 8px; }
  .vis-frames .f11 { right: 50px; width: 44px; height: 44px; }
  .vis-frames .f916 { right: 8px; width: 36px; height: 64px; }
  .vis-frames i b { display: none; }
  .vis-wave i { width: 3px; height: 48px; } .vis-wave { gap: 3px; }
  .vis em { left: 6px; bottom: 6px; font-size: 10px; }
  .vis-frames em { top: 6px; right: 6px; left: auto; bottom: auto; }
  .in3d { width: 58px; height: 58px; margin-top: 14px; }
  .vis-3d { gap: 6px; }
  .vis-3d .to { width: 12px; margin-top: 14px; }
  .out3d { gap: 4px; margin-top: 14px; }
  .out3d span { height: 22px; padding: 0 5px; border-radius: 5px; font-size: 9.5px; }
  .vis-3d em { top: 6px; bottom: auto; }
  .free .actions > * { flex: 1 1 100%; }
  .mode { padding: 6px 6px 12px; }
  .mode-name { padding: 0 6px; font-size: 22px; }
  .mode-line { padding: 0 6px; font-size: 12.5px; }
  .tool { min-height: 108px; flex-direction: column; justify-content: flex-start; gap: 10px; padding: 12px; }
  .tool-name { font-size: 19px; }
  .tool-line { font-size: 12.5px; }
  .tool .num { order: -1; font-size: 26px; }
  .tool .tag { order: -1; }
  .tool-text { gap: 5px; }
  .model-row { padding: 10px; }
  .mg { margin-right: 10px; }
  .mg span { height: 24px; padding: 0 7px; font-size: 11.5px; }
  .reel-wrap:not(.open) .masonry { max-height: 1320px; }
  .masonry { display: grid; grid-template-columns: 1fr 1fr; gap: var(--g); }
  .lane { padding: 12px 0 12px 12px; }
  .lane-head { margin-right: 12px; }
  .photo, .lane .photo { flex-basis: 140px; }
  .step { flex: 0 0 168px; max-width: none; }
  .receipt { height: 30px; font-size: 12.5px; }
  .link { flex-basis: 84px; }
  .track { padding-right: 12px; }
  .fine { font-size: 12.5px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-links { margin-right: 0; }
}
@media (max-width: 380px) {
  .top-end .cta.sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
