/* kiriltrifonov.com v2: "Signal" system. Dark instrument-panel UI, one cyan signal colour,
   Geist + Geist Mono (self-hosted), 3D globe on Home. Radius grammar: panels 16, buttons 12, chips pill. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #06070A;
  --bg-2: #0B0D12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.10);
  --line-hi: rgba(255, 255, 255, 0.22);
  --text: #ECEFF3;
  --muted: #9AA3AF;      /* 7.9:1 on bg */
  --faint: #7D8692;      /* 5.5:1 on bg: smallest text floor */
  --signal: #5CE1FF;     /* 13:1 on bg */
  --signal-dim: rgba(92, 225, 255, 0.16);
  --glow: 0 0 0 1px rgba(92,225,255,.45), 0 0 24px rgba(92,225,255,.35), 0 0 64px rgba(92,225,255,.15);

  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 80px; --s8: 128px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --maxw: 1280px;
  --measure: 66ch;
  --r-panel: 16px; --r-btn: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: clamp(16px, 0.4vw + 14.5px, 18px); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 560; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration-color: var(--line-hi); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--signal); text-decoration-color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--bg); }
main { position: relative; z-index: 2; }
main > :not(.stage) { position: relative; z-index: 2; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--s3); top: -80px; background: var(--signal); color: var(--bg); padding: var(--s2) var(--s3); font-family: var(--mono); font-size: 13px; z-index: 100; border-radius: 8px; }
.skip:focus { top: var(--s3); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* ---------- Ambient layers ---------- */
.gridbg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--signal); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--signal); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
    @keyframes progress { to { transform: scaleX(1); } }
  }
}

/* ---------- Top bar (glass) ---------- */
.topbar { position: sticky; top: 0; z-index: 50; padding: var(--s3) var(--gutter) 0; }
.topbar__inner {
  max-width: calc(var(--maxw) - 2 * var(--gutter) + 32px); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 10px 12px 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 12, 16, .62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.wordmark { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
.wordmark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.wordmark:hover { color: var(--text); }
.wordmark__short { display: none; font-family: var(--mono); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--panel-hi); }
.nav a[aria-current="page"] { color: var(--bg); background: var(--signal); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.btn {
  --bx: 50%; position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px;
  border-radius: var(--r-btn); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--dl:hover .arr { transform: translateY(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--signal); color: var(--bg); border: 1px solid var(--signal); }
.btn--primary::before { /* sheen that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(120px circle at var(--bx) 50%, rgba(255,255,255,.75), transparent 70%);
}
.btn--primary:hover { color: var(--bg); box-shadow: var(--glow); }
.btn--primary:hover::before { opacity: .55; }
.btn--glass { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--line-hi); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { color: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 1px rgba(92,225,255,.25), 0 0 28px rgba(92,225,255,.18); }

/* ---------- HUD bits ---------- */
.hud-label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s4); padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(92,225,255,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(92,225,255,0); } 100% { box-shadow: 0 0 0 0 rgba(92,225,255,0); } }
.panel { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--r-panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.corners::before, .corners::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--signal); pointer-events: none; opacity: .9; }
.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-panel); }
.corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-panel); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-hi); color: var(--muted); }
.chip--draft { color: var(--signal); border-color: rgba(92,225,255,.45); background: var(--signal-dim); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin: 0 0 var(--s3); }

