/* ============================================================
   FlexibleBrains — Jan Boersema
   Editorial / executive aesthetic
   ============================================================ */

:root {
  /* Palette — Ocean (default) */
  --bg: #fbf8f3;
  --bg-2: #f0e9dd;
  --surface: #ffffff;
  --ink: #0b1f30;
  --ink-2: #2c4458;
  --muted: #6b7d8e;
  --line: rgba(11, 31, 48, 0.12);
  --line-strong: rgba(11, 31, 48, 0.28);
  --primary: #0b3d5c;
  --accent: #4a90a4;
  --accent-2: #c98a5d;

  /* Type */
  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing scale (comfy default) */
  --pad-section: clamp(72px, 9vw, 140px);
  --pad-x: clamp(24px, 6vw, 96px);
  --gap: 32px;
  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(11, 31, 48, 0.04),
                 0 12px 32px -16px rgba(11, 31, 48, 0.18);

  /* Illustration palette (shared across themes) */
  --illu-skin: #e8d5b5;
  --illu-hair: #6b4a2e;

}

/* Palette: Forest */
[data-palette="forest"] {
  --bg: #f8f6f0;
  --bg-2: #ebe6d8;
  --ink: #1a2b1c;
  --ink-2: #2d3e2c;
  --muted: #6b7560;
  --line: rgba(26, 43, 28, 0.12);
  --line-strong: rgba(26, 43, 28, 0.28);
  --primary: #2d3e2c;
  --accent: #8b9a6b;
  --accent-2: #c98a5d;
}

/* Palette: Mono */
[data-palette="mono"] {
  --bg: #f6f5f2;
  --bg-2: #e9e6df;
  --ink: #0a0a0a;
  --ink-2: #1c1c1c;
  --muted: #5d5d5d;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.3);
  --primary: #0a0a0a;
  --accent: #444444;
  --accent-2: #b08358;
}

/* Density: compact */
[data-density="compact"] {
  --pad-section: clamp(56px, 7vw, 100px);
  --gap: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--primary); color: var(--bg); }

/* ============================================================
   Layout primitives
   ============================================================ */

.shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

section { padding-block: var(--pad-section); position: relative; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 22px;
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
  text-wrap: pretty;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}

.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
}

.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-weight: 500; }
.brand-sep { color: var(--muted); margin-inline: 4px; font-weight: 300; }

.brand-name-secondary {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding-block: 6px;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s ease, background .2s ease;
}

