/* Araxion Systems · site stylesheet
   All styles live here (strict CSP: style-src 'self'). No inline styles in HTML. */

:root {
  --ink: #0F1318;
  --ink-2: #1A2029;
  --ink-3: #242C37;
  --paper: #F5F2EC;
  --paper-2: #ECE6DC;
  --surface: #FBF9F5;
  --line: #D9D2C5;
  --line-strong: #C3B9A8;
  --muted: #5B6470;
  --body-ink: #2B323C;
  --accent: #E07A3A;
  --accent-ink: #B4521F;
  --slate: #8A94A3;
  --on-dark: #F5F2EC;
  --on-dark-muted: #A9B1BC;
  --line-dark: #2A323D;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: 20px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --section-y: clamp(80px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--accent-ink);
}

@media (min-width: 861px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

address { font-style: normal; }

::selection { background: rgba(224, 122, 58, .24); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

main:focus { outline: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  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: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

.link {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .2s;
}

.link:hover { color: var(--ink); }

.mono-label,
.kicker,
.eyebrow,
.card-index,
.card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
}

.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary { background: var(--ink); color: var(--on-dark); }
.btn-primary:hover { background: var(--ink-3); }

.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #FFFFFF; }

.btn-outline-light { border-color: rgba(245, 242, 236, .32); color: var(--on-dark); background: transparent; }
.btn-outline-light:hover { border-color: var(--on-dark); background: rgba(245, 242, 236, .06); }

.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }

.btn-xl {
  min-height: 0;
  padding: 20px 30px;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 620;
  letter-spacing: -.01em;
  white-space: normal;
  word-break: break-word;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, .84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(15, 19, 24, .06);
  transition: border-color .25s, box-shadow .25s;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(245, 242, 236, .97); }
}

.site-header.is-scrolled {
  border-bottom-color: rgba(15, 19, 24, .1);
  box-shadow: 0 10px 30px -24px rgba(15, 19, 24, .35);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand-text {
  font-size: 15px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-name { font-weight: 720; }

.brand-sub {
  font-weight: 500;
  color: var(--muted);
}

.mark-tile { fill: var(--ink); }
.mark-sis { stroke: var(--slate); }
.mark-masis { stroke: var(--paper); }
.mark-bar { stroke: var(--accent); }
.mark-node { fill: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--body-ink);
  text-decoration: none;
  transition: color .2s;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s var(--ease);
}

.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-cta { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 3px rgba(224, 122, 58, .35); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .header-inner { column-gap: 12px; }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-bottom: 14px;
  }

  .nav-list { flex-wrap: wrap; gap: 4px 20px; }

  .nav-toggle {
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .nav-toggle-bars {
    position: relative;
    width: 16px;
    height: 10px;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform .25s var(--ease);
  }

  .nav-toggle-bars::before { top: 0; }
  .nav-toggle-bars::after { bottom: 0; }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4.25px) rotate(-45deg); }

  html.js .nav-toggle { display: inline-flex; }
  html.js .site-nav { display: none; }

  html.js .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 20px;
  }

  html.js .site-header.is-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  html.js .site-header.is-open .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  html.js .site-header.is-open .nav-list a::after { display: none; }

  html.js .site-header.is-open .nav-cta {
    margin-top: 16px;
    min-height: 52px;
    font-size: 16px;
  }
}

/* ---------- Shared section parts ---------- */

.section { padding: var(--section-y) 0; }

.section-rule { padding-top: 0; }

.page-hero + .section { padding-top: clamp(56px, 7vw, 96px); }

.section-rule > .container {
  padding-top: clamp(64px, 8vw, 104px);
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-size: calc(100% - 2 * var(--gutter)) 1px;
  background-position: center top;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
  gap: 20px 48px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.kicker {
  display: flex;
  align-self: start;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-top: .9em;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  flex: none;
  background: var(--accent);
}

h2,
.h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 18em;
}

.section-sub {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(224, 122, 58, .14);
}

/* ---------- Hero (home) ---------- */

.hero { padding: clamp(56px, 8vw, 104px) 0 0; }

.hero-intro {
  position: relative;
  padding-bottom: calc(clamp(44px, 10.5vw, 136px) + 24px);
}

.hero-intro > .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(48px, 8.2vw, 104px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 11.5em;
}

