/* Kidus Abdula · portfolio v4, graphite and signal lime */
:root {
  --bg: #0a0b0d;
  --surface: #111317;
  --surface-2: #181b20;
  --line: #22262c;
  --line-strong: #343941;
  --text: #e9ecef;
  --muted: #9aa1ab;
  --faint: #6b727c;
  /* --accent is safe for text; --accent-fill is the highlighter, with --accent-ink on top of it. */
  --accent: #c6f24e;
  --accent-fill: #c6f24e;
  --accent-ink: #0b0d06;
  --accent-soft: rgba(198, 242, 78, .07);
  --accent-glow: rgba(198, 242, 78, .55);
  --ok: #3ddc97;
  --dev: #f5a524;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1240px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1f3f5;
  --surface: #fafbfc;
  --surface-2: #e4e7eb;
  --line: #d9dde2;
  --line-strong: #bfc5cc;
  --text: #0d1014;
  --muted: #4b525c;
  --faint: #737a85;
  --accent: #3d6b00;
  --accent-fill: #c6f24e;
  --accent-ink: #0b0d06;
  --accent-soft: rgba(91, 140, 0, .09);
  --accent-glow: rgba(61, 107, 0, .45);
  --ok: #15803d;
  --dev: #b45309;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent-fill); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent-fill); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); transform-origin: 0 50%; transform: scaleX(0); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-family: var(--display); }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--text); color: var(--bg); font: 700 12px var(--mono); transition: transform .4s var(--ease); }
.brand:hover .mark { transform: rotate(-8deg); }
.brand-name { display: none; }
@media (min-width: 420px) { .brand-name { display: inline; } }
nav { margin-left: auto; }
.nav { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a { position: relative; display: block; padding: 6px 12px 6px 18px; text-decoration: none; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav a::before { content: ""; position: absolute; left: 7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::before { transform: scale(1); }
.top-cta { font-size: 14px; text-decoration: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.top-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.theme { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--ease); }
.theme:hover { transform: rotate(25deg); }
.theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateY(2px); }
a.btn[target]:hover .arr { transform: translate(2px, -2px); }
.btn.copied { border-color: var(--ok); color: var(--ok); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

/* Hero */
.hero { position: relative; padding: 36px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: .4; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
/* A second copy of the grid, drawn in the accent and masked to a circle that follows the pointer. */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--accent-glow) 1px, transparent 1px), linear-gradient(90deg, var(--accent-glow) 1px, transparent 1px); background-size: 72px 72px; opacity: 0; transition: opacity .6s; -webkit-mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), #000, transparent 72%); mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), #000, transparent 72%); }
.hero.lit::after { opacity: .55; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 24px; border-bottom: 1px dashed var(--line-strong); }
.status { display: inline-flex; align-items: center; gap: 10px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.clock time { color: var(--text); }
.hero-in { display: grid; gap: 48px; padding: 40px 0 64px; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 56px; padding: 56px 0 88px; } }
.hero-name { display: flex; flex-direction: column; gap: 2px; font: 600 14px var(--mono); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 22px; }
.hero-role { color: var(--muted); font-weight: 400; }
.statement { font: 700 clamp(38px, 9.6vw, 66px)/.98 var(--display); letter-spacing: -.045em; margin-bottom: 28px; }
@media (min-width: 1000px) { .statement { font-size: clamp(42px, 4.1vw, 58px); } }
.statement em { color: var(--accent-ink); background: linear-gradient(var(--accent-fill), var(--accent-fill)) no-repeat 0 55% / 100% 86%; padding: 0 .1em; margin: 0 .02em 0 -.04em; border-radius: .06em; }
.js .statement em { color: var(--text); background-size: 0% 86%; animation: wipe .7s var(--ease) 1.05s forwards; }
@keyframes wipe { to { background-size: 100% 86%; color: var(--accent-ink); } }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }
.js .line > span { transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
.js .hero-name .line:nth-child(2) > span { animation-delay: .08s; }
.js .statement .line:nth-child(1) > span { animation-delay: .16s; }
.js .statement .line:nth-child(2) > span { animation-delay: .26s; }
.js .statement .line:nth-child(3) > span { animation-delay: .36s; }
.js .statement .line:nth-child(4) > span { animation-delay: .46s; }
@keyframes rise { to { transform: none; } }
.lede { max-width: 54ch; color: var(--muted); font-size: 17px; }
.lede strong { color: var(--text); font-weight: 600; }
.js .lede, .js .hero .cta { opacity: 0; animation: fade .9s var(--ease) .6s forwards; }
.js .hero .cta { animation-delay: .72s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.socials { display: flex; gap: 8px; }

/* System diagram */
.system { margin: 0; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .55); }
.js .system { opacity: 0; animation: fade 1s var(--ease) .4s forwards; }
.system-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.system-head span:first-child { color: var(--accent); }
.diagram { display: block; width: 100%; height: auto; }
.diagram-wide { display: none; }
@media (min-width: 600px) { .diagram-tall { display: none; } .diagram-wide { display: block; } }
.dotgrid { fill: var(--line-strong); }
.edges path { fill: none; stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 4 5; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.packets circle { fill: var(--accent); }
.node rect { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.2; }
.node.hot rect { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 9%, var(--bg)); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 35%, transparent)); }
.node text { font: 500 10.5px var(--mono); fill: var(--text); text-anchor: middle; }
.js .node { opacity: 0; animation: pop .7s var(--ease) forwards; animation-delay: calc(var(--d) + .6s); transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.cap { font: 10px var(--mono); fill: var(--faint); letter-spacing: .04em; }
.log { list-style: none; margin: 0; padding: 12px 16px 14px; border-top: 1px solid var(--line); font: 12px/1.75 var(--mono); color: var(--muted); }
.log li { display: flex; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log li span { flex: none; color: var(--accent); width: 70px; }
.log li.new { animation: fade .5s var(--ease); }
.log li:last-child::after { content: "\258D"; color: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

/* Marquee */
.marquee { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 28px; animation: marquee 48s linear infinite; font: 600 clamp(18px, 2.4vw, 26px) var(--display); letter-spacing: -.02em; color: var(--muted); white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee i { font-style: normal; color: var(--accent); font-size: .8em; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* Sections */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section.alt { background: var(--surface); }
.head { margin-bottom: 48px; max-width: 760px; }
.kicker { display: flex; align-items: center; gap: 12px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.kicker span { color: var(--accent); }
.kicker b { font-weight: inherit; }
.kicker::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--line-strong); }
.head h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -.035em; }
.head h2 em, .big-type em { color: var(--accent); }
.head-note { margin-top: 16px; color: var(--muted); max-width: 60ch; }

/* Case studies */
.case { display: grid; gap: 28px; padding: 44px 0; border-top: 1px solid var(--line); }
.head + .case { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .case { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 64px 0; }
  .case.flip .case-shot { order: 2; }
}
.case-shot { position: relative; display: block; border-radius: 14px; border: 1px solid var(--line-strong); overflow: hidden; background: var(--surface-2); text-decoration: none; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), box-shadow .6s var(--ease); box-shadow: 0 24px 60px -36px rgba(0, 0, 0, .5); }
.case-shot:hover { box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .65); }
.chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chrome i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.chrome span { margin-left: 10px; font: 11px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.case-shot:hover img { transform: scale(1.03); }
.case-shot::after { content: "Open site \2197"; content: "Open site \2197" / ""; position: absolute; right: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: var(--accent-fill); color: var(--accent-ink); font: 600 12px var(--mono); letter-spacing: .02em; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.case-shot:hover::after, .case-shot:focus-visible::after { opacity: 1; transform: none; }
.case-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 12px var(--mono); color: var(--faint); }
.case-n { font: 800 44px/.8 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px var(--accent); margin-right: 6px; font-variant-numeric: tabular-nums; }
.yr { margin-left: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); }
.badge.dev { color: var(--dev); }
.case h3 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.035em; }
.case-sub { font: 500 19px/1.4 var(--sans); letter-spacing: -.01em; color: var(--text); opacity: .74; margin: 8px 0 18px; }
.case-body > p:not(.case-sub) { color: var(--muted); }
.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin: 24px 0; padding: 0; counter-reset: f; }
.flow li { display: flex; align-items: center; font: 12px var(--mono); color: var(--text); }
.flow li::before { counter-increment: f; content: counter(f, decimal-leading-zero); color: var(--faint); margin-right: 6px; }
.flow li:not(:last-child)::after { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 10px; background: linear-gradient(90deg, var(--accent) 50%, var(--line-strong) 50%); background-size: 200% 100%; background-position: 100% 0; transition: background-position .6s var(--ease); transition-delay: calc(var(--i) * .15s + .4s); }
.case.shown .flow li:not(:last-child)::after { background-position: 0 0; }
.js .flow li { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * .12s + .2s); }
.js .case.shown .flow li { opacity: 1; transform: none; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 26px; padding: 16px 0; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
.case-facts dt { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 4px; }
.case-facts dd { margin: 0; font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.job { display: grid; gap: 10px; padding: 32px 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .job { grid-template-columns: 200px 1fr; gap: 40px; } }
.when { display: flex; gap: 8px; font: 12px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.when span + span::before { content: "\2192  "; color: var(--line-strong); }
@media (min-width: 820px) { .when { flex-direction: column; gap: 2px; } .when span + span::before { content: none; } }
.job.current .when span:last-child { color: var(--ok); }
.job.current .when span:last-child::after { content: " \25CF"; font-size: 9px; vertical-align: 2px; }
.what h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.at { display: block; margin-top: 6px; font: 500 13px var(--mono); color: var(--accent); letter-spacing: .02em; }
.at::before { content: "@ "; color: var(--faint); }
.where { font-size: 13px; color: var(--faint); margin: 6px 0 12px; }
.what > p:not(.where) { color: var(--muted); max-width: 70ch; }
.bullets { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.bullets li { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 15px; transition: border-color .3s; }
.bullets li:hover { border-color: var(--line-strong); }
.bullets img { width: 88px; height: 55px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.bullets strong { color: var(--text); font-weight: 600; }
.text-link { display: inline-block; margin-top: 12px; font: 13px var(--mono); color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Filters */
.filters { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .filters { flex-wrap: wrap; overflow: visible; } }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 500 13px var(--sans); cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { font: 11px var(--mono); opacity: .6; }

/* Index rows */
.index-head, .row summary { display: grid; grid-template-columns: 30px 1fr 18px; gap: 12px; align-items: center; }
@media (min-width: 760px) { .index-head, .row summary { grid-template-columns: 44px minmax(170px, 1.1fr) 2fr 100px 68px 18px; gap: 20px; } }
.index-head { padding: 10px 0; border-bottom: 1px solid var(--line-strong); font: 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.index-head span:nth-child(3), .index-head span:nth-child(4), .index-head span:nth-child(5) { display: none; }
@media (min-width: 760px) { .index-head span:nth-child(n) { display: block; } }
.rows { list-style: none; margin: 0; padding: 0; position: relative; z-index: 0; }
.row { border-bottom: 1px solid var(--line); }
.row[hidden] { display: none; }
.row.in { animation: fade .5s var(--ease); }
.row summary { list-style: none; cursor: pointer; padding: 18px 0; position: relative; transition: padding .35s var(--ease); }
.row summary::-webkit-details-marker { display: none; }
.row summary::before { content: ""; position: absolute; inset: 0 -12px; background: var(--accent-soft); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); z-index: -1; border-radius: 8px; }
.row summary:hover::before, .row details[open] summary::before { transform: scaleY(1); }
@media (hover: hover) and (min-width: 760px) { .row summary:hover { padding-left: 10px; } }
.r-n { font: 12px var(--mono); color: var(--faint); }
.r-name { font: 600 18px/1.25 var(--display); letter-spacing: -.02em; }
@media (min-width: 760px) { .r-name { font-size: 22px; } }
.r-sub { display: none; color: var(--muted); font-size: 14px; }
.r-cat, .r-yr { display: none; font: 12px var(--mono); color: var(--faint); }
@media (min-width: 760px) { .r-sub, .r-cat, .r-yr { display: block; } }
.r-x { justify-self: end; width: 14px; height: 14px; position: relative; }
.r-x::before, .r-x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--muted); transition: transform .35s var(--ease); }
.r-x::after { transform: rotate(90deg); }
details[open] .r-x::after { transform: rotate(0); }
details[open] .r-name { color: var(--accent); }
.r-body { display: grid; gap: 18px; padding: 8px 0 28px; }
@media (min-width: 760px) { .r-body { grid-template-columns: 300px 1fr; gap: 28px; padding-left: 64px; } }
details[open] .r-body { animation: fade .45s var(--ease); }
.r-body > img, .r-body > .art { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); }
.r-body p { color: var(--muted); max-width: 64ch; }
.art { display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 40% 24%), hsl(calc(var(--h) + 40) 40% 11%)); font: 600 20px var(--display); color: #f2f0ea; letter-spacing: -.02em; }
.r-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.r-links a { font: 13px var(--mono); color: var(--accent); text-decoration: none; }
.r-links a::after { content: " \2197"; }
.r-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; }
.tags li { font: 11px var(--mono); padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

/* Cursor preview */
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.9) rotate(-2deg); transition: opacity .25s, transform .3s var(--ease); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); background: var(--surface-2); }
.peek.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(-2deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (hover: none), (max-width: 759px) { .peek { display: none; } }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { background: var(--surface); padding: 32px; transition: background .3s; }
.principles li:hover { background: var(--bg); }
.p-n { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--accent); padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; margin-bottom: 20px; transition: background .3s, color .3s, border-color .3s; }
.principles li:hover .p-n { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.principles h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.principles p { color: var(--muted); }

/* About */
.about { display: grid; gap: 48px; }
@media (min-width: 960px) { .about { grid-template-columns: 360px 1fr; gap: 72px; align-items: start; } }
.portrait { margin: 0; max-width: 420px; }
@media (min-width: 960px) { .portrait { position: sticky; top: 100px; } }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; filter: grayscale(.3); transition: filter .6s; }
.portrait:hover img { filter: none; }
.portrait figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: 12px var(--mono); color: var(--muted); }
.now-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.about-lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; margin-bottom: 36px; letter-spacing: -.01em; }
.facts { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.facts li { padding: 20px 12px 20px 0; }
.facts li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.facts strong { display: block; font: 700 clamp(30px, 4vw, 44px)/1 var(--display); letter-spacing: -.04em; margin-bottom: 8px; }
.facts span { font-size: 13px; color: var(--muted); display: block; line-height: 1.4; }
.skill { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px dashed var(--line-strong); }
@media (min-width: 640px) { .skill { grid-template-columns: 180px 1fr; gap: 20px; } }
.skill h3 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); padding-top: 4px; }
.skill p { color: var(--muted); font-size: 15px; }
.langs { margin-top: 20px; font: 12px var(--mono); color: var(--faint); }

