/* Just Do AI
   Concept: after-hours admin. The page is night; the only light is the beam
   that turns paperwork into finished work. */

:root {
  --night: #000000;
  --surface: #121214;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f4f6;
  --mist: #a0a0a8;
  --paper: #ece7dc;
  --paper-ink: #2a2620;
  --lamp: #ffb547;
  --lamp-hot: #fff1d6;
  --lamp-glow: rgba(255, 181, 71, 0.35);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --section: clamp(104px, 16vh, 184px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Film grain: a static texture over everything, like a cinema print */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' 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 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display {
  font-stretch: 125%;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}
.lede {
  color: var(--mist);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.prose p { color: var(--mist); max-width: 60ch; text-wrap: pretty; }
.prose p + p { margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  background: var(--lamp); color: #000;
  font: 600 1rem/1 var(--font); text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: #ffc66e; box-shadow: 0 0 32px var(--lamp-glow); }
.btn.small { height: 36px; padding: 0 16px; font-size: 0.88rem; }
.textlink {
  color: var(--text); font-weight: 500; text-decoration: underline;
  text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: text-decoration-color 0.2s ease;
}
.textlink:hover { text-decoration-color: var(--lamp); }
.actions { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 40px; }
.actions.left { justify-content: flex-start; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font-stretch: 118%; font-weight: 650; font-size: 1.06rem; letter-spacing: -0.01em;
}
.brand i { width: 3px; height: 18px; border-radius: 2px; background: var(--lamp); box-shadow: 0 0 10px 1px var(--lamp-glow); }
.nav nav { display: flex; align-items: center; gap: 30px; }
.nav nav a:not(.btn) { position: relative; color: var(--mist); text-decoration: none; font-size: 0.92rem; transition: color 0.2s ease; }
.nav nav a:not(.btn):hover, .nav nav a[aria-current="page"] { color: var(--text); }
.nav nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px;
  background: var(--lamp); box-shadow: 0 0 10px var(--lamp-glow);
}
.menu-btn { display: none; }

/* Home hero */
.hero { padding: clamp(56px, 9vh, 112px) 0 32px; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(3rem, 9vw, 7.4rem); }
.hero h1 .ln { display: inline-block; }
.hero .lede { max-width: 44ch; margin: 24px auto 0; }

/* The machine: paperwork in, finished work out */
.machine {
  position: relative;
  width: min(1180px, 100% - 32px);
  height: 420px;
  margin: clamp(40px, 7vh, 80px) auto 0;
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
}
.lane {
  position: relative; overflow: hidden; font-size: 17px; perspective: 900px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}
.beam {
  position: relative; z-index: 2;
  background: linear-gradient(180deg, transparent, var(--lamp) 18%, var(--lamp-hot) 50%, var(--lamp) 82%, transparent);
  box-shadow: 0 0 16px 2px var(--lamp-glow), 0 0 70px 12px rgba(255, 181, 71, 0.16);
}
.beam::before {
  content: ""; position: absolute; inset: -6% -220px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.2), transparent);
}
.beam.hit { animation: hit 0.6s ease-out; }
@keyframes hit { from { filter: brightness(2.2); } to { filter: brightness(1); } }

.done {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding-left: clamp(28px, 4.5vw, 64px); text-align: left; overflow: hidden;
}
.row { display: flex; align-items: center; gap: 14px; font-size: clamp(0.92rem, 1.25vw, 1.05rem); white-space: nowrap; transition: opacity 0.6s ease; }
.row svg { flex: none; color: var(--lamp); }
.row:nth-child(2) { opacity: 0.7; }
.row:nth-child(3) { opacity: 0.48; }
.row:nth-child(4) { opacity: 0.3; }
.row:nth-child(5) { opacity: 0.15; }
.caption { margin-top: 30px; color: var(--mist); font-size: 0.92rem; text-align: center; }

/* Photo-real paperwork objects. Sizes are in em so they scale with .lane font-size. */
.obj { position: absolute; top: 0; left: 0; text-align: left; will-change: transform, opacity; filter: drop-shadow(0 1.2em 1.6em rgba(0, 0, 0, 0.7)); }
.obj .sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0.06) 100%); }