.hero h1 .accent { color: var(--accent-ink); }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px 64px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero-lead {
  margin: 0;
  max-width: 33em;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.hero-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(44px, 10.5vw, 136px);
  pointer-events: none;
}

.ridge-line {
  fill: none;
  stroke: url(#ridge-fade);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

/* Architecture diagram */

.system-map {
  position: relative;
  margin: 0;
  padding: clamp(20px, 3vw, 40px);
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid #1E252F;
  border-radius: var(--radius-lg);
  overflow: hidden;
  --focus: var(--accent);
}

.system-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 242, 236, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 242, 236, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 35%, transparent 100%);
  pointer-events: none;
}

.diagram {
  position: relative;
  width: 100%;
  height: auto;
}

.diagram-tall {
  display: none;
  max-width: 420px;
  margin-inline: auto;
}

.system-map figcaption {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(16px, 2vw, 28px);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.dg-node { fill: #151B23; stroke: #2E3845; stroke-width: 1; }
.dg-node-bus { fill: #19212B; stroke: rgba(224, 122, 58, .6); }
.dg-label { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: .06em; fill: #F5F2EC; }
.dg-sub { font-family: var(--font-mono); font-size: 13px; fill: #8A94A3; }
.dg-bus { fill: none; stroke: #2E3845; stroke-width: 3; stroke-linecap: round; }
.dg-bus-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 17;
  opacity: .85;
  animation: flow-18 3.6s linear infinite;
}
.dg-link {
  fill: none;
  stroke: #637080;
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: flow-10 2.8s linear infinite;
}
.dg-joint { fill: var(--accent); }
.dg-halo { fill: var(--accent); opacity: .16; }
.dg-status { fill: #3A4655; }

@keyframes flow-18 { to { stroke-dashoffset: -36; } }
@keyframes flow-10 { to { stroke-dashoffset: -40; } }
@keyframes flow-14 { to { stroke-dashoffset: -28; } }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -30px rgba(15, 19, 24, .35);
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .i-fill { fill: var(--surface); }
.icon .i-accent { fill: var(--accent); stroke: none; }
.icon .i-accent-line { stroke: var(--accent); }

.card-index { margin: 0; color: var(--muted); letter-spacing: .14em; }

.card h3 { font-size: 24px; letter-spacing: -.02em; }

.card p { margin: 0; color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 10px 0 0;
  list-style: none;
}

.tags li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .02em;
  color: var(--body-ink);
}

/* ---------- Dark section and reference patterns ---------- */

.section-dark {
  background: var(--ink);
  color: var(--on-dark);
  --focus: var(--accent);
}

.section-dark .kicker,
.section-dark .section-sub { color: var(--on-dark-muted); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.case {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color .35s, transform .35s var(--ease);
}

.case:hover { border-color: #3A4452; transform: translateY(-3px); }

.case-lg { grid-column: span 7; }
.case-sm { grid-column: span 5; }

.status {
  align-self: flex-start;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(224, 122, 58, .42);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-meta {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--on-dark-muted);
}

.case h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.18;
  max-width: 22em;
}

.case p { margin: 0; color: var(--on-dark-muted); }

.case-art {
  margin-top: auto;
  padding-top: 24px;
}

.mini {
  width: 100%;
  height: 132px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.ms-line { fill: none; stroke: #3A4452; stroke-width: 1.5; stroke-linecap: round; }
.ms-soft { fill: none; stroke: #5F6B7A; stroke-width: 1.5; stroke-linecap: round; }
.ms-dash { fill: none; stroke: #4A5563; stroke-width: 1.25; stroke-dasharray: 3 5; }
.ms-box { fill: var(--ink); stroke: #3A4452; stroke-width: 1.25; }
.ms-accent-box { fill: rgba(224, 122, 58, .12); stroke: var(--accent); stroke-width: 1.25; }
.ms-accent-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ms-ring { fill: none; stroke: #5F6B7A; stroke-width: 1.25; }
.ms-node { fill: var(--accent); }
.ms-node-soft { fill: var(--slate); }
.ms-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  animation: flow-10 2.6s linear infinite;
  animation-play-state: paused;
}
.ms-flow.f2 { animation-duration: 3.4s; }
.ms-packets {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 13;
  opacity: .9;
  animation: flow-14 3s linear infinite;
  animation-play-state: paused;
}
.ms-packets.p2 { animation-duration: 3.8s; animation-delay: -1.3s; }
.ms-packets.p3 { animation-duration: 2.6s; animation-delay: -1.7s; }
.ms-packets.p4 { animation-duration: 3.4s; animation-delay: -.6s; }
.ms-flow.f3 { animation-duration: 2.2s; }
.ms-flow.f4 { animation-duration: 3s; }

.case:hover .ms-flow,
.case:focus-within .ms-flow,
.case:hover .ms-packets,
.case:focus-within .ms-packets { animation-play-state: running; }

.patterns-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 56em;
  margin: 32px 0 0;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.patterns-note::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: .6em;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--accent-ink);
}

.principle h3 { font-size: 21px; line-height: 1.25; }

.principle p { margin: 0; font-size: 16px; color: var(--muted); max-width: 26em; }

/* ---------- Research / security panels ---------- */

.section-tight { padding-top: 0; }

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
}

.panel-light { background: var(--paper-2); }

.panel-dark {
  background: var(--ink);
  color: var(--on-dark);
  --focus: var(--accent);
}

.panel .card-label { margin: 0; color: var(--muted); }
.panel-dark .card-label { color: var(--on-dark-muted); }

.panel-title {
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.12;
  letter-spacing: -.025em;
  max-width: 15em;
}

.panel p { color: var(--muted); max-width: 32em; margin: 0; }
.panel-dark p { color: var(--on-dark-muted); }

.panel .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Office / contact cards ---------- */

.office {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.office-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.office-card .card-label { margin: 0; color: var(--muted); }

.office-card h2,
.office-card h3 {
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.office-card address {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-ink);
}

.office-card p { margin: 0; color: var(--muted); }

.office-card .tz {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.office-card .tz::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.office-card-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
  --focus: var(--accent);
}

.office-card-dark .card-label,
.office-card-dark p { color: var(--on-dark-muted); }

.office-card .btn { align-self: flex-start; margin-top: auto; }

.office-card .aside-link {
  font-size: 15px;
  color: var(--on-dark-muted);
}

.office-card-dark .link { color: var(--on-dark); }
.office-card-dark .link:hover { color: var(--accent); }

/* ---------- CTA ---------- */

.cta {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--paper-2);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}

.cta h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 11.5em;
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-top: 24px;
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 13em;
}

.page-lead {
  margin: 28px 0 0;
  max-width: 38em;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: var(--muted);
}

.page-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.page-index a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--body-ink);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}

.page-index a:hover { border-color: var(--ink); background: var(--surface); }

.page-index span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-ink);
}

.hero-actions-left { justify-content: flex-start; margin-top: 36px; }

/* ---------- Detail blocks (inner pages) ---------- */

.detail { padding: clamp(64px, 8vw, 112px) 0; }

.detail + .detail,
.detail-policy { padding-top: 0; }

.detail + .detail > .container,
.detail-policy > .container {
  padding-top: clamp(64px, 8vw, 112px);
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-size: calc(100% - 2 * var(--gutter)) 1px;
  background-position: center top;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 28px 72px;
}

.detail-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}

.detail-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
}

.detail-body > p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--body-ink);
  max-width: 34em;
}

