/* =========================================================================
   Nord Power Corporation GmbH — main.css
   Design system: navy / white, Archivo display + IBM Plex Sans/Mono.
   All colours derive from --brand (sampled from the corporate logo).
   ========================================================================= */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand — --brand is the logo blue. Change this one value to re-tune the
     whole palette after sampling the original logo file. */
  --brand:         #263f69;
  --brand-dark:    #1c2f4f;
  --brand-deep:    #141f34;
  --brand-abyss:   #0d1421;
  --brand-mid:     #41649f;
  --brand-light:   #7b96c6;
  --brand-ice:     #a8c2e6;

  /* Neutrals */
  --white:         #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f5f8fb;
  --surface-3:     #eaf0f7;
  --line:          #d9e1ec;
  --line-strong:   #c2cfe0;
  --ink:           #0d1725;
  --ink-2:         #3d4c60;
  --ink-3:         #64748b;

  /* On dark */
  --on-dark:       #edf2f8;
  --on-dark-2:     #a6b8d0;
  --on-dark-3:     #7488a8;
  --line-dark:     rgba(168, 194, 230, .18);

  /* Status */
  --danger:        #b3261e;
  --danger-dark:   #ff9d95;
  --success:       #1c6b4b;

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Scale (fluid) */
  --t-hero:  clamp(2.5rem, 1.35rem + 5.1vw, 5.75rem);
  --t-h2:    clamp(1.85rem, 1.25rem + 2.6vw, 3.15rem);
  --t-h3:    clamp(1.15rem, 1.03rem + .5vw, 1.4rem);
  --t-lead:  clamp(1.05rem, .98rem + .35vw, 1.3rem);
  --t-body:  clamp(1rem, .97rem + .12vw, 1.0625rem);
  --t-small: .875rem;
  --t-label: .75rem;

  /* Layout */
  --wrap: 1240px;
  --wrap-narrow: 780px;
  --gutter: clamp(1.25rem, .6rem + 2.6vw, 3.5rem);
  --section-y: clamp(4.5rem, 2.6rem + 7vw, 8.5rem);
  --radius: 4px;
  --radius-lg: 8px;

  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(13, 23, 37, .05), 0 4px 14px rgba(13, 23, 37, .05);
  --shadow-md: 0 8px 30px rgba(13, 23, 37, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.018em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--brand-mid);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--brand); color: #fff; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--wrap-narrow); }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--brand-abyss); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--radius);
  font-family: var(--mono); font-size: var(--t-small);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Eyebrow / section index — the monospaced "manifest" voice */
