/* ==========================================================================
   InsureTech Amsterdam — styles
   1. Tokens (dark default, light via prefers-color-scheme)
   2. Base / utilities
   3. Nav
   4. Buttons, labels, chips
   5. Hero + canal pattern
   6. Device mock (hero visual)
   7. Sections, cards, feature animations
   8. Contact + footer
   9. Scroll reveal
   10. Reduced motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #0B0F1A;
  --bg-soft: #0E1320;
  --surface: #111726;
  --surface-2: #161D2E;
  --border: rgba(237, 239, 245, 0.08);
  --border-strong: rgba(237, 239, 245, 0.16);
  --text: #EDEFF5;
  --muted: #8A93A6;
  --line: rgba(237, 239, 245, 0.11);         /* canal lines, decorative strokes */

  --accent: #C6FF3D;                          /* acid lime: fills */
  --accent-text: #C6FF3D;                     /* lime used as text/stroke */
  --on-accent: #0B0F1A;
  --accent-soft: rgba(198, 255, 61, 0.14);
  --blue: #4D7CFF;                            /* secondary glow only */

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --radius: 16px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --grain-opacity: .07;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F7F9;
    --bg-soft: #EEF0F4;
    --surface: #FFFFFF;
    --surface-2: #F1F3F6;
    --border: rgba(11, 15, 26, 0.09);
    --border-strong: rgba(11, 15, 26, 0.18);
    --text: #0B0F1A;
    --muted: #566074;
    --line: rgba(11, 15, 26, 0.12);
    --accent-text: #4A6500;                   /* darker lime for AA contrast on light */
    --accent-soft: rgba(110, 150, 0, 0.14);
    --grain-opacity: .045;
    color-scheme: light;
  }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Film grain overlay: fixed SVG noise, never intercepts clicks */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }
strong { font-weight: 500; color: var(--text); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  padding: 10px 14px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 500; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* 3. Nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav nav { margin-left: auto; }
.nav__links { display: none; gap: 28px; font-size: .875rem; }
.nav__links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
@media (min-width: 760px) { .nav__links { display: flex; } }
.nav .btn { margin-left: auto; }
@media (min-width: 760px) { .nav .btn { margin-left: 8px; } }

/* Logo: mark + wordmark */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 28px; height: 28px; flex: none; }
.logo__bg { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1; }
.logo__rings { stroke: var(--accent-text); }
.logo__word {
  font: 600 1.0625rem/1 var(--font-head);
  letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.logo__city {
  font: 400 .6875rem/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--muted);
}

/* 4. Buttons, labels, chips ------------------------------------------------ */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 10px;
  font: 500 .9375rem/1 var(--font-body);
  text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(198,255,61,.4), 0 8px 30px -8px rgba(198,255,61,.45);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(198,255,61,.6), 0 12px 40px -8px rgba(198,255,61,.6); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn--small { --h: 36px; padding: 0 14px; font-size: .875rem; border-radius: 8px; }

