/* neerajshekhawat.com
   Layout: sticky nav, wide single column. Signature element: the five-layer revenue engine chain.
   Case studies use a main column plus a sticky "run log" aside with real numbers. */

@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 900; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/martian-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/martian-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #F1F2EC;
  --surface: #FFFFFF;
  --surface-2: #E7E9E1;
  --ink: #111926;
  --muted: #586273;
  --line: #D5D9CF;
  --accent: #2341C4;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCE2FA;
  --saffron: #9A6400;
  --saffron-soft: #F6E7C4;
  --live: #17784F;
  --live-soft: #D3EEDF;
  --planned: #5F6878;
  --planned-soft: #E3E5E0;
  --tile: #FFFFFF;
  --tile-line: #DADDD4;
  --ring: #C9A45C;

  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.97rem, 0.94rem + 0.15vw, 1.05rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.5vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.9rem);

  --radius: 10px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D121B; --surface: #151C28; --surface-2: #1B2332; --ink: #E9ECF2; --muted: #9AA4B5; --line: #263042;
    --accent: #8FA3FF; --accent-ink: #0D121B; --accent-soft: #1E2950; --saffron: #EDB850; --saffron-soft: #3A2F14;
    --live: #55C994; --live-soft: #123527; --planned: #9AA2B0; --planned-soft: #232B38; --tile: #F4F5F1; --tile-line: #2E384B;
    --ring: #C9A45C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D121B; --surface: #151C28; --surface-2: #1B2332; --ink: #E9ECF2; --muted: #9AA4B5; --line: #263042;
  --accent: #8FA3FF; --accent-ink: #0D121B; --accent-soft: #1E2950; --saffron: #EDB850; --saffron-soft: #3A2F14;
  --live: #55C994; --live-soft: #123527; --planned: #9AA2B0; --planned-soft: #232B38; --tile: #F4F5F1; --tile-line: #2E384B;
  --ring: #C9A45C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.mono { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 400; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; white-space: nowrap; letter-spacing: -0.01em; }
.nav-scroll { overflow-x: auto; scrollbar-width: none; margin-left: auto; min-width: 0; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 0.92rem; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 760px) {
  .head-row { flex-wrap: wrap; gap: 4px 12px; padding-block: 10px 8px; }
  .nav-scroll { margin-left: -12px; width: calc(100% + 12px); }
}

/* ---------- page scaffolding ---------- */
main { display: block; }
.page { padding-block: 52px 40px; }
.page-head { display: grid; gap: 14px; max-width: 48rem; margin-bottom: 40px; }
.page-head h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.03em; }
.page-head .lede { font-size: var(--step-1); color: var(--muted); max-width: 42rem; }
.block { margin-top: 72px; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-title h2 { font-size: var(--step-3); font-weight: 800; }
.sec-title .lede-sm { color: var(--muted); max-width: 36rem; flex-basis: 100%; }
.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- buttons ---------- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  font: 600 0.95rem var(--f-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero .who { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.hero .who strong { color: var(--ink); font-weight: 500; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.5rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: var(--step-1); color: var(--muted); max-width: 37rem; }
.hero-lede strong { color: var(--ink); font-weight: 600; }
.avail {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--live-soft); color: var(--live);
  font-weight: 600; font-size: 0.86rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }

.portrait { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 400px; }
.portrait img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; }
.portrait figcaption {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.84rem;
  box-shadow: 0 6px 18px -10px rgb(0 0 0 / 0.35);
}
.portrait figcaption b { font-weight: 600; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin: 56px 0 0; padding: 0; }
.stat { padding: 18px 16px 4px 0; display: grid; gap: 4px; align-content: start; margin: 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat dt { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat dd { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.35; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero .portrait { max-width: 300px; justify-self: start; order: -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat + .stat { padding: 16px 12px 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; }
}

/* ---------- engine (signature) ---------- */
.engine { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 30px); }
.engine-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 24px; }
.engine-head h2 { font-size: var(--step-3); font-weight: 800; }
.engine-head p { color: var(--muted); max-width: 30rem; }
.chain { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.node { position: relative; display: grid; gap: 10px; align-content: start; padding-right: 22px; min-width: 0; }
.node::after {
  content: ""; position: absolute; top: 19px; left: 44px; right: 6px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px);
}
.node.is-live::after, .node.is-built::after { background: var(--ink); }
.node.is-built.to-planned::after { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
.node:last-child::after { display: none; }
.node-pin {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 0.8rem; font-weight: 500; background: var(--surface); border: 2px solid var(--line); color: var(--muted);
}
.is-live .node-pin { background: var(--live); border-color: var(--live); color: var(--surface); }
.is-built .node-pin { background: var(--saffron); border-color: var(--saffron); color: var(--surface); }
.node-layer { color: var(--muted); }
.node h3 { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em; }
.node h3 a { color: var(--ink); text-decoration: none; }
.node h3 a:hover { color: var(--accent); }
.node p { font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); align-items: center; }
.legend a { margin-left: auto; font-weight: 600; }
@media (max-width: 860px) {
  .chain { grid-template-columns: 1fr; }
  .node { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 0 0 22px 0; }
  .node > :not(.node-pin) { grid-column: 2; }
  .node-pin { grid-row: 1 / span 4; }
  .node::after { top: 44px; bottom: 2px; left: 19px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 10px); }
  .node.is-live::after, .node.is-built::after { background: var(--ink); }
  .node.is-built.to-planned::after { background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 10px); }
  .legend a { margin-left: 0; flex-basis: 100%; }
}

