:root {
  --bg: #000;
  --panel: #0c0c0c;
  --panel-2: #141414;
  --line: #1f1f1f;
  --line-2: #2c2c2c;
  --red: #E10600;
  --text: #F4F4F4;
  --soft: #D2D2D2;
  --dim: #9C9C9C;
  --max: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --radius: 8px;
  --display: Oswald, Impact, sans-serif;
  --body: Sora, "Segoe UI", sans-serif;
  --red-lit: linear-gradient(155deg, #ff2a22 0%, #E10600 36%, #9d0400 100%);
  --red-hot: linear-gradient(155deg, #ff3d35 0%, #E10600 38%, #b00500 100%);
  --section: clamp(64px, 9vw, 112px);
}

* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*:hover { scrollbar-color: #444 transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
::-webkit-scrollbar-button { display: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Phones: body is the scroller, not the window. Telegram's iOS browser draws window-scrolled
   content under its see-through toolbar and clips anything we pin there. */
@media (hover: none) and (pointer: coarse) {
  html { height: 100%; overflow: hidden; scroll-behavior: auto; }
  body { height: 100%; overflow-y: auto; overscroll-behavior-y: none; scroll-behavior: smooth; }
}
body.is-locked { overflow: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
}
p { margin: 0; }

.word {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.word span { color: var(--red); }

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

/* Buttons */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-red {
  background: var(--red-lit);
  color: #fff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.34),
    inset -10px -12px 16px rgba(0, 0, 0, 0.28);
}
.btn-red::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.14) 26%, transparent 44%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.btn-red:hover, .btn-red:focus-visible { background: var(--red-hot); }
.btn-line {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-line:hover, .btn-line:focus-visible { box-shadow: inset 0 0 0 1px var(--soft); }
.btn-dark {
  background: #000;
  color: #fff;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-dark:hover, .btn-dark:focus-visible { background: #161616; }
.btn-lg { min-height: 56px; padding: 16px 28px; font-size: 0.95rem; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.arrow-link::after { content: "\2192"; color: var(--red); transition: transform 0.15s; }
.arrow-link:hover::after { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}
.brand .word { font-size: 1.25rem; }
.badge-18 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  padding: 4px 6px 3px;
  border: 1px solid var(--red);
  border-radius: 4px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--dim);
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -13px;
  height: 2px;
  background: var(--red);
}
.nav-cta { display: none; min-height: 40px; padding: 8px 16px; font-size: 0.78rem; }
.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  content: "";
  position: relative;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.sheet {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 29;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px var(--pad) 32px;
  background: #000;
}
.sheet[hidden] { display: none; }
.sheet a:not(.btn) {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
  text-decoration: none;
}
.sheet a[aria-current="page"] { color: var(--red); }
.sheet .btn { margin-top: 20px; }

/* Page heads */
.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.page-head .lede {
  max-width: 40rem;
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--soft);
}

/* Sections */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.head .lede { max-width: 34rem; margin-top: 14px; color: var(--dim); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero-row { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7.4vw, 5.8rem); line-height: 0.95; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede {
  max-width: 34rem;
  margin: 24px 0 32px;
  font-size: 1.08rem;
  color: var(--soft);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hero-media .slot:nth-child(n+4) { display: none; }

.slot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  background: var(--panel-2) center / cover no-repeat;
}
.slot video, .slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot .tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}
.slot::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 22px 16px 22px 0; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.facts div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
.facts div:nth-child(4) { border-top: 1px solid var(--line); }
.facts b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
}
.facts span { display: block; margin-top: 8px; font-size: 0.84rem; color: var(--dim); }

/* Engine cards */
.engines {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 72%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(var(--pad) * -1);
  padding: 0 var(--pad) 4px;
  scrollbar-width: none;
}
.engines::-webkit-scrollbar { display: none; }
.engine {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  text-decoration: none;
}
.engine .slot { aspect-ratio: 3 / 4; border-radius: 0; }
.engine .slot::after { display: none; }
.engine-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.engine-body .eyebrow { margin-bottom: 8px; font-size: 0.7rem; }
.engine-body h3 { font-size: 1.35rem; }
.engine-body p { margin: 10px 0 16px; font-size: 0.9rem; color: var(--dim); }
.engine-body .arrow-link { margin-top: auto; font-size: 0.76rem; }
.engine:hover .arrow-link::after { transform: translateX(3px); }

/* Premium band */
.premium-band { background: linear-gradient(180deg, #0f0100, #000 80%); }
.premium-row { display: grid; gap: 40px; align-items: center; }
.premium-row h2 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.premium-row .lede { max-width: 36rem; margin: 18px 0 28px; color: var(--soft); font-size: 1.04rem; }

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.price {
  position: relative;
  padding: 20px 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.price .len { font-size: 0.84rem; color: var(--soft); }
.price .coins {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--soft);
}
.price .coins b {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  color: #fff;
}
.price.is-top {
  background: var(--red-lit);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.34), inset -10px -12px 16px rgba(0, 0, 0, 0.28);
}
.price.is-top .len, .price.is-top .coins { color: #fff; }
.price .flag {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 7px 2px;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-note { margin-top: 14px; font-size: 0.86rem; color: var(--dim); }

/* Justified strip (home preview) */
.jrow-host { position: relative; width: 100%; }
.jtile {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--panel-2) center / cover no-repeat;
  cursor: zoom-in;
  text-decoration: none;
}
.jtile video, .jtile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jtile .meta {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.74rem;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.jtile .meta b {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.jtile .meta span { color: var(--soft); white-space: nowrap; }
.jtile:hover .meta, .jtile:focus-visible .meta { opacity: 1; }
.jtile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.jtile .dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  transition: opacity 0.15s;
}
.jtile:hover .dur { opacity: 0; }
@media (hover: none) {
  .jtile .meta { opacity: 1; }
  .jtile .dur { display: none; }
}

/* Steps */
.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--red);
}
.steps h3 { font-size: 1.3rem; }
.steps p { margin-top: 10px; font-size: 0.92rem; color: var(--dim); }

/* CTA panel */
.cta-panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 10px;
  background: var(--red-lit);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.34), inset -24px -28px 40px rgba(0, 0, 0, 0.25);
}
.cta-panel h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.cta-panel p { margin-top: 10px; font-size: 1.02rem; }
.cta-panel .btn { justify-self: start; }

/* Footer */
.foot { padding: 56px 0 28px; border-top: 1px solid var(--line); }
.foot-row { display: grid; gap: 32px; padding-bottom: 36px; }
.foot-brand .word { font-size: 1.4rem; }
.foot-brand p { margin-top: 10px; max-width: 22rem; font-size: 0.9rem; color: var(--dim); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-cols h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.foot-cols a {
  display: block;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--soft);
  text-decoration: none;
}
.foot-cols a:hover { color: #fff; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: #767676;
}

/* Mobile dock */
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  transform: translateY(calc(100% + 28px));
  transition: transform 0.2s ease-out;
}
body.show-dock .dock { transform: none; }

/* Gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #000;
}
.gate[hidden] { display: none; }
.gate-card { width: min(26rem, 100%); padding-top: 10px; border-top: 1px solid var(--red); }
.gate .mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 0.9;
  color: var(--red);
}
.gate h1 { margin: 18px 0 12px; font-size: 2.4rem; }
.gate p { color: var(--dim); }
.gate .btn { width: 100%; margin-top: 24px; }

/* Gallery page */
.gbar {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.94);
  border-bottom: 1px solid var(--line);
}
.gbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button .n { font-size: 0.72rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.seg button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.gbar-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gbar-tools .btn { min-height: 40px; padding: 8px 14px; font-size: 0.74rem; }
.seg-size button { min-width: 36px; justify-content: center; font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; }

.grid-wrap { padding: 16px 0 var(--section); }
.grid-empty { padding: 48px 0; color: var(--dim); text-align: center; }
.grid-empty[hidden] { display: none; }

/* Viewer */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(0, 0, 0, 0.97);
}
.viewer[hidden] { display: none; }
.viewer-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad);
}
.viewer-title { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.viewer-engine { font-size: 0.8rem; color: var(--dim); }
.viewer-count { margin-left: auto; font-size: 0.82rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel-2);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.icon-btn:hover { background: #222; }
.icon-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 var(--pad);
}
.viewer-stage video, .viewer-stage img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  border-radius: var(--radius);
  object-fit: contain;
}
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(20, 20, 20, 0.9);
}
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer-foot {
  display: flex;
  justify-content: center;
  padding: 12px var(--pad) calc(16px + env(safe-area-inset-bottom, 0px));
}

