/* Self-hosted fonts (latin + latin-ext) — replaces the render-blocking Google Fonts request */
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-sans-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-sans-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-sans-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-sans-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-sans-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-sans-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/space-grotesk-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/space-grotesk-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/space-grotesk-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/space-grotesk-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/space-grotesk-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/space-grotesk-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg: oklch(0.986 0.004 75);
  --bg-alt: oklch(0.949 0.008 80);
  --surface: oklch(0.975 0.005 75);
  --fg: oklch(0.205 0.012 60);
  --muted: oklch(0.52 0.012 60);
  --faint: oklch(0.66 0.01 60);
  --line: oklch(0.885 0.006 70);
  --line-strong: oklch(0.82 0.008 65);
  --accent: oklch(0.605 0.176 38);
  --accent-fg: oklch(0.99 0.004 75);

  /* river flow field (rgb triplets, read by the canvas) */
  --flow-fade: 250, 247, 242;   /* trail-fade / page tone */
  --flow-ink: 22, 19, 15;       /* particle stroke */
  --flow-accent: 232, 80, 30;   /* accent particle */

  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 72px);
}

/* ---------- dark theme ---------- */
:root[data-theme="dark"] {
  --bg: #17130f;
  --bg-alt: #201b15;
  --surface: #211c17;
  --fg: #f2efe9;
  --muted: #b3aca2;
  --faint: #837b71;
  --line: #322c25;
  --line-strong: #4a4238;
  --accent: oklch(0.67 0.17 42);

  --flow-fade: 23, 19, 15;
  --flow-ink: 236, 233, 228;
  --flow-accent: 240, 130, 80;
}

* { box-sizing: border-box; }
/* Smooth scrolling is applied per anchor click in site.js, not globally: a global
   scroll-behavior would also animate the browser's jump to #kontakt after a form
   redirect, making the page visibly scroll down from the top. */
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  transition: background-color .3s ease, color .3s ease;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--accent-fg); }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

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

/* ---------- section HUD (instrument readout) ---------- */
.hud {
  position: fixed; left: 18px; bottom: 18px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
  opacity: 0; transition: opacity .4s ease;
  pointer-events: none;
}
.hud.on { opacity: 1; }
.hud .hud-mark { width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
@media (max-width: 1100px) { .hud { display: none; } }

/* ---------- header ---------- */
#hdr {
  position: sticky; top: 0; z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid var(--accent);
}
#hdr.scrolled {
  background-color: var(--bg);
  border-bottom-color: var(--accent);
}
#hdr .brand { color: var(--fg); text-shadow: none; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-right { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); }

/* theme (dark mode) toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex-shrink: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 0;
  color: var(--fg); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.brand { display: flex; align-items: start; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: 0.02em; }
.brand img { display: block; height: 32px; width: auto; }
.foot .brand img { height: 26px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.navlink {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 1px;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a.navlink:hover { color: var(--accent); }
.nav-links a.navlink:hover::after { width: 100%; }

/* subtle "new blog entry" marker */
.nav-dot {
  display: inline-block; width: 5px; height: 5px; margin-left: 6px;
  border-radius: 50%; background: var(--accent);
  vertical-align: top; position: relative; top: -1px;
  animation: nav-dot-pulse 2.8s ease-out infinite;
}
.nav-mobile-link .nav-dot { width: 6px; height: 6px; top: 0; margin-left: 8px; vertical-align: middle; }
@keyframes nav-dot-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 5px transparent; }
}
@media (prefers-reduced-motion: reduce) { .nav-dot { animation: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 20px; border-radius: 0; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translate(3px, -3px); }
@media (max-width: 640px) { .btn { width: 100%; justify-content: center; } }

/* hamburger toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; margin-right: -10px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--fg);
}
.nav-toggle-bars { position: relative; width: 22px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform .28s ease, opacity .2s ease, top .28s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* mobile nav panel */
.nav-mobile[hidden] { display: none; }
.nav-mobile {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px var(--pad) 24px;
}
.nav-mobile-link {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg); padding: 16px 0; border-bottom: 1px solid var(--line);
}
.nav-mobile-link:hover { color: var(--accent); }
.nav-mobile-cta { justify-content: center; margin-top: 20px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  #hdr.menu-open { background-color: var(--bg); border-bottom-color: var(--line); }
}
@media (min-width: 761px) {
  .nav-mobile { display: none !important; }
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ---------- hero (Limmat flow field) ---------- */
.hero-flow {
  position: relative; z-index: 1; overflow: hidden;
  background: rgb(var(--flow-fade));
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: clamp(40px, 5vw, 72px);
}
.hero-flow .flow-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; pointer-events: none;
}
.hero-flow__inner { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }

