/* =========================================================
   Hashim Khan — portfolio
   Search engine × digital artifact. Sections are stacked "sheets",
   each with its own surface, so the page reads as distinct chapters.
   ========================================================= */

:root {
  --ink: #07080b;
  --ink-2: #0b0d12;
  --graphite: #111319;
  --blueprint: #0c1017;
  --paper: #eceef2;
  --paper-2: #ffffff;

  --line: rgba(170, 186, 228, 0.12);
  --line-2: rgba(170, 186, 228, 0.22);
  --line-3: rgba(170, 186, 228, 0.36);
  --text: #eef0f5;
  --text-2: #b3bacb;
  --text-3: #8b93a7;

  --p-text: #0c0e14;
  --p-text-2: #4a5164;
  --p-text-3: #6b7287;
  --p-line: rgba(12, 14, 20, 0.1);
  --p-line-2: rgba(12, 14, 20, 0.18);

  --blue: #5b8cff;
  --blue-2: #3a69ff;
  --blue-deep: #2a55f5;
  --violet: #a78bfa;
  --cyan: #6ee7f2;
  --coral: #ff7a5c;
  --green: #5be0a0;

  --f-display: "Archivo", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius-sheet: clamp(24px, 3vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--ink);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgba(91, 140, 255, 0.4); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type primitives ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(38px, 5.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 44ch;
  text-wrap: pretty;
}
.statement {
  font-family: var(--f-display);
  font-weight: 650;
  font-stretch: 108%;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
kbd {
  font-family: var(--f-mono); font-size: 11px;
  padding: 1px 6px; border-radius: 4px;
  border: 1px solid var(--line-2); color: var(--text-3);
}

/* reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px;
  border-radius: 12px;
  font-weight: 600; font-size: 16px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.3s;
}
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--blue-2); color: #fff;
  box-shadow: 0 10px 40px -12px rgba(58, 105, 255, 0.8), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--primary:hover { background: #4f7bff; }
.btn--ghost { border: 1px solid var(--line-3); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--gutter);
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, top 0.45s var(--ease), left 0.45s var(--ease), right 0.45s var(--ease), height 0.45s var(--ease), border-radius 0.45s, padding 0.45s;
}
.nav.is-floating {
  top: 10px;
  left: max(10px, calc(50% - 600px));
  right: max(10px, calc(50% - 600px));
  height: 56px;
  padding: 0 8px 0 18px;
  border-radius: 16px;
  background: rgba(10, 11, 16, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
}
.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  margin-right: auto;
  font-family: var(--f-display); font-stretch: 118%; font-weight: 700;
  font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.nav__mark {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--blue);
  position: relative;
}
.nav__mark::after {
  content: ""; position: absolute; right: -5px; bottom: -4px;
  width: 6px; height: 2px; background: var(--coral); transform: rotate(45deg); border-radius: 1px;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  position: relative;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--text-2); padding: 6px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }
.nav__find {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 9px 0 11px;
  border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.nav__find:hover { border-color: var(--line-3); color: var(--text); }
.nav__find svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav__cta {
  display: inline-flex; align-items: center;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  background: var(--coral); color: #1a0d08;
  font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.nav__cta:hover { background: #ff9077; }
@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav__links { display: none; }
  .nav__find kbd { display: none; }
  .nav__find { padding: 0 10px; }
  .nav__brand { font-size: 13.5px; }
}

/* =========================================================
   FIELD (canvas network)
   ========================================================= */
.field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 110px;
  overflow: clip;
  background:
    radial-gradient(ellipse 80% 60% at 75% 40%, rgba(58, 105, 255, 0.12), transparent 60%),
    var(--ink);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(170, 186, 228, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 85%);
  pointer-events: none;
}
.hero__glow {
  position: absolute; right: -10%; top: 10%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(124, 92, 240, 0.12), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero__h1 { display: grid; gap: 22px; }
.hero__who {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-weight: 500;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2);
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px var(--blue); flex: none; }
.hero__hook {
  display: block;
  font-family: var(--f-display); font-weight: 800; font-stretch: 116%;
  font-size: clamp(50px, 6.3vw, 98px);
  line-height: 0.88; letter-spacing: -0.045em;
  text-transform: uppercase;
  background: radial-gradient(600px circle at var(--mx, 40%) var(--my, 10%), #fff 0%, #eef0f6 40%, #c4cbdb 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__hook em {
  font-style: normal;
  background: linear-gradient(100deg, #86a9ff 0%, var(--blue) 45%, #9b84ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  margin-top: 28px;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 40ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; margin-top: 44px; border-top: 1px solid var(--line); }
.hero__facts li { display: grid; gap: 2px; padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.hero__facts li:last-child { border-right: 0; margin-right: 0; }
.hero__facts b { font-family: var(--f-display); font-stretch: 118%; font-weight: 700; font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.hero__facts span { font-size: 13.5px; color: var(--text-3); }

.js .hero__who, .js .hero__hook, .js .hero__lede, .js .hero__actions, .js .hero__facts, .js .demo {
  opacity: 0; transform: translateY(26px);
  animation: rise 1.1s var(--ease) forwards;
}
.js .hero__hook { animation-delay: 0.08s; }
.js .hero__lede { animation-delay: 0.22s; }
.js .hero__actions { animation-delay: 0.32s; }
.js .hero__facts { animation-delay: 0.42s; }
.js .demo { animation-delay: 0.3s; animation-duration: 1.4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__next {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px;
  border: 1px solid var(--line-3);
}
.hero__next span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--text-2);
  animation: wheel 2s var(--ease-io) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 760px) { .hero__next { display: none; } }

@media (max-width: 1020px) {
  .hero { padding-top: calc(var(--nav-h) + 36px); align-items: flex-start; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__hook { font-size: clamp(46px, 10.5vw, 96px); }
  .demo { max-width: 640px; }
  .hero__next { display: none; }
}
@media (max-width: 520px) {
  .hero__facts li { padding-right: 14px; margin-right: 14px; }
  .hero__facts b { font-size: 22px; }
  .hero__facts span { font-size: 12px; }
  .btn { height: 50px; padding: 0 20px; }
}

/* =========================================================
   DEMO — the live search → AI answer artifact
   ========================================================= */
.demo {
  position: relative;
  width: 100%;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(20, 23, 33, 0.9), rgba(10, 12, 18, 0.92));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 50px 120px -40px rgba(0, 0, 0, 0.95),
    0 30px 120px -50px rgba(58, 105, 255, 0.55);
}
.demo::before {
  content: ""; position: absolute; left: 40px; right: 40px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 169, 255, 0.9), transparent);
}
.demo__top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.demo__tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.demo__tag::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: var(--coral); vertical-align: 0.05em;
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 92, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 122, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 92, 0); }
}
.demo__play {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.demo__play:hover { color: var(--text); border-color: var(--line-3); }
.demo__play svg { width: 12px; height: 12px; fill: currentColor; }
.demo__play .i-play { display: none; }
.demo__play[aria-pressed="false"] .i-play { display: block; }
.demo__play[aria-pressed="false"] .i-pause { display: none; }

.demo__bar {
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 18px;
  border-radius: 14px;
  background: rgba(5, 6, 9, 0.7);
  border: 1px solid var(--line-2);
  transition: border-color 0.3s, box-shadow 0.4s;
}
.demo.is-sending .demo__bar { border-color: rgba(91, 140, 255, 0.7); box-shadow: 0 0 0 5px rgba(91, 140, 255, 0.12); }
.demo__bar svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.demo__q { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__caret { width: 2px; height: 22px; margin-left: -9px; background: var(--blue); flex: none; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.demo__switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 10px; padding: 4px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(5, 6, 9, 0.5);
}
.demo__sw { position: relative; z-index: 1; height: 38px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.3s; }
.demo__sw span { color: var(--violet); transition: color 0.3s; }
.demo__sw.is-on, .demo__sw.is-on span { color: #fff; }
.demo__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 9px; background: var(--blue-2);
  transition: transform 0.55s var(--ease), background 0.55s;
}
.demo__switch[data-mode="ai"] .demo__thumb { transform: translateX(100%); background: linear-gradient(110deg, #7c5cf0, #6a7dff); }

.demo__screen { position: relative; height: 318px; margin-top: 10px; overflow: hidden; border-radius: 14px; }
.demo__results { display: grid; gap: 6px; }
.dres {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 2px 12px;
  padding: 8px 14px 8px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.dres__n { grid-row: 1 / span 2; font-family: var(--f-mono); font-size: 12px; color: var(--text-3); }
.dres__meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--f-mono); font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.dres__type { padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.dres__type[data-kind="product"], .dres__type[data-kind="brand"], .dres__type[data-kind="institution"] { color: #ffab96; border-color: rgba(255,122,92,0.4); }
.dres__type[data-kind="maps"] { color: var(--cyan); border-color: rgba(110,231,242,0.35); }
.dres__t { font-size: 14.5px; font-weight: 600; color: #e3e9ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dres__rel { grid-column: 3; grid-row: 1 / span 2; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.dres__rel i { display: block; height: 100%; width: calc(var(--rel) * 100%); background: var(--blue); transform-origin: left; animation: grow 1s var(--ease) both; animation-delay: calc(0.2s + var(--i) * 0.08s); }
@keyframes grow { from { transform: scaleX(0); } }
.dres.is-in { animation: resIn 0.7s var(--ease) both; animation-delay: calc(var(--i) * 0.08s); }
@keyframes resIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.demo__answer { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; }
.demo__screen[data-mode="ai"] .demo__results { visibility: hidden; }
.demo__screen[data-mode="ai"] .demo__answer { opacity: 1; visibility: visible; }
.dans {
  flex: 1;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 240, 0.2), transparent 55%),
    rgba(16, 14, 28, 0.9);
  animation: ansIn 0.8s var(--ease) both;
}
@keyframes ansIn { from { opacity: 0; transform: scale(0.96); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.dans__head {
  display: flex; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet);
}
.dans__head span:last-child { color: var(--text-3); letter-spacing: 0.06em; }
.dans__text { font-size: 15px; line-height: 1.6; color: var(--text); }
.dans__text .w { opacity: 0.08; transition: opacity 0.3s; }
.dans__text .w.is-on { opacity: 1; }
.mark {
  display: inline-grid; place-items: center;
  height: 1.5em; padding: 0 5px; margin: 0 1px;
  vertical-align: 0.08em;
  border-radius: 5px; border: 1px solid rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.12);
  font-family: var(--f-mono); font-size: 0.7em; color: #d5c9ff;
  transition: background 0.2s, color 0.2s;
}
.mark:hover, .mark:focus-visible, .mark.is-hot { background: var(--violet); color: #120c24; }
.dsrc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.dsrc li {
  position: relative;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.55;
  transition: border-color 0.25s, background 0.25s, color 0.25s, opacity 0.25s;
}
.dsrc li b { display: block; font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsrc li.is-cited { opacity: 1; border-color: rgba(167, 139, 250, 0.4); color: var(--violet); }
.dsrc li.is-cited b { color: var(--text); }
.dsrc li.is-primary { box-shadow: 0 0 0 1px rgba(167,139,250,0.35), 0 10px 30px -14px rgba(167,139,250,0.8); }
.dsrc li.is-primary::after {
  content: "Cited"; position: absolute; right: 6px; top: -8px;
  padding: 0 5px; border-radius: 3px; background: var(--violet); color: #120c24;
  font-size: 9px; letter-spacing: 0.1em;
}
.dsrc li.is-hot { background: rgba(167, 139, 250, 0.18); border-color: var(--violet); opacity: 1; }
.dsrc.is-in li { animation: resIn 0.6s var(--ease) both; animation-delay: calc(0.25s + var(--i) * 0.07s); }

.demo__queries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.demo__chip {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.demo__chip:hover { color: var(--text); border-color: var(--line-3); }
.demo__chip.is-on { color: var(--text); border-color: rgba(91,140,255,0.6); background: rgba(91,140,255,0.14); }
.demo__cap { margin-top: 14px; padding: 14px 4px 2px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text-2); }
.demo__cap b { color: var(--text); font-weight: 600; }
.demo__cap span { display: block; margin-top: 6px; color: #ffb29f; min-height: 3em; }

@media (max-width: 520px) {
  .demo { padding: 10px; border-radius: 18px; }
  .demo__screen { height: 380px; }
  .demo__q { font-size: 15.5px; }
  .dres { grid-template-columns: 22px minmax(0, 1fr); padding: 9px 10px; }
  .dres__rel { display: none; }
  .dres__t { white-space: normal; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .dsrc { grid-template-columns: repeat(3, 1fr); }
  .dsrc li:nth-child(n+4) { display: none; }
  .dans__text { font-size: 14.5px; }
}

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 22px 0 calc(22px + var(--radius-sheet));
  background: var(--blue-deep);
  color: #fff;
}
.ticker__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.ticker span {
  font-family: var(--f-display); font-weight: 700; font-stretch: 120%;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap;
}
.ticker i { font-style: normal; color: rgba(255,255,255,0.55); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SHEETS
   ========================================================= */
.sheet {
  position: relative;
  margin-top: calc(-1 * var(--radius-sheet));
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: 26px 0 calc(clamp(110px, 12vw, 180px) + var(--radius-sheet));
  overflow: clip;
  box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, 0.7);
}
.sheet::after {
  content: ""; position: absolute; left: var(--radius-sheet); right: var(--radius-sheet); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}
.sheet:last-child { padding-bottom: clamp(110px, 12vw, 180px); }

.chapter {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 18px; padding-bottom: 18px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: clamp(56px, 8vw, 110px);
  position: relative;
}
.chapter::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.chapter__n {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 26px; padding: 0 8px;
  border-radius: 6px;
  background: var(--chapter-tone, var(--blue));
  color: #fff; font-weight: 500; letter-spacing: 0.06em;
}
.chapter__t { color: var(--text); }
.chapter__d { justify-self: end; }
@media (max-width: 560px) { .chapter__d { display: none; } }

.sheet--blueprint {
  background:
    linear-gradient(rgba(110, 150, 255, 0.06) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(90deg, rgba(110, 150, 255, 0.06) 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(58, 105, 255, 0.12), transparent 70%),
    var(--blueprint);
  --chapter-tone: var(--blue-2);
}
.sheet--paper {
  background: var(--paper);
  color: var(--p-text);
  --chapter-tone: var(--p-text);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.8);
}
.sheet--paper::after { display: none; }
.sheet--paper .chapter { color: var(--p-text-3); }
.sheet--paper .chapter__t { color: var(--p-text); }
.sheet--paper .chapter::after { background: var(--p-line-2); }
.sheet--paper .lede { color: var(--p-text-2); }
.sheet--ink {
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, rgba(58, 105, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 100%, rgba(255, 122, 92, 0.08), transparent 60%),
    #050609;
  --chapter-tone: var(--blue-2);
}
.sheet--graphite {
  background:
    radial-gradient(ellipse 50% 60% at 85% 10%, rgba(110, 231, 242, 0.07), transparent 60%),
    var(--graphite);
  --chapter-tone: #2b7f8a;
}
.sheet--violet {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(124, 92, 240, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 40% at 0% 70%, rgba(124, 92, 240, 0.1), transparent 70%),
    #0c0a15;
  --chapter-tone: #6f53e0;
}
.sheet--contact {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 122, 92, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 50% at 90% 10%, rgba(255, 122, 92, 0.08), transparent 70%),
    #0b0807;
  --chapter-tone: #e2583a;
}
.sheet--contact .wrap { position: relative; }

/* =========================================================
   01 PROBLEM
   ========================================================= */
.problem__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.flow { height: clamp(300px, 30vw, 400px); margin-top: clamp(40px, 6vw, 80px); }
.flow svg { width: 100%; height: 100%; overflow: visible; }
.flow .fm { display: none; }
@media (max-width: 760px) {
  .problem__head { grid-template-columns: 1fr; }
  .flow { height: 470px; }
  .flow .fd { display: none; }
  .flow .fm { display: block; }
}
.f-edge { fill: none; stroke: rgba(170, 186, 228, 0.16); stroke-width: 1.3; }
.f-live {
  fill: none; stroke: var(--blue); stroke-width: 1.8;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1s var(--ease);
}
.f-live[data-tone="violet"] { stroke: var(--violet); }
.f-live[data-tone="coral"] { stroke: var(--coral); }
.f-live.is-alt { stroke-dasharray: 3 6; stroke-dashoffset: 0; opacity: 0; stroke: var(--coral); transition: opacity 0.8s; }
.f-live.is-on { stroke-dashoffset: 0; }
.f-live.is-alt.is-on { opacity: 0.75; }
.f-node .f-dot { fill: var(--blueprint); stroke: var(--line-3); stroke-width: 1.5; transition: fill 0.5s, stroke 0.5s; }
.f-node .f-halo { fill: none; stroke: var(--tone); opacity: 0; transform-box: fill-box; transform-origin: center; }
.f-node text { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; fill: var(--text-3); transition: fill 0.5s; }
.f-node.is-on .f-dot { fill: var(--tone); stroke: var(--tone); }
.f-node.is-on text { fill: var(--text); }
.f-node.is-on .f-halo { animation: halo 2.4s var(--ease) infinite; }
@keyframes halo { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.f-packet { fill: #fff; opacity: 0; transition: opacity 0.5s; }
.f-packet.is-on { opacity: 0.9; }

.surfaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); }
.surface { padding: 26px 24px 8px 0; border-top: 1px solid var(--line-2); margin-right: 24px; }
.surface__n {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(91, 140, 255, 0.5);
  background: rgba(91, 140, 255, 0.12);
  font-family: var(--f-mono); font-size: 13px; color: #b6c8ff;
}
.surface--ai .surface__n { border-color: rgba(167,139,250,0.5); background: rgba(167,139,250,0.12); color: #d8ccff; }
.surface h3 { margin-top: 18px; font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: 22px; letter-spacing: -0.02em; }
.surface p { margin-top: 8px; font-size: 15.5px; color: var(--text-2); }
@media (max-width: 960px) { .surfaces { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
@media (max-width: 520px) { .surfaces { grid-template-columns: 1fr; } .surface { margin-right: 0; } }

.problem__close {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(40px, 5vw, 60px);
  position: relative;
}
.problem__close::before {
  content: ""; position: absolute; left: var(--gutter); top: 0; width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--coral));
}
@media (max-width: 760px) { .problem__close { grid-template-columns: 1fr; } }

/* =========================================================
   02 WORK (paper)
   ========================================================= */
.work__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
@media (max-width: 860px) { .work__head { grid-template-columns: 1fr; } }
.cases { display: grid; gap: clamp(18px, 2vw, 26px); margin-top: clamp(48px, 6vw, 80px); }
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(16px, 2vw, 22px);
  padding-left: clamp(22px, 3vw, 40px);
  border-radius: 26px;
  background: var(--paper-2);
  border: 1px solid var(--p-line);
  color: var(--p-text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 20px 50px -30px rgba(10, 20, 60, 0.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.case:hover, .case:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 40px 80px -36px rgba(10, 20, 60, 0.4);
  border-color: rgba(58, 105, 255, 0.35);
}
.case__body { display: flex; flex-direction: column; padding: clamp(10px, 2vw, 22px) 0; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-text-3); }
.case__meta span:nth-child(2) { color: var(--p-text); }
.case__n { color: var(--blue-2); }
.case__title {
  margin-top: 20px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.case__sum { margin-top: 16px; color: var(--p-text-2); max-width: 42ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.tags li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--p-line-2); font-size: 13px; color: var(--p-text-2); }
.case__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 28px; font-weight: 600; color: var(--blue-2); }
.case__go span { transition: transform 0.35s var(--ease); }
.case:hover .case__go span { transform: translateX(6px); }
.case__viz {
  position: relative;
  min-height: 300px;
  padding: 22px;
  border-radius: 18px;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(58,105,255,0.2), transparent 70%), #0b0d13;
  color: var(--text);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.viz__note { margin-top: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.viz__note b { color: var(--text); font-weight: 500; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; padding-left: clamp(16px, 2vw, 22px); }
  .case__body { padding: 8px 6px 0; }
  .case__viz { min-height: 240px; }
}

/* migrate viz */
.vm__head { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 10px; margin-bottom: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.vm__head span:last-child { grid-column: 3; color: #8fb0ff; }
.vm__rows { display: grid; gap: 8px; }
.vm__rows li { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 10px; align-items: center; }
.vm__rows code {
  display: block; padding: 9px 10px; border-radius: 7px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  font-family: var(--f-mono); font-size: 12px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color 0.5s, color 0.5s, background 0.5s;
}
.vm__rows i { position: relative; height: 1px; background: var(--line-2); }
.vm__rows i::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.vm__rows i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 5px solid var(--blue); border-right: 0; opacity: 0; transition: opacity 0.3s; }
.is-play .vm__rows i::before { transform: scaleX(1); transition-delay: calc(0.2s + var(--i) * 0.3s); }
.is-play .vm__rows i::after { opacity: 1; transition-delay: calc(0.7s + var(--i) * 0.3s); }
.is-play .vm__rows code:last-child { color: #fff; border-color: rgba(91,140,255,0.5); background: rgba(91,140,255,0.14); transition-delay: calc(0.8s + var(--i) * 0.3s); }
@media (max-width: 520px) {
  .vm__head, .vm__rows li { grid-template-columns: 1fr 26px 1fr; gap: 6px; }
  .vm__rows code { font-size: 10.5px; padding: 8px 6px; }
}

/* local viz */
.vl__map { width: 100%; height: auto; flex: 1; min-height: 180px; }
.vl__street { fill: none; stroke: rgba(170,186,228,0.1); stroke-width: 8; stroke-linecap: round; }
.vl__link { fill: none; stroke: rgba(110,231,242,0.28); stroke-dasharray: 2 4; }
.vl__pin .ring { fill: none; stroke: var(--cyan); opacity: 0; transform-box: fill-box; transform-origin: center; }
.vl__pin .dot { fill: #0b0d13; stroke: var(--line-3); stroke-width: 1.5; transition: fill 0.5s, stroke 0.5s; }
.vl__pin.is-on .dot { fill: var(--cyan); stroke: var(--cyan); }
.vl__pin.is-on .ring { animation: halo 2.6s var(--ease) infinite; animation-delay: var(--dl, 0s); }
.vl__pin .card { opacity: 0; transition: opacity 0.5s; }
.vl__pin .card rect { fill: rgba(11,13,19,0.95); stroke: rgba(110,231,242,0.4); }
.vl__pin .card text { font-family: var(--f-mono); font-size: 10px; fill: var(--text-2); }
.vl__pin .card .star { fill: var(--coral); }
.vl__pin.is-focus .card { opacity: 1; }
.vl__flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; }
.vl__flow li {
  position: relative; padding: 7px 0 0;
  border-top: 2px solid var(--line-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  transition: color 0.5s, border-color 0.5s;
}
.is-play .vl__flow li { color: var(--text); border-color: var(--cyan); }
.is-play .vl__flow li:nth-child(2) { transition-delay: 0.25s; }
.is-play .vl__flow li:nth-child(3) { transition-delay: 0.5s; }
.is-play .vl__flow li:nth-child(4) { transition-delay: 0.75s; }
.is-play .vl__flow li:nth-child(5) { transition-delay: 1s; border-color: var(--coral); }
@media (max-width: 520px) { .vl__flow li { font-size: 9.5px; letter-spacing: 0.02em; } }

/* pages viz */
.vp__hubs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.vp__hub {
  padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: 10.5px; color: var(--text-3);
  transition: color 0.5s, border-color 0.5s, background 0.5s;
}
.vp__hub.is-on { color: #fff; border-color: var(--hub); background: color-mix(in srgb, var(--hub) 18%, transparent); }
.vp__grid { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.vp__grid i { aspect-ratio: 1; border-radius: 2px; background: rgba(170,186,228,0.09); transition: background 0.4s; }
.vp__grid i.is-on { background: var(--hub); }
@media (max-width: 520px) { .vp__grid { grid-template-columns: repeat(18, 1fr); gap: 2.5px; } }

/* =========================================================
   03 SCALE
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; padding: 0 clamp(16px, 2vw, 28px); border-left: 1px solid var(--line-2); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tone); }
.stat dd {
  --num: clamp(60px, 6.6vw, 108px);
  display: flex; align-items: flex-start;
  height: calc(var(--num) * 0.86);
  margin-top: 18px;
  font-family: var(--f-display); font-weight: 800; font-stretch: 122%;
  font-size: var(--num);
  line-height: 0.86; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stat sup { font-size: 0.42em; line-height: 1; margin-left: 0.04em; margin-top: 0.06em; color: var(--tone); letter-spacing: 0; }
.stat--word dd span {
  align-self: flex-end;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 0.95; letter-spacing: -0.035em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--text);
}
.stat p { margin-top: 18px; font-size: 15px; color: var(--text-2); max-width: 22ch; }
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; row-gap: 0; }
  .stat { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .stat--word dd { height: auto; }
  .stat--word dd span { font-size: 38px; }
}

/* =========================================================
   04 ABOUT
   ========================================================= */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 100px); align-items: end; }
.about__id { display: grid; gap: 30px; }
.monogram { position: relative; width: clamp(110px, 12vw, 160px); aspect-ratio: 1; }
.monogram span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.04em;
}
.monogram svg { width: 100%; height: 100%; animation: spin 40s linear infinite; }
.monogram circle { fill: none; stroke: var(--line-3); stroke-dasharray: 3 7; }
.monogram circle + circle { stroke: rgba(110,231,242,0.6); stroke-dasharray: 60 380; stroke-width: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__title { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: clamp(60px, 8.4vw, 136px); line-height: 0.88; letter-spacing: -0.05em; }
.about__text { display: grid; gap: 18px; color: var(--text-2); font-size: 18px; max-width: 46ch; }
.about__lede { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.45; color: var(--text); }
.facts { margin-top: 10px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.facts dd { font-size: 15.5px; color: var(--text); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

.arc { margin-top: clamp(80px, 10vw, 130px); }
.arc__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 26px; }
.arc__track { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line-2); }
.arc__line { position: absolute; left: 0; right: 0; top: -1px; height: 2px; pointer-events: none; }
.arc__fill {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet), var(--coral));
  transform-origin: left; transform: scaleX(var(--p, 0.02));
  transition: transform 0.7s var(--ease);
}
.arc__stage {
  position: relative;
  display: grid; gap: 10px; justify-items: start;
  padding: 28px 8px 20px 0;
  text-align: left;
  font-family: var(--f-display); font-stretch: 112%; font-weight: 650;
  font-size: clamp(20px, 3vw, 46px); letter-spacing: -0.03em; line-height: 1;
  color: var(--text-3);
  transition: color 0.4s;
}
.arc__stage::before {
  content: ""; position: absolute; left: 0; top: -6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--graphite); border: 1px solid var(--line-3);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.arc__stage span { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; color: var(--text-3); }
.arc__stage:hover { color: var(--text-2); }
.arc__stage.is-past::before { background: var(--text-3); }
.arc__stage.is-on { color: var(--text); }
.arc__stage.is-on::before { background: var(--tone); border-color: var(--tone); box-shadow: 0 0 18px var(--tone); }
.arc__stage[data-tone="blue"] { --tone: var(--blue); }
.arc__stage[data-tone="cyan"] { --tone: var(--cyan); }
.arc__stage[data-tone="violet"] { --tone: var(--violet); }
.arc__stage[data-tone="coral"] { --tone: var(--coral); }
.arc__note { min-height: 3.2em; margin-top: 8px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 50ch; }
@media (max-width: 560px) {
  .arc__stage { font-size: 15px; font-stretch: 100%; letter-spacing: -0.01em; }
  .arc__stage span { font-size: 10px; }
}

.outside {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 16px 64px;
  margin-top: clamp(70px, 9vw, 120px);
  padding-top: 36px;
  position: relative;
}
.outside::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line); }
.outside h3 { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); padding-top: 8px; }
.outside p { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; color: var(--text-2); max-width: 40ch; }
@media (max-width: 760px) { .outside { grid-template-columns: 1fr; } }

/* =========================================================
   05 DIRECTION + LAB
   ========================================================= */
.worlds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(48px, 6vw, 80px); }
.world {
  position: relative;
  padding: 0 0 26px;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.world:hover { border-color: color-mix(in srgb, var(--tone) 50%, transparent); }
.world__viz { aspect-ratio: 16 / 10; border-bottom: 1px solid rgba(167, 139, 250, 0.12); background: radial-gradient(60% 70% at 50% 50%, var(--glow), transparent 70%); }
.world__viz svg { width: 100%; height: 100%; }
.world--search { --tone: var(--violet); --glow: rgba(167, 139, 250, 0.16); }
.world--systems { --tone: var(--cyan); --glow: rgba(110, 231, 242, 0.1); }
.world--build { --tone: var(--coral); --glow: rgba(255, 122, 92, 0.12); }
.world__title { margin: 24px 24px 0; font-family: var(--f-display); font-weight: 700; font-stretch: 120%; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; }
.world__title::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 12px; vertical-align: 0.18em; border-radius: 50%; background: var(--tone); box-shadow: 0 0 14px var(--tone); }
.world__note { margin: 14px 24px 0; color: var(--text-2); font-size: 15.5px; }
.world__terms { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 24px 0; }
.world__terms span { padding: 3px 9px; border-radius: 5px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11.5px; color: var(--text-2); }
@media (max-width: 900px) { .worlds { grid-template-columns: 1fr; } .world__viz { aspect-ratio: 16 / 7; } }

.orbit { transform-origin: 120px 75px; }
.orbit__ring { fill: none; stroke: rgba(167,139,250,0.22); stroke-dasharray: 2 4; }
.orbit__dot { fill: #cbbcff; }
.orbit--a { animation: spin 26s linear infinite; }
.orbit--b { animation: spin 17s linear infinite reverse; }
.cite-lines path { stroke: var(--violet); stroke-width: 1.2; fill: none; stroke-dasharray: 80; stroke-dashoffset: 80; animation: cite 5.4s var(--ease) infinite; }
.cite-lines path:nth-child(2) { animation-delay: 1.8s; }
.cite-lines path:nth-child(3) { animation-delay: 3.6s; }
@keyframes cite { 0% { stroke-dashoffset: 80; opacity: 0; } 10% { opacity: 1; } 35% { stroke-dashoffset: 0; opacity: 1; } 60%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.core { fill: rgba(167,139,250,0.22); stroke: var(--violet); stroke-width: 1.2; }
.core__t { font-family: var(--f-mono); font-size: 12px; fill: #ece6ff; }
.pipe { fill: none; stroke: rgba(110,231,242,0.32); stroke-width: 1.4; }
.pipe--b { stroke-dasharray: 3 4; stroke: rgba(110,231,242,0.18); }
.packet { fill: var(--cyan); }
.packet--b { fill: #fff; }
.sys-node rect { fill: #0c0a15; stroke: rgba(110,231,242,0.5); }
.sys-node text { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 0.12em; fill: var(--text-2); }
.code__l { fill: rgba(255,122,92,0.2); transform-box: fill-box; transform-origin: left; animation: type 6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.35s); }
.code__l:nth-child(2), .code__l:nth-child(4) { fill: rgba(236,238,244,0.16); }
@keyframes type { 0% { transform: scaleX(0); } 14%, 82% { transform: scaleX(1); } 95%, 100% { transform: scaleX(0); } }
.code__cursor { fill: var(--coral); animation: blink 1s steps(2) infinite; }
.blocks rect { fill: none; stroke: var(--coral); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: block 6s var(--ease) infinite; animation-delay: calc(1.4s + var(--i) * 0.3s); }
.blocks rect:nth-child(5) { fill: rgba(255,122,92,0.28); }
@keyframes block { 0% { opacity: 0; transform: translateY(-10px) scale(0.8); } 10%, 75% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: none; } }

.lab { margin-top: clamp(80px, 10vw, 130px); }
.lab__title { font-family: var(--f-display); font-weight: 650; font-stretch: 108%; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.03em; margin-bottom: 28px; }
.exp { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px 28px; align-items: start; padding: 28px 0; border-top: 1px solid rgba(167, 139, 250, 0.16); }
.exp:last-child { border-bottom: 1px solid rgba(167, 139, 250, 0.16); }
.exp__id { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--text-3); padding-top: 0.5em; }
.exp h4 { font-family: var(--f-display); font-weight: 600; font-stretch: 106%; font-size: clamp(21px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.exp p { margin-top: 8px; color: var(--text-2); max-width: 58ch; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 0.3em; padding: 6px 11px; border-radius: 6px;
  border: 1px solid currentColor;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--exp { color: var(--coral); }
.status--test { color: var(--violet); }
.status--live { color: var(--green); }
.status--exp i { animation: flicker 2.8s steps(1) infinite; }
.status--test i { animation: flicker 1.6s steps(1) infinite; }
.status--live i { animation: live 2s infinite; }
@keyframes flicker { 0%, 40% { opacity: 1; } 50% { opacity: 0.25; } 60%, 100% { opacity: 1; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(91,224,160,0.6); } 70% { box-shadow: 0 0 0 8px rgba(91,224,160,0); } 100% { box-shadow: 0 0 0 0 rgba(91,224,160,0); } }
@media (max-width: 640px) {
  .exp { grid-template-columns: 1fr auto; }
  .exp .status { grid-column: 2; grid-row: 1; margin-top: 0; }
  .exp__body { grid-column: 1 / -1; }
}

/* =========================================================
   06 CONTACT
   ========================================================= */
.contact { display: grid; justify-items: start; }
.contact__title { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: clamp(44px, 7.6vw, 124px); line-height: 0.9; letter-spacing: -0.045em; text-transform: uppercase; max-width: 12ch; }
.contact .lede { margin-top: 28px; max-width: 52ch; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(40px, 5vw, 64px); }
.mail__link {
  position: relative;
  font-family: var(--f-display); font-weight: 700; font-stretch: 110%;
  font-size: clamp(26px, 4.4vw, 64px);
  letter-spacing: -0.03em; line-height: 1.1;
  text-decoration: none;
  color: #ffd7cc;
  overflow-wrap: anywhere;
}
.mail__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--coral); transform-origin: left; transform: scaleX(0.25);
  transition: transform 0.6s var(--ease);
}
.mail__link:hover::after, .mail__link:focus-visible::after { transform: scaleX(1); }
.mail__copy {
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid rgba(255,122,92,0.5); color: #ffc4b5;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.mail__copy:hover { background: rgba(255,122,92,0.12); }
.mail__copy.is-done { background: var(--coral); color: #1a0d08; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: clamp(56px, 7vw, 90px); }
.routes li[hidden] { display: none; }
.route {
  display: grid; gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 180, 160, 0.16);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.route span { font-family: var(--f-mono); font-size: 11.5px; color: var(--text-3); }
.route b { font-family: var(--f-display); font-stretch: 116%; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; text-transform: uppercase; }
.route em { font-style: normal; color: var(--text-2); font-size: 15px; }
.route:hover, .route:focus-visible { border-color: rgba(255, 122, 92, 0.55); background: rgba(255, 122, 92, 0.07); transform: translateY(-3px); }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: #050505; border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 28px; padding-bottom: 36px; font-size: 13.5px; color: var(--text-3); }
.foot__brand { font-family: var(--f-display); font-stretch: 118%; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.foot__note { margin-left: auto; }
@media (max-width: 760px) { .foot__note { margin-left: 0; } }

/* =========================================================
   FINDER
   ========================================================= */
.finder {
  width: min(600px, calc(100vw - 32px));
  margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(12, 14, 20, 0.97); color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,0.9);
}
.finder::backdrop { background: rgba(4, 5, 8, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.finder[open] { animation: finderIn 0.35s var(--ease); }
@keyframes finderIn { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.finder__field { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.finder__field svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; flex: none; }
.finder__field input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; font-size: 18px; }
.finder__field input::placeholder { color: var(--text-3); }
.finder__list { max-height: 52vh; overflow: auto; padding: 6px; }
.finder__list a { display: flex; align-items: baseline; gap: 14px; padding: 11px 14px; border-radius: 9px; text-decoration: none; color: var(--text-2); }
.finder__list a span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3); width: 60px; flex: none; text-transform: uppercase; }
.finder__list a b { font-weight: 500; color: var(--text); }
.finder__list a.is-active, .finder__list a:hover { background: rgba(91,140,255,0.12); }
.finder__empty { padding: 14px; color: var(--text-3); }

/* =========================================================
   CASE STUDY PAGES
   ========================================================= */
.cs-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 calc(clamp(80px, 9vw, 130px) + var(--radius-sheet));
  overflow: clip;
  background: radial-gradient(ellipse 70% 70% at 80% 0%, rgba(58, 105, 255, 0.16), transparent 60%), var(--ink);
}
.cs-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(170, 186, 228, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
  pointer-events: none;
}
.cs-hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--text-3); }
.cs-kicker { margin-top: 40px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.cs-title {
  margin-top: 18px;
  font-family: var(--f-display); font-weight: 750; font-stretch: 112%;
  font-size: clamp(40px, 6.2vw, 96px);
  line-height: 0.96; letter-spacing: -0.04em;
  max-width: 17ch; text-wrap: balance;
}
.cs-lede { margin-top: 28px; font-size: clamp(19px, 1.8vw, 23px); color: var(--text-2); max-width: 46ch; line-height: 1.5; }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-2); }
.cs-meta div { padding: 18px 20px 0 0; }
.cs-meta dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.cs-meta dd { margin-top: 6px; font-size: 16px; color: var(--text); }
.cs-meta div:first-child dt { color: var(--coral); }
@media (max-width: 860px) { .cs-meta { grid-template-columns: 1fr 1fr; row-gap: 10px; } }

.cs-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 100px); }
.cs-block + .cs-block { margin-top: clamp(64px, 8vw, 110px); }
.cs-block h2 {
  font-family: var(--f-display); font-weight: 700; font-stretch: 110%;
  font-size: clamp(30px, 3.4vw, 50px); letter-spacing: -0.03em; line-height: 1;
  align-self: start;
  position: sticky; top: calc(var(--nav-h) + 30px);
}
.cs-prose { display: grid; gap: 18px; font-size: 18px; line-height: 1.65; color: var(--text-2); max-width: 60ch; }
.cs-prose strong { color: var(--text); font-weight: 600; }
.sheet--paper .cs-prose { color: var(--p-text-2); }
.sheet--paper .cs-prose strong { color: var(--p-text); }
@media (max-width: 860px) { .cs-block { grid-template-columns: 1fr; } .cs-block h2 { position: static; } }

.cs-figure {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(58,105,255,0.14), transparent 70%), #0b0d13;
}
.cs-figure figcaption { margin-top: 18px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.step { padding: 22px 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.step__n { font-family: var(--f-mono); font-size: 12px; color: var(--blue); }
.step h3 { margin-top: 14px; font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: 21px; letter-spacing: -0.02em; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--text-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.who__col { padding: 28px; border-radius: 20px; border: 1px solid var(--line-2); }
.who__col--me { border-color: rgba(255,122,92,0.45); background: rgba(255,122,92,0.05); }
.who__col h3 { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.who__col--me h3 { color: var(--coral); }
.who__col ul { display: grid; gap: 10px; margin-top: 18px; }
.who__col li { position: relative; padding-left: 22px; font-size: 17px; }
.who__col li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: currentColor; opacity: 0.6; }
@media (max-width: 700px) { .who { grid-template-columns: 1fr; } }

.next-case {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 26px;
  background: var(--paper-2); color: var(--p-text);
  text-decoration: none;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.next-case:hover { transform: translateY(-5px); box-shadow: 0 40px 80px -40px rgba(10,20,60,0.45); }
.next-case small { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--p-text-3); }
.next-case strong { display: block; margin-top: 12px; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: clamp(24px, 2.8vw, 40px); letter-spacing: -0.03em; line-height: 1.05; max-width: 24ch; }
.next-case > span { font-size: 34px; color: var(--blue-2); transition: transform 0.4s var(--ease); }
.next-case:hover > span { transform: translateX(8px); }

.cs-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.cs-contact h2 { font-family: var(--f-display); font-weight: 800; font-stretch: 116%; font-size: clamp(36px, 5vw, 76px); line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; }
.cs-contact p { margin-top: 18px; color: var(--text-2); max-width: 44ch; }
@media (max-width: 760px) { .cs-contact { grid-template-columns: 1fr; } }

/* case figures: launch checklist + intent chips */
.checks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.checks li {
  position: relative; padding-top: 30px;
  border-top: 2px solid var(--line-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
  transition: color 0.4s, border-color 0.4s;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px;
  border-radius: 4px; border: 1px solid var(--line-3);
  transition: background 0.4s, border-color 0.4s;
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 11px; width: 4px; height: 8px;
  border: solid #07080b; border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(0); transition: transform 0.3s var(--ease);
}
.is-play .checks li { color: var(--text); border-color: var(--blue); transition-delay: calc(1.8s + var(--i) * 0.2s); }
.is-play .checks li::before { background: var(--blue); border-color: var(--blue); transition-delay: calc(1.8s + var(--i) * 0.2s); }
.is-play .checks li::after { transform: rotate(45deg) scale(1); transition-delay: calc(1.9s + var(--i) * 0.2s); }
.is-play .checks li:last-child { border-color: var(--coral); }
.is-play .checks li:last-child::before { background: var(--coral); border-color: var(--coral); }
@media (max-width: 640px) { .checks { grid-template-columns: repeat(3, 1fr); row-gap: 14px; } }

.vq { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vq span {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(91,140,255,0.35); background: rgba(91,140,255,0.12);
  font-size: 13px; color: #cddaff;
}
.vlabel { display: block; margin: 0 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.vsep { height: 1px; margin: 18px 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }

/* ---------- v4: results tags, agency mix, results labels, career ---------- */
.tags--results li { border-color: rgba(58,105,255,0.35); background: rgba(58,105,255,0.07); color: var(--p-text); }
.tags--results b { color: var(--blue-2); font-weight: 700; }

.agency {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px clamp(40px, 6vw, 96px);
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(40px, 5vw, 64px);
  position: relative;
}
.agency::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--p-line-2); }
.agency__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2); }
.agency__title {
  margin-top: 16px;
  font-family: var(--f-display); font-weight: 700; font-stretch: 110%;
  font-size: clamp(30px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.035em;
  text-wrap: balance;
}
.agency__title span { color: var(--blue-2); }
.agency__note { margin-top: 20px; color: var(--p-text-2); max-width: 44ch; }
.mix { display: grid; gap: 14px; }
.mix li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label num" "bar bar" "desc desc";
  gap: 6px 12px;
}
.mix span { grid-area: label; font-weight: 600; font-size: 16px; }
.mix b { grid-area: num; font-family: var(--f-display); font-stretch: 116%; font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.mix i { grid-area: bar; position: relative; height: 8px; border-radius: 4px; background: var(--p-line); overflow: hidden; }
.mix i::after {
  content: ""; position: absolute; inset: 0; width: calc(var(--n) / 13 * 100%);
  border-radius: 4px; background: linear-gradient(90deg, var(--blue-2), #7c9dff);
  transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) 0.3s;
}
.mix.is-in i::after { transform: scaleX(1); }
.mix em { grid-area: desc; font-style: normal; font-size: 14px; color: var(--p-text-3); }
.industries { margin-top: 36px; }
.industries__k { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p-text-3); margin-bottom: 12px; }
.industries ul { display: flex; flex-wrap: wrap; gap: 6px; }
.industries li { padding: 4px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--p-line); font-size: 13.5px; color: var(--p-text-2); }
@media (max-width: 900px) { .agency { grid-template-columns: 1fr; } }

.stats__label {
  margin-bottom: 26px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
}
.stats__label--2 { margin-top: clamp(64px, 8vw, 100px); }
.stats--sm .stat dd { --num: clamp(48px, 4.6vw, 76px); }
.stats--sm .stat--word dd span { font-size: clamp(22px, 2.2vw, 34px); }
.stat sup.pre { margin: 0.06em 0.02em 0 0; }
.stats__foot { margin-top: 48px; font-size: 14px; color: var(--text-3); max-width: 70ch; }

.career {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 100px);
  margin-top: clamp(70px, 9vw, 120px);
}
.timeline { border-top: 1px solid var(--line-2); }
.role-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 6px 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.role-row__org { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; }
.role-row__title { grid-column: 1; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.role-row__what { grid-column: 2; grid-row: 1 / span 2; color: var(--text-2); font-size: 15.5px; }
.cv { display: grid; gap: 34px; align-content: start; }
.cv__block h3 { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.cv__block > ul:not(.chips) { border-top: 1px solid var(--line); }
.cv__block > ul:not(.chips) li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cv__block li b { font-weight: 600; font-size: 15.5px; }
.cv__block li span { font-size: 14px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; color: var(--text-2); }
@media (max-width: 960px) { .career { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .role-row { grid-template-columns: 1fr; }
  .role-row__what { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }

/* ---------- work cards: problem → role → worked on → outcome ---------- */
.story { margin-top: 22px; border-top: 1px solid var(--p-line); }
.story div {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--p-line);
}
.story dt { padding-top: 3px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p-text-3); }
.story dd { font-size: 15px; line-height: 1.5; color: var(--p-text-2); }
.story__out dt { color: var(--blue-2); }
.story__out dd { color: var(--p-text); font-weight: 500; }
.story__out b { color: var(--blue-2); }
@media (max-width: 480px) { .story div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 560px) { .arc__stage { font-size: 13px; } }

/* ---------- final polish: experience cards ---------- */
.xp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(56px, 7vw, 90px); }
.xp__card {
  padding: 26px 28px 28px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  transition: border-color 0.3s;
}
.xp__card:hover { border-color: var(--line-3); }
.xp__org { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; line-height: 1.1; }
.xp__role { margin-top: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.xp__what { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.xp__card--quiet { background: transparent; border-style: dashed; }
.xp__card--quiet .xp__org { color: var(--text-2); }
.xp__card--quiet .xp__role { color: var(--text-3); }
@media (max-width: 760px) { .xp { grid-template-columns: 1fr; } }

/* ---------- final polish: evenly spaced growth line ---------- */
.arc__track { border-top: 0; }
.arc__track::before {
  content: ""; position: absolute; top: 0; height: 1px;
  left: calc(100% / 12); right: calc(100% / 12);
  background: var(--line-2);
}
.arc__line { left: calc(100% / 12); right: calc(100% / 12); top: -0.5px; height: 2px; }
.arc__stage { justify-items: center; text-align: center; padding: 30px 4px 20px; }
.arc__stage::before { left: 50%; top: -5px; transform: translateX(-50%); }
.arc__note { text-align: center; margin-inline: auto; }
@media (max-width: 560px) {
  .arc__track { grid-template-columns: 1fr; }
  .arc__track::before { left: 5px; right: auto; top: 24px; bottom: 24px; width: 1px; height: auto; }
  .arc__line { left: 4.5px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .arc__fill { transform-origin: top; transform: scaleY(var(--p, 0.02)); }
  .arc__stage {
    grid-auto-flow: column; justify-content: start; align-items: baseline; justify-items: start;
    gap: 14px; text-align: left;
    padding: 12px 0 12px 32px;
    font-size: 22px; font-stretch: 112%;
  }
  .arc__stage::before { left: 0; top: 50%; transform: translateY(-50%); }
  .arc__note { text-align: left; margin-inline: 0; }
}

/* ---------- final polish: footer ---------- */
.foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 20px 48px;
  padding-top: 40px; padding-bottom: 18px;
}
.foot__id p { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.foot__brand { text-decoration: none; }
.foot__nav { display: flex; gap: 22px; }
.foot__nav a { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--text-2); transition: color 0.2s; }
.foot__nav a:hover { color: var(--text); }
.foot__copy { justify-self: end; font-family: var(--f-mono); font-size: 12px; color: var(--text-3); }
.foot__fine { padding-bottom: 30px; font-size: 12px; color: var(--text-3); }
@media (max-width: 860px) {
  .foot__inner { grid-template-columns: 1fr; gap: 18px; }
  .foot__copy { justify-self: start; }
}

/* ---------- demo: why it's there ---------- */
.demo__cap { margin-top: 12px; padding-top: 12px; }
.demo__job {
  display: block;
  font-family: var(--f-display); font-stretch: 108%; font-weight: 600;
  font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.3;
  color: var(--text);
}
.demo__job em {
  font-style: normal; font-weight: 700;
  background: linear-gradient(95deg, #86a9ff 0%, var(--blue) 40%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.demo__cap span { margin-top: 6px; min-height: 2.8em; font-size: 13.5px; line-height: 1.4; }
.hero { padding-bottom: 76px; }

/* ---------- about: knowledge panel ---------- */
.about { align-items: start; }
.about__story { display: grid; gap: 34px; }
.about__story .about__text { max-width: 48ch; }
.kp {
  justify-self: end;
  width: 100%; max-width: 460px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #181b23, #13151c);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.kp__head { display: flex; align-items: center; gap: 16px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.kp__avatar { width: 64px; flex: none; }
.kp__avatar span { font-size: 18px; }
.kp__name { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.kp__type { margin-top: 3px; font-size: 14px; color: var(--text-3); }
.kp__desc { padding: 16px 22px 4px; font-size: 15px; color: var(--text-2); }
.kp__facts { padding: 6px 22px 10px; }
.kp__facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 7px 0; font-size: 14.5px; }
.kp__facts dt { font-weight: 600; color: var(--text); }
.kp__facts dd { color: var(--text-2); }
.kp__links { display: flex; gap: 8px; padding: 6px 22px 18px; }
.kp__links a {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13.5px; text-decoration: none; color: #b9ccff;
  transition: border-color 0.2s, background 0.2s;
}
.kp__links a:hover { border-color: rgba(91,140,255,0.6); background: rgba(91,140,255,0.1); }
.kp__ask { border-top: 1px solid var(--line); padding: 12px 0 6px; }
.kp__ask p { padding: 0 22px 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.kp__ask a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 22px; border-top: 1px solid var(--line);
  font-size: 14.5px; text-decoration: none; color: var(--text);
  transition: background 0.2s;
}
.kp__ask a:first-of-type { border-top: 0; }
.kp__ask a span { color: var(--text-3); transition: transform 0.3s var(--ease), color 0.3s; }
.kp__ask a:hover { background: rgba(255,255,255,0.03); }
.kp__ask a:hover span { transform: translateX(4px); color: var(--blue); }
@media (max-width: 860px) { .kp { justify-self: stretch; max-width: none; } }

/* ---------- round 8: growth line spacing, panel chips, photo, contact ---------- */
.arc.wrap { max-width: 1500px; }
.arc__stage { font-size: clamp(20px, 2.25vw, 38px); }
@media (max-width: 560px) { .arc__stage { font-size: 22px; } }

.kp__avatar { position: relative; }
.kp__photo { position: absolute; inset: 6px; z-index: 1; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 50%; object-fit: cover; }
.kp__facts div { padding: 5px 0; }
.kp__ask { padding: 14px 22px 18px; }
.kp__ask p { padding: 0 0 10px; }
.kp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kp__chips a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  font-size: 13.5px; color: var(--text); text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.kp__chips a:first-of-type { border-top: 1px solid var(--line-2); }
.kp__chips a:hover { border-color: rgba(91,140,255,0.6); background: rgba(91,140,255,0.1); }
.kp__chips svg { width: 13px; height: 13px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; }

.contact__alt { margin-top: 28px; }

.dres { line-height: 1.3; row-gap: 1px; }
.dres__t { line-height: 1.3; }
.dres__type { padding-top: 0; padding-bottom: 0; }
/* the list fades out at the bottom, like a results page that keeps going */
.demo__results { max-height: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 34px), transparent); }

/* ---------- hero fits shorter laptop screens ---------- */
@media (min-width: 1021px) and (max-height: 880px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); padding-bottom: 48px; }
  .hero__facts { margin-top: 30px; }
  .hero__actions { margin-top: 26px; }
  .hero__lede { margin-top: 22px; }
  .demo { padding: 12px; }
  .demo__top { padding-bottom: 8px; }
  .demo__bar { height: 50px; }
  .demo__screen { height: 262px; }
  .dres { padding-top: 6px; padding-bottom: 6px; }
  .demo__results { gap: 5px; }
  .dres__t { font-size: 14px; }
  .dans { padding: 13px 16px; }
  .dans__text { font-size: 14.5px; line-height: 1.55; }
  .demo__queries { margin-top: 10px; }
}

/* ---------- direction cards: chips line up along the bottom ---------- */
.world { display: flex; flex-direction: column; }
.world__terms { margin: auto 24px 0; padding-top: 18px; }

/* =========================================================
   MOBILE OPTIMISATION
   ========================================================= */
.nav__menu { display: none; }
.nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.foot { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 760px) {
  /* menu */
  .nav__menu {
    display: inline-grid; place-content: center; gap: 5px;
    width: 40px; height: 40px; flex: none;
    border: 1px solid var(--line-2); border-radius: 10px;
  }
  .nav__menu span { display: block; width: 16px; height: 1.6px; border-radius: 1px; background: var(--text); transition: transform 0.3s var(--ease); }
  .nav.is-open .nav__menu span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .nav.is-open .nav__menu span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: calc(100% + 8px); left: 10px; right: 10px;
    padding: 6px;
    border-radius: 16px; border: 1px solid var(--line-2);
    background: #0b0c11;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 15px 14px; border-radius: 10px; font-size: 14px; color: var(--text); }
  .nav__links a + a { border-top: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__links a.is-current { background: rgba(91,140,255,0.1); }
  .nav__cta { height: 40px; padding: 0 14px; font-size: 14px; }

  /* calmer section rhythm */
  .sheet { padding-bottom: calc(84px + var(--radius-sheet)); }
  .sheet:last-child { padding-bottom: 84px; }
  .chapter { margin-bottom: 44px; }
  .display { font-size: clamp(34px, 9.6vw, 48px); }
}

@media (max-width: 420px) {
  .nav__find { display: none; }
  .nav__brand { font-size: 13px; letter-spacing: 0.04em; }
}

@media (max-width: 560px) {
  /* hero */
  .hero { padding-bottom: 56px; }
  .hero__who { font-size: 11.5px; letter-spacing: 0.1em; }
  .hero__lede { font-size: 17.5px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 34px; }
  .hero__facts li { margin-right: 0; padding: 14px 10px 0 0; }
  .hero__facts li + li { padding-left: 12px; }
  .demo__screen { height: 344px; }
  .demo__job { font-size: 15.5px; }

  /* diagrams stay legible */
  .vl__flow li { font-size: 10.5px; letter-spacing: 0.02em; }
  .vm__rows code { font-size: 11px; }
  .vp__hub { font-size: 11px; }

  /* work cards */
  .case { padding: 14px; border-radius: 22px; }
  .case__title { font-size: 25px; }
  .case__viz { padding: 16px; min-height: 0; }

  /* contact */
  .contact__title { font-size: clamp(38px, 11.5vw, 52px); }
  .mail { gap: 14px; }
  .mail__link { font-size: clamp(22px, 6.6vw, 30px); }
  .contact__alt { width: 100%; }
  .contact__alt .btn { width: 100%; justify-content: center; }
}

/* comfortable tap targets on touch screens */
@media (pointer: coarse) {
  .demo__chip { min-height: 40px; padding: 8px 14px; }
  .demo__play { height: 36px; padding: 0 12px; }
  .demo__sw { height: 42px; }
  .mail__copy { height: 44px; }
  .crumbs a { display: inline-block; padding: 10px 0; }
  .foot__nav a { display: inline-block; padding: 10px 0; }
  .kp__links a, .kp__chips a { min-height: 40px; display: inline-flex; align-items: center; }
  .arc__stage { min-height: 44px; }
}

/* no "stuck" hover lifts on touch screens */
@media (hover: none) {
  .case:hover, .case:focus-visible, .world:hover, .route:hover, .next-case:hover { transform: none; }
}

/* ---------- growth line: slow auto-advance ---------- */
.arc__fill { transition: transform 1.4s var(--ease-io); }
.arc__stage, .arc__stage::before { transition-duration: 0.8s; }
.arc__note { transition: opacity 0.35s; }
.arc__note.is-fading { opacity: 0; }

/* =========================================================
   ASK ABOUT HASHIM — corner widget
   ========================================================= */
.ask {
  position: fixed; z-index: 45;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.ask > * { pointer-events: auto; }
.ask__fab {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 20px 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.38);
  background: linear-gradient(180deg, rgba(26, 23, 44, 0.94), rgba(14, 13, 24, 0.94));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.85), 0 10px 40px -18px rgba(124, 92, 240, 0.7);
  color: var(--text); font-size: 14.5px; font-weight: 600;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), border-color 0.25s;
}
.ask__fab:hover { border-color: rgba(167, 139, 250, 0.7); }
.ask__orb {
  position: relative;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #7c5cf0, #5b8cff);
  color: #fff; font-size: 15px;
  transition: transform 0.5s var(--ease);
}
.ask__orb::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.6);
  animation: askPulse 2.8s var(--ease) infinite;
}
@keyframes askPulse { 0% { opacity: 0.9; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.45); } }
.ask.is-open .ask__orb { transform: rotate(90deg); }
.ask.is-open .ask__orb::after { animation: none; opacity: 0; }
.ask:not(.is-shown) .ask__fab { opacity: 0; transform: translateY(18px) scale(0.96); pointer-events: none; }

