/* ==========================================================================
   Weißraum Gebäudepflege – Stylesheet
   Struktur: Fonts · Tokens · Base · Utilities · Komponenten · Sektionen · Motion
   ========================================================================== */

/* ---------- Fonts (selbst gehostet, OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d5;
  --paper-3: #ddd5c3;
  --ink: #0d1a1a;
  --ink-2: #26302f;
  --muted: #56605c;
  --petrol: #0f3b37;
  --petrol-2: #15504a;
  --petrol-3: #1d6058;
  --lime: #d4f04a;
  --lime-2: #c3e033;
  --on-dark: #f3efe6;
  --on-dark-muted: rgba(243, 239, 230, .74);
  --line: rgba(13, 26, 26, .14);
  --line-dark: rgba(243, 239, 230, .16);
  --error: #b3261e;
  --error-on-dark: #ffb4a8;

  --f-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", "Arial", sans-serif;

  --fs-hero: clamp(3.3rem, 1.4rem + 7.4vw, 9rem);
  --fs-h2: clamp(2.35rem, 1.45rem + 3.7vw, 5.25rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.85rem);
  --fs-lead: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
  --section-y: clamp(5rem, 3rem + 8vw, 10.5rem);
  --radius: 22px;
  --radius-lg: 34px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;

  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
em { font-style: italic; }

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

:focus-visible {
  outline: 3px solid var(--petrol-3);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible,
.principle :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible { outline-color: var(--lime); }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: .8rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 1.55rem;
  padding-inline: .45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .04em;
}

.h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: 360;
  line-height: .98;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  margin-top: 1.25rem;
  text-wrap: balance;
}
.h2 em, .hero-title em, .footer-claim em {
  font-weight: 330;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.h2 em { color: var(--petrol-2); }

.h3 {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 420;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.section-head { max-width: 62rem; margin-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-head--split {
  max-width: none;
  display: grid;
  gap: 1.75rem 4rem;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr .8fr; }
}

.section-lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38rem;
  margin-top: 1.5rem;
  text-wrap: pretty;
}
.section-head--split .section-lead { margin-top: 0; }

.text-link {
  color: var(--petrol-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }

.inline-link {
  display: inline;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3.4rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: var(--btn-hover-bg, var(--lime));
  border-radius: inherit;
  transform: translateY(102%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg, var(--ink)); border-color: var(--btn-hover-bd, var(--btn-hover-bg, var(--lime))); }
.btn:active { transform: scale(.98); }

.btn .arrow {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-ink { --btn-hover-bg: var(--lime); }
.btn-lime { --btn-bg: var(--lime); --btn-fg: var(--ink); --btn-bd: var(--lime); --btn-hover-bg: var(--paper); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); --btn-hover-bg: var(--ink); --btn-hover-fg: var(--paper); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--line-dark); --btn-hover-bg: var(--paper); --btn-hover-fg: var(--ink); }
.btn-sm { min-height: 2.75rem; padding: .6rem 1.15rem; font-size: .925rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.9rem; height: 2.9rem;
  border-radius: 999px;
  color: inherit;
  transition: background-color .3s, color .3s, transform .3s var(--ease-out);
}
.icon-btn svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn--round { width: 3.6rem; height: 3.6rem; border: 1.5px solid var(--ink); }
.icon-btn--round:hover { background: var(--ink); color: var(--paper); }
.icon-btn--round:disabled { opacity: .3; cursor: default; background: transparent; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s, height .4s var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 34px; height: 34px; color: var(--ink); transition: transform .6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-word {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 480;
  letter-spacing: -.03em;
  line-height: 1;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.main-nav { display: none; }
.main-nav ul { display: flex; gap: .25rem; }
.main-nav a {
  position: relative;
  display: block;
  padding: .55rem .85rem;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .3s;
}
.main-nav a:hover { background: rgba(13, 26, 26, .06); }
.main-nav a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-phone {
  display: none;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: .5rem .6rem;
}
.header-phone svg { width: 1.05rem; height: 1.05rem; fill: var(--petrol-2); }
.header-phone:hover span { text-decoration: underline; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 999px;
  background: var(--ink);
}
.menu-lines, .menu-lines::before {
  display: block;
  width: 18px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
}
.menu-lines { position: relative; transform: translateY(-3px); }
.menu-lines::before { content: ""; position: absolute; top: 6px; width: 12px; }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-phone { display: inline-flex; }
}
@media (min-width: 1100px) and (max-width: 1240px) {
  .header-phone { display: none; }
}

/* ---------- Mobile Menu (dialog) ---------- */
.mobile-menu {
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  height: 100dvh;
  padding: 0;
  border: 0;
  background: var(--petrol);
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(-2%);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out), overlay .5s allow-discrete, display .5s allow-discrete;
}
.mobile-menu[open] { opacity: 1; transform: none; }
@starting-style { .mobile-menu[open] { opacity: 0; transform: translateY(-2%); } }
.mobile-menu::backdrop { background: transparent; }