.hero-flow__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(20px, 3vw, 36px); }
.hero-flow__kicker .diamond { color: var(--accent); font-size: 12px; line-height: 1; }
.hero-flow__kicker .mono { color: color-mix(in oklch, var(--fg) 65%, transparent); font-size: 12px; letter-spacing: .16em; }

.hero-flow__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 8.4vw, 100px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--fg);
}
.hero-flow__title em { font-style: normal; color: var(--accent); }

.hero-flow__row {
  margin-top: clamp(24px, 3vw, 40px); min-width: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 60px;
}
.hero-flow__lead { min-width: 0; }
.hero-flow__sub {
  margin: 0 0 30px; max-width: min(520px, 100%);
  font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: color-mix(in oklch, var(--fg) 75%, transparent);
}
.hero-flow__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-flow .btn { padding: 19px 30px; }
.hero-flow .btn-ghost { color: var(--fg); border-color: color-mix(in oklch, var(--fg) 55%, transparent); background: color-mix(in oklch, rgb(var(--flow-fade)) 50%, transparent); }
.hero-flow .btn-ghost:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.hero-flow__gauge { flex: none; text-align: right; }
.hero-flow__gauge-label { color: color-mix(in oklch, var(--fg) 55%, transparent); font-size: 11px; letter-spacing: .18em; margin-bottom: 6px; }
.hero-flow__gauge-value {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(52px, 6.6vw, 92px); line-height: 1; letter-spacing: -0.04em;
  color: var(--fg); font-variant-numeric: tabular-nums;
}
.hero-flow__gauge-meta {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; margin-top: 8px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em;
  color: color-mix(in oklch, var(--fg) 55%, transparent);
}
.hero-flow__gauge-meta .unit { color: var(--accent); }
.hero-flow__gauge-meta .temp { font-weight: 600; }
.hero-flow__gauge-meta .src { color: var(--accent); }
.hero-flow__gauge-meta .src[data-typical] { color: color-mix(in oklch, var(--fg) 55%, transparent); }
.hero-flow__gauge-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in oklch, var(--fg) 62%, transparent);
}
.hero-flow__gauge-note .diamond { color: var(--accent); font-size: 7px; line-height: 1; }
.hero-flow__gauge-note:not(:has([data-flow-label]:not(:empty))) { display: none; }
/* easter egg: the Limmat wave is surfable */
.hero-flow__gauge-note.is-surf { color: var(--accent); font-weight: 600; }
.hero-flow__gauge-note.is-surf [data-flow-label] { display: inline-block; animation: surf-bob 1.6s ease-in-out infinite; }
@keyframes surf-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-flow__gauge-note.is-surf [data-flow-label] { animation: none; } }

