

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("assets/fonts/inter-tight-latin.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/jetbrains-mono-500-latin.woff2") format("woff2"); }

:root,
[data-theme="dark"] {
  --bg: #161412; --surface: #1F1C19; --surface-2: #27231F;
  --border: #2E2A26; --border-strong: #403A34;
  --text: #EDE6DA; --muted: #A39A8C;
  --accent: #E8643C; --accent-soft: rgba(232, 100, 60, .12); --on-accent: #161412;
  --scrim: rgba(10, 9, 8, .66);
  --ok: #8FBF7F;
  --lift: none;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F6F2EA; --surface: #FFFFFF; --surface-2: #EFE9DE;
  --border: #D6CCBA; --border-strong: #BFB29C;
  --text: #1C1A17; --muted: #6B645A;
  --accent: #AB411E; --accent-soft: rgba(171, 65, 30, .10); --on-accent: #FFFFFF;
  --scrim: rgba(28, 26, 23, .42);
  --ok: #3C7432;
  --lift: 0 1px 2px rgba(28, 26, 23, .05), 0 8px 22px -12px rgba(28, 26, 23, .16);
  color-scheme: light;
}
:root {
  --f-body: Inter, system-ui, sans-serif;
  --f-head: "Inter Tight", Inter, system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r-card: 18px; --r-inner: 12px;
  --gutter: max(20px, 4vw);
  --sec-gap: max(96px, 8vw);
  --dock-pad: 96px;
}