.mobile-menu-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(var(--header-h) - 1rem);
}
.mobile-nav { margin-top: 2rem; counter-reset: m; }
.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--f-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 350;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-decoration: none;
  transition: color .3s, padding-left .4s var(--ease-out);
}
.mobile-nav a span { font-family: var(--f-body); font-size: .78rem; letter-spacing: .1em; color: var(--lime); }
.mobile-nav a:hover { color: var(--lime); padding-left: .4rem; }
.mobile-menu-foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .9rem; }
.mobile-menu-foot p { font-size: .9rem; color: var(--on-dark-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 3vw, 4rem));
  padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
  overflow: clip;
}
.hero::before {
  /* zarte Lichtfläche */
  content: "";
  position: absolute;
  top: -20vw; right: -15vw;
  width: 70vw; height: 70vw;
  background: radial-gradient(closest-side, rgba(212, 240, 74, .28), rgba(212, 240, 74, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.hero-eyebrow { color: var(--ink-2); letter-spacing: .1em; }
.pulse {
  position: relative;
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--petrol-3);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }

.hero-title {
  margin-top: 1.4rem;
  font-family: var(--f-display);
  font-size: var(--fs-hero);
  font-weight: 340;
  line-height: .9;
  letter-spacing: -.045em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 .1em .12em;
  margin: 0 -.1em -.12em;
}
.hero-title .line > span { display: inline-block; }
.hero-title em { color: var(--petrol-2); padding-right: .04em; }
.atmen { position: relative; }
.swoosh {
  position: absolute;
  left: 0; right: 0;
  bottom: -.02em;
  width: 100%;
  height: .26em;
  overflow: visible;
  fill: none;
  stroke: var(--lime-2);
  stroke-width: 9;
  stroke-linecap: round;
  z-index: -1;
}
.swoosh path { stroke-dasharray: 320; stroke-dashoffset: 0; }

.hero-lead {
  margin-top: 1.8rem;
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-ctas { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-proof {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.hero-proof li {
  padding: 1.1rem 1rem 0 0;
  display: grid;
  gap: .15rem;
  font-size: .82rem;
  line-height: 1.35;
  color: var(--muted);
}
.hero-proof li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.hero-proof strong {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 420;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.hero-media { position: relative; }
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--paper-2);
}
.arch--soft { border-radius: 260px 260px var(--radius) var(--radius); }
.hero-arch { aspect-ratio: 4 / 5; }
.hero-arch picture { position: absolute; inset: 0; }
.hero-arch img { object-position: 60% 40%; }

.seal {
  position: absolute;
  top: 6%; left: -2%;
  width: clamp(96px, 7vw + 50px, 150px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 40px -20px rgba(13, 26, 26, .6);
}
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal-ring text { font-family: var(--f-body); font-size: 15.5px; font-weight: 600; letter-spacing: .02em; fill: currentColor; }
.seal-mark { width: 34%; fill: var(--lime); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-card {
  position: absolute;
  right: 4%; bottom: 5%;
  max-width: 17.5rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -24px rgba(13, 26, 26, .45);
  font-size: .9rem;
  line-height: 1.4;
}
.hero-card strong { display: block; font-size: 1rem; }
.hero-card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 12px;
  background: var(--lime);
}
.hero-card-icon svg { width: 1.4rem; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }

@media (max-width: 639px) {
  .hero-proof { grid-template-columns: 1fr 1fr; }
  .hero-proof li:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 1rem; padding-bottom: 0; }
  .hero-card { left: 4%; right: 4%; max-width: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-media { width: min(100%, 620px); margin-inline: auto; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(3rem, 5vw, 6rem); }
  .hero-arch { aspect-ratio: auto; height: min(78vh, 760px); min-height: 560px; }
  .seal { left: -9%; }
  .hero-card { right: -6%; bottom: 9%; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
  padding-block: 1.05rem;
  border-block: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
  font-weight: 360;
  letter-spacing: -.02em;
  white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.marquee i { font-style: normal; font-size: 1.2rem; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1rem)); } }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem); border-bottom: 1px solid var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .6rem; }
.stat dd {
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 2rem + 4.5vw, 6.5rem);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.stat dd small { font-size: .55em; vertical-align: .32em; margin-right: .05em; color: var(--petrol-2); }
.stat dt { font-size: .92rem; color: var(--muted); max-width: 15rem; line-height: 1.45; padding-top: .9rem; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 3rem; }
.services-media { display: none; }

.service-list { border-top: 1px solid var(--ink); }
.service { border-bottom: 1px solid var(--line); }
.service-head { font: inherit; }
.service-btn {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num name toggle" ". price toggle";
  align-items: center;
  gap: .15rem 1rem;
  padding: 1.4rem 0;
  text-align: left;
  border-radius: 0;
}
.service-btn:focus-visible { outline-offset: -3px; border-radius: 8px; }
.svc-num { grid-area: num; font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); align-self: start; padding-top: .55em; }
.svc-name {
  grid-area: name;
  font-family: var(--f-display);
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.5rem);
  font-weight: 380;
  line-height: 1.1;
  letter-spacing: -.02em;
  transition: color .3s, transform .5s var(--ease-out);
}
.svc-price { grid-area: price; font-size: .9rem; color: var(--muted); font-weight: 500; }
.svc-toggle {
  grid-area: toggle;
  position: relative;
  width: 2.7rem; height: 2.7rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: background-color .35s, border-color .35s, transform .5s var(--ease-out);
}
.svc-toggle::before, .svc-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease-out);
}
.svc-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.service-btn:hover .svc-name { color: var(--petrol-2); }
.service-btn:hover .svc-toggle { border-color: var(--ink); }
.service-btn[aria-expanded="true"] .svc-toggle { background: var(--lime); border-color: var(--lime); transform: rotate(180deg); }
.service-btn[aria-expanded="true"] .svc-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.service-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease-out); }
.service-panel-inner { overflow: hidden; min-height: 0; }
.js .service:not(.is-open) .service-panel { grid-template-rows: 0fr; }
.service-panel-inner > * { max-width: 40rem; }
.service-panel-inner > p { color: var(--ink-2); font-size: 1.05rem; padding-left: 0; }
.service-panel-inner > :last-child { margin-bottom: 1.8rem; }
.svc-mobile-img {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--paper-2);
}