/* gauge tooltip — explains the flow-field background */
.hero-flow__gauge-value { position: relative; cursor: help; }
.hero-flow__gauge-value:focus-visible { outline: 1px solid var(--accent); outline-offset: 8px; }
.flow-tip {
  position: absolute; bottom: calc(100% + 18px); right: 0; z-index: 6;
  width: min(330px, 76vw); padding: 15px 17px 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 22px 48px -28px color-mix(in oklch, var(--fg) 80%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events: none;
}
.flow-tip::after {
  content: ""; position: absolute; top: 100%; right: 44px; width: 11px; height: 11px;
  background: var(--surface);
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.hero-flow__gauge-value:hover .flow-tip,
.hero-flow__gauge-value:focus-visible .flow-tip {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.flow-tip__title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.flow-tip__title .diamond { font-size: 9px; }
.flow-tip__body {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 14.5px; line-height: 1.55; letter-spacing: 0; text-transform: none;
  color: color-mix(in oklch, var(--fg) 78%, transparent);
}
@media (max-width: 860px) {
  .hero-flow__row { flex-direction: column; align-items: stretch; gap: 40px; }
  .hero-flow__gauge { text-align: left; }
  .hero-flow__gauge-meta { justify-content: flex-start; }
  .flow-tip { right: auto; left: 0; }
  .flow-tip::after { right: auto; left: 44px; }
}
@media (max-width: 600px) {
  .hero-flow { min-height: 90vh; padding-top: 100px; }
  .hero-flow__cta { flex-direction: column; align-items: stretch; }
  .hero-flow__cta .btn { width: 100%; justify-content: center; }
}
/* Desktop: lock the hero to one viewport so the instrument sits in the
   bottom-right corner. Headline + number scale with viewport height so
   nothing spills below the fold on shorter screens. */
@media (min-width: 861px) {
  .hero-flow {
    /* subtract the sticky header (72px nav + 1px border) so the section
       fills exactly the remaining viewport and its bottom edge is the fold */
    height: calc(100vh - 73px); height: calc(100svh - 73px); min-height: 560px;
    padding-top: clamp(48px, 7vh, 88px);
    padding-bottom: clamp(56px, 9vh, 112px);
  }
  .hero-flow__title { font-size: clamp(52px, min(7.3vw, 12vh), 100px); }
  .hero-flow__gauge-value { font-size: clamp(20px, min(3.5vw, 8vh), 92px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flow__kicker .diamond { animation: none; }
}

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 0; background: var(--surface); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: scroll 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 14px; padding: 16px 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.ticker-item::before { content: ""; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
.ticker-item .idx { font-size: 10.5px; color: var(--faint); letter-spacing: .1em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- section scaffold ---------- */
section.block { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 130px); }
/* alternating rhythm — every other content section sits on a darker tone
   so the page doesn't read as one flat white sheet */
#angebot, .team, #produkte { background: var(--bg-alt); }
.sec-head {
  position: relative;
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.sec-head::before {
  content: "+"; position: absolute; left: -7px; top: -11px;
  font-family: var(--font-mono); font-size: 14px; line-height: 1; color: var(--accent);
}
.sec-head::after {
  content: "+"; position: absolute; right: -7px; top: -11px;
  font-family: var(--font-mono); font-size: 14px; line-height: 1; color: var(--line-strong);
}
.sec-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.sec-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.sec-lead { margin-left: auto; max-width: 38ch; color: var(--muted); font-size: 16px; }

/* services (legacy list style) */
.services { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 64px 1fr auto; gap: clamp(16px, 4vw, 48px);
  align-items: start; padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.svc:hover { padding-left: 10px; }
.svc .n { font-family: var(--font-mono); font-size: 13px; color: var(--faint); padding-top: 6px; }
.svc h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 29px); margin: 0 0 10px; letter-spacing: -0.015em; }
.svc p { margin: 0; color: var(--muted); max-width: 52ch; }
.svc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.svc .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 4px 9px; white-space: nowrap; }
.svc .go { font-family: var(--font-mono); font-size: 22px; color: var(--line-strong); transition: color .2s, transform .2s; align-self: center; }
.svc:hover .go { color: var(--accent); transform: translate(4px, -4px); }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; gap: 8px; } .svc .go { display: none; } }

/* offer cells — fused, ruled, invert on hover */
.offer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.offer {
  display: flex; flex-direction: column; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  padding: clamp(26px, 2.6vw, 38px);
  transition: background .25s ease, border-color .25s ease;
}
.offer:hover { background: var(--fg); border-color: var(--fg); }
.offer .top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: 26px; }
.offer .n { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .08em; transition: color .25s; }
.offer .badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-fg); border-radius: 0; padding: 5px 10px; white-space: nowrap; }
.offer .glyph { width: 30px; height: 30px; color: var(--accent); }
.offer h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(21px, 2vw, 26px); margin: 0 0 12px; letter-spacing: -0.015em; transition: color .25s; }
.offer p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; transition: color .25s; }
.offer .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.offer .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 4px 9px; white-space: nowrap; transition: color .25s, border-color .25s; }
.offer .lnk { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); transition: color .25s; }
.offer .lnk .a { color: var(--accent); transition: transform .2s; }
.offer:hover h3 { color: var(--accent); }

.offer-note {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line-strong);
  padding: clamp(24px, 2.6vw, 36px) clamp(26px, 2.6vw, 38px);
}
.offer-note-txt { flex: 1 1 380px; }
.offer-note-eyebrow { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.offer-note p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; max-width: 58ch; }
.offer-note .btn { flex: 0 0 auto; }
.offer:hover p { color: color-mix(in oklch, var(--bg) 72%, transparent); }
.offer:hover .n { color: color-mix(in oklch, var(--bg) 45%, transparent); }
.offer:hover .tag { color: color-mix(in oklch, var(--bg) 65%, transparent); border-color: color-mix(in oklch, var(--bg) 22%, transparent); }
.offer:hover .lnk { color: var(--bg); }
.offer:hover .lnk .a { transform: translate(3px, -3px); }
@media (max-width: 900px) { .offer-grid { grid-template-columns: 1fr; } }

/* compact process band */
.flow { border-top: 1px solid var(--line); background: var(--surface); }
.flow .wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: clamp(26px, 3vw, 40px); flex-wrap: wrap; }
.flow .lead { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.flow .chain { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); flex-wrap: wrap; counter-reset: flowstep; }
.flow .node { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(15px, 1.5vw, 18px); color: var(--fg); counter-increment: flowstep; }
.flow .node::before { content: "0" counter(flowstep); font-family: var(--font-mono); font-size: 10.5px; color: var(--accent); letter-spacing: .06em; }
.flow .sep { font-size: 0; width: clamp(14px, 2vw, 32px); height: 1px; background: var(--line-strong); }

