:root {
  --bg: #FBF8F6;
  --surface: #FFFFFF;
  --ink: #16141A;
  --ink-2: #4B4752;
  --ink-3: #6C6772;
  --line: rgba(22, 20, 26, 0.09);
  --line-2: rgba(22, 20, 26, 0.16);
  --coral: #FF6361;
  --coral-ink: #C2302C;
  --coral-soft: #FFE9E6;
  --dark: #141216;
  --dark-line: rgba(255, 255, 255, 0.12);
  --dark-text-2: rgba(255, 255, 255, 0.68);
  --dark-text-3: rgba(255, 255, 255, 0.45);
  --error: #D93A36;
  --error-dark: #FF9A93;
  --ok: #1F8A5B;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI",
          Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI",
             Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 22px;
  --radius-lg: 32px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 246, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 26px; height: 30px; color: var(--coral); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 12px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav a:not(.btn):hover { color: var(--ink); background: rgba(22, 20, 26, 0.05); }
.nav .btn { margin-left: 8px; }

@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2730; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.875rem; }
.btn-lg { padding: 15px 24px; font-size: 1rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral-ink);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

h1, h2, h3 { font-family: var(--display); color: var(--ink); }
h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(1.125rem, 1.9vw, 1.3125rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

.section { padding-block: clamp(72px, 11vw, 136px); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 13vw, 168px) clamp(64px, 10vw, 120px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 99, 97, 0.16), rgba(255, 99, 97, 0) 70%);
  pointer-events: none;
}
.hero-mark {
  position: absolute; right: max(-60px, calc((100vw - var(--max)) / 2 - 60px)); top: 50%;
  width: min(44vw, 540px); height: auto; aspect-ratio: 384 / 448; transform: translateY(-48%);
  color: #FFE1DD; pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(3.25rem, 10vw, 7.5rem);
  font-weight: 750; letter-spacing: -0.05em; line-height: 0.94;
}
.hero h1 .accent { color: var(--coral); }
.hero .lead { margin-top: 28px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; padding: 0; list-style: none; }
.checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.checks svg { width: 18px; height: 18px; color: var(--coral); flex: none; }

@media (max-width: 760px) {
  .hero-mark, .hero::before { display: none; }
}

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; list-style: none; }
.value {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.value .num { font-size: 0.875rem; font-weight: 650; letter-spacing: 0.04em; color: var(--coral-ink); font-variant-numeric: tabular-nums; }
.value h3 { margin-top: 18px; }
.value p { color: var(--ink-2); font-size: 1rem; }
.value strong { color: var(--ink); font-weight: 600; }

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

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.solution {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.solution .icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; background: var(--coral-soft); color: var(--coral-ink);
}
.solution .icon svg { width: 26px; height: 26px; }
.solution h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.03em; }
.solution p { color: var(--ink-2); max-width: 44ch; }
.solution .btn { align-self: flex-start; margin-top: 14px; }

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

/* ---------- Portfolio ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 32px); }
.work { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.work-shot {
  overflow: hidden; border-radius: var(--radius); background: #EEE9E6;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22, 20, 26, 0.04), 0 12px 32px -12px rgba(22, 20, 26, 0.18);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.work-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease); }
.work:hover .work-shot { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(22, 20, 26, 0.05), 0 24px 48px -16px rgba(22, 20, 26, 0.28); }
.work:hover .work-shot img { transform: scale(1.02); }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.work-meta h3 { font-size: 1.25rem; }
.work-meta p { color: var(--ink-3); font-size: 0.9375rem; }
.work-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.work-link svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.work:hover .work-link { color: var(--ink); }
.work:hover .work-link svg { transform: translate(2px, -2px); }

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

/* ---------- Review ---------- */
.review { max-width: 880px; margin-inline: auto; text-align: center; }
.review .quote-mark { width: 44px; height: 44px; margin: 0 auto 28px; color: var(--coral); }
.review blockquote p {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.7vw, 2rem); font-weight: 500; line-height: 1.38; letter-spacing: -0.018em;
  color: var(--ink); text-wrap: pretty;
}
.review blockquote p + p { margin-top: 0.8em; }
.review figcaption { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; text-align: left; }
.review figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.review figcaption strong { display: block; font-weight: 650; }
.review figcaption span { color: var(--ink-3); font-size: 0.9375rem; }

