/* ==========================================================
   Inner pages — Work, Rails, Playbook, Resume, Contact
   Loaded after style.css.
   ========================================================== */

.page { padding-top: 0; }

/* ---------- Page hero ---------- */
.page-hero {
  min-height: 100vh; min-height: 100svh;
  padding: clamp(130px, 18vh, 200px) var(--gutter) clamp(56px, 8vw, 100px);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.page-title {
  font-size: clamp(48px, 9.4vw, 168px); font-weight: 700; line-height: .9; letter-spacing: -.055em;
  max-width: 13ch;
}
.page-title .serif { color: var(--signal); font-weight: 400; }
.page-lede { margin-top: clamp(24px, 3vw, 40px); max-width: 52ch; font-size: clamp(17px, 1.5vw, 22px); color: var(--ink-soft); }
.page-hero__bg {
  position: absolute; right: -2vw; top: 8vh; z-index: -1;
  font-size: clamp(160px, 40vw, 720px); font-weight: 800; letter-spacing: -.08em; line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--ink-faint);
  pointer-events: none; user-select: none;
}

.stats {
  margin-top: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-faint);
}
.stats > div { padding: 20px 20px 0 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--ink-faint); }
.stats dt { color: var(--ink-soft); }
.stats dd { font-size: clamp(44px, 6vw, 96px); font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--ink-faint); margin-top: 20px; }
}

/* Next chapter styles live in style.css (shared with the homepage). */

/* ==========================================================
   WORK
   ========================================================== */
