/* Concept: full stack = full depth. The page is one dive. The background runs from
   sunlit surface blue to abyssal navy over the length of the document, the stack is
   laid out as ocean zones, and a depth gauge tracks how far down the reader is. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --sea-0: #0c5a98;
  --sea-1: #0a4a86;
  --sea-2: #073a70;
  --sea-3: #052650;
  --sea-4: #031530;
  --sea-5: #020a18;
  --foam: #f2f8fd;
  --mist: #c6dcee;
  --line: rgb(242 248 253 / .2);
  --line-strong: rgb(242 248 253 / .55);
  --glow: #7fe7f2;

  --font-ui: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --fs-small: 0.9375rem;
  --fs-text: 1.125rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.25rem, 1.1rem + 4.4vw, 4.5rem);

  --wrap: 1180px;
  --gap: clamp(24px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--sea-5); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--sea-0) 0, var(--sea-1) 10%, var(--sea-2) 30%, var(--sea-3) 55%, var(--sea-4) 80%, var(--sea-5) 100%);
  color: var(--foam);
  font-family: var(--font-text);
  font-size: var(--fs-text);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dt, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--foam); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--glow); color: var(--sea-5); }

h1, h2, h3, dt, .brand, .nav, .btn, .text-link, .header-cta, .copy-btn, .toolkit, .stack-line, .gauge {
  font-family: var(--font-ui);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 40;
  background: var(--foam); color: var(--sea-4); padding: 12px 16px; font-family: var(--font-ui); font-weight: 700;
}
.skip:focus { top: 12px; }

/* The water */
.sea { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; filter: blur(1.5px); }
.site-header, main { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease;
}
.site-header.is-stuck {
  background: rgb(4 24 50 / .72); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.header-row { display: flex; align-items: center; gap: 12px 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  background: var(--foam); color: var(--sea-2);
  font-weight: 800; font-stretch: 75%; font-size: 1.3rem; letter-spacing: -0.02em;
  border-radius: 50% 50% 50% 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-stretch: 88%; font-size: 1.125rem; }
.brand-role { font-size: 0.8125rem; font-weight: 500; color: var(--mist); }
.nav { display: flex; gap: 4px 28px; }
.nav a { font-size: 1rem; font-weight: 600; font-stretch: 92%; padding-block: 10px; white-space: nowrap; }
.nav a[aria-current="true"] { color: var(--glow); background-size: 100% 2px; }
.header-cta[aria-current="true"] { background: var(--foam); border-color: var(--foam); color: var(--sea-2); }
.header-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px 999px 999px 4px;
  font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.header-cta:hover { background: var(--foam); border-color: var(--foam); color: var(--sea-2); }

/* Hero: at the surface */
.hero { position: relative; padding-block: clamp(72px, 12vw, 168px) clamp(72px, 10vw, 144px); }
.rays { position: absolute; inset: -140px 0 0 0; overflow: hidden; pointer-events: none; }
.rays span {
  position: absolute; top: -10%; height: 130%; width: 16vw; min-width: 120px;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / .15) 35%, rgb(255 255 255 / .15) 65%, rgb(255 255 255 / 0));
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%); mask-image: linear-gradient(180deg, #000, transparent 78%);
  transform: skewX(-20deg); transform-origin: top; will-change: transform;
  animation: sway 11s ease-in-out infinite alternate;
}
.rays span:nth-child(1) { left: 4%; }
.rays span:nth-child(2) { left: 30%; width: 9vw; animation-duration: 14s; animation-delay: -4s; opacity: .7; }
.rays span:nth-child(3) { left: 58%; width: 20vw; animation-duration: 17s; animation-delay: -9s; opacity: .55; }
.rays span:nth-child(4) { left: 84%; width: 8vw; animation-duration: 12s; animation-delay: -2s; opacity: .8; }
@keyframes sway { from { transform: skewX(-24deg) translateX(-2vw); } to { transform: skewX(-14deg) translateX(3vw); } }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
h1 {
  font-size: var(--fs-h1); font-weight: 700; font-stretch: 76%;
  line-height: 1; letter-spacing: -0.015em; text-wrap: balance;
}
.hero-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-top: 8px; }
.hero-side p { max-width: 34em; }
.hero-side p:last-of-type { color: var(--mist); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--foam); color: var(--sea-2);
  font-size: 1.0625rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  border-radius: 999px 999px 999px 4px;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-3px); background: #ffffff; box-shadow: 0 14px 34px rgb(2 10 24 / .45); }
