/* ============================================================
   VINSCH · design system
   Warm paper, ink, burnt amber. Clash Display + Satoshi.
   ============================================================ */

/* Self-hosted fonts (woff2) for GDPR safety and speed. No third-party CDN. */
/* Latin-only unicode-range so the browser skips loading Clash / Satoshi for Hangul glyphs and falls through to --font-ko cleanly */
@font-face {
  font-family: "Clash Display"; font-style: normal; font-weight: 500;
  src: url("assets/fonts/clash-500.woff2?v=2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Clash Display"; font-style: normal; font-weight: 600;
  src: url("assets/fonts/clash-600.woff2?v=2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Clash Display"; font-style: normal; font-weight: 700;
  src: url("assets/fonts/clash-700.woff2?v=2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Satoshi"; font-style: normal; font-weight: 400;
  src: url("assets/fonts/satoshi-400.woff2?v=2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Satoshi"; font-style: normal; font-weight: 500;
  src: url("assets/fonts/satoshi-500.woff2?v=2") format("woff2"); font-display: swap;
}
@font-face {
  font-family: "Satoshi"; font-style: normal; font-weight: 700;
  src: url("assets/fonts/satoshi-700.woff2?v=2") format("woff2"); font-display: swap;
}

:root {
  /* color: light */
  --bg: #F4F1EA;
  --bg-raise: #FBF9F3;
  --bg-dim: #ECE7DC;
  --ink: #1B1916;
  --ink-soft: #5E574B;
  --line: rgba(27, 25, 22, 0.14);
  --line-soft: rgba(27, 25, 22, 0.08);
  --accent: #B4551D;
  --accent-deep: #8F3F11;
  --accent-ink: #FFF6EC;
  --accent-text: #A54C15;      /* WCAG AA for small text on all light surfaces */
  --accent-text-inverse: #DD8B4B; /* WCAG AA for small text on dark panels */
  --inverse-bg: #211A12;
  --inverse-bg-2: #2B2218;
  --inverse-ink: #F2EDE2;
  --inverse-soft: #BDB2A0;
  --shadow-md: 0 10px 30px rgba(27, 25, 22, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 25, 22, 0.16);

  /* type */
  --font-display: "Clash Display", "Satoshi", sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem);
  --text-hero: clamp(2.9rem, 1.4rem + 7vw, 7rem);

  /* space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem;
  --s-24: 6rem; --s-32: 8rem;
  --section: clamp(5rem, 4rem + 6vw, 10rem);

  --radius: 14px;
  --radius-lg: 22px;
  --container: 76rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 180ms var(--ease-out);
}

[data-theme="dark"] {
  --bg: #171411;
  --bg-raise: #201C17;
  --bg-dim: #110F0C;
  --ink: #EDE6D9;
  --ink-soft: #A99F8E;
  --line: rgba(237, 230, 217, 0.16);
  --line-soft: rgba(237, 230, 217, 0.08);
  --accent: #DD8B4B;
  --accent-deep: #C26F2D;
  --accent-ink: #23150A;
  --accent-text: #DD8B4B;
  --accent-text-inverse: #DD8B4B;
  --inverse-bg: #100D0A;
  --inverse-bg-2: #1A1510;
  --inverse-ink: #F2EDE2;
  --inverse-soft: #B0A593;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Finnish headlines run long (compound words). Slightly smaller hero and tighter wrap keep lines whole. */
html[lang="fi"] .hero__title { font-size: clamp(1.9rem, 4.9vw, 4rem); }

html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-snap-type: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  transition: background 400ms var(--ease-in-out), color 400ms var(--ease-in-out);
}

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

a { text-decoration: none; color: inherit; }
p a, .qa__inner a { text-decoration: underline; text-underline-offset: 3px; }

.container { width: min(100% - 3rem, var(--container)); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 2.5rem); } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
p { text-wrap: pretty; }

.kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--s-4);
}
.kicker::before { content: ""; width: 2rem; height: 2px; background: var(--accent); border-radius: 2px; }
.kicker--inverse { color: var(--accent-text-inverse); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: 8px;
  transition: top var(--t-fast);
}
.skip-link:focus-visible { top: 1rem; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  padding: 0.8rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap; will-change: transform;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--accent-deep); box-shadow: var(--shadow-md); }
.btn--solid:active { transform: scale(0.97); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.btn--ghost:active { transform: scale(0.97); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--text-base); }