.story { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 0 clamp(24px, 4vw, 72px); padding: 0 var(--gutter); }
.rail { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.rail__year { font-size: clamp(64px, 7vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: .85; color: var(--signal); font-variant-numeric: tabular-nums; }
.rail__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rail__list li { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); transition: color .4s; }
.rail__list li i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; transition: background .4s, transform .4s var(--ease-out); }
.rail__list li.is-active { color: var(--paper); }
.rail__list li.is-active i { background: var(--signal); border-color: var(--signal); transform: scale(1.4); }
.rail__list li.is-done i { background: currentColor; }
.rail__bar { height: 2px; background: var(--ink-faint); }
.rail__bar span { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
.rail__name { display: none; }

.chaps { min-width: 0; }
.chap { padding: clamp(80px, 12vh, 140px) 0; border-bottom: 1px solid var(--ink-faint); }
.chap:first-child { padding-top: clamp(40px, 8vh, 80px); }
.chap__meta { color: var(--signal); }
.chap__org { margin-top: 16px; font-size: clamp(44px, 7vw, 120px); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.chap__lede { margin-top: 18px; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; color: var(--paper); }
.chap__story { margin-top: 32px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.chap__story strong { color: var(--paper); font-weight: 500; }

.stairs { margin-top: clamp(36px, 5vw, 64px); display: flex; align-items: flex-end; gap: 6px; }
.step {
  flex: 1 1 0; min-width: 0;
  height: calc(90px + var(--h) * 46px);
  border-top: 2px solid var(--ink-faint);
  background: linear-gradient(180deg, rgba(246,245,241,.06), transparent);
  padding: 14px 14px 0;
  display: flex; flex-direction: column; gap: 6px;
  transform-origin: 50% 100%; transform: scaleY(0);
  transition: transform 1s var(--ease-out); transition-delay: calc(var(--h) * 120ms);
}
.stairs.is-in .step { transform: none; }
.step:last-child { border-top-color: var(--signal); background: linear-gradient(180deg, rgba(61,107,255,.22), transparent); }
.step span { color: var(--signal); }
.step b { font-size: clamp(15px, 1.3vw, 19px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.step small { color: var(--ink-soft); font-family: var(--f-mono); font-size: 11px; }
.stairs--single .step { flex: 0 1 380px; }

.act { margin-top: clamp(48px, 6vw, 80px); }
.act__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink-faint); }
.act__head span { color: var(--signal); }
.act__head h3 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }

.wins { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--ink-faint); border-left: 1px solid var(--ink-faint); }
.wins li { background: var(--ink); border-right: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 10px; transition: background .4s; }
.wins li:hover { background: #141414; }
.wins b { font-size: clamp(40px, 4vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.wins li:hover b { color: var(--signal); }
.wins span { font-size: 15px; line-height: 1.35; color: var(--ink-soft); }
.wins--text b { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.05; }

.stack { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { border: 1px solid var(--ink-faint); border-radius: 99px; padding: 6px 12px; color: var(--ink-soft); text-transform: none; }

.lesson { margin-top: clamp(40px, 5vw, 64px); padding-left: 22px; border-left: 2px solid var(--signal); max-width: 46ch; }
.lesson span { color: var(--signal); }
.lesson p { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; }

.interlude { padding: clamp(48px, 7vh, 80px) 0; border-bottom: 1px solid var(--ink-faint); display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; color: var(--ink-soft); }
.interlude b { color: var(--paper); font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em; }

.kit { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kit__card { border: 1px solid var(--ink-faint); padding: 22px; border-radius: 4px; transition: border-color .4s, transform .6s var(--ease-out); }
.kit__card:hover { border-color: var(--signal); transform: translateY(-4px); }
.kit__card span { color: var(--signal); }
.kit__card b { display: block; margin-top: 10px; font-size: 20px; letter-spacing: -.02em; line-height: 1.15; }
.kit__card p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .rail {
    top: 0; height: auto; z-index: 20;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 calc(var(--gutter) * -1); padding: 64px var(--gutter) 14px;
    background: var(--ink); border-bottom: 1px solid var(--ink-faint);
  }
  .rail__year { font-size: 40px; }
  .rail__list { display: none; }
  .rail__name { display: block; flex: 1; color: var(--paper); }
  .rail__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6px; }
  .stairs { flex-direction: column; align-items: stretch; gap: 8px; }
  .step {
    height: auto; flex: none; padding: 14px 16px;
    margin-left: calc((var(--n, 1) - var(--h)) * 14px);
    transform: scaleX(0); transform-origin: 0 50%;
    border-top: 0; border-left: 2px solid var(--ink-faint);
    background: linear-gradient(90deg, rgba(246,245,241,.06), transparent);
  }
  .step:last-child { border-left-color: var(--signal); background: linear-gradient(90deg, rgba(61,107,255,.22), transparent); }
  .stairs { flex-direction: column-reverse; }
}

/* ==========================================================
   RAILS
   ========================================================== */
.journey { position: relative; }
.journey__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 3vw, 56px);
  align-items: center; padding: 80px var(--gutter) 32px;
}
.loop { position: relative; width: 100%; max-width: min(640px, 76vh); aspect-ratio: 1; justify-self: center; }
.loop svg { width: 100%; height: 100%; overflow: visible; }
.loop__ring { fill: none; stroke: var(--ink-faint); stroke-width: 1.5; }
.loop__trail { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }
.loop__node circle { fill: var(--ink); stroke: var(--ink-soft); stroke-width: 1.5; transition: fill .4s, stroke .4s; }
.loop__node text { fill: var(--ink-soft); font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; transition: fill .4s; }
.loop__node.is-done circle { fill: var(--signal); stroke: var(--signal); }
.loop__node.is-now circle { fill: var(--paper); stroke: var(--signal); stroke-width: 6; }
.loop__node.is-done text, .loop__node.is-now text { fill: var(--paper); }
.loop__packet { fill: var(--signal); filter: drop-shadow(0 0 10px rgba(61,107,255,.9)); }
.loop__center { position: absolute; inset: 26%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; pointer-events: none; }
.loop__id { color: var(--ink-soft); }
.loop__stage { font-size: clamp(26px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.loop__value { color: var(--signal); }

.journey__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.journey__step { color: var(--signal); }
.journey__title { font-size: clamp(30px, 3.6vw, 60px); font-weight: 700; letter-spacing: -.045em; line-height: .95; }
.journey__text { margin-top: 14px; color: var(--ink-soft); max-width: 46ch; font-size: clamp(15px, 1.2vw, 18px); }
.journey__builds { display: flex; flex-wrap: wrap; gap: 8px; }
.journey__builds span { border: 1px solid var(--signal); color: var(--paper); border-radius: 99px; padding: 5px 11px; font-size: 11px; text-transform: none; }
.swap { transition: opacity .35s var(--ease-out), transform .5s var(--ease-out); }
.swap.is-out { opacity: 0; transform: translateY(12px); }

.console {
  border: 1px solid var(--ink-faint); border-radius: 8px; background: #070707;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.6;
  overflow: hidden;
}
.console__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--ink-faint); color: var(--ink-soft); font-size: 11px; }
.console__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); }
.console__bar i:first-child { background: var(--signal); }
.console__bar span { margin-left: 8px; }
.console__body { padding: 12px 14px; height: clamp(150px, 24vh, 230px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.console__line { white-space: pre-wrap; word-break: break-word; color: var(--ink-soft); animation: line-in .5s var(--ease-out); }
.console__line .k { color: var(--paper); }
.console__line .s { color: var(--signal); }
.console__line.is-head { color: var(--paper); margin-top: 6px; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .journey__sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 64px; gap: 10px; }
  .loop { max-width: min(330px, 40vh); }
  .loop__node text { font-size: 18px; }
  .journey__copy { gap: 12px; }
  .journey__title { font-size: clamp(26px, 7.5vw, 36px); }
  .journey__text { font-size: 14px; }
  .console__body { height: clamp(96px, 17vh, 150px); font-size: 11px; }
  .journey__builds span:nth-child(n+4) { display: none; }
}

.layers { padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }
.layers__title { font-size: clamp(38px, 6vw, 100px); font-weight: 700; letter-spacing: -.05em; line-height: .95; max-width: 15ch; }
.layers__title .serif { color: var(--signal); font-weight: 400; }
.layer-stack { margin-top: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 10px; perspective: 1400px; }
.layer {
  display: grid; grid-template-columns: 70px 1fr 1.3fr; gap: 20px; align-items: center;
  padding: 22px 26px; border: 1px solid var(--ink-faint); border-radius: 6px;
  background: linear-gradient(90deg, rgba(61,107,255,calc(var(--l) * .05)), transparent 70%);
  transition: transform .7s var(--ease-out), border-color .4s;
}
.layer:hover { transform: translateX(14px); border-color: var(--signal); }
.layer i { font-style: normal; color: var(--signal); }
.layer b { font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.03em; line-height: 1; }
.layer p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) {
  .layer { grid-template-columns: 40px 1fr; gap: 6px 12px; padding: 18px; }
  .layer p { grid-column: 2; }
}