/* team */
.team { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-lead { max-width: 60ch; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6; color: var(--fg); margin: 0 0 8px; text-wrap: pretty; }
.about-lead + .about-lead { margin-top: 18px; color: var(--muted); font-size: 16px; }
.about-office {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 22px);
  max-width: 820px;
}
.about-office-fig { margin: 0; }
.about-office-ph { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.about-office-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-office-cap { margin-top: 9px; color: var(--faint); font-size: 11px; letter-spacing: .1em; }
@media (max-width: 560px) { .about-office { grid-template-columns: 1fr; max-width: none; } }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: clamp(36px, 5vw, 60px); }
.member { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(26px, 3vw, 44px) clamp(20px, 2.4vw, 34px) clamp(30px, 3.4vw, 52px); transition: background .25s ease, border-color .25s ease; }
.member:hover { background: var(--fg); border-color: var(--fg); }
.member-ini { position: absolute; top: -8px; right: 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(64px, 6.5vw, 104px); line-height: 1.1; letter-spacing: .01em; color: color-mix(in oklch, var(--fg) 5%, transparent); pointer-events: none; user-select: none; transition: color .25s ease; }
.member:hover .member-ini { color: color-mix(in oklch, var(--bg) 9%, transparent); }
.member-bar { width: 34px; height: 3px; background: var(--line-strong); margin-bottom: clamp(24px, 3vw, 42px); transition: background .25s ease; }
.member.is-partner .member-bar { background: var(--accent); }
.member:hover .member-bar { background: var(--accent); }
.member .nm { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.8vw, 23px); transition: color .25s ease; }
.member:hover .nm { color: var(--accent); }
.member .ro { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.4; transition: color .25s ease; }
.member:hover .ro { color: color-mix(in oklch, var(--bg) 60%, transparent); }
.member-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(18px, 2vw, 26px); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; color: var(--muted); text-decoration: none; transition: color .2s ease; }
.member-mail svg { flex-shrink: 0; }
.member-mail:hover { color: var(--accent); }
.member:hover .member-mail { color: color-mix(in oklch, var(--bg) 72%, transparent); }
.member:hover .member-mail:hover { color: var(--bg); }
.member--join .member-bar { background: var(--accent); }
.member--join .member-ini { font-weight: 400; color: color-mix(in oklch, var(--accent) 14%, transparent); }
.member--join:hover .member-ini { color: color-mix(in oklch, var(--accent) 40%, transparent); }
.member--join:hover .nm { color: var(--bg); }
.member-join-txt { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin-top: 10px; max-width: 32ch; transition: color .25s ease; }
.member--join:hover .member-join-txt { color: color-mix(in oklch, var(--bg) 62%, transparent); }
.member--join .member-mail { color: var(--accent); }
.member--join:hover .member-mail { color: var(--accent); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* testimonial */
.quote { background: var(--bg); border-bottom: 1px solid var(--line); }

.quote-carousel { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.quote-track { position: relative; display: grid; flex: 1 1 auto; min-width: 0; }
.quote-slide { grid-area: 1 / 1; margin: 0; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .4s ease, transform .4s ease; pointer-events: none; }
.quote-slide.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.quote-ava { width: clamp(110px, 12vw, 156px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line); }
.quote-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

.quote-body { min-width: 0; }
.quote-body blockquote { position: relative; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 2vw, 26px); line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty; }
.quote-body .mk { position: absolute; top: -0.35em; left: -0.06em; font-family: var(--font-display); font-size: 3em; line-height: 1; color: color-mix(in oklch, var(--accent) 22%, transparent); pointer-events: none; }
.quote-cite { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.quote-cite .quote-name { font-size: clamp(15px, 1.5vw, 18px); color: var(--fg); }
.quote-cite .quote-company { font-style: italic; font-size: clamp(14px, 1.4vw, 16px); color: var(--muted); }

.quote-arrow { flex-shrink: 0; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--fg); background: transparent; border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.quote-arrow:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

@media (max-width: 720px) {
  .quote-carousel { gap: 8px; }
  .quote-slide { flex-direction: column; align-items: flex-start; text-align: left; gap: 20px; }
  .quote-body .mk { position: static; display: block; margin-bottom: -0.3em; }
}

/* process */
.process { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.step { background: var(--surface); padding: clamp(22px, 2.6vw, 34px); min-height: 220px; display: flex; flex-direction: column; transition: background .25s; }
.step:hover { background: var(--bg); }
.step .sn { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.step h4 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 16px 0 10px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.step .ico { margin-top: auto; width: 26px; height: 26px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--faint); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* work */
#arbeiten { background: var(--bg); }
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter-btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: transparent; border: 1px solid var(--line-strong); border-radius: 0;
  padding: 8px 14px; cursor: pointer; transition: color .2s, background .2s, border-color .2s;
}
.filter-btn:hover { color: var(--fg); border-color: var(--fg); }
.filter-btn.is-active { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 52px); }
.case.is-hidden { display: none; }
.case { display: block; min-width: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.case:hover { transform: translateY(-4px); }
.case .ph {
  aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 0; overflow: hidden; position: relative;
  background-color: var(--surface);
  background-image: repeating-linear-gradient(135deg, color-mix(in oklch, var(--line) 35%, transparent) 0 1px, transparent 1px 16px);
  transition: border-color .25s ease, box-shadow .35s ease;
}
.case .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.case:hover .ph { border-color: var(--line-strong); box-shadow: 0 18px 40px -18px rgba(0,0,0,0.25); }
.case:hover .ph img { transform: scale(1.035); }
.case .ph .lbl {
  position: absolute; left: 12px; top: 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: color-mix(in oklch, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 4px 9px; border: 1px solid var(--line); border-radius: 0; white-space: nowrap;
  transition: color .25s ease, border-color .25s ease;
}
.case:hover .ph .lbl { color: var(--fg); border-color: var(--line-strong); }
.case .ph .case-go {
  position: absolute; right: 12px; bottom: 12px;
  width: 32px; height: 32px; display: grid; place-items: center;
  font-size: 15px; line-height: 1; color: var(--accent-fg); background: var(--accent);
  opacity: 0; transform: translate(4px, 4px); transition: opacity .25s ease, transform .25s ease;
}
.case:hover .ph .case-go { opacity: 1; transform: translate(0, 0); }
.case .meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.case h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; margin: 0; letter-spacing: -0.015em; transition: color .2s ease; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case:hover h3 { color: var(--accent); }
.case .yr { font-family: var(--font-mono); font-size: 12px; color: var(--faint); flex-shrink: 0; }
.case p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* statement */
.statement { border-top: 1px solid var(--line); }
.statement p { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 42px); line-height: 1.28; letter-spacing: -0.015em; max-width: 22ch; margin: 0; text-wrap: balance; }
.statement p span { color: var(--faint); }
.statement .by { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.statement .by .ln { width: 38px; height: 1px; background: var(--line-strong); }

/* contact */
/* Contact is a fixed dark panel in both themes (--panel-* keep it dark). */
.contact {
  --panel-bg: var(--fg);
  --panel-fg: var(--bg);
  background: var(--panel-bg); color: var(--panel-fg);
  position: relative; z-index: 1;
}
:root[data-theme="dark"] .contact {
  --panel-bg: var(--surface);
  --panel-fg: var(--fg);
  border-top: 1px solid var(--line);
}
.contact .wrap { padding-block: clamp(60px, 9vw, 120px); }
.contact .mono { color: color-mix(in oklch, var(--panel-fg) 60%, transparent); }
.contact h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 5.2vw, 68px); letter-spacing: -0.025em; line-height: 1.02; margin: 22px 0 0; max-width: 16ch; }
.contact h2 a { border-bottom: 2px solid var(--accent); transition: color .2s; }
.contact h2 a:hover { color: var(--accent); }
.contact-meta { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid color-mix(in oklch, var(--panel-fg) 22%, transparent); padding-top: 30px; }
.cm .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in oklch, var(--panel-fg) 50%, transparent); }
.cm .v { margin-top: 8px; font-size: 16px; }
.cm a:hover { color: var(--accent); }
@media (max-width: 640px) { .contact-meta { grid-template-columns: 1fr; } }

