:root {
  color-scheme:dark;
  --bg:#000000;
  --surface:#111111;
  --surface-raised:#1b1b1b;
  --hairline:#383838;
  --hairline-soft:#252525;
  --ink:#ededed;
  --muted:#b4b4b4;
  --quiet:#929292;
  --accent:#91d4bf;
  --accent-soft:#b2e6d5;
  --font:Inter, 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  --content:1216px;
  --gutter:clamp(19px,4.6vw,72px);
  --radius:12px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:var(--font); -webkit-font-smoothing: antialiased; line-height:1.55; }
a { color:inherit; text-decoration:none; }
button { font:inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color:#000; background:var(--accent); }
[hidden] { display:none !important; }
h1,h2,h3,p { margin-top:0; }
em { font-style:normal; color:var(--muted); }
.container { width:min(calc(100% - (2 * var(--gutter))), var(--content)); margin-inline:auto; }
.skip-link { position:fixed; z-index:999; top:-80px; left:18px; background:var(--accent); color:#000; padding:12px 18px; font-weight:600; }
.skip-link:focus { top:12px; }
.eyebrow { display:block; font:500 12px/1.45 var(--mono); color:var(--accent); letter-spacing:.07em; }
.signal-dot { width:8px;height:8px;border-radius:50%;background:var(--accent);display:inline-block;box-shadow:0 0 0 3px rgba(199,216,160,.08); flex:none; }
.section { padding-block:clamp(90px, 10vw, 160px); }
.section-top { display:flex; gap:30px; justify-content:space-between; align-items:end; margin-bottom:clamp(36px,5vw,66px); }
.section-top h2,.about-grid h2,.contact-grid h2 { font-weight:500; font-size:clamp(38px, 5.2vw, 78px); line-height:1.07; letter-spacing:-.06em; margin:20px 0 0; }
.section-description { width:min(330px, 100%); color:var(--muted); margin:0 0 5px; font-size:15px; line-height:1.7; }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } html { scroll-behavior:auto; } }

/* Canonical site stylesheet. Each declaration is defined only once per selector and breakpoint. */

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand-mark {
  font: 700 29px/.9 var(--font);
  letter-spacing: -.10em;
}

.brand-dot {
  color: var(--accent);
}

.brand-suffix {
  font: 500 11px var(--mono);
  color: var(--quiet);
}

.desktop-nav {
  margin-inline: auto;
  align-items: center;
}

.desktop-nav a {
  transition: color .2s;
  display: inline-flex;
  align-items: center;
}

.desktop-nav a:hover,.header-email:hover {
  color: var(--accent);
}

.header-email {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
}

.header-email span {
  color: var(--accent);
  font-size: 18px;
}

.site-footer {
  padding-block: 30px;
}

.footer-inner a {
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--accent);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  font: 11px/1.45 var(--mono);
  letter-spacing: .1em;
  color: var(--muted);
}

.kicker-divider {
  color: var(--quiet);
  padding: 0 6px;
}

.hero-main h1 em {
  color: var(--accent);
}

.hero-underline {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 11px;
}

.hero-actions {
  align-items: center;
}

.button {
  transition: transform .22s,background .22s,color .22s,border-color .22s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-quiet:hover {
  color: var(--accent);
}

.hero-side {
  flex-direction: column;
}

.hero-side-top,.hero-side-footer {
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font: 11px var(--mono);
  letter-spacing: .04em;
}

.hero-side-top span {
  color: var(--accent);
}

.hero-side-number {
  margin-top: auto;
  font-size: clamp(76px, 8vw, 139px);
  letter-spacing: -.08em;
  font-weight: 300;
  line-height: 1.2;
  color: #4b5049;
}

.hero-side-number span {
  font: 11px var(--mono);
  color: var(--accent);
  letter-spacing: 0;
  margin-left: 10px;
}

.hero-side-text strong {
  display: block;
  font-weight: 500;
  font-size: 22px;
  max-width: 270px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.hero-side-text p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 13px 0 25px;
}

.hero-side-footer {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 22px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(80px,9vw,140px);
  border-top: 1px solid var(--hairline-soft);
  padding: 20px 0;
  color: var(--quiet);
  font: 11px var(--mono);
  letter-spacing: .08em;
}

.hero-bottom span:last-child {
  font-size: 20px;
  color: var(--accent);
}

.work-filter button {
  transition: background .2s,color .2s,border-color .2s;
}

.about-copy > p {
  color: #bdc1ba;
  font-size: clamp(16px,1.45vw,19px);
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-note {
  flex-direction: column;
}

.about-note span {
  color: var(--accent);
  font: 11px var(--mono);
}

.about-note strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.toolkit-list {
  border-top: 1px solid var(--hairline);
}

.toolkit-row {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 70px minmax(0,.8fr) minmax(0,1.3fr);
  align-items: start;
  gap: 25px;
  border-bottom: 1px solid var(--hairline-soft);
}

.toolkit-index {
  font: 12px var(--mono);
  color: var(--accent);
  margin-top: 3px;
}

.toolkit-row h3 {
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -.03em;
  margin: 0 0 5px;
}

.toolkit-row p {
  color: var(--quiet);
  font-size: 13px;
  margin: 0;
}

.toolkit-tags,.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.toolkit-tags span,.case-tags span {
  display: inline-flex;
  padding: 8px 11px;
  color: #c0c5bc;
  border: 1px solid var(--hairline);
  font: 12px var(--mono);
}

.contact-section {
  border-top: 1px solid var(--hairline-soft);
}

.contact-grid p {
  max-width: 405px;
}

.contact-action {
  padding-bottom: 3px;
  min-width: 0;
}

.contact-email {
  border-bottom: 1px solid var(--hairline);
}

.contact-email span {
  font-size: 22px;
  color: var(--accent);
  flex: none;
}

.social-links {
  margin-top: 24px;
}

.social-links a {
  min-height: 44px;
}

.project-card {
  transition: border-color .25s;
}

.project-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--quiet);
  text-transform: uppercase;
  font: 11px/1.5 var(--mono);
  letter-spacing: .04em;
}

.project-meta span:first-child {
  color: var(--accent);
  margin-right: auto;
}

.project-arrow {
  display: inline-block;
  font-size: .5em;
  transform: translateY(-6px);
  color: var(--accent);
}

.project-foot {
  flex-wrap: wrap;
}

.project-text-link {
  color: var(--ink);
  white-space: nowrap;
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
}

.project-text-link:hover {
  color: var(--accent);
}

.project-text-link span {
  color: var(--accent);
  padding-left: 5px;
}

.project-card:not(.project-featured) .project-text-link {
  display: none;
}

.project-featured {
  flex-direction: row;
}

.project-featured .project-copy {
  flex: 1.1;
}

.project-featured .project-meta span:first-child {
  margin-right: 0;
}

.project-featured .project-copy>p {
  font-size: 16px;
}

.project-featured .visual-network {
  flex: .95;
  min-width: 0;
}

.project-card:not(.project-featured) [class^="visual-"] {
  min-height: 255px;
}

.visual-network {
  display: grid;
  min-width: 0;
}

.topology {
  position: relative;
  min-height: 280px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.topology-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at center,#000 25%,transparent 90%);
}

.topology-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.topology-lines path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-dasharray: 3 4;
  opacity: .8;
}

.topology-lines path.topology-signal {
  stroke-width: 1.5;
  stroke-dasharray: 10 18;
  animation: signal-flow 16s linear infinite;
}

@keyframes signal-flow {
to {
  stroke-dashoffset: -400;
}
}

.topo-node {
  position: absolute;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%,-50%);
  min-width: 96px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #6d8064;
  font: 11px var(--mono);
  white-space: nowrap;
}

.topo-node:not(.topo-static) {
  cursor: pointer;
}

.topo-node:not(.topo-static):hover,.topo-node[aria-pressed="true"] {
  border-color: var(--accent);
}

.topo-node.topo-host {
  left: 50%;
  top: 20%;
}

.topo-node.topo-firewall {
  left: 26%;
  top: 55%;
}

.topo-node.topo-monitor {
  left: 76%;
  top: 55%;
}

.topo-node.topo-lab {
  left: 50%;
  top: 80%;
}

.node-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.topology-interactive {
  min-height: 500px;
}

.topology-readout {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 18px;
  right: 18px;
  border: 1px solid #354632;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.topology-readout .readout-label {
  font: 10px var(--mono);
  display: flex;
  justify-content: space-between;
}

.topology-readout strong {
  font-weight: 600;
  font-size: 14px;
}

.topology-readout>span:last-child {
  font-size: 12px;
}

.topology-interactive .topo-lab {
  top: 70%;
}

.topology-corner {
  position: absolute;
  font: 19px var(--mono);
}

.topology-corner.tl {
  top: 10px;
  left: 13px;
}

.topology-corner.br {
  bottom: 10px;
  right: 13px;
}

.visual-caption {
  font: 10px var(--mono);
  color: var(--quiet);
  letter-spacing: .1em;
}

.visual-registry,.visual-security,.visual-workflow,.visual-website {
  padding: 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.visual-registry {
  font-family: var(--mono);
}

.registry-path {
  font-size: 12px;
  margin: 17px 0 8px;
}

.registry-tree {
  border-left: 1px solid #516150;
  padding-left: 17px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.registry-bottom {
  margin-top: 14px;
  border-top: 1px solid #344235;
  padding-top: 12px;
  font: 10px var(--mono);
}

.security-steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: clamp(11px,1.5vw,15px);
}

.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #354c45;
  padding-top: 15px;
  font: 10px var(--mono);
}

.workflow-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
}

.workflow-steps div:not(.flow-arrow) {
  flex: 1;
  min-width: 0;
  padding: 15px 8px;
  border: 1px solid #585243;
  font: 11px var(--mono);
}

.workflow-steps strong {
  display: block;
  margin-top: 10px;
  font: 500 17px var(--font);
}

.workflow-foot {
  font: 10px var(--mono);
}

.visual-website {
  background: #11161b;
  align-items: center;
  justify-content: center;
}

.mock-browser {
  width: 78%;
  height: 205px;
  border: 1px solid #405264;
  background: #18232d;
  transform: rotate(-4deg);
  box-shadow: 16px 18px 0 #0d1116;
}

.mock-dots {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid #405264;
}

.mock-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #738b97;
}

.mock-window {
  padding: 23px;
}

.mock-title {
  background: #becbd0;
  width: 58%;
  height: 17px;
  margin-bottom: 20px;
}

.mock-line {
  background: #566d77;
  width: 61%;
  height: 6px;
  margin-bottom: 8px;
}

.mock-line.long {
  width: 83%;
}

.mock-pill {
  background: #adc4c8;
  width: 70px;
  height: 19px;
  margin-top: 21px;
}

.case-study-page {
  padding: clamp(35px,5vw,70px) 0 clamp(100px,12vw,160px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  color: var(--quiet);
}

.breadcrumb a {
  color: var(--accent);
  min-height: 44px;
}

.case-hero {
  gap: 30px;
}

.case-hero h1 {
  font-weight: 500;
  max-width: 920px;
}

.case-hero p {
  max-width: 690px;
  font-size: clamp(17px,1.9vw,22px);
  line-height: 1.6;
  margin: 0;
}

.case-number {
  color: var(--quiet);
  white-space: nowrap;
  font: 10px var(--mono);
}

.case-number span {
  display: block;
  color: var(--accent);
  margin-top: 8px;
}

.case-visual {
  height: clamp(280px,42vw,560px);
}

.case-visual>[class^="visual-"] {
  height: 100%;
}

.case-visual .topology {
  min-height: 100%;
}

.case-main {
  display: grid;
  grid-template-columns: minmax(200px,.55fr) minmax(0,1.15fr);
  gap: clamp(45px,9vw,155px);
  padding-top: clamp(60px,8vw,110px);
}

.case-sidebar {
  align-self: start;
  position: sticky;
  top: 110px;
}

.aside-label {
  color: var(--accent);
  font: 11px var(--mono);
  margin-bottom: 18px;
}

.aside-more {
  margin-top: 50px;
}

.case-sidebar p {
  color: var(--muted);
  font-size: 14px;
}

.case-story section {
  border-bottom: 1px solid var(--hairline-soft);
  padding: 0 0 56px;
  margin-bottom: 56px;
}

.story-index {
  color: var(--accent);
  font: 11px var(--mono);
}

.case-story h2 {
  font-weight: 500;
  font-size: clamp(26px,3vw,41px);
  line-height: 1.2;
  letter-spacing: -.05em;
  margin: 16px 0 20px;
}

.case-story p,.story-list {
  font-size: 17px;
  line-height: 1.9;
  max-width: 720px;
}

.story-list {
  padding-left: 23px;
}

.story-list li {
  margin-bottom: 12px;
  padding-left: 8px;
}

.story-list li::marker {
  color: var(--accent);
}

.evidence-note {
  border-left: 2px solid var(--accent);
  padding: 12px 0 12px 26px;
}

.evidence-note span {
  color: var(--accent);
  font: 11px var(--mono);
}

.evidence-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 0;
}

.case-bottom {
  border-top: 1px solid var(--hairline);
  margin-top: 110px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 36px;
}

.case-bottom a {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 64px;
}

.case-bottom a:last-child {
  text-align: right;
}

.case-bottom small {
  color: var(--accent);
  font: 11px var(--mono);
}

.case-bottom strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.case-bottom a:hover strong {
  color: var(--accent);
}

@media (max-width:1100px) {
.hero-grid {
  grid-template-columns: minmax(0,1.4fr) minmax(230px,.7fr);
  gap: 30px;
}
}

@media (max-width:1100px) {
.hero-side {
  min-height: 365px;
}
}

@media (max-width:1100px) {
.hero-main h1 {
  font-size: clamp(52px,7.5vw,90px);
}
}

@media (max-width:1100px) {
.header-inner {
  gap: 20px;
}
}

@media (max-width:1100px) {
.brand {
  min-width: 152px;
}
}

@media (max-width:1100px) {
.desktop-nav {
  gap: 19px;
}
}

@media (max-width:1100px) {
.project-featured h3 {
  margin-top: 62px;
}
}

@media (max-width:1100px) {
.project-featured {
  min-height: 460px;
}
}

@media (max-width:1100px) {
.topology-interactive {
  min-height: 460px;
}
}

@media (max-width:800px) {
.desktop-nav,.header-email {
  display: none;
}
}

@media (max-width:800px) {
.header-inner {
  min-height: 70px;
  justify-content: space-between;
}
}

@media (max-width:800px) {
.mobile-nav {
  display: block;
  position: relative;
}
}

@media (max-width:800px) {
.mobile-nav summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
}
}

@media (max-width:800px) {
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
}

@media (max-width:800px) {
.menu-lines {
  display: grid;
  gap: 5px;
}
}

@media (max-width:800px) {
.menu-lines i {
  width: 20px;
  height: 1px;
  background: var(--accent);
  display: block;
}
}

@media (max-width:800px) {
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 13px);
  width: min(290px,calc(100vw - 40px));
  padding: 10px;
  background: #111311;
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  z-index: 20;
  display: flex;
  flex-direction: column;
}
}