/* ---------- Home: stage (3D canvas) ---------- */
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; display: block; }
.stage__fallback { position: absolute; right: -10vw; top: 10vh; width: min(70vw, 760px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(92,225,255,.22), rgba(92,225,255,.04) 45%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(92,225,255,.12); border: 1px solid rgba(92,225,255,.18); display: none; }
.no-webgl .stage__fallback { display: block; }

/* ---------- Home: hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 var(--s7); position: relative; }
.hero .wrap { width: 100%; }
.hero__text { max-width: 760px; }
.spec { font-size: clamp(2.3rem, 3.9vw + .2rem, 4rem); font-weight: 540; line-height: 1.0; letter-spacing: -0.045em; }
.spec__line { display: flex; align-items: baseline; gap: .45em; }
.spec__i { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--faint); font-weight: 400; transform: translateY(-1.6em); flex: none; width: 2.2rem; }
.spec__line--cont { padding-left: calc(2.2rem + .45em); }
@media (min-width: 1001px) { .spec__line { white-space: nowrap; } }
.spec .hl { background: linear-gradient(90deg, var(--signal), #CFF6FF 60%, var(--signal)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(92,225,255,.35)); }
.spec .dot { color: var(--signal); }
.lede { margin-top: var(--s5); max-width: 46ch; font-size: clamp(1.05rem, .5vw + .9rem, 1.25rem); color: var(--muted); line-height: 1.55; }
.lede strong { color: var(--text); font-weight: 500; }
.scrollcue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--faint); }
.scrollcue span:last-child { width: 1px; height: 44px; background: linear-gradient(var(--signal), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .js .spec__line > span:last-child { clip-path: inset(0 0 100% 0); transform: translateY(.3em); animation: lineIn 1s var(--ease) forwards; }
  .js .spec__line:nth-child(3) > span:last-child { animation-delay: .1s; }
  .js .spec__line:nth-child(4) > span:last-child { animation-delay: .2s; }
  .js .spec__line:nth-child(5) > span:last-child { animation-delay: .3s; }
  .js .spec__line:nth-child(6) > span:last-child { animation-delay: .4s; }
  .js .spec__i { opacity: 0; animation: fadeIn .6s .5s forwards; }
  @keyframes lineIn { to { clip-path: inset(-0.2em -0.2em -0.3em 0); transform: none; } }
  @keyframes fadeIn { to { opacity: 1; } }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
}

/* ---------- Section frame ---------- */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section__title { font-size: clamp(2.2rem, 3.4vw + 1rem, 4.2rem); max-width: 16ch; }
.section__lede { color: var(--muted); max-width: 52ch; margin-top: var(--s4); font-size: 1.1rem; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Route (scroll-driven, pinned) ---------- */
.route { position: relative; }
.route__sticky { position: relative; }
.route__grid { display: grid; grid-template-columns: minmax(0, 520px); gap: var(--s5); }
.route__panel { padding: var(--s5); }
.route__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.route__ticks { display: flex; gap: 6px; }
.route__ticks span { width: 22px; height: 3px; border-radius: 3px; background: var(--line-hi); transition: background .4s, box-shadow .4s; }
.route__ticks span.on { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step__meta { display: flex; justify-content: space-between; gap: var(--s3); color: var(--faint); margin-bottom: var(--s2); }
.step h3 { font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem); margin-bottom: var(--s3); }
.step p { color: var(--muted); margin: 0; max-width: 40ch; }
.route__facts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* pinned mode: only when JS + motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .route { height: 500vh; }
  .js .route__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
  .js .route__sticky > .wrap { width: 100%; }
  .js .steps { grid-template-areas: "s"; }
  .js .step { grid-area: s; border-top: 0; padding: 0; opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); pointer-events: none; }
  .js .step.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
}

/* ---------- Work features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); perspective: 1200px; }
.feature { padding: var(--s5); display: flex; flex-direction: column; min-height: 360px; transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s, box-shadow .3s; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.feature:hover { border-color: rgba(92,225,255,.4); box-shadow: 0 30px 80px -30px rgba(92,225,255,.25); }
.feature__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s6); color: var(--faint); }
.feature h3 { font-size: clamp(1.7rem, 1.2vw + 1.2rem, 2.3rem); margin-bottom: var(--s3); }
.feature .role { color: var(--signal); margin-bottom: var(--s3); }
.feature p { color: var(--muted); font-size: 16px; }
.feature .more { margin-top: auto; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.feature .more .arr { transition: transform .3s var(--ease); }
.feature .more:hover .arr { transform: translateX(4px); }
.feature--locked { overflow: hidden; }
.locked { flex: 1; display: grid; place-items: center; text-align: center; border: 1px dashed var(--line-hi); border-radius: 10px; min-height: 180px; position: relative; overflow: hidden;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px); }
.locked::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(transparent, rgba(92,225,255,.12), transparent); animation: scan 3.6s linear infinite; }
@keyframes scan { to { top: 100%; } }
.locked strong { display: block; font-size: 1.4rem; font-weight: 520; letter-spacing: -0.02em; }
.locked span { color: var(--faint); }

/* ---------- Quote (scroll-scrubbed words) ---------- */
.quote { padding: clamp(100px, 14vw, 200px) 0; }
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(2rem, 4.2vw + .6rem, 5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; max-width: 20ch; margin: 0; }
.quote .w { opacity: 1; transition: opacity .2s linear, color .2s; }
.js .quote .w { opacity: clamp(0.14, calc(var(--p, 1) * var(--n) - var(--i) + 1), 1); }
@media (prefers-reduced-motion: reduce) { .js .quote .w { opacity: 1; } }
.quote .w--hl { color: var(--signal); }
.quote footer { margin-top: var(--s5); color: var(--faint); }