/* contact form */
.contact-form { margin-top: clamp(36px, 5vw, 60px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.form-field--full { grid-column: 1 / -1; }
.form-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in oklch, var(--panel-fg) 55%, transparent); margin-bottom: 8px; }
.form-optional { color: color-mix(in oklch, var(--panel-fg) 35%, transparent); }
.form-input {
  width: 100%; background: color-mix(in oklch, var(--panel-fg) 7%, transparent);
  border: 1px solid color-mix(in oklch, var(--panel-fg) 20%, transparent);
  border-radius: 0; color: var(--panel-fg); font-family: var(--font-body); font-size: 15.5px;
  padding: 12px 14px; transition: border-color .2s, background .2s; outline: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: color-mix(in oklch, var(--panel-fg) 30%, transparent); }
.form-input:focus { border-color: var(--accent); background: color-mix(in oklch, var(--panel-fg) 10%, transparent); }
.form-input--err { border-color: var(--accent) !important; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-err-msg { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .04em; }
.form-error-banner { margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 0; font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.form-submit { margin-top: 28px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-success { display: flex; align-items: flex-start; gap: 16px; margin-top: clamp(28px, 4vw, 48px); padding: 28px; border: 1px solid color-mix(in oklch, var(--panel-fg) 22%, transparent); border-radius: 0; }
.form-success-icon { font-family: var(--font-mono); font-size: 18px; color: var(--accent); flex-shrink: 0; line-height: 1.6; }
.form-success p { margin: 0; font-size: 16px; color: color-mix(in oklch, var(--panel-fg) 80%, transparent); line-height: 1.6; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-field--full { grid-column: 1; } }

/* footer */
footer { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.foot { display: flex; align-items: stretch; justify-content: space-between; gap: 28px; padding-block: 44px; flex-wrap: wrap; }
.foot .mono { font-size: 11.5px; }
.foot .brand { font-size: 16px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-addr { font-style: normal; line-height: 1.7; color: var(--muted); }
.foot-addr a { color: var(--muted); transition: color .2s; }
.foot-addr a:hover { color: var(--accent); }
.foot-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.foot-contact a,
.foot-links a { color: var(--muted); transition: color .2s; }
.foot-contact a:hover,
.foot-links a:hover { color: var(--accent); }
.foot-links { gap: 10px; justify-content: flex-end; }
.foot-social { display: flex; gap: 14px; margin-top: 6px; }
.foot-social a { color: var(--muted); display: inline-flex; transition: color .2s; }
.foot-social a:hover { color: var(--accent); }
.foot-social svg { display: block; }
.foot-meta { text-align: right; justify-content: flex-end; }
.foot-badge { display: flex; justify-content: center; padding: 26px 0 40px; border-top: 1px solid var(--line); }
.foot-badge img { height: 32px; width: auto; display: block; opacity: .85; transition: opacity .2s; }
.foot-badge a:hover img { opacity: 1; }
@media (max-width: 640px) {
  .foot { flex-direction: column; gap: 28px; }
  .foot-links, .foot-meta { justify-content: flex-start; align-items: flex-start; }
  .foot-meta { text-align: left; }
}

/* project detail */
.proj-header { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 100px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.proj-header-inner { display: flex; flex-direction: column; gap: 28px; }
.proj-header-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.proj-back { font-size: 11px; letter-spacing: .1em; color: var(--muted); transition: color .2s; }
.proj-back:hover { color: var(--accent); }
.proj-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-badge { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.proj-badge.accent { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 40%, var(--line)); }
.proj-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 5.5vw, 72px); letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.proj-tagline { font-size: clamp(17px, 1.8vw, 22px); color: var(--accent); margin: 0; font-weight: 400; max-width: 60ch; }

.proj-main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding-block: clamp(40px, 6vw, 72px); }
.proj-image-col { }
.proj-image { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 56px -20px rgba(0,0,0,0.16); background: var(--surface); min-height: 180px; }
.proj-image img { display: block; width: 100%; height: auto; }
.proj-image--empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/10; }

.proj-info-col { display: flex; flex-direction: column; gap: 32px; }
.proj-content { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.75; color: var(--muted); }
.proj-content p { margin: 0 0 1.3em; }
.proj-content p:last-child { margin-bottom: 0; }
.tech-group { display: flex; flex-direction: column; gap: 12px; }
.tech-label { font-size: 10px; letter-spacing: .14em; }
.tech-group .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tech-group .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 4px 9px; white-space: nowrap; }

@media (max-width: 860px) { .proj-main { grid-template-columns: 1fr; } }

.proj-nav { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.proj-nav-inner { display: grid; grid-template-columns: 1fr 1fr; padding-block: clamp(32px, 4vw, 56px); }
.proj-nav-link { display: flex; flex-direction: column; gap: 8px; padding: 16px; transition: color .2s; }
.proj-nav-link:hover { color: var(--accent); }
.proj-nav-link .mono { font-size: 10px; letter-spacing: .12em; color: var(--faint); }
.proj-nav-link:hover .mono { color: var(--accent); }
.proj-nav-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.01em; }
.proj-nav-link--next { text-align: right; }
@media (max-width: 600px) { .proj-nav-inner { grid-template-columns: 1fr; } }

/* ---------- image lightbox ---------- */
.proj-image[data-lightbox] { cursor: zoom-in; position: relative; }
.proj-image-zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; display: grid; place-items: center;
  font-size: 16px; line-height: 1;
  color: var(--accent-fg); background: var(--accent);
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.proj-image[data-lightbox]:hover .proj-image-zoom,
.proj-image[data-lightbox]:focus-visible .proj-image-zoom { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: color-mix(in oklch, var(--fg) 88%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox__img {
  max-width: min(1100px, 100%); max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  transform: scale(.98); transition: transform .25s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 28px; line-height: 1; cursor: pointer;
  color: var(--bg); background: transparent;
  border: 1px solid color-mix(in oklch, var(--bg) 40%, transparent); border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.lightbox__close:hover { background: var(--bg); color: var(--fg); }

/* ---------- legal pages ---------- */
.legal { padding-top: clamp(48px, 8vw, 110px); }
.legal-wrap { max-width: 820px; }
.legal-back { margin-bottom: clamp(24px, 4vw, 40px); }
.legal-title { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 10px; }
.legal-updated { color: var(--faint); margin: 0 0 clamp(32px, 5vw, 52px); }
.legal-prose { max-width: none; }
.legal-prose h2 { font-size: clamp(20px, 2.2vw, 26px); margin-top: clamp(40px, 5vw, 56px); }
.legal-contact { color: var(--muted); line-height: 1.8; margin-top: 12px; }
.legal-contact a { color: var(--accent); }
.legal-contact a:hover { text-decoration: underline; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: var(--surface); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -12px 40px -24px rgba(0,0,0,0.35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(16px, 2.4vw, 22px) var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
}
.cookie-banner__text { flex: 1 1 360px; min-width: 0; }
.cookie-banner__title { display: block; font-size: 10px; letter-spacing: .14em; color: var(--faint); margin-bottom: 6px; }
.cookie-banner__text p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__text a:hover { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* ---------- blog ---------- */
.blog-index, .post { padding-top: clamp(48px, 8vw, 110px); }
.blog-index .wrap { max-width: 820px; }
.blog-head { margin-bottom: clamp(40px, 5vw, 64px); }
.blog-kicker { display: block; color: var(--accent); margin-bottom: 14px; }
.blog-h1 { margin-bottom: 16px; }
.blog-intro { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; max-width: 60ch; margin: 0; }

.blog-list { border-top: 1px solid var(--line); }
.post-row {
  display: grid; grid-template-columns: 240px 1fr; gap: clamp(22px, 3vw, 44px);
  align-items: center; padding: clamp(24px, 3.2vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.post-row--no-media { grid-template-columns: 1fr; }
.post-row-media { aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.post-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.post-row:hover .post-row-media img { transform: scale(1.04); }
.post-row-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--faint); margin-bottom: 12px; }
.post-row-author { color: var(--muted); }
.post-row-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.3vw, 28px); letter-spacing: -0.015em; margin: 0 0 10px; transition: color .2s ease; }
.post-row:hover .post-row-title { color: var(--accent); }
.post-row-excerpt { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 14px; max-width: 64ch; }
.post-row-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.post-row-link .a { color: var(--accent); transition: transform .2s ease; }
.post-row:hover .post-row-link .a { transform: translate(3px, -3px); }
.blog-empty { color: var(--muted); padding: 32px 0; }
@media (max-width: 640px) { .post-row, .post-row--no-media { grid-template-columns: 1fr; } }

/* single post */
.post-wrap { max-width: 920px; }
.post-back { margin-bottom: clamp(24px, 4vw, 40px); }
.post-header { margin-bottom: clamp(24px, 3vw, 36px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--faint); margin-bottom: 16px; }
.post-meta-author { color: var(--muted); }
.post-h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
.post-cover { margin: clamp(28px, 4vw, 44px) 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.post-cover img { display: block; width: 100%; height: auto; }
.post-content { max-width: none; }

/* prose: links, inline code & code blocks (blog + service detail) */
.svc-prose a { color: var(--accent); }
.svc-prose a:hover { text-decoration: underline; }
.svc-prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.svc-prose pre { background: var(--fg); border-radius: 8px; padding: clamp(16px, 2vw, 22px); overflow-x: auto; margin: 0 0 22px; }
.svc-prose pre code { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; color: var(--bg); background: none; border: none; padding: 0; }
.svc-prose img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }

/* products — fused cells */
.prod-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.prod { position: relative; cursor: pointer; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: clamp(28px, 3.5vw, 44px); transition: background .25s ease, border-color .25s ease; }
.prod:hover { background: var(--fg); border-color: var(--fg); }
.prod:hover h3 { color: var(--accent); }
.prod:hover .tagline,
.prod:hover p { color: color-mix(in oklch, var(--bg) 72%, transparent); }
.prod:hover .prod-link { color: var(--bg); }
.prod:hover .partner { color: color-mix(in oklch, var(--bg) 55%, transparent); }
.prod .prod-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.prod .prod-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-fg); border-radius: 0; padding: 5px 10px; }
.prod h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 36px); margin: 0 0 10px; letter-spacing: -0.02em; transition: color .25s; }
.prod .tagline { font-size: 15.5px; color: var(--muted); line-height: 1.55; margin: 0 0 20px; transition: color .25s; }
.prod p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; transition: color .25s; }
.prod .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.prod .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 4px 9px; white-space: nowrap; }
.prod .prod-footer { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.prod .prod-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); transition: color .25s; }
.prod .prod-link::after { content: ""; position: absolute; inset: 0; }
.prod .prod-link .a { color: var(--accent); transition: transform .2s; }
.prod:hover .prod-link .a { transform: translate(3px, -3px); }
.prod .partner { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 11px; color: var(--faint); transition: color .25s; }
.prod .partner a:hover { color: var(--accent); }
@media (max-width: 720px) { .prod-grid { grid-template-columns: 1fr; } }