@media (max-width:800px) {
.mobile-nav nav a {
  padding: 13px 12px;
  min-height: 44px;
  color: var(--ink);
}
}

@media (max-width:800px) {
.mobile-nav nav a:hover {
  background: var(--surface-raised);
  color: var(--accent);
}
}

@media (max-width:800px) {
.hero-grid {
  grid-template-columns: 1fr;
  gap: 55px;
}
}

@media (max-width:800px) {
.hero-main h1 {
  font-size: clamp(60px,10vw,94px);
}
}

@media (max-width:800px) {
.hero-side {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  column-gap: 25px;
}
}

@media (max-width:800px) {
.hero-side-top {
  grid-column: 1/-1;
}
}

@media (max-width:800px) {
.hero-side-number {
  margin: auto 0;
}
}

@media (max-width:800px) {
.hero-side-text {
  align-self: center;
}
}

@media (max-width:800px) {
.hero-side-footer {
  grid-column: 1/-1;
}
}

@media (max-width:800px) {
.project-featured {
  flex-direction: column;
}
}

@media (max-width:800px) {
.project-featured h3 {
  margin-top: 48px;
}
}

@media (max-width:800px) {
.project-featured .visual-network {
  min-height: 425px;
}
}

@media (max-width:800px) {
.project-featured .project-foot {
  margin-top: 35px;
}
}

@media (max-width:800px) {
.topology-interactive {
  min-height: 425px;
}
}

@media (max-width:800px) {
.about-grid,.contact-grid {
  grid-template-columns: 1fr;
  gap: 35px;
}
}

@media (max-width:800px) {
.toolkit-row {
  grid-template-columns: 40px minmax(0,1fr);
}
}

@media (max-width:800px) {
.toolkit-tags {
  grid-column: 2;
}
}

@media (max-width:800px) {
.case-hero {
  flex-direction: column;
  align-items: start;
  gap: 23px;
}
}

@media (max-width:800px) {
.case-number span {
  display: inline;
}
}

@media (max-width:570px) {
:root {
  --gutter: 20px;
}
}

@media (max-width:570px) {
.brand-mark {
  font-size: 27px;
}
}

@media (max-width:570px) {
.brand-suffix {
  font-size: 10px;
}
}

@media (max-width:570px) {
.hero {
  padding-top: 40px;
}
}

@media (max-width:570px) {
.hero-kicker {
  font-size: 9px;
  gap: 7px;
  letter-spacing: .02em;
  flex-wrap: wrap;
}
}

@media (max-width:570px) {
.hero-grid {
  margin-top: 55px;
}
}

@media (max-width:570px) {
.hero-main h1 {
  font-size: clamp(45px,12.6vw,70px);
  letter-spacing: -.08em;
}
}

@media (max-width:570px) {
.hero-intro {
  font-size: 17px;
  line-height: 1.65;
}
}

@media (max-width:570px) {
.hero-actions {
  align-items: stretch;
}
}

@media (max-width:570px) {
.button {
  min-height: 49px;
}
}

@media (max-width:570px) {
.hero-side {
  display: flex;
  min-height: 330px;
}
}

@media (max-width:570px) {
.hero-side-number {
  font-size: 80px;
  margin-top: auto;
}
}

@media (max-width:570px) {
.hero-side-text strong {
  font-size: 20px;
}
}

@media (max-width:570px) {
.hero-bottom {
  margin-top: 74px;
  font-size: 9px;
}
}

@media (max-width:570px) {
.section {
  padding-block: 85px;
}
}

@media (max-width:570px) {
.section-top {
  flex-direction: column;
  align-items: start;
  gap: 21px;
}
}

@media (max-width:570px) {
.section-top h2,.about-grid h2,.contact-grid h2 {
  font-size: clamp(36px,10vw,54px);
}
}

@media (max-width:570px) {
.section-description {
  font-size: 14px;
}
}

@media (max-width:570px) {
.work-filter {
  gap: 6px;
}
}

@media (max-width:570px) {
.work-filter button {
  padding: 9px 11px;
  font-size: 11px;
}
}

@media (max-width:570px) {
.projects-list {
  grid-template-columns: 1fr;
  gap: 15px;
}
}

@media (max-width:570px) {
.project-featured {
  grid-column: auto;
}
}

@media (max-width:570px) {
.project-card h3 {
  margin-top: 36px;
  font-size: 34px;
}
}

@media (max-width:570px) {
.project-featured h3 {
  margin-top: 36px;
  font-size: 39px;
}
}

@media (max-width:570px) {
.project-copy {
  padding: 25px;
}
}

@media (max-width:570px) {
.project-foot {
  padding-top: 35px;
}
}

@media (max-width:570px) {
.project-card:not(.project-featured) .project-text-link {
  display: inline;
}
}

@media (max-width:570px) {
.project-card:not(.project-featured) [class^="visual-"] {
  min-height: 245px;
}
}

@media (max-width:570px) {
.project-featured .visual-network {
  min-height: 375px;
}
}

@media (max-width:570px) {
.topology-interactive {
  min-height: 375px;
}
}

@media (max-width:570px) {
.topology-readout {
  bottom: 13px;
  left: 12px;
  right: 12px;
}
}

@media (max-width:570px) {
.topo-node {
  font-size: 10px;
  min-width: 76px;
  min-height: 36px;
  padding: 8px;
}
}

@media (max-width:570px) {
.topology-interactive .topo-lab {
  top: 69%;
}
}

@media (max-width:570px) {
.toolkit-row {
  gap: 13px;
  grid-template-columns: 27px minmax(0,1fr);
  padding: 25px 0;
}
}

@media (max-width:570px) {
.toolkit-tags {
  margin-top: 9px;
}
}

@media (max-width:570px) {
.toolkit-tags span {
  font-size: 11px;
  padding: 7px 9px;
}
}

@media (max-width:570px) {
.contact-email {
  font-size: clamp(17px,5.4vw,25px);
}
}

@media (max-width:570px) {
.social-links {
  gap: 17px;
}
}

@media (max-width:570px) {
.footer-inner {
  flex-direction: column;
  align-items: start;
  gap: 8px;
}
}

@media (max-width:570px) {
.case-study-page {
  padding-top: 22px;
}
}

@media (max-width:570px) {
.breadcrumb {
  margin-bottom: 35px;
}
}

@media (max-width:570px) {
.case-hero h1 {
  font-size: clamp(44px,11.1vw,65px);
}
}

@media (max-width:570px) {
.case-hero p {
  font-size: 17px;
}
}

@media (max-width:570px) {
.case-visual {
  height: 280px;
}
}

@media (max-width:570px) {
.case-main {
  grid-template-columns: 1fr;
  gap: 55px;
}
}

@media (max-width:570px) {
.case-sidebar {
  position: static;
}
}

@media (max-width:570px) {
.case-sidebar .aside-more {
  margin-top: 30px;
}
}

@media (max-width:570px) {
.case-story section {
  margin-bottom: 43px;
  padding-bottom: 43px;
}
}

@media (max-width:570px) {
.case-story p,.story-list {
  font-size: 16px;
}
}

@media (max-width:570px) {
.case-bottom {
  gap: 20px;
  margin-top: 80px;
}
}

@media (max-width:570px) {
.case-bottom strong {
  font-size: 15px;
}
}

@media (max-width:570px) {
.workflow-steps strong {
  font-size: 14px;
}
}

@media (max-width:359px) {
:root {
  --gutter: 16px;
}
}

@media (max-width:359px) {
.hero-main h1 {
  font-size: 45px;
}
}

@media (max-width:359px) {
.hero-kicker {
  font-size: 8px;
}
}

@media (max-width:359px) {
.project-card h3 {
  font-size: 30px;
}
}

@media (max-width:359px) {
.project-featured h3 {
  font-size: 35px;
}
}

@media (max-width:359px) {
.project-copy {
  padding: 20px;
}
}

@media (max-width:359px) {
.project-meta {
  gap: 9px;
  font-size: 10px;
}
}

@media (max-width:359px) {
.project-foot {
  font-size: 10px;
}
}

@media (max-width:359px) {
.topo-node {
  font-size: 9px;
  min-width: 70px;
  padding: 7px;
}
}

@media (max-width:359px) {
.topo-node.topo-firewall {
  left: 22%;
}
}

@media (max-width:359px) {
.topo-node.topo-monitor {
  left: 78%;
}
}

.ui-icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
}

::selection {
  background: #91d4bf;
  color: #000;
}

body {
  background: #000;
  color: var(--ink);
}

a,button {
  transition: color .18s ease,background-color .18s ease,border-color .18s ease,transform .18s ease;
}

.section {
  padding-block: clamp(74px,8.3vw,122px);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent);
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .11em;
}

.section-top {
  align-items: end;
  gap: 36px;
  margin-bottom: 32px;
}

.section-top h2,.about-grid h2,.contact-grid h2 {
  color: var(--ink);
  font-size: clamp(31px,4.2vw,55px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 650;
  margin: 0;
}

.section-description {
  max-width: 345px;
  width: 100%;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.site-header {
  background: rgba(9,9,9,.94);
  border-bottom: 1px solid var(--hairline-soft);
  z-index: 70;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--accent);
  border: 1px solid #33564d;
  background: #111b18;
  border-radius: 8px;
}

.desktop-nav {
  margin-left: auto;
  margin-right: 0;
  display: flex;
  gap: clamp(15px,1.9vw,28px);
}

.desktop-nav a {
  color: #b7b7b7;
  min-height: 44px;
  font-weight: 470;
  font-size: 13px;
}

.desktop-nav a:hover,.desktop-nav a:focus-visible {
  color: var(--ink);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 19px;
  border-left: 1px solid var(--hairline);
}

.header-social a {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #c7c7c7;
}

.header-social a:hover {
  background: #232323;
  color: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  padding-top: clamp(64px,7vw,100px);
  padding-bottom: clamp(75px,9vw,125px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(340px,.8fr);
  align-items: center;
  gap: clamp(35px,5vw,82px);
  margin-top: 0;
}

.intro-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  color: #adadad;
  font-size: 12px;
  letter-spacing: .01em;
}

.intro-kicker svg {
  color: var(--accent);
}

.hero-main h1 {
  font-size: clamp(61px,7.5vw,108px);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: -.073em;
  margin: 0;
  max-width: 650px;
}

.hero-main h1 span {
  color: #a7a7a7;
}

.hero-role {
  font-size: clamp(19px,2vw,26px);
  font-weight: 520;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -.035em;
  margin: 22px 0 0;
}

.hero-intro {
  max-width: 585px;
  color: #b9b9b9;
  font-size: clamp(15px,1.5vw,17px);
  line-height: 1.8;
  margin: 22px 0 29px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 17px;
  min-height: 45px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 570;
}

.button-light {
  background: var(--ink);
  color: #0b0b0b;
  border: 1px solid var(--ink);
}

.button-light:hover {
  background: #c6c6c6;
}

.button-quiet {
  background: #171717;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.button-quiet:hover {
  border-color: #777;
}

.hero-links {
  margin-top: 37px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aeaeae;
  font-size: 13px;
}

.hero-links a:hover {
  color: var(--accent);
}

.hero-side {
  display: block;
  min-height: 0;
  padding: 0;
  background: #101010;
  border: 1px solid #2f2f2f;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.27);
}

.mini-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 0 18px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
  color: #a3a3a3;
  font: 11px var(--mono);
}

.mini-title>svg:last-child {
  margin-left: auto;
  color: #9ad5c4;
}

.mini-dots {
  display: flex;
  gap: 6px;
}

.mini-dots i {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #636363;
}

.mini-dots i:first-child {
  background: #a9a9a9;
}

.mini-content {
  padding: 28px 27px 25px;
}

.mini-prompt {
  font: 12px var(--mono);
  color: var(--accent);
  margin-bottom: 19px;
}

.mini-content h2 {
  font-size: clamp(21px,2.1vw,28px);
  font-weight: 560;
  line-height: 1.24;
  letter-spacing: -.035em;
  margin: 0 0 12px;
}

.mini-content p {
  color: #b4b4b4;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 20px;
}

.mini-stack {
  border-block: 1px solid #303030;
  padding: 5px 0;
}

.mini-stack div {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 12px;
}

.mini-stack svg {
  color: #9bd8c6;
}

.mini-stack small {
  color: #898989;
  font: 10px var(--mono);
}

.mini-content>a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9eae4;
  font-size: 12px;
  margin-top: 22px;
}

.mini-content>a:hover {
  color: var(--accent);
}

.work-section {
  padding-top: 82px;
  border-top: 1px solid var(--hairline-soft);
}

