/* =========================================================
   Designbüro Sperl — Redesign (Industrial / Dark)
   Anlehnung an Matter & Løut: Schwarz, Acid-Gelb, Weiß.
   Farb-Block-Story: schwarze, weiße und gelbe Sektionen im Wechsel.
   Scharfe Ecken (radius 0) + gekerbte Notches. Breite geometrische Typo.
   ========================================================= */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --accent: #e3f500;      /* acid lime-yellow */
  --accent-ink: #0a0a0a;

  /* Theming variables (flipped per section) */
  --bg: var(--black);
  --panel: #141414;
  --text: #f4f4f2;
  --muted: #9a9a94;
  --line: rgba(255, 255, 255, 0.16);

  --font-display: "Saira Expanded", "Archivo", system-ui, sans-serif;
  --font-body: "Saira", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --maxw: 1400px;
  --pad: clamp(1.1rem, 4vw, 3rem);
  --section-y: clamp(5rem, 10vw, 9.5rem);
  --notch: 18px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hero: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.1rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; line-height: 0.96; margin: 0; text-transform: uppercase; }
.eyebrow, .mono-label { font-family: var(--font-mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1rem; }
.lead { font-family: var(--font-body); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem); color: var(--muted); max-width: 62ch; text-transform: none; letter-spacing: 0; }
.accent { color: var(--accent); }
.italic { font-style: italic; }
/* Yellow highlighter marker (dark text stays readable) */
.mark { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 100% 0.9em; background-position: 0 82%; color: var(--accent-ink); padding: 0 0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Section theming ---------- */
.section { padding-block: var(--section-y); position: relative; }
/* first content section after any hero keeps full top spacing on every page */
.hero + .section, .page-hero + .section { padding-top: var(--section-y) !important; }
.section--light { --bg: var(--white); --text: #0a0a0a; --muted: #4a4a46; --line: rgba(0,0,0,0.16); --panel: #f2f2ee; background: var(--white); color: #0a0a0a; }
.section--accent { --bg: var(--accent); --text: #0a0a0a; --muted: #2a2a10; --line: rgba(0,0,0,0.24); --panel: rgba(0,0,0,0.06); background: var(--accent); color: #0a0a0a; }
/* keep small accent-colored labels legible on light/yellow sections */
.section--light .mono-label, .section--light .eyebrow, .section--light .work-head .cta-inline, .section--light .service-row .idx,
.section--accent .mono-label, .section--accent .eyebrow, .section--accent .work-head .cta-inline { color: #0a0a0a; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 46ch; }
.section-head.wide { max-width: 56ch; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 3.1rem); }

/* Notch utility (industrial cut corners) */
.notch { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--black); border-bottom: 1px solid var(--line); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 1.6rem; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); position: relative; padding: 0.3rem 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: transform 0.3s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--white);
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.9rem 1.4rem; border: 2px solid var(--b); background: var(--b); color: var(--black);
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--accent { --b: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn--ghost:hover { background: var(--text); color: var(--bg); }
.btn--on-accent { background: var(--black); border-color: var(--black); color: var(--white); }
.btn .arrow { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin: -0.25em -0.35em -0.25em 0; background: color-mix(in srgb, currentColor 18%, transparent); font-size: 0.95em; line-height: 1; transition: transform 0.4s var(--ease-hero), background 0.4s var(--ease-hero); }
.btn:hover .arrow { transform: translate(3px, -2px); background: color-mix(in srgb, currentColor 30%, transparent); }

/* ---------- Hero ---------- */
.hero { background: var(--black); padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: var(--section-y); position: relative; overflow: clip; }
/* faint grid */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.5; -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 78%); mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 78%);
}
/* wireframe globe */
.hero-signet {
  position: absolute; z-index: 0; top: 50%; right: 3%; transform: translateY(-50%);
  width: min(54vw, 680px); pointer-events: none; opacity: 0.15;
  animation: floaty 9s ease-in-out infinite;
}
.hero-signet svg { width: 100%; height: auto; display: block; fill: var(--accent); }
.hero-inner { position: relative; z-index: 2; display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }

