/* ============================================================
   OpenCY — From Vision to Value · Version 2 (light editorial)
   Salesfive-inspired: white space, thin display type, hairlines
   ============================================================ */

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

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --text: #101a26;
  --muted: #4d5d70;
  --faint: #6e7f94;
  --line: #e3e9f0;
  --line-strong: #cdd7e1;

  /* brand accents, darkened for light-background contrast */
  --vision: #0077c8;
  --vision-bright: #4ac7ff;
  --value: #a36400;
  --value-bright: #f5a524;

  --display: 'Archivo', 'Avenir Next', 'Helvetica Neue', sans-serif;
  --body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --w-content: 1160px;
  --w-narrow: 780px;
  --pad-x: clamp(20px, 5vw, 48px);
  --sec-y: clamp(88px, 13vh, 160px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--vision); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(0, 119, 200, 0.16); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--vision);
  color: #fff;
  padding: 10px 18px;
  font-weight: 500;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vision);
}
.eyebrow--value { color: var(--value); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 strong, h2 strong, h3 strong { font-weight: 500; }

.sec-title {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin: 16px 0 0;
}
.sec-title--quiet { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 300;
  max-width: 36em;
}

/* thin gradient rule — the vision→value motif */
.motif-rule {
  width: 72px;
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--vision-bright), var(--value-bright));
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--w-content); margin: 0 auto; padding: 0 var(--pad-x); }
.wrap--narrow { max-width: var(--w-narrow); }

section { padding: var(--sec-y) 0; position: relative; }
.sec-alt { background: var(--bg-alt); }

.sec-head { margin-bottom: clamp(40px, 7vh, 72px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.24rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .cy { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text) !important;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover { border-color: var(--vision); background: rgba(0, 119, 200, 0.06); }

.lang-switch {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--faint) !important;
}
.lang-switch strong { color: var(--text); font-weight: 500; }
.lang-switch:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(150px, 22vh, 230px) 0 clamp(80px, 12vh, 130px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint vision wash, top right */
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(74, 199, 255, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-eyebrow {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  max-width: 17em;
}
.hero h1 .h1-strong { font-weight: 400; }
.hero h1 .h1-accent {
  display: block;
  margin-top: 0.35em;
  font-size: 0.52em;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.hero h1 .h1-accent em {
  font-style: normal;
  color: var(--value);
}

.hero-sub {
  margin-top: 34px;
  max-width: 36em;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}
.hero-sub .claim {
  font-family: var(--display);
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}
.hero-sub .claim .to {
  background: linear-gradient(100deg, var(--vision) 10%, var(--value) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--vision);
  color: #fff;
  box-shadow: 0 6px 22px rgba(0, 119, 200, 0.22);
}
.btn--primary:hover { background: #0068af; box-shadow: 0 8px 28px rgba(0, 119, 200, 0.3); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--vision); background: rgba(0, 119, 200, 0.05); }

/* ---------- Manifesto ---------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 80px);
}
.manifesto-grid p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1.4em;
}
.manifesto-grid p strong { color: var(--text); font-weight: 500; }

.pull-quote {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 26em;
  margin: clamp(28px, 5vh, 56px) 0 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--vision-bright);
  color: var(--text);
}
.pull-quote .q-accent { color: var(--vision); font-weight: 400; }
.pull-quote em { font-style: normal; color: var(--value); font-weight: 400; }

.closing-line {
  margin-top: clamp(36px, 6vh, 60px);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.01em;
}
.closing-line em { font-style: normal; color: var(--value); font-weight: 400; }

/* ---------- Journey / Services ---------- */
.journey-rail { position: relative; margin-top: clamp(16px, 3vh, 32px); }
.rail-line {
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--vision-bright) 0%, #7cc0e8 45%, var(--value-bright) 100%);
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}

.station {
  position: relative;
  padding: 0 0 clamp(56px, 9vh, 96px) clamp(52px, 7vw, 84px);
}
.station:last-child { padding-bottom: 8px; }

.station-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--node, var(--vision));
  display: flex;
  align-items: center;
  justify-content: center;
}
.sec-alt .station-dot { background: var(--bg-alt); }
.station-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--node, var(--vision));
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}
.station.is-active .station-dot::after { transform: scale(1); }