.receipts-builder { padding: clamp(80px, 12vw, 160px) var(--gutter) 0; }

/* ==========================================================
   PLAYBOOK
   ========================================================== */
.pb-index { list-style: none; margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink-faint); border-left: 1px solid var(--ink-faint); }
.pb-index li { border-right: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); }
.pb-index a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; transition: background .4s, color .4s; height: 100%; }
.pb-index a:hover { background: var(--signal); color: var(--ink); }
.pb-index span { color: var(--signal); transition: color .4s; }
.pb-index a:hover span { color: var(--ink); }
.pb-index b { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.1; }
@media (max-width: 760px) { .pb-index { grid-template-columns: 1fr 1fr; } }

.fw { padding: clamp(96px, 12vw, 170px) var(--gutter) 0; }
.fw__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
@media (max-width: 960px) { .fw__grid { grid-template-columns: 1fr; } }
.fw__no { color: var(--signal); }
.fw__name { margin-top: 14px; font-size: clamp(44px, 6.4vw, 108px); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.fw__hook { margin-top: 16px; font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; color: var(--signal); }
.fw__problem { margin-top: 22px; color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 19px); max-width: 48ch; }
.fw__steps { list-style: none; margin-top: 28px; counter-reset: s; border-top: 1px solid var(--ink-faint); }
.fw__steps li { counter-increment: s; position: relative; display: block; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--ink-faint); font-size: 15px; line-height: 1.45; }
.fw__steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--f-mono); font-size: 12px; color: var(--signal); }
.fw__steps li b { font-weight: 600; color: var(--paper); }
.fw__origin { margin-top: 24px; padding: 16px 18px; border-left: 2px solid var(--signal); background: rgba(61,107,255,.07); font-size: 15px; }
.fw__origin span { display: block; color: var(--signal); margin-bottom: 4px; }