/* Rotating spark eyecatcher */
.hero-spark { position: absolute; top: 6%; right: 3%; width: clamp(42px, 7vw, 92px); color: var(--accent); z-index: 3; animation: floaty 6s ease-in-out infinite; pointer-events: none; }
.hero-spark svg { display: block; width: 100%; height: auto; animation: spin 16s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* top label row + tick bar */
.hero-labels { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.tick-bar { display: flex; gap: 6px; align-items: center; }
.tick-bar i { display: block; width: 9px; height: 16px; background: var(--white); opacity: 0.9; }
.tick-bar i:nth-child(n+8) { opacity: 0.35; }
.tick-bar i:nth-child(n+11) { width: 3px; }

/* framed hero box */
.hero-frame { border: 1px solid var(--line); padding: clamp(1.4rem, 3vw, 2.4rem); position: relative; }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); }
.hero-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero h1 { font-size: clamp(2.6rem, 10vw, 9rem); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line-i { display: block; transform: translateY(112%); animation: lineUp 1s var(--ease-hero) forwards; }
.hero h1 .line:nth-child(1) .line-i { animation-delay: 0.12s; }
.hero h1 .line:nth-child(2) .line-i { animation-delay: 0.26s; }
@keyframes lineUp { to { transform: translateY(0); } }

.accent-underline { position: relative; white-space: nowrap; }
.accent-underline svg { position: absolute; left: -2%; bottom: -0.14em; width: 104%; height: 0.34em; overflow: visible; }
.accent-underline path { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 0.85s var(--ease-hero) 1s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.hero-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1.4rem; }
.hero-cols .lead { margin: 0; }
.hero-cols .accent-note { color: var(--accent); font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.04em; line-height: 1.6; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(2rem, 4vw, 3rem); }
.hero-meta div { display: grid; }
.hero-meta .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hero-meta .lbl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

/* Eyebrow pill */
.eyebrow-pill { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--line); padding: 0.4rem 0.9rem; }
.eyebrow-pill .ping { width: 8px; height: 8px; background: var(--accent); position: relative; }
.eyebrow-pill .ping::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: ping 2s var(--ease-hero) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Services (technical list) ---------- */
.services { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.3rem, 3vw, 2.3rem) 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease-hero), background 0.4s var(--ease); }
.service-row:hover { padding-left: 1rem; }
.service-row .idx { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.service-row .name { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: -0.01em; text-transform: uppercase; transition: color 0.35s var(--ease-hero); }
.service-row:hover .name { color: var(--accent); }
.service-row .desc { display: block; color: var(--muted); max-width: 52ch; margin-top: 1rem; text-transform: none; }
.service-row .go { width: 52px; height: 52px; border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--text); transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.service-row:hover .go { background: var(--accent); border-color: var(--accent); color: var(--black); transform: rotate(-45deg); }

/* ---------- Work ---------- */
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.work-head h3 { font-size: clamp(1.8rem, 5vw, 3.4rem); }
.work-head .cta-inline { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; }
.work-head .cta-inline .arrow { transition: transform 0.25s var(--ease); }
.work-head .cta-inline:hover .arrow { transform: translateX(4px); }

.grid-web { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(0.7rem, 1.4vw, 1.1rem); }
.grid-web .card { grid-column: span 6; }
.grid-web .card.wide { grid-column: span 12; }
.card { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 0.7s var(--ease); }
.card.wide img { aspect-ratio: 21 / 9; }
.card:hover img { transform: scale(1.04); }
.card video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; display: block; transition: transform 0.7s var(--ease); }
.card:hover video { transform: scale(1.04); }
.card .tag { position: absolute; left: 0.8rem; bottom: 0.8rem; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.7rem; }

/* Browser mockup (featured web project) */
.card--browser { background: transparent; border: 0; overflow: visible; }
.browser { border: 1px solid var(--line); background: #141414; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 999px; background: #3a3a3a; flex: none; }
.browser-bar .url { margin-left: 12px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); background: var(--bg); border: 1px solid var(--line); padding: 4px 12px; }
.browser-bar .browser-tag { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-ink); background: var(--accent); padding: 3px 9px; }
.browser-shot { overflow: hidden; }
.card--browser .browser img, .card--browser .browser video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.card--browser:hover .browser img, .card--browser:hover .browser video { transform: scale(1.03); }
@media (max-width: 560px) { .browser-bar .url { font-size: 0.66rem; margin-left: 8px; } }