/* Supplier invoice, with a coffee ring */
.invoice { width: 12.5em; border-radius: 0.25em; background: linear-gradient(180deg, #fdfcf8, #f1eee6); color: #2b2925; padding: 1.1em 1.1em 1.2em; font-size: 1em; }
.invoice .hd { display: flex; align-items: center; gap: 0.55em; }
.invoice .logo { width: 1.7em; height: 1.7em; border-radius: 0.35em; background: #6b4a2f; color: #f3e6d4; display: grid; place-items: center; font-weight: 800; font-size: 0.8em; }
.invoice .co { font-weight: 700; font-size: 0.82em; font-stretch: 108%; }
.invoice .ti { margin-top: 0.9em; font-size: 0.6em; font-weight: 700; letter-spacing: 0.08em; color: #8b8170; }
.invoice .ln { height: 0.32em; border-radius: 0.2em; background: rgba(43, 41, 37, 0.12); margin-top: 0.55em; }
.invoice .tot { display: flex; justify-content: space-between; margin-top: 0.9em; padding-top: 0.6em; border-top: 1px solid rgba(43, 41, 37, 0.15); font-size: 0.75em; font-weight: 700; }
.invoice .ring { position: absolute; right: 0.6em; bottom: 1.6em; width: 3.6em; height: 3.6em; border-radius: 50%; border: 0.3em solid rgba(120, 78, 38, 0.16); box-shadow: inset 0 0 0.3em rgba(120, 78, 38, 0.12); }

/* Phone with a booking message */
.phone { width: 8.6em; height: 15.4em; border-radius: 1.5em; padding: 0.42em; background: linear-gradient(145deg, #3a3a3e, #121214); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.phone .scr { position: relative; height: 100%; border-radius: 1.15em; background: linear-gradient(180deg, #f6f6f9, #e9e9ee); overflow: hidden; padding: 1.9em 0.6em 0.6em; color: #111; }
.phone .isl { position: absolute; top: 0.45em; left: 50%; width: 2.6em; height: 0.75em; margin-left: -1.3em; border-radius: 1em; background: #000; }
.phone .who { text-align: center; font-size: 0.6em; font-weight: 700; }
.phone .who span { display: block; width: 2.2em; height: 2.2em; margin: 0 auto 0.3em; border-radius: 50%; background: linear-gradient(135deg, #f2a65a, #d9733b); }
.phone .bub { margin-top: 1em; background: #fff; border-radius: 0.9em 0.9em 0.9em 0.25em; padding: 0.55em 0.65em; font-size: 0.62em; line-height: 1.35; box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.08); }
.phone .tm { margin-top: 0.4em; font-size: 0.5em; color: #8a8a90; }

/* Google review */
.review { width: 12em; border-radius: 0.9em; background: #fff; color: #202124; padding: 0.95em 1em 1.05em; }
.review .hd { display: flex; align-items: center; gap: 0.55em; }
.review .av { width: 1.9em; height: 1.9em; border-radius: 50%; background: #2a7f6f; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.72em; }
.review .nm { font-size: 0.74em; font-weight: 700; }
.review .nm small { display: block; font-weight: 500; color: #70757a; font-size: 0.85em; }
.review .stars { margin-top: 0.55em; color: #fbbc04; font-size: 0.85em; letter-spacing: 0.08em; }
.review p { margin-top: 0.35em; font-size: 0.72em; line-height: 1.4; }

/* Roster on a clipboard */
.roster { width: 12.5em; border-radius: 0.6em; padding: 1.25em 0.55em 0.55em; background: linear-gradient(160deg, #a2714a, #7b5234); }
.roster::before { content: ""; position: absolute; top: -0.35em; left: 50%; width: 4em; height: 1.1em; margin-left: -2em; border-radius: 0.3em; background: linear-gradient(180deg, #e9e9ec, #9a9aa1); box-shadow: 0 0.15em 0.2em rgba(0, 0, 0, 0.35); }
.roster .pg { position: relative; background: #fbfaf6; border-radius: 0.2em; padding: 0.6em; color: #2b2925; }
.roster .ti { font-size: 0.66em; font-weight: 700; }
.roster table { width: 100%; border-collapse: collapse; margin-top: 0.45em; font-size: 0.48em; }
.roster th, .roster td { border: 1px solid rgba(43, 41, 37, 0.14); padding: 0.25em 0.2em; text-align: center; }
.roster th { color: #8b8170; font-weight: 600; }
.roster td:first-child { text-align: left; font-weight: 600; }
.roster td.on { background: rgba(255, 181, 71, 0.35); }

/* Thermal receipts: scalloped tear at the bottom */
.receipt { width: 10.5em; font-size: 1em; }
.receipt .pp { background: linear-gradient(90deg, #ebe9e2, #fbfaf7 35%, #f4f2ec 70%, #e6e4dc); padding: 1em 0.9em 1.5em; color: #363634; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.6em; line-height: 1.5;
  -webkit-mask: radial-gradient(circle at 0.5em 100%, transparent 0.42em, #000 0.47em) 0 0 / 1em 100% repeat-x;
  mask: radial-gradient(circle at 0.5em 100%, transparent 0.42em, #000 0.47em) 0 0 / 1em 100% repeat-x; }
.receipt .c { text-align: center; font-weight: 700; }
.receipt .r { display: flex; justify-content: space-between; gap: 1em; }
.receipt hr { border: 0; border-top: 1px dashed rgba(54, 54, 52, 0.45); margin: 0.6em 0; }

/* Pink carbon delivery docket */
.docket { width: 11.5em; border-radius: 0.15em; background: linear-gradient(180deg, #f8d3db, #efbcc8); color: #5a2a36; padding: 0.95em 1em 1.05em; }
.docket .ti { font-size: 0.7em; font-weight: 700; }
.docket .no { font-size: 0.55em; opacity: 0.75; }
.docket .r { display: flex; justify-content: space-between; font-size: 0.66em; margin-top: 0.7em; padding-bottom: 0.35em; border-bottom: 1px solid rgba(90, 42, 54, 0.2); }
.docket svg { display: block; width: 5em; margin-top: 0.7em; }

/* Sticky note with a piece of tape */
.sticky { width: 9.2em; height: 9.2em; background: linear-gradient(170deg, #ffe680, #f7d64a); color: #3d3410; padding: 1.2em 0.95em 0.9em; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; }
.sticky::before { content: ""; position: absolute; top: -0.55em; left: 50%; width: 3.6em; height: 1.1em; margin-left: -1.8em; background: rgba(255, 255, 255, 0.45); transform: rotate(-3deg); }
.sticky p { font-size: 0.82em; line-height: 1.35; }

/* Statement scroll story (home) */
.story { position: relative; height: 320vh; }
.story-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.story-pin::before {
  content: ""; position: absolute; left: 50%; bottom: -30vh; width: 140vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 181, 71, 0.28), transparent);
  opacity: 0; transition: opacity 1s ease;
}
.story-pin[data-frame="2"]::before { opacity: 1; }
.frame { grid-area: 1 / 1; width: min(1000px, 100% - 48px); opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease; }
.frame.on { opacity: 1; transform: none; filter: none; }
.frame time { display: block; font-stretch: 125%; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--mist); font-variant-numeric: tabular-nums; }
.frame.dawn time { color: var(--lamp); }
.frame h2 { font-size: clamp(2.3rem, 6.4vw, 5.6rem); margin-top: 18px; max-width: 16ch; margin-inline: auto; }
.frame p { margin: 26px auto 0; max-width: 40ch; }
.story-steps { position: absolute; right: clamp(16px, 4vw, 48px); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.story-steps i { display: block; width: 2px; height: 28px; background: rgba(255, 255, 255, 0.2); transition: background 0.4s ease, box-shadow 0.4s ease; }
.story-steps i.on { background: var(--lamp); box-shadow: 0 0 10px var(--lamp-glow); }
.story.static { height: auto; }
.story.static .story-pin { position: static; height: auto; display: block; padding: var(--section) 0; }
.story.static .frame { opacity: 1; transform: none; filter: none; margin: 0 auto 96px; }
.story.static .story-steps { display: none; }

/* Section headings */
.big { font-size: clamp(2.3rem, 6.4vw, 5.6rem); }
.head h2 { font-stretch: 120%; font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
.head .lede { margin-top: 18px; max-width: 48ch; }
.head.center { text-align: center; }
.head.center .lede { margin-inline: auto; }

/* Capabilities */
.caps-sec { padding: var(--section) 0; }
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 72px); margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--line); }
.caps h3 { font-stretch: 118%; font-size: 1.55rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.15; }
.caps h3::before { content: ""; display: block; width: 2px; height: 30px; margin-bottom: 22px; background: var(--lamp); box-shadow: 0 0 12px var(--lamp-glow); }
.caps p { color: var(--mist); margin-top: 12px; max-width: 34ch; }

/* Dashboard product shot */
.see { padding: var(--section) 0; text-align: center; overflow: hidden; }
.see .lede { max-width: 44ch; margin: 28px auto 0; }
.shot { position: relative; width: min(1000px, 100%); margin: clamp(64px, 9vh, 104px) auto 0; perspective: 1800px; }
.shot::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -70px; height: 170px; background: radial-gradient(closest-side, rgba(255, 181, 71, 0.26), transparent); filter: blur(8px); }
.screen {
  transform: rotateX(10deg); transform-origin: 50% 100%;
  background: linear-gradient(180deg, #17171a, #0f0f11);
  border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 20px;
  padding: clamp(18px, 3vw, 32px); text-align: left;
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.screen header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.screen header strong { font-stretch: 112%; font-weight: 650; font-size: 1.05rem; }
.screen header span { color: var(--mist); font-size: 0.82rem; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 0; }
.kpi span { display: block; color: var(--mist); font-size: 0.82rem; }
.kpi b { display: block; font-stretch: 118%; font-weight: 650; font-size: clamp(1.4rem, 3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi small { display: block; color: var(--mist); font-size: 0.8rem; margin-top: 4px; }
.kpi small.up { color: var(--lamp); }
.panels { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.panel { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.panel h4 { font-weight: 600; font-size: 0.86rem; color: var(--mist); }
.chart { width: 100%; height: auto; margin-top: 14px; display: block; }
.chart text { fill: var(--mist); font: 500 11px var(--font); }
.sellers { list-style: none; margin-top: 12px; }
.sellers li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.sellers li:first-child { border-top: 0; }
.sellers li span:last-child { color: var(--mist); }

/* Teasers on the home page */
.teaser { padding: var(--section) 0; }
.teaser .top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 52px; }
.card {
  position: relative; display: flex; flex-direction: column; min-height: 320px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 3.2vw, 44px); text-decoration: none;
  transition: border-color 0.3s ease;
}
.card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; background: radial-gradient(closest-side, rgba(255, 181, 71, 0.14), transparent); opacity: 0; transition: opacity 0.4s ease; }
.card:hover { border-color: rgba(255, 181, 71, 0.4); }
.card:hover::after { opacity: 1; }
.card .tag { color: var(--mist); font-size: 0.88rem; }
.card h3 { font-stretch: 115%; font-weight: 650; font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.15; letter-spacing: -0.015em; margin-top: 14px; }
.card p { color: var(--mist); margin-top: 14px; max-width: 42ch; }
.card .more { margin-top: auto; padding-top: 28px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255, 181, 71, 0.6); }
.mini-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 56px; }
.mini-steps li { counter-increment: s; border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 26px; }
.mini-steps li::before { content: counter(s); display: block; margin-bottom: 22px; font-stretch: 125%; font-weight: 700; font-size: 3.4rem; line-height: 1; color: rgba(255, 255, 255, 0.28); }
.mini-steps h3 { font-stretch: 115%; font-weight: 650; font-size: 1.4rem; line-height: 1.2; }
.mini-steps .price { margin-top: 4px; font-weight: 600; font-size: 0.95rem; color: var(--lamp); }
.mini-steps p { color: var(--mist); margin-top: 12px; max-width: 32ch; }

/* Closing call to action */
.cta { padding: clamp(80px, 12vh, 140px) 0 var(--section); text-align: center; }
.shaft { width: 2px; height: clamp(90px, 14vh, 150px); margin: 0 auto 56px; background: linear-gradient(180deg, transparent, var(--lamp)); box-shadow: 0 0 14px var(--lamp-glow); }
.cta h2 { font-size: clamp(2.7rem, 8.5vw, 7rem); max-width: 11ch; margin-inline: auto; }
.cta .lede { margin: 28px auto 0; max-width: 36ch; }

/* Inner page hero */
.page-hero { padding: clamp(64px, 11vh, 130px) 0 clamp(56px, 8vh, 96px); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; left: 50%; top: -40vh; width: 120vw; height: 70vh; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 181, 71, 0.12), transparent); pointer-events: none; }
.page-hero .shaft { margin-bottom: 44px; }
.page-hero h1 { font-size: clamp(3rem, 9vw, 7.4rem); }
.page-hero .lede { max-width: 46ch; margin: 26px auto 0; }

/* Work page: case studies */
.case-study { padding: clamp(72px, 11vh, 136px) 0; border-top: 1px solid var(--line); }
.page-hero + .case-study { border-top: 0; }
.case-study .grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.case-study .meta { position: sticky; top: 100px; }
.case-study .tag { color: var(--mist); font-size: 0.92rem; }
.case-study h2 { font-stretch: 120%; font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -0.025em; line-height: 1.04; margin-top: 16px; text-wrap: balance; }
.case-study .result { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--lamp); font-size: 1.12rem; max-width: 34ch; }
.case-study .body h3 { font-stretch: 112%; font-weight: 650; font-size: 1.25rem; margin-bottom: 10px; }
.case-study .body section + section { margin-top: 40px; }
.ranked { list-style: none; counter-reset: r; display: grid; gap: 10px; margin-top: 8px; }
.ranked li { counter-increment: r; display: grid; grid-template-columns: 32px 1fr; gap: 4px 14px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.ranked li::before { content: counter(r); grid-row: span 2; color: var(--mist); font-stretch: 125%; font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.ranked li b { font-weight: 600; }
.ranked li span { color: var(--mist); font-size: 0.95rem; }
.ranked li:first-child { background: rgba(255, 181, 71, 0.12); }
.ranked li:first-child::before { color: var(--lamp); }
.guards { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.guards li { padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.guards li b { display: block; font-weight: 600; }
.guards li span { display: block; color: var(--mist); font-size: 0.95rem; margin-top: 6px; }
.flow { display: grid; margin-top: 8px; }
.flow div { position: relative; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.flow div + div { margin-top: 24px; }
.flow div + div::before { content: ""; position: absolute; left: 26px; top: -24px; width: 2px; height: 24px; background: linear-gradient(var(--line), rgba(255, 255, 255, 0.3)); }
.flow div span { color: var(--mist); }
.flow .lit { background: rgba(255, 181, 71, 0.12); }

/* How it works page */
.process { padding: clamp(40px, 6vh, 72px) 0 var(--section); }
.process ol { list-style: none; counter-reset: s; }
.process li { counter-increment: s; display: grid; grid-template-columns: minmax(120px, 0.5fr) 1fr; gap: clamp(24px, 5vw, 80px); padding: clamp(48px, 7vh, 80px) 0; border-top: 1px solid var(--line); }
.process li::before { content: counter(s); font-stretch: 125%; font-weight: 700; font-size: clamp(5rem, 12vw, 9rem); line-height: 0.85; color: rgba(255, 255, 255, 0.12); }
.process h2 { font-stretch: 120%; font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.02em; line-height: 1.05; }
.process .price { margin-top: 8px; font-weight: 600; color: var(--lamp); }
.process .prose { margin-top: 18px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 52px; }
.svc-grid div { padding: clamp(26px, 3vw, 38px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.svc-grid h3 { font-stretch: 115%; font-weight: 650; font-size: 1.35rem; line-height: 1.2; }
.svc-grid h3::before { content: ""; display: block; width: 2px; height: 24px; margin-bottom: 18px; background: var(--lamp); box-shadow: 0 0 12px var(--lamp-glow); }
.svc-grid p { color: var(--mist); margin-top: 10px; max-width: 52ch; }
.auto-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.auto-grid .ask { background: transparent; border: 1px dashed rgba(255, 181, 71, 0.5); }
.auto-grid .ask .textlink { white-space: nowrap; }
.skills { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.skills li { padding: 18px 0; border-top: 1px solid var(--line); }
.skills li b { display: block; font-weight: 600; }
.skills li span { display: block; color: var(--mist); font-size: 0.95rem; margin-top: 4px; }
.auto-grid div { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.auto-grid h3 { font-stretch: 112%; font-weight: 650; font-size: 1.15rem; }
.auto-grid p { color: var(--mist); margin-top: 8px; font-size: 0.98rem; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; list-style: none; }
.tools li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 0.95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq { margin-top: 8px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist); transform: rotate(45deg); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--mist); padding: 0 0 24px; max-width: 60ch; }
.block { padding: var(--section) 0; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 7vw, 120px); align-items: start; }
.facts { list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li span:last-child { color: var(--mist); text-align: right; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 52px; }
.principles div { padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.principles h3 { font-stretch: 115%; font-weight: 650; font-size: 1.35rem; }
.principles h3::before { content: ""; display: block; width: 2px; height: 24px; margin-bottom: 18px; background: var(--lamp); box-shadow: 0 0 12px var(--lamp-glow); }
.principles p { color: var(--mist); margin-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--mist); font-size: 0.86rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
footer .legal, footer .links { display: flex; flex-wrap: wrap; gap: 6px 26px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Opening sequence (home): the beam ignites, then the headline arrives */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .ln { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .hero h1 .ln:nth-child(2) { animation-delay: 0.14s; }
  .hero .lede, .hero .actions { animation: fadein 0.9s ease both 0.55s; }
  .machine .beam { animation: ignite 1.3s cubic-bezier(0.6, 0, 0.2, 1) both 0.75s; transform-origin: 50% 0; }
  .machine .done, .hero .caption { animation: fadein 1s ease both 1.5s; }
  .page-hero h1, .page-hero .lede { animation: rise 1s cubic-bezier(0.2, 0.7, 0.1, 1) both 0.1s; }
  .page-hero .shaft { animation: ignite 1s cubic-bezier(0.6, 0, 0.2, 1) both; transform-origin: 50% 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.3em); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes ignite { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes igniteX { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* Responsive */
@media (max-width: 900px) {
  .cards, .about-grid, .case-study .grid, .split { grid-template-columns: 1fr; }
  .case-study .meta { position: static; }
  .caps, .mini-steps { grid-template-columns: 1fr; gap: 44px; }
  .auto-grid { grid-template-columns: 1fr 1fr; }
  .panels { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav nav a:not(.btn) { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.25s ease; }
  .menu-btn span::before { content: ""; position: absolute; top: 5px; }
  .menu-btn span { transform: translateY(-2.5px); }
  .nav.open .menu-btn span { transform: rotate(45deg); }
  .nav.open .menu-btn span::before { transform: translateY(-5px) rotate(-90deg); }
  .nav nav { gap: 10px; }
  .nav.open nav a:not(.btn) {
    display: block; position: fixed; left: 0; right: 0; z-index: 41;
    padding: 18px 24px; background: #000; border-bottom: 1px solid var(--line);
    font-size: 1.6rem; font-stretch: 120%; font-weight: 650; color: var(--text);
  }
  .nav.open nav a:nth-child(1) { top: 60px; }
  .nav.open nav a:nth-child(2) { top: 132px; }
  .nav.open nav a:nth-child(3) { top: 204px; }
  .nav.open nav a:nth-child(4) { top: 276px; }
  .nav.open nav a[aria-current="page"] { color: var(--lamp); }
  .nav nav a[aria-current="page"]::after { display: none; }
  .machine { grid-template-columns: 1fr; grid-template-rows: 220px 2px auto; height: auto; }
  .lane { font-size: 11px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
  .beam { background: linear-gradient(90deg, transparent, var(--lamp) 14%, var(--lamp-hot) 50%, var(--lamp) 86%, transparent); }
  .beam::before { inset: -140px -4%; }
  .done { padding: 30px 6px 0; min-height: 250px; justify-content: flex-start; }
  .row { white-space: normal; align-items: flex-start; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { display: none; }
  .principles, .guards, .svc-grid, .skills, .caps { grid-template-columns: 1fr; }
  .auto-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .auto-grid div { padding: 18px; }
  .auto-grid h3 { font-size: 1rem; }
  .auto-grid p { font-size: 0.9rem; }
  .process li { grid-template-columns: 1fr; gap: 8px; }
  .story-steps { right: 12px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .machine .beam { animation-name: igniteX; transform-origin: 0 50%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam.hit { animation: none; }
  .frame { transition: none; }
}