/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 3px 9px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500;
  background: var(--surface-2); color: var(--muted); line-height: 1.5;
}
.pill-live, .pill-built, .pill-planned { white-space: nowrap; }
.pill-live::before, .pill-built::before, .pill-planned::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill-live { background: var(--live-soft); color: var(--live); }
.pill-built { background: var(--saffron-soft); color: var(--saffron); }
.pill-planned { background: var(--planned-soft); color: var(--planned); }
.pill-planned::before { background: transparent; border: 1.5px solid currentColor; width: 4px; height: 4px; }

/* ---------- trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trio article { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.trio h3 { font-size: var(--step-2); font-weight: 800; }
.trio p { color: var(--muted); }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }

/* ---------- tools ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool {
  display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; line-height: 1.2;
}
.tool small { color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.tile {
  width: 30px; height: 30px; border-radius: 7px; background: var(--tile); border: 1px solid var(--tile-line);
  display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
}
.tile img { width: 20px; height: 20px; object-fit: contain; display: block; }
.tile.wide img { width: 24px; height: 18px; }
.tile.full { padding: 0; border: 0; }
.tile.full img { width: 100%; height: 100%; }
.tools-sm .tool { padding: 3px 10px 3px 3px; font-size: 0.8rem; gap: 7px; }
.tools-sm .tile { width: 24px; height: 24px; border-radius: 6px; }
.tools-sm .tile img { width: 16px; height: 16px; }
.tools-sm .tile.wide img { width: 19px; height: 14px; }
.tools-sm .tile.full img { width: 100%; height: 100%; }
.tool.plain { padding: 5px 12px; }
.tools-sm .tool.plain { padding: 3px 10px; }

/* ---------- case study rows (home + portfolio) ---------- */
.builds { display: grid; }
.build {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 48px);
  padding-block: 30px; border-top: 1px solid var(--line);
}
.build:first-child { border-top: 2px solid var(--ink); }
.build > div { min-width: 0; display: grid; gap: 12px; align-content: start; }
.build .layer { color: var(--muted); }
.build h3 { font-size: var(--step-2); font-weight: 800; }
.build h3 a { color: var(--ink); text-decoration: none; }
.build h3 a:hover { color: var(--accent); }
.build p { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.93rem; font-weight: 600; }
@media (max-width: 820px) { .build { grid-template-columns: 1fr; } }