/* ============================================================
   CURSOR (desktop, fine pointers only)
   ============================================================ */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js .cursor { display: block; position: fixed; inset: 0; z-index: 250; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; }
  .cursor__dot { width: 7px; height: 7px; background: var(--accent); }
  .cursor__ring {
    width: 34px; height: 34px; border: 1.5px solid var(--accent);
    opacity: 0.55;
    transition: width 250ms var(--ease-out), height 250ms var(--ease-out), opacity 250ms var(--ease-out);
  }
  .cursor.is-active .cursor__ring { width: 56px; height: 56px; opacity: 0.9; }
  .cursor.is-hidden { opacity: 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  transition: background 300ms var(--ease-in-out), box-shadow 300ms var(--ease-in-out);
}
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 97%, transparent); box-shadow: 0 1px 0 var(--line-soft), var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; }

.nav__list { display: flex; gap: var(--s-2); list-style: none; }
.nav__link {
  position: relative; display: inline-block; padding: 0.5rem 0.85rem;
  font-weight: 500; font-size: var(--text-sm); color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.25rem;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__foot { display: none; }

.header__actions { display: flex; align-items: center; gap: var(--s-3); }
.theme-toggle {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 1.15rem; height: 1.15rem; grid-area: 1 / 1; transition: opacity 250ms var(--ease-out), rotate 400ms var(--ease-out); }
[data-theme="light"] .theme-toggle__sun { opacity: 0; rotate: 90deg; }
[data-theme="dark"] .theme-toggle__moon { opacity: 0; rotate: -90deg; }

.burger { display: none; }

/* mobile nav */
@media (max-width: 880px) {
  .header__cta { padding: 0.55em 1em; font-size: 0.8rem; }
  .burger {
    display: grid; place-items: center; gap: 5px;
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  }
  .burger span { display: block; width: 1.05rem; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 300ms var(--ease-out); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 4.5rem 0 0 0; z-index: 99;
    background: var(--bg);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: var(--s-8) var(--s-6) var(--s-12);
    opacity: 0; visibility: hidden; translate: 0 -0.75rem;
    transition: opacity 300ms var(--ease-out), translate 300ms var(--ease-out), visibility 0s 300ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 350ms var(--ease-out), translate 350ms var(--ease-out); }
  body:has(.nav.is-open) .header { background: var(--bg); box-shadow: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-soft); }
  .nav__link { display: block; padding: 1.1rem 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; color: var(--ink); }
  .nav__link::after { display: none; }
  .nav__foot { display: grid; gap: var(--s-4); }
  .nav__foot .btn { width: 100%; }
  .nav__meta { font-size: var(--text-sm); color: var(--ink-soft); text-align: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 7.5rem 0 4rem; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s-6); }
.hero__title { font-size: var(--text-hero); font-weight: 600; line-height: 0.98; letter-spacing: -0.025em; margin-bottom: var(--s-6); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; }
html.js .hero__line > span { translate: 0 110%; animation: intro-rise 1100ms var(--ease-out) forwards; }
html.js .hero__line:nth-child(2) > span { animation-delay: 90ms; }
html.js .hero__line:nth-child(3) > span { animation-delay: 180ms; }
@keyframes intro-rise { to { translate: 0 0; } }
.hero__lede { max-width: 34rem; font-size: var(--text-lg); line-height: 1.5; color: var(--ink-soft); margin-bottom: var(--s-8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-8); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); list-style: none; font-size: var(--text-sm); font-weight: 500; color: var(--ink-soft); }
.hero__trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero__trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

html.js .intro-fade { opacity: 0; animation: intro-fade 900ms var(--ease-out) forwards; }
html.js .hero__kicker.intro-fade { animation-delay: 100ms; }
html.js .hero__lede.intro-fade { animation-delay: 250ms; }
html.js .hero__cta.intro-fade { animation-delay: 400ms; }
html.js .hero__trust.intro-fade { animation-delay: 550ms; }
html.js .hero__media.intro-fade { animation-delay: 250ms; }
@keyframes intro-fade { to { opacity: 1; } }