.btn:active { transform: none; box-shadow: none; }
.text-link { font-size: 1.0625rem; font-weight: 600; padding-block: 12px; }

/* System map: skills laid out as one architecture */
.sysmap { margin: clamp(48px, 7vw, 96px) 0 0; animation: rise .6s cubic-bezier(.2, .7, .2, 1) .25s both; }
.sysmap figcaption { font-family: var(--font-ui); font-size: 1.125rem; font-weight: 700; font-stretch: 88%; padding-top: 16px; border-top: 2px solid var(--foam); }
.sysmap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr) 132px minmax(0, 1fr); margin-top: 24px; }
.sys-col { display: flex; flex-direction: column; min-width: 0; }
.sys-node { padding: 18px 20px 20px; background: rgb(3 21 48 / .34); border: 1px solid var(--line-strong); border-radius: 4px; }
.sys-node.sys-sub { border-style: dashed; flex: 1; }
.sys-title { font-family: var(--font-ui); font-size: 1.375rem; font-weight: 700; font-stretch: 82%; line-height: 1.1; letter-spacing: 0; color: var(--glow); }
.sys-node dl, .sys-node p:not(.sys-title), .sys-base p:not(.sys-title) { margin-top: 10px; font-family: var(--font-ui); font-size: var(--fs-small); line-height: 1.45; }
.sys-node dl > div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 10px; padding-block: 5px; }
.sys-node dl > div + div { border-top: 1px solid var(--line); }
.sys-node dt { font-weight: 700; color: var(--mist); }
.sys-link { position: relative; height: 44px; padding-left: 34px; display: flex; align-items: center; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; color: var(--mist); }
.sys-link::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; border-left: 1px dashed var(--line-strong); }
.sys-flow { position: relative; align-self: start; height: 132px; display: flex; align-items: center; justify-content: center; }
.sys-flow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line-strong); }
.sys-flow::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 12px rgb(127 231 242 / .9);
  animation: flow-x 2.6s cubic-bezier(.5, 0, .5, 1) infinite alternate;
}
.sys-flow span { position: relative; top: -16px; font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600; color: var(--mist); white-space: nowrap; }
.sys-flow + .sys-col + .sys-flow::after { animation-delay: -1.3s; }
@keyframes flow-x { from { left: 0; } to { left: 100%; } }
@keyframes flow-y { from { top: 0; } to { top: 100%; } }
.sys-base { position: relative; margin-top: 28px; padding: 16px 20px 18px; background: rgb(3 21 48 / .5); border: 1px solid var(--line-strong); border-radius: 4px; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 4px 20px; align-items: baseline; }
.sys-base::before { content: ""; position: absolute; left: 10%; right: 10%; top: -29px; height: 28px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 25%); border-left: 0; opacity: .8; }
.sys-base p:not(.sys-title) { margin-top: 0; }
.motion-off .sys-flow::after { animation-play-state: paused; }

/* Sections */
.section { padding-top: clamp(72px, 10vw, 144px); }
h2 {
  position: relative; padding-top: 26px;
  font-size: var(--fs-h2); font-weight: 700; font-stretch: 80%;
  line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance;
}
h2::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--foam); transform-origin: left center; }
.section-intro { margin-top: 16px; max-width: 38em; color: var(--mist); }
h3 { font-size: var(--fs-h3); font-weight: 700; font-stretch: 86%; line-height: 1.15; text-wrap: balance; }

/* Skills as depth zones */
.zones { margin-top: clamp(28px, 4vw, 48px); }
.zone { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px var(--gap); padding-block: 32px; border-top: 1px solid var(--line); }
.zone:first-child { border-top: 0; padding-top: 0; }
.zone-head { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: sticky; top: 104px; align-self: start; }
.zone-head h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-stretch: 78%; }
.zone-head p { color: var(--mist); font-size: 1rem; line-height: 1.45; max-width: 22em; }
.toolkit { font-size: 1.0625rem; line-height: 1.5; min-width: 0; }
.toolkit > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 2px 24px; padding-block: 12px; border-top: 1px solid var(--line); }
.toolkit > div:first-child { border-top: 0; padding-top: 4px; }
.toolkit dt { font-weight: 700; font-stretch: 88%; color: var(--glow); }
.skills-note { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 40em; color: var(--mist); }

