/* ==========================================================================
   harms.ca: global system
   Tokens, chrome type, layout, fiber line, minimap, splice transition,
   hero, part intros, bridge, also built, about, contact, footer.
   ========================================================================== */

:root {
  /* Shared palette (image-prompts/README.md) */
  --night: #0B0F14;
  --fiber: #3FE0E6;
  --slate: #1E2A33;
  --amber: #F2A93B;
  --blueprint: #2F5D8A;
  --paper: #F4F1EA;
  --prairie: #D9A441;
  --plan: #2B2B2B;
  --charcoal: #16191D;
  --surface: #E9ECEF;

  /* Kuma Baby brand */
  --k-teal: #075766;
  --k-cream: #FFF9E9;
  --k-paper: #F5EDDB;
  --k-ink: #164C50;
  --k-gold: #F7CA52;
  --k-honey: #D8A62A;
  --k-muted: #536566;
  --k-line: #D9D8C6;

  /* Signal states */
  --ok: #5BE38A;
  --alarm: #F25F5C;

  /* Chrome type */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Space Grotesk", var(--sans);

  /* Layout */
  --maxw: 1120px;
  --gutter: 16px;
  --fiber-x: 8px;
  --section-pad: clamp(72px, 11vw, 144px);

  /* Defaults (dark skin) */
  --text: #E8EDF2;
  --muted: #A3B0BC;
  --fiber-c: var(--fiber);
  --focus: var(--fiber);
}

@media (min-width: 700px) {
  :root { --gutter: 48px; --fiber-x: 20px; }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 84px;
    --fiber-x: max(34px, calc((100vw - var(--maxw)) / 2 - 46px));
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Clip on html too, so body's clip isn't handed to the viewport (which iOS still lets you pan)
   and body itself cuts off anything wider than the screen. */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .92em; }
[id] { scroll-margin-top: 24px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 16px; border-radius: 6px;
  background: var(--fiber); color: var(--night);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--maxw), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
main { position: relative; }
main > section { position: relative; }
/* Keep section titles and labels above the travelling fiber and splice. */
main > section h2,
main > section .station-label,
main > section .mono-label { position: relative; z-index: 4; }


.mono-label,
.station-label {
  font: 500 12.5px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fiber-c);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}