.hero__media { position: relative; }
.hero__frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__frame img { width: 100%; height: auto; display: block; scale: 1.12; }
.hero__card {
  position: absolute; left: -1.5rem; bottom: 2rem; max-width: 17rem;
  background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--s-4) var(--s-4);
  box-shadow: var(--shadow-md);
  display: grid; gap: 0.25rem; font-size: var(--text-sm);
}
.hero__card strong { font-weight: 700; }
.hero__card span { color: var(--ink-soft); line-height: 1.45; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__scroll-line { width: 1.5px; height: 2.5rem; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scrollHint 1.8s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes scrollHint { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 880px) {
  .hero { padding-top: 6.5rem; min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 26rem; }
  .hero__card { left: 1rem; bottom: 1rem; }
  .hero__scroll { display: none; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { border-block: 1px solid var(--line-soft); padding: 1.1rem 0; overflow: hidden; background: var(--bg-raise); }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); white-space: nowrap; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: var(--text-lg); }
@keyframes marquee { to { translate: -50% 0; } }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: var(--section) 0; }
.stats__grid { display: grid; gap: var(--s-12); }
.stats__head { max-width: 42rem; }
.stats__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); }
.stat { border-top: 2px solid var(--ink); padding-top: var(--s-4); display: grid; align-content: start; gap: var(--s-2); }
.stat dt { font-size: var(--text-sm); color: var(--ink-soft); font-weight: 500; max-width: 16rem; }
.stat dd { font-family: var(--font-display); font-weight: 600; font-size: clamp(3.4rem, 2.4rem + 4vw, 6rem); line-height: 1; letter-spacing: -0.02em; }
.stat__unit { color: var(--accent); }
.stat__num { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stats__row { grid-template-columns: 1fr; } }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head__lede { color: var(--ink-soft); font-size: var(--text-lg); line-height: 1.5; }
.section-head__lede a { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-fast); }
.section-head__lede a:hover { text-decoration-color: var(--accent); }
.section-head__lede--note { font-size: var(--text-sm); border-left: 3px solid var(--accent); padding-left: var(--s-4); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: var(--section) 0; position: relative; }
.svc { list-style: none; border-top: 1px solid var(--line); }
.svc__row { border-bottom: 1px solid var(--line); }
.svc__hit {
  display: grid; grid-template-columns: 4.5rem 1fr 3rem; gap: var(--s-6); align-items: start;
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 3rem) var(--s-2);
  color: inherit; border-radius: var(--radius);
  transition: background var(--t-fast);
}
.svc__hit:hover { background: var(--bg-raise); }
.svc__no { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--accent); padding-top: 0.4rem; }
.svc__title { font-size: var(--text-xl); margin-bottom: var(--s-3); transition: color var(--t-fast); }
.svc__hit:hover .svc__title { color: var(--accent); }
.svc__desc { color: var(--ink-soft); max-width: 38rem; margin-bottom: var(--s-4); }
.svc__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.svc__tags li {
  font-size: var(--text-xs); font-weight: 700; padding: 0.35rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}
.svc__tags li.svc__flag {
  border-color: var(--accent); color: var(--accent);
}
.svc__arrow {
  font-size: var(--text-xl); color: var(--ink-soft); padding-top: 0.3rem;
  translate: 0 0; rotate: 0deg;
  transition: translate 250ms var(--ease-out), color var(--t-fast), rotate 250ms var(--ease-out);
}
.svc__hit:hover .svc__arrow { translate: 0.5rem 0; color: var(--accent); rotate: -45deg; }
.svc__inline { display: none; }

/* floating image preview, desktop */
.svc__peek {
  display: none; position: fixed; z-index: 90; top: 0; left: 0;
  width: 240px; height: 320px; border-radius: var(--radius-lg);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg); pointer-events: none;
  opacity: 0; scale: 0.85; rotate: -4deg;
  transition: opacity 300ms var(--ease-out), scale 300ms var(--ease-out), rotate 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { html.js .svc__peek { display: block; } }
.svc__peek.is-on { opacity: 1; scale: 1; rotate: 0deg; }

@media (max-width: 880px) {
  .svc__hit { grid-template-columns: 3rem 1fr; }
  .svc__arrow { display: none; }
  .svc__inline { display: block; margin: 0 var(--s-2) var(--s-8); }
  .svc__inline img { width: 100%; max-width: 22rem; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 38%; border-radius: var(--radius-lg); }
}

/* ============================================================
   BANDS (full-bleed image strips)
   ============================================================ */
