/* ijidakinro.com · black, white, and motion that earns its place */
:root {
  --bg: #ffffff;
  --bg-2: #f6f6f5;
  --ink: #0b0b0b;
  --ink-2: #3a3a3a;
  --muted: #737373;
  --line: #e7e7e5;
  --line-2: #d6d6d3;
  --card: #ffffff;
  --live: #16a34a;
  --octo-eye: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --bg-2: #121212; --ink: #f2f2f0; --ink-2: #c9c9c6; --muted: #8d8d89;
    --line: #222220; --line-2: #33332f; --card: #101010; --octo-eye: #0a0a0a;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-2: #121212; --ink: #f2f2f0; --ink-2: #c9c9c6; --muted: #8d8d89;
  --line: #222220; --line-2: #33332f; --card: #101010; --octo-eye: #0a0a0a;
  --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.label .n { color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* progress line */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; font-size: 15px; }
.brand svg { width: 30px; height: 30px; color: var(--ink); transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 4px; }
.nav a { font-size: 14px; color: var(--ink-2); padding: 7px 11px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--bg-2); }
.actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); background: var(--bg-2); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .sun { display: none; }
  :root:not([data-theme="light"]) .icon-btn .moon { display: block; }
}
.menu-btn { display: none; }
.mnav { border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mnav a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 500; letter-spacing: -.005em;
  border: 1px solid var(--ink); transition: transform .35s var(--ease), background .2s, color .2s, box-shadow .3s;
  will-change: transform;
}
.btn:hover { box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--bg-2); box-shadow: none; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 6px 12px 6px 10px;
  border: 1px solid var(--line); border-radius: 999px; margin-bottom: 26px; background: var(--card);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); position: relative; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--live); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.hero h1 {
  font-size: clamp(42px, 6.6vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 600; margin: 0 0 26px;
}
.hero h1 .serif { font-weight: 400; letter-spacing: -.02em; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; max-width: 12.5em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.05s var(--ease) var(--d, 0ms); }
.ready .hero h1 .w > span { transform: none; }
.who { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.who b { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.who span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 600px; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.fade { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }
.ready .fade { opacity: 1; transform: none; }

.octo-stage { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%; }
.octo-stage::before {
  content: ""; position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--bg-2), transparent 72%); z-index: -1;
}
.octo { width: 100%; height: 100%; color: var(--ink); cursor: pointer; animation: bob 7s ease-in-out infinite; overflow: visible; }
.octo .tilt { transition: transform 1.2s var(--ease); transform-origin: 50% 40%; }
.octo .arm { animation: sway 5.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -0.65s); }
.octo .arm:nth-child(even) { animation-duration: 6.1s; }
.octo.wave .arm { animation: wave .9s var(--ease) 1; animation-delay: calc(var(--i) * .05s); }
.octo .white { fill: var(--bg); }
.octo .pupil { fill: var(--ink); transition: transform .25s var(--ease); }
.octo .eye { transform-box: fill-box; transform-origin: center; animation: blink 6.5s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes wave { 0% { transform: rotate(0); } 35% { transform: rotate(-14deg); } 70% { transform: rotate(10deg); } 100% { transform: rotate(0); } }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.octo-note {
  position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: .08em; white-space: nowrap; opacity: .9;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 56px; }
.stat { padding: 22px 20px 22px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.035em; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; max-width: 420px; }

/* marquee */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 42px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.marquee span::before { content: "◦"; margin-right: 42px; color: var(--line-2); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding: 104px 0 0; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
#system .head-row .sub { max-width: 640px; }
h2 { text-wrap: balance; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0; max-width: 760px; }
h2 .serif { font-weight: 400; }
.sub { color: var(--ink-2); max-width: 520px; margin: 0; font-size: 16.5px; }
h3 { font-size: 19px; letter-spacing: -.02em; margin: 0 0 6px; font-weight: 600; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .fade { opacity: 1; transform: none; }
.no-js .hero h1 .w > span { transform: none; }

/* lanes */
.lanes { border: 1px solid var(--line); border-radius: 22px; padding: 10px; background: var(--card); }
.seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-2); border-radius: 14px; padding: 4px; }
.seg button { position: relative; z-index: 1; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); transition: transform .55s var(--ease), width .55s var(--ease); }
.lane-panels { position: relative; }
.lane { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 34px 26px 26px; }
.lane[hidden] { display: none; }
.lane.enter { animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lane p.pitch { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 14px; }
.lane .for { color: var(--muted); font-size: 14.5px; margin: 0; }
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.proof li { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); }
.proof li b { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* octopus aside */
.why { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; margin-top: 28px; padding: 26px 28px; border-radius: 22px; background: var(--bg-2); }
.why svg { width: 110px; height: 110px; color: var(--ink); }
.why p { margin: 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; letter-spacing: -.015em; }
.why small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; letter-spacing: 0; }