.ticks { margin-top: 1rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.8rem; font-size: .98rem; line-height: 1.45; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%230d1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

@media (min-width: 640px) {
  .service-btn { grid-template-columns: 3.5rem 1fr auto auto; grid-template-areas: "num name price toggle"; gap: 1.5rem; padding: 1.75rem 0; }
  .svc-num { padding-top: 0; align-self: center; }
  .service-panel-inner { padding-left: 5rem; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(3rem, 5vw, 6rem); align-items: start; }
  .services-media { display: block; position: sticky; top: calc(var(--header-h) + 2rem); }
  .services-frame { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 4rem); width: 100%; }
  .svc-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out);
  }
  .svc-img.is-active { opacity: 1; transform: scale(1); }
  .services-caption {
    position: absolute;
    left: 1.2rem; bottom: 1.2rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: var(--paper);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    font-variant-numeric: tabular-nums;
  }
  .svc-mobile-img { display: none; }
  .service-panel-inner { padding-left: 5rem; }
}

/* ---------- Principle (dark) ---------- */
.principle { background: var(--petrol); color: var(--on-dark); overflow: clip; }
.principle::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212, 240, 74, .12), transparent);
  pointer-events: none;
}
.principle .eyebrow { color: var(--on-dark-muted); }
.principle .h2 em { color: var(--lime); }
.principle-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); position: relative; }
.principle-figure {
  margin-top: 2.5rem;
  max-width: 26rem;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-dark);
}
.principle-figure picture { position: absolute; inset: 0; }
.principle-figure figcaption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
}