html:not(.wip) [data-wip] { display: none !important; }
html.wip [data-p1] { display: none !important; }
html.wip [data-wip] { outline: 1px dashed var(--accent); outline-offset: 6px; }
html.wip body::after { content: "WIP view"; position: fixed; z-index: 99; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 500 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip:focus { top: 12px; color: var(--on-accent); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

.mono, .label {
  font-family: var(--f-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.label--accent { color: var(--accent); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--accent); }
.h-sec {
  margin-top: 12px; font-family: var(--f-head); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance;
}
.h-sec .serif { font-size: 1.08em; }
.lead { font-size: 17px; color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.prose { text-wrap: pretty; }

@media (min-width: 760px) {
  .prose { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: wrap; }
}

.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text); white-space: nowrap;
}
.pill { padding: 6px 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; font-weight: 500; }
.tag { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--text); color: var(--text); }

.btn--primary { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.btn--primary:hover { color: var(--bg); border-color: var(--text); filter: brightness(.9); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn .ico { width: 18px; height: 18px; }
.link-accent { color: var(--accent); font-weight: 500; }
.link-accent:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tagline-mono { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); padding-top: 20px; padding-bottom: var(--dock-pad); }
.wrap:has(> .case-head) { padding-top: 0; }
.section { padding-top: var(--sec-gap); }
.sec-head { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.sec-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); }

.card, .cred, .env-net, .idm, .ladder details { box-shadow: var(--lift); }
a.card:hover, .card--link:hover { border-color: var(--border-strong); color: var(--text); }

.ph {
  border-radius: var(--r-inner); border: 1px solid var(--border);
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, var(--surface) 10px 20px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.media { border-radius: var(--r-inner); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento > * { min-width: 0; }
.b-intro, .b-status, .b-latest { grid-column: span 2; }
.b-intro { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.b-intro h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: .92; letter-spacing: -.03em; }
.b-intro .tagline { margin-top: 22px; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.18; letter-spacing: -.015em; max-width: 26ch; text-wrap: pretty; }
.b-intro .tagline .serif { font-size: 1.14em; }
.b-intro .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.b-intro .roles { font-size: 15px; color: var(--muted); }
.b-intro .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b-status { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.b-status .head { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }
.b-status .statement { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.25; letter-spacing: -.015em; text-wrap: pretty; }
.b-status .now { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.b-status .now p { font-size: 15px; line-height: 1.45; }
.b-stat, .b-creds { padding: 20px; min-height: 170px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; border-radius: var(--r-card); }
.b-stat { color: var(--text); }
.b-stat .big-num { color: var(--accent); }
.big-num { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.75rem, 4.4vw, 4rem); line-height: .9; letter-spacing: -.04em; }
.b-stat .big-num, .b-creds .big-num { margin-top: 22px; }
.b-stat p, .b-creds p { align-self: end; margin-top: 12px; font-size: 14px; line-height: 1.4; font-weight: 500; }
.b-creds { color: var(--text); }
.b-stat p, .b-creds p { color: var(--muted); }
.badge-row { display: flex; gap: 5px; }
.badge-row .tip { display: block; width: min(28px, calc((100% - 15px) / 4)); }
.badge-row img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.b-latest { padding: 18px; display: flex; flex-direction: column-reverse; gap: 18px; color: var(--text); }
.b-latest:hover { border-color: var(--accent); }
.b-latest .body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 4px; }
.b-latest .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b-latest h2 { margin-top: 4px; font-family: var(--f-head); font-weight: 700; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; text-wrap: pretty; }
.b-latest .line { font-size: 15px; line-height: 1.5; color: var(--muted); }
.b-latest .arrow { margin-top: auto; font-size: 20px; line-height: 1; color: var(--accent); }
.b-latest .thumb { aspect-ratio: 16 / 10; width: 100%; }

.b-case { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 10px; align-content: start; }
.b-case .body { display: contents; }
.b-case .thumb { order: -1; margin-bottom: 8px; }
.b-case .meta, .b-case h2, .b-case .line, .b-case .go { padding-inline: 4px; }
.b-latest.b-case .go { margin-top: 6px; padding-bottom: 4px; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
.thumb--c2 img { transform: scale(1.25); transform-origin: left bottom; }

.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 64px; }
.about .h-sec { max-width: 12ch; }
.about .body { display: flex; flex-direction: column; gap: 28px; padding-top: 6px; }
.about .body > p { font-size: 19px; line-height: 1.6; }
.focus { display: flex; flex-wrap: wrap; gap: 8px; }
.facts { border-left: 1px solid var(--border); padding-left: 24px; display: flex; flex-direction: column; gap: 20px; }
.facts dd { margin-top: 6px; font-size: 16px; line-height: 1.5; }
.facts .sub { color: var(--muted); }

.exp-h { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; max-width: 26ch; text-wrap: balance; margin-top: 12px; }
.timeline > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 36px; }
.timeline .when-rail { display: none; }
.timeline .when { margin-bottom: 6px; color: var(--text); }
.timeline .item { position: relative; border-left: 1px solid var(--border-strong); padding: 0 0 72px 28px; }
.timeline li:last-child .item { border-left-color: transparent; padding-bottom: 0; }
.timeline .pin { position: absolute; left: -6px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline .pin--muted { background: var(--muted); box-shadow: none; }
.timeline .pin--next { left: -7px; top: 7px; width: 13px; height: 13px; border: 2px solid var(--accent); background: var(--bg); box-shadow: none; }
.when--muted { color: var(--muted) !important; }
.when--accent { color: var(--accent) !important; }
.timeline h3 { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.timeline .org { margin-top: 4px; color: var(--muted); font-size: 15px; }
.timeline .next { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.3; letter-spacing: -.015em; }
.groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 48px; margin-top: 28px; }
.group-h { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.dash-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.55; }
.dash-list li { position: relative; padding-left: 20px; }
.dash-list li::before { content: "\203A"; position: absolute; left: 2px; top: 0; font-family: var(--f-mono); font-weight: 500; color: var(--accent); }
.timeline .tags { margin-top: 28px; }
.timeline .tags--tight { margin-top: 20px; }

.work-list { display: flex; flex-direction: column; gap: 12px; }
.work-card { position: relative; display: flex; flex-direction: column; color: var(--text); }
.work-card:hover { border-color: var(--border-strong); }
.work-card .media-box { margin: 12px; aspect-ratio: 16 / 10; position: relative; }
.work-card .media-box > .ph, .work-card .media-box > .media { position: absolute; inset: 0; }
.work-card .body { flex: 1 1 0; min-width: 0; padding: 6px 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.work-card .meta { display: flex; align-items: center; gap: 12px; }
.work-card .id { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.work-card h3 { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.work-card .outcome { font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.work-card .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 2px; font-weight: 500; font-size: 15px; }
.work-card .links a { position: relative; z-index: 2; }
.work-card .links .ext { color: var(--text); }
.work-card .links .ext:hover { color: var(--accent); }

.work-card .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.work-card .links .stretch { position: static; }
.work-sub { margin: 36px 0 14px; }
.caselets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.caselets .work-card .body { padding: 6px 20px 24px; justify-content: flex-start; }
.caselets .work-card .media-box { aspect-ratio: 16 / 9; }
.caselets .work-card .links { margin-top: auto; padding-top: 2px; }

.ledger-label { margin-bottom: 12px; }
.creds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cred { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.cred--anchor { border-color: var(--accent); }
.cred__media { grid-row: 1 / span 2; display: grid; place-items: center; }
.cred__media img { width: 68px; height: 68px; object-fit: contain; }
.cred__body { align-self: end; }
.cred__name { font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.35; }
.cred__issuer { display: none; }
.cred__issuer-inline { display: inline; }
.cred__meta { align-self: start; margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cred__meta .lane { display: none; }
.lane { order: -1; display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.lane::before { content: ""; flex: none; width: 5px; height: 5px; background: currentColor; }
.lane--sec::before { transform: rotate(45deg); }
.verify { color: var(--accent); }
.verify:hover { color: var(--text); text-decoration: underline; }
.creds-all { margin-top: 18px; font-size: 14px; }
.creds-all a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.creds-all a:hover { color: var(--text); }
.skills { margin-top: 80px; }
.skills-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.skills-head h3 { font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.filters { display: none; flex-wrap: nowrap; gap: 2px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; width: 100%; }
.js .filters { display: flex; }
.filters button { flex: 1 1 auto; height: 34px; padding: 0 10px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; cursor: pointer; }
.filters button:hover { color: var(--text); }
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg); }

@media (max-width: 759px) {
  .js .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; border: 0; border-radius: 0; }
  .filters button { height: 40px; border: 1px solid var(--border-strong); background: var(--surface-2); }
  .filters button[aria-selected="true"] { border-color: var(--text); }
  .filters button:first-child { grid-column: 1 / -1; }
}
.skill-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 32px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.skill-row .label { padding-top: 0; }
.tool-list, .practice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 15px 0 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; }
.tool--text { padding-left: 15px; }
.tool img { width: 20px; height: 20px; }
.tool .mask { width: 20px; height: 20px; background: var(--text); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.tool .ico { width: 20px; height: 20px; color: var(--muted); }
.practice { display: flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; font-weight: 500; }
[data-hidden="true"] { display: none !important; }

.contact { padding-bottom: 72px; }
.contact-body { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(40px, 5vw, 64px); }
.h-contact { font-family: var(--f-head); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: .95; letter-spacing: -.03em; }
.contact-lead { margin-top: 24px; font-size: 18px; max-width: 46ch; }
.email-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; }
.email { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.35rem, 3.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.copy-btn .on { display: none; }
.copy-btn.copied .on { display: inline; }
.copy-btn.copied .off { display: none; }
.profiles { margin-top: 32px; display: flex; justify-content: center; gap: 10px; }
.profiles a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text); }
.profiles a:hover { border-color: var(--accent); color: var(--text); }
.recruiters { margin-top: 64px; width: 100%; text-align: left; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.recruiters > div { background: var(--bg); padding: 18px 20px; }
.recruiters dd { margin-top: 6px; font-size: 15px; line-height: 1.45; }

.site-foot {
  border-top: 1px solid var(--border); padding: 28px 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  font-size: 14px; color: var(--muted);
}
.motto { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.motto span { color: var(--accent); }

.site-foot .motto { padding-left: .08em; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-foot nav a { color: var(--muted); }
.site-foot nav a:hover { color: var(--text); }

.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; }
.dock .bar {
  display: flex; align-items: center; gap: 2px; padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px 18px 0 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.dock a {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 52px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 11px; line-height: 1; white-space: nowrap;
}
.dock a:hover { color: var(--text); }
.dock a[aria-current] { background: var(--accent-soft); color: var(--accent); }
.dock .sep { flex: none; width: 1px; height: 24px; background: var(--border); margin: 0 4px; }
.theme-btn { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { color: var(--text); background: var(--surface-2); }
.theme-btn .i-moon { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-moon { display: block; }

.to-top {
  position: fixed; z-index: 29; right: max(16px, 2vw); bottom: 88px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

@media (min-width: 760px) {
  :root { --dock-pad: 112px; }
  .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cred { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding: 12px 12px 20px; border-radius: 16px; }
  .cred__media { height: 172px; border-radius: 10px; background: var(--bg); }
  .cred__media img { width: 128px; height: 128px; }
  .cred__body { padding: 0 10px; align-self: stretch; }
  .cred__name { font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
  .cred__issuer { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
  .cred__issuer-inline { display: none; }
  .cred__meta { align-self: stretch; justify-content: space-between; margin: auto 10px 0; padding-top: 14px; border-top: 1px solid var(--border); }
  .cred__meta .lane { display: inline-flex; position: absolute; top: 20px; right: 20px; height: 22px; padding: 0 8px; gap: 6px; font-size: 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); }
  .wrap { padding-top: 32px; }
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .b-intro { grid-column: 1 / -1; }
  .b-status { grid-column: span 6; }
  .b-stat, .b-creds { grid-column: span 3; }
  .b-latest { grid-column: span 6; flex-direction: row; }
  .b-latest .thumb { flex: 0 0 42%; width: auto; align-self: center; }

  .b-case { grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; }

  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .timeline > li { grid-template-columns: 170px minmax(0, 1fr); }
  .timeline .when-rail { display: block; padding-top: 6px; text-align: right; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
  .timeline .when { display: none; }
  .timeline .item { padding-left: 36px; }

  .work-card--row { flex-direction: row; }
  .work-card--row .media-box { flex: 0 0 42%; align-self: center; }
  .work-card--row .body { padding: 28px 32px 28px 20px; }
  .caselets { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .filters { width: auto; }
  .filters button { flex: none; padding: 0 14px; font-size: 14px; }
  .skill-row { grid-template-columns: 160px minmax(0, 1fr); }
  .skill-row .label { padding-top: 11px; }

  .dock { left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); }
  .dock .bar { padding: 6px; border-radius: 999px; }
  .dock a { flex: none; flex-direction: row; gap: 8px; height: 40px; padding: 0 14px; font-size: 13px; }
  .theme-btn { width: 40px; height: 40px; }
  .to-top { bottom: 28px; }
}

@media (min-width: 1100px) {
  .caselets .work-card .media-box { aspect-ratio: 2 / 1; }
  .bento { grid-template-rows: minmax(200px, auto) minmax(200px, auto); }

  .b-case { grid-row: span 4; grid-template-columns: minmax(0, 1fr) 42%; column-gap: 18px; }
  .b-case .meta { grid-area: 1 / 1; }
  .b-case h2 { grid-area: 2 / 1; }
  .b-case .line { grid-area: 3 / 1; }
  .b-case .go { grid-area: 4 / 1 / 5 / -1; }
  .b-case .thumb { grid-area: 1 / 2 / 4 / 3; order: 0; margin: 0; aspect-ratio: auto; align-self: stretch; contain: size; }

  .b-latest.b-case .go { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
  .b-intro { grid-column: 1 / span 8; grid-row: span 2; }
  .b-status { grid-column: span 4; }
  .b-stat, .b-creds { grid-column: span 2; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .recruiters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-foot { display: grid; grid-template-columns: 1fr auto 1fr; text-align: left; gap: 16px 32px; padding-bottom: 28px; }
  .site-foot nav { justify-content: flex-end; }
}

.xd { display: block; width: 100%; height: 100%; overflow: visible; }
.xd text { font-family: var(--f-mono); }
.xd .xd-h { font-family: var(--f-head); letter-spacing: -.01em; }
.xd .xd-c { letter-spacing: .1em; text-transform: uppercase; }
.media:has(> .xd), .case-dg:has(> .xd) { background: #0F0D0B; overflow: hidden; }
html:not(.js) .hide-no-js,
html:not(.js) .theme-btn,
html:not(.js) .dock .sep { display: none !important; }

code { font-family: var(--f-mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: inherit; }
.case-head { height: 72px; display: flex; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--muted); }
.back .ico { width: 18px; height: 18px; }
.back:hover { color: var(--text); }
.case-hero { padding-top: 24px; }
.case-hero h1 { margin-top: 16px; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4.4rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.case-hero p { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.case-sec { padding-top: max(72px, 6vw); }
.case-sec--first { padding-top: 56px; }
.h-case { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.1; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.h-case .num { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--accent); vertical-align: middle; margin-right: 12px; }
.case-lead { color: var(--muted); margin-bottom: 20px; }
.case-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.card--accent { border-color: var(--accent); }

.glance { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.glance .card { padding: 18px 20px; }
.glance dd { margin-top: 8px; font-family: var(--f-head); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }

.env { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.env-net, .idm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; }
.env-net { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.node { background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-inner); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; width: 100%; }
.node--entry { max-width: 300px; text-align: center; align-items: center; }
.node strong { font-family: var(--f-head); font-size: 18px; letter-spacing: -.01em; }
.node .sub { font-size: 14px; color: var(--muted); line-height: 1.4; }
.node-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.env-arrow { color: var(--muted); font-size: 20px; line-height: 1; }
.vnet { width: 100%; border: 1px dashed var(--border-strong); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.vnet-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.idm { display: flex; flex-direction: column; gap: 16px; container-type: inline-size; }

.idm-rows { display: flex; flex-direction: column; gap: 18px; }
.idm-rows li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.idm .pill { font-family: var(--f-mono); font-size: 12.5px; padding: 6px 12px; background: var(--bg); white-space: nowrap; }
.pill--accent { border-color: var(--accent); color: var(--accent); background: var(--accent-soft) !important; }
.idm .arr { color: var(--muted); line-height: 1; padding: 2px 0; margin-left: 14px; }
.idm .arr::before { content: "↓"; }
@container (min-width: 400px) {
  .idm-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .idm-rows li { align-items: center; }
  .idm .arr { margin-left: 0; }
}
@container (min-width: 600px) {
  .idm-rows { grid-template-columns: max-content auto max-content auto max-content; justify-content: start; align-items: center; gap: 10px 10px; }
  .idm-rows li { display: contents; }
  .idm .arr { text-align: center; padding: 0; }
  .idm .arr::before { content: "→"; }
  .idm .pill { justify-self: start; }
}
.idm .note { font-size: 14px; color: var(--muted); line-height: 1.5; }

.profiles a, .theme-btn, .badge-row { position: relative; }
[data-tip]::after { content: attr(data-tip); display: none; position: absolute; z-index: 50; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--text); color: var(--bg); font: 500 12px/1.3 var(--f-body); letter-spacing: 0; text-transform: none; white-space: nowrap; pointer-events: none; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { display: block; }
.to-top[data-tip]::after { left: auto; right: 0; transform: none; }
.badge-row .tip::after { left: auto; right: 0; transform: none; }
@media (hover: none) { [data-tip]:hover::after { display: none; } }

.seg { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 999px; max-width: 100%; }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: 14px; white-space: nowrap; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tabs-on .records { grid-template-columns: minmax(0, 1fr); }
.tabs-on .record dl { gap: 1px; background: var(--border); }
.tabs-on .record dl > div { background: var(--surface); border-top: 0; }

.idm button.pill { cursor: pointer; color: var(--text); }
.idm button.pill:hover { border-color: var(--text); }
.idm button.pill[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.idm-details { display: grid; gap: 10px; }
.idm-details > div { display: grid; gap: 2px; }
.idm-details dt { font-family: var(--f-mono); font-size: 12px; color: var(--accent); overflow-wrap: anywhere; }
.idm-details dd { font-size: 15px; line-height: 1.5; }
.diagram-on .idm-details { min-height: 72px; padding: 12px 0 0; border-top: 1px solid var(--border); }

.stepper { display: none; }
.stepper-track { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.stepper-track li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stepper-track li::before { content: ""; position: absolute; top: 15.5px; left: 0; right: 0; height: 1px; background: var(--border-strong); }
.stepper-track li:first-child::before { left: 50%; }
.stepper-track li:last-child::before { right: 50%; }
.stepper-track button { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg); color: var(--muted); font-family: var(--f-mono); font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.stepper-track button:hover { border-color: var(--text); color: var(--text); }
.stepper-track .is-done button { color: var(--text); }
.stepper-track .is-fault button { border-color: var(--accent); color: var(--accent); }
.stepper-track button[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stepper-track span { margin-top: 10px; padding: 0 4px; font-size: 12.5px; line-height: 1.3; color: var(--muted); text-wrap: balance; }
.stepper-track [aria-current] + span { color: var(--text); }
.stepper-panel { margin-top: 24px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.stepper-count { flex: none; }
.stepper-text { flex: 1 1 0; min-width: 0; font-size: 16px; line-height: 1.5; }
.stepper-text strong { font-weight: 600; }
.stepper-nav { flex: none; display: flex; gap: 6px; }
.stepper-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.stepper-nav button:disabled { opacity: .35; cursor: default; }
@media (min-width: 760px) {
  .stepper { display: block; }
  .steps.steps--fallback { display: none; }
}
@media (min-width: 1100px) {
  .tabs-on .record dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs-on .record dl > div:last-child:nth-child(3n+2) { grid-column: span 2; }
  .tabs-on .record dl > div:last-child:nth-child(3n+1) { grid-column: span 3; }
}

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.video > .ph, .video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 10px var(--accent-soft); transition: transform .15s ease; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.video-tag { position: absolute; z-index: 3; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.video-msg { display: none; position: absolute; z-index: 3; left: 50%; top: calc(50% + 58px); transform: translateX(-50%); white-space: nowrap; color: var(--muted); }
.video-pending .video-msg { display: block; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.video-on > :not(iframe) { visibility: hidden; }

.video--overlay { position: absolute; inset: 0; z-index: 2; border: 0; border-radius: var(--r-inner); background: transparent; aspect-ratio: auto; }
.video--overlay .video-play { width: 60px; height: 60px; box-shadow: 0 0 0 8px var(--accent-soft); }
.video--overlay .video-play svg { width: 28px; height: 28px; }
.video--overlay.video-on { background: #000; }
.case-video { margin-top: 40px; }
.video > .case-dg { position: absolute; inset: 0; }

.note-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.note-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; color: var(--text); }
.note-card:hover { border-color: var(--border-strong); color: var(--text); }
.note-card h3 { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.note-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.note-card .label { margin-top: auto; color: var(--muted); }
.b-latest--note .body { padding: 6px; }
@media (min-width: 760px) { .note-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.note-article { max-width: 680px; margin: 0 auto; }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.note-meta .label { color: var(--muted); }
.note-article h1 { margin-top: 18px; font-family: var(--f-head); font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.note-article .note-sum { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.note-article hr { margin: 36px 0 8px; border: 0; border-top: 1px solid var(--border); }
.note-body h2 { margin-top: 44px; font-family: var(--f-head); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 84px; }
.note-body h3 { margin-top: 32px; font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.note-body p { margin-top: 16px; font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.note-body ul { margin-top: 16px; padding-left: 22px; list-style: disc; font-size: 17px; line-height: 1.7; }
.note-body li + li { margin-top: 6px; }
.note-body .callout { margin-top: 28px; background: var(--surface); }
.note-body .code { margin-top: 24px; }
.note-related { margin-top: 64px; }
.note-related .label { color: var(--muted); }
.note-related a { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; color: var(--text); }
.note-related a:hover { border-color: var(--accent); color: var(--text); }
.note-related strong { display: block; margin-top: 10px; font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.note-related .arr { color: var(--accent); font-size: 20px; }
.wrap--note .case-head { margin-bottom: max(32px, 4vw); }

.note-modal { width: 100%; max-width: 1100px; height: 100%; max-height: none; margin: 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
.note-modal::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.nm-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
.nm-head .note-meta { flex: 1 1 auto; min-width: 0; }
.nm-path { display: none; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.nm-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.nm-close:hover { border-color: var(--text); }
.nm-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 28px 20px 64px; }
.nm-toc { display: none; }
.nm-toc ol { margin-top: 12px; display: grid; gap: 8px; }
.nm-toc button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; line-height: 1.4; text-align: left; cursor: pointer; }
.nm-toc button:hover { color: var(--text); }
.note-modal .note-article { margin: 0; }
.note-modal .note-meta-inline { display: none; }
@media (min-width: 760px) {
  .note-modal { height: calc(100% - 64px); margin: 32px auto; border: 1px solid var(--border); border-radius: 18px; }
  .nm-head { padding: 14px 24px; }
  .nm-path { display: inline; }
  .nm-body { grid-template-columns: 200px minmax(0, 1fr); padding: 48px 48px 80px; }
  .nm-toc { display: block; position: sticky; top: 100px; align-self: start; }
}

.notes-head h1 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1; letter-spacing: -.02em; }
.notes-head p { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.notes-list { margin-top: 40px; display: grid; gap: 12px; }

.ph-text { color: var(--muted); text-decoration: underline dashed var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.case-ph { aspect-ratio: 16 / 7; border-radius: var(--r-card); border: 1px solid var(--border); }

.st { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border-strong); font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.st--allow, .st--ok { color: var(--text); }
.st--deny { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.st--fault { color: var(--on-accent); border-color: var(--accent); background: var(--accent); }
.st--na { color: var(--muted); border-style: dashed; }

.matrix { overflow: hidden; }
.matrix table { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th, .matrix td { padding: 14px 12px; text-align: left; border-top: 1px solid var(--border); vertical-align: middle; }
.matrix thead th { border-top: 0; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.matrix tbody th { font-weight: 500; }
@media (max-width: 559px) {
  .matrix thead { display: none; }
  .matrix tr { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
  .matrix tbody tr:first-child { border-top: 0; }
  .matrix th, .matrix td { padding: 0; border: 0; }
  .matrix tbody th { grid-column: 1 / -1; }
  .matrix td::before { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .matrix td:nth-of-type(1)::before { content: "Baseline"; }
  .matrix td:nth-of-type(2)::before { content: "Fault"; }
  .matrix td:nth-of-type(3)::before { content: "After fix"; }
}

.ladder { display: flex; flex-direction: column; gap: 8px; }
.ladder details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ladder .is-fault details { border-color: var(--accent); }
.ladder summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px 14px; padding: 16px 18px; }
.ladder summary::-webkit-details-marker { display: none; }
.ladder .n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.ladder .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ladder .what strong { font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.ladder .what span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.ladder .chev { color: var(--muted); transition: transform .2s; }
.ladder details[open] .chev { transform: rotate(180deg); }
.ladder-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 28px; padding: 4px 18px 20px; font-size: 15px; line-height: 1.55; }
.ladder-body p { margin-top: 6px; }
.ladder-body a { color: var(--accent); }
.ladder-body a:hover { text-decoration: underline; }

.steps { display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 16px; padding-bottom: 20px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 15.5px; top: 34px; bottom: 2px; width: 1px; background: var(--border-strong); }
.steps li:last-child::before { display: none; }
.steps .sn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg); display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.steps .is-fault .sn { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.steps strong { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.9; }
.steps p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.callout { margin-top: 20px; max-width: 760px; border: 1px solid var(--border-strong); border-radius: 16px; padding: 22px 24px; }
.callout p { margin-top: 8px; font-size: 17px; line-height: 1.6; font-weight: 500; }

.records { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.record { overflow: hidden; }
.record header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.record header strong { font-family: var(--f-head); font-size: 18px; letter-spacing: -.01em; margin-right: auto; }
.record dl { display: grid; grid-template-columns: minmax(0, 1fr); }
.record dl > div { padding: 14px 20px; border-top: 1px solid var(--border); }
.record dl > div:first-child { border-top: 0; }
.record dd { margin-top: 4px; font-size: 15px; line-height: 1.55; }

.code { overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border); }
.btn--xs { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn--xs .ico { width: 16px; height: 16px; }
.code pre { margin: 0; padding: 18px; max-height: 520px; overflow-y: auto; overflow-x: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--f-mono); font-size: 13px; line-height: 1.7; tab-size: 4; }
.checks { margin-top: 24px; }
.checks ul { margin-top: 10px; border-top: 1px solid var(--border); }
.checks li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.checks .dash-list li { display: block; padding-left: 20px; }
.checks .dash-list li::before { top: 12px; }
.mono-v { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }

.shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.shots a { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 15px; font-weight: 500; }
.shots a:hover .shot { border-color: var(--border-strong); }
.shots-group { margin: 0 0 12px; color: var(--muted); font-weight: 500; }
.shots + .shots-group { margin-top: 32px; }
.shot { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-inner); border: 1px solid var(--border); overflow: hidden; background: #0c0c0c; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.provenance { margin-top: 28px; font-size: 15px; color: var(--muted); max-width: 72ch; }
.repo-card { margin-top: 16px; margin-bottom: 72px; display: flex; padding: 18px 20px; color: var(--text); }
.repo-card > span { display: flex; flex-direction: column; gap: 2px; }
.repo-card strong { font-family: var(--f-head); font-size: 18px; }
.repo-card .sub { color: var(--muted); font-size: 15px; }
.repo-card:hover { border-color: var(--accent); }

@media (min-width: 760px) {
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vnet-row { flex-direction: row; align-items: stretch; }
  .vnet-row .env-arrow { align-self: center; }
  .ladder summary { padding-left: 22px; }
  .ladder-body { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 62px; }
  .records { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .steps li::before { display: none; }
}
@media (min-width: 1100px) {
  .glance { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .env { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.proj-meta { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.proj-meta > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--border); }
.proj-meta dd { margin-top: 6px; font-size: 16px; line-height: 1.45; }
.proj-feats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.proj-feats .card { padding: 20px 22px; }
.proj-feats h3 { font-family: var(--f-head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1.3; }
.proj-feats p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.proj-meta + .rec { margin-top: 32px; }
.proj-end { margin-bottom: 72px; }
.proj-text { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; }
.proj-text .outcome-line { font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1.35; }
@media (min-width: 760px) {
  .proj-meta { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .proj-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pill--todo { color: var(--accent); border-color: var(--accent); border-style: dashed; font-family: var(--f-mono); font-size: 12px; }
.shows { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; margin-bottom: 72px; }

.nf { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.nf-main { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.nf-box { width: 100%; max-width: 520px; }
.nf-diag { margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); font-family: var(--f-mono); font-weight: 500; font-size: clamp(13px, 3.6vw, 15px); line-height: 1.9; color: var(--muted); white-space: pre-wrap; }
.nf-diag b { font-weight: 500; color: var(--text); }
.nf-diag .fault { color: var(--accent); }
.nf-code { margin-top: 32px; }
.nf h1 { margin-top: 10px; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.nf p { margin-top: 16px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.nf-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand { width: 20px; height: 20px; flex: none; fill: currentColor; stroke: none; }
.fillmark { fill: currentColor; stroke: none; }
.tool .brand { color: var(--text); }

.b-latest .go { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.b-latest .go-link { color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; }
.b-latest:hover .go-link { color: var(--text); }

.b-stat { border: 1px solid transparent; }
.b-creds { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
.b-creds .mono, .b-creds p { grid-column: 1 / -1; }
.b-creds .big-num { grid-column: 1; grid-row: 2; }
.creds-badge { grid-column: 2; grid-row: 2; margin-top: 14px; justify-self: end; width: 100%; max-width: 120px; height: auto; aspect-ratio: 1; object-fit: contain; }

.sub-label, .skills-head .sub-label { margin: 0 0 12px; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.skills-head .sub-label { margin: 0; }
.creds-also { margin-top: 12px; font-size: 14px; color: var(--muted); }
.lane--ai::before { border-radius: 50%; }

.dock .bar { border-color: var(--border-strong); }
@media (min-width: 760px) and (hover: hover) {
  .dock .bar { background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .2s, border-color .2s, box-shadow .2s; }
  .dock:hover .bar, .dock:focus-within .bar { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 30px rgba(0, 0, 0, .18); }
}

.shots--fit .shot img { object-fit: contain; object-position: center; }
.env-path .checks { margin-top: 0; width: 100%; }
.env-path { align-items: stretch; }
@media (max-width: 559px) {
  .matrix td[data-label]::before { content: attr(data-label); }
}

.rec-thumb { position: relative; }
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.rec { margin-top: 12px; padding: 12px; display: flex; flex-direction: column; gap: 16px; }
.rec-shot { position: relative; display: block; border-radius: var(--r-inner); overflow: hidden; border: 1px solid var(--border); color: var(--text); }
.rec-shot img { width: 100%; height: auto; }
.rec-shot:hover { border-color: var(--accent); }
.rec-cta { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(22, 20, 18, .8); border: 1px solid rgba(237, 230, 218, .18); color: #EDE6DA; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.rec-cta .ico { color: #E8643C; }
.rec-shot:hover .rec-cta, .rec-shot:focus-visible .rec-cta { background: #EDE6DA; border-color: #EDE6DA; color: #161412; }
.rec-more { padding: 0 6px 6px; }
.rec-more .shot img { object-fit: cover; object-position: left top; }
@media (min-width: 760px) {
  .rec-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-more--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rec-modal { width: min(1280px, 100%); height: min(860px, 100%); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); overflow: hidden; display: none; flex-direction: column; }
.rec-modal[open] { display: flex; }
.rec-modal::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.rec-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--border); }
.rec-modal iframe { flex: 1 1 auto; width: 100%; border: 0; background: #fff; }
@media (max-width: 759px) { .rec-modal { width: 100%; height: 100%; border-radius: 0; border: 0; } }

.img-modal { width: min(1400px, 100%); max-width: none; max-height: none; height: min(920px, 100%); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); overflow: hidden; display: none; flex-direction: column; }
.img-modal[open] { display: flex; }
.img-modal::backdrop { background: var(--scrim); backdrop-filter: blur(6px); }
.iv-body { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 16px; background: #0c0c0c; }
.iv-body img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 759px) { .img-modal { width: 100%; height: 100%; border-radius: 0; border: 0; } }

.thumb--shot { background: #0c0c0c; border-radius: 10px; overflow: hidden; }
.thumb--shot img { object-position: left center; }
