:root {
  --ink: #f4fbff;
  --muted: #a4b8c4;
  --dim: #6f8795;
  --bg: #061014;
  --bg-2: #091a22;
  --panel: rgba(12, 31, 40, 0.82);
  --panel-solid: #0d2029;
  --line: rgba(116, 240, 212, 0.22);
  --line-strong: rgba(55, 182, 255, 0.42);
  --cyan: #37b6ff;
  --mint: #74f0d4;
  --warning: #ff7f4d;
  --font-display: "Space Grotesk", "Arial", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1188px, calc(100% - 40px));
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 76% 12%, rgba(55, 182, 255, 0.18), transparent 32%),
    radial-gradient(circle at 8% 78%, rgba(116, 240, 212, 0.08), transparent 30%),
    linear-gradient(145deg, #061014, #081821 54%, #061014),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 16, 20, 0.92), transparent 18%, transparent 82%, rgba(6, 16, 20, 0.88));
  z-index: -1;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3 { margin-top: 0; }
.shell { width: var(--shell); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 30;
  background: var(--cyan);
  color: #031014;
  padding: 10px 14px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 20, 0.84);
  backdrop-filter: blur(18px);
}
.header-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.brand img { width: 258px; height: auto; }
.site-nav { display: flex; gap: 26px; align-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.site-nav a {
  position: relative;
  text-decoration: none;
  transition: color .24s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

button, .button { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
.button, button {
  font-family: var(--font-display);
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 12px 17px;
  background: rgba(10, 28, 36, 0.8);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.button:hover, button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}
.button-primary, button.primary {
  background: var(--cyan);
  color: #031014;
  border-color: var(--cyan);
  font-weight: 800;
}
.button-primary:hover, button.primary:hover { box-shadow: 0 16px 42px rgba(55, 182, 255, .26); }
.button-ghost { color: var(--ink); }

.hero { min-height: calc(100vh - 76px); display: grid; align-items: center; padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: 64px;
  align-items: center;
}
.hero-copy {
  animation: fade-rise .72s ease both;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--font-display);
  max-width: 850px;
  margin-bottom: 26px;
  font-size: clamp(54px, 7.4vw, 108px);
  line-height: .9;
  letter-spacing: 0;
}
h2 {
  font-family: var(--font-display);
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}
h3 { margin-bottom: 10px; font-family: var(--font-display); font-size: 20px; line-height: 1.2; }
.lead { max-width: 700px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-system { position: relative; min-height: 610px; }
.hero-image {
  position: absolute;
  inset: 24px 0 0 40px;
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  transition: transform .5s ease, border-color .3s ease;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6, 16, 20, .78), transparent 46%),
    radial-gradient(circle at 72% 28%, rgba(116, 240, 212, .16), transparent 22%);
}
.system-map {
  position: absolute;
  left: 0;
  right: 52px;
  top: 0;
  bottom: 42px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 26%, rgba(116, 240, 212, .12), transparent 16%),
    radial-gradient(circle at 70% 62%, rgba(55, 182, 255, .14), transparent 18%),
    rgba(12, 31, 40, .26);
  animation: fade-rise .8s .14s ease both, blueprint-drift 14s linear infinite;
}
.system-map::before,
.system-map::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(55, 182, 255, .85);
}
.system-map::before { left: 12%; top: 28%; width: 66%; height: 2px; transform: rotate(18deg); }
.system-map::after { left: 42%; top: 10%; width: 2px; height: 78%; }
.node {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line-strong);
  background: rgba(6, 16, 20, .86);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: transform .28s ease, border-color .28s ease, color .28s ease;
}
.node-a { left: 7%; top: 18%; }
.node-b { right: 10%; top: 30%; }
.node-c { left: 26%; bottom: 18%; }
.node-d { right: 2%; bottom: 9%; color: var(--mint); }
.hero-system:hover .hero-image { transform: translate3d(-8px, 8px, 0); border-color: var(--cyan); }
.hero-system:hover .node { transform: translateY(-4px); border-color: var(--mint); }

.signal-strip {
  border-block: 1px solid var(--line);
  background: rgba(8, 25, 33, .78);
}
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.signal-grid p {
  min-height: 118px;
  margin: 0;
  padding: 28px 28px 28px 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  transition: background-color .24s ease, color .24s ease;
}
.signal-grid p:hover { background: rgba(55, 182, 255, .055); color: var(--ink); }
.signal-grid p + p { padding-left: 28px; }
.signal-grid p:last-child { border-right: 0; }
.signal-grid span { display: block; color: var(--mint); font-weight: 850; margin-bottom: 8px; }