.work-filter {
  gap: 8px;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.work-filter button {
  border: 1px solid #353535;
  background: #111;
  color: #bcbcbc;
  min-height: 41px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 12px;
  cursor: pointer;
}

.work-filter button:hover {
  border-color: #828282;
  color: var(--ink);
}

.work-filter button[aria-pressed="true"] {
  border-color: #575757;
  color: #fafafa;
  background: #2c2c2c;
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.project-card {
  background: #111;
  border: 1px solid #282828;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.project-card:hover {
  border-color: #535353;
}

.project-featured {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  min-height: 375px;
}

.project-copy {
  padding: clamp(23px,3vw,39px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-topline {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9c9c9c;
  font: 11px var(--mono);
}

.project-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: #1c2925;
  border: 1px solid #304c44;
  color: var(--accent);
  flex: none;
}

.project-card h3 {
  margin: 30px 0 12px;
  font-size: clamp(24px,2.5vw,33px);
  font-weight: 600;
  letter-spacing: -.046em;
  line-height: 1.23;
  max-width: 620px;
}

.project-featured h3 {
  margin: 33px 0 13px;
  font-size: clamp(30px,3.3vw,44px);
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-copy>p {
  color: #b6b6b6;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 500px;
}

.project-foot {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 36px;
  color: #898989;
  font: 11px/1.5 var(--mono);
}

.project-foot>span {
  max-width: 315px;
}

.project-foot a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: #dedede;
  font: 12px var(--font);
  font-weight: 560;
}

.project-foot a:hover {
  color: var(--accent);
}

.featured-visual {
  min-height: 375px;
  position: relative;
  background: #0d1412;
  border-left: 1px solid #26322f;
}

.featured-visual>.visual-network {
  height: 100%;
}

.featured-visual .topology {
  height: 100%;
}

.figure-note {
  position: absolute;
  bottom: 7px;
  right: 11px;
  font: 10px var(--mono);
  color: #aeb8b4;
  pointer-events: none;
}

.visual-network {
  background: #101716;
}

.topology {
  background: radial-gradient(ellipse at center,#1a2925 0%,#101916 53%,#0d1412 100%);
}

.topology-grid {
  background-image: linear-gradient(rgba(166,213,199,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(166,213,199,.07) 1px,transparent 1px);
}

.topology-lines {
  color: #587b71;
}

.topology-lines path.topology-signal {
  stroke: #9acfbf;
}

.topo-node {
  color: #e0ebe7;
  background: #172320;
  border-color: #43685d;
  border-radius: 6px;
}

.topo-node:not(.topo-static):hover,.topo-node[aria-pressed="true"] {
  background: #2a433a;
}

.topology-readout {
  background: rgba(12,20,17,.95);
  border-color: #3c6155;
  border-radius: 7px;
}

.topology-readout .readout-label {
  color: #a7c6ba;
}

.topology-readout strong {
  color: #ebf8f3;
}

.topology-readout>span:last-child {
  color: #b0c7bf;
}

.topology-corner {
  color: #6b9a8d;
}

.visual-registry {
  background: #171b1a;
}

.registry-path {
  color: #a4d6c6;
}

.registry-tree {
  border-color: #466c60;
  color: #d9e7e2;
}

.registry-bottom {
  border-color: #355048;
  color: #a0c5b9;
}

.visual-security {
  background: #121b1c;
}

.security-steps {
  color: #dde9e8;
}

.security-steps span:nth-child(even) {
  color: #9ccbbd;
}

.security-row {
  border-color: #365450;
  color: #afcfc3;
}

.visual-workflow {
  background: #181a19;
}

.workflow-steps div:not(.flow-arrow) {
  border-color: #3d514a;
  color: #b5c6c0;
}

.workflow-steps strong {
  color: #e7f1ec;
}

.flow-arrow {
  color: #9fcbbd;
}

.workflow-foot {
  color: #a7bdb5;
}

.about-section {
  background: #0f0f0f;
  border-block: 1px solid var(--hairline-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(45px,7vw,110px);
}

.about-grid h2 {
  max-width: 400px;
}

.about-small-icon {
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border: 1px solid #3b4a45;
  background: #1b2924;
  color: var(--accent);
  border-radius: 13px;
  margin-top: 40px;
}

.about-copy>p {
  color: #c0c0c0;
  font-size: clamp(15px,1.3vw,17px);
  line-height: 1.85;
  margin: 0 0 17px;
}

.about-note {
  display: flex;
  align-items: start;
  gap: 13px;
  border-top: 1px solid #343434;
  padding-top: 23px;
  margin-top: 31px;
  color: #ababab;
  font-size: 13px;
  line-height: 1.6;
}

.about-note svg {
  color: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

.skill-group {
  padding: 28px;
  background: #121212;
  border: 1px solid #2b2b2b;
  border-radius: 13px;
}

.skill-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #1c2b25;
  border: 1px solid #345044;
  margin-bottom: 28px;
}

.skill-group h3 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 580;
  letter-spacing: -.03em;
  margin: 0 0 9px;
}

.skill-group p {
  color: #9f9f9f;
  font-size: 13px;
  min-height: 39px;
  margin: 0 0 21px;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-group li {
  font: 11px var(--mono);
  color: #cecece;
  background: #1d1d1d;
  border: 1px solid #343434;
  border-radius: 6px;
  padding: 8px 10px;
}

.experience-section {
  background: #0f0f0f;
  border-block: 1px solid #262626;
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.experience-list article {
  display: flex;
  align-items: start;
  gap: 19px;
  border: 1px solid #2c2c2c;
  background: #151515;
  border-radius: 12px;
  padding: 26px;
}

.experience-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #1d2522;
  border-radius: 9px;
  color: var(--accent);
  flex: none;
}

.experience-list h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 570;
}

.experience-list p {
  font-size: 14px;
  color: #b4b4b4;
  line-height: 1.75;
  margin: 0;
}

.contact-section {
  background: #000;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,7vw,100px);
  align-items: center;
}

.contact-grid p {
  font-size: 15px;
  color: #aeaeae;
  line-height: 1.75;
  margin: 21px 0 0;
}

.contact-email {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: start;
  border: 1px solid #393939;
  background: #141414;
  border-radius: 11px;
  padding: 18px 19px;
  font-size: clamp(14px,1.55vw,20px);
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.contact-email svg {
  flex: none;
  color: var(--accent);
}

.contact-email svg:last-child {
  margin-left: auto;
}

.contact-email:hover {
  border-color: #6b9c8d;
  color: var(--ink);
}

.social-links {
  margin: 15px 0 0;
  display: flex;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.social-links a:hover {
  border-color: #666;
}

.contact-action .contact-note {
  margin: 17px 0 0;
  color: #919191;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid #252525;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  font: 12px var(--font);
  color: #858585;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.case-study-page {
  padding-block: clamp(28px,5vw,65px) clamp(90px,9vw,130px);
}

.breadcrumb {
  margin-bottom: 50px;
  font: 13px var(--font);
  gap: 12px;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a svg {
  transform: rotate(180deg);
}

.case-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.case-hero-icon {
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  background: #1a2823;
  border: 1px solid #345146;
  border-radius: 10px;
  width: 48px;
  height: 48px;
  margin-right: 14px;
  vertical-align: middle;
}

.case-hero .eyebrow {
  display: inline-block;
  vertical-align: middle;
}

.case-hero h1 {
  margin: 23px 0 16px;
  font-size: clamp(40px,5.7vw,75px);
  line-height: 1.12;
  letter-spacing: -.055em;
}

.case-hero p {
  color: #bdbdbd;
}

.case-visual {
  border: 1px solid #303030;
  border-radius: 14px;
  background: #111;
  overflow: hidden;
}

.case-sidebar .aside-label,.story-index,.evidence-note span {
  color: var(--accent);
}

.case-story p,.story-list {
  color: #bcbcbc;
}

.evidence-note {
  background: #101916;
  border-left-color: var(--accent);
}

.terminal-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #3e4c46;
  background: #1b2420;
  color: #d6e7e0;
  border-radius: 11px;
  padding: 12px 15px;
  font-size: 12px;
  box-shadow: 0 8px 33px #000a;
  cursor: pointer;
}

.terminal-launcher:hover {
  background: #2a3831;
}

.terminal-launcher svg {
  color: var(--accent);
}

.terminal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  background: #000b;
  padding: 18px;
}

.terminal-backdrop[hidden] {
  display: none !important;
}

.terminal-window {
  width: min(100%,540px);
  max-height: min(75vh,480px);
  display: flex;
  flex-direction: column;
  background: #141414;
  border: 1px solid #444;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 22px 80px #000d;
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #323232;
  background: #1b1b1b;
  padding: 11px 15px;
  font-size: 12px;
  color: #b8b8b8;
}

.terminal-top span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-top button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: #ccc;
  cursor: pointer;
}

.terminal-log {
  padding: 20px;
  overflow: auto;
  min-height: 160px;
  max-height: 340px;
  font: 12px/1.8 var(--mono);
  color: #c1c1c1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-log p {
  margin: 0 0 10px;
}

.terminal-log strong {
  color: var(--accent);
}

#terminal-form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #101010;
  border-top: 1px solid #333;
  padding: 13px 15px;
}

#terminal-form label {
  font: 11px var(--mono);
  color: var(--accent);
  white-space: nowrap;
}

#terminal-input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: 12px var(--mono);
  min-width: 0;
  flex: 1;
  outline: none;
}

#terminal-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width:1000px) {
.hero-grid {
  grid-template-columns: minmax(0,1.1fr) minmax(300px,.9fr);
  gap: 30px;
}
}

@media (max-width:1000px) {
.hero-main h1 {
  font-size: clamp(60px,7.5vw,85px);
}
}

@media (max-width:1000px) {
.header-inner {
  gap: 16px;
}
}

@media (max-width:1000px) {
.desktop-nav {
  gap: 16px;
}
}

@media (max-width:1000px) {
.project-featured {
  grid-template-columns: 1fr 1fr;
}
}

@media (max-width:820px) {
.desktop-nav,.header-social {
  display: none;
}
}

@media (max-width:820px) {
.mobile-nav {
  display: block;
  position: relative;
  margin-left: auto;
}
}

@media (max-width:820px) {
.mobile-nav summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  min-height: 44px;
  font-size: 13px;
}
}

@media (max-width:820px) {
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
}

@media (max-width:820px) {
.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  width: min(310px,calc(100vw - 38px));
  border: 1px solid #383838;
  border-radius: 12px;
  padding: 8px;
  background: #1b1b1b;
  box-shadow: 0 22px 40px #000c;
  z-index: 20;
}
}

@media (max-width:820px) {
.mobile-nav nav a {
  padding: 13px 15px;
  min-height: 45px;
}
}

@media (max-width:820px) {
.mobile-nav nav a:hover {
  background: #292929;
  border-radius: 7px;
}
}

@media (max-width:820px) {
.hero-grid {
  grid-template-columns: 1fr;
  gap: 36px;
}
}

@media (max-width:820px) {
.hero-main h1 {
  font-size: clamp(57px,10.1vw,82px);
}
}

@media (max-width:820px) {
.hero-side {
  width: min(100%,610px);
}
}

@media (max-width:820px) {
.mini-content {
  padding: 26px;
}
}

@media (max-width:820px) {
.skills-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
}

@media (max-width:820px) {
.experience-list {
  grid-template-columns: 1fr;
}
}

@media (max-width:820px) {
.about-grid,.contact-grid {
  grid-template-columns: 1fr;
  gap: 36px;
}
}

@media (max-width:820px) {
.about-small-icon {
  display: none;
}
}

@media (max-width:820px) {
.case-main {
  grid-template-columns: 1fr;
  gap: 35px;
}
}

@media (max-width:820px) {
.case-sidebar {
  position: static;
}
}

@media (max-width:620px) {
.section {
  padding-block: 75px;
}
}

@media (max-width:620px) {
.section-top {
  flex-direction: column;
  align-items: start;
  gap: 14px;
}
}

@media (max-width:620px) {
.hero {
  padding: 49px 0 70px;
}
}

@media (max-width:620px) {
.hero-main h1 {
  font-size: clamp(46px,11.5vw,70px);
}
}

@media (max-width:620px) {
.hero-role {
  font-size: 19px;
}
}

@media (max-width:620px) {
.intro-kicker {
  font-size: 11px;
}
}

@media (max-width:620px) {
.projects-list,.skills-grid {
  grid-template-columns: 1fr;
}
}

@media (max-width:620px) {
.project-featured {
  grid-column: auto;
  grid-template-columns: 1fr;
}
}

@media (max-width:620px) {
.featured-visual {
  min-height: 330px;
  border-left: 0;
  border-top: 1px solid #303a35;
}
}

@media (max-width:620px) {
.project-card h3,.project-featured h3 {
  margin-top: 26px;
  font-size: 27px;
}
}

@media (max-width:620px) {
.project-copy {
  padding: 25px;
}
}

@media (max-width:620px) {
.project-foot {
  padding-top: 27px;
}
}

@media (max-width:620px) {
.skill-group {
  padding: 24px;
}
}

@media (max-width:620px) {
.skill-group p {
  min-height: auto;
}
}

@media (max-width:620px) {
.experience-list article {
  padding: 22px;
}
}

@media (max-width:620px) {
.hero-links {
  margin-top: 27px;
}
}

@media (max-width:620px) {
.case-hero h1 {
  font-size: clamp(39px,10vw,56px);
}
}

@media (max-width:620px) {
.case-visual {
  height: 290px;
}
}

@media (max-width:620px) {
.contact-email {
  font-size: 15px;
}
}

@media (max-width:620px) {
.footer-inner {
  flex-direction: column;
  align-items: start;
  gap: 10px;
}
}

@media (max-width:620px) {
.terminal-launcher {
  bottom: 17px;
  right: 17px;
  padding: 11px;
}
}

@media (max-width:620px) {
.terminal-launcher span {
  display: none;
}
}

@media (max-width:365px) {
:root {
  --gutter: 16px;
}
}

@media (max-width:365px) {
.hero-main h1 {
  font-size: 45px;
}
}

@media (max-width:365px) {
.hero-links {
  gap: 11px;
}
}

@media (max-width:365px) {
.project-topline {
  font-size: 10px;
}
}

@media (max-width:365px) {
.project-copy {
  padding: 19px;
}
}

@media (max-width:365px) {
.mini-stack small {
  font-size: 9px;
}
}

@media (max-width:365px) {
.terminal-form label {
  font-size: 10px;
}
}

@media (prefers-reduced-motion:reduce) {
.topology-lines path.topology-signal {
  animation: none;
}
}

.terminal-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  width: min(560px, calc(100vw - 28px));
  max-width: 100%;
  max-height: min(78dvh, 570px);
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.terminal-dialog::backdrop {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
}

.terminal-dialog:not([open]) {
  display: none;
}

.terminal-dialog .terminal-window {
  width: 100%;
  max-height: min(78dvh,570px);
  background: #101010;
  border: 1px solid #343434;
  border-radius: 13px;
}

.terminal-dialog .terminal-top {
  min-height: 53px;
  background: #191919;
}

.terminal-dialog .terminal-top button:focus-visible {
  outline: 2px solid #a6d8ca;
  outline-offset: 2px;
}

.terminal-dialog .terminal-log {
  min-height: 210px;
  max-height: min(51dvh,365px);
  font: 12px/1.8 var(--mono);
}

.terminal-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-bottom: 4px;
}

.terminal-command {
  color: #c8f0e1;
}

.terminal-output {
  color: #c8c8c8;
}

.terminal-error {
  color: #f4a7a7;
}

.terminal-success {
  color: #a6e1bf;
}

.terminal-dim {
  color: #9c9c9c;
}

.terminal-welcome {
  color: #f0f0f0;
  margin: 0 0 5px;
}

.terminal-hint {
  color: #a8a8a8;
}

.terminal-dialog #terminal-prompt {
  font-size: 11px;
}

.terminal-dialog #terminal-input {
  font-size: 12px;
}

.terminal-key-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 16px;
  padding: 10px 16px;
  background: #151515;
  border-top: 1px solid #303030;
  color: #9b9b9b;
  font: 10px var(--mono);
}

.hero-links .social-github svg, .social-links .social-github svg {
  color: #e6e6e6;
}

.hero-links .social-linkedin svg, .social-links .social-linkedin svg {
  color: #61a8df;
}

.social-links .social-cv svg {
  color: #b5d8cb;
}

.social-links {
  gap: 20px;
}

.social-links a {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 6px 0;
  color: #cccccc;
  font-size: 13px;
}

.social-links a:hover {
  color: #f1f1f1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.social-links a:focus-visible,.hero-links a:focus-visible {
  outline: 2px solid #a6d8ca;
  outline-offset: 5px;
}

.case-story .story-aside {
  padding: 24px;
  border-left: 2px solid var(--accent);
  background: #141b19;
  margin: 0 0 54px;
  font-size: 17px;
  line-height: 1.8;
  color: #d2e1da;
}

.case-story .story-section {
  margin-bottom: 50px;
}

.case-study-page .case-visual {
  min-height: 300px;
}

@media (max-width: 560px) {
.terminal-dialog {
  max-height: calc(100dvh - 24px);
}
}

@media (max-width: 560px) {
.terminal-dialog .terminal-window {
  max-height: calc(100dvh - 24px);
}
}

@media (max-width: 560px) {
.terminal-dialog #terminal-form {
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 12px 14px;
}
}