.bullet-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.bullet-list li {
  position: relative;
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(16px + .8em - 3px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.bullet-list-single { grid-template-columns: minmax(0, 1fr); }

.bullet-list a {
  color: var(--ink);
  text-decoration: none;
}

.bullet-list a:hover { color: var(--accent-ink); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--body-ink);
}

.legend li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-ink);
}

.legend li:nth-child(2)::before { background: linear-gradient(90deg, var(--accent-ink) 50%, transparent 50%); }
.legend li:nth-child(3)::before { background: var(--accent-ink); }

.note {
  display: flex;
  gap: 14px;
  margin: 40px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-ink);
  max-width: 48em;
}

/* ---------- Feature grid (security, research) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.feature .card-index { color: var(--accent-ink); letter-spacing: .1em; }

.feature h3 { font-size: 21px; line-height: 1.25; }

.feature p { margin: 0; font-size: 16px; color: var(--muted); max-width: 26em; }

/* ---------- Disclosure ---------- */

.disclosure {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

.disclosure .office-card { min-height: 0; }

.disclosure-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.disclosure-list li {
  position: relative;
  padding-left: 22px;
  color: var(--body-ink);
  font-size: 16px;
}

.disclosure-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.mail-big {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.2;
  word-break: break-word;
}

.mail-big a {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(224, 122, 58, .7);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .22em;
  transition: text-decoration-color .2s;
}

.mail-big a:hover { text-decoration-color: var(--accent); }

.mono-path {
  font-family: var(--font-mono);
  font-size: .92em;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 20px;
}

.contact-grid .office-card { min-height: 360px; }

.contact-grid .btn-xl { margin-top: auto; }

.checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  gap: 10px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line-dark);
  font-size: 18px;
  line-height: 1.4;
  color: var(--on-dark);
}