.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: var(--t-label);
  font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 1.5rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: currentColor;
  flex: none; opacity: .6;
}
.eyebrow--dark { color: var(--brand-ice); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head h2 { font-size: var(--t-h2); }
.section-head p { margin-top: 1.25rem; font-size: var(--t-lead); color: var(--ink-2); line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem;
  font-family: var(--body); font-size: .95rem; font-weight: 600;
  letter-spacing: .005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost-dark { border-color: rgba(168, 194, 230, .35); color: var(--on-dark); }
.btn--ghost-dark:hover { border-color: var(--brand-ice); background: rgba(168, 194, 230, .09); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--brand-ice); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn[disabled]:hover svg { transform: none; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              height .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.is-stuck {
  height: 64px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(13, 23, 37, .06);
}

.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-link img { height: 42px; width: auto; transition: height .3s var(--ease); }
.is-stuck .brand-link img { height: 36px; }
/* Logo is delivered as a dark-navy mark on transparency; on the dark hero we
   flip it to white via a filter so no second asset is required. */
.site-header:not(.is-stuck) .brand-link img { filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.9rem; }
.nav__list a {
  position: relative; text-decoration: none;
  font-size: .9rem; font-weight: 500; letter-spacing: .005em;
  color: var(--on-dark-2); transition: color .2s var(--ease);
  padding: .35rem 0;
}
.is-stuck .nav__list a { color: var(--ink-2); }
.nav__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current='true'] { color: #fff; }
.is-stuck .nav__list a:hover, .is-stuck .nav__list a[aria-current='true'] { color: var(--brand); }
.nav__list a:hover::after, .nav__list a[aria-current='true']::after { transform: scaleX(1); }

.nav__cta { padding: .65rem 1.25rem; font-size: .875rem; }

.lang {
  display: flex; align-items: center; gap: .3rem;
  font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: .1em; text-transform: uppercase;
}
.lang a, .lang span {
  padding: .3rem .35rem; text-decoration: none;
  color: var(--on-dark-3); transition: color .2s var(--ease);
}
.is-stuck .lang a, .is-stuck .lang span { color: var(--ink-3); }
.lang a:hover { color: #fff; }
.is-stuck .lang a:hover { color: var(--brand); }
.lang [aria-current='true'] { color: #fff; font-weight: 500; }
.is-stuck .lang [aria-current='true'] { color: var(--brand); }
.lang__sep { opacity: .35; }

/* Burger */
.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span {
  display: block; position: relative; width: 22px; height: 1.5px;
  background: #fff; transition: background-color .2s var(--ease), transform .3s var(--ease);
}
.is-stuck .burger span { background: var(--ink); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 1.5px;
  background: inherit; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: translateY(7px) rotate(45deg); background: var(--ink); }
.burger[aria-expanded='true'] span::after { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--white);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.5rem;
  letter-spacing: -.015em; color: var(--ink);
}
.mobile-nav a span {
  font-family: var(--mono); font-size: .7rem; font-weight: 400;
  letter-spacing: .12em; color: var(--brand-light);
}
.mobile-nav .btn { margin-top: 2rem; justify-content: center; }
.mobile-nav__foot {
  margin-top: auto; padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.mobile-nav__foot a { text-decoration: none; }
.mobile-nav__foot [aria-current='true'] { color: var(--brand); font-weight: 500; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 clamp(2.5rem, 1rem + 5vw, 4.5rem);
  background: var(--brand-abyss);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 78% 8%, rgba(65, 100, 159, .40) 0%, rgba(11, 23, 40, 0) 62%),
    radial-gradient(90% 70% at 8% 100%, rgba(38, 63, 105, .48) 0%, rgba(11, 23, 40, 0) 65%),
    linear-gradient(175deg, #101a2c 0%, #0d1421 55%, #0b1220 100%);
}
/* Slow ambient drift of the light field */
.hero__glow {
  position: absolute; inset: -25%; z-index: -2;
  background: radial-gradient(closest-side, rgba(123, 150, 198, .22), rgba(111, 159, 203, 0) 70%);
  width: 70vmax; height: 70vmax; inset: auto auto -20% 55%;
  animation: drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes drift {
  from { transform: translate3d(-6%, 4%, 0) scale(1); }
  to   { transform: translate3d(8%, -8%, 0) scale(1.14); }
}
/* Fine engineering grid */
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(168, 194, 230, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 194, 230, .07) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(90% 75% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 75% at 50% 30%, #000 20%, transparent 78%);
}

.hero__inner { position: relative; width: 100%; }
.hero h1 {
  font-size: var(--t-hero);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .96;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .dim { color: var(--brand-light); }
.hero__sub {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  max-width: 54ch;
  font-size: var(--t-lead);
  color: var(--on-dark-2);
  line-height: 1.6;
}
.hero__actions {
  margin-top: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  display: flex; flex-wrap: wrap; gap: .85rem;
}

/* Hero entrance sequence */
.hero .reveal-seq > * {
  opacity: 0; transform: translateY(18px);
  animation: seqIn .9s var(--ease) forwards;
}
.hero .reveal-seq > *:nth-child(1) { animation-delay: .10s; }
.hero .reveal-seq > *:nth-child(2) { animation-delay: .22s; }
.hero .reveal-seq > *:nth-child(3) { animation-delay: .34s; }
.hero .reveal-seq > *:nth-child(4) { animation-delay: .46s; }
@keyframes seqIn { to { opacity: 1; transform: none; } }

/* The signature route rail — a single continuous line that carries a pulse */
.route-rail {
  position: relative; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: 2.25rem;
  border-top: 1px solid var(--line-dark);
}
.route-rail__track { position: absolute; inset: -1px 0 auto; height: 1px; overflow: hidden; }
.route-rail__track::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 34%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-ice), transparent);
  animation: pulseRun 6.5s linear infinite;
}
@keyframes pulseRun {
  0%   { transform: translateX(-100%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(340%); opacity: 0; }
}
.route-rail__items {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.route-rail__item { position: relative; padding-left: 1.15rem; }
.route-rail__item::before {
  content: ''; position: absolute; left: 0; top: .42em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(123, 150, 198, .14);
}
.route-rail__item dt {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ice);
}
.route-rail__item dd {
  margin: .35rem 0 0; font-size: .9rem; color: var(--on-dark-3); line-height: 1.45;
}

/* =========================================================================
   SECTIONS — shared
   ========================================================================= */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section--dark {
  background: var(--brand-deep); color: var(--on-dark);
  position: relative; overflow: hidden;
}
.section--dark .section-head p { color: var(--on-dark-2); }
.section--line { border-top: 1px solid var(--line); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* =========================================================================
   ABOUT
   ========================================================================= */
.about__grid {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.about__statement {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.05rem);
  line-height: 1.28; letter-spacing: -.02em; color: var(--ink);
  text-wrap: pretty;
}
.about__body { color: var(--ink-2); }
.about__body p + p { margin-top: 1.1em; }

.facts { margin-top: 2.75rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div {
  display: grid; grid-template-columns: 11rem 1fr; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding-top: .18em;
}
.facts dd { margin: 0; font-weight: 500; }

/* =========================================================================
   CAPABILITIES ("What we do")
   ========================================================================= */
.cards {
  display: grid; gap: 1px;
  grid-template-columns: minmax(0, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--surface); padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
  position: relative;
}
.card::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { background: var(--surface-2); }
.card:hover::after { transform: scaleX(1); }
.card__num {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .14em; color: var(--brand-light);
}
.card h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.012em; }
.card p { color: var(--ink-2); font-size: .975rem; margin: 0; }

/* =========================================================================
   MATERIALS
   ========================================================================= */
.materials { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
.material {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
  min-height: 22rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.material:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.material__art {
  position: absolute; top: 0; right: 0; width: 100%; height: 62%;
  pointer-events: none;
}
.material__art svg { width: 100%; height: 100%; }
.material__tag {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-light);
  margin-bottom: .85rem;
}
.material h3 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.7rem); margin-bottom: .7rem; }
.material p { color: var(--ink-2); font-size: .975rem; margin: 0; }

/* =========================================================================
   PROCESS — the signature section
   ========================================================================= */
.process { position: relative; }
.process__globe {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(120%, 1100px); aspect-ratio: 1; opacity: .5;
}
.process__globe svg { width: 100%; height: 100%; }
.process .wrap { position: relative; z-index: 1; }

.steps {
  display: grid; gap: 0;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
}
.step {
  position: relative;
  padding: 2rem 0 2rem 3rem;
  border-top: 1px solid var(--line-dark);
}
.step:last-child { border-bottom: 1px solid var(--line-dark); }
/* connecting spine */
.step::before {
  content: ''; position: absolute; left: 6px; top: 0; bottom: 0;
  width: 1px; background: var(--line-dark);
}
.step:first-child::before { top: 2.35rem; }
.step:last-child::before { bottom: calc(100% - 2.35rem); }
.step__dot {
  position: absolute; left: 0; top: 2.1rem;
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--brand-light);
  background: var(--brand-deep);
}
.step__dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--brand-ice); opacity: 0;
  transition: opacity .5s var(--ease);
}
.step.is-in .step__dot::after { opacity: 1; }
.step__num {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .16em; color: var(--brand-ice); display: block; margin-bottom: .6rem;
}
.step h3 {
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); font-weight: 700;
  letter-spacing: -.02em; margin-bottom: .6rem;
}
.step p { color: var(--on-dark-2); max-width: 46ch; margin: 0; font-size: .975rem; }

/* =========================================================================
   PRINCIPLES ("Why Nord Power")
   ========================================================================= */
.principles {
  display: grid; gap: 2rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.principle h3 {
  font-size: 1.05rem; font-weight: 600; letter-spacing: -.008em;
  margin-bottom: .5rem;
  display: flex; align-items: baseline; gap: .6rem;
}
.principle h3::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); flex: none; transform: translateY(-.15em);
}
.principle p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact { background: var(--brand-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 15% 0%, rgba(65, 100, 159, .30), transparent 60%);
  pointer-events: none;
}
.contact .wrap { position: relative; }
.contact__grid {
  display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.contact__intro h2 { font-size: var(--t-h2); }
.contact__intro p { margin-top: 1.25rem; color: var(--on-dark-2); font-size: var(--t-lead); }
.contact__meta {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: grid; gap: 1.1rem;
}
.contact__meta div { display: grid; gap: .25rem; }
.contact__meta dt {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3);
}
.contact__meta dd { margin: 0; font-size: .95rem; color: var(--on-dark); }
.contact__meta a { color: var(--brand-ice); text-underline-offset: 3px; }

