/* ==========================================================================
   Aexon — DevOps & software studio
   Paper, ink and one safety-orange. Motion is mechanical, never glowing.
   ========================================================================== */

:root {
  --paper: #f3f0e8;
  --paper-2: #e9e5d9;
  --card: #fbfaf6;
  --ink: #121212;
  --ink-2: #3b3a36;
  --muted: #6a675f;
  --rule: rgba(18, 18, 18, .16);
  --orange: #ff4d00;
  --green: #12804a;
  --red: #b4361d;

  --board: #161616;
  --flap: #242424;
  --flap-text: #f1ede2;

  --radius: 6px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code, pre { font-family: var(--mono); }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--orange); color: var(--ink); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--bh); padding: 0 24px;
  border-radius: 4px; border: 1.5px solid var(--ink);
  font-weight: 700; font-size: 15.5px; white-space: nowrap;
  cursor: pointer;
  transition: transform .4s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { --bh: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn .ic { transition: transform .4s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }

/* Rolling label (JS wraps the text in a span) */
.label { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; vertical-align: top; }
.label > span { display: block; text-shadow: 0 1.3em 0 currentColor; transition: transform .5s var(--ease); }
.btn:hover .label > span { transform: translateY(-1.3em); }

.magnetic { will-change: transform; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; background: var(--orange);
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: transform .5s var(--ease), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(243, 240, 232, .94); border-bottom-color: var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }

.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 23px; letter-spacing: -.03em; }
.brand img { transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-90deg); }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a:not(.btn) { position: relative; padding: 6px 0; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a.is-current { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; margin-left: auto;
  border-radius: 4px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 28px) 0 clamp(56px, 8vw, 96px); }

.hero-meta {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-block: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
}
.status-dot { display: inline-flex; align-items: center; gap: 9px; }
.status-dot::before { content: ""; width: 9px; height: 9px; background: var(--green); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hero-title {
  margin: clamp(20px, 3vw, 40px) 0 clamp(28px, 4vw, 48px);
  font-size: clamp(60px, 12.6vw, 178px);
  font-stretch: 62%;
  font-weight: 850;
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding-top: .04em; }
.hero-title .word {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 90ms + 120ms);
}
@keyframes rise { to { transform: none; } }

.rotator { display: inline-grid !important; vertical-align: top; color: var(--orange); }
.rotator .rot {
  grid-area: 1 / 1;
  transform: translate3d(0, 105%, 0);
  transition: transform .75s var(--ease);
}
.rotator .rot.is-in { transform: none; }
.rotator .rot.is-out { transform: translate3d(0, -105%, 0); }