/* service detail page */
.svc-det-bar { padding-top: 28px; }
.back-lnk { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.back-lnk:hover { color: var(--fg); }
.svc-det-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.svc-det-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-fg); border-radius: 0; padding: 5px 10px; white-space: nowrap; display: inline-block; margin-bottom: 22px; }
.svc-det-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.025em; line-height: 1.0; margin: 0 0 24px; }
.svc-det-desc { font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); line-height: 1.6; max-width: 56ch; margin: 0 0 24px; }
.svc-det-ext { margin-top: 36px; }
.btn-xl { padding: 20px 34px; font-size: 13.5px; letter-spacing: 0.12em; gap: 12px; }
.btn-xl .arr { font-size: 1.15em; }
.svc-det-ext + .svc-det-cta { margin-top: 16px; }
.svc-det-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.svc-det-content { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 96px); }
.svc-prose { max-width: 100ch; }
.svc-prose h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.015em; margin: 52px 0 18px; }
.svc-prose h2:first-child { margin-top: 0; }
.svc-prose p { color: var(--muted); line-height: 1.7; margin: 0 0 20px; }
.svc-prose ul { list-style: none; padding: 0; margin: 0 0 20px; }
.svc-prose ul li { color: var(--muted); line-height: 1.6; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line); position: relative; }
.svc-prose ul li:first-child { border-top: 1px solid var(--line); }
.svc-prose ul li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.svc-prose ul li strong { color: var(--fg); font-weight: 500; }
.svc-prose ol { list-style: none; padding: 0; margin: 0 0 20px; counter-reset: svc-step; }
.svc-prose ol li { counter-increment: svc-step; color: var(--muted); display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.svc-prose ol li:first-child { border-top: 1px solid var(--line); }
.svc-prose ol li::before { content: "0" counter(svc-step); font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; flex-shrink: 0; padding-top: 2px; }
.svc-prose ol li strong { color: var(--fg); font-weight: 500; }
.svc-det-projects { border-top: 1px solid var(--line); }
.svc-proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(28px, 4vw, 44px); }
.svc-proj { display: block; }
.svc-proj-ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt, var(--bg)); }
.svc-proj-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-proj:hover .svc-proj-ph { border-color: var(--fg); }
.svc-proj-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 11px; }
.svc-proj-meta h3 { font-family: var(--font-display); font-weight: 500; font-size: 16px; margin: 0; letter-spacing: -0.01em; }
.svc-proj-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
@media (max-width: 900px) { .svc-proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-proj-grid { grid-template-columns: 1fr; } }
.svc-det-bottom { border-top: 1px solid var(--line); }
.svc-det-cta-lead { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); font-weight: 400; letter-spacing: -0.01em; margin: 0; }

.svc-det-hero .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.svc-det-hero .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 0; padding: 4px 9px; white-space: nowrap; }

/* faq */
.faq { background: var(--bg); border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; padding: clamp(18px, 2vw, 26px) 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -0.01em; color: var(--fg); transition: color .2s; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-ico { flex-shrink: 0; font-family: var(--font-mono); font-size: 22px; line-height: 1; color: var(--accent); transition: transform .25s ease; }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 0 clamp(18px, 2vw, 26px); max-width: 70ch; }
.faq-a p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* reveal */
html.reveal-on [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); }
html.reveal-on [data-reveal].in { opacity: 1; transform: none; }
html.reveal-on .offer[data-reveal],
html.reveal-on .prod[data-reveal],
html.reveal-on .member[data-reveal] {
  transition: opacity .65s cubic-bezier(.2,.7,.2,1),
              transform .65s cubic-bezier(.2,.7,.2,1),
              background .25s ease,
              border-color .25s ease;
}
html.reveal-off [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}