/* Video project grid */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.7rem, 1.4vw, 1.1rem); margin-top: clamp(0.7rem, 1.4vw, 1.1rem); }
.video-grid .card video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; display: block; transition: transform 0.7s var(--ease); }
.video-grid .card:hover video { transform: scale(1.04); }
@media (max-width: 960px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* Logo wall (on light section) */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(0,0,0,0.14); border: 1px solid rgba(0,0,0,0.14); }
.logo-grid .cell { background: #ffffff; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.4rem; transition: background 0.3s var(--ease); }
.logo-grid .cell:hover { background: color-mix(in srgb, var(--accent) 22%, #ffffff); }
.logo-grid img { max-height: 94px; max-width: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.35s var(--ease), opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.logo-grid .cell:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* Print masonry (equal column width, top line held, no vertical gaps) */
.print-grid { columns: 3; column-gap: clamp(0.7rem, 1.4vw, 1.1rem); }
.print-grid .card { width: 100%; margin: 0 0 clamp(0.7rem, 1.4vw, 1.1rem); break-inside: avoid; }
.print-grid .card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* ---------- Marquee ---------- */
.marquee { border-block: 2px solid var(--black); overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.marquee-track { display: inline-flex; gap: 2.5rem; white-space: nowrap; padding: 1rem 0; animation: scroll-x 30s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 2.4rem); letter-spacing: -0.01em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-track span::after { content: "✳"; color: var(--black); font-size: 0.7em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Statement / values ---------- */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.statement h2 { font-size: clamp(2.2rem, 6vw, 5rem); }
.statement p { color: var(--muted); max-width: 48ch; margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { display: grid; gap: 0.5rem; background: var(--bg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.value .vnum { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; color: color-mix(in srgb, var(--text) 60%, var(--accent)); }
.section--accent .value .vnum { color: var(--accent-ink); }
.value h3 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.value p { color: var(--muted); margin: 0; text-transform: none; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); }
.cta-band .wrap { padding-block: clamp(4rem, 9vw, 7rem); text-align: center; display: grid; gap: 1.5rem; justify-items: center; }
.cta-band h2 { font-size: clamp(2.4rem, 8vw, 6rem); color: var(--accent-ink); }
.cta-band p { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); max-width: 50ch; margin: 0; font-size: 1.1rem; text-transform: none; }
.cta-band .cta-contact { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 0.3rem; }
.cta-band a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- Reviews / testimonials ---------- */
.reviews-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.reviews-score { display: flex; align-items: center; gap: 1.1rem; }
.reviews-score .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.01em; }
.stars { color: var(--accent); letter-spacing: 2px; line-height: 1; }
.reviews-score .count { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 0.4rem; }
.reviews-marquee { overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.reviews-track { display: flex; width: max-content; animation: scroll-x 80s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
.review { width: clamp(290px, 32vw, 380px); flex: none; background: var(--bg); border: 1px solid var(--line); margin-right: -1px; padding: clamp(1.4rem, 3vw, 2.1rem); display: grid; gap: 1rem; align-content: start; }
.review .stars { font-size: 0.95rem; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--text); }
.review .who { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.review .who strong { color: var(--text); font-weight: 700; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step { border-top: 3px solid var(--accent); padding-top: 1.25rem; }
.step .n { font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.step h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0.5rem 0 0.6rem; }
.step p { color: var(--muted); margin: 0; text-transform: none; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split .portrait { position: relative; }
.split .portrait::before { content: ""; position: absolute; inset: 18px -16px 0 16px; background: var(--accent); z-index: 0; }
.split .portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5)); }
.prose p { max-width: 62ch; color: var(--muted); text-transform: none; }
.prose p + p { margin-top: 1.1rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-info .big-mail { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: -0.01em; text-transform: uppercase; display: inline-block; margin: 0.3rem 0 2rem; word-break: break-word; }
.contact-info .big-mail:hover { color: var(--accent); }
.contact-info .row { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-info .row .k { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); min-width: 90px; }
.form { display: grid; gap: 1.1rem; background: var(--panel); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.5rem); }
.field { display: grid; gap: 0.45rem; }
.field label { font-family: var(--font-mono); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.field input, .field textarea { font-family: var(--font-body); font-size: 1rem; color: var(--text); padding: 0.85rem 1rem; border: 1px solid var(--line); background: var(--bg); border-radius: 0; transition: border-color 0.25s var(--ease); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.form .note { font-size: 0.82rem; color: var(--muted); margin: 0; text-transform: none; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--black); padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 9vw, 7rem); }
.page-hero .lead { margin-top: 1.4rem; }

/* ---------- Legal ---------- */
.legal { max-width: 74ch; }
.legal .lead { margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); margin: 2.6rem 0 0.7rem; }
.legal h3 { font-size: 1.05rem; text-transform: uppercase; margin: 1.7rem 0 0.4rem; }
.legal p, .legal li { color: var(--muted); text-transform: none; }
.legal p { margin: 0 0 1rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.2rem; display: grid; gap: 0.35rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal .addr { font-style: normal; background: var(--panel); border: 1px solid var(--line); padding: 1.2rem 1.4rem; color: var(--text); display: inline-block; margin: 0.4rem 0 1.4rem; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--text); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; border-top: 1px solid var(--line); }
.footer-adr { font-style: normal; color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-top: 1.3rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
.footer-top h2 { font-size: clamp(2rem, 5vw, 3.4rem); color: var(--white); max-width: 16ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer-bottom a:hover, .cc-link:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 0.6rem; margin-top: 0.9rem; flex-wrap: wrap; }
.social { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.social svg { width: 18px; height: 18px; display: block; }
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

/* ---------- Vertical contact tab (injected) ---------- */
.contact-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; writing-mode: vertical-rl; padding: 1.1rem 0.55rem; border: 0; cursor: pointer; transition: filter 0.25s var(--ease); }
.contact-tab:hover { filter: brightness(1.08); }
@media (max-width: 640px) { .contact-tab { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(5px); transition: opacity 0.8s var(--ease-hero), transform 0.8s var(--ease-hero), filter 0.8s var(--ease-hero); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact, .hero-cols { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top h2 { grid-column: 1 / -1; }
  .print-grid { columns: 2; }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .statement { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .steps { grid-template-columns: 1fr; }
  .grid-web .card, .grid-web .card.wide { grid-column: span 12; }
  .print-grid { columns: 1; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: auto 1fr; }
  .service-row .go { display: none; }
  .hero-signet { display: none; }
}

/* Mobile menu */
.mobile-menu { display: none; border-bottom: 1px solid var(--line); background: var(--black); }
.site-header[data-open="true"] .mobile-menu { display: block; }
.site-header[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open="true"] .nav-toggle span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu ul { list-style: none; margin: 0; padding: 1rem var(--pad) 1.5rem; display: grid; gap: 0.3rem; }
.mobile-menu a { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; padding: 0.5rem 0; color: var(--white); }
.mobile-menu .btn { margin-top: 0.8rem; }
.mobile-menu a.btn--accent { color: var(--accent-ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee-track, .reviews-track, .hero-signet, .hero-spark, .hero-spark svg, .eyebrow-pill .ping::after { animation: none; }
  .reviews-marquee { overflow-x: auto; }
  .hero h1 .line-i { transform: none; animation: none; }
  .accent-underline path { stroke-dashoffset: 0; animation: none; }
  .card img, .btn, .btn .arrow, .service-row, .service-row .go, .logo-grid img { transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Cookie consent (dark) ---------- */
.cc-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-hero); }
.cc-overlay.open { opacity: 1; pointer-events: auto; }
.cc-banner { position: fixed; z-index: 210; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); width: min(440px, calc(100vw - 2rem)); background: #141414; color: var(--white); border: 1px solid var(--accent); padding: clamp(1.4rem, 3vw, 1.9rem); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform 0.5s var(--ease-hero), opacity 0.5s var(--ease-hero); }
.cc-banner.open { transform: none; opacity: 1; pointer-events: auto; }
.cc-banner.as-modal { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, calc(-50% + 24px)); max-height: 86vh; overflow-y: auto; width: min(560px, calc(100vw - 2rem)); }
.cc-banner.as-modal.open { transform: translate(-50%, -50%); }
.cc-banner .cc-spark { width: 32px; height: 32px; color: var(--accent); margin-bottom: 0.8rem; }
.cc-banner h3 { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; margin: 0 0 0.5rem; }
.cc-banner p { font-size: 0.92rem; color: #b4b4ae; margin: 0 0 1.1rem; line-height: 1.55; }
.cc-banner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cc-actions .btn { padding: 0.7rem 1.05rem; font-size: 0.75rem; }
.cc-actions .btn--text { background: none; border-color: transparent; color: #b4b4ae; padding-inline: 0.4rem; }
.cc-actions .btn--text:hover { color: var(--white); transform: none; }
.cc-cats { display: grid; gap: 0.7rem; margin: 0.3rem 0 1.2rem; }
.cc-cat { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; align-items: start; border: 1px solid var(--line); padding: 0.9rem 1rem; }
.cc-cat h4 { margin: 0; font-size: 0.95rem; font-weight: 700; text-transform: uppercase; font-family: var(--font-mono); letter-spacing: 0.06em; }
.cc-cat p { margin: 0.15rem 0 0; font-size: 0.84rem; grid-column: 1 / -1; color: #b4b4ae; }
.cc-switch { position: relative; width: 46px; height: 26px; flex: none; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-track { position: absolute; inset: 0; background: #3a3a3a; transition: background 0.3s var(--ease-hero); }
.cc-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; transition: transform 0.3s var(--ease-hero); }
.cc-switch input:checked + .cc-track { background: var(--accent); }
.cc-switch input:checked + .cc-track::after { transform: translateX(20px); background: #0a0a0a; }
.cc-switch input:disabled + .cc-track { background: var(--accent); opacity: 0.5; }
.cc-switch input:focus-visible + .cc-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-settings { display: none; }
.cc-settings.show { display: block; }
.cc-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: uppercase; }
@media (max-width: 520px) { .cc-banner { left: 0; right: 0; bottom: 0; width: 100%; } .cc-actions .btn { flex: 1 1 auto; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .cc-banner, .cc-overlay { transition: none; } .cc-banner.open { transform: none; } .cc-banner.as-modal.open { transform: translate(-50%, -50%); } }