.link-arrow {
  color: var(--muted); text-decoration: none; font-size: .9375rem;
  transition: color .2s;
}
.link-arrow span { display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover span { transform: translateX(3px); }

/* Mono labels: tag above H1 + "01 / About" section labels */
.tag, .label {
  font: 400 .75rem/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.tag__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.label { margin-bottom: 20px; }
.label__num { color: var(--accent-text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li {
  font: 400 .75rem/1 var(--font-mono);
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);     /* slide under the transparent nav */
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(72px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}
.hero__copy { max-width: 640px; }
.hero__title {
  margin-top: 28px;
  font: 600 clamp(2.5rem, 1.5rem + 4.2vw, 4.5rem)/1.02 var(--font-head);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--muted);
  text-wrap: pretty;
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* Canal-ring line pattern (grachtengordel). Paths built in main.js. */
.canals {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 65% 10%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 90% at 65% 10%, #000 30%, transparent 80%);
}
.canals path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 3.6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 180ms + 200ms);
}
/* A faint accent ring, plus slow "light passing along the canal" dashes */
.canals .canal--accent { stroke: var(--accent-text); opacity: .22; }
.canals .flow {
  stroke: var(--accent-text);
  stroke-width: 1.5;
  opacity: 0;
  stroke-dasharray: .05 .95;
  animation: flow-in 1s 3.6s forwards, flow 22s linear 3.6s infinite;
}
.canals .flow:nth-of-type(2n) { animation-duration: 1s, 30s; animation-direction: normal, reverse; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes flow-in { to { opacity: .55; } }

/* 6. Device mock ----------------------------------------------------------- */
.hero__visual {
  position: relative;
  display: grid; place-items: center;
}
.glow {
  position: absolute;
  width: 120%; aspect-ratio: 1;
  max-width: 640px;
  background:
    radial-gradient(closest-side, rgba(198,255,61,.20), transparent 70%) 40% 55% / 70% 70% no-repeat,
    radial-gradient(closest-side, rgba(77,124,255,.28), transparent 70%) 65% 40% / 80% 80% no-repeat;
  filter: blur(30px);
  z-index: -1;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06) rotate(6deg); opacity: .8; } }

/* The device always uses a dark UI so it reads as an app screenshot in both themes */
.device {
  --d-bg: #0D1220;
  --d-field: rgba(237,239,245,.035);
  --d-border: rgba(237,239,245,.09);
  --d-text: #EDEFF5;
  --d-muted: #8A93A6;
  --d-faint: #5C6579;
  position: relative;
  width: min(340px, 100%);
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #262E42, #0E121D 40%, #1A2131);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 40px 80px -30px rgba(0,0,0,.7),
    0 0 0 1px rgba(0,0,0,.4);
  color: var(--d-text);
}
.device__screen {
  position: relative;
  overflow: hidden;
  border-radius: 38px;
  background: var(--d-bg);
  padding: 14px 16px 20px;
  font-size: 13px;
  line-height: 1.35;
}
.device__screen > * { transition: opacity .5s var(--ease); }

/* Status bar + app header */
.sb { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 12px; font: 500 12px/1 var(--font-body); }
.sb__icons { display: flex; gap: 6px; align-items: center; fill: currentColor; color: var(--d-text); }
.sb__icons svg:first-child { width: 16px; height: 9px; }
.sb__icons svg:last-child { width: 22px; height: 10px; }
.app-head { display: flex; align-items: center; gap: 8px; padding: 4px 2px 12px; }
.app-head__back { width: 16px; height: 16px; color: var(--d-muted); }
.app-head__title { font: 600 15px/1 var(--font-head); letter-spacing: -0.01em; }
.app-head__step { margin-left: auto; font: 400 11px/1 var(--font-mono); color: var(--d-muted); }
.progress { height: 3px; border-radius: 3px; background: var(--d-border); overflow: hidden; }
.progress span { display: block; height: 100%; width: 66%; background: var(--d-text); border-radius: inherit; }

.support-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 6px 10px 6px 9px;
  border: 1px solid rgba(198,255,61,.28);
  background: rgba(198,255,61,.07);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.support-pill__live { font: 500 9.5px/1 var(--font-mono); letter-spacing: .08em; color: #C6FF3D; }
.pulse-dot {
  position: relative;
  width: 6px; height: 6px; border-radius: 50%;
  background: #C6FF3D;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #C6FF3D;
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.form-title { margin: 14px 2px 10px; font: 500 16px/1.2 var(--font-head); letter-spacing: -0.01em; }

/* Form fields */
.field {
  position: relative;
  display: block;
  margin-top: 8px;
  padding: 9px 12px 10px;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  background: var(--d-field);
  transition: border-color .35s, box-shadow .35s, background-color .35s;
}
.field__label {
  display: flex; align-items: center; gap: 8px;
  font: 400 9.5px/1 var(--font-mono);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--d-muted);
}
.field__value {
  display: grid; align-items: center;
  margin-top: 7px; min-height: 18px;
}
/* value + placeholder stacked so they can crossfade */
.field__value > .v, .field__value > .ph, .field__value > .mask { grid-area: 1 / 1; transition: opacity .35s; }
.field__value .ph { color: var(--d-faint); opacity: 0; }
.field__chev { position: absolute; right: 12px; bottom: 12px; width: 14px; height: 14px; color: var(--d-muted); }
.caret {
  display: inline-block; vertical-align: -3px;
  width: 1.5px; height: 15px; margin-left: 1px;
  background: #C6FF3D;
  opacity: 0;
}

/* Protected fields */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 6px 3px 5px;
  border-radius: 5px;
  background: rgba(237,239,245,.07);
  color: var(--d-text);
  font-size: 9px; letter-spacing: .04em;
}
.chip svg { width: 10px; height: 10px; fill: currentColor; }
.chip svg path { fill: none; }
.mask {
  font: 500 13px/1 var(--font-mono);
  letter-spacing: .08em;
  color: var(--d-muted);
  background: linear-gradient(90deg, var(--d-muted) 0 40%, #EDEFF5 50%, var(--d-muted) 60% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
}
.hidden-note {                 /* sits in the label row, top right of the field */
  position: absolute; top: 10px; right: 12px;
  transition: opacity .35s;
  display: inline-flex; align-items: center; gap: 5px;
  font: 400 9.5px/1 var(--font-mono);
  color: var(--d-muted);
  opacity: 0;
}
.hidden-note::before {             /* small eye-off glyph */
  content: ""; width: 10px; height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M1.5 6s1.6-3 4.5-3 4.5 3 4.5 3-1.6 3-4.5 3-4.5-3-4.5-3Z'/%3E%3Cpath d='M2 10 10 2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M1.5 6s1.6-3 4.5-3 4.5 3 4.5 3-1.6 3-4.5 3-4.5-3-4.5-3Z'/%3E%3Cpath d='M2 10 10 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.submit {
  margin-top: 14px;
  height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 500; font-size: 13.5px;
  background: #C6FF3D; color: #0B0F1A;
  transition: background-color .4s, color .4s, transform .15s var(--ease);
}

/* Success overlay */
.done {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 6px;
  background: rgba(13,18,32,.94);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  text-align: center;
  opacity: 0; pointer-events: none;
}
.done svg { width: 56px; height: 56px; color: #C6FF3D; margin-bottom: 8px; }
.done svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.done__title { font: 600 18px/1.2 var(--font-head); }
.done__sub { color: var(--d-muted); font-size: 12.5px; }

/* Agent cursor (JS sets transform: translate(x, y); the arrow tip sits at 0,0) */
.agent {
  position: absolute; left: 0; top: 0;
  width: 20px; height: 22px;
  z-index: 5;
  opacity: 0;
  transform: translate(330px, 520px);
  transition: transform 1s cubic-bezier(.45, 0, .2, 1), opacity .4s;
  pointer-events: none;
}
.agent.no-trans { transition: none; }
.agent__arrow { width: 20px; height: 22px; margin: -2px 0 0 -2px; fill: #C6FF3D; stroke: #0B0F1A; stroke-width: 1.3; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.agent__label {
  position: absolute; left: 15px; top: 19px;
  padding: 3px 7px;
  border-radius: 6px 6px 6px 2px;
  background: #C6FF3D; color: #0B0F1A;
  font: 500 10px/1.2 var(--font-mono);
  white-space: nowrap;
}
/* Coach tooltip: anchored above a field by JS (sets transform + --ax arrow offset) */
.coach {
  position: absolute; left: 0; top: 0;
  z-index: 6;
  width: max-content; max-width: 200px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #EDEFF5; color: #0B0F1A;
  font-size: 11.5px; line-height: 1.3; font-weight: 500;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.coach::after {                 /* small arrow pointing down at the field */
  content: ""; position: absolute; top: 100%; left: var(--ax, 50%);
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: inherit; transform: rotate(45deg);
}
.agent__ping {
  position: absolute; left: -12px; top: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid #C6FF3D;
  opacity: 0;
}
.agent__ping.is-on { animation: click 0.6s ease-out; }
@keyframes click { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---- Animation states (JS adds .is-anim + step classes to .device) ---- */
.is-anim:not(.is-type) [data-f="type"] .v,
.is-anim:not(.is-date) [data-f="date"] .v { opacity: 0; }
.is-anim:not(.is-type) [data-f="type"] .ph,
.is-anim:not(.is-date) [data-f="date"] .ph { opacity: 1; }
.is-anim.is-typing .caret { opacity: 1; animation: blink 1s steps(1) infinite; }

.is-anim:not(.is-support) .support-pill { opacity: 0; transform: translateY(-4px); }
.is-anim:not(.is-date) .submit { background: rgba(237,239,245,.07); color: #6B7488; }

.is-agent .agent { opacity: 1; }
.is-tip .coach { opacity: 1; }

.is-date-focus [data-f="date"] {
  border-color: rgba(198,255,61,.7);
  background: rgba(198,255,61,.05);
  box-shadow: 0 0 0 4px rgba(198,255,61,.12);
}
.is-protect .field--secure { border-color: rgba(237,239,245,.18); }
.is-protect .field--secure .hidden-note { opacity: 1; }
.is-protect .field--secure .mask { color: transparent; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.is-press .submit { transform: scale(.97); }
.is-done .done { opacity: 1; }
.is-done .done svg * { animation: trace .7s var(--ease) forwards; }
.is-done .done svg path { animation-delay: .35s; }
.is-out .device__screen > * { opacity: 0; }

/* 7. Sections + cards ------------------------------------------------------ */
.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 144px);
  border-top: 1px solid var(--border);
}
.split { display: grid; gap: 32px 64px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.h2 {
  font: 600 clamp(1.875rem, 1.2rem + 2.4vw, 3rem)/1.08 var(--font-head);
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 16em;
}
.h2--narrow { max-width: 14em; }
.prose { display: grid; gap: 18px; color: var(--muted); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); max-width: 36em; }
@media (min-width: 900px) { .prose { padding-top: 36px; } }

.cards { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 720px) and (max-width: 1023px) {
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 60%, var(--bg)));
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.5);
}
.card__title { font: 600 1.25rem/1.2 var(--font-head); letter-spacing: -0.02em; }
.card__text { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 48px; }
.card__idx { font: 400 .75rem/1 var(--font-mono); color: var(--muted); }

/* Cursor-following border glow (main.js sets --mx / --my) */
.card--glow::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--accent-text), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card--glow:hover::before { opacity: .55; }

/* Line icons (approach cards) */
.icon { width: 36px; height: 36px; fill: none; stroke: var(--text); stroke-width: 1.3; stroke-linejoin: round; }
.icon__fill { fill: var(--accent-text); stroke: none; }

/* Feature card illustrations (02) */
.fx {
  width: 100%; height: 112px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 12px 12px,
    var(--bg-soft);
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.fx * { vector-effect: non-scaling-stroke; transform-box: fill-box; }
.fx-line { stroke: var(--border-strong); stroke-width: 1.2; fill: var(--surface); }
.fx-draw { stroke: var(--text); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw 6s var(--ease) infinite; }
.fx-track { stroke: var(--border-strong); stroke-width: 1.2; fill: transparent; animation: fx-track 6s var(--ease) infinite; }
.fx-knob { fill: var(--muted); animation: fx-knob 6s var(--ease) infinite; }
@keyframes fx-draw { 0% { stroke-dashoffset: 1; } 30%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fx-track { 0%, 38% { fill: transparent; } 46%, 88% { fill: var(--accent-soft); stroke: var(--accent-text); } 96%, 100% { fill: transparent; } }
@keyframes fx-knob { 0%, 38% { transform: none; } 46%, 88% { transform: translateX(15px); fill: var(--accent-text); } 96%, 100% { transform: none; } }

.fx-ring { transform: rotate(-90deg); transform-origin: center; stroke: var(--accent-text); stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-ring 6s var(--ease) infinite; }
.fx-check { stroke: var(--text); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-check 6s var(--ease) infinite; }
@keyframes fx-ring { 0% { stroke-dashoffset: 1; opacity: 1; } 45%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fx-check { 0%, 45% { stroke-dashoffset: 1; opacity: 1; } 58%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }

.fx-dots { fill: var(--muted); stroke: none; font: 500 11px var(--font-mono); letter-spacing: 1px; }
.fx-shackle { stroke: var(--text); stroke-width: 1.6; animation: fx-shackle 6s var(--ease) infinite; }
.fx-body { fill: var(--text); }
.fx-cursor { fill: var(--accent-text); stroke: var(--bg); stroke-width: 1; animation: fx-cursor 6s var(--ease) infinite; }
@keyframes fx-shackle { 0%, 30% { transform: translateY(-4px); } 40%, 100% { transform: none; } }
@keyframes fx-cursor {
  0% { transform: translate(-10px, 6px); opacity: 0; }
  12% { opacity: 1; }
  30% { transform: translate(14px, -6px); }
  50% { transform: translate(14px, -6px); }
  70%, 90% { transform: translate(-6px, 0); opacity: 1; }
  100% { transform: translate(-10px, 6px); opacity: 0; }
}

.partners {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  font: 400 .8125rem/1.4 var(--font-mono);
  color: var(--muted);
}
.partners__k {
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  margin-right: 8px;
}
.partners__k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* 8. Contact + footer ------------------------------------------------------ */
.section--contact {
  overflow: hidden;
  background: radial-gradient(60% 80% at 50% 120%, var(--accent-soft), transparent 70%);
}
.section--contact::before {          /* faint dot grid that fades at the edges */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 60%, #000, transparent);
          mask-image: radial-gradient(60% 70% at 50% 60%, #000, transparent);
}
.section--contact { isolation: isolate; }
.contact { text-align: center; display: grid; justify-items: center; }
.contact__title { max-width: 18em; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.75rem); }
.contact__row { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.email {
  display: inline-flex; align-items: center;
  height: 48px; padding: 0 6px 0 18px; gap: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  max-width: 100%;
}
.email__addr { font: 400 clamp(.8125rem, .6rem + 1vw, .9375rem)/1 var(--font-mono); text-decoration: none; white-space: nowrap; }
.email__addr:hover { color: var(--accent-text); }
.email__copy {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border: 0; border-radius: 7px;
  background: var(--surface-2); color: var(--muted);
  font: 400 .75rem/1 var(--font-mono);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.email__copy:hover { color: var(--text); }
.email__copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.email__copy.is-copied { color: var(--accent-text); }

.footer { border-top: 1px solid var(--border); }
.footer__inner { padding-block: 28px; font: 400 .75rem/1.5 var(--font-mono); color: var(--muted); }

/* 9. Scroll reveal (only when JS is available) ----------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 10. Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .canals path { stroke-dashoffset: 0; }
  .canals .flow { display: none; }
  /* Feature illustrations: show their finished state */
  .fx-draw, .fx-ring, .fx-check { animation: none !important; stroke-dashoffset: 0; }
  .fx-knob { animation: none !important; transform: translateX(15px); fill: var(--accent-text); }
  .fx-track { animation: none !important; fill: var(--accent-soft); stroke: var(--accent-text); }
  .fx-shackle, .fx-cursor { animation: none !important; }
  .is-protect .field--secure .mask { animation: none !important; color: var(--d-muted); }
  .glow, .tag__dot, .pulse-dot::after { animation: none !important; }
}