.pillars { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; align-self: end; }
.pillar {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  background: var(--petrol);
  transition: background-color .5s var(--ease-out);
}
.pillar:hover { background: var(--petrol-2); }
.pillar-icon { width: 3rem; height: 3rem; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { margin-top: 1.6rem; font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 380; letter-spacing: -.02em; line-height: 1.1; }
.pillar p { margin-top: .8rem; color: var(--on-dark-muted); line-height: 1.6; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .principle-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; }
  .principle-figure { max-width: 24rem; }
}

/* ---------- Wipe test ---------- */
.wipe { background: var(--paper-2); }
.wipe-grid { display: grid; gap: 3rem; align-items: center; }
.wipe-meter { margin-top: 2.2rem; max-width: 26rem; }
.wipe-meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wipe-meter-top output {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 380;
  letter-spacing: -.03em;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wipe-bar { margin-top: .5rem; height: 6px; border-radius: 6px; background: var(--paper-3); overflow: hidden; }
.wipe-bar span { display: block; height: 100%; width: 100%; background: var(--petrol-2); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease-out); border-radius: inherit; }
.wipe-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.wipe-stage { position: relative; }
.wipe-window {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  box-shadow: 0 0 0 10px var(--ink), 0 50px 80px -40px rgba(13, 26, 26, .55);
  user-select: none;
  -webkit-user-select: none;
}
.wipe-window picture { position: absolute; inset: 0; }
.wipe-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 1s var(--ease-out);
}
.wipe-canvas:active { cursor: grabbing; }
.wipe-window.is-clean .wipe-canvas { opacity: 0; pointer-events: none; }

.wipe-hint {
  position: absolute;
  top: 50%; left: 50%;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.2rem .8rem .9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity .5s, transform .5s var(--ease-out);
}
.wipe-hint svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.8s var(--ease-io) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-4px) rotate(-6deg); } 50% { transform: translateX(6px) rotate(6deg); } }
.wipe-window.is-touched .wipe-hint { opacity: 0; transform: translate(-50%, -40%); }

.wipe-done {
  position: absolute;
  left: 50%; bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem 1rem;
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: .65rem .7rem .65rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition: opacity .6s var(--ease-out) .3s, transform .6s var(--ease-out) .3s;
}
.wipe-done p { font-weight: 500; }
.wipe-done em { font-family: var(--f-display); font-size: 1.25em; color: var(--lime); }
.wipe-window.is-clean .wipe-done { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 639px) {
  .wipe-window { box-shadow: 0 0 0 6px var(--ink), 0 30px 60px -30px rgba(13, 26, 26, .55); border-radius: var(--radius); }
  .wipe-done { border-radius: 18px; padding: .8rem; bottom: .75rem; }
  .wipe-done p { font-size: .9rem; }
  .wipe-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 1024px) {
  .wipe-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(3rem, 6vw, 7rem); }
}

/* ---------- Process ---------- */
.steps { position: relative; display: grid; gap: 0; }
.steps::before, .steps::after {
  content: "";
  position: absolute;
  left: 1.6rem; top: 0;
  width: 2px; height: 100%;
  background: var(--line);
}
.steps::after { background: var(--petrol-2); transform-origin: top; transform: scaleY(var(--progress, 0)); }
.step { position: relative; padding: 0 0 2.75rem 5rem; }
.step:last-child { padding-bottom: 0; }
.step-num {
  position: absolute;
  left: 0; top: -.2rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
  transition: background-color .5s, border-color .5s;
}
.step.is-active .step-num { background: var(--lime); border-color: var(--lime); }
.step h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.step p { margin-top: .7rem; color: var(--ink-2); max-width: 22rem; }
.step-meta {
  display: inline-block;
  margin-top: 1rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .steps::before, .steps::after { left: 0; top: 1.6rem; width: 100%; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--progress, 0)); }
  .step { padding: 5rem 0 0; }
  .step-num { top: 0; }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--paper); border-top: 1px solid var(--line); }
.pricing-head-side { display: grid; gap: 1.5rem; }