/* Modal (preset names) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(900px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 22px 24px 26px;
  border-radius: var(--radius);
  background: #0a0a0a;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-bar h2 { font-size: 1.5rem; }
.name-block + .name-block { margin-top: 22px; }
.name-block h3 {
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--red);
}
.name-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.name-list p {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Premium page */
.features { display: grid; gap: 12px; }
.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.feature b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--red);
}
.feature h3 { margin-top: 18px; font-size: 1.3rem; }
.feature p { margin-top: 10px; font-size: 0.92rem; color: var(--dim); }

.frames-row { display: grid; gap: 32px; align-items: center; }
.frame-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 16px;
  align-items: end;
  padding: 28px 24px 44px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.fr {
  position: relative;
  margin: 0 auto;
  aspect-ratio: var(--w) / var(--h);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #474747;
}
.fr:nth-child(1) { width: 40%; }
.fr:nth-child(2) { width: 56%; }
.fr:nth-child(3) { width: 70%; }
.fr:nth-child(4) { width: 90%; }
.fr:nth-child(5), .fr:nth-child(6) { width: 100%; }
.fr span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.fr.is-on { background: var(--red-lit); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.34); }
.fr.is-on span { color: var(--text); }

.scenes { display: grid; gap: 12px; }
.scene-col {
  padding: 22px 22px 10px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.scene-col h3 { font-size: 0.78rem; letter-spacing: 0.22em; color: var(--red); margin-bottom: 8px; }
.scene { padding: 14px 0; border-bottom: 1px solid var(--line); }
.scene:last-child { border-bottom: 0; }
.scene b { display: block; font-weight: 600; font-size: 0.98rem; }
.scene q { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--dim); quotes: "\201C" "\201D"; }