.nav-cta:hover { background: var(--ink); transform: translateY(-1px); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.lang-toggle button {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
}

.lang-toggle button[data-active="true"] {
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 1100px) {
  .nav-links { gap: 18px; }
}

@media (max-width: 980px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 720px) {
  .lang-toggle { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: clamp(56px, 7vw, 100px);
  padding-bottom: clamp(56px, 7vw, 110px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.hero-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.99;
  letter-spacing: -0.022em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}

.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.12em;
  background: var(--accent-2);
  opacity: .35;
  z-index: -1;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn .arrow {
  display: inline-block;
  transition: transform .25s ease;
}

.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.hero-meta .stat {
  display: flex;
  flex-direction: column;
}

.hero-meta .stat .num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero-meta .stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================
   Flow visualization (right hero column)
   ============================================================ */

.flow-viz {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  display: grid;
  place-items: center;
}

.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.flow-core {
  position: relative;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 3;
  box-shadow: var(--shadow-soft);
}

.flow-core .core-title {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.flow-core .core-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.flow-node {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .25s ease,
              border-color .25s ease,
              background .25s ease;
  z-index: 2;
}

.flow-node:hover, .flow-node[data-active="true"] {
  transform: scale(1.06);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  z-index: 4;
}

.flow-node[data-active="true"] {
  background: var(--primary);
  color: var(--bg);
}

.flow-node[data-active="true"] .node-label { color: var(--bg); }
.flow-node[data-active="true"] .node-num { color: var(--accent-2); }

.flow-node .node-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.flow-node .node-label {
  font-family: var(--font-display);
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-inline: 8px;
}

.flow-node[data-pos="n"] { top: 0; left: 50%; transform: translateX(-50%); }
.flow-node[data-pos="n"]:hover, .flow-node[data-pos="n"][data-active="true"] {
  transform: translateX(-50%) scale(1.06);
}

.flow-node[data-pos="e"] { right: 0; top: 50%; transform: translateY(-50%); }
.flow-node[data-pos="e"]:hover, .flow-node[data-pos="e"][data-active="true"] {
  transform: translateY(-50%) scale(1.06);
}

.flow-node[data-pos="s"] { bottom: 0; left: 50%; transform: translateX(-50%); }
.flow-node[data-pos="s"]:hover, .flow-node[data-pos="s"][data-active="true"] {
  transform: translateX(-50%) scale(1.06);
}

.flow-node[data-pos="w"] { left: 0; top: 50%; transform: translateY(-50%); }
.flow-node[data-pos="w"][data-active="true"] {
  transform: translateY(-50%) scale(1.06);
}

.flow-detail {
  position: absolute;
  inset: auto 0 -100px 0;
  background: var(--ink);
  color: var(--bg);
  padding: 18px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.flow-detail[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.flow-detail .detail-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.flow-detail .detail-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--bg);
}

/* ============================================================
   Services
   ============================================================ */

.services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .25s ease,
              border-color .25s ease;
  position: relative;
  overflow: hidden;
  min-height: 460px;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
}

.service-card .index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.service-card .title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.service-card .for {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.service-card .desc {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
}

.service-card .outcomes {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card .outcomes li {
  font-size: 13.5px;
  color: var(--ink-2);
  list-style: none;
  padding-left: 22px;
  position: relative;
}

.service-card .outcomes li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.service-card .outcomes-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.service-card .figure {
  height: 70px;
  display: flex;
  align-items: flex-end;
}

.service-card .figure svg {
  width: 70px;
  height: 70px;
}

/* ============================================================
   Philosophy (4 pillars row)
   ============================================================ */

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 980px) {
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .philosophy-grid { grid-template-columns: 1fr; }
}

.pillar {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  background: transparent;
  transition: background .3s ease;
}

.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--bg-2); }

@media (max-width: 980px) {
  .pillar:nth-child(2n) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.pillar .index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.pillar .title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}

.pillar .body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ============================================================
   Flow deep section
   ============================================================ */

.flow-deep {
  background: var(--ink);
  color: var(--bg);
}

.flow-deep .section-tag { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.flow-deep .section-tag::before { background: color-mix(in oklab, var(--bg) 30%, transparent); }
.flow-deep .section-title { color: var(--bg); }
.flow-deep .section-title em { color: var(--accent-2); }
.flow-deep .section-lede { color: color-mix(in oklab, var(--bg) 80%, transparent); }

.dims {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: color-mix(in oklab, var(--bg) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 16%, transparent);
}

@media (max-width: 980px) { .dims { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .dims { grid-template-columns: 1fr; } }

.dim {
  background: var(--ink);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  transition: background .3s ease;
  cursor: default;
}

.dim:hover { background: color-mix(in oklab, var(--ink) 88%, var(--bg) 4%); }

.dim .dim-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent-2);
  text-transform: uppercase;
}

.dim .dim-where {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bg);
}

.dim .dim-where em { font-style: italic; color: var(--accent-2); }

.dim .dim-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  margin-top: auto;
}

.dim .dim-icon {
  margin-top: 8px;
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 4/5;
}

.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}

.about-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: color-mix(in oklab, var(--ink) 86%, transparent);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
}

.about-body p {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
  text-wrap: pretty;
}

.about-body p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.creds {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) { .creds { grid-template-columns: 1fr; } }

.cred {
  display: flex;
  flex-direction: column;
}

.cred .cred-num {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.cred .cred-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 8px;
}

/* ============================================================
   Articles
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 880px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--surface);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: background .25s ease;
  min-height: 240px;
}

.article-card:hover { background: var(--bg-2); }

.article-card .article-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.article-card .article-meta .pin {
  color: var(--accent);
}

.article-card .article-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
  text-wrap: balance;
}

.article-card .article-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.article-card .article-source .arrow {
  color: var(--accent);
  transition: transform .25s ease;
}

.article-card:hover .article-source .arrow { transform: translate(3px, -3px); }
.article-card .article-source .arrow svg { width: 16px; height: 16px; }

/* ============================================================
   Contact / CTA
   ============================================================ */

.contact {
  background: var(--bg-2);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 880px) { .contact-inner { grid-template-columns: 1fr; } }

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.contact h2 em { font-style: italic; color: var(--accent); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}

.contact-row:hover { border-color: var(--ink); background: var(--bg-2); }

.contact-row .ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border-radius: 10px;
  color: var(--primary);
}

.contact-row .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row .val { font-size: 15px; }
.contact-row .arrow { margin-left: auto; color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 36px var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer .footer-brand {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 15px;
}

.footer .footer-links { display: flex; gap: 20px; }
.footer .footer-links a:hover { color: var(--ink); }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1),
              transform .8s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

/* Animated background dots in hero flow */

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.flow-ring {
  position: absolute;
  inset: 12%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  animation: orbit 80s linear infinite;
  opacity: 0.6;
}

.flow-ring.inner {
  inset: 28%;
  animation-duration: 50s;
  animation-direction: reverse;
}

/* small particle on the ring */
.flow-particle {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent);
}