/* Contact */
.contact { border-bottom: 0; }
.big-type { font: 700 clamp(44px, 8.4vw, 110px)/.95 var(--display); letter-spacing: -.05em; max-width: 14ch; margin-bottom: 48px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.mail { position: relative; font: 600 clamp(20px, 3.4vw, 36px) var(--display); letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; }
.mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.mail:hover::after { transform: scaleX(1); transform-origin: left; }
.mail span { color: var(--accent); }
.contact-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.contact-list a { font: 13px var(--mono); color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a:hover { color: var(--text); }
.contact-note { margin-top: 20px; color: var(--faint); font-size: 14px; }

/* Footer */
.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--faint); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .flow li { opacity: 1; transform: none; }
  .js .line > span { transform: none; }
  .js .lede, .js .hero .cta, .js .system, .js .node { opacity: 1; }
  .packets, .dot::after { display: none; }
  .marquee-track { animation: none; }
  .case-shot { transform: none !important; }
  .hero::after { display: none; }
  .case .flow li:not(:last-child)::after { background-position: 0 0; }
}

/* Phone refinements */
@media (max-width: 759px) {
  .row summary { grid-template-rows: auto auto; row-gap: 2px; }
  .r-n { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 5px; }
  .r-name { grid-column: 2; grid-row: 1; }
  .r-sub { display: block; grid-column: 2; grid-row: 2; font-size: 13px; line-height: 1.4; }
  .r-x { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 559px) {
  .bullets li { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 959px) {
  .portrait { max-width: 320px; }
  .portrait img { aspect-ratio: 4 / 5; object-position: center 30%; }
}