.ask__panel {
  width: min(392px, calc(100vw - 24px));
  max-height: min(560px, calc(100svh - 110px));
  overflow: auto;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(124, 92, 240, 0.18), transparent 60%),
    #11101b;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95), 0 20px 60px -30px rgba(124, 92, 240, 0.55);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(10px) scale(0.97);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.ask__panel.is-in { opacity: 1; transform: none; }
.ask__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 12px; }
.ask__title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.ask__spark { color: var(--violet); }
.ask__close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); color: var(--text-2); }
.ask__close:hover { color: var(--text); border-color: var(--line-3); }
.ask__close svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ask__bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 6, 9, 0.6);
  font-size: 14.5px; font-weight: 500;
}
.ask__bar svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.ask__caret { width: 2px; height: 18px; margin-left: -8px; background: var(--blue); flex: none; animation: blink 1s steps(2) infinite; }
.ask__answer {
  margin-top: 10px; padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.32);
  background: radial-gradient(120% 140% at 0% 0%, rgba(124, 92, 240, 0.16), transparent 55%), rgba(16, 14, 28, 0.9);
  min-height: 132px;
}
.ask__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); }
.ask__text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--text); }
.ask__text .w { opacity: 0.08; transition: opacity 0.3s; }
.ask__text .w.is-on { opacity: 1; }
.ask__src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ask__src a {
  padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.1);
  font-family: var(--f-mono); font-size: 11.5px; color: #d5c9ff; text-decoration: none;
  opacity: 0; transform: translateY(4px); transition: opacity 0.4s 0.5s, transform 0.4s 0.5s var(--ease), background 0.2s;
}
.ask__answer.is-ready .ask__src a { opacity: 1; transform: none; }
.ask__src a:hover { background: rgba(167, 139, 250, 0.22); }
.ask__qs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ask__chip {
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  font-size: 13px; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ask__chip:hover { color: var(--text); border-color: var(--line-3); }
.ask__chip.is-on { color: var(--text); border-color: rgba(91, 140, 255, 0.6); background: rgba(91, 140, 255, 0.14); }
.ask__note { margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); text-align: center; }