.vat-switch { display: inline-flex; align-items: center; gap: .9rem; font-weight: 600; font-size: .95rem; }
.switch {
  position: relative;
  flex: none;
  width: 3.5rem; height: 2rem;
  border-radius: 999px;
  background: var(--paper-3);
  border: 1.5px solid var(--ink);
  transition: background-color .35s;
}
.switch span {
  position: absolute;
  top: 50%; left: .2rem;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
  transition: transform .45s var(--ease-out);
}
.switch[aria-checked="true"] { background: var(--lime); }
.switch[aria-checked="true"] span { transform: translate(1.45rem, -50%); }

.calc {
  display: grid;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fbf9f4;
}
.calc-form { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); display: grid; gap: 2.4rem; }
.calc-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-field legend, .calc-label-row label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.calc-step {
  display: grid;
  place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: .78rem;
  font-weight: 700;
}
.choice-grid { display: grid; gap: .6rem; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice-body {
  display: grid;
  gap: .15rem;
  height: 100%;
  padding: 1rem 1.1rem 1rem 2.9rem;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
  position: relative;
}
.choice-body::before {
  content: "";
  position: absolute;
  left: 1rem; top: 1.15rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  transition: box-shadow .3s, background-color .3s;
}
.choice-body strong { font-size: .98rem; line-height: 1.3; }
.choice-body small { font-size: .84rem; color: var(--muted); }
.choice:hover .choice-body { border-color: var(--ink); }
.choice input:checked + .choice-body { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.choice input:checked + .choice-body::before { background: var(--lime); box-shadow: inset 0 0 0 3.5px var(--ink); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--petrol-3); outline-offset: 3px; }

.calc-label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.calc-label-row label { margin-bottom: 0; }
.area-input {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  padding: .25rem .8rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  transition: border-color .3s;
}
.area-input:focus-within { border-color: var(--ink); }
.area-input input {
  width: 4.6ch;
  border: 0;
  background: none;
  text-align: right;
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 420;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.area-input input:focus { outline: none; }
.area-input input::-webkit-inner-spin-button, .area-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.area-input span { font-weight: 600; color: var(--muted); }

input[type="range"] {
  --pct: 7%;
  width: 100%;
  height: 2.4rem;
  margin: .5rem 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--ink) var(--pct), var(--paper-3) var(--pct));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--paper-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.75rem; height: 1.75rem;
  margin-top: calc(3px - .875rem);
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 12px -4px rgba(13, 26, 26, .5);
  transition: transform .3s var(--ease-out);
}
input[type="range"]::-moz-range-thumb {
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--petrol-3); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--petrol-3); }
.range-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); font-weight: 500; }

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: .3rem;
  gap: .3rem;
  border-radius: 999px;
  background: var(--paper-2);
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: grid;
  place-items: center;
  min-height: 2.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color .35s var(--ease-out), color .35s;
}
.segmented label:hover span { background: rgba(13, 26, 26, .06); }
.segmented input:checked + span { background: var(--ink); color: var(--paper); }
.segmented input:focus-visible + span { outline: 3px solid var(--petrol-3); outline-offset: 2px; }

.extras { display: grid; gap: .6rem; }
@media (min-width: 560px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra, .check { position: relative; display: flex; align-items: flex-start; gap: .8rem; cursor: pointer; font-size: .95rem; line-height: 1.4; }
.extra { padding: .9rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); transition: border-color .3s, background-color .3s; }
.extra:hover { border-color: var(--ink); }
.extra:has(input:checked) { border-color: var(--ink); background: #fff; }
.extra input, .check input { position: absolute; opacity: 0; width: 1.25rem; height: 1.25rem; margin: 0; cursor: pointer; }
.extra strong { display: block; font-weight: 700; }
.extra-box {
  flex: none;
  width: 1.25rem; height: 1.25rem;
  margin-top: .1rem;
  border-radius: 6px;
  border: 1.5px solid currentColor;
  background: transparent;
  transition: background-color .25s, border-color .25s;
}
input:checked + .extra-box {
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.8 8.3l2.7 2.7 5.7-6' fill='none' stroke='%230d1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--ink);
}
input:focus-visible + .extra-box { outline: 3px solid var(--petrol-3); outline-offset: 2px; }

