/* Near-black, Inter at its heaviest, one blue. */
:root {
  --bg: #030407; --ink: #fff; --soft: #C9D5F0; --muted: #A8B6D6; --blue: #6EA0FF; --line: #1B2748; --edge: #2B3F78;
  --glow: rgba(45, 105, 255, .9); --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 5.5vw, 80px); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 18px/1.45 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; } ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 20; background: #fff; color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.k { display: flex; align-items: center; gap: 8px; font: 500 clamp(12px, .7rem + .15vw, 14px)/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.app-icon { border-radius: 5px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 900; }
h2 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem); line-height: .95; letter-spacing: -.055em; margin-top: 12px; text-wrap: balance; }
.blue { color: var(--blue); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(3, 4, 7, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { font-weight: 900; font-size: 18px; letter-spacing: -.02em; color: #fff; text-decoration: none; padding: 12px 0; }
.nav-links { display: none; gap: 34px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); } .nav-links a:hover { color: #fff; }
.pill, .btn { display: inline-block; font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; padding: 15px 22px; border-radius: 999px; }
.pill { background: #fff; color: var(--bg); }
.btn { background: var(--blue); color: var(--bg); margin-top: 18px; }
.btn.ghost { background: none; color: #fff; border: 1px solid var(--edge); }
.btn:hover, .pill:hover { filter: brightness(1.1); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* HERO */
.hero { position: relative; overflow-x: clip; }
.hero::before { content: ""; position: absolute; pointer-events: none; width: min(760px, 120vw); aspect-ratio: 1; right: max(-80px, calc(50% - 760px)); top: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 96, 255, .5), rgba(40, 96, 255, 0)); }
.hero-grid { position: relative; display: grid; gap: 30px; padding-block: clamp(28px, 6vw, 90px) clamp(56px, 8vw, 120px); }
h1 { font-size: clamp(2.9rem, 13.6vw, 8.1rem); line-height: .9; letter-spacing: -.065em; }
h1 span { display: block; white-space: nowrap; }
.headline { margin-top: clamp(18px, 2.6vw, 40px); font-weight: 500; font-size: clamp(1.2rem, 1rem + 1.1vw, 1.875rem); line-height: 1.35; letter-spacing: -.02em; color: var(--soft); max-width: 21em; text-wrap: pretty; }
.headline b { color: #fff; font-weight: 800; }
.portrait { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: 26px; box-shadow: 0 50px 110px -40px var(--glow); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 60px; align-items: center; }
  h1 { font-size: min(9vw, 130px); }
  .portrait { aspect-ratio: 440 / 560; }
}

.section { padding-block: clamp(56px, 8vw, 120px); }

/* STORY MAP */
.path { position: relative; margin-top: clamp(36px, 5vw, 70px); }
.snake { display: none; overflow: visible; filter: drop-shadow(0 0 10px rgba(61, 123, 255, .9)); }
.stop h3 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3.25rem); line-height: 1; letter-spacing: -.05em; margin-top: 8px; text-wrap: balance; }
.stop .txt > p:not(.k) { margin-top: 12px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { font-weight: 600; font-size: 14px; line-height: 1; color: #fff; border: 1px solid var(--edge); border-radius: 999px; padding: 9px 13px; }
.chips.big li { font-size: 15px; padding: 11px 15px; }
.card-img { width: 100%; height: auto; border-radius: 22px; background: #fff; box-shadow: 0 40px 90px -40px var(--glow); }
.phone-img { width: 160px; height: auto; border-radius: 22px; border: 1px solid var(--edge); box-shadow: 0 40px 90px -40px var(--glow); }
.media { margin-top: 22px; }

/* phone and tablet: one glowing line down the left, an arrow into each next stop */
@media (max-width: 1099px) {
  .stop { position: relative; padding: 0 0 52px 44px; }
  .stop.last { padding-bottom: 0; }
  .stop::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--bg); z-index: 1; }
  .stop.last::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 16px var(--glow); }
  .stop:not(.last)::after { content: ""; position: absolute; left: 6.5px; top: 26px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 10px rgba(61, 123, 255, .9); }
  .stop:not(.last) .txt::after { content: ""; position: absolute; left: 1.5px; bottom: 6px; width: 13px; height: 13px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); border-radius: 0 0 2px 0; }
  .card-img { max-width: 420px; }
}
/* desktop: a spline that snakes through every node */
@media (min-width: 1100px) {
  .snake { display: block; position: absolute; left: calc(50% - 120px); top: 0; }
  .stop { display: grid; grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr); height: 290px; }
  .stop.last { height: 340px; }
  .stop .txt { padding-inline: 40px; }
  .stop.l .txt { grid-column: 1; text-align: right; } .stop.l .media { grid-column: 3; padding-left: 60px; }
  .stop.r .txt { grid-column: 3; } .stop.r .media { grid-column: 1; grid-row: 1; padding-right: 60px; justify-self: end; }
  .stop.l .k, .stop.l .chips { justify-content: flex-end; }
  .media { margin-top: -30px; }
  .card-img { max-width: 400px; }
  .stop.last .media { margin-top: 0; }
  .stop.last { height: 380px; }
}