/* ---------- Notebook terminal ---------- */
.term { overflow: hidden; }
.term__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); color: var(--faint); }
.term__body { padding: var(--s3) var(--s4) var(--s4); }
.term__cmd { color: var(--muted); padding: var(--s2) 0 var(--s3); }
.term__cmd b { color: var(--signal); font-weight: 500; }
.drafts { list-style: none; margin: 0; padding: 0; }
.drafts li { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s4) var(--s2); border-top: 1px solid var(--line); border-radius: 8px; transition: background .25s; }
.drafts li:hover { background: var(--panel-hi); }
.drafts .n { color: var(--faint); }
.drafts h3 { font-size: clamp(1.25rem, .8vw + 1rem, 1.6rem); letter-spacing: -0.025em; font-weight: 520; }
.drafts p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.drafts .slug { display: block; color: var(--faint); margin-top: 6px; text-transform: none; letter-spacing: .02em; }

/* ---------- Contact band ---------- */
.band { padding: clamp(100px, 13vw, 180px) 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1400px; height: 900px; transform: translate(-50%, -45%); background: radial-gradient(closest-side, rgba(92,225,255,.18), transparent); pointer-events: none; }
.band__title { font-size: clamp(2.6rem, 6vw + .4rem, 6.6rem); letter-spacing: -0.05em; max-width: 14ch; }
.band__title .hl { color: var(--signal); }
.email { display: inline-flex; align-items: center; gap: 14px; margin-top: var(--s6); font-size: clamp(1.4rem, 2.6vw + .6rem, 3rem); font-weight: 500; letter-spacing: -0.03em; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid var(--line-hi); transition: border-color .3s, color .3s, text-shadow .3s; overflow-wrap: anywhere; }
.email:hover { color: var(--signal); border-color: var(--signal); text-shadow: 0 0 24px rgba(92,225,255,.5); }
.socials { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; gap: var(--s2); flex-wrap: wrap; }
.socials a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.socials a:hover { border-color: var(--signal); }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(80px, 11vw, 150px) 0 clamp(40px, 6vw, 80px); }
.path { color: var(--signal); margin-bottom: var(--s4); display: inline-block; }
.page-head h1 { font-size: clamp(2.8rem, 6vw + .2rem, 6.8rem); letter-spacing: -0.05em; max-width: 13ch; line-height: .98; }
.page-head h1 .dim { color: var(--faint); }
.page-head .lede { margin-top: var(--s4); }

/* hologram photo placeholder */
.holo { position: relative; margin: 0; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); aspect-ratio: var(--ratio, 4 / 5);
  background:
    repeating-linear-gradient(0deg, rgba(92,225,255,.06) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 38%, rgba(92,225,255,.25), transparent 55%),
    linear-gradient(180deg, #0E1218, #07090C); }
.holo__fig { position: absolute; left: 50%; bottom: 0; width: 56%; aspect-ratio: 1 / 1.25; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 22%, rgba(92,225,255,.5) 0 18%, transparent 18.5%), radial-gradient(ellipse 50% 42% at 50% 100%, rgba(92,225,255,.32) 0 98%, transparent 100%);
  opacity: .55; filter: blur(.4px); }
.holo__tag { position: absolute; left: 16px; top: 14px; color: var(--signal); }
.holo__cap { position: absolute; left: 16px; bottom: 14px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.about-side { position: sticky; top: 110px; display: grid; gap: var(--s4); }
.facts { padding: var(--s4); }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; font-size: 15px; }
.facts dt { color: var(--faint); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 4px; }
.facts dd { margin: 0; }
.prose { max-width: var(--measure); font-size: clamp(1.05rem, .4vw + .95rem, 1.2rem); color: #C9CFD6; }
.prose p:first-child { font-size: 1.35em; line-height: 1.4; color: var(--text); letter-spacing: -0.015em; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
.timeline li { padding: var(--s4); }
.timeline .mono { color: var(--signal); }
.timeline h3 { font-size: 1.6rem; margin: var(--s3) 0 var(--s2); }
.timeline p { color: var(--muted); font-size: 15px; margin: 0; }

.case { padding: clamp(32px, 4vw, 56px); margin-bottom: var(--s4); display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 4vw, 64px); }
.case h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.4rem); margin: var(--s3) 0; }
.case .meta { color: var(--muted); }
.case__body { max-width: var(--measure); color: #C9CFD6; }
.case__body h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: var(--s5) 0 var(--s3); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 8px; height: 8px; border-radius: 2px; background: var(--signal); box-shadow: 0 0 8px var(--signal); transform: rotate(45deg); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); counter-reset: f; }
.flow li { counter-increment: f; padding: var(--s3); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--muted); position: relative; }
.flow li::before { content: "0" counter(f); font-family: var(--mono); font-size: 11px; color: var(--signal); display: block; margin-bottom: 8px; letter-spacing: .1em; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--signal); font-family: var(--mono); }
.flow strong { display: block; color: var(--text); font-weight: 520; margin-bottom: 4px; font-size: 1.05rem; }
.motto { font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem); letter-spacing: -0.03em; color: var(--text); line-height: 1.2; margin-bottom: var(--s4); }