.checklist .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
}

.dark-actions { margin-top: 40px; }

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 44em; }

.prose h2 {
  margin: 48px 0 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--body-ink); }

.prose .updated {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 72px 0 32px;
  background: var(--ink);
  color: var(--on-dark-muted);
  --focus: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.brand-light { color: var(--on-dark); }
.brand-light .brand-sub { color: var(--on-dark-muted); }
.brand-light .mark-tile { fill: var(--ink-2); stroke: rgba(245, 242, 236, .14); stroke-width: 1; }

.footer-brand p {
  margin: 20px 0 0;
  max-width: 22em;
  font-size: 15px;
  line-height: 1.6;
}

.footer-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.footer-links a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover { color: var(--on-dark); }

.footer-links .plain { color: var(--on-dark-muted); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--on-dark-muted);
  text-decoration: underline;
  text-decoration-color: rgba(169, 177, 188, .4);
  text-underline-offset: .2em;
}

.footer-bottom a:hover { color: var(--on-dark); }

/* ---------- Reveal (only when JS has marked <html class="js">) ---------- */

html.js .reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

html.js .reveal.is-pending {
  opacity: 0;
  transform: translateY(16px);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .card { padding: 28px; }
  .case-lg,
  .case-sm { grid-column: span 6; }
  .principles,
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .section-head,
  .hero-row,
  .detail-grid,
  .duo,
  .office,
  .contact-grid,
  .disclosure { grid-template-columns: minmax(0, 1fr); }

  .kicker { padding-top: 0; }

  .hero-actions { justify-content: flex-start; }

  .cards { grid-template-columns: minmax(0, 1fr); }

  .case-lg,
  .case-sm { grid-column: 1 / -1; }

  .detail-head { position: static; }

  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .panel,
  .office-card,
  .contact-grid .office-card { min-height: 0; }

  .office-card .tz,
  .office-card .btn,
  .contact-grid .btn-xl { margin-top: 8px; }

  .panel .btn { margin-top: 8px; }
}

@media (max-width: 760px) {
  .diagram-wide { display: none; }
  .diagram-tall { display: block; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .card { padding: 24px; }
  .principles,
  .feature-grid,
  .bullet-list,
  .checklist { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; }
  .hero-actions .btn,
  .cta-inner .btn { width: 100%; }
  .mini { height: 112px; }
  .footer-bottom { flex-direction: column; }
  .office-card,
  .panel { padding: 24px; }
  .btn-xl { width: 100%; padding: 18px 20px; font-size: 18px; }
  .dark-actions .btn,
  .disclosure .btn { width: 100%; white-space: normal; text-align: center; }
  .mono-path { word-break: break-all; }
}

@media (max-width: 480px) {
  .nav-toggle { width: 44px; padding: 0; justify-content: center; }
  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 42px; }
  .page-hero h1 { font-size: 38px; }
  .brand-text { font-size: 13px; letter-spacing: .12em; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .dg-bus-flow,
  .dg-link,
  .ms-flow,
  .ms-packets { animation: none !important; }

  html.js .reveal.is-pending { opacity: 1; transform: none; }

  .card:hover,
  .case:hover { transform: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header { position: static; backdrop-filter: none; background: #FFFFFF; }
  .nav-toggle, .skip-link, .hero-ridge { display: none !important; }
  .section-dark, .site-footer, .system-map, .panel-dark, .office-card-dark { background: #FFFFFF !important; color: #000000 !important; }
}