.band { position: relative; overflow: hidden; }
.band__img { width: 100%; height: clamp(16rem, 45vw, 30rem); object-fit: cover; display: block; scale: 1.15; }
.band--flow { border-block: 1px solid var(--line-soft); }
.band__draw { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--bg); opacity: 0.9; mix-blend-mode: soft-light; }
.band--studio .band__img { height: clamp(22rem, 60vw, 38rem); }
.band__quote {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--s-6);
  background: radial-gradient(ellipse 62% 78% at 50% 44%, rgba(24, 14, 5, 0.52), rgba(24, 14, 5, 0.18) 62%, rgba(24, 14, 5, 0) 100%);
}
.band__quote p {
  max-width: 38rem; text-align: center;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.25;
  color: #FFF8EE; text-shadow: 0 2px 24px rgba(20, 12, 4, 0.55), 0 1px 4px rgba(20, 12, 4, 0.4);
  margin-bottom: var(--s-4);
}
.band__quote cite { display: block; text-align: center; font-style: normal; font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #F4D9BC; text-shadow: 0 1px 12px rgba(20, 12, 4, 0.6); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: var(--section) 0; background: var(--bg-dim); }
[data-theme="dark"] .process { background: var(--bg-dim); }
.process__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.process__sticky { position: sticky; top: 7rem; }
.process__lede { color: var(--ink-soft); margin-top: var(--s-4); max-width: 26rem; }
.process__progress { width: 2px; height: 9rem; background: var(--line); margin: var(--s-8) 0 var(--s-4); border-radius: 2px; overflow: hidden; }
.process__progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.process__counter { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.process__counter span { color: var(--accent); }

.process__steps { list-style: none; display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.step {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--bg); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  transition: border-color 400ms var(--ease-in-out), box-shadow 400ms var(--ease-in-out);
}
.step.is-active { border-color: var(--accent); box-shadow: var(--shadow-md); }
.step h3 { display: flex; align-items: baseline; gap: var(--s-3); font-size: var(--text-xl); margin-bottom: var(--s-3); }
.step__no { font-size: var(--text-sm); font-weight: 600; color: var(--accent-text); font-family: var(--font-display); }
.step p { color: var(--ink-soft); max-width: 34rem; }
@media (max-width: 880px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__sticky { position: static; }
  .process__progress, .process__counter { display: none; }
}

/* ============================================================
   CASE
   ============================================================ */
.case { padding: var(--section) 0; background: var(--bg-raise); border-block: 1px solid var(--line-soft); }
.case__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.case__head { display: grid; gap: var(--s-6); justify-items: start; position: sticky; top: 7rem; }
.case__head h2 { max-width: 22ch; }
.case__main { display: grid; gap: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.case__body { font-size: var(--text-lg); line-height: 1.55; max-width: 44rem; }
.case__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.case__stat { border-top: 1px solid var(--line); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.case__num {
  font-family: var(--font-display); font-weight: 600; line-height: 0.95;
  font-size: clamp(3.25rem, 2.4rem + 4vw, 5.5rem); color: var(--accent-text); letter-spacing: -0.02em;
}
.case__label { color: var(--ink-soft); font-size: var(--text-sm); max-width: 18rem; }
.case__note { color: var(--ink-soft); font-size: var(--text-sm); max-width: 44rem; border-left: 3px solid var(--line); padding-left: var(--s-4); }
@media (max-width: 880px) {
  .case__grid { grid-template-columns: minmax(0, 1fr); }
  .case__head { position: static; }
}
@media (max-width: 640px) {
  .case__stats { grid-template-columns: 1fr; }
}

/* ============================================================
   WHY
   ============================================================ */
.why { padding: var(--section) 0; }
.why__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.why__sticky { position: sticky; top: 7rem; display: grid; gap: var(--s-6); justify-items: start; }
.why__list { list-style: none; }
.why__item { border-top: 1px solid var(--line); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) 0; }
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__item h3 { font-size: var(--text-xl); margin-bottom: var(--s-3); }
.why__item p { color: var(--ink-soft); max-width: 36rem; }
@media (max-width: 880px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__sticky { position: static; }
}

/* ============================================================
   VOICES
   ============================================================ */
.voices { padding: var(--section) 0; background: var(--bg-raise); border-block: 1px solid var(--line-soft); }
.voices__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.voice {
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6); display: grid; gap: var(--s-6); align-content: space-between;
}
.voice blockquote { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.35; }
.voice figcaption { display: grid; gap: 0.15rem; font-size: var(--text-sm); border-top: 1px solid var(--line-soft); padding-top: var(--s-4); }
.voice figcaption strong { font-weight: 700; }
.voice figcaption span { color: var(--ink-soft); }
@media (max-width: 880px) { .voices__row { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.faq__head { position: sticky; top: 7rem; }
.faq__list { display: grid; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  padding: 1.4rem 0.25rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); text-align: left; color: var(--ink);
  transition: color var(--t-fast);
}
.qa__q:hover { color: var(--accent); }
.qa__icon { position: relative; flex: 0 0 auto; width: 1.1rem; height: 1.1rem; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent); border-radius: 2px;
  transition: rotate 300ms var(--ease-out);
}
.qa__icon::before { width: 100%; height: 2px; }
.qa__icon::after { width: 2px; height: 100%; }
.qa__q[aria-expanded="true"] .qa__icon::after { rotate: 90deg; }
.qa__q[aria-expanded="true"] .qa__icon::before { rotate: 180deg; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease-in-out); }
.qa__a > .qa__inner { overflow: hidden; }
.qa__inner p { color: var(--ink-soft); max-width: 38rem; padding: 0 0.25rem 1.5rem; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
@media (max-width: 880px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: var(--section) 0; text-align: left; }
.cta__title {
  font-size: clamp(2.4rem, 1.5rem + 4.5vw, 5rem); letter-spacing: -0.02em; line-height: 1.02;
  max-width: 56rem; margin-bottom: var(--s-8);
}
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6); }
.cta__row p { color: var(--ink-soft); font-size: var(--text-sm); max-width: 18rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--inverse-bg); color: var(--inverse-ink); padding: var(--section) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.contact h2 { color: var(--inverse-ink); margin-bottom: var(--s-4); }
.contact__lede { color: var(--inverse-soft); max-width: 28rem; margin-bottom: var(--s-8); font-size: var(--text-lg); line-height: 1.5; }
.contact__channels { list-style: none; display: grid; gap: var(--s-4); margin-bottom: var(--s-8); }
.contact__channels li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; border-bottom: 1px solid rgba(242, 237, 226, 0.14); padding-bottom: var(--s-4); }
.contact__channels li > span:first-child { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--inverse-soft); }
.contact__channels a { color: var(--inverse-ink); font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); text-decoration: none; transition: color var(--t-fast); overflow-wrap: anywhere; }
.contact__channels a:hover { color: var(--accent); }
.contact__addr { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.contact__note { color: var(--inverse-soft); font-size: var(--text-sm); }

.form {
  background: var(--inverse-bg-2); border: 1px solid rgba(242, 237, 226, 0.1);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  display: grid; gap: var(--s-4); position: relative;
}
.form__title { font-size: var(--text-xl); margin-bottom: var(--s-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form__field { position: relative; display: grid; gap: 0.3rem; }
.form__field input, .form__field textarea, .form__field select {
  width: 100%; background: rgba(242, 237, 226, 0.04);
  border: 1.5px solid rgba(242, 237, 226, 0.18); border-radius: 10px;
  color: var(--inverse-ink); font-family: var(--font-body); font-size: var(--text-base);
  padding: 1.35rem 1rem 0.55rem;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.form__field textarea { resize: vertical; min-height: 7rem; }
.form__field select option { background-color: var(--bg-raise); color: var(--ink); }
.form__field select option[disabled] { color: var(--ink-soft); }
.form__field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' stroke='%23BDB2A0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form__field label {
  position: absolute; left: 1rem; top: 0.95rem;
  font-size: var(--text-base); color: var(--inverse-soft); pointer-events: none;
  transition: translate 200ms var(--ease-out), font-size 200ms var(--ease-out), color 200ms var(--ease-out);
}
.form__field input:focus, .form__field textarea:focus, .form__field select:focus { border-color: var(--accent); outline: none; background: rgba(242, 237, 226, 0.07); }
.form__field input:focus ~ label, .form__field input:not(:placeholder-shown) ~ label,
.form__field textarea:focus ~ label, .form__field textarea:not(:placeholder-shown) ~ label,
.form__field select:focus ~ label, .form__field select:valid ~ label {
  translate: 0 -0.62rem; font-size: 0.72rem; color: var(--accent); font-weight: 700; letter-spacing: 0.04em;
}
.form__err { font-size: var(--text-xs); color: #F0A878; min-height: 0; font-weight: 500; }
.form__field.has-error input, .form__field.has-error textarea, .form__field.has-error select { border-color: #E08653; }
.form__submit { width: 100%; margin-top: var(--s-2); }
.form__small { font-size: var(--text-xs); color: var(--inverse-soft); text-align: center; }
.form__success[hidden] { display: none; }
.form__success {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: var(--inverse-bg-2); display: grid; place-content: center; gap: var(--s-3);
  padding: var(--s-8); text-align: center;
}
.form__success h4 { font-size: var(--text-xl); color: var(--accent); }
.form__success p { color: var(--inverse-soft); max-width: 24rem; }
.form__success a { color: var(--inverse-ink); font-weight: 700; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  height: 2.5rem; padding: 0 0.75rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: 0.04em; color: var(--ink-soft);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle__opt {
  background: none; border: 0; padding: 0.25rem 0.15rem; margin: 0;
  font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer;
  transition: color var(--t-fast);
}
.lang-toggle__opt:hover { color: var(--ink); }
.lang-toggle__opt.is-active { color: var(--accent); }
.lang-toggle__sep { color: var(--line); }
@media (max-width: 420px) { .lang-toggle { padding: 0 0.6rem; gap: 0.25rem; } }

/* ============================================================
   GUARANTEE / PROMISE
   ============================================================ */
.promise { background: var(--bg-dim); padding: var(--section) 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; max-width: 40rem; }
.section-head--center .kicker { justify-content: center; }
.promise__grid {
  list-style: none; display: grid; gap: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  grid-template-columns: repeat(4, 1fr);
}
.promise__item {
  background: var(--bg-raise); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  display: grid; gap: var(--s-3); align-content: start;
}
.promise__icon {
  width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.promise__item h3 { font-size: var(--text-lg); line-height: 1.2; }
.promise__item p { color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.5; }
@media (max-width: 980px) { .promise__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .promise__grid { grid-template-columns: 1fr; } }

/* honeypot: kept in the layout for bots, hidden from people and AT */
.form__hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.form__success-icon { width: 2.75rem; height: 2.75rem; color: var(--accent); justify-self: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--inverse-bg); color: var(--inverse-soft); border-top: 1px solid rgba(242, 237, 226, 0.1); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-12) 0 var(--s-8); }
.brand--footer { color: var(--inverse-ink); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.footer__nav a { color: var(--inverse-soft); font-size: var(--text-sm); font-weight: 500; transition: color var(--t-fast); }
.footer__nav a:hover { color: var(--inverse-ink); }
.footer__word {
  font-family: var(--font-display); font-weight: 600; text-align: center;
  font-size: clamp(6rem, 22vw, 22rem); line-height: 0.8; letter-spacing: -0.03em;
  color: rgba(242, 237, 226, 0.06); user-select: none; margin-bottom: -0.12em;
}
/* Watermark text lives in CSS so it never enters the accessibility tree or contrast checks */
.footer__word::after { content: "Vinsch"; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4);
  border-top: 1px solid rgba(242, 237, 226, 0.1); padding: var(--s-6) 0 var(--s-8);
  font-size: var(--text-sm);
}

/* ============================================================
   REVEALS (scroll, CLS-safe: opacity + clip only)
   ============================================================ */
html.js .reveal { opacity: 0; transition: opacity 700ms var(--ease-out); }
html.js .reveal.is-in { opacity: 1; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .intro-fade, html.js .hero__line > span { opacity: 1 !important; translate: 0 0 !important; }
  .marquee__track { animation: none; }
  .hero__scroll-line::after { animation: none; }
  .cursor { display: none !important; }
  .svc__peek { display: none !important; }
}

/* ============================================================
   TOUCH TARGETS
   On coarse pointers every interactive control gets a 44px
   minimum hit area via an invisible centered overlay. Visual
   design is unchanged.
   ============================================================ */
@media (pointer: coarse) {
  .brand,
  .lang-toggle__opt,
  .theme-toggle,
  .burger,
  .header__cta,
  .footer__nav a,
  .footer__bottom a,
  .form__small a,
  .form__success a,
  .contact__channels a,
  .nav__meta a,
  .section-head__lede a {
    position: relative;
  }
  .brand::after,
  .lang-toggle__opt::after,
  .theme-toggle::after,
  .burger::before,
  .header__cta::after,
  .footer__nav a::after,
  .footer__bottom a::after,
  .form__small a::after,
  .form__success a::after,
  .contact__channels a::after,
  .nav__meta a::after,
  .section-head__lede a::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: max(100%, 44px);
    height: max(100%, 44px);
  }
  /* each language option gets its own hit area; keep it inside the pill so
     taps never land on the container or a neighbour */
  .lang-toggle__opt::after {
    width: calc(100% + 0.5rem);
    height: 44px;
  }
}

/* very narrow screens */
@media (max-width: 379px) {
  .header__cta { display: none; }
  .btn { white-space: normal; text-align: center; }
}