.viz { position: sticky; top: 90px; border: 1px solid var(--ink-faint); border-radius: 10px; padding: clamp(18px, 2vw, 28px); background: #0d0d0d; }
@media (max-width: 960px) { .viz { position: relative; top: 0; } }
.viz__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.viz__note { color: var(--ink-soft); font-size: 10px; }
.toggle { display: inline-flex; border: 1px solid var(--ink-faint); border-radius: 99px; padding: 3px; position: relative; }
.toggle button {
  position: relative; z-index: 1; background: none; border: 0; color: var(--ink-soft); cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 99px; transition: color .3s;
}
.toggle button[aria-pressed="true"] { color: var(--ink); }
.toggle__pill { position: absolute; top: 3px; bottom: 3px; left: 3px; border-radius: 99px; background: var(--signal); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }

.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-faint); border: 1px solid var(--ink-faint); margin-top: 16px; }
.readouts div { background: #0d0d0d; padding: 14px; }
.readouts dt { color: var(--ink-soft); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.readouts dd { margin-top: 6px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readouts dd.good { color: var(--signal); }

/* Leak map */
.leak canvas { width: 100%; height: clamp(300px, 40vw, 440px); display: block; }

/* Signal ladder */
.ladder { display: flex; flex-direction: column-reverse; gap: 10px; }
.rung {
  display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; align-items: center;
  padding: 16px; border: 1px solid var(--ink-faint); border-radius: 6px;
  margin-left: calc(var(--r) * 6%);
  transition: border-color .5s, background .5s, transform .7s var(--ease-out);
  cursor: pointer;
}
.rung i { font-style: normal; grid-row: span 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink-faint); font-family: var(--f-mono); font-size: 12px; transition: background .5s, color .5s, border-color .5s; }
.rung b { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -.02em; }
.rung span { color: var(--ink-soft); font-size: 13.5px; line-height: 1.35; }
.rung.is-lit { border-color: var(--signal); background: rgba(61,107,255,.08); }
.rung.is-lit i { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.ladder__out { margin-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ink-faint); }
.ladder__out b { font-size: clamp(30px, 3vw, 46px); font-weight: 800; letter-spacing: -.05em; color: var(--signal); }

/* Channel truth */
.bars { position: relative; }
.bar { position: absolute; left: 0; right: 0; height: 46px; display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 12px; transition: transform .9s var(--ease-out); }
.bar__name { font-size: 14px; }
.bar__track { display: block; height: 14px; background: rgba(246,245,241,.05); border-radius: 2px; overflow: hidden; }
.bar__fill { display: block; width: 100%; height: 100%; background: var(--paper); transform-origin: 0 50%; transition: transform .9s var(--ease-out), background .5s; }
.bar.is-up .bar__fill { background: var(--signal); }
.bar__val { font-family: var(--f-mono); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .bar { grid-template-columns: 104px 1fr 40px; gap: 8px; } .bar__name { font-size: 12.5px; } }
.truth__insight { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ink-faint); font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; min-height: 3.6em; }

/* Handoff relay */
.relay__track { display: flex; height: 64px; border-radius: 4px; overflow: hidden; gap: 3px; }
.relay__seg { position: relative; flex: var(--d) 1 0; min-width: 0; background: rgba(246,245,241,.08); transition: flex-grow 1s var(--ease-out), background .5s; display: flex; align-items: flex-end; padding: 6px 8px; }
.relay__seg:nth-child(odd) { background: rgba(246,245,241,.13); }
.relay.is-after .relay__seg { background: rgba(61,107,255,.35); }
.relay.is-after .relay__seg:nth-child(odd) { background: rgba(61,107,255,.55); }
.relay__seg span { font-family: var(--f-mono); font-size: 11px; white-space: nowrap; }
.relay__legend { list-style: none; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.relay__legend li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-soft); border-bottom: 1px dashed var(--ink-faint); padding-bottom: 6px; }
.relay__legend b { color: var(--paper); font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.relay__runner { position: relative; height: 26px; margin-bottom: 8px; }
.relay__runner i { position: absolute; top: 6px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 14px var(--signal); animation: run var(--run, 4s) linear infinite; }
@keyframes run { from { left: 0; } to { left: calc(100% - 14px); } }

/* Four moves */
.moves { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.move { border: 1px solid var(--ink-faint); border-radius: 6px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; gap: 8px; transition: border-color .4s, background .4s; cursor: pointer; text-align: left; background: none; color: inherit; font: inherit; }
.move span { color: var(--signal); }
.move b { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; line-height: 1; }
.move p { color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; }
.move[aria-pressed="true"] { border-color: var(--signal); background: rgba(61,107,255,.1); }
.rings { position: relative; height: 180px; margin-top: 16px; display: grid; place-items: center; overflow: hidden; }
.rings i { position: absolute; border-radius: 50%; border: 1px solid var(--signal); width: calc(var(--k) * 70px); aspect-ratio: 1; opacity: 0; transform: scale(.6); transition: opacity .6s, transform .9s var(--ease-out); }
.rings i.is-on { opacity: calc(1.1 - var(--k) * .2); transform: none; }
.rings b { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 20px var(--signal); }
.rings em { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; color: var(--ink-soft); }

/* 90-day rebuild */
.rebuild { position: relative; }
.rebuild__dial { display: flex; align-items: center; gap: 24px; }
.rebuild__ring { width: 140px; height: 140px; flex: none; }
.rebuild__ring circle { fill: none; stroke-width: 6; }
.rebuild__ring .bg { stroke: var(--ink-faint); }
.rebuild__ring .fg { stroke: var(--signal); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.rebuild__day { font-size: clamp(60px, 7vw, 110px); font-weight: 800; letter-spacing: -.06em; line-height: .85; font-variant-numeric: tabular-nums; }
.rebuild__day small { display: block; font-size: 12px; font-family: var(--f-mono); letter-spacing: .04em; color: var(--ink-soft); font-weight: 400; }
.phases { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.phase { border: 1px solid var(--ink-faint); border-radius: 6px; padding: 14px 16px; transition: border-color .4s, background .4s, opacity .4s; opacity: .45; }
.phase span { color: var(--signal); }
.phase b { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 2px; }
.phase p { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }
.phase.is-now { opacity: 1; border-color: var(--signal); background: rgba(61,107,255,.08); }
.phase.is-done { opacity: .8; }
.scrub { width: 100%; margin-top: 16px; accent-color: var(--signal); }

/* Field notes */
.notes { padding: clamp(110px, 14vw, 200px) var(--gutter) 0; }
.notes__grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .notes__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .notes__grid { grid-template-columns: 1fr; } }
.note { perspective: 1200px; min-height: 260px; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 0; }
.note__in { position: relative; width: 100%; height: 100%; min-height: 260px; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.note.is-flipped .note__in { transform: rotateY(180deg); }
@media (hover: hover) { .note:hover .note__in { transform: rotateY(180deg); } }
.note__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.note__front { background: var(--paper); color: var(--ink); }
.note__front b { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.035em; line-height: 1.02; font-weight: 700; }
.note__front span { color: var(--paper-soft); }
.note__back { background: var(--signal); color: var(--ink); transform: rotateY(180deg); }
.note__back p { font-size: 17px; line-height: 1.35; }

/* ==========================================================
   RESUME
   ========================================================== */
.stitch { position: relative; }
.stitch__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.stitch__caption { position: absolute; left: var(--gutter); bottom: 28px; right: var(--gutter); display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.stitch__caption b { color: var(--signal); font-weight: 500; }
.sheet {
  position: absolute; left: 50%; top: 47%; width: 1080px; transform-origin: 50% 50%;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.sheet svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.sheet svg path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 5; opacity: 0; transition: opacity .3s ease; }
.sheet.is-stitched svg path { opacity: 1; transition: opacity .9s ease 1.25s; }
.tile {
  position: relative; z-index: 1;
  background: #121212; border: 1px solid var(--ink-faint); border-radius: 6px;
  padding: 16px 18px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  will-change: transform;
}
.tile span { color: var(--signal); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }
.tile b { font-size: 22px; letter-spacing: -.03em; line-height: 1.05; font-weight: 700; }
.tile p { color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.tile--name { grid-column: span 4; background: var(--paper); color: var(--ink); }
.tile--name b { font-size: 64px; letter-spacing: -.06em; line-height: .9; }
.tile--name p { color: var(--paper-soft); font-size: 15px; }
.tile--photo { grid-column: span 2; background: var(--signal); color: var(--ink); }
.tile--photo span { color: var(--ink); }
.tile--photo b { font-size: 46px; letter-spacing: -.06em; line-height: .9; }
.tile--num b { font-size: 40px; letter-spacing: -.05em; }
.tile--wide { grid-column: span 3; }
.tile--two { grid-column: span 2; }
.tile--org b { font-size: 20px; }

.resume-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 var(--gutter); margin-top: clamp(40px, 6vw, 72px); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 99px; border: 1px solid var(--paper);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  background: none; color: var(--paper); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--solid { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--solid:hover { background: var(--paper); border-color: var(--paper); }

.paper {
  margin: clamp(32px, 5vw, 56px) var(--gutter) 0;
  background: var(--paper); color: var(--ink);
  border-radius: 6px;
  padding: clamp(28px, 5vw, 72px);
  max-width: 1100px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
@media (min-width: 1200px) { .paper { margin-left: auto; margin-right: auto; } }
.paper a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.cv-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding-bottom: 22px; border-bottom: 3px solid var(--ink); }
.cv-head h2 { font-size: clamp(42px, 6vw, 80px); font-weight: 800; letter-spacing: -.06em; line-height: .88; }
.cv-head p { margin-top: 10px; font-size: 16px; }
.cv-contact { list-style: none; text-align: right; font-family: var(--f-mono); font-size: 12px; line-height: 1.8; }
.cv-sec { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--paper-faint); }
.cv-sec:last-child { border-bottom: 0; }
.cv-sec > h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--signal); padding-top: 4px; }
.cv-sum { font-size: 17px; line-height: 1.5; max-width: 70ch; }
.cv-impact { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
.cv-impact b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.cv-impact span { font-size: 13px; color: var(--paper-soft); }
.cv-job + .cv-job { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--paper-faint); }
.cv-job__top { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; }
.cv-job__top h4 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.cv-job__top span { font-family: var(--f-mono); font-size: 11.5px; color: var(--paper-soft); }
.cv-roles { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.cv-roles li { display: flex; justify-content: space-between; gap: 12px; }
.cv-roles li span:last-child { font-family: var(--f-mono); font-size: 11.5px; color: var(--paper-soft); white-space: nowrap; }
.cv-bul { margin-top: 10px; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
.cv-bul li { margin: 3px 0; }
.cv-bul li::marker { color: var(--signal); }
.cv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; font-size: 14.5px; }
.cv-cols div b { display: block; }
.cv-cols div span { font-size: 13px; color: var(--paper-soft); }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tags span { border: 1px solid var(--paper-faint); border-radius: 99px; padding: 4px 10px; font-size: 13px; }
@media (max-width: 700px) {
  .cv-head { grid-template-columns: 1fr; }
  .cv-contact { text-align: left; }
  .cv-sec { grid-template-columns: 1fr; gap: 12px; }
  .cv-impact { grid-template-columns: 1fr 1fr; }
  .cv-cols { grid-template-columns: 1fr; }
  .cv-roles li { flex-direction: column; gap: 0; }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.scope { position: relative; height: clamp(140px, 22vh, 220px); margin: 0 calc(var(--gutter) * -1); border-top: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); }
.scope canvas { width: 100%; height: 100%; display: block; }
.scope__label { position: absolute; left: var(--gutter); top: 12px; color: var(--ink-soft); }
.scope__label b { color: var(--signal); font-weight: 500; }

.cx { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 100px); padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
@media (max-width: 900px) { .cx { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 28px; }
.form fieldset { border: 0; }
.form legend { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--signal); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--ink-faint); border-radius: 99px;
  font-size: 15px; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out);
}
.chip span:hover { border-color: var(--paper); }
.chip input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--ink); transform: translateY(-2px); }
.chip input:focus-visible + span { outline: 2px solid var(--paper); outline-offset: 2px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--ink-faint);
  color: var(--paper); font: inherit; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.02em;
  padding: 26px 0 12px; outline: none; border-radius: 0; resize: vertical;
}
.field textarea { min-height: 130px; line-height: 1.3; }
.field label { position: absolute; left: 0; top: 30px; color: var(--ink-soft); font-size: clamp(18px, 1.8vw, 24px); pointer-events: none; transition: transform .4s var(--ease-out), font-size .4s, color .3s, top .4s var(--ease-out); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font-size: 12px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--signal); }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field textarea + label { top: 30px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; gap: 28px; } }
.form__foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.form__foot p { color: var(--ink-soft); font-size: 14px; max-width: 34ch; }
.transmit { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form__status { color: var(--signal); min-height: 1.4em; }

.lines { display: flex; flex-direction: column; gap: 36px; }
.line-card span { color: var(--signal); }
.line-card a, .line-card b { display: block; margin-top: 8px; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.03em; line-height: 1.1; font-weight: 600; word-break: break-word; }
.line-card a:hover { color: var(--signal); }
.line-card p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.copy { margin-top: 10px; background: none; border: 1px solid var(--ink-faint); color: var(--paper); border-radius: 99px; padding: 7px 14px; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.copy:hover { border-color: var(--paper); }
.copy.is-done { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.reasons { list-style: none; border-top: 1px solid var(--ink-faint); }
.reasons li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--ink-faint); font-size: 16px; }
.reasons li i { font-style: normal; color: var(--signal); font-family: var(--f-mono); font-size: 12px; padding-top: 4px; }

/* ==========================================================
   PRINT — the resume prints as a clean page
   ========================================================== */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body > *:not(main), .grain, .cursor, .progress, .nav, .menu, .wipe { display: none !important; }
  main > *:not(.paper-wrap) { display: none !important; }
  .paper-wrap { display: block !important; }
  .paper-wrap > *:not(.paper) { display: none !important; }
  .paper { background: #fff !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; max-width: none; border-radius: 0; opacity: 1 !important; transform: none !important; }
  .paper [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cv-sec { break-inside: avoid-page; padding: 14px 0; }
  .cv-job { break-inside: avoid; }
  .cv-head h2 { font-size: 44px; }
  .cv-bul, .cv-roles, .cv-cols { font-size: 11.5px; }
  .cv-sum { font-size: 13px; }
  .cv-impact b { font-size: 22px; }
}

@media (max-width: 480px) {
  .move { min-height: 0; padding: 14px; }
  .move p { font-size: 12.5px; }
  .viz { padding: 16px; }
  .readouts dd { font-size: 20px; }
  .readouts div { padding: 10px; }
}

/* ==========================================================
   PROJECTS
   ========================================================== */

.projects { padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }
.proj {
  position: relative; border: 1px solid var(--ink-faint); border-radius: 12px; overflow: hidden; background: #0d0d0d;
  display: flex; flex-direction: column;
  transition: border-color .4s, transform .7s var(--ease-out), opacity .5s;
}
.proj:hover { border-color: rgba(61,107,255,.6); }
.proj.is-live:hover { transform: translateY(-6px); }
.proj--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
@media (min-width: 861px) {
  .proj--flip { grid-template-columns: 1fr 1.15fr; }
  .proj--flip .proj__screen { order: 2; border-right: 0; border-left: 1px solid var(--ink-faint); }
}
@media (max-width: 860px) { .proj--feature { grid-template-columns: 1fr; } }
.proj__link { position: absolute; inset: 0; z-index: 3; }

.proj__screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, rgba(61,107,255,.16), transparent 60%), #080808;
  border-bottom: 1px solid var(--ink-faint);
}
.proj--feature .proj__screen { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--ink-faint); }
@media (max-width: 860px) { .proj--feature .proj__screen { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--ink-faint); } }