.section { padding: 104px 0; }
.focus-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 72px;
  align-items: start;
}
.section-kicker { position: sticky; top: 108px; }
.section-kicker h2 { max-width: 520px; }
.focus-list { border-top: 1px solid var(--line-strong); }
.focus-list article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: transform .24s ease, background-color .24s ease, border-color .24s ease;
}
.focus-list article:hover {
  transform: translateX(8px);
  background: rgba(55, 182, 255, .045);
  border-bottom-color: var(--line-strong);
}
.focus-list span,
.context,
.note-stack span {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.focus-list p, .method-panel p, .method-rail p, .dossier p, .notes-copy p, .principles-layout p, .contact-layout p, .disclaimer {
  color: var(--muted);
}

.method-section {
  background: linear-gradient(180deg, rgba(13, 32, 41, .42), rgba(6, 16, 20, .18));
  border-block: 1px solid var(--line);
}
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 42px;
}
.method-panel {
  min-height: 520px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(55, 182, 255, .08), rgba(55, 182, 255, 0)),
    url("assets/images/focus.jpg") center / cover;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.method-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,20,.22), rgba(6,16,20,.88)); }
.method-panel > * { position: relative; }
.method-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.method-rail article {
  min-height: 250px;
  padding: 28px;
  background: rgba(7, 20, 27, .92);
  transition: transform .24s ease, background-color .24s ease;
}
.method-rail article:hover { transform: translateY(-4px); background: rgba(10, 35, 46, .96); }
.method-rail span { display: block; color: var(--cyan); font-size: 24px; font-weight: 850; margin-bottom: 16px; }

.wide-heading { max-width: 800px; margin-bottom: 36px; }
.dossier-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.dossier {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(10, 27, 36, .78);
  transition: transform .26s ease, border-color .26s ease, background-color .26s ease;
}
.dossier:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  background-color: rgba(13, 36, 48, .9);
}
.dossier-large {
  grid-row: span 2;
  min-height: 538px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(6, 16, 20, .24), rgba(6, 16, 20, .92)),
    url("assets/images/snapshot.jpg") center / cover;
}
.dossier h3 { font-size: clamp(24px, 3vw, 38px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags span { border: 1px solid var(--line-strong); padding: 6px 9px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

.notes-section { background: rgba(8, 25, 33, .72); }
.notes-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.notes-image { margin: 0; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.notes-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.note-stack { display: grid; border-top: 1px solid var(--line); }
.note-stack article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.note-stack article {
  transition: transform .24s ease, border-color .24s ease;
}
.note-stack article:hover {
  transform: translateX(8px);
  border-bottom-color: var(--line-strong);
}
.note-stack h3 { font-size: clamp(22px, 3vw, 34px); }

.principles-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 64px; align-items: start; }
.principle-matrix { display: grid; gap: 14px; }
.principle-matrix article {
  padding: 24px;
  border-left: 2px solid var(--cyan);
  background: rgba(10, 27, 36, .74);
  transition: transform .24s ease, background-color .24s ease, border-color .24s ease;
}
.principle-matrix article:hover {
  transform: translateX(6px);
  border-left-color: var(--mint);
  background: rgba(12, 38, 48, .86);
}

.contact-section { padding: 88px 0; border-top: 1px solid var(--line); }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: 38px;
  align-items: end;
}
.contact-layout h2 { max-width: 720px; }
.contact-card { display: grid; gap: 12px; min-width: 300px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: #071219; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 28px; align-items: center; }
.footer-grid img { width: 54px; margin-bottom: 8px; }
.footer-grid nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); }
.disclaimer { margin: 0; font-size: 13px; }

.policy-hero {
  padding: 112px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(55, 182, 255, .08), transparent 48%),
    rgba(8, 25, 33, .48);
}
.policy-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(54px, 8vw, 104px);
}
.policy-hero .lead { max-width: 760px; }
.policy-content { padding-top: 78px; }
.narrow { max-width: 840px; }
.policy-content h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(26px, 3vw, 38px);
}
.policy-content h2:first-child { margin-top: 0; }
.policy-content p { color: var(--muted); font-size: 18px; }
.text-link {
  display: inline-block;
  margin: 18px 18px 0 0;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.text-link:hover { color: var(--ink); }

.consent-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 25, 33, .96);
  box-shadow: var(--shadow);
}
.consent-banner h2, .consent-modal h2 { margin-bottom: 6px; font-size: 20px; }
.consent-banner p { margin-bottom: 6px; color: var(--muted); }
.consent-banner a { margin-right: 12px; color: var(--cyan); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .52);
}
.modal-panel {
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}
.modal-panel label { display: block; margin: 16px 0; color: var(--muted); }
[hidden] { display: none !important; }

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blueprint-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 0, 0 42px; }
}

