/* MO Commerce — tokens */
:root {
  --bg: #050505;
  --surface: #0b0f0c;
  --ink: #eef2ee;
  --muted: #8a948c;
  --accent: #39ff7a;
  --accent-dim: #1f8f45;
  --accent-ink: #041008;

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(120px, 14vw, 220px);

  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --step-head: clamp(2.75rem, 1.2rem + 6.2vw, 7.5rem);
  --step-mono: clamp(4.5rem, 15.2vw, 18rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --code: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
p, figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: var(--m); top: -100px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; z-index: 100; }
.skip:focus { top: var(--m); }

/* Display type */
.hero .line, .h-big, .h-mid, .contact__title, .foot__mark text {
  font-family: var(--font);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.86;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  padding: 18px 26px;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(.97); }

/* Bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--m);
  background: rgba(5,5,5,.92);
}
.bar a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.bar__mark { font-weight: 800 !important; font-variation-settings: "wdth" 125; text-transform: uppercase; }
.bar__nav { display: flex; gap: clamp(16px, 2.6vw, 40px); align-items: center; }
.bar__nav a { position: relative; transition: color .2s; }
.bar__nav a:hover { color: var(--accent); }
.bar__cta { color: var(--accent) !important; }
@media (max-width: 600px) { .bar__nav a:not(.bar__cta) { display: none; } }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--m);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__title { display: contents; margin: 0; }
.hero .line { display: block; overflow: hidden; padding-block: 0.04em; }
.hero .line > span { display: inline-block; }
.hero .l1 { grid-row: 1; font-size: var(--mono, var(--step-mono)); margin-top: clamp(72px, 7vw, 100px); }
.hero .l2 { grid-row: 3; font-size: var(--mono, var(--step-mono)); margin-bottom: clamp(14px, 1.6vw, 24px); white-space: nowrap; }
.hero__mid { grid-row: 2; align-self: center; width: min(32ch, 100%); display: grid; gap: 28px; justify-items: start; }
.hero__lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; text-shadow: 0 0 18px #050505, 0 0 6px #050505; }
@media (max-width: 720px) {
  .hero .l1 { margin-top: 88px; }
  .hero__mid { align-self: end; margin-bottom: 28px; }
  .hero__lead { font-size: 1.125rem; }
}

/* STATEMENT */
.statement { padding: var(--gap) 0 0; }
.statement__text {
  padding: 0 var(--m);
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em;
  max-width: 24ch;
  font-variation-settings: "wdth" 100;
}
.statement__text .w { color: #2a302b; transition: color .4s; }
.statement__text .w.on { color: var(--ink); }
.statement__text .w.hot { color: var(--accent); }
.no-js .statement__text .w, .statement__text:not(.split) { color: var(--ink); }
.ticker { margin-top: clamp(80px, 10vw, 160px); overflow: hidden; background: var(--accent); color: var(--accent-ink); padding: 18px 0; }
.ticker__track { display: flex; gap: 56px; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); letter-spacing: -0.02em; white-space: nowrap; }
.ticker span::after { content: "↗"; margin-left: 56px; font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* SERVICES */
.services { padding: var(--gap) var(--m); }
.h-mid { font-size: clamp(1.75rem, 1rem + 2.4vw, 3rem); margin: 0 0 clamp(48px, 7vw, 96px); letter-spacing: -0.02em; line-height: 0.95; }
.services__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; }
.svc-col { grid-column: span 3; }
.svc-col h3 { font-size: var(--step-body); font-weight: 700; margin: 0 0 1.3em; color: var(--accent); }
.svc-col ul { list-style: none; margin: 0; padding: 0; }
.svc-col li {
  font-size: clamp(1.5rem, 0.8rem + 1.35vw, 2.25rem); font-weight: 700; line-height: 1.12;
  font-variation-settings: "wdth" 88; letter-spacing: -0.02em; white-space: nowrap;
  color: var(--muted); cursor: default; transition: color .2s, transform .35s var(--ease-out);
}
.svc-col li:hover, .svc-col li:focus-visible, .svc-col li.is-on { color: var(--ink); transform: translateX(8px); }
.svc-sum { display: none; color: var(--muted); margin-top: 16px; }
.svc-desc {
  grid-column: 10 / 13; grid-row: 1; align-self: start;
  font-family: var(--code); font-size: 0.9375rem; line-height: 1.6; color: var(--accent);
  min-height: 8em;
}
.svc-desc::before { content: "> "; }
@media (max-width: 960px) {
  .services__grid { display: block; }
  .svc-col + .svc-col { margin-top: 56px; }
  .svc-sum { display: block; }
  .svc-desc { display: none; }
}

/* Glyph images */
.glyph { position: relative; background: var(--surface); overflow: hidden; }
.glyph canvas { width: 100%; height: 100%; }

/* SYSTEM */
.system {
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px;
}
.system__h { grid-column: 7 / 13; grid-row: 1; font-size: clamp(2.25rem, 1rem + 4vw, 4.5rem); margin-bottom: 0; align-self: start; }
.stage { display: grid; grid-template-columns: subgrid; align-items: start; grid-column: 1 / 13; }
.stage p { max-width: 36ch; }
.stage strong { font-weight: 800; color: var(--accent); font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -0.01em; }
.stage--1 { grid-row: 1 / 3; }
.stage--1 .glyph { grid-column: 1 / 6; aspect-ratio: 1; }
.stage--1 p { grid-column: 6 / 9; align-self: end; }
.stage--2 { margin-top: 140px; }
.stage--2 .glyph { grid-column: 7 / 10; aspect-ratio: 3 / 4; }
.stage--2 p { grid-column: 10 / 13; }
.stage--3 { margin-top: 140px; }
.stage--3 .glyph { grid-column: 5 / 13; aspect-ratio: 16 / 9; }
.stage--3 p { grid-column: 1 / 5; grid-row: 1; align-self: end; }
@media (max-width: 860px) {
  .system { display: block; }
  .system__h { margin-bottom: 40px; }
  .stage { display: block; margin-top: 56px; }
  .stage--1 { margin-top: 0; }
  .stage--2 .glyph { width: 70%; margin-left: auto; }
  .stage p { margin-top: 18px; }
  .stage--2 p { margin-left: 30%; }
}

/* BAND */
.band { position: relative; min-height: 100svh; display: grid; align-items: end; padding: var(--m); overflow: hidden; }
.glyph--band { position: absolute; inset: 0; background: var(--bg); }
.band__h { position: relative; max-width: 11ch; text-shadow: 0 0 30px #050505; }

/* CONTACT */
.contact {
  min-height: 100svh;
  background: var(--accent); color: var(--accent-ink);
  padding: calc(var(--m) + 64px) var(--m) var(--m);
  display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(40px, 6vw, 80px);
  align-content: space-between;
}
.contact__title { margin: 0; white-space: nowrap; font-size: clamp(3rem, 12vw, 14rem); }
.brief { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 16px; }
.brief__intro { grid-column: 1 / 5; font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.field { grid-column: span 4; display: grid; gap: 8px; align-content: start; }
.brief__intro + .field { grid-column: 5 / 9; }
.field--msg { grid-column: 5 / 13; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field label span { font-weight: 500; opacity: .7; }
.field input, .field textarea {
  font: inherit; font-size: 1.0625rem; color: var(--accent-ink);
  background: rgba(4,16,8,.08); border: 0; border-radius: 0;
  padding: 14px 16px; width: 100%;
  transition: background-color .2s;
}
.field textarea { resize: vertical; min-height: 9em; }
.field input:hover, .field textarea:hover { background: rgba(4,16,8,.13); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-ink); outline-offset: 0; background: rgba(255,255,255,.35); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { outline: 2px solid #a10f1f; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.brief__send { grid-column: 5 / 13; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn--ink { background: var(--accent-ink); color: var(--accent); border: 0; cursor: pointer; font-family: var(--font); }
.btn--ink:hover { background: var(--bg); color: #fff; }
.btn--ink[disabled] { opacity: .6; cursor: progress; }
.brief__status { font-weight: 700; }
.brief__status.err { color: #8a0d1a; }
.contact__foot { font-size: 0.9375rem; font-weight: 600; }
@media (max-width: 960px) {
  .brief { display: grid; grid-template-columns: 1fr; }
  .brief__intro, .field, .brief__intro + .field, .field--msg, .brief__send { grid-column: 1 / -1; }
}

/* FOOTER */
.foot { background: var(--bg); color: var(--ink); min-height: 90svh; padding: 40px var(--m) 20px; display: grid; grid-template-rows: auto 1fr auto auto; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 16px; font-size: 0.9375rem; color: var(--muted); }
.foot__cols .hi { color: var(--ink); font-weight: 700; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--accent); }
.foot__mark { grid-row: 3; margin-top: 20svh; }
.foot__mark svg { width: 100%; height: auto; }
.foot__mark text { font-size: 132px; fill: var(--ink); }
.foot__legal { grid-row: 4; margin-top: 20px; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 720px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* Motion */
.js .reveal > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in > * { opacity: 1; transform: none; }
.js .reveal.is-in > *:nth-child(2) { transition-delay: 80ms; }
.js .reveal.is-in > *:nth-child(3) { transition-delay: 160ms; }
.js .reveal.is-in > *:nth-child(4) { transition-delay: 240ms; }
.js .hero .line > span { transform: translateY(105%); transition: transform 1s var(--ease-out); }
.js .hero .l2 > span { transition-delay: 110ms; }
.js .hero__mid { opacity: 0; transform: translateY(16px); transition: opacity .8s .5s, transform .8s .5s var(--ease-out); }
.js.loaded .hero .line > span { transform: none; }
.js.loaded .hero__mid { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal > *, .js .hero .line > span, .js .hero__mid { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ticker__track { animation: none; }
}

/* OPS — automations on watch */
.ops {
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 48px;
  align-items: center;
  background: var(--surface);
}
.ops__text { grid-column: 1 / 6; }
.ops__text p { margin-top: 32px; max-width: 40ch; }
.ops__log {
  grid-column: 7 / 13;
  background: var(--bg);
  height: clamp(380px, 38vw, 540px);
  padding: 24px 28px;
  overflow: hidden;
  font-family: var(--code); font-size: 0.875rem; line-height: 1.7;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ops__log ol { list-style: none; margin: 0; padding: 0; }
.ops__log li { display: grid; grid-template-columns: 9ch 17ch 1fr auto; gap: 14px; color: var(--muted); animation: logIn .5s var(--ease-out); }
.ops__log li .k { color: var(--ink); }
.ops__log li .s { color: var(--accent); font-weight: 700; }
.ops__log li .s.act { color: #fff; background: #1d5c33; padding: 0 6px; }
.ops__log li:last-child::after { content: ""; }
@keyframes logIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .ops { display: block; }
  .ops__log { margin-top: 48px; height: 420px; padding: 18px; font-size: 0.8125rem; }
  .ops__log li { grid-template-columns: 1fr auto; gap: 2px 10px; padding-bottom: 8px; }
  .ops__log li .t { display: none; }
  .ops__log li .m { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .ops__log li { animation: none; } }