.proj__body { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.proj__no { color: var(--signal); }
.proj__status { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--ink-faint); color: var(--ink-soft); }
.proj.is-live .proj__status { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.proj.is-built .proj__status::before { content: '✓'; color: var(--signal); margin-right: 6px; }
.proj__name { font-size: clamp(34px, 4vw, 64px); font-weight: 700; letter-spacing: -.05em; line-height: .92; }
.proj__line { font-family: var(--f-serif); font-style: italic; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.1; color: var(--signal); }
.proj__text { color: var(--ink-soft); font-size: 15.5px; }
.proj__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.proj__stack span { border: 1px solid var(--ink-faint); border-radius: 99px; padding: 4px 10px; font-size: 10.5px; text-transform: none; color: var(--paper); }
.proj__proves { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-faint); font-size: 14.5px; }
.proj__proves span { display: block; color: var(--signal); margin-bottom: 2px; }
.proj__url { color: var(--ink-soft); text-transform: none; font-size: 11px; word-break: break-all; }

/* Screens: each one a small animated mock of the product */
.scr-learn svg { position: absolute; inset: 8% 4% 22%; width: 92%; height: 70%; overflow: visible; }
.scr-learn path { fill: none; stroke-width: 3; stroke-linecap: round; }
.scr-learn__path { stroke: rgba(246,245,241,.12); }
.scr-learn__done { stroke: var(--signal); stroke-dasharray: 800; stroke-dashoffset: 800; animation: learn 6s var(--ease-io) infinite; }
@keyframes learn { 0% { stroke-dashoffset: 800; } 70%, 100% { stroke-dashoffset: 0; } }
.scr-learn__nodes circle { fill: #080808; stroke: var(--signal); stroke-width: 3; }
.scr-learn__labels text { fill: var(--ink-soft); font-family: var(--f-mono); font-size: 13px; text-anchor: middle; }
.scr-learn__card { position: absolute; right: 5%; bottom: 8%; width: min(240px, 46%); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.scr-learn__card span { font-size: 9.5px; color: var(--paper-soft); }
.scr-learn__card b { font-size: 18px; letter-spacing: -.02em; }
.scr-learn__card i { display: block; height: 5px; background: var(--paper-faint); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.scr-learn__card em { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: 0 50%; animation: fillbar 6s var(--ease-io) infinite; }
@keyframes fillbar { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }

.scr-gtm { display: grid; place-items: center; }
.scr-gtm__deck { position: relative; width: 56%; height: 58%; }
.scr-gtm__deck span {
  position: absolute; inset: 0; border-radius: 8px; border: 1px solid rgba(61,107,255,.5);
  background: #111; display: flex; align-items: flex-end; padding: 12px 14px;
  font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: -.02em;
  transform: translate(calc(var(--i) * 10px), calc(var(--i) * -10px));
  transition: transform .8s var(--ease-out), background .4s;
}
.scr-gtm__deck span:last-child { background: var(--signal); color: var(--ink); }
.proj:hover .scr-gtm__deck span { transform: translate(calc((var(--i) - 2.5) * 34px), calc((var(--i) - 2.5) * -8px)) rotate(calc((var(--i) - 2.5) * 4deg)); }

.scr-kiryu { display: grid; grid-template-columns: 1fr 1.2fr; }
.scr-kiryu__space { position: relative; border-right: 1px solid var(--ink-faint); }
.scr-kiryu__space i { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; border-radius: 50%; background: var(--paper); opacity: .55; animation: drift 4s ease-in-out infinite alternate; animation-delay: calc(var(--c) * -1.3s); }
.scr-kiryu__space i.q { background: var(--signal); opacity: 1; width: 12px; height: 12px; box-shadow: 0 0 0 0 rgba(61,107,255,.6); animation: ping 2.4s infinite; }
@keyframes drift { to { transform: translate(6px, -5px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,107,255,.6); } 100% { box-shadow: 0 0 0 26px rgba(61,107,255,0); } }
.scr-kiryu__chat { padding: 8% 7%; display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: 12.5px; line-height: 1.35; }
.scr-kiryu__chat p { border-radius: 10px; padding: 9px 11px; max-width: 95%; }
.scr-kiryu__chat .me { align-self: flex-end; background: #1b1b1b; }
.scr-kiryu__chat .bot { background: rgba(61,107,255,.16); border: 1px solid rgba(61,107,255,.35); }
.scr-kiryu__chat .bot b { display: block; color: var(--signal); font-size: 10px; margin-bottom: 4px; }
.scr-kiryu__chat .bot em { color: var(--signal); font-style: normal; font-size: 10px; }
.scr-kiryu__chat .bot { position: relative; }
.typing { position: absolute; left: 11px; top: 26px; display: inline-flex; gap: 3px; animation: typing-out 6s infinite; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .2; transform: translateY(-2px); } }
.ans { display: inline; animation: answer-in 6s infinite; }
@keyframes typing-out { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes answer-in { 0%, 32% { opacity: 0; } 42%, 100% { opacity: 1; } }

.scr-attr svg { position: absolute; inset: 10% 6%; width: 88%; height: 80%; }
.scr-attr path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; opacity: .7; }
.scr-attr path.w2 { stroke-width: 4; } .scr-attr path.w3 { stroke-width: 6; opacity: 1; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.scr-attr text { fill: var(--ink-soft); font-family: var(--f-mono); font-size: 11px; }
.scr-attr text.rev { fill: var(--paper); }
.scr-attr circle { fill: var(--signal); }




@media (max-width: 480px) {
  .scr-kiryu__chat { font-size: 11px; padding: 6% 5%; gap: 6px; }
  .scr-learn__labels text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ans { opacity: 1; } .typing { display: none; }
  .scr-learn__done { stroke-dashoffset: 0; }
}

.coverage { padding: clamp(96px, 12vw, 170px) var(--gutter) 0; }
.matrix-wrap { margin-top: clamp(32px, 5vw, 64px); overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ink-faint); border-radius: 10px; }
.matrix { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 14px 12px; border-bottom: 1px solid var(--ink-faint); text-align: center; }
.matrix thead th { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 400; }
.matrix tbody th { text-align: left; font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--ink); }
.matrix td { color: var(--signal); font-size: 16px; }
.matrix tbody tr { transition: background .3s; }
.matrix tbody tr:hover { background: rgba(61,107,255,.08); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }

/* generic mini-UI mock for project cards */
.scr-ui { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 7% 9%; }
.scr-ui .r { display: flex; justify-content: space-between; gap: 12px; font: 400 12px var(--f-mono); color: var(--ink-soft); border-bottom: 1px solid var(--ink-faint); padding-bottom: 7px; opacity: 0; animation: uiIn .6s var(--ease-out) forwards; }
.scr-ui .r:nth-child(2) { animation-delay: .15s; } .scr-ui .r:nth-child(3) { animation-delay: .3s; } .scr-ui .r:nth-child(4) { animation-delay: .45s; }
.scr-ui .r b { color: var(--paper); font-weight: 500; white-space: nowrap; } .scr-ui .r.hi b { color: var(--signal); }
@keyframes uiIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scr-ui .r { opacity: 1; animation: none; } }

/* ==========================================================
   CONTACT (v2): you on the left, a bright form on the right
   ========================================================== */
.ct-hero { min-height: auto; padding-bottom: clamp(24px, 4vw, 48px); }
.ct { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: 0 var(--gutter); }
.ct-me { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; max-width: 420px; }
.ct-me picture { display: block; }
.ct-me__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 20px; display: block; filter: saturate(.92); }
.ct-me__id { display: flex; flex-direction: column; gap: 4px; }
.ct-me__id b { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.ct-me__id span { color: var(--ink-soft); }
.ct-me__ex { color: var(--signal) !important; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.ct-me__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-faint); }
.ct-me__links li { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--ink-faint); min-height: 52px; }
.ct-me__links li > span { color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ct-me__links a, .ct-me__links b { font-weight: 500; overflow-wrap: anywhere; }
.ct-me__links a:hover { color: var(--signal); }
.ct-copy { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--ink-faint); background: none; color: var(--paper); font-size: 12px; cursor: pointer; }
.ct-copy:hover { border-color: var(--paper); }