.calc-result {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 2.5vw, 3rem);
  background: var(--ink);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
}
.calc-result-label { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.calc-total {
  margin-top: .75rem;
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 2.2rem + 3.4vw, 5.6rem);
  font-weight: 320;
  line-height: .95;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  color: var(--lime);
  font-variation-settings: "SOFT" 60;
}
.calc-total small { display: block; margin-top: .55rem; font-family: var(--f-body); font-size: .9rem; letter-spacing: 0; color: var(--on-dark-muted); }
.calc-breakdown { margin: 2rem 0; border-top: 1px solid var(--line-dark); }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-dark); font-size: .95rem; }
.calc-breakdown dt { color: var(--on-dark-muted); }
.calc-breakdown dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc-note { margin-top: 1.25rem; font-size: .8rem; line-height: 1.5; color: var(--on-dark-muted); }
.calc-result .btn-lime { --btn-hover-bg: var(--paper); }
.calc-result .btn { margin-top: auto; }

@media (min-width: 1024px) {
  .calc { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); }
}

.price-table-wrap { margin-top: clamp(4rem, 3rem + 4vw, 6.5rem); }
.price-table { width: 100%; margin-top: 1.5rem; border-collapse: collapse; font-size: 1rem; }
.price-table th, .price-table td { padding: 1.05rem .5rem 1.05rem 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price-table thead th { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.price-table tbody th { font-weight: 600; }
.price-table td { color: var(--muted); }
.price-table td:last-child, .price-table th:last-child { text-align: right; padding-right: 0; }
.price-table td:last-child { color: var(--ink); font-family: var(--f-display); font-size: 1.35rem; font-weight: 420; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table tbody tr { transition: background-color .3s; }
.price-table tbody tr:hover { background: rgba(212, 240, 74, .22); }
.price-foot { margin-top: 1.1rem; font-size: .86rem; color: var(--muted); }
@media (max-width: 559px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .price-table th, .price-table td { border: 0; padding: 0; }
  .price-table tbody th { grid-column: 1; }
  .price-table td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: .88rem; }
  .price-table td:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* ---------- References ---------- */
.references { background: var(--paper-2); overflow: clip; }
.slider-controls { display: flex; gap: .6rem; justify-self: end; }
.quotes-viewport { position: relative; }
.quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 30rem);
  gap: clamp(1rem, .6rem + 1.5vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: .5rem max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 1.5rem;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.quotes::-webkit-scrollbar { display: none; }
.quotes:focus-visible { outline-offset: -4px; }
.quote { scroll-snap-align: start; }
.quote figure {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: clamp(1.75rem, 1.3rem + 1.5vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform .6s var(--ease-out);
}
.quote figure:hover { transform: translateY(-6px); }
.quote blockquote p {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem);
  font-weight: 360;
  line-height: 1.3;
  letter-spacing: -.012em;
  text-wrap: pretty;
}
.quote figcaption { display: flex; align-items: center; gap: .9rem; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.quote figcaption strong { display: block; color: var(--ink); font-size: .98rem; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--paper-2);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.quote--lime figure { background: var(--lime); border-color: var(--lime); }
.quote--lime figcaption { color: var(--ink-2); }
.quote--lime .avatar { background: var(--ink); color: var(--lime); }
.quote--petrol figure { background: var(--petrol); border-color: var(--petrol); color: var(--on-dark); }
.quote--petrol figcaption, .quote--petrol figcaption strong { color: var(--on-dark); }
.quote--petrol figcaption span span, .quote--petrol figcaption > span:last-child { color: var(--on-dark-muted); }
.quote--petrol figcaption strong { color: var(--on-dark); }
.quote--petrol .avatar { background: var(--lime); color: var(--ink); }

.slider-progress { margin-top: 1rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.slider-progress span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(.2); transition: transform .3s var(--ease-out); }

.clients-label { margin-top: clamp(3.5rem, 2.5rem + 3vw, 5rem); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.clients {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.clients li {
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: center;
  line-height: 1.1;
  transition: color .3s, background-color .3s;
}
.clients li:hover { color: var(--ink); background: var(--paper); }
.clients .c1 { font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.03em; }
.clients .c2 { font-weight: 800; font-size: .95rem; letter-spacing: .28em; }
.clients .c3 { font-family: var(--f-display); font-style: italic; font-size: 1.6rem; font-weight: 400; }
.clients .c3 span { color: var(--petrol-3); }
.clients .c4 { font-weight: 300; font-size: 1.05rem; letter-spacing: .4em; }
.clients .c5 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.06em; }
.clients .c6 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 450; font-variation-settings: "SOFT" 100; }
@media (min-width: 760px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .clients { grid-template-columns: repeat(6, 1fr); } }
.footnote { margin-top: 1.5rem; font-size: .78rem; color: var(--muted); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.team-figure { position: relative; }
.team-figure picture { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.team-figure figcaption { margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.team-copy > p:not(.eyebrow) { margin-top: 1.4rem; color: var(--ink-2); font-size: 1.07rem; max-width: 36rem; }
.team-copy .h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4.25rem); }
.founder {
  margin-top: 2.2rem;
  padding: 1.6rem 0 0 1.6rem;
  border-left: 3px solid var(--lime-2);
}
.founder p { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); line-height: 1.3; font-weight: 360; font-variation-settings: "SOFT" 100, "WONK" 1; }
.founder footer { margin-top: .8rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.badges { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.badges li { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--ink); font-size: .82rem; font-weight: 600; }
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
  .team-figure picture { aspect-ratio: 4 / 3.4; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 3rem; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 1.5rem 3.5rem 1.5rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%230d1a1a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
  transition: transform .5s var(--ease-out), background-color .3s, border-color .3s;
}
.faq-list summary:hover { color: var(--petrol-2); }
.faq-list summary:focus-visible { outline-offset: -2px; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(180deg); background-color: var(--lime); border-color: var(--lime); }
.faq-body { padding: 0 3.5rem 1.6rem 0; color: var(--ink-2); max-width: 46rem; }
.faq-list details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 5rem; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Contact (dark) ---------- */
.contact { background: var(--petrol); color: var(--on-dark); overflow: clip; }
.contact .eyebrow { color: var(--on-dark-muted); }
.contact .h2 em { color: var(--lime); }
.contact .section-lead { color: var(--on-dark-muted); }
.contact-grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); }
.contact-list { margin-top: 2.5rem; display: grid; border-top: 1px solid var(--line-dark); }
.contact-list li { display: grid; gap: .2rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line-dark); }
.contact-list a { font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; transition: color .3s; }
.contact-list a:hover { color: var(--lime); }
.contact-label { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
@media (min-width: 560px) {
  .contact-list li { grid-template-columns: 8.5rem 1fr; align-items: baseline; gap: 1rem; }
}
.open-state { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.open-state::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--on-dark-muted); }
.open-state.is-open::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 240, 74, .2); }
.area { margin-top: 2.2rem; }
.chips { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .86rem; }

