/* Helix Tech B.V. — helixtech.dev
   Palette: Delft blue field, porcelain paper, carrot-orange accent. Fonts are self-hosted (OFL). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-400_800.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/IBMPlexSans-400_600.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --delft: #123A8C;
  --delft-deep: #0B2A66;
  --porcelain: #F6F8FC;
  --tint: #E6ECF8;
  --line: #C9D3E6;
  --ink: #0B1B3A;
  --ink-soft: #44527A;
  --orange: #FF7A1A;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--porcelain); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img, svg { max-width: 100%; display: block; }
a { color: var(--delft); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }
.label { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header + hero (blue field) ---------- */
.field { background: var(--delft); color: #fff; position: relative; overflow: hidden; }
.field::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: var(--orange); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.5rem; }
.brand { font: 800 1.125rem/1 var(--display); letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.brand span { color: var(--orange); }
.nav { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: #fff; text-decoration: none; font: 500 0.8125rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding-block: 3.5rem 5.5rem; }
.hero .label { color: var(--orange); margin: 0 0 1.5rem; }
.hero h1 { font: 800 clamp(2.5rem, 5.6vw, 4.5rem)/0.98 var(--display); letter-spacing: -0.035em; margin: 0 0 1.75rem; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lede { font-size: 1.1875rem; line-height: 1.55; max-width: 34rem; margin: 0 0 2.25rem; color: #DCE6FB; }
.actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }
.btn { display: inline-block; padding: 0.9rem 1.4rem; font: 600 0.9375rem/1 var(--body); text-decoration: none; border-radius: 2px; border: 2px solid transparent; }
.btn-solid { background: var(--orange); color: var(--ink); }
.btn-solid:hover { background: #ff8d3a; }
.btn-line { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-line:hover { border-color: #fff; }

/* helix: two strands, rungs map what goes in (left) to what comes out (right) */
.helix { width: 100%; height: auto; }
.helix .front { stroke-width: 7; }
.helix .back { stroke-width: 3; opacity: 0.38; }
.helix .s1 { stroke: var(--orange); }
.helix .s2 { stroke: #fff; }
.helix .rung { stroke: rgba(255,255,255,0.32); stroke-width: 2; }
.helix .rung.key { stroke: #fff; stroke-width: 2.5; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.helix .rung.key:nth-of-type(2) { animation-delay: 0.15s; } .helix .rung.key:nth-of-type(3) { animation-delay: 0.3s; } .helix .rung.key:nth-of-type(4) { animation-delay: 0.45s; }
.helix .node-in { fill: var(--orange); } .helix .node-out { fill: #fff; }
.helix text { font: 500 14px var(--mono); letter-spacing: 0.04em; fill: #fff; }
.helix text.in { text-anchor: end; fill: #FFC59C; }
.helix .cap { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; fill: rgba(255,255,255,0.6); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .helix .rung.key { animation: none; stroke-dashoffset: 0; } }

.pairs { list-style: none; margin: 1.5rem 0 0; padding: 0; font: 400 0.875rem/1.5 var(--mono); color: #DCE6FB; }
.pairs li { display: flex; gap: 0.6rem; padding: 0.35rem 0; border-top: 1px solid rgba(255,255,255,0.18); }
.pairs b { color: #FFC59C; font-weight: 500; min-width: 6.5rem; }

/* ---------- sections on porcelain ---------- */
.band { padding-block: 5.5rem; border-top: 1px solid var(--line); }
.band:first-of-type { border-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 3rem; }
.band .label { color: var(--delft); margin: 0.6rem 0 0; }
.band h2 { font: 800 clamp(2rem, 3.6vw, 3rem)/1.02 var(--display); letter-spacing: -0.03em; margin: 0 0 1.5rem; text-wrap: balance; }
.band p { margin: 0 0 1.15rem; max-width: 40rem; }
.band p.big { font-size: 1.25rem; line-height: 1.5; color: var(--ink); }

.inout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2.25rem 0 2rem; border: 1px solid var(--line); background: #fff; max-width: 44rem; }
.inout > div { padding: 1.5rem 1.6rem 1.35rem; }
.inout > div + div { border-left: 1px solid var(--line); background: var(--tint); }
.inout h3 { font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.9rem; color: var(--ink-soft); }
.inout ul { margin: 0; padding: 0; list-style: none; }
.inout li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.inout li:first-child { border-top: 0; }
.link-out { display: inline-block; font: 600 1rem/1 var(--body); padding: 0.9rem 1.4rem; background: var(--delft); color: #fff; text-decoration: none; border-radius: 2px; }
.link-out:hover { background: var(--delft-deep); }
.note { font-size: 0.9375rem; color: var(--ink-soft); }

.facts { margin: 0; max-width: 44rem; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 0.75rem/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 0; font: 400 0.9688rem/1.6 var(--mono); }

.contact-mail { font: 800 clamp(1.6rem, 4.4vw, 3.25rem)/1.05 var(--display); letter-spacing: -0.03em; color: var(--delft); text-decoration-thickness: 3px; text-decoration-color: var(--orange); overflow-wrap: anywhere; }

.foot { background: var(--ink); color: #B8C4E0; padding-block: 2.5rem; font-size: 0.875rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.foot a { color: #fff; }

/* ---------- document pages (privacy) ---------- */
.doc { padding-block: 4rem 5rem; }
.doc h1 { font: 800 clamp(2.25rem, 4.5vw, 3.5rem)/1 var(--display); letter-spacing: -0.03em; margin: 0 0 0.75rem; }
.doc h2 { font: 800 1.5rem/1.15 var(--display); letter-spacing: -0.02em; margin: 2.75rem 0 0.75rem; }
.doc p, .doc li { max-width: 42rem; }
.doc .meta { font: 400 0.8125rem/1.5 var(--mono); color: var(--ink-soft); margin: 0 0 2.5rem; }
.field.slim { padding-bottom: 10px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 2rem 4rem; }
  .helix text { display: none; }
  .helix { max-width: 300px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 0.75rem; }
  .band { padding-block: 3.75rem; }
  .facts > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .nav { gap: 1.1rem; }
}
@media (min-width: 861px) { .pairs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 520px) { .inout { grid-template-columns: 1fr; } .inout > div + div { border-left: 0; border-top: 1px solid var(--line); } .nav li:first-child { display: none; } }