@media (max-width: 560px) {
.terminal-dialog #terminal-prompt {
  font-size: 11px;
}
}

@media (max-width: 560px) {
.terminal-dialog .terminal-log {
  min-height: 160px;
  max-height: 50dvh;
  padding: 15px;
}
}

@media (max-width: 560px) {
.terminal-dialog #terminal-input {
  font-size: 14px;
  min-height: 28px;
  width: 100%;
}
}

@media (max-width: 560px) {
.terminal-key-hints {
  padding: 9px 12px;
}
}

@media (max-width: 560px) {
.case-story .story-aside {
  font-size: 15px;
  padding: 18px;
}
}

/* Header terminal control: available on every page without covering content. */
.site-header .terminal-launcher {
  position: static;
  flex: none;
  min-height: 44px;
  min-width: 44px;
  margin-left: 4px;
  padding: 9px 12px;
  border: 1px solid #373737;
  background: #171717;
  color: var(--ink);
  border-radius: 9px;
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
  z-index: auto;
}
.site-header .terminal-launcher:hover,
.site-header .terminal-launcher[aria-expanded="true"] {
  background: #232b27;
  border-color: #709e8f;
}
.site-header .terminal-launcher:focus-visible {outline: 2px solid var(--accent);outline-offset: 3px;}
.mobile-nav summary:focus-visible {outline: 2px solid var(--accent);outline-offset: 3px;}
#terminal-form #terminal-input { font-size: 14px; }
.terminal-dialog .terminal-log { font-size: 13px; line-height: 1.8; }
@media (max-width: 820px) {
  .site-header .terminal-launcher {margin-left: auto;}
  .mobile-nav {margin-left: 0;}
}
@media (max-width: 430px) {
  .site-header .terminal-launcher {padding: 10px;}
  .site-header .terminal-launcher span {display: none;}
  .site-header .brand {min-width: 0;}
}
/* At large text sizes the header retains accessible tap targets. */
@media (max-width: 620px) {
  .site-header .header-inner {gap: 8px;}
}

