:root {
  color-scheme: dark;
  --paper: #080d13;
  --paper-light: #0c141c;
  --ink: #e8eff3;
  --muted: #96a6b0;
  --line: #26343e;
  --dark: #080d13;
  --dark-raised: #101a23;
  --dark-line: #2b3d48;
  --signal: #c5ff4a;
  --signal-orange: #ff916f;
  --signal-cyan: #69e6ff;
  --max: 1260px;
  --gutter: clamp(22px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal-orange); outline-offset: 4px; }
.section-shell { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: -60px; left: 16px; padding: 10px 14px; color: var(--dark); background: var(--signal); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  color: #eef2ec;
  background: rgba(16, 26, 25, .96);
  border-bottom: 1px solid rgba(226, 238, 224, .12);
  backdrop-filter: blur(16px);
  transition: height .2s ease, background .2s ease;
}
.site-header.is-scrolled { height: 66px; background: rgba(16, 26, 25, .98); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--dark);
  background: var(--signal);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: #f1f4ee; font-size: 14px; letter-spacing: .08em; }
.brand-copy small { color: #8d9a92; font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 35px; }
.nav a { color: #c5cec7; font-size: 12px; text-decoration: none; transition: color .18s ease; }
.nav a:hover { color: var(--signal); }
.header-cta { justify-self: end; padding: 9px 13px; border: 1px solid #52605b; color: #f2f4ef; font-size: 11px; text-decoration: none; transition: border-color .18s ease, color .18s ease; }
.header-cta:hover { color: var(--signal); border-color: var(--signal); }
.header-cta span { margin-left: 10px; color: var(--signal); }

.hero { color: #eef2ec; background: var(--dark); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .82fr);
  align-items: center;
  gap: 26px clamp(46px, 7vw, 104px);
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: clamp(70px, 8.4vw, 112px) 0 30px;
}
.hero-copy { min-width: 0; padding-bottom: 10px; }
.eyebrow, .section-index {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: #aebcb1;
  font: 700 9px/1.5 ui-monospace, "Cascadia Code", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.live-mark { width: 7px; height: 7px; background: var(--signal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(217, 252, 85, .1); }
.eyebrow-year { margin-left: auto; color: #72817a; }
.hero h1 { margin: 0; color: #f5f7f2; font-size: clamp(76px, 9.2vw, 120px); font-weight: 850; letter-spacing: -.085em; line-height: .91; }
.hero h1 em { color: var(--signal); font-style: normal; }
.hero-deck { margin: 27px 0 0; color: #c9d1cb; font-size: clamp(20px, 2.3vw, 29px); font-weight: 500; letter-spacing: -.045em; line-height: 1.56; }
.hero-deck strong { color: #f6f7f3; font-weight: 700; }
.hero-description { max-width: 545px; margin: 15px 0 0; color: #96a39b; font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 25px; padding: 0 15px; font-size: 11px; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--dark); background: var(--signal); font-weight: 700; }
.button-primary:hover { background: #e7ff8b; }
.button-primary span { font-size: 16px; }
.button-secondary { color: #dce3dc; border: 1px solid #495852; }
.button-secondary:hover { border-color: #a5b4aa; }
.hero-domains { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; color: #77867d; font: 8px/1.5 ui-monospace, "Cascadia Code", monospace; letter-spacing: .11em; }
.hero-domains i { width: 3px; height: 3px; background: var(--signal-orange); border-radius: 50%; }

.hero-visual { min-width: 0; margin: 0; padding: 12px; background: var(--dark-raised); border: 1px solid #30413b; box-shadow: 12px 12px 0 rgba(6, 13, 12, .54); }
.visual-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 3px 11px; color: #89988f; font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; letter-spacing: .12em; }
.visual-topline b { margin-left: 8px; color: var(--signal); font-weight: 600; }
.visual-stage { position: relative; display: grid; min-height: 350px; place-items: center; overflow: hidden; background: #111e1c; border: 1px solid #273b35; isolation: isolate; }
.stage-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(185, 205, 189, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 205, 189, .07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); }
.stage-ring { position: absolute; z-index: -1; width: 79%; aspect-ratio: 1; border: 1px solid rgba(217, 252, 85, .22); border-radius: 50%; box-shadow: 0 0 0 23px rgba(217, 252, 85, .025), 0 0 0 54px rgba(217, 252, 85, .02); }
.visual-stage img { display: block; width: min(82%, 340px); max-height: 340px; object-fit: contain; mix-blend-mode: screen; filter: saturate(.88) contrast(1.02); }
.stage-label { position: absolute; z-index: 1; color: #a5b29e; font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; letter-spacing: .13em; }
.stage-label-top { top: 17px; left: 17px; }
.stage-label-bottom { bottom: 16px; left: 17px; color: var(--signal); }
.stage-serial { position: absolute; right: 14px; bottom: 14px; color: rgba(241, 245, 236, .32); font: 9px/1 ui-monospace, "Cascadia Code", monospace; writing-mode: vertical-rl; }
.hero-visual figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 3px 1px; color: #e9eee7; font-size: 10px; }
.hero-visual figcaption span:last-child { color: #85938b; font-size: 8px; text-align: right; }
.hero-ledger { display: grid; grid-column: 1 / -1; grid-template-columns: 1.45fr .52fr .52fr 1fr; align-items: center; gap: 18px; margin-top: 12px; padding: 17px 0 0; border-top: 1px solid #33423d; }
.ledger-intro { display: grid; gap: 4px; }
.ledger-intro span, .ledger-note { color: #819087; font: 8px/1.5 ui-monospace, "Cascadia Code", monospace; letter-spacing: .12em; }
.ledger-intro strong { color: #dce4dc; font-size: 11px; font-weight: 550; }
.ledger-stat { display: flex; align-items: baseline; gap: 9px; }
.ledger-stat strong { color: var(--signal); font: 700 22px/1 ui-monospace, "Cascadia Code", monospace; }
.ledger-stat span { color: #aab6ad; font-size: 10px; }
.ledger-note { justify-self: end; display: flex; align-items: center; gap: 8px; letter-spacing: .01em; }
.ledger-dot { width: 6px; height: 6px; background: var(--signal-orange); border-radius: 50%; }

.hero { position: relative; background: radial-gradient(ellipse at 77% 48%, rgba(15, 67, 79, .34), transparent 34%), radial-gradient(ellipse at 14% 5%, rgba(62, 85, 35, .16), transparent 34%), #080d13; }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(156, 203, 215, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(156, 203, 215, .035) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, #000, transparent 72%); content: ""; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-visual { background: linear-gradient(145deg, rgba(19, 37, 46, .94), rgba(10, 19, 26, .96)); border-color: rgba(105, 230, 255, .25); box-shadow: 0 0 50px rgba(27, 156, 181, .09), 12px 12px 0 rgba(2, 7, 11, .5); }
.visual-stage { background: radial-gradient(ellipse at 50% 50%, rgba(27, 92, 103, .35), transparent 58%), #09131b; border-color: rgba(105, 230, 255, .17); }
.stage-grid { background-image: linear-gradient(rgba(105, 230, 255, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 230, 255, .075) 1px, transparent 1px); }
.stage-ring { border-color: rgba(105, 230, 255, .28); box-shadow: 0 0 0 23px rgba(105, 230, 255, .035), 0 0 0 54px rgba(105, 230, 255, .02); }

.selection-strip { position: relative; overflow: hidden; padding: 62px 0 58px; color: #e8eff3; background: radial-gradient(ellipse at 92% 50%, rgba(25, 91, 103, .16), transparent 38%), linear-gradient(105deg, #0c141c, #0b1219 54%, #0d171f); border-bottom: 1px solid var(--line); }
.selection-strip::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(152, 189, 198, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(152, 189, 198, .035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000); content: ""; pointer-events: none; }
.selection-inner { position: relative; z-index: 1; }
.selection-inner { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(30px, 6vw, 90px); }
.selection-lead .section-index { margin-bottom: 12px; color: #8aa0a9; }
.selection-strip .section-index span, .about .section-index span { color: var(--signal-cyan); }
.selection-strip .section-index { color: #8ba2ad; }
.selection-strip .section-index span { color: var(--signal-cyan); }
.selection-lead h2 { margin: 0; font-size: clamp(27px, 3.3vw, 39px); font-weight: 750; letter-spacing: -.06em; line-height: 1.35; }
.selection-lead h2 em { color: var(--signal); font-style: normal; }
.selection-criteria { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); }
.selection-criteria > div { display: grid; grid-template-columns: 28px 1fr; gap: 1px 8px; padding: 5px 14px; border-right: 1px solid var(--line); }
.selection-criteria span { grid-row: span 2; color: var(--signal-cyan); font: 10px/1.8 ui-monospace, "Cascadia Code", monospace; }
.selection-criteria strong { font-size: 11px; font-weight: 700; }
.selection-criteria small { color: #91a2ad; font-size: 10px; }

.projects-section { position: relative; overflow: hidden; padding: clamp(76px, 9vw, 112px) 0; color: #e8eff3; background: radial-gradient(ellipse at 8% 14%, rgba(26, 80, 91, .16), transparent 30%), radial-gradient(ellipse at 100% 55%, rgba(66, 91, 34, .09), transparent 34%), #080d13; }
.projects-section::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(159, 188, 200, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(159, 188, 200, .025) 1px, transparent 1px); background-size: 58px 58px; content: ""; pointer-events: none; }
.projects-section > .section-shell { position: relative; z-index: 1; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading .section-index { margin-bottom: 11px; color: #8aa0aa; }
.section-heading h2 { margin: 0; color: #eff5f7; font-size: clamp(42px, 5.8vw, 66px); font-weight: 800; letter-spacing: -.075em; line-height: 1.05; }
.section-heading h2 span { color: var(--signal-cyan); font: 500 .26em/1 ui-monospace, "Cascadia Code", monospace; letter-spacing: .05em; vertical-align: middle; }
.heading-note { margin: 0 0 4px; color: #8fa0aa; font-size: 11px; line-height: 1.9; text-align: right; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 32px; padding: 0 12px; color: #a3b2ba; background: rgba(15, 25, 33, .78); border: 1px solid #273943; border-radius: 2px; font: 10px/1 system-ui, sans-serif; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.filter:hover { color: #eff5f7; border-color: rgba(105, 230, 255, .55); }
.filter.is-active { color: #08100b; background: var(--signal); border-color: var(--signal); box-shadow: 0 0 18px rgba(197, 255, 74, .15); }
.result-count { margin: 0; color: #8fa0aa; font: 9px/1.4 ui-monospace, "Cascadia Code", monospace; white-space: nowrap; }
.result-count span:first-child { color: var(--signal-cyan); font-size: 15px; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: 1fr; }
.project-card[hidden] { display: none; }
.project-featured { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: stretch; gap: 34px; margin: 0 0 6px; padding: clamp(22px, 3vw, 36px); color: #edf1ea; background: var(--dark); border: 1px solid #22332f; }
.feature-copy { display: flex; min-width: 0; flex-direction: column; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 29px; color: #8c9a90; font: 8px/1.5 ui-monospace, "Cascadia Code", monospace; letter-spacing: .12em; }
.project-index { color: var(--signal); font-weight: 700; }
.project-kind { text-align: right; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #7c8980; font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }
.status::before { width: 6px; height: 6px; background: currentColor; border-radius: 50%; content: ""; }
.status-live, .status-active { color: #9acb69; }
.status-lab { color: #df9a63; }
.status-archive { color: #929d94; }
.feature-copy h3 { margin: 13px 0 11px; color: #f5f7f2; font-size: clamp(25px, 3vw, 36px); font-weight: 750; letter-spacing: -.055em; line-height: 1.28; }
.feature-copy > p { max-width: 500px; margin: 0; color: #adbab0; font-size: 12px; line-height: 1.9; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 19px 0 0; list-style: none; }
.tags li { padding: 4px 7px; color: #52614f; background: #e9eee1; border: 1px solid #dce4d4; font: 9px/1.4 ui-monospace, "Cascadia Code", monospace; }
.project-featured .tags li { color: #cbd9c7; background: #24332e; border-color: #344841; }
.architecture { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(17px, 2.4vw, 28px); background: #182522; border: 1px solid #34443d; }
.architecture-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 24px; padding-bottom: 11px; color: #dfe7dd; border-bottom: 1px solid #34443d; font-size: 10px; }
.architecture-head span:last-child { color: #8b9b8e; font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; letter-spacing: .09em; }
.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 9px; }
.architecture-flow > div { display: grid; gap: 4px; min-width: 0; padding: 12px 10px; background: #1d2b27; border: 1px solid #405049; }
.architecture-flow small { color: var(--signal); font: 8px/1.3 ui-monospace, "Cascadia Code", monospace; letter-spacing: .1em; }
.architecture-flow strong { color: #f1f4ee; font-size: 10px; font-weight: 600; white-space: nowrap; }
.architecture-flow span { color: #a0afa4; font-size: 8px; line-height: 1.4; white-space: nowrap; }
.architecture-flow i { color: var(--signal-orange); font: 14px/1 ui-monospace, "Cascadia Code", monospace; font-style: normal; }
.architecture-foot { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding-top: 13px; color: #819087; border-top: 1px solid #34443d; font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; }
.architecture-foot span { padding: 3px 5px; border: 1px solid #3b4c44; }
.architecture-foot b { margin-left: auto; color: #d6e4d2; font: 9px/1.4 system-ui, sans-serif; }

.project-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(205px, 275px); align-items: center; gap: 22px; min-height: 116px; padding: 19px 13px; background: linear-gradient(100deg, rgba(14, 24, 32, .76), rgba(10, 17, 24, .38)); border-bottom: 1px solid var(--line); transition: background .18s ease, padding .18s ease, border-color .18s ease; }
.project-row:hover { padding-inline: 19px; background: linear-gradient(100deg, rgba(20, 42, 49, .84), rgba(14, 27, 34, .64)); border-color: rgba(105, 230, 255, .28); }
.row-index { align-self: start; padding-top: 2px; color: var(--signal-cyan); font: 16px/1.4 ui-monospace, "Cascadia Code", monospace; }
.row-main { min-width: 0; }
.row-main .project-meta { max-width: 540px; color: #91a2ab; }
.row-main h3 { margin: 6px 0 3px; color: #edf4f6; font-size: 18px; font-weight: 720; letter-spacing: -.035em; line-height: 1.4; }
.row-main > p { max-width: 760px; margin: 0; color: #9aaab3; font-size: 12px; line-height: 1.75; }
.project-row .tags { justify-content: flex-end; margin: 0; padding: 0; }
.tags li { color: #afc0c7; background: rgba(20, 34, 42, .8); border-color: #30444e; }
.project-featured .tags li { color: #d5e9dc; background: #172923; border-color: #354b40; }
.project-row .tags li { color: #a5bac2; background: rgba(15, 27, 35, .74); border-color: #30434d; }

.project-detail { min-width: 0; }
.project-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; color: #d5e2e7; border-top: 1px solid var(--line); cursor: pointer; list-style: none; }
.project-detail summary::-webkit-details-marker { display: none; }
.project-detail summary::after { flex: 0 0 auto; color: var(--signal-cyan); content: "+"; font: 18px/1 ui-monospace, "Cascadia Code", monospace; }
.project-detail[open] summary::after { content: "−"; }
.project-detail summary span { font-size: 11px; font-weight: 700; }
.project-detail summary small { margin-left: auto; color: #8599a3; font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; letter-spacing: .08em; text-align: right; }
.project-detail summary:focus-visible { outline: 2px solid #8eaa68; outline-offset: 3px; }
.project-detail-featured { grid-column: 1 / -1; margin-top: 2px; border-top: 1px solid #34443d; }
.project-detail-featured summary { color: #edf1ea; border-top: 0; }
.project-detail-featured summary::after { color: var(--signal); }
.project-detail-featured summary small { color: #8e9c91; }
.detail-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 7px; background: #2d424e; border: 1px solid #2d424e; }
.detail-panel { min-width: 0; padding: 20px; background: linear-gradient(145deg, #111d26, #0d161e); }
.detail-panel-wide { grid-column: 1 / -1; }
.detail-kicker { margin: 0 0 9px; color: var(--signal-cyan); font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; letter-spacing: .12em; }
.detail-panel h4 { margin: 0 0 9px; color: #eaf2f5; font-size: 14px; font-weight: 750; letter-spacing: -.025em; line-height: 1.45; }
.detail-panel > p:not(.detail-kicker):not(.detail-source) { margin: 0; color: #a3b2ba; font-size: 11px; line-height: 1.9; }
.detail-source { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 13px 0 0; color: #899ca5; font-size: 9px; line-height: 1.7; }
.detail-source a { color: var(--signal); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.detail-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.detail-list li { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid #2a3b44; }
.detail-list li:first-child { padding-top: 0; border-top: 0; }
.detail-list strong { color: #c5ff4a; font-size: 10px; }
.detail-list span { color: #a3b2ba; font-size: 10px; line-height: 1.8; }
.project-detail-featured .detail-body { background: #34443d; border-color: #34443d; }
.project-detail-featured .detail-panel { background: #1c2a26; }
.project-detail-featured .detail-kicker { color: var(--signal); }
.project-detail-featured .detail-panel h4 { color: #f0f4ed; }
.project-detail-featured .detail-panel > p:not(.detail-kicker):not(.detail-source), .project-detail-featured .detail-list span { color: #aab7ac; }
.project-detail-featured .detail-source { color: #91a094; }
.project-detail-featured .detail-source a { color: #c6e1aa; }
.project-detail-featured .detail-list li { border-color: #35463e; }
.project-detail-featured .detail-list strong { color: #d9e5d5; }
.project-detail-row { grid-column: 2 / -1; align-self: stretch; width: 100%; }
.project-detail-row summary { padding: 9px 12px; background: rgba(16, 28, 36, .88); border: 1px solid #2a3d47; }
.project-detail-row summary span { font-size: 10px; }
.project-detail-row summary small { color: #8297a0; }
.project-detail-row .detail-body { margin-top: 0; }
.project-detail-row .detail-panel { padding: 18px; }

.method { padding: clamp(74px, 9vw, 112px) 0; color: #edf1ea; background: var(--dark); }
.method-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(42px, 8vw, 112px); }
.method .section-index { color: #9cae9f; }
.method .section-index span { color: var(--signal); }
.method-intro h2 { margin: 0; color: #f5f7f2; font-size: clamp(35px, 4.7vw, 58px); font-weight: 780; letter-spacing: -.065em; line-height: 1.28; }
.method-intro h2 em { color: var(--signal); font-style: normal; }
.method-intro > p:last-child { max-width: 390px; margin: 18px 0 0; color: #9ca99f; font-size: 11px; line-height: 1.9; }
.method-list { margin: 0; padding: 0; list-style: none; }
.method-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid #34433d; }
.method-list li:last-child { border-bottom: 1px solid #34433d; }
.method-list li > span { color: var(--signal); font: 9px/1.9 ui-monospace, "Cascadia Code", monospace; }
.method-list h3 { margin: 0 0 3px; color: #e7ece5; font-size: 12px; font-weight: 700; }
.method-list p { margin: 0; color: #9eaba1; font-size: 11px; line-height: 1.75; }

.about { display: grid; grid-template-columns: 1fr .72fr; align-items: center; gap: clamp(44px, 9vw, 118px); padding-block: clamp(72px, 9vw, 108px); color: #e8eff3; background: radial-gradient(ellipse at 85% 50%, rgba(19, 80, 91, .15), transparent 38%); }
.about .section-index { margin-bottom: 14px; color: #8fa1aa; }
.about-copy h2 { margin: 0; color: #eff5f7; font-size: clamp(32px, 4vw, 48px); font-weight: 770; letter-spacing: -.065em; line-height: 1.4; }
.about-copy > p:last-child { max-width: 610px; margin: 15px 0 0; color: #9aabb4; font-size: 12px; line-height: 1.9; }
.selection-card { padding: 19px 21px 6px; background: linear-gradient(145deg, rgba(17, 30, 39, .97), rgba(11, 20, 27, .97)); border: 1px solid #2a414b; box-shadow: 0 14px 45px rgba(0, 0, 0, .18); }
.selection-card > p { margin: 0 0 10px; color: #e4edf1; font-size: 10px; font-weight: 700; }
.selection-card ul { margin: 0; padding: 0; list-style: none; }
.selection-card li { display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; padding: 11px 0; border-top: 1px solid #2a3b44; }
.selection-card li > span { grid-row: span 2; color: var(--signal-cyan); font: 9px/1.8 ui-monospace, "Cascadia Code", monospace; }
.selection-card li strong { font-size: 10px; font-weight: 700; }
.selection-card li small { color: #93a5ae; font-size: 9px; }

.site-footer { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 22px; padding: 18px max(var(--gutter), calc((100vw - var(--max)) / 2)); color: #e5ebe3; background: #0b1413; border-top: 1px solid #293a34; }
.site-footer .brand-mark { width: 31px; height: 31px; font-size: 15px; }
.site-footer .brand-copy strong { font-size: 12px; }
.site-footer .brand-copy small { font-size: 7px; }
.site-footer > p { margin: 0; color: #99a69b; font-size: 9px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(310px, .86fr); gap: 28px 42px; }
  .hero h1 { font-size: clamp(66px, 9vw, 94px); }
  .visual-stage { min-height: 300px; }
  .selection-inner { grid-template-columns: 1fr; gap: 25px; }
  .selection-criteria { max-width: 700px; }
  .project-featured { gap: 23px; }
  .architecture-flow { gap: 6px; }
  .architecture-flow > div { padding-inline: 7px; }
  .architecture-flow strong { font-size: 9px; }
  .method-grid { gap: 48px; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .site-header { height: 68px; padding-inline: var(--gutter); }
  .site-header.is-scrolled { height: 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 62px; }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(68px, 14vw, 104px); }
  .hero-deck { font-size: clamp(20px, 4vw, 26px); }
  .hero-visual { width: min(100%, 560px); }
  .visual-stage { min-height: 340px; }
  .hero-ledger { grid-template-columns: 1.2fr .6fr .6fr; margin-top: 8px; }
  .ledger-note { grid-column: 1 / -1; justify-self: start; padding-top: 4px; }
  .project-featured { grid-template-columns: 1fr; }
  .feature-copy { min-height: 260px; }
  .architecture { min-height: 196px; }
  .project-row { grid-template-columns: 38px minmax(0, 1fr); gap: 10px 14px; padding: 17px 4px; }
  .project-row:hover { padding-inline: 9px; }
  .project-row .tags { grid-column: 2; justify-content: flex-start; }
  .project-detail-row { grid-column: 2 / -1; }
  .method-grid { grid-template-columns: 1fr; gap: 30px; }
  .method-intro > p:last-child { max-width: 560px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .site-header { padding-inline: 16px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 7px; }
  .header-cta { padding: 8px 9px; font-size: 9px; }
  .header-cta span { margin-left: 5px; }
  .hero-inner { gap: 28px; padding-top: 50px; padding-bottom: 21px; }
  .eyebrow { gap: 7px; margin-bottom: 19px; font-size: 7px; letter-spacing: .11em; }
  .eyebrow-year { font-size: 7px; }
  .hero h1 { font-size: clamp(61px, 16.2vw, 82px); }
  .hero-deck { margin-top: 22px; font-size: 19px; }
  .hero-description { margin-top: 12px; font-size: 12px; }
  .hero-actions { gap: 7px; margin-top: 19px; }
  .button { min-height: 41px; gap: 12px; padding-inline: 11px; font-size: 9px; }
  .hero-domains { gap: 7px; margin-top: 22px; font-size: 7px; }
  .hero-visual { padding: 9px; box-shadow: 6px 6px 0 rgba(6, 13, 12, .45); }
  .visual-topline { font-size: 7px; }
  .visual-stage { min-height: 285px; }
  .visual-stage img { width: min(86%, 285px); max-height: 285px; }
  .stage-label { font-size: 7px; }
  .hero-visual figcaption { align-items: flex-start; flex-direction: column; gap: 3px; font-size: 9px; }
  .hero-visual figcaption span:last-child { font-size: 7px; text-align: left; }
  .hero-ledger { grid-template-columns: 1fr 1fr; gap: 12px 9px; padding-top: 13px; }
  .ledger-intro { grid-column: 1 / -1; }
  .ledger-stat strong { font-size: 19px; }
  .ledger-note { grid-column: 1 / -1; font-size: 7px; }
  .selection-strip { padding: 44px 0; }
  .selection-inner { gap: 18px; }
  .selection-lead h2 { font-size: 29px; }
  .selection-criteria > div { grid-template-columns: 1fr; gap: 2px; padding: 3px 9px; }
  .selection-criteria span { grid-row: auto; font-size: 8px; }
  .selection-criteria strong { font-size: 9px; }
  .selection-criteria small { font-size: 9px; }
  .projects-section { padding: 59px 0 67px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .section-heading .section-index { font-size: 8px; }
  .section-heading h2 { font-size: 44px; }
  .heading-note { font-size: 10px; text-align: left; }
  .filter-row { align-items: flex-end; gap: 8px; }
  .filters { flex-wrap: nowrap; max-width: calc(100vw - 88px); overflow-x: auto; padding: 2px 1px 7px; scrollbar-width: thin; }
  .filter { flex: 0 0 auto; min-height: 30px; padding-inline: 9px; font-size: 9px; }
  .result-count { padding-bottom: 8px; font-size: 7px; }
  .project-featured { gap: 19px; padding: 18px 15px; }
  .project-top { margin-bottom: 21px; font-size: 7px; }
  .feature-copy { min-height: 0; }
  .feature-copy h3 { font-size: 26px; }
  .feature-copy > p { font-size: 11px; }
  .feature-copy .tags { padding-top: 14px; }
  .architecture { min-height: 0; padding: 14px 11px; }
  .architecture-head { margin-bottom: 15px; font-size: 9px; }
  .architecture-head span:last-child { font-size: 7px; }
  .architecture-flow { grid-template-columns: 1fr; gap: 5px; }
  .architecture-flow > div { grid-template-columns: 1fr 1fr; align-items: baseline; gap: 3px 7px; padding: 7px 8px; }
  .architecture-flow small { grid-column: 1 / -1; }
  .architecture-flow strong { font-size: 9px; }
  .architecture-flow span { justify-self: end; }
  .architecture-flow i { justify-self: center; transform: rotate(90deg); line-height: .8; }
  .architecture-foot { gap: 4px; margin-top: 12px; padding-top: 9px; font-size: 6px; }
  .architecture-foot b { font-size: 8px; }
  .project-row { grid-template-columns: 29px minmax(0, 1fr); gap: 8px 9px; min-height: 0; padding-block: 15px; }
  .row-index { font-size: 13px; }
  .row-main .project-meta { gap: 5px; font-size: 9px; }
  .status { gap: 4px; font-size: 9px; }
  .status::before { width: 5px; height: 5px; }
  .row-main h3 { font-size: 16px; }
  .row-main > p { font-size: 10px; }
  .project-row .tags { gap: 4px; }
  .project-row .tags li { padding: 3px 5px; font-size: 8px; }
  .project-detail summary { gap: 8px; padding-block: 10px; }
  .project-detail summary span { font-size: 10px; }
  .project-detail summary small { max-width: 45%; font-size: 7px; }
  .project-detail-featured { margin-top: 0; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-panel, .project-detail-row .detail-panel { padding: 15px; }
  .detail-panel-wide { grid-column: auto; }
  .detail-panel h4 { font-size: 13px; }
  .detail-panel > p:not(.detail-kicker):not(.detail-source) { font-size: 10px; }
  .detail-list li { grid-template-columns: 76px 1fr; gap: 8px; }
  .detail-list strong { font-size: 9px; }
  .detail-list span { font-size: 9px; }
  .detail-source { font-size: 8px; }
  .method { padding: 58px 0; }
  .method-intro h2 { font-size: 35px; }
  .method-list li { grid-template-columns: 29px 1fr; gap: 8px; padding: 12px 0; }
  .method-list h3 { font-size: 11px; }
  .method-list p { font-size: 10px; }
  .about { gap: 22px; padding-block: 57px; }
  .about-copy h2 { font-size: 31px; }
  .about-copy > p:last-child { font-size: 11px; }
  .selection-card { padding: 15px 15px 5px; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; gap: 12px 18px; padding-block: 16px; }
  .site-footer > p { width: 100%; font-size: 8px; }
  .site-footer > p:last-child { width: auto; margin-left: auto; }
}

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

/* Tactile controls and precision-cut frames */
.header-cta,
.button,
.filter,
.project-detail-row summary {
  position: relative;
  isolation: isolate;
  border-radius: 3px;
  transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(45, 63, 70, .9), rgba(19, 31, 39, .96));
  border-color: #47616a;
  box-shadow: inset 0 1px 0 rgba(218, 246, 251, .16), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 3px 0 #071016, 0 7px 14px rgba(0, 0, 0, .24);
}
.header-cta:hover { transform: translateY(-1px); border-color: var(--signal-cyan); box-shadow: inset 0 1px 0 rgba(218, 246, 251, .2), inset 0 -2px 0 rgba(0, 0, 0, .24), 0 4px 0 #071016, 0 9px 18px rgba(0, 0, 0, .3); }
.header-cta:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(218, 246, 251, .12), 0 1px 0 #071016; }

.button { min-height: 48px; border: 1px solid transparent; border-radius: 4px; box-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 8px 16px rgba(0, 0, 0, .2); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .5), 0 2px 5px rgba(0, 0, 0, .2); }
.button-primary {
  background: linear-gradient(180deg, #e4ff9c 0%, #c5ff4a 45%, #a6e536 100%);
  border-color: #edffba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 -2px 0 rgba(78, 119, 13, .28), 0 4px 0 #668c20, 0 8px 17px rgba(102, 160, 26, .16);
}
.button-primary:hover { background: linear-gradient(180deg, #edffb7 0%, #d5ff73 45%, #b9ef4d 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), inset 0 -2px 0 rgba(78, 119, 13, .22), 0 6px 0 #668c20, 0 12px 21px rgba(102, 160, 26, .22); }
.button-primary:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(78, 119, 13, .24), 0 1px 0 #668c20; }
.button-secondary {
  background: linear-gradient(180deg, rgba(43, 62, 72, .94), rgba(16, 28, 37, .98));
  border-color: #48616b;
  box-shadow: inset 0 1px 0 rgba(223, 247, 252, .14), inset 0 -2px 0 rgba(0, 0, 0, .32), 0 4px 0 #050b10, 0 8px 16px rgba(0, 0, 0, .24);
}
.button-secondary:hover { border-color: #87c6d1; background: linear-gradient(180deg, #34505d, #172b36); box-shadow: inset 0 1px 0 rgba(223, 247, 252, .2), inset 0 -2px 0 rgba(0, 0, 0, .26), 0 6px 0 #050b10, 0 12px 20px rgba(0, 0, 0, .3); }
.button-secondary:active { box-shadow: inset 0 1px 0 rgba(223, 247, 252, .12), 0 1px 0 #050b10; }

.filter {
  min-height: 38px;
  padding-inline: 14px;
  background: linear-gradient(180deg, #192832, #101a22);
  border-color: #304954;
  box-shadow: inset 0 1px 0 rgba(202, 235, 244, .1), inset 0 -2px 0 rgba(0, 0, 0, .24), 0 2px 0 #050b10;
}
.filter:hover { transform: translateY(-1px); background: linear-gradient(180deg, #233944, #14232d); box-shadow: inset 0 1px 0 rgba(202, 235, 244, .16), 0 3px 0 #050b10, 0 6px 12px rgba(0, 0, 0, .2); }
.filter:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(202, 235, 244, .08), 0 1px 0 #050b10; }
.filter.is-active { color: #09110b; background: linear-gradient(180deg, #e4ff9c, #c5ff4a 55%, #a8e638); border-color: #edffba; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72), inset 0 -2px 0 rgba(78, 119, 13, .28), 0 3px 0 #668c20, 0 7px 14px rgba(102, 160, 26, .14); }
.filter.is-active:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), inset 0 -2px 0 rgba(78, 119, 13, .22), 0 4px 0 #668c20, 0 9px 17px rgba(102, 160, 26, .2); }
.filter.is-active:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 #668c20; }

.hero-visual,
.visual-stage,
.project-featured,
.architecture,
.detail-body,
.selection-card {
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.hero-visual { box-shadow: inset 0 1px 0 rgba(186, 241, 250, .2), inset 0 -2px 0 rgba(0, 0, 0, .42), 0 0 50px rgba(27, 156, 181, .1), 12px 12px 0 rgba(2, 7, 11, .55); }
.visual-stage { box-shadow: inset 0 1px 0 rgba(105, 230, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .35); }
.project-featured { position: relative; background: linear-gradient(145deg, rgba(17, 31, 40, .98), rgba(8, 14, 20, .98)); border-color: rgba(105, 230, 255, .3); box-shadow: inset 0 1px 0 rgba(190, 241, 250, .16), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .14); }
.architecture { background: linear-gradient(145deg, #172b33, #0f1c24); border-color: rgba(105, 230, 255, .26); box-shadow: inset 0 1px 0 rgba(190, 241, 250, .15), inset 0 -2px 0 rgba(0, 0, 0, .34); }
.architecture-flow > div { position: relative; background: linear-gradient(180deg, #20343d, #15242c); border-color: #42606a; box-shadow: inset 0 1px 0 rgba(205, 243, 250, .16), inset 0 -2px 0 rgba(0, 0, 0, .28), 0 2px 0 #091117; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
.detail-body { background: #3b5863; border-color: #3b5863; box-shadow: inset 0 1px 0 rgba(194, 239, 248, .2); }
.detail-panel { background: linear-gradient(145deg, #142631, #0d1921); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.project-detail-featured .detail-body { background: #36535f; border-color: #36535f; }
.project-detail-featured .detail-panel { background: linear-gradient(145deg, #182e39, #11212b); }
.project-detail-featured .detail-list li { border-color: rgba(105, 230, 255, .16); }
.selection-card { background: linear-gradient(145deg, #172a34, #0c161e); border-color: rgba(105, 230, 255, .28); box-shadow: inset 0 1px 0 rgba(190, 241, 250, .16), inset 0 -2px 0 rgba(0, 0, 0, .34), 0 14px 45px rgba(0, 0, 0, .22); }
.project-row { position: relative; margin-top: 7px; padding-inline: 13px; background: linear-gradient(105deg, rgba(17, 31, 40, .96), rgba(10, 18, 25, .88)); border: 1px solid #213641; box-shadow: inset 0 1px 0 rgba(190, 241, 250, .07), inset 0 -2px 0 rgba(0, 0, 0, .25); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.project-row:hover { padding-inline: 19px; background: linear-gradient(105deg, rgba(23, 47, 57, .98), rgba(13, 26, 34, .96)); border-color: rgba(105, 230, 255, .48); box-shadow: inset 0 1px 0 rgba(190, 241, 250, .13), inset 0 -2px 0 rgba(0, 0, 0, .28), 0 8px 20px rgba(0, 0, 0, .18); }
.project-detail-row summary { min-height: 42px; background: linear-gradient(180deg, #1b2c36, #101b23); border-color: #35505b; box-shadow: inset 0 1px 0 rgba(194, 239, 248, .13), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 2px 0 #050b10; }
.project-detail-row summary:hover { transform: translateY(-1px); border-color: rgba(105, 230, 255, .65); box-shadow: inset 0 1px 0 rgba(194, 239, 248, .18), 0 4px 0 #050b10; }
.project-detail-row summary:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(194, 239, 248, .08), 0 1px 0 #050b10; }
.project-detail-featured summary { min-height: 46px; margin-top: 8px; padding: 0 13px; background: linear-gradient(180deg, #1b3039, #111e26); border: 1px solid #3b5964; border-radius: 3px; box-shadow: inset 0 1px 0 rgba(194, 239, 248, .17), inset 0 -2px 0 rgba(0, 0, 0, .24), 0 3px 0 #050b10; }
.project-detail-featured summary:hover { transform: translateY(-1px); border-color: rgba(105, 230, 255, .72); box-shadow: inset 0 1px 0 rgba(194, 239, 248, .22), 0 5px 0 #050b10, 0 8px 15px rgba(0, 0, 0, .2); }
.project-detail-featured summary:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(194, 239, 248, .1), 0 1px 0 #050b10; }

@media (max-width: 760px) {
  .header-cta { min-height: 44px; }
  .button { min-height: 46px; }
  .project-featured { gap: 22px; }
}

@media (max-width: 520px) {
  .header-cta { min-height: 44px; padding-inline: 10px; }
  .button { min-height: 44px; gap: 10px; padding-inline: 10px; font-size: 9px; }
  .button:hover { transform: none; }
  .button:active { transform: translateY(2px); }
  .hero-visual { box-shadow: inset 0 1px 0 rgba(186, 241, 250, .2), inset 0 -2px 0 rgba(0, 0, 0, .42), 5px 6px 0 rgba(2, 7, 11, .58); }
  .visual-stage, .project-featured, .architecture, .detail-body, .detail-panel, .selection-card { clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); }
  .filter-row { display: grid; align-items: start; gap: 5px; padding-bottom: 9px; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; width: 100%; max-width: none; overflow: visible; padding: 2px 1px 3px; }
  .filters .filter:first-child { grid-column: 1 / -1; }
  .filter { min-width: 0; min-height: 44px; padding-inline: 7px; font-size: 10px; white-space: nowrap; }
  .filter:hover { transform: none; }
  .filter:active, .filter.is-active:active { transform: translateY(2px); }
  .result-count { justify-self: end; padding: 0 2px 2px; font-size: 8px; }
  .project-featured { padding: 18px 15px; }
  .project-row { margin-top: 6px; padding-inline: 8px; }
  .project-row:hover { padding-inline: 8px; }
  .project-detail-row summary { min-height: 44px; padding-inline: 10px; }
  .site-footer { padding-inline: 18px; }
}

/* Four visible hex fasteners and a second machined lip make the panels read as hardware. */
:is(.hero-visual, .project-featured, .architecture, .project-row, .detail-body, .selection-card, .capability-card) { position: relative; }
:is(.hero-visual, .project-featured, .architecture, .project-row, .detail-body, .selection-card, .capability-card)::before {
  position: absolute;
  z-index: 2;
  inset: 4px;
  border: 1px solid rgba(123, 207, 221, .28);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  content: "";
  pointer-events: none;
}
:is(.hero-visual, .project-featured, .architecture, .project-row, .detail-body, .selection-card, .capability-card)::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background-image: url("hex-fastener.svg"), url("hex-fastener.svg"), url("hex-fastener.svg"), url("hex-fastener.svg");
  background-position: left 7px top 7px, right 7px top 7px, left 7px bottom 7px, right 7px bottom 7px;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  content: "";
  pointer-events: none;
}
.visual-topline, .hero-visual figcaption { padding-inline: 25px; }
.architecture-head, .architecture-foot { padding-inline: 22px; }
.selection-card > p { padding-inline: 20px; }
.selection-card li { padding-inline: 6px; }
.project-row, .project-row:hover { padding-inline: 31px; }
.detail-body > .detail-panel { padding: 26px; }

/* The CTA is now a lit actuator in a machined casing, with visible compression on press. */
.header-cta, .button {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid #7da8b0;
  border-radius: 7px;
  background: linear-gradient(145deg, #e5f7f8 0%, #557d85 5%, #213b43 16%, #102027 100%);
  box-shadow: inset 0 1px 0 rgba(247, 255, 255, .54), inset 0 -2px 0 rgba(0, 0, 0, .46), 0 1px 0 #b0dce1, 0 3px 0 #35545c, 0 6px 0 #13252c, 0 9px 16px rgba(0, 0, 0, .42);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.header-cta::before, .button::before {
  position: absolute;
  z-index: 0;
  inset: 3px 3px 7px;
  border: 1px solid rgba(228, 251, 253, .38);
  border-radius: 4px;
  background: var(--actuator-face, linear-gradient(180deg, #24414b, #12232b));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 4px 7px rgba(255, 255, 255, .1), inset 0 -4px 0 rgba(0, 0, 0, .3), 0 1px 0 rgba(5, 12, 16, .6);
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  content: "";
  pointer-events: none;
  transition: inset .16s ease, filter .16s ease, background .16s ease;
}
.header-cta > span, .button > span { position: relative; z-index: 1; }
.header-cta { min-height: 46px; padding: 0 15px; border-color: #8bb8bf; color: #f3fcfd; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.header-cta::before { --actuator-face: linear-gradient(180deg, #527982 0%, #294a54 22%, #17313a 70%, #102129 100%); }
.header-cta > span:first-child { margin: 0; color: inherit; }
.header-cta > span:last-child { display: grid; width: 18px; height: 18px; place-items: center; margin-left: 9px; border: 1px solid rgba(105, 230, 255, .65); border-radius: 50%; color: var(--signal-cyan); background: radial-gradient(circle at 35% 25%, #527c84, #132832 72%); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .45), 0 1px 2px rgba(0, 0, 0, .6); font-size: 11px; }
.button { min-height: 54px; padding: 0 18px; gap: 18px; color: #effdff; text-shadow: 0 1px 1px rgba(0, 0, 0, .55); }
.button-primary { --actuator-face: linear-gradient(180deg, #f4ffd9 0%, #dbff8c 15%, #c6f55a 52%, #86bd28 100%); color: #16220b; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.button-secondary { --actuator-face: linear-gradient(180deg, #addce2 0%, #47747f 9%, #274954 45%, #17323d 100%); color: #f0fdff; }
.button-label { white-space: nowrap; }
.button-primary > span:first-child, .button-secondary > span:first-child { font-size: 11px; }
.button-primary > span:last-child, .button-secondary > span:last-child { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border: 1px solid rgba(226, 252, 255, .64); border-radius: 50%; background: radial-gradient(circle at 35% 24%, rgba(255,255,255,.72), rgba(255,255,255,.1) 42%, rgba(0,0,0,.2) 100%); box-shadow: inset 0 1px 2px rgba(255,255,255,.55), inset 0 -2px 3px rgba(0,0,0,.28), 0 1px 1px rgba(0,0,0,.45); font-size: 14px; }
.button-primary > span:last-child { color: #315310; border-color: rgba(49, 83, 16, .52); }
.button-secondary > span:last-child { color: var(--signal-cyan); }
.header-cta:hover, .button:hover { transform: translateY(-3px); border-color: #bcf5fa; filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(247, 255, 255, .65), inset 0 -2px 0 rgba(0, 0, 0, .4), 0 1px 0 #c5f0f3, 0 4px 0 #466c75, 0 8px 0 #13252c, 0 13px 20px rgba(0, 0, 0, .48); }
.header-cta:hover::before, .button:hover::before { inset: 3px 3px 8px; filter: brightness(1.08); }
.header-cta:active, .button:active { transform: translateY(5px); filter: brightness(.97); box-shadow: inset 0 1px 0 rgba(247, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .44), 0 1px 0 #58777d, 0 2px 0 #13252c, 0 3px 7px rgba(0, 0, 0, .4); }
.header-cta:active::before, .button:active::before { inset: 5px 3px 3px; }

.filter {
  min-height: 40px;
  border: 1px solid #577a82;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(205, 249, 255, .16), transparent 30%), linear-gradient(180deg, #203a44, #102029 78%, #0c171d);
  box-shadow: inset 0 1px 0 rgba(244, 255, 255, .28), inset 0 -2px 0 rgba(0, 0, 0, .48), 0 1px 0 #779da3, 0 3px 0 #193039, 0 5px 8px rgba(0, 0, 0, .28);
}
.filter.is-active { color: #1a280d; border-color: #e8ffd0; background: linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 34%), linear-gradient(180deg, #dcff92, #b7ed47 66%, #82b92a); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 -3px 0 rgba(54,88,13,.38), 0 1px 0 #f3ffd9, 0 3px 0 #526f21, 0 5px 9px rgba(94,142,23,.22); }
.filter:hover { transform: translateY(-2px); filter: brightness(1.1); }
.filter:active, .filter.is-active:active { transform: translateY(3px); box-shadow: inset 0 1px 1px rgba(255,255,255,.26), inset 0 -1px 0 rgba(0,0,0,.28), 0 1px 0 #13252c; }

@media (max-width: 760px) {
  .header-cta { min-height: 46px; }
  .project-row, .project-row:hover { padding-inline: 29px; }
  .architecture-head, .architecture-foot { padding-inline: 19px; }
  .detail-body > .detail-panel { padding: 23px; }
}
@media (max-width: 520px) {
  .header-cta { min-height: 46px; padding-inline: 12px; }
  .button { min-height: 50px; gap: 10px; padding-inline: 13px; font-size: 10px; }
  .button-primary > span:first-child, .button-secondary > span:first-child { font-size: 10px; }
  .button:hover, .header-cta:hover, .filter:hover { transform: none; filter: none; }
  .button:active, .header-cta:active { transform: translateY(4px); }
  .button-primary > span:last-child, .button-secondary > span:last-child { width: 18px; height: 18px; flex-basis: 18px; }
  :is(.hero-visual, .project-featured, .architecture, .project-row, .detail-body, .selection-card, .capability-card)::after { background-size: 16px 16px; background-position: left 6px top 6px, right 6px top 6px, left 6px bottom 6px, right 6px bottom 6px; }
  :is(.hero-visual, .project-featured, .architecture, .project-row, .detail-body, .selection-card, .capability-card)::before { inset: 3px; }
  .visual-topline, .hero-visual figcaption { padding-inline: 23px; }
  .project-featured { padding-inline: 27px; }
  .project-row, .project-row:hover { padding-inline: 29px; }
  .architecture-head, .architecture-foot { padding-inline: 18px; }
  .selection-card > p { padding-inline: 19px; }
  .detail-body > .detail-panel { padding: 21px; }
  .filter { min-height: 44px; }
}

/* Capability matrix: practical tool families, not arbitrary proficiency scores. */
.skills-section {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 8vw, 100px) 0;
  color: #e8eff3;
  background: radial-gradient(ellipse at 84% 18%, rgba(24, 96, 110, .19), transparent 32%), linear-gradient(180deg, #0b141c, #080d13 78%);
  border-top: 1px solid #1b303b;
  border-bottom: 1px solid #1b303b;
}
.skills-section::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(105, 230, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 230, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 78%, transparent);
  content: "";
  pointer-events: none;
}
.skills-section > .section-shell { position: relative; z-index: 1; }
.skills-section .section-heading { margin-bottom: 25px; }
.skills-section .section-heading .section-index { color: #8ba2ad; }
.skills-section .section-heading .section-index span { color: var(--signal); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.capability-card {
  min-width: 0;
  min-height: 205px;
  padding: 23px 24px 19px;
  background: linear-gradient(145deg, rgba(18, 35, 45, .96), rgba(10, 19, 27, .96));
  border: 1px solid rgba(105, 230, 255, .22);
  box-shadow: inset 0 1px 0 rgba(207, 245, 250, .1), inset 0 -2px 0 rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .16);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.capability-card::before { border-color: rgba(105, 230, 255, .24); }
.capability-card::after { background-size: 18px 18px; background-position: left 7px top 7px, right 7px top 7px, left 7px bottom 7px, right 7px bottom 7px; }
.capability-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #86a1ab; font: 8px/1.5 ui-monospace, "Cascadia Code", monospace; letter-spacing: .11em; }
.capability-head span:first-child { color: var(--signal); }
.capability-card h3 { margin: 17px 0 7px; color: #eff7f8; font-size: 16px; font-weight: 740; letter-spacing: -.035em; }
.capability-card > p { margin: 0; color: #9aadb6; font-size: 11px; line-height: 1.8; }
.capability-tools { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0 0; padding: 0; list-style: none; }
.capability-tools li { padding: 3px 6px; color: #b7d1d8; background: rgba(21, 42, 52, .8); border: 1px solid #2b4955; font: 8px/1.4 ui-monospace, "Cascadia Code", monospace; }

@media (max-width: 980px) {
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .skills-section { padding: 57px 0; }
  .capability-grid { grid-template-columns: 1fr; gap: 10px; }
  .capability-card { min-height: 0; padding: 20px 24px 18px; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
  .capability-card h3 { margin-top: 12px; font-size: 15px; }
  .capability-card > p { font-size: 10px; }
}