.notice { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); margin-bottom: var(--s6); }
.notice p { margin: 0; color: var(--muted); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); padding-bottom: clamp(80px, 10vw, 140px); }
.post { overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .5s var(--ease); }
.post:hover { border-color: rgba(92,225,255,.35); transform: translateY(-4px); }
.post .holo { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; --ratio: 16 / 10; }
.post__body { padding: var(--s4); }
.post__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); margin-bottom: var(--s3); color: var(--faint); }
.post h2 { font-size: 1.55rem; letter-spacing: -0.03em; margin-bottom: var(--s3); font-weight: 520; }
.post p { color: var(--muted); font-size: 15px; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(80px, 10vw, 140px); align-items: start; }
.contact-grid .email { margin-top: var(--s3); }
.linklist { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.linklist a { display: flex; justify-content: space-between; align-items: center; padding: var(--s3) var(--s4); text-decoration: none; border-top: 1px solid var(--line); min-height: 56px; }
.linklist li:first-child a { border-top: 0; }
.linklist .mono { color: var(--faint); text-transform: none; }

.legal { padding-bottom: clamp(80px, 10vw, 140px); }
.legal__body { max-width: var(--measure); color: #C9CFD6; }
.legal__body h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: var(--s6) 0 var(--s3); color: var(--text); }
.placeholder-note { padding: var(--s3) var(--s4); font-size: 14px; margin-bottom: var(--s5); border-color: rgba(92,225,255,.35); }
.ph { font-family: var(--mono); font-size: .8em; color: var(--signal); background: var(--signal-dim); padding: 1px 6px; border-radius: 4px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: rgba(6,7,10,.85); }
.footer__inner { padding-top: var(--s6); padding-bottom: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.footer__name { font-size: 1.4rem; font-weight: 560; letter-spacing: -0.03em; margin: 0 0 6px; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.footer__nav ul { list-style: none; margin: 0; padding: 0; }
.footer__nav a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; color: var(--muted); font-size: 15px; }
.footer__nav a:hover { color: var(--signal); }
.footer__small { grid-column: 1 / -1; color: var(--faint); margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature__top { margin-bottom: var(--s4); }
  .about-grid, .contact-grid, .case { grid-template-columns: 1fr; }
  .about-side { position: static; grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wordmark__full { display: none; }
  .wordmark__short { display: inline; }
  .topbar { padding: 10px 12px 0; }
  .topbar__inner { padding: 6px 6px 6px 14px; }
  .nav a { padding: 0 9px; font-size: 11px; letter-spacing: .04em; min-height: 36px; }
  .hero { justify-content: flex-end; padding-top: 34svh; padding-bottom: 64px; }
  .spec { font-size: clamp(2rem, 8.4vw, 2.5rem); }
  .lede { margin-top: var(--s4); }
  .spec__i { display: none; }
  .spec__line--cont { padding-left: 0; }
  .route__panel { padding: var(--s4); }
  .js .route__sticky { align-items: flex-end; padding-bottom: 24px; }
  .about-side { grid-template-columns: 1fr; }
  .timeline, .posts, .flow { grid-template-columns: 1fr; }
  .about-grid + .section .timeline { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -18px; transform: translateX(50%); }
  .drafts li { grid-template-columns: 1fr auto; }
  .drafts .n { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .scrollcue { display: none; }
}
@media (hover: none) { .feature { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
.route__top .eyebrow { margin: 0; }
@media (max-width: 1000px) and (min-width: 721px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