/* Accessible full-width mobile menu. */
.mobile-nav .mobile-trigger-close{display:none}
.mobile-nav[open] .mobile-trigger-open{display:none}
.mobile-nav[open] .mobile-trigger-close{display:inline-flex}
.mobile-nav .mobile-menu-panel{display:none}
@media(max-width:820px){
 .site-header{z-index:100}
 .mobile-nav{position:static;margin-left:auto}
 .mobile-nav summary{min-width:86px;min-height:46px;justify-content:center;gap:9px;border:1px solid #383838;border-radius:10px;padding:0 12px;font-size:14px;font-weight:600;background:#161616}
 .mobile-nav[open] summary{background:#202624;border-color:#5c766c;color:#ddf1e8}
 .mobile-nav[open]::before{content:"";position:fixed;inset:68px 0 0;background:rgba(0,0,0,.68);z-index:60}
 .mobile-nav .mobile-menu-panel{position:fixed;display:block;left:12px;right:12px;top:76px;max-height:calc(100dvh - 94px);overflow-y:auto;background:#111313;border:1px solid #353d39;box-shadow:0 24px 70px #000d;border-radius:18px;padding:19px;z-index:70;opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s}
 .mobile-nav[open] .mobile-menu-panel{opacity:1;visibility:visible;transform:none;pointer-events:auto}
 .mobile-menu-label{font:600 11px/1.5 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#9caeaa;margin:0 0 10px}
 .mobile-nav .mobile-menu-panel nav{position:static;display:grid;gap:5px;width:auto;padding:0;border:0;background:transparent;box-shadow:none}
 .mobile-nav .mobile-menu-panel nav a{display:grid;grid-template-columns:28px 1fr 18px;gap:11px;align-items:center;min-height:55px;border-radius:10px;padding:10px 12px;color:#e5e9e6;font-size:16px;font-weight:500;text-decoration:none}
 .mobile-nav .mobile-menu-panel nav a:hover,.mobile-nav .mobile-menu-panel nav a:focus-visible{background:#212825;color:#eafff4}
 .mobile-link-icon{display:flex;color:#91d4bf}
 .mobile-nav .mobile-menu-panel nav a>svg:last-child{color:#a0aaa6}
 .mobile-menu-footer{border-top:1px solid #303632;margin-top:12px;padding-top:15px;display:flex;flex-wrap:wrap;gap:10px}
 .mobile-menu-footer a{display:inline-flex;align-items:center;gap:8px;color:#d5dfd9;padding:10px 12px;border-radius:8px;border:1px solid #303632;font-size:13px;min-height:44px}
 .mobile-menu-footer a svg{color:#91d4bf}
}
@media(prefers-reduced-motion:reduce){.mobile-nav .mobile-menu-panel{transition:none}}

/* Floating terminal launcher. */
/* Focused refinements. No external fonts or scripts. */
.social-links,.hero-links,.footer-links{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}
.social-links a,.hero-links a,.footer-links a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:#dedede;text-decoration:none;overflow-wrap:anywhere}
.social-links a:hover,.hero-links a:hover,.footer-links a:hover{text-decoration:underline;text-underline-offset:5px;color:#fff}
.social-github svg{color:#eaeaea}.social-linkedin svg{color:#7cb9ed}.social-email svg{color:#a5daca}
.contact-section .contact-email{border:0;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0;color:#e6e6e6;text-decoration:none;font-size:clamp(13px,1.5vw,17px);overflow-wrap:anywhere}
.contact-section .contact-email:hover{text-decoration:underline;text-underline-offset:5px}
.contact-section .contact-action{min-width:0}
.lab-inventory{margin:0;padding:clamp(18px,3vw,30px);height:100%;min-height:300px;background:#111615;display:flex;flex-direction:column;justify-content:center;gap:14px}
.lab-inventory figcaption{display:grid;gap:5px}
.lab-inventory figcaption small{font:11px var(--mono);color:#a5daca;letter-spacing:.06em}
.lab-inventory figcaption strong{font-size:22px;color:#f2f2f2}
.lab-inventory figcaption span{font-size:12px;color:#b9c2bc}
.lab-inventory-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.lab-inventory-row{display:grid;text-align:left;gap:5px;min-width:0;padding:13px;border:1px solid #3b4840;border-radius:7px;background:#1b201d;color:#e8f0e8}
.lab-inventory-row strong{font-size:13px;font-weight:600}.lab-inventory-row small{font-size:11px;color:#b4c2b9}
button.lab-inventory-row{cursor:pointer}
button.lab-inventory-row:hover,button.lab-inventory-row[aria-pressed=true]{border-color:#92d5b9;background:#263029}
button.lab-inventory-row:focus-visible{outline:2px solid #a5daca;outline-offset:3px}
.lab-inventory-detail{border-top:1px solid #3b4840;padding-top:10px;display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#c9d3cc}
.lab-inventory-detail strong{color:#afdfc7}
.featured-visual .lab-inventory,.case-visual .lab-inventory{height:100%}
.visual-security .security-steps{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.visual-security .security-steps span{background:#1c211f;border:1px solid #414b44;padding:12px;border-radius:7px}
.visual-workflow .workflow-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.visual-workflow .workflow-steps div{min-width:0;padding:15px 8px;text-align:center}
.visual-workflow .flow-arrow,.topology-signal{display:none}
.terminal-dialog{width:min(690px,calc(100vw - 24px));max-height:min(86dvh,680px)}
.terminal-dialog .terminal-window{max-height:min(86dvh,680px);border:1px solid #425249;background:#090d0a;border-radius:10px}
.terminal-dialog .terminal-top{background:#171e19;min-height:49px}
.terminal-dialog .terminal-log{font-size:13px;line-height:1.65;max-height:min(57dvh,440px);background:#0b0f0c}
.terminal-dialog #terminal-prompt{color:#acd9c1;font:12px var(--mono)}
.terminal-dialog #terminal-input{font-size:15px}
.terminal-welcome{font-weight:600}
.terminal-launcher{right:max(15px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}
.site-footer{padding-bottom:112px}
@media(max-width:640px){.lab-inventory-rows{grid-template-columns:1fr 1fr}.lab-inventory-row{padding:10px}.lab-inventory-row small{font-size:10px}.visual-workflow .workflow-steps{grid-template-columns:1fr 1fr}.terminal-dialog .terminal-log{font-size:12px;min-height:160px}.terminal-dialog #terminal-input{font-size:16px}.terminal-dialog #terminal-form{flex-direction:column;align-items:stretch}.contact-section .contact-action{width:100%}}
@media(max-width:365px){.lab-inventory-rows{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.lab-inventory-row{transition:none!important}}

/* v9: OLED polish, accessible browser CV, compact footer and working scroll control. */
.terminal-dialog .terminal-window{background:#090909;border:1px solid #444;border-radius:14px;box-shadow:0 28px 90px #000e}
.terminal-dialog .terminal-top{background:#1b1b1b;border-bottom:1px solid #363636}
.terminal-dialog #terminal-title,.terminal-dialog .terminal-welcome{color:#f1f1f1}
.terminal-dialog .terminal-log{background:#0b0b0b;color:#d4d4d4}
.terminal-dialog #terminal-form{background:#151515;border-top:1px solid #393939}
.terminal-dialog #terminal-prompt{color:#a8c6dd}
.terminal-dialog #terminal-input{color:#f3f3f3}
.terminal-dialog .terminal-line.terminal-command{color:#dce8f0}
.terminal-dialog .terminal-line.terminal-output{color:#d0d0d0}
.terminal-dialog .terminal-key-hints{background:#171717}
.terminal-launcher{background:#171717;border-color:#454545}
.terminal-launcher:hover,.terminal-launcher[aria-expanded=true]{background:#252525;border-color:#8e9ea8}
.site-footer{padding:32px 0 130px;border-top:1px solid #292929}
.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:14px 24px;flex-wrap:wrap;font-size:13px;color:#b4b4b4}
.contact-section .contact-action{max-width:560px;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.contact-section .contact-email{display:flex;align-items:center;gap:12px;font-size:clamp(15px,2vw,21px);font-weight:550;color:#eee;overflow-wrap:anywhere;text-decoration:none;padding:12px 0;border-bottom:1px solid #434343}
.contact-section .contact-email span{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.contact-section .contact-email svg:first-child{color:#91d4bf;flex:0 0 auto}
.contact-section .contact-email svg:last-child{color:#b8c7d2;flex:0 0 auto}
.contact-section .social-links{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin:0}
.contact-section .social-links a{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:7px 0;min-height:40px;font-size:14px;color:#eee;text-decoration:none}
.contact-section .social-links .social-linkedin svg:first-child{color:#78bbef}
.contact-section .social-links a svg:last-child{width:13px;height:13px;color:#aaa}
.contact-section .contact-cv{display:inline-flex;gap:8px;align-items:center;color:#ddd;text-decoration:underline;text-underline-offset:5px;font-size:14px}
.hero-actions .button{display:inline-flex;align-items:center;gap:8px}
.back-to-top{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:calc(90px + env(safe-area-inset-bottom));z-index:74;display:flex;justify-content:center;align-items:center;width:48px;height:48px;border-radius:50%;background:#101010;border:1px solid #454545;color:#ededed;box-shadow:0 6px 24px #0009;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:opacity .18s,transform .18s,visibility .18s,background .18s}
.back-to-top.is-visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.back-to-top:hover{background:#252525;border-color:#aaa}
.back-to-top:focus-visible{outline:2px solid #b0c6dc;outline-offset:3px}
.cv-browser{max-width:1080px;padding-top:calc(80px + 2rem);padding-bottom:6rem}
.cv-browser-nav{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:38px}
.cv-browser-nav a{display:inline-flex;align-items:center;gap:7px;min-height:42px;color:#ddd;text-decoration:none}
.cv-browser-nav a:first-child svg{transform:rotate(180deg)}
.cv-browser-nav .cv-download{padding:10px 14px;border:1px solid #555;border-radius:9px;color:#f2f2f2}
.cv-browser-header{border-bottom:1px solid #414141;margin-bottom:28px;padding-bottom:26px}
.cv-browser-header h1{font-size:clamp(36px,6vw,66px);letter-spacing:-.06em;line-height:1.05;margin:10px 0 14px;color:#fff}
.cv-browser-header p{color:#b9b9b9}
.cv-browser-contacts{display:flex;gap:12px 24px;flex-wrap:wrap;margin-top:20px}
.cv-browser-contacts a{color:#d5e6f2;text-decoration:underline;text-underline-offset:4px}
.cv-browser-pages{display:grid;gap:28px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.cv-browser-page{border:1px solid #333;background:#101010;border-radius:12px;padding:clamp(20px,3vw,32px);min-width:0}
.cv-section-heading{margin:26px 0 12px;padding-bottom:7px;border-bottom:1px solid #424242;font-size:14px;letter-spacing:.09em;color:#b4d5d3}
.cv-section-heading:first-child{margin-top:0}
.cv-entry{font-size:15px;font-weight:600;line-height:1.5;color:#f0f0f0;margin:13px 0 6px}
.cv-subhead{font-size:13px;font-weight:600;color:#d4d4d4;margin:16px 0 7px}
.cv-note,.cv-bullet{color:#ccc;font-size:13px;line-height:1.68;overflow-wrap:anywhere}
.cv-bullet{position:relative;padding-left:17px;margin:6px 0}
.cv-bullet:before{content:'•';position:absolute;left:0;color:#9db9ca}
.cv-note{margin:5px 0 12px}
.mobile-nav:not([open]) .mobile-menu-panel{display:none!important}
@media(max-width:820px){.cv-browser-pages{grid-template-columns:1fr}.cv-browser{padding-top:110px}}
@media(max-width:640px){.back-to-top{width:44px;height:44px;bottom:calc(78px + env(safe-area-inset-bottom))}.contact-section .contact-email{gap:8px;font-size:16px}.contact-section .social-links{gap:16px}}
@media(prefers-reduced-motion:reduce){.back-to-top{transition:none!important}}
@media print{.site-header,.site-footer,.terminal-launcher,.back-to-top,.cv-browser-nav{display:none!important}.cv-browser{padding:0!important}.cv-browser-page{border:0;break-inside:avoid}.cv-browser-pages{display:block}.cv-browser-page+.cv-browser-page{break-before:page}}

.project-foot>a{display:inline-flex;align-items:center;gap:8px}
.visual-workflow .workflow-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr) 19px) minmax(0,1fr);gap:8px;align-items:center}
.visual-workflow .flow-arrow{display:flex;color:#b9c5d1;align-items:center;justify-content:center;opacity:.85}
@media(max-width:640px){.visual-workflow .workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-workflow .flow-arrow{display:none}}

/* v11: visible contact addresses and a restrained terminal interface */
.contact-section .contact-action {width:100%;max-width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.contact-section .contact-directory {display:grid;gap:4px;width:100%;max-width:680px;font:500 clamp(12px,1.2vw,16px)/1.6 var(--mono)}
.contact-section .contact-directory-row {display:grid;grid-template-columns:118px minmax(0,1fr);gap:12px;align-items:baseline;padding:9px 0;min-width:0}
.contact-section .contact-directory-label {display:inline-flex;gap:8px;align-items:center;color:#b7c4bd;white-space:nowrap}
.contact-section .contact-directory-label .ui-icon {color:#97d6bf;flex:none}
.contact-section .contact-directory-row:nth-child(2) .ui-icon {color:#e1e5e2}
.contact-section .contact-directory-row:nth-child(3) .ui-icon {color:#85baf1}
.contact-section .contact-directory a {color:#e4ebe7;min-width:0;overflow-wrap:anywhere;text-decoration:none;text-underline-offset:5px}
.contact-section .contact-directory a:hover {color:#9de6cb;text-decoration:underline}
.contact-section .contact-directory a:focus-visible {outline:2px solid #9de6cb;outline-offset:3px}
.contact-section .contact-cv-actions {display:flex;gap:14px 25px;align-items:center;flex-wrap:wrap;margin-top:12px}
.contact-section .contact-cv-actions a {font:500 13px/1.5 var(--font);color:#c9d8d0;text-decoration:underline;text-underline-offset:4px}
.contact-section .contact-cv-actions a:hover {color:#fff}
.terminal-launcher {position:fixed;right:max(16px,env(safe-area-inset-right));bottom:calc(17px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;width:43px;height:43px;min-width:43px;padding:0;border-radius:12px;background:#171b19;border:1px solid #47554d;box-shadow:0 8px 30px #000b;color:#a4dfc9}
.terminal-launcher .ui-icon {color:#a0ddc6;width:20px;height:20px}
.terminal-launcher:hover,.terminal-launcher[aria-expanded="true"] {background:#243029;border-color:#8fc8b4;transform:translateY(-1px)}
.terminal-launcher:focus-visible {outline:2px solid #a4e3ce;outline-offset:3px}
.terminal-dialog .terminal-window {background:#080a09;border:1px solid #3b4740}
.terminal-dialog .terminal-top {background:#171a18;border-bottom:1px solid #333d36}
.terminal-dialog #terminal-title {color:#e8eee9}
.terminal-dialog .terminal-log {background:#090b0a;color:#d0d7d2}
.terminal-dialog #terminal-form {background:#101311;border-top:1px solid #343c37}
.terminal-dialog #terminal-prompt {color:#96d7bc}
.terminal-dialog .terminal-line.terminal-command {color:#ecefec}
.terminal-dialog .terminal-line.terminal-output {color:#cad0cc}
.terminal-dialog .terminal-line.terminal-dim {color:#98a79c}
.terminal-dialog .terminal-line.terminal-success {color:#a6dfbc}
.terminal-dialog .terminal-line.terminal-error {color:#eeb0a8}
.terminal-dialog .terminal-key-hints {background:#141715;color:#9ba89f}
.terminal-dialog .terminal-ascii {margin:0 0 18px;white-space:pre;overflow-x:auto;font:500 11px/1.22 var(--mono);color:#9fe1c7;letter-spacing:0}
.terminal-dialog .terminal-welcome {font-weight:600;color:#e9f0eb}
.terminal-dialog .terminal-hint {color:#b8c2ba}
.terminal-dialog #terminal-input {caret-color:#b9f0d9;color:#ecf4ef}
.terminal-dialog #terminal-input:focus-visible {outline:none;box-shadow:inset 0 -1px 0 #749f8b}
.back-to-top {position:fixed;left:50%;right:auto;bottom:calc(20px + env(safe-area-inset-bottom));width:36px;height:36px;border-radius:50%;background:#191c1a;border:1px solid #4a514c;color:#edefed;box-shadow:0 4px 16px #000b;transform:translate(-50%,7px)}
.back-to-top.is-visible {transform:translate(-50%,0)}
.back-to-top:hover {background:#292e2a;border-color:#87918a}
.back-to-top:focus-visible {outline:2px solid #b5e4d1;outline-offset:3px}
.back-to-top .ui-icon {width:17px;height:17px}
@media(max-width:700px) {
 .contact-section .contact-directory {font-size:13px}
 .contact-section .contact-directory-row {grid-template-columns:99px minmax(0,1fr);gap:8px}
 .contact-section .contact-directory-label {gap:5px}
 .contact-section .contact-directory-label .ui-icon {width:15px;height:15px}
 .terminal-dialog .terminal-ascii {font-size:9px}
 .terminal-dialog .terminal-top {flex-wrap:nowrap;gap:7px;padding:10px 12px;min-height:48px}
 .terminal-dialog .terminal-mode {display:none}
 .terminal-dialog #terminal-title {font-size:11px;min-width:0;white-space:nowrap}
 .terminal-dialog #terminal-close {margin-left:auto;flex:none}
 .terminal-launcher {width:42px;height:42px;min-width:42px;bottom:calc(14px + env(safe-area-inset-bottom))}
 .back-to-top {width:34px;height:34px;bottom:calc(17px + env(safe-area-inset-bottom))}
}
@media(max-width:360px) {.contact-section .contact-directory {font-size:12px}.contact-section .contact-directory-row {grid-template-columns:89px minmax(0,1fr);gap:6px}}
@media(prefers-reduced-motion:reduce) {.terminal-launcher,.back-to-top{transition:none!important}}

/* Connected, deliberately conceptual project diagrams. */
.concept-diagram{width:100%;margin:0;min-width:0;overflow:hidden;border:1px solid #35443d;border-radius:12px;background:#0c100d}
.concept-diagram figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:15px 18px 9px}
.concept-diagram figcaption small{color:#94c3ae;font:500 10px/1.5 var(--mono);text-transform:uppercase;letter-spacing:.09em}
.concept-diagram figcaption strong{color:#e7f0e9;font:600 14px/1.5 var(--font)}
.concept-scroll{width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#475e52 #131713;overscroll-behavior-x:contain}
.concept-scroll:focus-visible{outline:2px solid #a9dec8;outline-offset:-3px}
.concept-svg{display:block;width:100%;min-width:610px;height:auto}
.concept-node rect{fill:#18201b;stroke:#63786b;stroke-width:1.5}
.concept-name{fill:#e9f1eb;font:600 17px var(--font)}
.concept-detail{fill:#b7c5ba;font:12px var(--mono)}
.concept-link{stroke:#8bbda8;stroke-width:1.7;fill:none}
.concept-note{padding:8px 18px 15px;margin:0;color:#9caea2;font:11px/1.6 var(--mono)}
@media(max-width:700px){.concept-diagram figcaption{padding:13px 14px 7px}.concept-svg{min-width:610px}.concept-note{padding:8px 14px 13px}}

/* v12: agreed OLED palette, compact navigation, adaptive diagrams and optional light theme. */
:root{--bg:#000;--surface:#101010;--surface-raised:#1a1a1a;--hairline:#303030;--hairline-soft:#292929;--ink:#ededed;--muted:#b4b4b4;--quiet:#929292;--accent:#7ee2bd;--accent-soft:#a7e9d0}
.site-header{background:rgba(16,16,16,.88);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-bottom:1px solid #303030}
.header-controls{display:flex;align-items:center;gap:8px;margin-left:14px;flex:none}
.theme-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:43px;height:43px;padding:0;background:#171717;border:1px solid #383838;border-radius:12px;color:#ededed;cursor:pointer}
.theme-toggle:hover{background:#252525}.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.theme-dark-icon{display:none}
.section{padding-block:clamp(66px,7.4vw,112px)}
.section-top{margin-bottom:clamp(26px,3.7vw,48px)}
.hero-bottom{margin-top:clamp(46px,6vw,86px)}
.about-copy>p{line-height:1.65;margin-bottom:17px}
.toolkit-row{padding-block:21px}
.contact-section .contact-directory-row{padding-block:8px}
.site-footer{padding-top:27px}
@media(max-width:820px){
 .header-inner{gap:8px}
 .header-controls{margin-left:auto;gap:8px}
 .mobile-nav{position:static;margin:0}
 .mobile-nav summary{display:flex;align-items:center;justify-content:center;min-width:43px;width:43px;min-height:43px;height:43px;gap:0;padding:0;background:#171717;border:1px solid #383838;border-radius:12px;color:#ededed;cursor:pointer}
 .mobile-nav summary:hover,.mobile-nav[open] summary{background:#252525;border-color:#666;color:#ededed}
 .mobile-nav[open]::before{position:fixed;inset:60px 0 0;z-index:60;background:rgba(0,0,0,.4)}
 .mobile-nav .mobile-menu-panel{position:fixed;top:calc(64px + env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right));left:auto;width:min(342px,calc(100vw - 28px));max-height:min(440px,calc(100dvh - 86px));overflow-y:auto;padding:10px;background:rgba(19,19,19,.98);border:1px solid #3b3b3b;border-radius:15px;box-shadow:0 20px 60px #000b;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);z-index:70}
 .mobile-nav .mobile-menu-panel nav{display:grid;gap:2px;padding:0;background:none;border:0}
 .mobile-nav .mobile-menu-panel nav a{display:grid;grid-template-columns:22px minmax(0,1fr) 14px;align-items:center;gap:12px;min-height:46px;padding:9px 11px;border-radius:9px;font-size:14px;font-weight:520;color:#e8e8e8}
 .mobile-nav .mobile-menu-panel nav a:hover,.mobile-nav .mobile-menu-panel nav a:focus-visible{background:#2a302c;color:#fff}
 .mobile-link-icon{display:flex;color:#7ee2bd}.mobile-link-icon svg{width:18px;height:18px}
 .menu-chevron{display:inline-flex;align-items:center;justify-content:end;color:#858b87}
 .mobile-menu-footer{display:flex;gap:8px;align-items:center;margin-top:7px;padding:10px 7px 2px;border-top:1px solid #373737}
 .mobile-menu-footer a{display:inline-flex;gap:7px;align-items:center;min-height:39px;padding:8px 10px;border:0;background:none;border-radius:7px;font-size:12px;color:#c5d4cb}
 .mobile-menu-footer a:hover{background:#252925;color:#fff}.mobile-menu-footer a svg{color:#7ee2bd}
}
@media(max-width:400px){.site-header .brand{font-size:14px}.header-controls{gap:6px}.mobile-nav .mobile-menu-panel{right:12px;width:calc(100vw - 24px)}}
/* Every project uses an actual explanatory relationship diagram without a horizontal scrollbar. */
.diagram-frame{width:100%;height:100%;min-width:0;margin:0;display:flex;flex-direction:column;overflow:hidden;container-type:inline-size;background:#101010;border:1px solid #303030;border-radius:13px;color:#ededed}
.diagram-frame figcaption{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;padding:19px 20px 12px;flex-wrap:wrap}
.diagram-frame figcaption small{color:#9acfb9;font:600 10px/1.5 var(--mono);letter-spacing:.08em}
.diagram-frame figcaption strong{color:#ededed;font-size:clamp(13px,1.35vw,17px);font-weight:600}
.diagram-inner{flex:1;min-width:0;padding:12px 20px 23px;display:flex;flex-direction:column;align-items:stretch;justify-content:center}
.diagram-node{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;min-width:0;min-height:113px;padding:14px 15px;background:#1a1a1a;border:1px solid #3d4841;border-radius:10px;color:#ededed;text-align:left}
.diagram-node .diagram-icon{display:inline-flex;color:#7ee2bd}
.diagram-node strong{font:600 clamp(12px,1.3vw,15px)/1.35 var(--font);overflow-wrap:anywhere}
.diagram-node small{color:#b4bbb6;font:11px/1.5 var(--mono);overflow-wrap:anywhere}
button.diagram-node{width:100%;cursor:pointer}button.diagram-node:hover,button.diagram-node[aria-pressed=true]{border-color:#7ee2bd;background:#222d27}
button.diagram-node:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.diagram-root{width:min(230px,100%);margin:0 auto}
.diagram-trunk{width:1px;height:24px;margin:0 auto;flex:none;background:#849f8e}
.diagram-branches{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:24px;min-width:0}
.diagram-branches:before{content:"";position:absolute;top:0;left:16.667%;right:16.667%;height:1px;background:#849f8e}
.diagram-child{position:relative;min-width:0}
.diagram-child:before{content:"";position:absolute;top:-24px;left:50%;height:24px;width:1px;background:#849f8e}
.diagram-child>.diagram-node{width:100%;height:100%}
.diagram-detail{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 12px;margin-top:17px;padding-top:12px;border-top:1px solid #303a32;color:#aabbb0;font:11px/1.5 var(--mono)}
.diagram-detail strong{color:#9de4c8;font-size:12px}
.diagram-flow{display:flex;flex-direction:row;align-items:stretch;gap:8px}
.diagram-flow .diagram-node{flex:1;min-width:0}
.diagram-arrow{display:flex;align-items:center;justify-content:center;flex:0 0 16px;color:#8eaea0}
.diagram-note{margin:auto 0 0;padding:12px 20px 17px;border-top:1px solid #2d2d2d;color:#aeb6af;font:10px/1.55 var(--mono)}
@container(max-width:630px){
 .diagram-frame figcaption{padding:15px 15px 9px}
 .diagram-inner{padding:10px 14px 18px}
 .diagram-node{min-height:0;padding:11px 13px;gap:4px}.diagram-node strong{font-size:13px}
 .diagram-flow{flex-direction:column;gap:4px}
 .diagram-arrow{flex:0 0 19px;align-self:center;transform:rotate(90deg)}
 .diagram-branches{grid-template-columns:1fr;padding-top:0;gap:0}.diagram-branches:before{display:none}
 .diagram-child{padding-top:21px}.diagram-child:before{top:0;height:21px}
 .diagram-root{width:100%}.diagram-trunk{height:21px}
 .diagram-child>.diagram-node{height:auto}
 .diagram-note{padding:11px 14px}
}
/* Light mode is a choice. The default remains true OLED black. */
html[data-theme="light"]{color-scheme:light;--bg:#f7f8f6;--surface:#fff;--surface-raised:#f0f2ef;--hairline:#d2d8d3;--hairline-soft:#e0e5e0;--ink:#161c18;--muted:#435149;--quiet:#59675e;--accent:#17684f;--accent-soft:#0e7656}
html[data-theme="light"] body{background:var(--bg);color:var(--ink)}
html[data-theme="light"] .site-header{background:rgba(251,252,250,.9);border-color:#d9dfd9}
html[data-theme="light"] .brand,html[data-theme="light"] .desktop-nav a{color:#26352b}
html[data-theme="light"] .theme-toggle,html[data-theme="light"] .mobile-nav summary{background:#f4f6f3;color:#28382e;border-color:#ccd5cd}
html[data-theme="light"] .theme-light-icon{display:none}html[data-theme="light"] .theme-dark-icon{display:inline-flex}
html[data-theme="light"] .mobile-nav .mobile-menu-panel{background:rgba(255,255,255,.98);border-color:#d5ded6}
html[data-theme="light"] .mobile-nav .mobile-menu-panel nav a{color:#233029}
html[data-theme="light"] .mobile-nav .mobile-menu-panel nav a:hover{background:#ebf1ec;color:#142a1d}
html[data-theme="light"] .mobile-link-icon,html[data-theme="light"] .mobile-menu-footer a svg{color:#17684f}
html[data-theme="light"] .mobile-menu-footer{border-color:#dae0da}
html[data-theme="light"] .mobile-menu-footer a{color:#3f5648}
html[data-theme="light"] .about-section,html[data-theme="light"] .experience-section{background:#eef2ed;border-color:#d9e1da}
html[data-theme="light"] .contact-section{background:#f4f6f3;border-color:#d9e1da}
html[data-theme="light"] .hero-side,html[data-theme="light"] .hero-side .mini-content,html[data-theme="light"] .project-card,html[data-theme="light"] .skill-group,html[data-theme="light"] .cv-browser-page{background:#fff;border-color:#d9e0d9;color:#1c2720}
html[data-theme="light"] .hero-side .mini-title{background:#f1f4f0;color:#496354}
html[data-theme="light"] .hero-side h2,html[data-theme="light"] .project-card h3,html[data-theme="light"] .skill-group h3,html[data-theme="light"] .experience-list article h3,html[data-theme="light"] .cv-entry,html[data-theme="light"] .cv-browser-header h1{color:#17221a}
html[data-theme="light"] .experience-list article{background:#fff;border-color:#d5ded6;color:#27392b}
html[data-theme="light"] .experience-list article p{color:#4a5e50}
html[data-theme="light"] .about-copy>p,html[data-theme="light"] .section-description,html[data-theme="light"] .project-card p,html[data-theme="light"] .skill-group p,html[data-theme="light"] .case-story p,html[data-theme="light"] .story-list,html[data-theme="light"] .cv-body,html[data-theme="light"] .cv-bullet,html[data-theme="light"] .cv-note,html[data-theme="light"] .contact-grid p{color:#435149}
html[data-theme="light"] .hero-role,html[data-theme="light"] .hero-intro,html[data-theme="light"] .hero-links a{color:#415147}
html[data-theme="light"] .hero-main h1 span{color:#657069}
html[data-theme="light"] .intro-kicker{color:#516d5e}
html[data-theme="light"] .button-light{background:#17231b;color:#fff;border-color:#17231b}
html[data-theme="light"] .button-quiet{color:#263c2f;border-color:#bccbbf}
html[data-theme="light"] .work-filter button{background:#fff;color:#435249;border-color:#d0dad2}
html[data-theme="light"] .work-filter button[aria-pressed=true]{background:#193b2c;color:#f1fff6}
html[data-theme="light"] .skill-group li{background:#eaf0ea;border-color:#d2ddd4;color:#273c2e}
html[data-theme="light"] .skill-group .skill-link,html[data-theme="light"] .skill-plain{color:#243b2c}
html[data-theme="light"] .case-sidebar,html[data-theme="light"] .case-sidebar p,html[data-theme="light"] .case-tags span{color:#33483b}
html[data-theme="light"] .case-story h2,html[data-theme="light"] .case-story h3,html[data-theme="light"] .case-hero h1{color:#1b2a1f}
html[data-theme="light"] .case-study-page .evidence-note{background:#eff2ed;border-color:#d8e1d8;color:#3d5043}
html[data-theme="light"] .contact-directory a,html[data-theme="light"] .contact-cv-actions a,html[data-theme="light"] .cv-browser-contacts a{color:#164c38}
html[data-theme="light"] .contact-directory-label{color:#476051}
html[data-theme="light"] .cv-section-heading{color:#13654a;border-color:#d2dad2}
html[data-theme="light"] .cv-subhead,html[data-theme="light"] .cv-browser-header p{color:#35483b}
html[data-theme="light"] .diagram-frame{background:#f5f7f3;border-color:#d0dacf;color:#1c281e}
html[data-theme="light"] .diagram-frame figcaption strong{color:#17251a}
html[data-theme="light"] .diagram-frame figcaption small{color:#176c51}
html[data-theme="light"] .diagram-node{background:#fff;border-color:#b6cbb9;color:#1d2b20}
html[data-theme="light"] .diagram-node .diagram-icon{color:#17684f}
html[data-theme="light"] .diagram-node small{color:#526558}
html[data-theme="light"] .diagram-trunk,html[data-theme="light"] .diagram-branches:before,html[data-theme="light"] .diagram-child:before{background:#8ba891}
html[data-theme="light"] .diagram-note,html[data-theme="light"] .diagram-detail{border-color:#d9e0d8;color:#55695a}
html[data-theme="light"] .diagram-detail strong{color:#155a3f}
html[data-theme="light"] .diagram-arrow{color:#397857}
html[data-theme="light"] .terminal-dialog .terminal-window{background:#fafbf9;border-color:#b6c6b9}
html[data-theme="light"] .terminal-dialog .terminal-top,html[data-theme="light"] .terminal-dialog #terminal-form{background:#edf1ed;border-color:#d1dbd2}
html[data-theme="light"] .terminal-dialog #terminal-title,html[data-theme="light"] .terminal-dialog .terminal-welcome,html[data-theme="light"] .terminal-dialog #terminal-input{color:#192a1f}
html[data-theme="light"] .terminal-dialog .terminal-log{background:#fafbf9;color:#2c3b30}
html[data-theme="light"] .terminal-dialog .terminal-hint,html[data-theme="light"] .terminal-dialog .terminal-line.terminal-output{color:#425647}
html[data-theme="light"] .terminal-dialog #terminal-prompt,html[data-theme="light"] .terminal-dialog .terminal-ascii{color:#166448}
html[data-theme="light"] .terminal-dialog .terminal-line.terminal-command{color:#17231b}
html[data-theme="light"] .terminal-launcher,html[data-theme="light"] .back-to-top{background:#fff;color:#236247;border-color:#c9d8cb}
html[data-theme="light"] .terminal-launcher .ui-icon{color:#17684f}
@media(prefers-reduced-motion:reduce){.theme-toggle,.diagram-node{transition:none!important}}

/* v13: OLED-first design with deliberate light theme and responsive footer control. */
.footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 26px}
.footer-appearance{display:inline-flex;align-items:center;gap:11px;white-space:nowrap}
.footer-appearance-label{font:500 11px/1.5 var(--mono);color:#a9b4ac}
.theme-options{display:inline-flex;gap:3px;padding:3px;border-radius:10px;background:#151515;border:1px solid #3b3b3b}
.theme-options button{min-height:35px;padding:6px 13px;border:0;border-radius:7px;background:transparent;font:600 12px/1.4 var(--font);color:#c0cbc3;cursor:pointer}
.theme-options button[aria-pressed="true"]{background:#323a34;color:#f6faf7}
.theme-options button:hover{background:#303832;color:#fff}
.theme-options button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.header-controls{margin-left:auto}
@media(max-width:700px){.footer-inner{justify-content:center;gap:12px 20px;text-align:center}.footer-appearance{justify-content:center;flex-basis:100%;padding-top:6px}}
/* Each contact row contains a visible clickable address and one meaningful icon. */
.contact-section .contact-action{width:100%;max-width:100%;align-items:flex-start}
.contact-section .contact-directory{width:100%;max-width:680px;display:grid;gap:2px;font:500 clamp(12px,1.2vw,16px)/1.55 var(--mono)}
.contact-section .contact-directory-row{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:12px;padding:9px 0}
.contact-section .contact-directory-label{display:flex;align-items:center;justify-content:flex-start}
.contact-section .contact-directory-label .ui-icon{width:19px;height:19px}
.contact-section .contact-directory-row a{display:inline-block;min-width:0;overflow-wrap:anywhere;text-decoration:none;color:#ededed}
.contact-section .contact-directory-row a:hover{text-decoration:underline;text-underline-offset:5px;color:#7ee2bd}
.contact-section .contact-directory-row a:focus-visible{outline:2px solid #7ee2bd;outline-offset:3px}
@media(max-width:700px){.contact-section .contact-directory-row{grid-template-columns:22px minmax(0,1fr);gap:9px;padding:8px 0}.contact-section .contact-directory{font-size:clamp(12px,3.2vw,14px)}}
/* Keep an intentional, native-looking hierarchy in every project diagram. */
.diagram-frame{display:flex;flex-direction:column;min-width:0;max-width:100%;height:100%;margin:0;overflow:hidden;border:1px solid #303030;border-radius:13px;background:#101010;color:#ededed;container-type:inline-size}
.diagram-frame figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:7px 14px;flex-wrap:wrap;padding:18px 18px 9px}
.diagram-frame figcaption small{font:600 10px/1.5 var(--mono);color:#a6d4bf;letter-spacing:.07em}
.diagram-frame figcaption strong{font:600 15px/1.4 var(--font);color:#ededed}
.diagram-inner{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:stretch;min-width:0;padding:12px 17px 20px}
.diagram-node{width:100%;min-width:0;min-height:90px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:13px;border:1px solid #3e5145;border-radius:10px;background:#1a1a1a;color:#ededed;text-align:left}
.diagram-node .diagram-icon{display:inline-flex;align-items:center;justify-content:center;color:#7ee2bd}
.diagram-node .diagram-icon svg{display:block;width:19px;height:19px}
.diagram-node strong{display:block;font:600 14px/1.4 var(--font);color:#ededed;white-space:normal;overflow-wrap:anywhere}
.diagram-node small{display:block;font:11px/1.5 var(--mono);color:#bbc6bf;white-space:normal;overflow-wrap:anywhere}
button.diagram-node{cursor:pointer;appearance:none}
button.diagram-node:hover,button.diagram-node[aria-pressed=true]{background:#233129;border-color:#7ee2bd}
button.diagram-node:focus-visible{outline:2px solid #7ee2bd;outline-offset:3px}
.diagram-root{width:min(230px,100%);margin:0 auto}
.diagram-trunk{width:1px;height:23px;flex:none;margin:0 auto;background:#8ba793}
.diagram-branches{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;gap:10px;padding-top:23px}
.diagram-branches:before{content:"";position:absolute;top:0;left:16.67%;right:16.67%;height:1px;background:#8ba793}
.diagram-child{position:relative;min-width:0}
.diagram-child:before{content:"";position:absolute;top:-23px;left:50%;height:23px;width:1px;background:#8ba793}
.diagram-child>.diagram-node{height:100%}
.diagram-flow{display:flex;flex-direction:row;align-items:stretch;gap:7px}
.diagram-flow>.diagram-node{min-width:0;flex:1}
.diagram-arrow{display:flex;align-items:center;justify-content:center;flex:0 0 16px;color:#9abdaa}
.diagram-detail{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 10px;margin-top:14px;padding-top:12px;border-top:1px solid #39473e;font:11px/1.5 var(--mono);color:#c2d0c6}
.diagram-detail strong{color:#9de4c8}
.diagram-note{margin:0;padding:10px 17px 15px;border-top:1px solid #303030;font:10.5px/1.55 var(--mono);color:#bcc7be}
@container(max-width:610px){
.diagram-frame figcaption{padding:15px 14px 9px}
.diagram-inner{padding:10px 14px 18px}
.diagram-node{min-height:0;padding:11px 12px;gap:4px}
.diagram-node strong{font-size:13px}
.diagram-root{width:100%}
.diagram-trunk{height:20px}
.diagram-branches{grid-template-columns:1fr;gap:0;padding-top:0}
.diagram-branches:before{display:none}
.diagram-child{padding-top:20px}
.diagram-child:before{top:0;height:20px}
.diagram-child>.diagram-node{height:auto}
.diagram-flow{flex-direction:column;gap:4px}
.diagram-flow .diagram-arrow{flex:0 0 19px;align-self:center;transform:rotate(90deg)}
.diagram-note{padding:10px 14px 13px}
}
/* Light colours are chosen explicitly, never a filter or whole-page inversion. */
html[data-theme="light"]{color-scheme:light;--bg:#f7f8f6;--surface:#fff;--surface-raised:#f0f2ef;--hairline:#d2d9d1;--hairline-soft:#e0e6e0;--ink:#19251d;--muted:#43544a;--quiet:#596a5f;--accent:#17684f;--accent-soft:#17684f}
html[data-theme="light"] body,html[data-theme="light"] .site-footer{background:#f7f8f6;color:#19251d}
html[data-theme="light"] .site-header{background:rgba(250,252,249,.96);border-color:#d1d9d2}
html[data-theme="light"] .brand,html[data-theme="light"] .desktop-nav a{color:#24392b}
html[data-theme="light"] .mobile-nav summary{background:#fff;border-color:#c9d4cc;color:#223628}
html[data-theme="light"] .mobile-nav .mobile-menu-panel{background:rgba(255,255,255,.98);border-color:#d4ddd5;box-shadow:0 16px 44px #223b2630}
html[data-theme="light"] .mobile-nav .mobile-menu-panel nav a{color:#26362b}
html[data-theme="light"] .mobile-nav .mobile-menu-panel nav a:hover{background:#eaf0eb;color:#142719}
html[data-theme="light"] .mobile-nav .mobile-link-icon,html[data-theme="light"] .mobile-menu-footer a svg{color:#17684f}
html[data-theme="light"] .mobile-menu-footer{border-color:#d3ddd4}
html[data-theme="light"] .mobile-menu-footer a{color:#34523b}
html[data-theme="light"] .section-kicker,html[data-theme="light"] .intro-kicker,html[data-theme="light"] .eyebrow{color:#17684f}
html[data-theme="light"] .section-top h2,html[data-theme="light"] .about-label h2,html[data-theme="light"] .contact-grid h2,html[data-theme="light"] h1,html[data-theme="light"] h2,html[data-theme="light"] h3{color:#19251d}
html[data-theme="light"] .hero-main h1 span{color:#546a5b}
html[data-theme="light"] .hero-role,html[data-theme="light"] .hero-intro,html[data-theme="light"] .section-description,html[data-theme="light"] .about-copy p,html[data-theme="light"] .project-card p,html[data-theme="light"] .skill-group p,html[data-theme="light"] .contact-grid p{color:#43544a}
html[data-theme="light"] .about-section,html[data-theme="light"] .experience-section,html[data-theme="light"] .contact-section{background:#eff3ee;border-color:#d7dfd7}
html[data-theme="light"] .project-card,html[data-theme="light"] .skill-group,html[data-theme="light"] .experience-list article,html[data-theme="light"] .hero-side,html[data-theme="light"] .case-visual,html[data-theme="light"] .cv-browser-page{background:#fff;border-color:#d6dfd6;color:#1b2a20}
html[data-theme="light"] .hero-side .mini-title,html[data-theme="light"] .mini-content{background:#fff;color:#273b2c}
html[data-theme="light"] .mini-content h2,html[data-theme="light"] .mini-stack span{color:#1b2b21}
html[data-theme="light"] .mini-stack>div{background:#f2f6f2;border-color:#dae4d9}
html[data-theme="light"] .mini-prompt,html[data-theme="light"] .mini-stack small,html[data-theme="light"] .project-foot span{color:#526356}
html[data-theme="light"] .experience-list article p,html[data-theme="light"] .case-story p,html[data-theme="light"] .cv-body,html[data-theme="light"] .cv-bullet{color:#43544a}
html[data-theme="light"] .work-filter button{background:#fff;color:#395141;border-color:#cad9cd}
html[data-theme="light"] .work-filter button[aria-pressed="true"]{background:#183e2c;color:#fff;border-color:#183e2c}
html[data-theme="light"] .skill-group li{background:#ebf0ea;border-color:#d1ddd2;color:#263e2e}
html[data-theme="light"] .skill-group .skill-link,html[data-theme="light"] .skill-plain{color:#20442c}
html[data-theme="light"] .project-topline span{color:#52665b}
html[data-theme="light"] .project-icon,html[data-theme="light"] .skill-icon,html[data-theme="light"] .experience-icon{background:#e7f2e9;border-color:#cbdece;color:#1a6850}
html[data-theme="light"] .contact-directory-row a{color:#174d37}
html[data-theme="light"] .contact-directory-label{color:#3f5a48}
html[data-theme="light"] .contact-directory-row:nth-child(1) .ui-icon{color:#17684f}
html[data-theme="light"] .contact-directory-row:nth-child(2) .ui-icon{color:#263a30}
html[data-theme="light"] .contact-directory-row:nth-child(3) .ui-icon{color:#0a66c2}
html[data-theme="light"] .contact-cv-actions a,html[data-theme="light"] .cv-browser-nav a{color:#15583e}
html[data-theme="light"] .case-study-page .evidence-note{background:#ecf1eb;border-color:#cddacc;color:#38503e}
html[data-theme="light"] .cv-section-heading{color:#17684f;border-color:#d2ddd3}
html[data-theme="light"] .cv-subhead,html[data-theme="light"] .cv-browser-header p{color:#405647}
html[data-theme="light"] .footer-inner,html[data-theme="light"] .footer-appearance-label{color:#44584b}
html[data-theme="light"] .theme-options{background:#edf2ed;border-color:#c5d2c7}
html[data-theme="light"] .theme-options button{color:#34513f}
html[data-theme="light"] .theme-options button[aria-pressed="true"]{background:#fff;color:#164d34;box-shadow:0 1px 5px #18362220}
html[data-theme="light"] .theme-options button:hover{background:#fff;color:#0e4931}
html[data-theme="light"] .diagram-frame{background:#f8faf7;color:#1e2a21;border-color:#cbd9cd}
html[data-theme="light"] .diagram-frame figcaption small{color:#17684f}
html[data-theme="light"] .diagram-frame figcaption strong,html[data-theme="light"] .diagram-node strong{color:#172b1c}
html[data-theme="light"] .diagram-node{background:#fff;border-color:#b7cbb9;color:#172b1c}
html[data-theme="light"] .diagram-node .diagram-icon{color:#17684f}
html[data-theme="light"] .diagram-node small{color:#4b6051}
html[data-theme="light"] .diagram-trunk,html[data-theme="light"] .diagram-branches:before,html[data-theme="light"] .diagram-child:before{background:#84a38c}
html[data-theme="light"] .diagram-detail,html[data-theme="light"] .diagram-note{border-color:#d4e0d5;color:#4c6552}
html[data-theme="light"] .diagram-detail strong{color:#155e41}
html[data-theme="light"] .diagram-arrow{color:#427855}
html[data-theme="light"] button.diagram-node[aria-pressed=true],html[data-theme="light"] button.diagram-node:hover{background:#e4f3e8;border-color:#236745}
html[data-theme="light"] .terminal-dialog .terminal-window,html[data-theme="light"] .terminal-dialog .terminal-log{background:#101310;border-color:#46564b;color:#e5eee7}
html[data-theme="light"] .terminal-dialog .terminal-top{background:#191c1a;color:#ededed}
html[data-theme="light"] .terminal-dialog #terminal-title,html[data-theme="light"] .terminal-dialog #terminal-close{color:#ededed}
html[data-theme="light"] .terminal-dialog #terminal-form{background:#161b17}
html[data-theme="light"] .terminal-dialog #terminal-input{color:#f0f5f0}
html[data-theme="light"] .terminal-dialog #terminal-prompt,html[data-theme="light"] .terminal-dialog .terminal-ascii{color:#7ee2bd}
html[data-theme="light"] .terminal-dialog .terminal-welcome,html[data-theme="light"] .terminal-dialog .terminal-line.terminal-command{color:#edf5ed}
html[data-theme="light"] .terminal-dialog .terminal-hint,html[data-theme="light"] .terminal-dialog .terminal-line.terminal-output{color:#d6e4d9}
html[data-theme="light"] .terminal-launcher,html[data-theme="light"] .back-to-top{background:#fff;color:#236247;border-color:#c8d9ca}
html[data-theme="light"] .terminal-launcher .ui-icon{color:#17684f}
@media(prefers-reduced-motion:reduce){.theme-options button{transition:none!important}}

/* v14: intentional mobile drawer, terminal and four appearance modes.
   This stylesheet is appended after existing styles so no previous content is lost. */
:root { --terminal-viewport-top:0px; }
/* Dark is true OLED black. Light is the established light scheme.
   System chooses between these two without adding a third visual theme. */
html[data-theme="dark"] {
  color-scheme:dark;
  --bg:#000;
  --surface:#101010;
  --surface-raised:#1a1a1a;
  --hairline:#303030;
  --hairline-soft:#292929;
  --ink:#ededed;
  --muted:#b4b4b4;
  --quiet:#929292;
  --accent:#7ee2bd;
  --accent-soft:#a7e9d0;
}

/* Keep the plain navigation for desktop; mobile uses a real modal with blur. */
.mobile-menu-trigger{display:none;align-items:center;justify-content:center;gap:9px;min-width:98px;min-height:44px;border-radius:11px;border:1px solid var(--hairline);background:var(--surface);color:var(--ink);font:600 13px var(--font);cursor:pointer}
.mobile-menu-trigger svg{width:19px;height:19px}
.mobile-menu-trigger:hover,.mobile-menu-trigger[aria-expanded="true"]{border-color:var(--accent);background:var(--surface-raised)}
.mobile-menu-dialog{position:fixed;inset:0;margin:0;padding:0;border:0;max-width:none;max-height:none;width:100%;height:100%;background:transparent;color:var(--ink);overflow:visible}
.mobile-menu-dialog:not([open]){display:none}
.mobile-menu-dialog::backdrop{background:rgba(0,0,0,.70);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.mobile-menu-sheet{position:absolute;top:calc(68px + env(safe-area-inset-top));left:12px;right:12px;margin:0 auto;width:min(450px,calc(100% - 24px));max-height:calc(100dvh - 92px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;border:1px solid #393d3b;border-radius:16px;background:#161616;box-shadow:0 26px 90px rgba(0,0,0,.78);padding:19px 16px 16px}
.mobile-menu-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:0 5px 13px;border-bottom:1px solid #303030}
.mobile-menu-eyebrow{font:600 10px var(--mono);letter-spacing:.11em;color:#9ea8a3}
.mobile-menu-head h2{margin:6px 0 0;color:#ededed;font:600 20px/1.25 var(--font);letter-spacing:-.025em}
.mobile-menu-head button{width:39px;height:39px;display:grid;place-items:center;border:1px solid #414141;border-radius:9px;background:#232323;color:#ddd;cursor:pointer;flex:none}
.mobile-menu-links{display:grid;gap:4px;margin:14px 0}
.mobile-menu-links a{min-height:53px;display:grid;grid-template-columns:28px minmax(0,1fr) 18px;gap:13px;align-items:center;padding:9px 12px;border-radius:10px;color:#ececec;font:500 15px/1.3 var(--font)}
.mobile-menu-links a:hover,.mobile-menu-links a:focus-visible{background:#292f2c}
.mobile-menu-links .mobile-link-icon{display:flex;color:#a4dec9}
.mobile-menu-links a .menu-chevron{display:flex;color:#9eaaa3}
.mobile-menu-extras{display:flex;gap:12px;flex-wrap:wrap;padding:15px 8px;border-top:1px solid #333;border-bottom:1px solid #333}
.mobile-menu-extras a{display:inline-flex;align-items:center;gap:9px;min-height:42px;color:#d1d9d4;font:500 13px var(--font)}
.mobile-menu-extras a svg{color:#a4dec9}
.mobile-menu-theme{padding:16px 4px 2px;display:grid;gap:10px}
.mobile-menu-theme>span{font:600 11px var(--mono);letter-spacing:.05em;color:#b8c3bd}
.mobile-menu-theme .theme-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:100%;background:#222;border:1px solid #444;padding:4px;border-radius:10px}
.mobile-menu-theme .theme-options button{min-width:0;padding:10px 2px;min-height:42px;font:600 12px var(--font);border-radius:7px;color:#bfc8c3}
.mobile-menu-theme .theme-options button[aria-pressed=true]{background:#454d47;color:white}
.mobile-menu-theme .theme-options button:hover{color:#fff;background:#353a36}
.theme-options{flex-wrap:wrap}
.theme-options button{white-space:nowrap}
html[data-theme="light"] .mobile-menu-sheet{background:#fff;border-color:#cfd9d1;box-shadow:0 26px 90px #11221755;color:#19231c}
html[data-theme="light"] .mobile-menu-head{border-color:#dce3de}
html[data-theme="light"] .mobile-menu-head h2,html[data-theme="light"] .mobile-menu-links a{color:#19231c}
html[data-theme="light"] .mobile-menu-eyebrow{color:#53665a}
html[data-theme="light"] .mobile-menu-head button{color:#284131;background:#f5f8f5;border-color:#d0dcd1}
html[data-theme="light"] .mobile-menu-links a:hover,html[data-theme="light"] .mobile-menu-links a:focus-visible{background:#e8f0e9}
html[data-theme="light"] .mobile-menu-links .mobile-link-icon{color:#17684f}
html[data-theme="light"] .mobile-menu-extras{border-color:#d3dfd5}
html[data-theme="light"] .mobile-menu-extras a{color:#204a2f}
html[data-theme="light"] .mobile-menu-theme>span{color:#3f5949}
html[data-theme="light"] .mobile-menu-theme .theme-options{background:#edf2ed;border-color:#cddacc}
html[data-theme="light"] .mobile-menu-theme .theme-options button{color:#34513f}
html[data-theme="light"] .mobile-menu-theme .theme-options button[aria-pressed=true]{background:#fff;color:#164d34}
html[data-theme="light"] .mobile-menu-theme .theme-options button:hover{background:#fff;color:#13452b}

@media(max-width:820px){
 .site-header{z-index:90}
 .mobile-menu-trigger{display:inline-flex}
 .header-controls{display:flex;justify-content:flex-end}
}
@media(max-width:360px){
 .mobile-menu-sheet{left:8px;right:8px;width:calc(100% - 16px);padding:15px 11px}
 .mobile-menu-theme .theme-options button{font-size:11px}
}
@media(min-width:821px){.mobile-menu-dialog{display:none!important}}

/* A terminal window, not a glowing search modal. The native backdrop stays in charge. */
.terminal-dialog{position:fixed;inset:0;margin:auto;width:min(650px,calc(100vw - 28px));height:auto;max-height:min(75dvh,620px);transform:none;border:0;border-radius:14px;padding:0;background:transparent;color:#e9e9e9;overflow:visible}
.terminal-dialog::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(13px);-webkit-backdrop-filter:blur(13px)}
.terminal-dialog .terminal-window{display:flex;flex-direction:column;max-height:min(75dvh,620px);min-height:0;background:#0b0b0b;border:1px solid #444;overflow:hidden;border-radius:14px;box-shadow:0 20px 95px rgba(0,0,0,.76)}
.terminal-dialog .terminal-top{display:flex;align-items:center;gap:11px;min-height:49px;padding:10px 14px;background:#1d1d1d;border-bottom:1px solid #323232}
.terminal-window-dots{display:flex;gap:5px!important;align-items:center;flex:none}
.terminal-window-dots i{display:block;width:9px;height:9px;border-radius:50%;background:#dc7670}
.terminal-window-dots i:nth-child(2){background:#d7b16b}
.terminal-window-dots i:nth-child(3){background:#89c8aa}
.terminal-dialog #terminal-title{min-width:0;font:500 12px var(--mono);white-space:nowrap;color:#d6ddd8}
.terminal-dialog .terminal-log{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;background:#0b0b0b;color:#ddd;font:13px/1.75 var(--mono);padding:17px 20px;white-space:pre-wrap;overflow-wrap:anywhere}
.terminal-dialog .terminal-ascii{font-size:10px;line-height:1.2;margin-bottom:13px;color:#a4d5c4}
.terminal-dialog #terminal-form{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;gap:10px;border:0;border-top:1px solid #292929;padding:13px 17px;background:#121212}
.terminal-dialog #terminal-prompt{font:500 12px var(--mono);white-space:nowrap;color:#9dd8c3}
.terminal-dialog #terminal-input{font:14px var(--mono);color:#f3f3f3;caret-color:#eee;min-height:25px;min-width:0;flex:1;box-shadow:none!important;outline:none!important;border:0!important;background:transparent}
.terminal-dialog .terminal-hint{color:#a6aaa6}
.terminal-dialog .terminal-welcome{color:#e4e9e4}
.terminal-dialog .terminal-line.terminal-command{color:#f0f0f0}
.terminal-dialog .terminal-line.terminal-output{color:#ccc}
.terminal-launcher{position:fixed;bottom:calc(18px + env(safe-area-inset-bottom));right:calc(18px + env(safe-area-inset-right));left:auto;z-index:70;display:flex;gap:8px;align-items:center;justify-content:center;border-radius:12px;padding:0 12px;min-width:50px;width:auto;height:45px;background:#1b1b1b;color:#d8eee4;border:1px solid #525c56;box-shadow:0 8px 27px #000a}
.terminal-trigger-label{font:600 12px var(--mono);color:#b4dccc}
.terminal-launcher .ui-icon{width:17px;height:17px;color:#a6ddc9}
.terminal-launcher:hover{background:#2b332e;border-color:#99dbc0}
html[data-theme="light"] .terminal-launcher{background:#fff;border-color:#b6cebe;color:#144b32}
html[data-theme="light"] .terminal-trigger-label,html[data-theme="light"] .terminal-launcher .ui-icon{color:#17684f}

/* Mobile: centre in visible viewport and shrink when the keyboard opens. */
@media(max-width:700px){
 .terminal-dialog{position:fixed;inset:auto;left:50%;top:calc(var(--terminal-viewport-top, 0px) + var(--terminal-viewport-height, 100dvh) / 2);transform:translate(-50%,-50%);margin:0;width:calc(100vw - 20px);max-height:calc(var(--terminal-viewport-height, 100dvh) - 20px)}
 .terminal-dialog .terminal-window{height:min(65dvh,520px);max-height:calc(var(--terminal-viewport-height, 100dvh) - 20px);min-height:0}
 .terminal-dialog.keyboard-visible .terminal-window{height:calc(var(--terminal-viewport-height, 100dvh) - 20px)}
 .terminal-dialog .terminal-log{flex:1;max-height:none;min-height:0;padding:14px;font:12px/1.65 var(--mono)}
 .terminal-dialog .terminal-ascii{font-size:9px}
 .terminal-dialog #terminal-form{flex-direction:row;align-items:center;gap:7px;padding:12px;background:#111;border-top:0}
 .terminal-dialog #terminal-prompt{font:500 11px var(--mono)}
 .terminal-dialog #terminal-input{font-size:16px;min-height:26px;width:auto;min-width:0;flex:1}
 .terminal-dialog .terminal-top{padding:10px 12px}
 .terminal-launcher{bottom:calc(14px + env(safe-area-inset-bottom));right:calc(14px + env(safe-area-inset-right));width:46px;height:46px;min-width:46px;padding:0}
 .terminal-trigger-label{display:none}
 .site-footer{padding-bottom:100px}
}
@media(max-width:360px){.terminal-dialog .terminal-ascii{display:none}.terminal-dialog #terminal-title{font-size:11px}}
@media(prefers-reduced-motion:reduce){.mobile-menu-sheet,.terminal-dialog,.terminal-launcher{transition:none!important}}

/* Final centring pass from Chromium review. */
@media(min-width:701px){
  .terminal-dialog[open]{inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}
}
@media(max-width:700px){
  .terminal-dialog:not(.keyboard-visible) .terminal-window{height:min(49dvh,390px)}
  .terminal-dialog.keyboard-visible .terminal-window{height:calc(var(--terminal-viewport-height,100dvh) - 20px)}
}


/* Compact, right-aligned mobile navigation, without the landing-page styling. */
.mobile-menu-sheet {
  top:calc(68px + env(safe-area-inset-top));
  left:auto;
  right:clamp(12px,3vw,28px);
  margin:0;
  width:min(352px,calc(100% - 24px));
  max-height:calc(100dvh - 86px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding:8px 12px 12px;
  border:1px solid #343434;
  border-radius:13px;
  background:#151515;
  box-shadow:0 18px 55px #000a;
}
.mobile-menu-head {
  padding:10px 4px 11px 10px;
  align-items:center;
  border-color:#303030;
}
.mobile-menu-head h2 {
  margin:0;
  color:#f0f0f0;
  font:600 14px/1.4 var(--font);
  letter-spacing:0;
}
.mobile-menu-head button {
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  color:#aaa;
}
.mobile-menu-links {margin:7px 0;gap:1px}
.mobile-menu-links a {
  grid-template-columns:22px minmax(0,1fr);
  gap:12px;
  min-height:47px;
  padding:9px 11px;
  font:500 14px/1.4 var(--font);
  border-radius:8px;
}
.mobile-menu-links .mobile-link-icon {color:#aec2b8}
.mobile-menu-links a:hover,.mobile-menu-links a:focus-visible {background:#262626}
.mobile-menu-extras {
  padding:10px 10px 11px;
  gap:12px 20px;
  border-top:1px solid #303030;
  border-bottom:0;
}
.mobile-menu-extras a {min-height:40px;font-size:13px}
.mobile-menu-theme {
  padding:12px 8px 0;
  border-top:1px solid #303030;
  gap:9px;
}
.mobile-menu-theme>span {
  font:500 12px var(--font);
  letter-spacing:0;
  color:#c3c3c3;
}
.mobile-menu-theme .theme-options {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3px;
  padding:3px;
  background:#222;
}
.mobile-menu-theme .theme-options button,
.footer-appearance .theme-options button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:6px;
}
.mobile-menu-theme .theme-options button {
  min-height:39px;
  font:500 12px var(--font);
}
.mobile-menu-theme .theme-options button svg,
.footer-appearance .theme-options button svg {flex:none;width:14px;height:14px}
.mobile-menu-theme .theme-options button[aria-pressed="true"] {
  color:#f4f4f4;
  background:#3b433f;
}
html[data-theme="light"] .mobile-menu-sheet {background:#fff;border-color:#d4dad4}
html[data-theme="light"] .mobile-menu-head h2 {color:#18251b}
html[data-theme="light"] .mobile-menu-theme {border-color:#dde5dd}
html[data-theme="light"] .mobile-menu-theme>span {color:#425347}
html[data-theme="light"] .mobile-menu-links a:hover,
html[data-theme="light"] .mobile-menu-links a:focus-visible {background:#eef2ee}
html[data-theme="light"] .mobile-menu-links .mobile-link-icon {color:#316a4a}
html[data-theme="light"] .mobile-menu-extras {border-color:#dce5dc}
html[data-theme="light"] .mobile-menu-head button {color:#45594b}
html[data-theme="light"] .mobile-menu-theme .theme-options button[aria-pressed="true"] {
  background:#fff;
  color:#174b32;
}
@media(max-width:360px){
  .mobile-menu-sheet{right:8px;width:calc(100% - 16px);padding:8px 10px 10px}
  .mobile-menu-links a{min-height:44px}
}

/* Editorial finish: fewer decorative boxes, readable hierarchy, OLED first. */
:root { --editorial-line: var(--hairline-soft); }
.brand-icon { border:0!important; box-shadow:none!important; background:transparent!important; border-radius:0!important; padding:0!important; width:auto!important; height:auto!important; }
.brand { gap:11px; }
.brand-icon .ui-icon { color:var(--accent); }
.mobile-menu-trigger {
  width:46px!important; min-width:46px!important; height:46px!important; min-height:46px!important;
  padding:0!important; border:0!important; background:transparent!important;
  border-radius:7px!important; box-shadow:none!important;
}
.mobile-menu-trigger:hover, .mobile-menu-trigger[aria-expanded="true"] { background:var(--surface-raised)!important; }
.mobile-menu-trigger:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.mobile-menu-trigger .ui-icon { width:23px; height:23px; }
.mobile-menu-sheet {
  border:0!important; border-top:1px solid var(--hairline)!important;
  border-radius:0 0 12px 12px!important; background:var(--bg)!important;
  padding:8px 12px 12px!important; box-shadow:0 28px 70px #000b!important;
}
.mobile-menu-head { border:0!important; padding:4px 5px 2px!important; justify-content:flex-end!important; }
.mobile-menu-head button { width:44px!important; height:44px!important; border:0!important; background:transparent!important; }
.mobile-menu-links { margin:3px 0!important; gap:0!important; }
.mobile-menu-links a { border-radius:5px!important; border-bottom:1px solid var(--hairline-soft); min-height:51px!important; }
.mobile-menu-links a:last-child { border-bottom:0; }
.mobile-menu-links a:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.mobile-menu-extras { border-top:1px solid var(--hairline)!important; border-bottom:0!important; padding:9px 10px!important; }
.mobile-menu-theme { display:none!important; }
html[data-theme="light"] .mobile-menu-sheet { background:var(--bg)!important; }
html[data-theme="light"] .mobile-menu-links a { color:var(--ink)!important; }
html[data-theme="light"] .mobile-menu-extras a { color:var(--ink)!important; }
.visually-hidden { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
.terminal-window-dots { display:none!important; }
.terminal-dialog .terminal-top { justify-content:space-between!important; background:#111!important; border-bottom:1px solid #303030!important; }
.terminal-dialog .terminal-top button { margin-left:auto; min-width:40px; min-height:40px; border:0!important; background:transparent!important; color:#ccc!important; }
.terminal-dialog .terminal-window { border-radius:9px!important; background:#080b09!important; }
.terminal-dialog .terminal-log { background:#080b09!important; }
.terminal-dialog #terminal-form { background:#0b0e0c!important; }
.terminal-dialog .terminal-ascii { color:#9ddac6!important; }
.terminal-launcher { border-radius:9px!important; }
.terminal-launcher:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.hero-side { border:0!important; background:transparent!important; box-shadow:none!important; border-radius:0!important; }
.mini-title { border:0!important; border-bottom:1px solid var(--hairline)!important; border-radius:0!important; background:transparent!important; }
.mini-dots { display:none!important; }
.mini-content { background:transparent!important; }
.skills-grid { gap:clamp(20px,3vw,48px)!important; }
.skill-group { border:0!important; border-top:1px solid var(--hairline)!important; background:transparent!important; border-radius:0!important; box-shadow:none!important; padding:22px 0!important; }
.skill-icon { background:transparent!important; border:0!important; box-shadow:none!important; padding:0!important; color:var(--accent)!important; }
.skill-group li { border:0!important; background:transparent!important; border-radius:0!important; padding:4px 0!important; }
.projects-list { gap:0!important; }
.project-card { border:0!important; border-bottom:1px solid var(--hairline)!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.project-card:first-child { border-top:1px solid var(--hairline)!important; }
.project-copy { padding-inline:0!important; }
.project-icon { border:0!important; background:transparent!important; box-shadow:none!important; color:var(--accent)!important; }
.project-card:hover { background:transparent!important; border-color:var(--hairline)!important; transform:none!important; }
.project-card h3 a:hover, .project-foot a:hover { color:var(--accent); text-decoration:underline; text-underline-offset:5px; }
.work-filter { border:0!important; background:transparent!important; box-shadow:none!important; }
.work-filter button { border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important; }
.work-filter button[aria-pressed="true"] { border-bottom:2px solid var(--accent)!important; color:var(--ink)!important; }
.experience-list article { border:0!important; border-bottom:1px solid var(--hairline)!important; background:transparent!important; border-radius:0!important; box-shadow:none!important; }
.experience-icon { background:transparent!important; border:0!important; color:var(--accent)!important; }
.footer-appearance { margin-left:auto; }
@media(max-width:820px) {
 .mobile-menu-sheet { right:12px!important; width:min(340px,calc(100% - 24px))!important; }
 .skills-grid { gap:12px!important; }
 .project-copy { padding-block:24px!important; }
}
@media(max-width:520px) {
 .mobile-menu-sheet { right:0!important; left:0!important; top:calc(64px + env(safe-area-inset-top))!important; width:100%!important; max-height:calc(100dvh - 64px - env(safe-area-inset-top))!important; border-radius:0!important; }
 .footer-appearance { margin-left:0; }
 .terminal-launcher { width:46px!important; height:46px!important; }
}
@media(prefers-reduced-motion:reduce) { .project-card, .terminal-launcher { transition:none!important; } }

/* November mobile/desktop quality pass. Do not add decorative boxes to layout. */
body.portfolio-modal-open { position:fixed; width:100%; left:0; right:0; overflow:hidden; }
.mobile-menu-dialog, .terminal-dialog { overscroll-behavior:contain; }
.mobile-menu-dialog::backdrop { background:rgba(0,0,0,.74); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); }
.mobile-menu-sheet { box-shadow:0 14px 45px #0007!important; }
.mobile-menu-links a { grid-template-columns:24px minmax(0,1fr)!important; border-bottom:0!important; border-radius:6px!important; font-weight:500!important; }
.mobile-menu-links a:hover,.mobile-menu-links a:focus-visible { background:var(--surface-raised)!important; }
.mobile-menu-links .mobile-link-icon { color:var(--accent)!important; }
.mobile-menu-extras { display:none!important; }
.terminal-launcher { z-index:65; }
.terminal-dialog[open] { z-index:1000; }
.mobile-menu-dialog[open] { z-index:1000; }
.hero-side { overflow:visible!important; }
.case-visual { min-height:0!important; height:auto!important; overflow:visible!important; }
.case-visual .diagram-frame { min-height:0!important; height:auto!important; max-height:none!important; overflow:visible!important; border-radius:10px; }
.case-visual .diagram-inner { max-height:none!important; height:auto!important; overflow:visible!important; }
.case-visual .diagram-flow { flex-wrap:wrap; }
.case-visual .diagram-node { min-width:0; overflow-wrap:anywhere; }
.case-tags span { background:transparent!important; border:0!important; border-bottom:1px solid var(--hairline)!important; padding:7px 3px!important; }
.hero-links a:focus-visible,.button:focus-visible,.theme-options button:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.theme-options button { color:var(--muted)!important; }
.theme-options button[aria-pressed="true"] { background:var(--surface-raised)!important; color:var(--ink)!important; }
html[data-theme="light"] .button-quiet { background:#fff!important; color:#193024!important; border:1px solid #9dad9f!important; }
html[data-theme="light"] .button-quiet svg { color:#193024!important; }
html[data-theme="light"] .social-github svg { color:#27332b!important; }
html[data-theme="light"] .terminal-launcher { background:#fff!important; color:#17523b!important; box-shadow:0 4px 15px #102d201f!important; }
html[data-theme="light"] .mobile-menu-dialog::backdrop { background:rgba(15,25,17,.38); }
html[data-theme="light"] .mobile-menu-sheet { background:#fff!important; box-shadow:0 16px 38px #10271926!important; }
html[data-theme="light"] .mobile-menu-links a { color:#19251d!important; }
html[data-theme="light"] .mobile-menu-links a:hover { background:#edf2ed!important; }
html[data-theme="light"] .diagram-frame { background:#fff!important; }
html[data-theme="light"] .diagram-node { background:#f7f9f6!important; border-color:#c5d5c8!important; }
html[data-theme="light"] .diagram-node strong { color:#19251d!important; }
html[data-theme="light"] .diagram-node small { color:#43544a!important; }
html[data-theme="light"] .diagram-note { color:#43544a!important; }
@media(max-width:820px) {
 .mobile-menu-dialog { height:100dvh; }
 .mobile-menu-sheet { top:calc(68px + env(safe-area-inset-top))!important; }
 .case-hero h1 { overflow-wrap:break-word; }
}
@media(max-width:620px) {
 .case-visual { height:auto!important; min-height:0!important; }
 .case-visual .diagram-frame { padding:0!important; }
 .case-visual .diagram-inner { padding:16px!important; }
 .case-visual .diagram-flow { flex-direction:column!important; align-items:stretch!important; gap:7px!important; }
 .case-visual .diagram-flow .diagram-node { width:100%!important; min-height:0!important; padding:13px 15px!important; }
 .case-visual .diagram-flow .diagram-arrow { transform:rotate(90deg); align-self:center; flex:none; }
 .case-visual .diagram-note { padding:12px 16px!important; }
 .case-visual .diagram-frame figcaption { padding:17px 16px 10px!important; }
 .case-tags { gap:6px 14px!important; }
 .case-tags span { font-size:12px!important; }
 .footer-appearance { width:100%; display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
 .footer-appearance .theme-options { max-width:100%; }
 .footer-appearance .theme-options button { min-width:0; }
 .back-to-top { bottom:calc(20px + env(safe-area-inset-bottom))!important; right:calc(84px + env(safe-area-inset-right))!important; width:44px!important; height:44px!important; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }

/* Compact navigation popover, not a full-width black drawer. */
@media(max-width:820px) {
 .mobile-menu-sheet { left:auto!important; right:clamp(12px,3vw,24px)!important; top:calc(72px + env(safe-area-inset-top))!important; width:min(320px,calc(100vw - 24px))!important; max-height:calc(100dvh - 96px)!important; padding:9px 12px!important; border:1px solid var(--hairline)!important; border-radius:12px!important; background:var(--surface)!important; }
 .mobile-menu-head { min-height:42px!important; padding:0!important; }
 .mobile-menu-links { margin:2px 0 6px!important; }
 .mobile-menu-links a { min-height:48px!important; padding:10px 12px!important; }
}