.ct-form { background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(22px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 0 0 1px rgba(61,107,255,.25), 0 40px 120px -40px rgba(61,107,255,.45); }
.ct-form__h h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -.035em; line-height: 1.05; font-weight: 700; }
.ct-form__h p { color: var(--paper-soft); margin-top: 6px; }
.ct-topics { border: 0; margin: 0; padding: 0; }
.ct-topics legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.ct-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-pills label { position: relative; }
.ct-pills input { position: absolute; opacity: 0; pointer-events: none; }
.ct-pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--paper-faint); font-size: 14px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.ct-pills span:hover { border-color: var(--ink); }
.ct-pills input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ct-pills input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-f { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
.ct-f i { font-style: normal; font-weight: 400; color: var(--paper-soft); }
.ct-f input, .ct-f textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--paper-faint); border-radius: 12px; padding: 13px 14px; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.ct-f textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.ct-f input:focus, .ct-f textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(61,107,255,.16); }
.ct-f textarea::placeholder { color: rgba(10,10,10,.38); }
.ct-f.is-bad input, .ct-f.is-bad textarea { border-color: #d23f3f; }
.ct-f.is-bad::after { content: 'Required'; font-weight: 500; font-size: 12.5px; color: #c03030; }
.ct-f.is-bad:has(input[type="email"])::after { content: 'Enter a valid email'; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-send { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--signal); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; transition: background .2s, transform .2s; }
.ct-send i { font-style: normal; font-size: 22px; transition: transform .3s var(--ease-out); }
.ct-send:hover { background: #2f58e6; } .ct-send:hover i { transform: translateX(4px); }
.ct-send:disabled { opacity: .6; cursor: progress; }
.ct-status { min-height: 20px; font-size: 14px; color: var(--paper-soft); }
.ct-status[data-tone="bad"] { color: #c03030; } .ct-status a { color: var(--signal); font-weight: 600; }
.ct-done { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 6vw, 60px) 0; text-align: left; }
.ct-done__tick { width: 56px; height: 56px; border-radius: 50%; background: var(--signal); color: #fff; display: grid; place-items: center; font-size: 26px; animation: ctPop .5s var(--ease-out) both; }
.ct-done h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.ct-done p { color: var(--paper-soft); max-width: 46ch; }
@keyframes ctPop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 900px) {
  .ct { grid-template-columns: minmax(0, 1fr); }
  .ct-form { order: -1; }
  .ct-me { position: static; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
  .ct-me__photo { width: 112px; height: 112px; border-radius: 16px; object-position: 50% 25%; align-self: center; }
  .ct-me__links { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-me__links li { grid-template-columns: 80px 1fr auto; }
  .ct-form { border-radius: 18px; }
}