.station-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--node-text, var(--vision));
  display: block;
  margin-bottom: 10px;
}
.station h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 400;
  margin-bottom: 8px;
}
.station-sub {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--faint);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.station p { color: var(--muted); font-weight: 300; max-width: 40em; margin-bottom: 16px; }

.station ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  max-width: 48em;
}
.station li {
  color: var(--muted);
  font-size: 0.98rem;
  padding-left: 20px;
  position: relative;
}
.station li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px; height: 2px;
  border-radius: 2px;
  background: var(--node, var(--vision));
}

/* per-station colors: cold vision → warm value (dots/lines bright, tags darkened) */
.journey-rail article:nth-of-type(1) { --node: #4ac7ff; --node-text: #0077c8; }
.journey-rail article:nth-of-type(2) { --node: #6fc4f0; --node-text: #1a6ba8; }
.journey-rail article:nth-of-type(3) { --node: #d9b551; --node-text: #8a6a10; }
.journey-rail article:nth-of-type(4) { --node: #f5a524; --node-text: #a36400; }

/* value-lever chips — the "Value Engine" entry per stage */
.station .levers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 20px;
  max-width: 48em;
}
.lever {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 15px;
  white-space: nowrap;
}
.lever .dir { color: var(--node-text, var(--vision)); font-weight: 500; }
.station .levers li { padding: 6px 15px; font-size: 0.78rem; color: var(--text); }
.station .levers li::before { display: none; }

/* breakthroughs: pain → solution cards */
.bt-list {
  display: grid;
  gap: 14px;
  max-width: 62em;
  margin-top: 6px;
}
.bt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1.15fr);
  gap: 12px 18px;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.bt:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 26px rgba(16, 26, 38, 0.05);
}
.bt-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}
.bt-label--after { color: var(--node-text, var(--vision)); }
.bt p { margin: 0; font-size: 0.96rem; max-width: none; }
.bt-pain p { color: var(--faint); font-weight: 300; }
.bt-solution p { color: var(--text); font-weight: 400; }
.bt-solution p em { font-style: italic; }
.bt-arrow {
  align-self: center;
  text-align: center;
  color: var(--node, var(--vision));
  font-size: 1.15rem;
  line-height: 1;
}
.bt-lever {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--node-text, var(--vision));
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
}

/* collapsed breakthrough cards per stage — the "+" dynamic */
.station-bts { margin-top: 6px; }
.station-bts summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--node-text, var(--vision));
  padding: 11px 22px 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.station-bts summary::-webkit-details-marker { display: none; }
.station-bts summary::before {
  content: '+';
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--node-text, var(--vision));
  width: 16px;
  text-align: center;
  transition: transform 0.35s var(--ease);
}
.station-bts[open] summary::before { transform: rotate(45deg); }
.station-bts summary:hover {
  border-color: var(--node, var(--vision));
  background: rgba(0, 119, 200, 0.05);
  box-shadow: 0 6px 18px rgba(16, 26, 38, 0.05);
}
.station-bts .bt-list { margin-top: 20px; }

/* animated expansion where supported (graceful instant fallback elsewhere) */
@supports (interpolate-size: allow-keywords) {
  .station-bts { interpolate-size: allow-keywords; }
  .station-bts::details-content {
    opacity: 0;
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.45s var(--ease), opacity 0.35s ease, content-visibility 0.45s allow-discrete;
  }
  .station-bts[open]::details-content {
    opacity: 1;
    block-size: auto;
  }
}

/* ---------- Execution narrative (How it happens) ---------- */
.exec-flow { max-width: var(--w-narrow); }
.exec-block { margin-bottom: clamp(40px, 7vh, 64px); }
.exec-block:last-child { margin-bottom: 0; }
.exec-block h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  margin-bottom: 14px;
}
.exec-block h3 .num {
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 500;
  color: var(--faint);
  margin-right: 14px;
  letter-spacing: 0.06em;
}
.exec-block h3 .phase-when {
  font-family: var(--mono);
  font-size: 0.52em;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 14px;
}
.exec-block p { color: var(--muted); font-weight: 300; margin-bottom: 1em; max-width: 42em; }
.exec-block p strong { color: var(--text); font-weight: 500; }
.exec-block p em { font-style: italic; color: var(--text); }

.exec-quote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: clamp(40px, 7vh, 64px) 0;
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--value-bright);
  max-width: 24em;
}
.exec-quote .q-accent { color: var(--value); font-weight: 400; }