.station {
  padding-block: var(--section-pad);
  color: var(--text);
}
.station-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.station-head h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.role {
  font: 500 13px/1.6 var(--mono);
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.lede { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.65; max-width: 64ch; }
.lede + .lede { margin-top: 14px; }
.caption {
  font: 400 12px/1.5 var(--mono);
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 14px;
}

/* Fine vs coarse pointer hints */
.hint-coarse { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-coarse { display: inline; }
}

/* ---------- LEDs ---------- */
.led {
  display: inline-block; flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(91, 227, 138, .14), 0 0 8px rgba(91, 227, 138, .6);
}
.led-live { background: var(--fiber); box-shadow: 0 0 0 3px rgba(63, 224, 230, .14), 0 0 8px rgba(63, 224, 230, .7); }
@media (prefers-reduced-motion: no-preference) {
  .led-live { animation: blink 2.4s ease-in-out infinite; }
}
@keyframes blink { 50% { opacity: .35; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 6px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--fiber); color: var(--night); }
.btn-primary:hover { background: #7DEEF1; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(232, 237, 242, .35); color: var(--text); }
.btn-ghost:hover { border-color: var(--fiber); color: #fff; }

/* ==========================================================================
   Fiber line (segments added by js/core/fiber.js)
   ========================================================================== */
.fiber {
  position: absolute; z-index: 3;
  left: var(--fiber-x); top: 0; bottom: 0;
  width: 2px; margin-left: -1px;
  background: var(--fiber-c);
  opacity: .22;
  pointer-events: none;
  transition: opacity .8s ease, box-shadow .8s ease;
}
.fiber.lit { opacity: .9; box-shadow: 0 0 10px color-mix(in srgb, var(--fiber-c) 70%, transparent); }
.fiber::before { /* splice flash */
  content: ""; position: absolute; inset: 0;
  background: #fff; opacity: 0;
}
.fiber.flash::before { animation: fiber-flash 900ms ease-out; }
@keyframes fiber-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.fiber::after { /* travelling pulse */
  content: ""; position: absolute; left: -3px; width: 8px; height: 140px; top: 0;
  border-radius: 8px;
  background: linear-gradient(to bottom, transparent, #fff 50%, transparent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .fiber.lit::after { animation: fiber-pulse 5.5s linear infinite; }
}
@keyframes fiber-pulse {
  0% { top: -140px; opacity: 0; }
  10% { opacity: .7; }
  90% { opacity: .7; }
  100% { top: 100%; opacity: 0; }
}
.fiber-node {
  position: absolute; z-index: 4;
  left: var(--fiber-x); top: var(--node-y, 120px);
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--fiber-c);
  background: var(--node-bg, var(--night));
  pointer-events: none;
  transition: background-color .6s ease, box-shadow .6s ease;
}
.fiber-node.lit { background: var(--fiber-c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fiber-c) 22%, transparent), 0 0 14px var(--fiber-c); }

/* One quiet arrival: the node fills and releases a halo beside the text. */
@media (prefers-reduced-motion: no-preference) {
  .fiber.lit { animation: segment-arrival 900ms cubic-bezier(.2, .7, .2, 1) both; transform-origin: center top; }
  .fiber-node.lit::after {
    content: "";
    position: absolute; inset: -3px;
    border: 1px solid var(--fiber-c); border-radius: 50%;
    animation: node-arrival 850ms ease-out both;
  }
  .heading-ready .station-head > .station-label,
  .heading-ready .station-head > h2 {
    opacity: 0; transform: translateY(10px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .7, .2, 1);
  }
  .heading-ready.heading-arrived .station-head > .station-label,
  .heading-ready.heading-arrived .station-head > h2 {
    opacity: 1; transform: translateY(0);
  }
  .heading-ready.heading-arrived .station-head > h2 { transition-delay: 90ms; }
}
@keyframes segment-arrival {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes node-arrival {
  from { opacity: .65; transform: scale(1); }
  to { opacity: 0; transform: scale(2.8); }
}

/* Drawn connector curves (Part 1 hand-off from the hero, bridge hand-off) */
.fiber-path {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.fiber-path path {
  fill: none; stroke: var(--fiber-c); stroke-width: 2;
  opacity: .9;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--fiber-c) 80%, transparent));
}

/* ==========================================================================
   Header + minimap
   ========================================================================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.brand {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font: 500 13px/1 var(--mono); letter-spacing: .06em;
}
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 7px;
  border: 1.5px solid var(--fiber);
  font: 700 13px/1 var(--display); letter-spacing: .02em;
  color: var(--fiber);
}

.minimap {
  pointer-events: auto; position: fixed; z-index: 50;
  /* Bar palette: retinted per section by js/core/minimap.js via data-theme */
  --mm-bg: 11, 15, 20;            /* RGB triplet so each layout sets its own alpha */
  --mm-ink: #E8EDF2;              /* idle dots, hairlines */
  --mm-accent: var(--fiber);      /* lit + passed dots, rail */
  --mm-label: var(--fiber);       /* current station name */
  --mm-font: var(--mono);
  --mm-ease: .45s ease;
}
/* Each skin mirrors the section it names (stations.css / the about block below). */
.minimap[data-theme="infrastructure"] { --mm-bg: 30, 42, 51; --mm-accent: var(--amber); --mm-label: var(--amber); }
.minimap[data-theme="wireless"] { --mm-bg: 245, 246, 247; --mm-ink: #1F2328; --mm-accent: #1F8F55; --mm-label: #1F6F43; --mm-font: "Barlow Semi Condensed", var(--mono); }
.minimap[data-theme="mapping"] { --mm-bg: 233, 236, 239; --mm-ink: #1B2026; --mm-accent: #138A93; --mm-label: #0B6E75; --mm-font: "Manrope", var(--mono); }
.minimap[data-theme="procedures"] { --mm-bg: 244, 241, 234; --mm-ink: #1C2733; --mm-accent: var(--blueprint); --mm-label: var(--blueprint); --mm-font: "Zilla Slab", var(--mono); }
.minimap[data-theme="patch-panel"] { --mm-bg: 16, 19, 22; --mm-ink: #D7DCE1; --mm-font: "Rajdhani", var(--mono); }
.minimap[data-theme="clevertech"] { --mm-bg: 235, 231, 228; --mm-ink: #2D3644; --mm-accent: #8B6513; --mm-label: #8B6513; --mm-font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.minimap[data-theme="kuma-baby"] { --mm-bg: 255, 249, 233; --mm-ink: var(--k-ink); --mm-accent: var(--k-honey); --mm-label: #9A6305; --mm-font: "Fraunces", Georgia, serif; }
.minimap[data-theme="verilock"] { --mm-bg: 250, 249, 246; --mm-ink: #151719; --mm-accent: #1677FF; --mm-label: #063A78; --mm-font: "Inter", var(--sans); }
.minimap[data-theme="about"] { --mm-bg: 247, 245, 240; --mm-ink: #1E252C; --mm-accent: #13858D; --mm-label: #0E6A71; }
.minimap-list { list-style: none; position: relative; }
.minimap a { position: relative; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.minimap-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--mm-ink) 50%, transparent);
  background: rgb(var(--mm-bg));
  transition: transform .3s ease, background-color var(--mm-ease), box-shadow .3s ease, border-color var(--mm-ease);
}
.minimap a.passed .minimap-dot { border-color: var(--mm-accent); background: color-mix(in srgb, var(--mm-accent) 35%, rgb(var(--mm-bg))); }
.minimap a[aria-current] .minimap-dot {
  background: var(--mm-accent); border-color: var(--mm-accent);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mm-accent) 18%, transparent), 0 0 12px var(--mm-accent);
}
.minimap a:hover .minimap-dot { border-color: var(--mm-ink); }
.minimap a.flash .minimap-dot { animation: dot-flash 700ms ease-out; }
@keyframes dot-flash { 0% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--mm-accent) 45%, transparent), 0 0 24px #fff; } }
.minimap a:focus-visible { outline-offset: 1px; }

/* Desktop: fixed side rail */
@media (min-width: 1024px) {
  .minimap { right: 16px; top: 50%; transform: translateY(-50%); }
  .minimap-current { display: none; }
  .minimap-list {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 6px;
    background: rgba(var(--mm-bg), .74);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border: 1px solid color-mix(in srgb, var(--mm-ink) 12%, transparent);
    border-radius: 999px;
    transition: background-color var(--mm-ease), border-color var(--mm-ease);
  }
  .minimap-list::before {
    content: ""; position: absolute; left: 50%; top: 26px; bottom: 26px;
    width: 1px; background: color-mix(in srgb, var(--mm-accent) 35%, transparent);
    transition: background-color var(--mm-ease);
  }
  .minimap a { width: 30px; height: 30px; }
  .minimap-label {
    position: absolute; right: 40px; top: 50%;
    transform: translate(6px, -50%);
    white-space: nowrap;
    font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
    color: var(--mm-ink);
    background: rgba(var(--mm-bg), .92);
    border: 1px solid color-mix(in srgb, var(--mm-ink) 14%, transparent);
    padding: 6px 9px; border-radius: 4px;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .minimap a:hover .minimap-label,
  .minimap a:focus-visible .minimap-label { opacity: 1; transform: translate(0, -50%); }
}
@media (min-width: 1500px) {
  .minimap a[aria-current] .minimap-label { opacity: 1; transform: translate(0, -50%); color: var(--mm-label); }
}

/* Phone + tablet: compact bottom bar */
@media (max-width: 1023.98px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .minimap {
    left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(4px + env(safe-area-inset-bottom));
    background: rgba(var(--mm-bg), .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid color-mix(in srgb, var(--mm-ink) 12%, transparent);
    transition: background-color var(--mm-ease), border-color var(--mm-ease);
  }
  .minimap-current {
    margin: 0; text-align: center;
    font: 600 10.5px/14px var(--mm-font); letter-spacing: .14em; text-transform: uppercase;
    color: var(--mm-label);
    transition: color var(--mm-ease);
  }
  .minimap-list {
    display: flex; max-width: 520px; margin: 0 auto;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .minimap-list::-webkit-scrollbar { display: none; }
  .minimap-list::before {
    content: ""; position: absolute; left: 22px; width: calc(100% - 44px); min-width: 440px; top: 50%;
    height: 1px; background: color-mix(in srgb, var(--mm-accent) 35%, transparent);
    transition: background-color var(--mm-ease);
  }
  .minimap li { flex: 1 0 44px; }
  .minimap a { min-width: 44px; height: 44px; }
  .minimap-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ==========================================================================
   Hero: Signal
   ========================================================================== */
.hero {
  min-height: min(760px, 88svh);
  background: var(--night);
  padding-top: clamp(96px, 14vh, 150px);
  padding-bottom: clamp(260px, 27vw, 330px);
  overflow: hidden;
}
/* Faint code-drawn technical grid */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(63, 224, 230, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 224, 230, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  /* Radial falloff, intersected with a fade to nothing before the hero ends */
  -webkit-mask-image: radial-gradient(ellipse at 70% 65%, #000 10%, transparent 75%), linear-gradient(to bottom, #000 45%, transparent 96%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse at 70% 65%, #000 10%, transparent 75%), linear-gradient(to bottom, #000 45%, transparent 96%);
  mask-composite: intersect;
}
/* The fiber itself: drawn in js/core/hero.js */
.hero-fiber { position: absolute; left: 0; top: 0; z-index: 3; width: 100%; overflow: visible; pointer-events: none; }
.hero-fiber path { fill: none; stroke: var(--fiber); stroke-linecap: round; }
/* Stroke variables are only set by the ?tune panel (js/core/hero-tuner.js). */
.hf-glow { stroke-width: var(--hf-glow-w, 7); opacity: var(--hf-glow-o, .45); filter: url(#fiber-glow); }
.hf-core { stroke-width: var(--hf-core-w, 2); }
.hf-dots circle { fill: #DFFDFF; filter: drop-shadow(0 0 5px var(--fiber)); }
.hero-fiber .hf-ray {
  fill: none; stroke: url(#hero-ray-gradient); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 140 100000;
  filter: drop-shadow(0 0 6px var(--fiber)) drop-shadow(0 0 2px #fff);
}
.hero-inner, .part-intro > .wrap { position: relative; z-index: 4; }
/* Temporary fiber lies behind the copy and cards, with a quieter jacket/core. */
.hero-fiber.is-launched { opacity: .36; }
.hero-fiber.is-launched .hf-glow { opacity: .12; }
.hero-fiber.is-launched .hf-ray { filter: none; }
/* While the cable is pulled it is drawn on this screen-sized canvas (js/core/hero.js). */
.hf-live { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; }
.hf-live[hidden] { display: none; }
.hero-fiber.is-live path, .hero-fiber.is-live .hf-dots { visibility: hidden; }
.hero-label { color: var(--fiber); }
.hero h1 {
  font: 700 clamp(56px, 8.6vw, 124px)/.92 var(--display);
  letter-spacing: -.04em;
  color: #F4F7F9;
  margin-bottom: 20px;
}
.hero-tagline {
  font: 500 clamp(20px, 2.1vw, 28px)/1.3 var(--display);
  letter-spacing: -.01em;
  color: #CDEFF1;
  max-width: 24ch;
}
.hero-intro { color: #C3CDD6; font-size: clamp(16px, 1.3vw, 17.5px); max-width: 52ch; }
.status-strip {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin: 22px 0 26px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .1em;
  color: #DCE3E9;
}
.status-strip li { display: inline-flex; align-items: center; gap: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-resume {
  display: inline-block; margin-top: 18px;
  font: 500 13px/1.4 var(--mono); letter-spacing: .04em;
  color: #C3CDD6; text-underline-offset: 4px;
}
.hero-resume:hover { color: var(--fiber); }

@media (min-width: 1024px) {
  .hero-inner {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 56px; align-items: end;
  }
  .hero-detail { padding-bottom: 6px; }
}
@media (max-width: 1023.98px) {
  .hero-detail { margin-top: 28px; }
}
@media (max-width: 700px) {
  .hero { padding-top: 92px; padding-bottom: 260px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Part intros
   ========================================================================== */
.part-intro {
  background: var(--night);
  padding-block: clamp(96px, 12vw, 160px) clamp(72px, 9vw, 120px);
}
.part-intro h2 {
  font: 700 clamp(32px, 4.6vw, 60px)/1.05 var(--display);
  letter-spacing: -.03em;
  max-width: 20ch;
  margin-bottom: 20px;
  text-wrap: balance;
}
.part-intro .lede { color: #C3CDD6; }

/* ==========================================================================
   Bridge
   ========================================================================== */
.bridge { background: var(--night); padding-top: clamp(80px, 10vw, 140px); }
.bridge-copy { position: relative; z-index: 4; margin-bottom: clamp(28px, 4vw, 48px); }
.bridge h2 {
  font: 700 clamp(34px, 5.4vw, 72px)/1.02 var(--display);
  letter-spacing: -.035em; color: #FFF3DC;
  margin-bottom: 14px;
}
.bridge .lede { color: #E4D3B3; }
.bridge-media { position: relative; }
.bridge-media::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 22%; z-index: 1;
  background: linear-gradient(var(--night), transparent);
}
.bridge-media img { width: 100%; height: auto; }
@media (max-width: 700px) {
  .bridge-media img { height: 360px; object-fit: cover; object-position: 0 50%; }
}

/* ==========================================================================
   Also built: VeriLock vault plate
   ========================================================================== */
.also { background: #121418; padding-block: clamp(64px, 8vw, 104px); }
.also h2.mono-label { color: #AEB8C2; }
.vault {
  display: grid; grid-template-columns: 148px 1fr; gap: 24px; align-items: center;
  max-width: 620px;
  padding: 18px 26px 18px 18px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #2B3037, #1A1D22 60%, #22262C);
  border: 1px solid #3A4048;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .35);
}
.vault-plate { width: 148px; height: 148px; border-radius: 6px; }
.vault-logo { background: #FFFFFF; padding: 18px; box-sizing: border-box; border-radius: 22px; object-fit: contain; }
.vault h3 {
  font: 700 28px/1.1 var(--display); letter-spacing: .02em;
  color: #E9ECEF;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .12), 0 -1px 0 rgba(0, 0, 0, .6);
  margin-bottom: 6px;
}
.vault p { color: #B9C2CB; margin-bottom: 12px; }
.vault a { font: 500 14px/1.4 var(--mono); color: #E9ECEF; text-underline-offset: 4px; }
.vault a:hover { color: var(--fiber); }
@media (max-width: 520px) {
  .vault { grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; }
  .vault-plate { width: 96px; height: 96px; }
  .vault h3 { font-size: 24px; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  --text: #1E252C; --muted: #4C5661; --fiber-c: #13858D; --focus: #1A4F8B; --node-bg: #F7F5F0;
  background: #F7F5F0; color: var(--text);
  padding-block: var(--section-pad);
}
.about .station-label { color: #0E6A71; }
.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 260px 1fr; gap: 72px; } }
.monogram {
  aspect-ratio: 1; max-width: 260px; width: 100%;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 20%, #2A3A46, var(--slate));
}
/* Hidden at once, then faded in: the transition only runs on the way in */
.monogram:not(.is-waiting) { transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.monogram.is-waiting { opacity: 0; transform: scale(.96); }
/* The About fiber steps off the line and writes "SH" on the plate (js/core/fiber.js) */
.fiber-path--monogram path {
  stroke-linecap: round; stroke-linejoin: round;
  filter: none;
}
.fiber-path--monogram .fp-line { opacity: .9; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--fiber-c) 70%, transparent)); }
/* Stroke variables are only set by the ?tune-sh panel (js/core/monogram-tuner.js). */
.fiber-path--monogram .fp-core { stroke: var(--fiber); stroke-width: var(--mg-core-w, 2.5); opacity: 1; }
.fiber-path--monogram .fp-glow { stroke: var(--fiber); stroke-width: var(--mg-glow-w, 8); opacity: var(--mg-glow-o, .45); filter: url(#fiber-glow); }
.fiber-path--monogram .fp-head {
  fill: #F2FFFF; opacity: 0; transition: opacity .4s ease;
  filter: drop-shadow(0 0 6px var(--fiber)) drop-shadow(0 0 2px #fff);
}
.fiber-path--monogram.writing .fp-head { opacity: 1; }
@media (max-width: 859.98px) { .monogram { max-width: 140px; } }
.about h2 {
  font: 600 clamp(36px, 5vw, 60px)/1.05 "Source Serif 4", Georgia, serif;
  letter-spacing: -.02em; margin-bottom: 24px;
}
.about-copy p:not(.station-label) {
  font: 400 clamp(18px, 1.6vw, 21px)/1.6 "Source Serif 4", Georgia, serif;
  max-width: 34em; margin-bottom: 18px;
}

/* ==========================================================================
   Contact: End of line
   ========================================================================== */
.contact {
  background: var(--night);
  padding-top: 176px; padding-bottom: clamp(80px, 10vw, 140px);
}
.contact-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(36px, 7vw, 96px); align-items: center;
}
.contact-copy { min-width: 0; }
.contact-portrait {
  display: block; width: 100%; aspect-ratio: 0.92; object-fit: cover;
  object-position: center 28%; border: 1px solid rgba(232, 237, 242, .18);
  border-radius: 8px; box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
}
.contact .fiber { bottom: auto; height: calc(var(--node-y, 186px) - 62px); }
/* Drawn only once the About fiber above has finished writing (js/core/fiber.js) */
.contact .fiber:not(.lit) { opacity: 0; }
/* The line terminates in a connector whose tip sits on the label line */
.connector {
  position: absolute; z-index: 4;
  left: var(--fiber-x); top: calc(var(--node-y, 186px) - 64px);
  height: 64px; width: 26.67px; margin-left: -13.33px;
}
.connector .boot { fill: #24303A; stroke: var(--fiber); stroke-width: 1.5; }
.connector .body { fill: #1B2630; stroke: var(--fiber); stroke-width: 1.5; }
.connector .ferrule { fill: #DCE3E9; }
.connector .tip { fill: var(--fiber); filter: drop-shadow(0 0 6px var(--fiber)); }
@media (max-width: 699.98px) { .connector { height: 36px; width: 15px; top: calc(var(--node-y, 186px) - 36px); margin-left: -7.5px; } .contact .fiber { height: calc(var(--node-y, 186px) - 34px); } }
.contact h2 {
  font: 700 clamp(34px, 5.4vw, 72px)/1.02 var(--display);
  letter-spacing: -.035em; max-width: 16ch; margin-bottom: 20px;
  text-wrap: balance;
}
.contact .lede { color: #C3CDD6; margin-bottom: 32px; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-list a {
  font: 500 16px/1.4 var(--mono); color: var(--text);
  text-underline-offset: 5px; text-decoration-color: rgba(63, 224, 230, .5);
}
.contact-list a:hover { color: var(--fiber); }
.contact-list .contact-email { font: 600 clamp(22px, 3vw, 34px)/1.2 var(--mono); color: var(--fiber); }
@media (max-width: 699.98px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-portrait { width: min(100%, 240px); aspect-ratio: 1; object-position: center 24%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  border-top: 1px solid rgba(232, 237, 242, .1);
  padding-block: 28px;
  font: 400 12.5px/1.5 var(--mono); letter-spacing: .04em;
  color: var(--muted);
}

/* ==========================================================================
   Reduced motion: everything static
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.about-copy .about-close { margin-top: 28px; padding-top: 18px; border-top: 1px solid #D9D4CA; }
.about-close a { color: inherit; text-underline-offset: 3px; }