/* Domains */
.domains { margin-top: clamp(28px, 4vw, 48px); }
.domain { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px var(--gap); padding-block: 26px; border-top: 1px solid var(--line); }
.domain:first-child { border-top: 0; padding-top: 0; }
.domain dt { font-size: var(--fs-h3); font-weight: 700; font-stretch: 86%; line-height: 1.15; }
.domain dd { max-width: 40em; }

/* Work */
.projects { margin-top: clamp(28px, 4vw, 48px); }
.project { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px var(--gap); padding-block: 34px; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; padding-top: 0; }
.project-head { display: flex; flex-direction: column; gap: 8px; min-width: 0; position: sticky; top: 104px; align-self: start; }
.project-head p { color: var(--mist); font-size: 1rem; line-height: 1.5; }
.project-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 40em; }
.project-body ul { display: flex; flex-direction: column; gap: 8px; }
.project-body li { padding-left: 1.2em; text-indent: -1.2em; }
.project-body li::before { content: "\2013"; display: inline-block; width: 1.2em; text-indent: 0; color: var(--glow); }
.stack-line { font-size: var(--fs-small); line-height: 1.5; color: var(--mist); }
.stack-line span { font-weight: 700; color: var(--glow); margin-right: 6px; }
.scale-line { font-size: 1rem; color: var(--foam); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.edu { padding-top: 26px; border-top: 1px solid var(--line); color: var(--mist); }

/* Contact: the seabed */
.contact { padding-block: clamp(88px, 12vw, 176px) clamp(72px, 10vw, 136px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.contact h2 { padding-top: 0; font-size: clamp(2.5rem, 1.4rem + 5vw, 5rem); font-stretch: 74%; color: var(--glow); }
.contact h2::before { display: none; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }
.contact-intro p { color: var(--mist); max-width: 24em; }
.contact-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: baseline; gap: 4px 16px; padding-block: 16px; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: var(--fs-small); font-weight: 500; color: var(--mist); }
.contact-list dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 20px; min-width: 0; }
.contact-list a { font-family: var(--font-ui); font-size: 1.375rem; font-weight: 600; font-stretch: 88%; padding-block: 6px; overflow-wrap: anywhere; }
.copy-btn {
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  color: var(--mist); font-size: var(--fs-small); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.copy-btn:hover { color: var(--glow); }

/* Depth gauge */
.depth-bar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 3px; background: var(--glow); transform: scaleX(0); transform-origin: left center; }
.gauge { display: none; }
@media (min-width: 1440px) {
  .depth-bar { display: none; }
  .gauge {
    display: block; position: fixed; z-index: 15; right: max(28px, calc((100vw - var(--wrap)) / 2 - 150px)); top: 50%;
    transform: translateY(-50%); color: var(--mist); font-size: 0.8125rem; font-weight: 600; line-height: 1;
  }
  .gauge-track { position: relative; height: 44vh; min-height: 260px; border-right: 1px solid var(--line-strong); padding-right: 16px; }
  .gauge-stop { cursor: pointer; position: absolute; right: 16px; top: calc(var(--at, 0) * 100%); transform: translateY(-50%); white-space: nowrap; transition: color .3s ease; }
  .gauge-stop::after { content: ""; position: absolute; right: -17px; top: 50%; width: 9px; height: 1px; background: var(--line-strong); }
  .gauge-stop:hover, .gauge-stop.is-here { color: var(--foam); }
  .gauge-dot {
    position: absolute; right: -6px; top: 0; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%;
    background: var(--glow); box-shadow: 0 0 0 4px rgb(127 231 242 / .2), 0 0 18px rgb(127 231 242 / .7);
  }
  .gauge-read { margin-top: 18px; text-align: right; color: var(--glow); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
}

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { transform: translateY(20px); } to { transform: none; } }
.hero h1 { animation: slide .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-side > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-side > :nth-child(1) { animation-delay: .05s; }
.hero-side > :nth-child(2) { animation-delay: .1s; }
.hero-side > :nth-child(3) { animation-delay: .15s; }
.hero-side > :nth-child(4) { animation-delay: .2s; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js h2.reveal { opacity: 1; transform: none; }
.js h2.reveal::before { transform: scaleX(0); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.js h2.reveal.in::before { transform: scaleX(1); }

.nav a, .text-link, .contact-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 2px no-repeat; transition: background-size .3s ease, color .3s ease; }
.text-link, .contact-list a { background-size: 100% 1px; }
.nav a:hover { background-size: 100% 2px; }
.text-link:hover, .contact-list a:hover { background-size: 100% 3px; color: var(--glow); }
.project h3, .domain dt, .zone-head h3 { transition: color .3s ease, transform .3s ease; }
.project:hover h3, .domain:hover dt, .zone:hover .zone-head h3 { color: var(--glow); transform: translateX(8px); }

/* Floating controls and status */
.dock { position: fixed; z-index: 25; display: flex; flex-direction: column; gap: 10px; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
.dock-btn {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0; cursor: pointer;
  color: var(--foam); background: rgb(4 24 50 / .7); border: 1px solid var(--line-strong); border-radius: 50%;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.dock-btn:hover { background: var(--foam); border-color: var(--foam); color: var(--sea-2); transform: translateY(-2px); }
.i-play { display: none; }
.motion-off .i-play { display: block; }
.motion-off .i-pause { display: none; }
.motion-off .rays span { animation-play-state: paused; }
.toast {
  position: fixed; z-index: 35; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--foam); color: var(--sea-3); padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 12px 30px rgb(2 10 24 / .5);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.copy-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.copy-btn:hover { border-color: var(--glow); }

/* Responsive */
@media (max-width: 1100px) {
  .sysmap-grid { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); }
  .sys-flow span { display: none; }
  .sys-node { padding: 16px 16px 18px; }
}
@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .header-row { min-height: 60px; gap: 12px 16px; }
  .brand-role { display: none; }
  .nav { flex: 0 1 auto; min-width: 0; margin-left: auto; justify-content: flex-start; gap: 0 18px; overflow-x: auto; scrollbar-width: none; }
  .brand { margin-right: 0; }
  .contact { padding-bottom: 148px; }
  .nav::-webkit-scrollbar { display: none; }
  .header-cta { min-height: 40px; padding: 0 16px; }
  .site-header, .site-header.is-stuck { background: rgb(5 32 66 / .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sea { filter: none; }
  .dock-btn { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(4 24 50 / .92); }
  .hero-grid, .contact-grid, .zone, .domain, .project { grid-template-columns: minmax(0, 1fr); }
  .sysmap-grid { grid-template-columns: minmax(0, 1fr); }
  .sys-flow { height: 56px; align-self: stretch; justify-content: flex-start; padding-left: 34px; }
  .sys-flow::before { left: 20px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid var(--line-strong); }
  .sys-flow::after { left: 20px; top: 0; margin: -4.5px 0 0 -4.5px; animation-name: flow-y; }
  .sys-flow span { display: inline; top: 0; }
  .sys-base { grid-template-columns: minmax(0, 1fr); }
  .sys-base::before { left: 20px; right: auto; width: 1px; background: var(--line-strong); }
  .project-head, .zone-head { position: static; }
}
@media (max-width: 700px) {
  .brand-text { display: none; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.15rem; }
  .nav { gap: 0 12px; }
  .nav a { font-size: 0.9375rem; }
  .header-row { gap: 10px; }
  .header-cta { padding: 0 13px; }
}
@media (max-width: 380px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .header-row { gap: 10px; }
  .nav { gap: 0 9px; }
  .nav a { font-size: 0.875rem; }
  .header-cta { padding: 0 12px; font-size: 0.9375rem; }
}
@media (max-width: 340px) {
  .nav { gap: 0 7px; }
  .nav a { font-size: 0.8125rem; }
  .header-row { gap: 7px; }
  .header-cta { padding: 0 9px; font-size: 0.875rem; }
  .brand-mark { width: 34px; height: 34px; font-size: 1.05rem; }
}
@media (max-width: 560px) {
  :root { --fs-text: 1.0625rem; }
  .toolkit > div, .contact-list > div { grid-template-columns: minmax(0, 1fr); }
  .contact-list a { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-side > *, .rays span, .sysmap, .sys-flow::after { animation: none; }
  .btn, .dock-btn, .toast, .project h3, .domain dt, .zone-head h3 { transition: none; }
  .btn:hover, .project:hover h3, .domain:hover dt, .zone:hover .zone-head h3 { transform: none; }
}

@media print {
  html, body { background: #fff; color: #000; }
  .sea, .rays, .gauge, .depth-bar, .nav, .header-cta, .actions, .copy-btn, .dock, .toast { display: none; }
  .project-head, .zone-head { position: static; }
  .site-header { position: static; }
  a, .toolkit dt, .stack-line span, .contact h2, .brand-role, .section-intro, .zone-head p, .project-head p, .hero-side p:last-of-type { color: #000; }
  h2::before { background: #000; }
}