/* ---------- Form ---------- */
.form {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.form__row { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.25rem; }
.field:last-of-type { margin-bottom: 0; }
.form__row .field { margin-bottom: 0; }
.field > label {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2);
}
.field .opt { color: var(--on-dark-3); letter-spacing: .08em; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .95rem;
  background: rgba(13, 20, 33, .55);
  border: 1px solid rgba(168, 194, 230, .22);
  border-radius: var(--radius);
  color: var(--on-dark); font-size: .975rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a6b8d0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-dark-3); opacity: .75; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(168, 194, 230, .4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-ice);
  background: rgba(13, 20, 33, .8);
  box-shadow: 0 0 0 3px rgba(168, 194, 230, .16);
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea { border-color: var(--danger-dark); }
.field__error {
  font-size: .8rem; color: var(--danger-dark); min-height: 0;
}
.field__error:empty { display: none; }

.consent { display: flex; gap: .8rem; align-items: flex-start; margin: 1.5rem 0 0; }
.consent input[type='checkbox'] {
  appearance: none; flex: none; margin-top: .18em;
  width: 19px; height: 19px; border-radius: 3px;
  border: 1px solid rgba(168, 194, 230, .4);
  background: rgba(13, 20, 33, .55); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.consent input[type='checkbox']:checked {
  background: var(--brand-ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5L4.5 8.5L11 1.5' stroke='%23141f34' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--brand-ice);
}
.consent label { font-size: .875rem; color: var(--on-dark-2); line-height: 1.55; cursor: pointer; }
.consent a { color: var(--brand-ice); text-underline-offset: 3px; }
.consent[data-invalid='true'] input[type='checkbox'] { border-color: var(--danger-dark); }

/* honeypot */
.hp {
  position: absolute !important; left: -9999px; top: -9999px;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

.form__submit { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__submit .btn { min-width: 12rem; justify-content: center; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(20, 31, 52, .3); border-top-color: var(--brand-deep);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font-size: .8rem; color: var(--on-dark-3); }

.form-status { margin-top: 1.25rem; font-size: .925rem; border-radius: var(--radius); }
.form-status:empty { display: none; }
.form-status[data-tone='error'] {
  padding: .85rem 1rem; color: var(--danger-dark);
  background: rgba(179, 38, 30, .14); border: 1px solid rgba(255, 157, 149, .3);
}
.form-success {
  text-align: left; padding: 1rem 0;
}
.form-success h3 { font-size: 1.5rem; margin-bottom: .75rem; }
.form-success p { color: var(--on-dark-2); }
.form-success__check {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--brand-ice);
  display: grid; place-items: center; margin-bottom: 1.25rem;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--brand-abyss); color: var(--on-dark-2); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer__top {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark);
}
.footer__brand img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer__brand p { margin-top: 1.25rem; font-size: .9rem; max-width: 34ch; color: var(--on-dark-3); line-height: 1.6; }
.footer__col h3 {
  font-family: var(--mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3);
  margin-bottom: 1.1rem;
}
.footer__col li + li { margin-top: .6rem; }
.footer__col a {
  text-decoration: none; font-size: .925rem; color: var(--on-dark-2);
  transition: color .2s var(--ease);
}
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: .06em;
  color: var(--on-dark-3);
}
.footer__bottom p { margin: 0; }

/* =========================================================================
   LEGAL / TEXT PAGES
   ========================================================================= */
.page-head {
  background: var(--brand-deep); color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(3rem, 2rem + 3vw, 5rem)) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
}
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
.page-head p { margin-top: 1rem; color: var(--on-dark-2); }
.prose { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.prose h2 {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); margin: 2.75rem 0 1rem;
  padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 .6rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2rem; list-style: disc; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose address { font-style: normal; margin-bottom: 1.1em; }
.callout {
  padding: 1.25rem 1.4rem; border-left: 3px solid var(--brand);
  background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 2rem; font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }

/* 404 */
.error-page {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  background: var(--brand-abyss); color: var(--on-dark); padding: 2rem var(--gutter);
}
.error-page__code {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: .2em;
  text-transform: uppercase; color: var(--brand-light); margin-bottom: 1.5rem;
}
.error-page h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem); margin-bottom: 1rem; }
.error-page p { color: var(--on-dark-2); max-width: 40ch; margin-inline: auto; margin-bottom: 2rem; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .route-rail__items { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; }
}
@media (min-width: 640px) {
  .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .about__grid { grid-template-columns: 1.05fr 1fr; }
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .materials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
  .contact__grid { grid-template-columns: .85fr 1.15fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; }
  .step:nth-child(2) { border-top: 1px solid var(--line-dark); }
  .step:nth-child(3) { border-top: 0; }
}

/* Very small screens */
@media (max-width: 380px) {
  .route-rail__items { grid-template-columns: 1fr; gap: 1.1rem; }
  .btn { padding: .85rem 1.3rem; font-size: .9rem; }
  .facts div { grid-template-columns: 1fr; gap: .25rem; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero .reveal-seq > * { opacity: 1; transform: none; }
  .hero__glow, .route-rail__track::after { display: none; }
  .step__dot::after { opacity: 1; }
}

/* Print */
@media print {
  .site-header, .mobile-nav, .hero__bg, .hero__glow, .hero__grid, .form { display: none; }
  body { color: #000; background: #fff; }
}