.split { display: grid; gap: 32px; }
.split h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.split .lede { margin-top: 16px; color: var(--soft); max-width: 34rem; }
.checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.checklist li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 12px;
  height: 2px;
  background: var(--red);
}

/* FAQ page */
.faq-row { display: grid; gap: 40px; }
.faq-aside { align-self: start; }
.faq-aside .card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.faq-aside h3 { font-size: 1.3rem; }
.faq-aside p { margin: 10px 0 18px; font-size: 0.92rem; color: var(--dim); }
.faq-aside { display: none; }
.faq-aside nav { margin-bottom: 20px; }
.faq-aside nav a {
  display: block;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.faq-aside nav a:hover { color: #fff; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 8px; scroll-margin-top: calc(var(--nav-h) + 16px); }
section[id] { scroll-margin-top: var(--nav-h); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--red);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.faq details p { padding: 0 44px 22px 0; color: var(--dim); max-width: 44rem; }
.faq details a, .legal-document a, .checklist a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

/* Photo scene groups */
.groups { display: grid; gap: 12px; }
.group-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.group-card h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.05rem; }
.group-card h3 span { font-size: 0.9rem; color: var(--red); font-variant-numeric: tabular-nums; }
.group-card p { margin-top: 10px; font-size: 0.88rem; color: var(--dim); }

/* Legal pages */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-tabs a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--dim);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.legal-tabs a:hover { color: #fff; }
.legal-tabs a[aria-current="page"] { color: #fff; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--soft); }
.meta-grid { display: grid; gap: 8px; margin-top: 28px; }
.meta-card {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.meta-card span { display: block; font-size: 0.76rem; color: var(--dim); }
.meta-card strong { display: block; margin-top: 4px; font-weight: 600; font-size: 0.92rem; }
.summary-box {
  margin-top: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.summary-kicker {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.summary-grid { display: grid; gap: 16px; margin-top: 14px; }
.summary-grid strong { display: block; font-weight: 600; font-size: 0.95rem; }
.summary-grid span { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--dim); }
.legal-layout { display: grid; gap: 40px; padding-top: var(--section); padding-bottom: var(--section); }
.toc { display: none; align-self: start; }
.toc-title {
  font-family: var(--display);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.86rem;
  color: var(--dim);
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--line-2); font-variant-numeric: tabular-nums; }
.toc a:hover { color: #fff; }
.legal-document { max-width: 46rem; }
.legal-section { padding: 32px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 16px); }
.legal-section:first-child { border-top: 0; padding-top: 0; }
.section-number { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.18em; color: var(--red); }
.legal-section h2 { margin-top: 6px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.legal-section h3 { margin-top: 24px; font-size: 1.05rem; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; }
.legal-section p { margin-top: 14px; color: var(--soft); line-height: 1.7; }
.legal-section ul { margin: 14px 0 0; padding: 0; list-style: none; }
.legal-section li { position: relative; padding: 6px 0 6px 26px; color: var(--soft); line-height: 1.6; }
.check-list li::before, .cross-list li::before { position: absolute; left: 0; top: 6px; font-weight: 600; }
.check-list li::before { content: "\2713"; color: #fff; }
.cross-list li::before { content: "\2715"; color: var(--red); }
.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 3px 0 0 var(--line-2), inset 0 0 0 1px var(--line);
  color: var(--soft);
  font-size: 0.94rem;
}
.notice strong { color: #fff; }
.notice-danger { background: rgba(225, 6, 0, 0.08); box-shadow: inset 3px 0 0 var(--red), inset 0 0 0 1px rgba(225, 6, 0, 0.3); }
.contact-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
}
.contact-card span { font-size: 0.9rem; color: var(--soft); }
.contact-card strong { font-family: var(--display); font-size: 1.1rem; color: var(--red); }
.small-note { font-size: 0.86rem; color: var(--dim) !important; }

/* Features page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--dim);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.jump a:hover { color: #fff; }
.feature .cmd, .cmds code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  color: #fff;
}
.feature .cmd { display: inline-block; margin-top: 14px; }
.rows { margin: 14px 0 0; padding: 0; list-style: none; }
.rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--soft);
}
.rows li b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmds { display: grid; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.cmds li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--soft);
}
.cmds code { overflow-wrap: anywhere; }

/* Breakpoints */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 1px solid var(--line); padding-left: 16px; border-top: 0; }
  .facts div:nth-child(4) { border-top: 0; }
  .steps, .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .name-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: 1fr auto; }
  .cta-panel .btn { justify-self: end; }
  .gbar { position: sticky; top: var(--nav-h); }
}

@media (min-width: 960px) {
  .menu-btn, .sheet, .dock { display: none !important; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hero-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .engines {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .premium-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 72px; }
  .frames-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .scenes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .faq-row { grid-template-columns: 280px minmax(0, 1fr); gap: 72px; }
  .faq-aside { display: block; position: sticky; top: calc(var(--nav-h) + 24px); }
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cmds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
  .toc { display: block; position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
  .foot-row { grid-template-columns: 1fr auto; align-items: start; }
  .foot-cols { gap: 24px 72px; }
  .name-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock, .arrow-link::after, .jtile .meta { transition: none; }
}