.contact-card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--petrol-2);
  border: 1px solid var(--line-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}
.form { display: grid; gap: 1.2rem; }
.form-title { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 380; letter-spacing: -.02em; margin-bottom: .4rem; }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; }
.req { color: var(--lime); }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 3.3rem;
  padding: .8rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(243, 239, 230, .28);
  background: rgba(13, 26, 26, .28);
  color: var(--on-dark);
  font-size: 1rem;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 239, 230, .5); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(243, 239, 230, .5); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lime); background: rgba(13, 26, 26, .4); box-shadow: 0 0 0 3px rgba(212, 240, 74, .25); }
.field [aria-invalid="true"] { border-color: var(--error-on-dark); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.8rem; cursor: pointer; }
.select select option { color: var(--ink); background: var(--paper); }
.select::after {
  content: "";
  position: absolute;
  right: 1rem; top: 50%;
  width: .6rem; height: .6rem;
  border-right: 2px solid var(--on-dark);
  border-bottom: 2px solid var(--on-dark);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field-error { min-height: 0; font-size: .84rem; font-weight: 600; color: var(--error-on-dark); }
.field-error:empty { display: none; }
.field--check .check { font-size: .9rem; color: var(--on-dark-muted); }
.check .extra-box { border-color: var(--on-dark); }
.form .btn { margin-top: .4rem; }
.form-note { font-size: .8rem; color: var(--on-dark-muted); }

.form-success { display: grid; gap: 1rem; justify-items: start; padding-block: 1rem; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success svg { width: 3.5rem; height: 3.5rem; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .8s var(--ease-out) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-family: var(--f-display); font-size: 2rem; font-weight: 380; letter-spacing: -.02em; }
.form-success p { color: var(--on-dark-muted); }
.form-success a { color: var(--on-dark); font-weight: 600; overflow-wrap: anywhere; }
.form-success-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(4rem, 3rem + 4vw, 7rem); overflow: clip; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line-dark); }
.footer-claim { font-family: var(--f-display); font-size: clamp(2.2rem, 1.5rem + 3vw, 4.5rem); font-weight: 330; line-height: 1; letter-spacing: -.035em; }
.footer-claim em { color: var(--lime); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 2.5rem 2rem; padding-block: 3rem; font-size: .95rem; color: var(--on-dark-muted); }
.footer-h { margin-bottom: .8rem; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.footer-cols ul { display: grid; gap: .45rem; }
.footer-cols a, .footer-cols .inline-link { text-decoration: none; font-weight: 400; transition: color .3s; }
.footer-cols a:hover, .footer-cols .inline-link:hover { color: var(--lime); }
.footer-word {
  font-family: var(--f-display);
  font-size: clamp(5rem, 1rem + 19.5vw, 21rem);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -.06em;
  text-align: center;
  color: var(--petrol-2);
  margin-inline: -.05em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  user-select: none;
  white-space: nowrap;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.6rem calc(1.6rem + env(safe-area-inset-bottom)); font-size: .82rem; color: var(--on-dark-muted); }

/* ---------- Legal dialogs ---------- */
.legal {
  width: min(720px, calc(100% - 2 * 16px));
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .6);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), overlay .45s allow-discrete, display .45s allow-discrete;
}
.legal[open] { opacity: 1; transform: none; }
@starting-style { .legal[open] { opacity: 0; transform: translateY(16px) scale(.98); } }
.legal::backdrop { background: rgba(13, 26, 26, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.legal-inner { display: flex; flex-direction: column; max-height: inherit; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem 1rem 2rem; border-bottom: 1px solid var(--line); }
.legal-head h2 { font-family: var(--f-display); font-size: 2rem; font-weight: 380; letter-spacing: -.02em; }
.legal-body { padding: 1.5rem 2rem 2.2rem; overflow-y: auto; font-size: .96rem; color: var(--ink-2); }
.legal-body h3 { margin-top: 1.6rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.legal-body p { margin-top: .5rem; }
.legal-notice { padding: 1rem 1.2rem; border-radius: 14px; background: var(--lime); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- Motion: Reveal & Hero entrance ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero-title .line > span { transform: translateY(108%); transition: transform 1.2s var(--ease-out); }
.js .hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.js .hero-title .line:nth-child(3) > span { transition-delay: .18s; }
.js .swoosh path { stroke-dashoffset: 320; transition: stroke-dashoffset 1.2s var(--ease-io) .9s; }
.js [data-hero-item] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .hero-lead[data-hero-item] { transition-delay: .35s; }
.js .hero-ctas[data-hero-item] { transition-delay: .45s; }
.js .hero-proof[data-hero-item] { transition-delay: .55s; }
.js .hero-card[data-hero-item] { transition-delay: 1s; }
.js .hero-arch { clip-path: inset(100% 0 0 0 round 999px 999px var(--radius) var(--radius)); transition: clip-path 1.5s var(--ease-out) .1s; }
.js .hero-arch img { transform: scale(1.15); transition: transform 2.2s var(--ease-out) .1s; }
.js .seal { opacity: 0; transform: scale(.6) rotate(-40deg); transition: opacity .8s var(--ease-out) .9s, transform 1.2s var(--ease-out) .9s; }

.is-loaded .hero-title .line > span,
.is-loaded [data-hero-item] { transform: none; opacity: 1; }
.is-loaded .swoosh path { stroke-dashoffset: 0; }
.is-loaded .hero-arch { clip-path: inset(0 0 0 0 round 999px 999px var(--radius) var(--radius)); }
.is-loaded .hero-arch img { transform: none; }
.is-loaded .seal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js [data-reveal], .js [data-hero-item], .js .hero-title .line > span { opacity: 1; transform: none; }
  .js .hero-arch { clip-path: none; }
  .js .hero-arch img { transform: none; }
  .js .swoosh path { stroke-dashoffset: 0; }
  .js .seal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .switch, .choice-body, .extra, .segmented span { border: 1px solid ButtonText; }
  .wipe-canvas { display: none; }
}

@media print {
  .site-header, .marquee, .wipe, .mobile-menu, .slider-controls, .calc-result .btn, .contact-card { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  body { background: #fff; }
}