/* ---------- Principles ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.principle h3 {
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.principle h3 .cy { color: var(--text); }
.principle p { color: var(--muted); font-weight: 300; font-size: 0.99rem; margin-bottom: 1.1em; }
.principle p strong { color: var(--text); font-weight: 500; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about h3 { font-size: 1.4rem; font-weight: 400; margin: 36px 0 12px; }
.about h3:first-of-type { margin-top: 28px; }
.about p { color: var(--muted); font-weight: 300; margin-bottom: 1.1em; max-width: 38em; }
.about p strong { color: var(--text); font-weight: 500; }

/* intro head — eyebrow, headline, network note (full width) */
.about-intro { max-width: 880px; margin-bottom: clamp(36px, 5vh, 56px); }
.about-intro .sec-title { margin-bottom: 24px; }
.about-intro .about-net { margin-bottom: 0; }

/* personal column starts at the "specialists" line; portrait top aligns with it */
.about-grid > .reveal > :first-child { margin-top: 0; }

.about p.role-stack {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 28px 0;
}
.about p.role-stack strong { font-weight: 500; }

.portrait-facts {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.portrait-cta { margin-top: 18px; font-size: 0.92rem; padding: 11px 22px; }

.name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin: 24px 0 20px;
}
.name-row .portrait-caption { margin: 0; }
.about-media .portrait-cta { display: flex; width: fit-content; margin: 16px auto 0; }

/* credentials strip */
.credentials {
  margin-top: clamp(38px, 2vh + 30px, 54px);
  padding-bottom: clamp(28px, 4vh, 40px);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
}
.cred-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.cred-group ul { list-style: none; }
.cred-group li {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--muted);
  padding: 5px 0;
}
.cred-group li span {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin-top: 2px;
}

.about-principles { margin-top: clamp(32px, 5vh, 56px); }
.about-principles .sec-head { margin-bottom: clamp(32px, 5vh, 56px); }
.team-note {
  margin-bottom: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(28px, 4vh, 40px);
  border-bottom: 1px solid var(--line);
}
.team-note h3 { margin-top: 0; }
.about-principles .principle p { max-width: none; }

.portrait-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(16, 26, 38, 0.08);
}
.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.portrait-caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.portrait-caption strong {
  display: block;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* ---------- Contact form ---------- */
.contact-form { max-width: var(--w-narrow); margin-top: clamp(8px, 2vh, 24px); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
}
.cf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cf-field--full { grid-column: 1 / -1; }

.cf-field label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.cf-req { color: var(--vision); margin-left: 2px; }

.cf-field input,
.cf-field select,
.cf-field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cf-field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }

.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d5d70' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.cf-field--salutation select { max-width: 280px; }

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--vision);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.12);
}
.cf-field input.cf-invalid,
.cf-field select.cf-invalid,
.cf-field textarea.cf-invalid {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.10);
}

.cf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.cf-privacy {
  margin: 0;
  max-width: 34em;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--faint);
}
.cf-submit { flex: none; }

.cf-status {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
}
.cf-status--ok { background: rgba(0, 119, 200, 0.07); color: var(--text); border-color: rgba(0, 119, 200, 0.25); }
.cf-status--error { background: #fff6ea; color: #8a6a10; border-color: #efdcb6; }

@media (max-width: 640px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-field--salutation select { max-width: none; }
  .cf-footer { flex-direction: column; align-items: stretch; }
  .cf-submit { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--faint);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 24px; list-style: none; }

/* ---------- Legal pages ---------- */
.legal-main { padding: 150px 0 100px; min-height: 70vh; }
.legal-main h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; margin-bottom: 40px; }
.legal-main h2 { font-size: 1.35rem; font-weight: 500; margin: 40px 0 12px; }
.legal-main p, .legal-main li { color: var(--muted); margin-bottom: 0.9em; max-width: 46em; }
.legal-main ul { padding-left: 1.2em; }
.legal-main address { font-style: normal; color: var(--muted); line-height: 1.8; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .manifesto-grid, .principles-grid, .credentials { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; max-width: 340px; }
  .station ul { grid-template-columns: 1fr; }
  .station .levers { grid-template-columns: none; }
  .bt { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .bt-arrow { display: none; }
  .lever { white-space: normal; }
}

@media (max-width: 1020px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad-x) 24px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.nav-cta) { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-links .nav-cta { margin-top: 12px; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 120px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rail-fill { clip-path: none !important; }
}