/* run log */
.log {
  font-family: var(--f-mono); font-size: 0.78rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; display: grid; gap: 7px; font-variant-numeric: tabular-nums; line-height: 1.5;
}
.log .row { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 7px; }
.log .row:last-child { border-bottom: 0; padding-bottom: 0; }
.log .k { color: var(--muted); }
.log .v { color: var(--ink); font-weight: 500; text-align: right; margin-left: auto; }
.log .cap { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* funnel */
.funnel { display: grid; gap: 6px; }
.funnel-row { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; gap: 10px; align-items: center; }
.bar { height: 22px; border-radius: 4px; background: var(--accent); display: flex; align-items: center; padding-left: 8px; color: var(--accent-ink); font-size: 0.7rem; font-weight: 500; white-space: nowrap; overflow: hidden; min-width: 0; }
.bar.b2 { background: color-mix(in srgb, var(--accent) 65%, var(--surface)); }
.bar.b3 { background: var(--saffron); min-width: 8px; padding: 0; }
.funnel-row span { text-align: right; font-size: 0.74rem; }

/* workshop list */
.list { display: grid; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding-block: 18px; border-top: 1px solid var(--line); align-items: start; }
.item:first-child { border-top: 2px solid var(--ink); }
.item > div { min-width: 0; display: grid; gap: 6px; }
.item h3 { font-size: 1.15rem; font-weight: 700; }
.item p { color: var(--muted); font-size: 0.96rem; max-width: 46rem; }
@media (max-width: 640px) { .item { grid-template-columns: 1fr; } }

.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.next-card { background: var(--surface); border: 1px dashed var(--muted); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.next-card h3 { font-size: 1.15rem; font-weight: 700; }
.next-card p { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 700px) { .next-grid { grid-template-columns: 1fr; } }

/* ---------- rules / principles ---------- */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.rule h3 { font-size: 1.12rem; font-weight: 700; }
.rule p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 20px; color: var(--muted); max-width: 48rem; display: grid; gap: 10px; }

/* ---------- experience ---------- */
.timeline { display: grid; }
.role { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 28px; padding-block: 32px; border-top: 1px solid var(--line); }
.role:first-child { border-top: 2px solid var(--ink); }
.role-when { display: grid; gap: 10px; align-content: start; }
.role-when .mono { color: var(--muted); }
.role-where { font-size: 0.88rem; color: var(--muted); }
.org { display: flex; gap: 14px; align-items: center; }
.org-logo { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; background: var(--tile); border: 1px solid var(--tile-line); overflow: hidden; display: grid; place-items: center; }
.org-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.role-body { display: grid; gap: 14px; min-width: 0; }
.role-body h3 { font-size: var(--step-2); font-weight: 800; }
.role-body .org-name { font-size: var(--step-0); font-weight: 500; color: var(--muted); margin-top: 4px; }
.role-body .org-name a { color: var(--muted); }
.role-body ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; max-width: 48rem; }
.role-body li::marker { color: var(--accent); }
.sub-role { border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 8px; }
.sub-role h4 { font-size: 1.12rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.sub-role h4 .mono { color: var(--muted); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: var(--surface-2); color: var(--muted); }
@media (max-width: 720px) { .role { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- toolkit ---------- */
.kit { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); }
.kit:first-child { border-top: 2px solid var(--ink); }
.kit-label { display: grid; gap: 6px; align-content: start; }
.kit-label h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.kit-label p { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 720px) { .kit { grid-template-columns: 1fr; gap: 14px; } }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.skill-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.86rem; }
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; list-style: none; padding: 0; margin: 0; }
.certs li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.certs li > span:last-child { color: var(--muted); font-size: 0.85rem; text-align: right; }
.certs .tile { width: 30px; height: 30px; }
@media (max-width: 720px) { .certs { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.about-grid .portrait { max-width: 340px; justify-self: start; }
.acts { display: grid; }
.act { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 18px; padding-block: 22px; border-top: 1px solid var(--line); }
.act:first-child { border-top: 2px solid var(--ink); }
.act .mono { color: var(--accent); padding-top: 6px; }
.act h2 { font-size: var(--step-1); font-weight: 800; margin-bottom: 6px; }
.act p { color: var(--muted); max-width: 42rem; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.channels { display: grid; border-top: 2px solid var(--ink); }
.channel { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 16px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.channel .mono { color: var(--muted); }
.channel .val { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.channel .val a { color: var(--ink); text-decoration-color: var(--line); }
.channel .val a:hover { color: var(--accent); }
.copy-btn { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }
@media (max-width: 640px) { .channel { grid-template-columns: minmax(0, 1fr) auto; } .channel .mono { grid-column: 1 / -1; } }
.clock-card { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 24px; display: grid; gap: 18px; }
.clock-card .mono { opacity: 0.7; }
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clock { display: grid; gap: 2px; }
.clock b { font-family: var(--f-display); font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.clock span { font-size: 0.85rem; opacity: 0.75; }
.clock-card p { font-size: 0.92rem; opacity: 0.85; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.looking { display: grid; gap: 8px; margin-top: 28px; }
.looking ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }

/* ---------- CTA band ---------- */
.band { margin-top: 80px; background: var(--ink); color: var(--paper); border-radius: 16px; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 20px 32px; align-items: center; }
.band h2 { font-size: var(--step-3); font-weight: 800; }
.band p { opacity: 0.8; margin-top: 8px; max-width: 38rem; }
.band .btn-primary { background: var(--paper); color: var(--ink); }
.band .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.band .btn-ghost { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.band .btn-ghost:hover { border-color: var(--paper); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; } }

/* ---------- case study page ---------- */
.case-head { display: grid; gap: 18px; padding-bottom: 34px; max-width: 52rem; }
.case-head h1 { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.03em; }
.case-head .lede { font-size: var(--step-1); color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 0.9rem; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 44px; align-items: start; }
.case > * { min-width: 0; }
.case-main { display: grid; gap: 44px; }
.case-main section { display: grid; gap: 14px; }
.case-main h2 { font-size: var(--step-2); font-weight: 800; }
.case aside { display: grid; gap: 18px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.prose { max-width: 68ch; display: grid; gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; max-width: 72ch; border-top: 2px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 4px 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.steps .tag { background: transparent; padding: 3px 0 0; color: var(--accent); font-size: 0.7rem; }
.steps b { display: block; font-weight: 600; margin-bottom: 2px; }
.steps span:not(.tag) { color: var(--muted); font-size: 0.97rem; }
.fix { display: grid; gap: 12px; max-width: 72ch; }
.fix > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.fix p { padding: 14px 16px; font-size: 0.95rem; }
.fix p:first-child { border-right: 1px solid var(--line); color: var(--muted); }
.fix .cap { display: block; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); }
.fix p:last-child .cap { color: var(--live); }
.side-card { display: grid; gap: 10px; }
.side-card .cap { color: var(--muted); }
.download { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; }
.download p { font-size: 0.86rem; color: var(--muted); }
.callout { border-left: 3px solid var(--saffron); padding: 12px 14px; background: var(--saffron-soft); border-radius: 0 8px 8px 0; font-size: 0.9rem; }

.video { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.video .frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .facade { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; text-decoration: none; color: var(--paper); }
.video .play { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform 0.2s; }
.video a.facade:hover .play { transform: scale(1.06); }
.video .play::after { content: ""; border-left: 18px solid var(--accent-ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video .play.off { background: transparent; border: 2px dashed color-mix(in srgb, var(--paper) 50%, transparent); }
.video .play.off::after { display: none; }
.video .facade span { font-weight: 600; font-size: 1.05rem; }
.video .facade small { opacity: 0.72; font-size: 0.85rem; max-width: 42ch; }
.video .vbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 14px; font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); }

.next-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.next-nav a { display: grid; gap: 4px; text-decoration: none; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.next-nav a:hover { border-color: var(--accent); }
.next-nav span { font-size: 0.82rem; color: var(--muted); }
.next-nav b { font-family: var(--f-display); font-size: 1.1rem; }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case aside { position: static; order: -1; }
  .next-nav { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .fix > div { grid-template-columns: 1fr; }
  .fix p:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding-block: 30px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 0.86rem; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.foot-row nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot-row a { color: var(--muted); }

.notfound { padding-block: 80px; display: grid; gap: 18px; max-width: 40rem; }
.notfound h1 { font-size: var(--step-4); font-weight: 900; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