.hero-in {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: fadeUp .9s var(--ease) forwards;
  animation-delay: calc(var(--d) * 100ms + 250ms);
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-sub { max-width: 520px; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); margin-bottom: 32px; }
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.founder-chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 18px 8px 8px; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.founder-chip:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.founder-chip img { width: 48px; height: 48px; border-radius: 3px; object-fit: cover; }
.founder-chip span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.founder-chip strong { display: block; font-size: 16px; color: var(--ink); }
.founder-chip .li { width: 20px; height: 20px; color: #0a66c2; }

/* ---------- Split-flap board ---------- */
.board {
  margin: 0;
  container-type: inline-size;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 10px;
  background: var(--board);
  color: var(--flap-text);
  box-shadow: 0 30px 60px -30px rgba(18, 18, 18, .55);
}
.board-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.board-title { font-size: clamp(20px, 2vw, 26px); font-weight: 800; font-stretch: 70%; text-transform: uppercase; letter-spacing: .04em; }
.board-sub { font-family: var(--mono); font-size: 12px; color: #9a968c; }
.board-clock { margin-left: auto; font-family: var(--mono); font-size: 15px; font-weight: 700; color: #ffb24d; letter-spacing: .06em; }

.board-rows, .board-cols { --cw: clamp(11px, calc((100cqw - 56px) / 24.4), 26px); }
.board-cols {
  display: grid;
  grid-template-columns: calc(var(--cw) * 10 + 18px) calc(var(--cw) * 4 + 6px) 1fr;
  column-gap: calc(var(--cw) * .7);
  margin-bottom: 8px;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #8a867d;
}
.board-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.board-rows li { display: flex; align-items: center; gap: calc(var(--cw) * .7); }

.cell-group { display: flex; gap: 2px; font-family: var(--mono); font-weight: 700; font-size: calc(var(--cw) * .8); }
.flap {
  position: relative; display: grid; place-items: center;
  width: var(--cw); height: calc(var(--cw) * 1.42);
  border-radius: 2px;
  background: linear-gradient(#2b2b2b 50%, var(--flap) 50%);
  color: var(--flap-text);
  font-size: calc(var(--cw) * .8); line-height: 1;
  overflow: hidden;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #0c0c0c; }
.flap .ch { display: block; animation: flapA 80ms linear; }
.flap.odd .ch { animation-name: flapB; }
@keyframes flapA { 50% { transform: scaleY(.2); } }
@keyframes flapB { 50% { transform: scaleY(.2); } }

.lamp { width: calc(var(--cw) * .55); height: calc(var(--cw) * .55); margin-left: auto; background: #4a4a46; flex: none; }
.lamp.is-busy { background: #ffb24d; animation: blink .9s steps(1) infinite; }
.lamp.is-shipped { background: #3ccf7e; }

.board-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--mono); font-size: 11.5px; color: #8a867d;
}

/* ---------- Band (velocity marquee) ---------- */
.band { overflow: hidden; background: var(--orange); border-block: 1.5px solid var(--ink); }
.band-track { display: flex; width: max-content; will-change: transform; }
.band-group { display: flex; align-items: center; flex: none; }
.band-group span {
  padding: 0 .4em;
  font-size: clamp(40px, 7vw, 104px); font-weight: 850; font-stretch: 62%; line-height: 1.12;
  text-transform: uppercase; white-space: nowrap;
}
.band-group b { font-size: clamp(16px, 2vw, 28px); padding: 0 .4em; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-tint { background: var(--paper-2); }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.label-row {
  display: flex; gap: 14px;
  padding-top: 14px; margin-bottom: clamp(22px, 3vw, 34px);
  border-top: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
}
.label-row span:first-child { color: var(--orange); font-weight: 700; }

.section-head h2, .founder-copy h2 {
  max-width: 17ch;
  font-size: clamp(40px, 6vw, 84px);
  font-stretch: 72%;
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.015em;
}
@media (min-width: 961px) {
  .section-head.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
  .section-head.split .label-row { grid-column: 1 / -1; }
  .section-head.split .lead { margin-top: 0; padding-bottom: .4em; }
}
.lead { margin-top: 22px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.lead a, .plans-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Marker highlight that draws in when the heading appears */
.hl {
  color: inherit;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 88% / 0% .26em;
  transition: background-size 1.1s var(--ease) .35s;
  padding: 0 .02em;
}
.is-visible .hl, html:not(.js) .hl { background-size: 100% .26em; }

/* Reveal (only hidden while JS runs, so the page never stays blank) */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Services ---------- */
.core {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--card);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.core-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.core-tag {
  padding: 5px 10px; background: var(--orange); color: var(--ink);
  font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.core h3 { font-size: clamp(32px, 4vw, 52px); font-stretch: 72%; font-weight: 850; }
.core-lead { color: var(--ink-2); font-size: 18px; max-width: 520px; }
.core .btn { margin-top: 8px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; padding: 2px; background: var(--ink); color: var(--paper); }

.code-card { align-self: stretch; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--board); color: #d9d5ca; overflow: hidden; min-width: 0; }
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--mono); font-size: 12.5px; color: #9a968c;
}
.copy-btn {
  padding: 4px 10px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .25); background: transparent;
  font-family: var(--mono); font-size: 11.5px; color: #d9d5ca; cursor: pointer; transition: background-color .2s, color .2s;
}
.copy-btn:hover { background: var(--flap-text); color: var(--ink); }
.copy-btn.is-copied { background: #3ccf7e; color: var(--ink); border-color: #3ccf7e; }
.code-card pre { flex: 1; margin: 0; padding: 20px; font-size: 13.5px; line-height: 1.75; overflow-x: auto; }
.k { color: #ff9a62; }
.c { color: #8a867d; }
.p { color: #ffb24d; }
.ok { color: #6fdc9b; }

.service-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1.5px solid var(--ink); }
.service-rows li { border-top: 1.5px solid var(--ink); }
.srow {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 56px; align-items: center; gap: 24px;
  padding: clamp(22px, 3vw, 34px) 12px;
  transition: color .35s var(--ease);
}
.srow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease);
}
.srow:hover { color: var(--paper); }
.srow:hover::before { transform: scaleY(1); }
.srow-num { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--orange); }
.srow-title { font-size: clamp(26px, 3.4vw, 46px); font-weight: 850; font-stretch: 72%; line-height: 1; }
.srow-desc { font-size: 16px; color: var(--ink-2); transition: color .35s; }
.srow:hover .srow-desc { color: #c9c5ba; }
.srow-arrow {
  display: grid; place-items: center; width: 52px; height: 52px; justify-self: end;
  border: 1.5px solid currentColor; border-radius: 50%;
  transition: transform .5s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.srow-arrow svg { width: 22px; height: 22px; }
.srow:hover .srow-arrow { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--ink); }

/* ---------- Compare ---------- */
.compare { max-width: 980px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); padding: clamp(18px, 3vw, 34px); }
.compare-toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: 18px; border: 1.5px solid var(--ink); border-radius: 4px;
}
.compare-toggle button {
  position: relative; z-index: 1; padding: 10px 22px; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 700; white-space: nowrap; transition: color .35s;
}
.compare-toggle button[aria-pressed="true"] { color: var(--paper); }
.compare-toggle .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 2px;
  background: var(--ink); transition: transform .55s var(--ease);
}
.compare.is-after .compare-toggle .thumb { transform: translateX(100%); }

.compare-list { list-style: none; margin: 0; padding: 0; }
.compare-list li { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 20px; padding: 18px 2px; border-top: 1px solid var(--rule); }
.cl-label { font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.flip { display: grid; perspective: 700px; }
.face {
  grid-area: 1 / 1; display: flex; align-items: center; gap: 12px;
  font-size: clamp(17px, 1.7vw, 21px); font-weight: 600;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s var(--ease), opacity .4s;
  transition-delay: calc(var(--r) * 70ms);
}
.face svg { width: 24px; height: 24px; flex: none; padding: 4px; }
.face code { font-size: .85em; padding: 2px 7px; background: var(--paper-2); border: 1px solid var(--rule); }
.face.before { color: var(--ink-2); }
.face.before svg { background: var(--red); color: #fff; }
.face.after { transform: rotateX(-180deg); opacity: 0; }
.face.after svg { background: var(--green); color: #fff; }
.compare.is-after .face.before { transform: rotateX(180deg); opacity: 0; }
.compare.is-after .face.after { transform: none; opacity: 1; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-visual { position: sticky; top: calc(var(--nav-h) + 6vh); }
.pv-card { border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.pv-head { display: flex; align-items: baseline; gap: 14px; padding: 24px 26px 18px; }
.pv-num { display: inline-block; font-size: 72px; font-weight: 850; font-stretch: 62%; line-height: .85; color: var(--orange); }
.pv-title { display: inline-block; font-size: 30px; font-weight: 850; font-stretch: 72%; }
.pv-num.is-swap, .pv-title.is-swap { animation: swapIn .55s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(60%); } }
.pv-of { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.pv-rail { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 0 26px 22px; height: 14px; }
.pv-rail::before, .pv-fill {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--rule);
}
.pv-fill { background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--pp, 0)); }
.pv-rail i {
  position: relative; z-index: 1; width: 14px; height: 14px; background: var(--card); border: 2px solid var(--ink);
  transition: background-color .3s, transform .4s var(--ease);
}
.pv-rail i.is-on { background: var(--orange); transform: rotate(45deg); }

.pv-code { display: grid; background: var(--board); }
.pv-code pre {
  grid-area: 1 / 1; margin: 0; padding: 22px 26px 26px; min-height: 200px;
  font-size: 13.5px; line-height: 1.75; color: #d9d5ca; white-space: pre; overflow-x: auto;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease); pointer-events: none;
}
.pv-code pre.is-on { opacity: 1; transform: none; pointer-events: auto; }

.process-steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 24px; row-gap: 12px;
  align-content: center; min-height: 42vh;
  opacity: .28; transition: opacity .5s var(--ease);
}
.step:first-child { min-height: 30vh; align-content: start; padding-top: 6vh; }
.step:last-child { min-height: 36vh; }
.step.is-active { opacity: 1; }
.step-num {
  grid-column: 1; grid-row: 1; align-self: center;
  display: grid; place-items: center; width: 48px; height: 48px;
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--ink); transition: background-color .3s, color .3s;
}
.step.is-active .step-num { background: var(--ink); color: var(--paper); }
.step h3 { grid-column: 2; font-size: clamp(32px, 3.6vw, 48px); font-stretch: 72%; font-weight: 850; }
.step p { grid-column: 2; font-size: 18px; color: var(--ink-2); max-width: 460px; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; gap: 16px;
  padding: 30px 28px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.plan:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.plan-kicker { display: flex; align-items: center; justify-content: space-between; min-height: 26px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--orange); }
.plan h3 { font-size: 46px; font-stretch: 72%; font-weight: 850; }
.plan-desc { color: var(--ink-2); min-height: 3.1em; }
.plan .ticks { margin: 6px 0 10px; }
.plan .ticks li { font-size: 15.5px; }
.plan-price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.plan-featured { background: var(--ink); color: var(--paper); }
.plan-featured:hover { box-shadow: 6px 6px 0 var(--orange); }
.plan-featured .plan-desc { color: #c9c5ba; }
.plan-featured .ticks svg { background: var(--orange); color: var(--ink); }
.plan-featured .plan-price { border-color: rgba(255, 255, 255, .2); }
.plan-badge { padding: 4px 9px; background: var(--orange); color: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.plans-note { margin-top: 30px; color: var(--ink-2); }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-card {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.work-card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.work-visual {
  position: relative; height: 220px; display: flex; align-items: center; justify-content: center; gap: 22px;
  background: var(--paper-2); border-bottom: 1.5px solid var(--ink); overflow: hidden;
}
.visual-tag {
  position: absolute; left: 14px; top: 14px; padding: 4px 9px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.work-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px 24px 28px; }
.work-body h3 { font-size: 32px; font-stretch: 72%; font-weight: 850; }
.work-body p { color: var(--ink-2); font-size: 16px; }
.work-body .link-arrow { margin-top: auto; padding-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 3px 8px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 11.5px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link-arrow .ic { transition: transform .4s var(--ease); }
.work-card:hover .link-arrow .ic, .link-arrow:hover .ic { transform: translate(3px, -3px); }

.docs .doc {
  width: 96px; padding: 16px 12px; display: grid; gap: 8px;
  background: #fff; border: 1.5px solid var(--ink); transform: rotate(-4deg);
  transition: transform .6s var(--ease);
}
.docs .doc:last-of-type { transform: rotate(4deg); }
.work-card:hover .docs .doc { transform: rotate(0); }
.docs .doc i { height: 6px; background: #d8d4c9; }
.docs .doc i:nth-child(odd) { width: 78%; }
.docs .doc i.hit { animation: hit 2.4s steps(1) infinite; }
@keyframes hit { 0%, 100% { background: #d8d4c9; } 35%, 75% { background: var(--orange); } }

.site .site-frame {
  width: 190px; padding: 0 0 12px; background: var(--paper); border: 1.5px solid var(--ink);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .6s var(--ease);
}
.work-card:hover .site .site-frame { transform: translateY(-6px) rotate(-2deg); }
.sf-bar { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1.5px solid var(--ink); }
.sf-bar i { width: 6px; height: 6px; border: 1.5px solid var(--ink); border-radius: 50%; }
.sf-title { padding: 0 10px; font-size: 17px; font-weight: 850; font-stretch: 62%; line-height: .9; }
.sf-board { margin: 0 10px; padding: 6px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: var(--board); }
.sf-board i { height: 12px; background: var(--flap); }
.sf-board i:nth-child(6) { background: #3ccf7e; }

.work-next { align-items: flex-start; justify-content: center; gap: 14px; padding: 32px 28px; border-style: dashed; background: transparent; }
.work-next h3 { font-size: 40px; font-stretch: 72%; font-weight: 850; }
.work-next p { color: var(--ink-2); }
.next-plus { display: grid; place-items: center; width: 60px; height: 60px; background: var(--orange); border: 1.5px solid var(--ink); margin-bottom: 8px; transition: transform .6s var(--ease); }
.next-plus svg { width: 28px; height: 28px; }
.work-next:hover .next-plus { transform: rotate(90deg); }
.work-more { margin-top: 28px; color: var(--ink-2); }
.work-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.founder-photo { position: sticky; top: calc(var(--nav-h) + 32px); }
.founder-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
}
.stamp { position: absolute; right: -28px; bottom: -36px; width: clamp(110px, 12vw, 150px); height: auto; }
.stamp-bg { fill: var(--orange); stroke: var(--ink); stroke-width: 1.5; }
.stamp text {
  font-family: var(--mono); font-size: 10.6px; font-weight: 700; letter-spacing: .12em; fill: var(--ink);
  transform-box: view-box; transform-origin: 50% 50%;
  animation: spin 18s linear infinite;
}
.stamp-arrow { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; }
@keyframes spin { to { transform: rotate(360deg); } }

.founder-role { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--mono); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.founder-role::before { content: ""; width: 10px; height: 10px; background: var(--orange); }
.founder-about { margin-top: 26px; display: grid; gap: 16px; font-size: 19px; color: var(--ink-2); max-width: 620px; }
.founder-about p { white-space: pre-line; }

.credentials { margin-top: 40px; display: grid; gap: 34px; }
.cred-block h3 {
  margin-bottom: 16px; padding-top: 12px; border-top: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 6px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tl-date { grid-column: 1; grid-row: 1 / span 3; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 4px; }
.tl-role { font-weight: 800; font-size: 20px; font-stretch: 85%; }
.tl-org { color: var(--ink-2); }
.tl-desc { color: var(--ink-2); font-size: 15.5px; }
.cert-list, .edu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cert-list li, .edu-list li { padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.cert-list strong, .edu-list strong { display: block; font-size: 16.5px; }
.cert-list span, .edu-list span { font-size: 14px; color: var(--muted); }
.cert-list a { font-size: 14px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.skill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-list li { padding: 6px 12px; border: 1.5px solid var(--ink); font-size: 14.5px; font-weight: 600; background: var(--card); }

.founder-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: clamp(20px, 2vw, 26px); font-weight: 800; font-stretch: 80%; line-height: 1.15;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--orange); }
.faq-ic { position: relative; width: 34px; height: 34px; flex: none; border: 1.5px solid var(--ink); color: var(--ink); transition: background-color .3s, transform .5s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; transition: transform .5s var(--ease); }
.faq-ic::after { transform: rotate(90deg); }
.faq details[open] .faq-ic { background: var(--orange); transform: rotate(180deg); }
.faq details[open] .faq-ic::after { transform: rotate(0deg); }
.faq details.is-closing .faq-ic { background: transparent; transform: none; }
.faq details.is-closing .faq-ic::after { transform: rotate(90deg); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 54px 26px 0; color: var(--ink-2); font-size: 17.5px; }

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 11vw, 140px) 0; background: var(--orange); border-top: 1.5px solid var(--ink); }
.contact .label-row span:first-child { color: var(--ink); }
.contact-title {
  font-size: clamp(64px, 13vw, 190px); font-weight: 850; font-stretch: 62%; line-height: .84;
  text-transform: uppercase; max-width: 10ch;
}
.contact-grid { margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.contact .lead { margin: 0; color: var(--ink); font-weight: 500; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact .btn-ink:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.contact .btn-line:hover { background: var(--ink); color: var(--orange); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 64px 0 28px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.footer-tagline { font-size: clamp(28px, 3vw, 40px); font-weight: 850; font-stretch: 62%; line-height: .95; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 36px; }
.footer-links a, .footer-social a { font-size: 15px; color: #c9c5ba; transition: color .2s; }
.footer-links a:hover, .footer-social a:hover { color: var(--orange); }
.footer-social { display: grid; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; gap: 6px; }

.wordmark {
  display: flex; justify-content: space-between;
  margin: 48px 0 18px;
  font-size: clamp(120px, 34vw, 500px); font-weight: 850; font-stretch: 62%; line-height: .8;
  letter-spacing: -.02em; overflow: hidden; user-select: none;
}
.wordmark span { display: block; padding-top: .04em; transition: transform 1.1s var(--ease), color .3s; transition-delay: calc(var(--i, 0) * 70ms); }
.js .wordmark span { transform: translateY(102%); }
.js .wordmark.is-visible span { transform: none; }
.wordmark span:hover { color: var(--orange); transition-delay: 0s; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18);
  font-family: var(--mono); font-size: 12.5px; color: #9a968c; text-transform: uppercase; letter-spacing: .04em;
}
.footer-bottom a:hover { color: var(--orange); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: start; }
  .hero-sub { grid-column: 1; grid-row: 1 / span 2; }
  .hero-ctas { grid-column: 2; }
  .founder-chip { grid-column: 2; justify-self: start; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
    background: var(--paper);
    opacity: 0; visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav-links a:not(.btn) {
    padding: 12px 0; border-bottom: 1.5px solid var(--ink);
    font-size: 44px; font-weight: 850; font-stretch: 62%; text-transform: uppercase; line-height: 1; color: var(--ink);
    opacity: 0; transform: translateY(24px);
    transition: opacity .45s var(--ease), transform .55s var(--ease), color .2s;
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a:not(.btn):hover { color: var(--orange); }
  .nav-cta-mobile { display: inline-flex; margin-top: 24px; height: 58px; opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
  .nav-open .nav-links { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav-open .nav-links a { opacity: 1; transform: none; }
  .nav-open .nav-links a:nth-child(2) { transition-delay: .04s; }
  .nav-open .nav-links a:nth-child(3) { transition-delay: .08s; }
  .nav-open .nav-links a:nth-child(4) { transition-delay: .12s; }
  .nav-open .nav-links a:nth-child(5) { transition-delay: .16s; }
  .nav-open .nav-links a:nth-child(6) { transition-delay: .2s; }
  .nav-open .nav-links a:nth-child(7) { transition-delay: .24s; }
  /* a transform on .nav would trap the fixed overlay inside the bar */
  .nav-open .nav { transform: none; background: transparent; border-color: transparent; }

  .hero-copy { display: block; }

  .core { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 44px minmax(0, 1fr) 48px; row-gap: 8px; }
  .srow-desc { grid-column: 2; grid-row: 2; }
  .srow-arrow { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }

  .process { grid-template-columns: 1fr; }
  .process-visual { display: none; }
  .process-steps { display: grid; gap: 14px; }
  .step, .step:first-child, .step:last-child {
    min-height: 0; padding: 24px 22px 26px; align-content: start; opacity: 1;
    border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card);
  }

  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan-desc { min-height: 0; }

  .work { grid-template-columns: 1fr 1fr; }
  .work-next { grid-column: 1 / -1; }

  .founder { grid-template-columns: 1fr; }
  .founder-photo { position: relative; top: 0; max-width: 420px; margin-bottom: 28px; }

  .faq-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-tagline { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .hero-ctas .btn { flex: 1 1 auto; }

  .compare-toggle { display: grid; width: 100%; }
  .compare-toggle button { padding: 10px 8px; font-size: 14px; }
  .compare-list li { grid-template-columns: 1fr; gap: 8px; }

  .srow { grid-template-columns: minmax(0, 1fr) 44px; padding-inline: 4px; }
  .srow-num { grid-column: 1; grid-row: 1; }
  .srow-title { grid-column: 1; grid-row: 2; }
  .srow-desc { grid-column: 1 / -1; grid-row: 3; }
  .srow-arrow { grid-column: 2; grid-row: 1 / span 2; }

  .step { grid-template-columns: 1fr; }
  .step-num, .step h3, .step p { grid-column: 1; grid-row: auto; }
  .step-num { margin-bottom: 4px; }

  .work { grid-template-columns: 1fr; }
  .work-next { grid-column: auto; }

  .stamp { right: -6px; bottom: -30px; }
  .founder-photo img { box-shadow: 6px 6px 0 var(--ink); }
  .timeline li { grid-template-columns: 1fr; }
  .tl-date { grid-row: auto; padding-top: 0; }

  .faq-body p { padding-right: 0; }
  .contact-actions { width: 100%; }
  .contact-actions .btn { flex: 1 1 auto; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .hero-title .word, .hero-in { transform: none; opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .wordmark span { transform: none; }
  .hl { background-size: 100% .26em; }
}