/* ---------- Contact (dark panel) ---------- */
.contact { padding-bottom: clamp(48px, 7vw, 88px); }
.contact-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(32px, 6.5vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--dark); color: #fff;
}
.contact-panel::before {
  content: ""; position: absolute; width: 620px; height: 620px; left: -180px; bottom: -340px;
  background: radial-gradient(closest-side, rgba(255, 99, 97, 0.35), rgba(255, 99, 97, 0) 70%);
  pointer-events: none;
}
.contact-panel > * { position: relative; }
.contact-panel .eyebrow { color: var(--coral); }
.contact-panel h2 { color: #fff; margin-top: 18px; font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.045em; }
.contact-panel .lead { color: var(--dark-text-2); margin-top: 20px; max-width: 30ch; }

.card-dark {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.card-dark label, .card-dark .label { display: block; margin-bottom: 14px; font-size: 1rem; font-weight: 500; color: #fff; }

.field {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 18px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--dark-line);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field:focus-within { border-color: rgba(255, 255, 255, 0.34); box-shadow: 0 0 0 4px rgba(255, 99, 97, 0.18); }
.field input {
  flex: 1; min-width: 0; padding: 10px 0;
  font: inherit; font-size: 1rem; color: #fff; background: transparent; border: 0; outline: none;
}
.field input::placeholder { color: var(--dark-text-3); }
.field input:focus-visible { outline: none; }
.field .send {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 650; color: var(--ink); background: var(--coral);
  transition: transform 0.25s var(--ease), background 0.25s, opacity 0.25s;
}
.field .send:hover { background: #FF7B78; }
.field .send:active { transform: scale(0.96); }
.field .send[disabled] { opacity: 0.6; cursor: progress; }
.field .round {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 999px; cursor: pointer; background: #fff; color: var(--ink);
  transition: transform 0.25s var(--ease);
}
.field .round:hover { transform: scale(1.06); }
.field .round:active { transform: scale(0.94); }
.field .round svg { width: 16px; height: 16px; }

.field.shake { animation: shake 0.4s var(--ease); border-color: var(--error-dark); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.msg { min-height: 1.4em; margin-top: 12px; font-size: 0.875rem; color: var(--dark-text-3); }
.msg.error { color: var(--error-dark); }

.success { display: flex; gap: 14px; align-items: flex-start; }
.success svg { flex: none; width: 28px; height: 28px; color: var(--coral); margin-top: 2px; }
.success strong { display: block; font-size: 1.125rem; font-weight: 650; color: #fff; }
.success p { color: var(--dark-text-2); font-size: 0.9375rem; margin-top: 2px; }

.divider { height: 1px; margin: 28px 0 24px; background: var(--dark-line); }

.reveal-out a {
  display: inline-block; font-family: var(--display);
  font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 650; letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFC2BF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.reveal-out a:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }
.reveal-out p { margin-top: 4px; font-size: 0.875rem; color: var(--dark-text-3); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) { .contact-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .contact-panel { padding: 32px 20px 24px; border-radius: 26px; }
  .card-dark { padding: 20px; border-radius: 20px; }
  .field { padding-left: 14px; }
  .field .send { padding: 0 16px; }
}

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px 56px; color: var(--ink-3); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 40px; border-top: 1px solid var(--line); }
.site-footer .brand { margin-bottom: 8px; }
.site-footer address { font-style: normal; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--ink); }
.site-footer .k { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); opacity: 0.8; margin-bottom: 6px; }
.site-footer .v { color: var(--ink-2); }

@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Legal page ---------- */
.legal-hero { padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px); }
.legal-hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 750; letter-spacing: -0.045em; line-height: 0.98; }
.legal-hero .updated { margin-top: 22px; color: var(--ink-3); font-size: 0.9375rem; }
.legal-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal-hero .btn svg { transform: rotate(90deg); }
.legal-hero .btn:hover svg { transform: rotate(90deg) translateX(2px); }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-bottom: clamp(72px, 10vw, 120px); }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.toc p { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; font-size: 0.9rem; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: rgba(22, 20, 26, 0.05); color: var(--ink); }

.toc-mobile { display: none; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.toc-mobile summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.toc-mobile ol { padding: 0 18px 16px 38px; display: grid; gap: 6px; }
.toc-mobile a { color: var(--ink-2); text-decoration: none; }

.legal { max-width: 70ch; }
.legal section + section { margin-top: 48px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -0.025em; margin-bottom: 14px; }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 0.9em; }
.legal ul { margin: 14px 0 0; padding-left: 1.25em; display: grid; gap: 8px; }
.legal ul li::marker { color: var(--coral); }
.legal .intro { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.legal .intro ul { margin: 0; }

.reveal-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; vertical-align: middle; }
.reveal-inline form { display: inline-flex; align-items: center; gap: 6px; }
.reveal-inline input {
  width: 150px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg);
  font: inherit; font-size: 0.9375rem; color: var(--ink);
}
.reveal-inline button {
  padding: 6px 12px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 0.875rem; font-weight: 600; background: var(--ink); color: #fff;
}
.reveal-inline input.shake { animation: shake 0.4s var(--ease); border-color: var(--error); }
.reveal-inline .msg { margin: 0; min-height: 0; color: var(--error); }
.reveal-inline .reveal-out a { font-size: inherit; font-weight: 600; background: none; -webkit-text-fill-color: currentColor; color: var(--coral-ink); }
.reveal-inline .reveal-out p { display: none; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}

/* ---------- Simple pages (404 / bedankt) ---------- */
.simple { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.simple h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 750; letter-spacing: -0.045em; line-height: 1; }
.simple p { margin: 18px auto 32px; max-width: 40ch; color: var(--ink-2); }

/* ---------- Motion ---------- */
.rise { animation: rise 0.9s var(--ease) both; }
.rise.d1 { animation-delay: 0.06s; }
.rise.d2 { animation-delay: 0.12s; }
.rise.d3 { animation-delay: 0.18s; }
.rise.d4 { animation-delay: 0.24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.section.flush-top { padding-top: 0; }
.review-title { font-family: var(--font); font-size: 0.8125rem; line-height: 1.6; letter-spacing: 0.08em; margin-bottom: 28px; }