@media (max-width: 560px) {
  .ask { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .ask__fab { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .ask__fab-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ask__orb { width: 40px; height: 40px; font-size: 17px; }
  .ask__panel { position: fixed; left: 12px; right: 12px; bottom: 82px; width: auto; }
}
@media (pointer: coarse) {
  .ask__chip { min-height: 40px; }
  .ask__src a { min-height: 34px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ask__orb::after { animation: none; }
  .ask__text .w { opacity: 1; }
}

/* ---------- status widget: search bar is the heading ---------- */
.ask__head { gap: 8px; padding: 0 0 10px; }
.ask__head .ask__bar { flex: 1; min-width: 0; }
.ask__close { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.ask__label { display: flex; align-items: center; gap: 8px; color: #9fe3c2; }
.ask__live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; animation: live 2s infinite; }
.ask__date { margin-left: auto; color: var(--text-3); letter-spacing: 0.06em; }
@media (prefers-reduced-motion: reduce) { .ask__live { animation: none; } }

/* ---------- status widget: two pages ---------- */
.ask__viewport { margin-top: 0; overflow: hidden; border-radius: 14px; touch-action: pan-y; }
.ask__track { display: flex; transition: transform 0.5s var(--ease); }
.ask__track > .ask__answer { flex: 0 0 100%; margin-top: 0; min-height: 150px; }
.ask__answer--side { border-color: rgba(110, 231, 242, 0.32); background: radial-gradient(120% 140% at 0% 0%, rgba(110, 231, 242, 0.1), transparent 55%), rgba(12, 18, 26, 0.92); }
.ask__answer--side .ask__label { color: #9be9f2; }
.ask__answer--side .ask__live { background: var(--cyan); animation: none; box-shadow: 0 0 10px var(--cyan); }
.ask__answer--side .ask__src a { border-color: rgba(110, 231, 242, 0.4); background: rgba(110, 231, 242, 0.08); color: #c4f3f8; }
.ask__pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 0 2px; }
.ask__dots { display: flex; gap: 6px; }
.ask__dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line-3); transition: width 0.35s var(--ease), background 0.35s; }
.ask__dots i.is-on { width: 18px; background: var(--text-2); }
.ask__turn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.ask__turn:hover { border-color: rgba(110, 231, 242, 0.55); background: rgba(110, 231, 242, 0.08); }
.ask__turn.is-back:hover { border-color: rgba(91, 224, 160, 0.55); background: rgba(91, 224, 160, 0.08); }
.ask__turn span { transition: transform 0.3s var(--ease); }
.ask__turn:hover span { transform: translateX(3px); }
.ask__turn.is-back:hover span { transform: translateX(-3px); }
@media (pointer: coarse) { .ask__turn { height: 40px; padding: 0 15px; } }
@media (prefers-reduced-motion: reduce) { .ask__track { transition: none; } }

/* =========================================================
   MULTI-PAGE: "more" links, lab page, 404
   ========================================================= */
.more { display: flex; justify-content: flex-end; margin-top: 22px; }
.more__link {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--p-line-2); background: var(--paper-2);
  font-weight: 600; font-size: 15px; color: var(--p-text); text-decoration: none;
  transition: border-color 0.25s, transform 0.4s var(--ease);
}
.more__link span { color: var(--blue-2); transition: transform 0.3s var(--ease); }
.more__link:hover { border-color: rgba(58, 105, 255, 0.45); }
.more__link:hover span { transform: translateX(4px); }
.more--lab { justify-content: flex-start; margin-top: 30px; }
.more--lab .more__link { background: rgba(255,255,255,0.03); border-color: rgba(167, 139, 250, 0.35); color: var(--text); }
.more--lab .more__link span { color: var(--violet); }
.more--lab .more__link:hover { border-color: rgba(167, 139, 250, 0.7); }

.exp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.exp__tags span { padding: 3px 9px; border-radius: 5px; border: 1px solid rgba(167, 139, 250, 0.25); font-family: var(--f-mono); font-size: 11.5px; color: var(--text-2); }
.lab__note { margin-top: 28px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.sheet--violet .worlds { margin-top: 0; }

.nf { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-bottom: 80px; }
.nf__bar {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px; height: 58px; margin-top: 34px; padding: 0 20px;
  border-radius: 16px; border: 1px solid var(--line-2); background: rgba(12, 14, 20, 0.85);
  font-size: 17px; overflow: hidden;
}
.nf__bar svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.nf__q { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.nf__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 40px; max-width: 900px; }
.nf__links a {
  display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.02);
  text-decoration: none; transition: border-color 0.25s, background 0.25s;
}
.nf__links b { font-family: var(--f-display); font-stretch: 112%; font-size: 20px; }
.nf__links span { font-size: 14px; color: var(--text-3); }
.nf__links a:hover { border-color: rgba(91, 140, 255, 0.55); background: rgba(91, 140, 255, 0.06); }
@media (max-width: 760px) { .nf__links { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .hero__who, .js .hero__hook, .js .hero__lede, .js .hero__actions, .js .hero__facts, .js .demo { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .packet { display: none; }
  .code__l { transform: none; }
  .blocks rect { opacity: 1; }
  .dans__text .w { opacity: 1; }
}