/* PORTFOLIO */
.project { display: grid; gap: 36px; margin-top: clamp(44px, 6vw, 90px); align-items: center; }
.giant { font-size: clamp(4rem, 2.4rem + 7vw, 7.5rem); line-height: .9; letter-spacing: -.065em; margin-top: 10px; }
#formsensei .giant { font-size: clamp(3.1rem, 1.6rem + 6.4vw, 6.5rem); }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1rem + .5vw, 1.375rem); line-height: 1.4; color: var(--soft); max-width: 30em; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.nums dd { font-weight: 900; font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem); line-height: 1; letter-spacing: -.05em; color: var(--blue); white-space: nowrap; }
.nums dt { margin-top: 6px; font-size: clamp(13px, .75rem + .2vw, 15px); line-height: 1.35; }
.nums.wide { margin-top: clamp(32px, 4vw, 56px); max-width: 1000px; }
.nums.wide dd { font-size: clamp(2.2rem, 1rem + 5.4vw, 5.5rem); }
.project .chips { margin-top: 28px; }
.fine { margin-top: 22px; font-size: 15px; line-height: 1.5; max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.glow { box-shadow: 0 60px 120px -40px rgba(45, 105, 255, .95); }
video.card-img { aspect-ratio: 1134 / 720; object-fit: cover; }
.trio { display: flex; gap: clamp(8px, 1.6vw, 20px); justify-content: center; align-items: flex-end; }
.trio > * { width: 29%; height: auto; border-radius: clamp(14px, 2vw, 24px); border: 1px solid var(--edge); background: #000; }
.trio > video { width: 36%; aspect-ratio: 640 / 1298; object-fit: cover; box-shadow: 0 60px 120px -40px rgba(45, 105, 255, .95); }
.led { display: flex; align-items: center; gap: 18px; margin-block: clamp(48px, 6vw, 84px); }
.led i { flex: 1; height: 3px; background: var(--blue); box-shadow: 0 0 10px rgba(61, 123, 255, .9); border-radius: 2px; }
.led span { font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.led svg { filter: drop-shadow(0 0 8px rgba(61, 123, 255, .9)); flex: none; }
@media (min-width: 900px) {
  .project { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
  .project.flip > .trio { order: -1; }
}
@media (max-width: 899px) { .project.flip > .trio { order: 2; } }
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; margin: 32px calc(var(--pad) * -1) 0; padding: 4px var(--pad) 18px; scroll-padding-inline: var(--pad); scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.reel figure { flex: 0 0 min(52vw, 210px); scroll-snap-align: start; }
.reel img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--edge); }
.reel figcaption { margin-top: 12px; font-size: 14px; }
.side { margin-top: clamp(64px, 8vw, 120px); padding-top: 36px; border-top: 1px solid var(--line); }
.side ul { display: grid; gap: 16px; margin-top: 20px; }
.side li { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #070A14; }
.side a { display: block; text-decoration: none; height: 100%; }
.side img { width: 100%; height: auto; aspect-ratio: 1280 / 500; object-fit: cover; object-position: top; }
.side a > div { padding: 22px 26px 26px; }
.side h4 { font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; }
.side p { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.side span { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; color: var(--blue); }
.side a:hover span { text-decoration: underline; }
.feats { margin-top: 28px; border-top: 1px solid var(--line); }
.feats li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.4; }
.feats b { display: block; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; color: #fff; margin-bottom: 2px; }
.feats i { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--blue); border-radius: 999px; padding: 4px 8px; margin-left: 6px; vertical-align: middle; }
.back { display: inline-block; margin-top: clamp(24px, 4vw, 56px); font-weight: 600; font-size: 15px; color: var(--blue); text-decoration: none; padding: 12px 0; }
.deep { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 8vw, 120px); }
.deep h1 { font-size: clamp(2.6rem, 1.4rem + 6vw, 6.5rem); }
.deep .lede { margin-top: 24px; }
.deep section { margin-top: clamp(64px, 9vw, 130px); }
.probs { display: grid; gap: 16px; margin-top: 32px; }
.probs li { border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; background: #070A14; }
.probs h3 { font-weight: 800; font-size: 1.35rem; letter-spacing: -.035em; }
.probs p { margin-top: 10px; font-size: 16.5px; line-height: 1.55; }
.probs .k { margin-top: 14px; font-size: 12px; letter-spacing: .06em; text-transform: none; }
@media (min-width: 800px) { .probs { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 700px) { .side ul { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* CONTACT */
.contact { background: radial-gradient(70% 90% at 50% 110%, rgba(40, 96, 255, .42), rgba(40, 96, 255, 0)); }
.links { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--edge); }
.links a { display: flex; justify-content: space-between; align-items: center; padding: 22px 2px; border-bottom: 1px solid var(--edge); text-decoration: none; font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.25rem); letter-spacing: -.05em; color: #fff; }
.links a:hover { color: var(--blue); }
.links a span:last-child { color: var(--blue); font-weight: 500; }
.foot { margin-top: 56px; font: 500 12px/1.6 var(--mono); letter-spacing: .06em; color: #8E9CC0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.reel video { width: 100%; height: auto; aspect-ratio: 640 / 1298; object-fit: cover; border-radius: 22px; border: 1px solid var(--edge); }
.side .has-vid a { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); align-items: center; }
.side video { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; background: #000; }
.side li:not(.has-vid) a { display: flex; align-items: center; }
.nums.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; max-width: none; }
@media (min-width: 900px) { .nums.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; max-width: 1100px; } }
.nums a { color: var(--blue); text-decoration: none; } .nums a:hover { text-decoration: underline; }
@media (min-width: 900px) { .nums.wide dd { font-size: clamp(2.6rem, 5.2vw, 4.6rem); } }
/* fit fixes found by the width audit */
.nums dd { font-size: clamp(1.3rem, .75rem + 2.6vw, 2.9rem); }
.nums.wide dd { font-size: clamp(1.7rem, 1rem + 4.6vw, 5.5rem); }
@media (min-width: 900px) {
  h1 { font-size: min(8.2vw, 130px); }
  #formsensei .giant { font-size: min(6.6vw, 6.5rem); }
  .project .nums dd { font-size: min(3vw, 2.9rem); }
  .nums.wide dd { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
}
.usdgc { margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); max-width: 1100px; }
.usdgc b { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.usdgc + .lede { margin-top: 12px; }