/* ---------- system map ---------- */
.switch { display: inline-flex; position: relative; background: var(--bg-2); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.switch button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: var(--muted); transition: color .3s; white-space: nowrap; }
.switch button[aria-pressed="true"] { color: var(--bg); }
.switch .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--ink); transition: transform .55s var(--ease), width .55s var(--ease); }
.map-card { border: 1px solid var(--line); border-radius: 22px; background: var(--card); padding: 30px 26px 26px; position: relative; overflow: hidden; }
.map-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 22px 22px; opacity: .55; pointer-events: none; mask-image: linear-gradient(#000, transparent 85%); }
.map { position: relative; }
.map svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.wires path { fill: none; stroke: var(--line-2); stroke-width: 1.2; }
.wires path.hot { stroke: var(--ink); stroke-width: 1.4; }
.wires circle { fill: var(--ink); }
.cols { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; align-items: center; min-height: 340px; }
.col { display: grid; gap: 10px; }
.node {
  position: relative; text-align: left; width: 100%; padding: 12px 13px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line-2); transition: border-color .3s, transform .4s var(--ease), box-shadow .3s, background .3s;
}
.node:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.node.on { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent), var(--shadow); }
.node .k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.node .t { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.node .p { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.node.small { padding: 9px 11px; }
.node.small .t { font-size: 13px; }
.node .swap { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.map.switching .node .swap { opacity: 0; filter: blur(3px); }
.node.ghost { opacity: .35; }
.detail { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); min-height: 112px; }
.detail .who .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.detail .who h3 { margin-top: 6px; font-size: 22px; }
.detail .body { font-size: 16px; color: var(--ink-2); }
.detail .body p { margin: 0 0 8px; }
.detail .body .lesson { color: var(--ink); }
.detail .body .lesson::before { content: "Learned → "; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.detail.swapping .who, .detail.swapping .body { opacity: 0; transform: translateY(6px); }
.detail .who, .detail .body { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.map-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted); }
.map-foot .keys { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- platforms ---------- */
.plats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plat {
  position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 20px; background: var(--card);
  display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: border-color .3s, transform .5s var(--ease);
}
.plat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--ink) 7%, transparent), transparent 45%);
}
.plat:hover { border-color: var(--line-2); transform: translateY(-3px); }
.plat:hover::after { opacity: 1; }
.plat .role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plat h3 { font-size: 20px; margin: 4px 0 0; }
.plat .found { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.plat .rule { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; }
.plat .rule b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: 4px; }