.architecture-lab {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 18%, rgba(62, 214, 255, .12), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.architecture-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(126,231,255,.1), transparent 18%),
    radial-gradient(circle at 78% 62%, rgba(116,240,212,.08), transparent 20%);
  opacity: .85;
  pointer-events: none;
}
.lab-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 46px;
  align-items: stretch;
}
.lab-copy {
  padding: 34px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 25, 33, .78);
  box-shadow: var(--shadow);
}
.lab-output-grid { display: grid; gap: 14px; margin-top: 28px; }
.lab-output-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  transition: transform .22s ease, border-color .22s ease;
}
.lab-output-grid article:hover { transform: translateX(8px); border-color: var(--cyan); }
.lab-output-grid span { color: var(--cyan); font-family: var(--font-mono); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lab-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}
.lab-media figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}
.lab-media figure:first-child { transform: translateY(-26px); }
.lab-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: saturate(.82) contrast(1.05);
  transition: transform .5s ease, filter .3s ease;
}
.lab-media figure:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.12); }

@media (max-width: 980px) {
  .brand img { width: 220px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 44px;
    position: absolute;
    right: 0;
    top: 16px;
    font-weight: 800;
  }
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--panel-solid);
  }
  .site-nav.open { display: flex; }
  .hero { min-height: 0; }
  .hero-grid,
  .lab-layout,
  .focus-layout,
  .method-layout,
  .notes-layout,
  .principles-layout,
  .contact-layout,
  .footer-grid,
  .consent-banner {
    grid-template-columns: 1fr;
  }
  .section-kicker { position: static; }
  .hero-system { min-height: 440px; }
  .hero-image { inset: 22px 0 0 22px; }
  .system-map { right: 24px; bottom: 24px; }
  .method-rail, .dossier-grid, .signal-grid { grid-template-columns: 1fr; }
  .lab-media { grid-template-columns: 1fr; }
  .lab-media figure:first-child { transform: none; }
  .signal-grid p, .signal-grid p + p { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .signal-grid p:last-child { border-bottom: 0; }
  .dossier-large { min-height: 380px; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 28px, 1188px); }
  .brand img { width: 172px; }
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .hero { padding-top: 46px; }
  .hero-system { min-height: 360px; }
  .hero-image { inset: 16px 0 0 12px; }
  .system-map { right: 12px; bottom: 18px; }
  .node { font-size: 10px; padding: 7px 8px; }
  .focus-list article { grid-template-columns: 1fr; gap: 10px; }
  .lab-copy { padding: 24px; }
  .lab-media img { min-height: 280px; }
  .method-panel { min-height: 390px; padding: 24px; }
  .method-rail article, .dossier, .principle-matrix article { padding: 22px; }
  .section { padding: 72px 0; }
  .button, .hero-actions .button, .contact-card .button, .consent-actions button { width: 100%; text-align: center; }
  .consent-banner { left: 12px; right: 12px; bottom: 12px; max-height: 62vh; overflow: auto; }
}

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

/* Brand-specific GDPR surface */
.consent-banner {
  border: 1px solid rgba(55,182,255,.52);
  border-left: 6px solid var(--mint);
  background: rgba(6, 16, 20, .96);
  color: var(--ink);
}
.consent-banner h2 { color: var(--ink); font-family: var(--font-display); }
.consent-banner p { color: var(--muted); }
.consent-banner a { color: var(--mint); font-weight: 800; }
.consent-actions button {
  border-color: rgba(116,240,212,.28);
  background: rgba(116,240,212,.07);
  color: var(--ink);
}
.consent-actions button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #041017;
}
.consent-modal { background: rgba(2, 8, 11, .72); }
.modal-panel {
  border: 1px solid rgba(55,182,255,.52);
  border-top: 4px solid var(--cyan);
  background: var(--panel-solid);
}
.modal-panel h2 { color: var(--ink); }