/* ---------- experiments ---------- */
.log { border-top: 1px solid var(--line); }
.exp { display: grid; grid-template-columns: 70px 1.5fr 170px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.exp .id { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.exp h3 { font-size: 20px; }
.exp .broke { color: var(--muted); font-size: 14.5px; margin: 0; }
.exp .big { font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.exp .big small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 6px; line-height: 1.35; }
.exp .fix { font-size: 15px; margin: 0; }
.exp .fix::before { content: "Now"; display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bars { display: grid; gap: 6px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 54px 1fr 48px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.bar i { display: block; height: 8px; border-radius: 99px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.bar i.old { background: var(--line-2); }
.in .bar i { transform: scaleX(var(--w)); }

/* ---------- work ---------- */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row > button {
  width: 100%; display: grid; grid-template-columns: 1.3fr 1.6fr 190px 32px; gap: 20px; align-items: center; text-align: left;
  padding: 22px 6px; transition: padding .4s var(--ease), background .3s;
}
.row:not(.open) > button:hover { padding-left: 16px; background: var(--bg-2); }
.row.open > button { background: var(--bg-2); }
.row.open .more { background: var(--bg-2); }
.row .name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.row .what { color: var(--ink-2); font-size: 15px; }
.row .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.row .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s, color .3s; }
.row.open .plus { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.row .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.row.open .more { grid-template-rows: 1fr; }
.row .more > div { overflow: hidden; }
.row .inner { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; padding: 4px 6px 28px; }
.row .side { display: grid; gap: 16px; align-content: start; }
.case { margin: 0; display: grid; gap: 12px; max-width: 760px; }
.case > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.case dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.case dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.confirm { display: inline-block; margin: 2px 0; padding: 2px 8px; border: 1px dashed var(--line-2); border-radius: 6px; font-size: 13px; color: var(--muted); font-family: var(--mono); }
.row .inner p { margin: 0; color: var(--ink-2); font-size: 15px; }
.row .chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.row .go { font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; justify-self: start; align-self: start; }
.row .go:hover { border-color: var(--ink); }
.exp .broke::before { content: "Why"; display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.exp .fix { margin-top: 8px; }
.exp .broke { margin: 0; }
/* featured case study */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px; background: var(--card); }
.feature .case { gap: 16px; }
.feature .case dd { font-size: 16px; }
.feature-side { display: grid; gap: 14px; align-content: start; min-width: 0; }
.feature-side .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-side .chip { white-space: normal; }
.feature-stat { padding: 18px 18px 16px; border-radius: 16px; background: var(--bg-2); }
.feature-stat b { display: block; font-size: 30px; letter-spacing: -.035em; line-height: 1.05; }
.feature-stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
/* the lab */
.lab-why { margin: 0 0 18px; }
.lessons { margin-top: 44px; }
.lessons-title { font-size: 22px; margin-bottom: 14px; }
.notes { margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.notes summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; letter-spacing: -.01em; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; font-weight: 400; color: var(--muted); }
.notes[open] summary::after { content: "−"; }
.notes summary .muted { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 14px; }
.notes .plats { padding: 0 14px 14px; }
/* contact extras */
.ninety { max-width: 900px; margin: 44px auto 0; text-align: left; }
.ninety-title, .roles-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 0 0 14px; }
.ninety ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ninety li { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 14.5px; color: var(--ink-2); background: var(--card); }
.ninety li b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.roles-label { margin-top: 34px; }
.roles { margin-top: 0; }
.links { display: grid; gap: 10px; justify-items: start; }
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px auto 0; max-width: 720px; }

/* ---------- experience ---------- */
.xp { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.job { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.job .when { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.job h3 { font-size: 17px; margin: 0; }
.job .org { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }
.job p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.job a { border-bottom: 1px solid var(--line-2); }
.job a:hover { border-color: var(--ink); }
.edu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.edu .chip { white-space: normal; }

/* ---------- about + contact ---------- */
.about { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.about img { width: 200px; height: 200px; object-fit: cover; border-radius: 24px; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease); }
.about img:hover { filter: none; }
.about p { margin: 0 0 12px; font-size: 18px; color: var(--ink-2); max-width: 680px; }
.about p.big { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -.025em; color: var(--ink); }
.contact { margin: 110px 0 0; padding: 64px 0; border-top: 1px solid var(--line); text-align: center; }
.contact h2 { margin: 0 auto 18px; }
.contact .sub { margin: 0 auto 28px; }
.contact .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .plats { grid-template-columns: 1fr 1fr; }
  .exp { grid-template-columns: 56px 1fr 150px; }
  .exp .fix { grid-column: 2 / -1; }
  .cols { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .top .btn { display: none; }
  .hero { padding-top: 40px; }
  .hero .grid { grid-template-columns: 1fr; }
  .octo-stage { justify-self: start; max-width: 190px; order: -1; margin: 0 0 4px -14px; }
  .octo-note { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg .pill { display: none; }
  .seg button[aria-selected="true"] { background: var(--card); box-shadow: var(--shadow); }
  .lane { grid-template-columns: 1fr; gap: 22px; padding: 26px 14px 14px; }
  .why { grid-template-columns: 1fr; text-align: left; padding: 22px; }
  .why svg { width: 72px; height: 72px; }
  .cols { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .col.arms { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; gap: 10px; }
  .plats { grid-template-columns: 1fr; }
  .exp { grid-template-columns: 1fr; gap: 10px; }
  .exp .fix { grid-column: auto; }
  .row > button { grid-template-columns: 1fr 28px; gap: 6px 14px; }
  .row .what { grid-column: 1; grid-row: 2; font-size: 14.5px; }
  .row .tag { display: none; }
  .row .plus { grid-column: 2; grid-row: 1 / 3; }
  .row .inner { grid-template-columns: 1fr; gap: 14px; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 22px 18px; }
  .ninety ol { grid-template-columns: 1fr; }
  .notes summary .muted { display: none; }
  .switch { width: 100%; }
  .switch button { flex: 1; padding: 0 8px; font-size: 12.5px; }
  .case > div { grid-template-columns: 1fr; gap: 2px; }
  .xp { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about img { width: 120px; height: 120px; }
  section.block { padding-top: 80px; }
  .map-card { padding: 22px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .fade { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
}
