/* ARBH Labs studio homepage. Self-contained: only fonts.css is shared with the rest of the site.
   Edit colours and spacing through the tokens below. */
:root {
  --bg: #ffffff;
  --alt: #f5f5f3;
  --fg: #151816;
  --fg-2: #4b524e;
  --fg-3: #6b716d;
  --line: rgba(20, 28, 24, 0.12);
  --line-soft: rgba(20, 28, 24, 0.07);
  --accent: #0b6d3d;
  --accent-hi: #095a32;
  --accent-soft: rgba(11, 109, 61, 0.08);
  --mint: #c8ea9d;
  --dark: #0b1210;
  --dark-2: #111b17;
  --dark-line: rgba(255, 255, 255, 0.1);
  --dark-fg: #eef2ee;
  --dark-fg-2: #a9b3ad;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --shadow: 0 1px 2px rgba(16, 32, 24, .05), 0 14px 40px rgba(16, 32, 24, .10);
  --shadow-lg: 0 2px 6px rgba(16, 32, 24, .06), 0 40px 90px rgba(16, 32, 24, .18);
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --grid-line: rgba(11, 109, 61, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
p { text-wrap: pretty; }
::selection { background: var(--mint); color: var(--dark); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.s-dark :focus-visible, .s-footer :focus-visible { outline-color: var(--mint); }
/* Headings take focus only programmatically (panel switch, for screen readers); no ring for that. */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: 130px; }

.s-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.s-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.s-skip:focus { top: 12px; }

/* ---------- type ---------- */
.s-h1 {
  font-size: clamp(42px, min(6.1vw, 10.4vh), 84px);
  line-height: .98;
  letter-spacing: -0.042em;
  font-weight: 600;
  text-wrap: balance;
}
.s-h2 {
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.036em;
  font-weight: 600;
  text-wrap: balance;
}
.s-h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.s-lead {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 34em;
}
.s-sub { font-size: clamp(17px, 1.5vw, 19px); color: var(--fg-2); max-width: 40em; margin-top: 18px; }
.s-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.s-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--fg-2);
  padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px;
  background: #fff;
}
.s-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: s-dot-pulse 2.6s var(--ease) infinite;
}
@keyframes s-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); transform: scale(1); }
  50% { box-shadow: 0 0 0 7px rgba(11, 109, 61, 0.12); transform: scale(1.08); }
}

/* ---------- buttons ---------- */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-sm);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .22s var(--ease-out);
  user-select: none; -webkit-user-select: none;
  transform: translate(var(--bx, 0px), var(--by, 0px));
}
.s-btn:active { transform: translate(var(--bx, 0px), var(--by, 0px)) scale(.97); transition-duration: .08s; }
.s-btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.s-btn-block { width: 100%; }
.s-btn-accent { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 20px rgba(11, 109, 61, .22); }
.s-btn-dark { background: var(--fg); color: #fff; }
.s-btn-ghost { border-color: var(--line); color: var(--fg); background: #fff; }
.s-dark .s-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
@media (hover: hover) and (pointer: fine) { .s-dark .s-btn-ghost:hover { border-color: #fff; } }
.s-btn [aria-hidden="true"] { display: inline-block; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .s-btn-accent:hover { background: var(--accent-hi); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 30px rgba(11, 109, 61, .34); }
  .s-btn-dark:hover { background: #000; }
  .s-btn-ghost:hover { border-color: var(--fg); }
  .s-btn:hover [aria-hidden="true"] { transform: translateX(3px); }
}

/* ---------- header ---------- */
.s-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.s-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px rgba(16, 32, 24, .05); }
.s-header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.s-header-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; min-width: 0; }
.s-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; letter-spacing: .06em; transition: opacity .2s ease; }
.s-brand b { font-weight: 700; }
.s-brand span { font-weight: 400; }
.s-brand img { transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .s-brand:hover { opacity: .88; }
  .s-brand:hover img { transform: scale(1.06); }
}
.s-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  row-gap: 8px;
}
html[data-locale="de"] .s-nav { gap: 22px; }
html[data-locale="de"] .s-nav a:not(.s-btn) { font-size: 14.5px; }
.s-nav a:not(.s-btn) { position: relative; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--fg-2); transition: color .2s ease; }
.s-nav a:not(.s-btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.s-nav a[aria-current="true"] { color: var(--fg); }
.s-nav a.s-btn[aria-current="true"] { color: #fff; }
.s-nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .s-nav a:not(.s-btn):hover { color: var(--fg); }
  .s-nav a:not(.s-btn):hover::after { transform: scaleX(1); }
}

/* ---------- hero ---------- */
/* Drafting-table hero: a faint measured grid under the copy, the WebGL stage bleeding off the right edge. */
.s-hero { padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; isolation: isolate; }
.s-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: calc(50% + 24px) 0;
  -webkit-mask-image: radial-gradient(120% 90% at 78% 38%, #000 0%, rgba(0, 0, 0, .55) 38%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 78% 38%, #000 0%, rgba(0, 0, 0, .55) 38%, transparent 72%);
}
.s-hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -8%; top: 6%; width: 62%; aspect-ratio: 1.25;
  background: radial-gradient(closest-side, rgba(200, 234, 157, .38), rgba(200, 234, 157, 0));
}
.s-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center; min-height: min(640px, 68vh); }
.s-hero-copy { position: relative; z-index: 2; }
/* The headline is allowed to run past its column, over the quiet top-left of the stage. */
.s-hero-copy .s-h1 { width: 122%; max-width: 12.5em; }
.s-hero .s-lead { margin-top: 22px; max-width: 30em; }
.s-hero .s-actions { margin-top: 30px; }
.s-hero .s-kicker { margin-bottom: 22px; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.s-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); max-width: 640px; }
.s-hero-facts li { position: relative; padding: 16px 16px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--fg-2); }
.s-hero-facts li + li { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.s-hero-facts li::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.s-hero-facts li + li::before { left: -4px; }
.s-checks li::before, .s-contact-points li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) 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.2 2.2 4.8-4.8' fill='none' stroke='%230b6d3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* The visual is wider than its column and runs past the wrap, so the object has room to open. */
.s-hero-visual { position: relative; align-self: stretch; min-height: clamp(380px, 44vw, 620px); margin-right: calc(-1 * clamp(0px, 7vw, 120px)); margin-left: -6%; }
.s-frame {
  position: absolute; background: #fff; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.s-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.s-frame-bar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  background: #f3f4f2; border-bottom: 1px solid var(--line-soft);
}
.s-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d9d6; }
.s-frame-bar span {
  margin-left: 10px; flex: 1; max-width: 62%; font-size: 11px; color: var(--fg-3);
  background: #fff; border-radius: 5px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s-frame-back { width: 62%; right: 12%; top: 8%; transform: rotate(1.6deg); }
.s-frame-front { width: 74%; left: 8%; bottom: 8%; transform: rotate(-1deg); }

/* WebGL stage. Hidden until the scene has drawn its first frame; the frames are the fallback. */
.s-stage { position: absolute; inset: -6% -2% -6% -4%; opacity: 0; transition: opacity .6s var(--ease-out); pointer-events: none; }
.s-stage canvas { display: block; }
.s-stage-labels { position: absolute; inset: -6% -2% -6% -4%; pointer-events: none; opacity: 0; transition: opacity .6s .3s var(--ease-out); }
.s-stage-label {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity;
  margin: -30px 0 0 -6px; padding-left: 14px; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--fg);
}
.s-stage-label i { position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.s-stage-label::after { content: ""; position: absolute; left: 3px; top: calc(50% + 6px); width: 1px; height: 18px; background: linear-gradient(var(--accent), transparent); }
/* While the scene is loading the frames hold back, so there is one entrance, not two. */
.s-3d-pending .s-frame { opacity: 0; animation: none; }
.s-hero-visual.is-live .s-frame { opacity: 0; animation: none; visibility: hidden; }
.s-hero-visual.is-live .s-stage, .s-hero-visual.is-live .s-stage-labels { opacity: 1; }


/* ---------- client examples ---------- */
.s-examples { padding-bottom: clamp(48px, 6vw, 80px); }
.s-examples .s-eyebrow { margin-bottom: 16px; }
.s-example-list { display: flex; flex-wrap: wrap; gap: 10px 12px; list-style: none; margin: 0; padding: 0; }
.s-example-list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none;
}
.s-example-list a span { color: var(--fg-3); font-weight: 500; font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .s-example-list a:hover { border-color: rgba(11, 109, 61, .35); color: var(--accent); }
}

/* ---------- trio ---------- */
/* Three rows, not three cards: the verb is the headline of each row. */
.s-trio { padding-bottom: var(--sec); }
.s-trio-grid { display: grid; border-top: 1px solid var(--line); }
.s-trio-item {
  position: relative;
  display: grid;
  /* Verb column sized for longer DE labels (e.g. Überarbeiten) without colliding with copy. */
  grid-template-columns: minmax(11rem, 0.95fr) minmax(0, 1.45fr) max-content;
  gap: clamp(24px, 3.2vw, 48px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px) clamp(0px, 1vw, 12px);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.s-trio-item::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.s-trio-verb {
  min-width: 0;
  max-width: 100%;
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: transform .4s var(--ease-out), color .25s ease;
}
.s-trio-item p {
  min-width: 0;
  color: var(--fg-2);
  font-size: 16.5px;
  max-width: 34em;
  text-wrap: pretty;
}
.s-trio-item strong { display: block; color: var(--fg); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.s-trio-link {
  justify-self: end;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.s-trio-link span { display: inline-block; transition: transform .2s var(--ease-out); }
.s-trio-item:active .s-trio-verb { transform: translateX(6px); }
@media (hover: hover) and (pointer: fine) {
  .s-trio-item:hover::before { transform: scaleX(1); }
  .s-trio-item:hover .s-trio-verb { transform: translateX(8px); color: var(--accent); }
  .s-trio-item:hover .s-trio-link span { transform: translateX(4px); }
}
/* German verbs run longer — give the verb column a bit more room. */
html[data-locale="de"] .s-trio-item {
  grid-template-columns: minmax(12.5rem, 1.05fr) minmax(0, 1.35fr) max-content;
}
html[data-locale="de"] .s-trio-verb {
  font-size: clamp(32px, 4.6vw, 64px);
  letter-spacing: -0.04em;
}

/* ---------- sections ---------- */
.s-section { padding: var(--sec) 0; }
.s-alt { background: var(--alt); }
.s-head { max-width: 900px; margin-bottom: clamp(44px, 6vw, 80px); }
.s-dark { background: var(--dark); color: var(--dark-fg); }
.s-dark .s-eyebrow { color: var(--mint); }
.s-dark .s-sub, .s-dark p { color: var(--dark-fg-2); }
.s-dark .s-h2, .s-dark .s-h3 { color: #fff; }

/* ---------- work ---------- */
/* Media surfaces tilt a few degrees toward the pointer and carry a light that follows it
   (--mx/--my/--rx/--ry are written by studio.js; without it they sit flat). */
.s-case { display: grid; gap: 24px; }
.s-case-media {
  position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--dark-line);
  background: var(--dark-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color .3s ease, transform .5s var(--ease-out), box-shadow .4s ease;
}
.s-case-media.is-tracking { transition: border-color .3s ease, transform .12s linear, box-shadow .4s ease; }
.s-case-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tone, var(--mint)) 26%, transparent), transparent 62%);
  mix-blend-mode: screen;
}
.s-case-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transform: scale(1.001); transition: transform .7s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .s-case:hover .s-case-media { border-color: color-mix(in srgb, var(--tone, var(--mint)) 42%, transparent); box-shadow: 0 44px 110px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
  .s-case:hover .s-case-media::after { opacity: 1; }
  .s-case:hover .s-case-media img { transform: scale(1.035); }
}
.s-case-kind { font-size: 14px; font-weight: 500; color: var(--mint) !important; margin-bottom: 10px; }
.s-case-copy > p:not(.s-case-kind) { margin-top: 12px; }
.s-case-feature { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.s-case-feature .s-h3 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.s-case-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--dark-line); }
/* Demo cards: two staggered columns, each card tinted by its own brand tone (--tone) so the four projects stay distinct.
   The text link stretches over the whole card, so the card is one tap target with one accessible name. */
.s-case-trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 80px); margin-top: clamp(72px, 9vw, 128px); }
.s-case-trio > :nth-child(even) { margin-top: clamp(48px, 8vw, 120px); }
.s-case-demo { position: relative; gap: 22px; align-content: start; }
.s-case-demo .s-h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; }
.s-case-demo .s-case-kind { color: var(--tone, var(--mint)) !important; }
.s-case-demo .s-tags { margin-top: 18px; }
.s-case-demo .s-textlink { color: var(--tone, var(--mint)); }
.s-case-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
@media (hover: hover) and (pointer: fine) {
  .s-case-demo:hover .s-textlink { text-decoration-color: currentColor; }
  .s-case-demo:hover .s-textlink span { transform: translate(2px, -2px); }
}
.s-work-actions { margin-top: clamp(56px, 7vw, 96px); }
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.s-tags li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--dark-line); border-radius: 999px; color: var(--dark-fg); }
.s-textlink {
  display: inline-flex; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--mint);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: text-decoration-color .2s ease;
}
.s-textlink span { display: inline-block; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .s-textlink:hover { text-decoration-color: currentColor; }
  .s-textlink:hover span { transform: translateX(3px); }
}

/* ---------- plans ---------- */
/* One panel with three stages on a shared rail: a site is built or rebuilt, then maintained.
   The rail fills up to whichever stage is hovered or focused. */
.s-plans {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow);
  --fill: 0;
}
.s-plans::before, .s-plans::after {
  content: ""; position: absolute; left: 0; top: 64px; height: 1px; width: 100%; pointer-events: none; z-index: 1;
}
.s-plans::before { background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.s-plans::after { height: 2px; margin-top: -.5px; background: linear-gradient(90deg, var(--accent), var(--mint)); transform: scaleX(var(--fill)); transform-origin: left; transition: transform .6s var(--ease-out); }
.s-plans.is-drawn::before { transform: scaleX(1); }
.s-plans:has(#svc-launch:hover, #svc-launch:focus-within) { --fill: .1667; }
.s-plans:has(#svc-revamp:hover, #svc-revamp:focus-within) { --fill: .5; }
.s-plans:has(#svc-care:hover, #svc-care:focus-within) { --fill: .8333; }
.s-plan {
  position: relative; display: flex; flex-direction: column; padding: 32px clamp(24px, 2.6vw, 40px) 36px;
  transition: background-color .3s ease;
}
.s-plan + .s-plan { border-left: 1px solid var(--line-soft); }
.s-plan:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.s-plan:last-child { border-radius: 0 var(--r-lg) var(--r-lg) 0; }
/* stage node on the rail */
.s-plan::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: 64px; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: #fff; border: 2px solid var(--fg-3); transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s var(--ease-out);
}
.s-plan:hover::before, .s-plan:focus-within::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); transform: scale(1.1); }
.s-plan-feature { background: linear-gradient(180deg, rgba(200, 234, 157, .2), rgba(200, 234, 157, 0) 46%); }
.s-plan-tag {
  align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 56px;
}
.s-plan .s-h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; }
.s-plan-for { margin-top: 12px; color: var(--fg-2); font-size: 16px; }
.s-checks { margin: 26px 0 30px; display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.s-checks li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.5; }
.s-plan-price { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--fg-2); margin-bottom: 16px; }

/* ---------- process ---------- */
/* A real sequence, so it is drawn as one: a line that draws left to right with a numbered stop per step. */
.s-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); position: relative; padding-top: 28px; }
.s-steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--mint));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out);
}
.s-steps.is-drawn::before { transform: scaleX(1); }
.s-steps li { position: relative; }
.s-steps li::before {
  content: ""; position: absolute; left: 0; top: -34px; width: 14px; height: 14px; border-radius: 50%; background: var(--alt); border: 2px solid var(--accent);
  transform: scale(0); transition: transform .4s var(--ease-out); transition-delay: calc(var(--n, 0) * .28s + .1s);
}
.s-steps.is-drawn li::before { transform: scale(1); }
.s-steps li:nth-child(2) { --n: 1; } .s-steps li:nth-child(3) { --n: 2; } .s-steps li:nth-child(4) { --n: 3; }
.s-step-n {
  display: block; font-size: clamp(64px, 8vw, 120px); font-weight: 600; line-height: .9; letter-spacing: -0.06em;
  /* Stroke painted under an opaque fill: the variable font's overlapping contours would show through a transparent one. */
  color: var(--alt); -webkit-text-stroke: 3px rgba(11, 109, 61, .55); paint-order: stroke fill; margin: 8px 0 22px -1px;
  font-variant-numeric: tabular-nums;
}
.s-steps h3 { font-size: clamp(22px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.s-steps p { color: var(--fg-2); font-size: 15.5px; max-width: 22em; }

/* ---------- about ---------- */
.s-about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.s-about-person { position: sticky; top: 110px; }
.s-about-person img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.s-about-person > div { margin-top: 18px; }
.s-about-name { font-weight: 600; font-size: 18px; }
.s-about-role { color: var(--fg-3); font-size: 15px; }
.s-proof { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 44px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.s-proof > div { background: #fff; padding: 28px; }
.s-proof h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.s-proof p { color: var(--fg-2); font-size: 15.5px; }

/* ---------- faq ---------- */
.s-faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); }
.s-faq { border-top: 1px solid var(--line); }
.s-faq details { border-bottom: 1px solid var(--line); }
.s-faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.s-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.s-faq details p { padding: 0 40px 24px 0; color: var(--fg-2); }
@media (hover: hover) and (pointer: fine) { .s-faq summary { transition: color .2s ease; } .s-faq summary:hover { color: var(--accent); } }
.s-faq details[open] p { animation: s-fade-up .3s var(--ease-out) both; }
@keyframes s-fade-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- contact ---------- */
.s-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.s-mail {
  display: inline-block; margin-top: 32px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em;
  color: #fff; text-decoration: none; border-bottom: 2px solid var(--mint); padding-bottom: 4px;
  word-break: break-all; transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) { .s-mail:hover { color: var(--mint); } }
.s-contact-points { display: grid; gap: 12px; margin-top: 32px; }
.s-contact-points li { position: relative; padding-left: 28px; color: var(--dark-fg); }
.s-dark .s-contact-points li::before { background-color: rgba(200, 234, 157, .14); filter: hue-rotate(0deg); background-image: 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.2 2.2 4.8-4.8' fill='none' stroke='%23c8ea9d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.s-form { background: #fff; color: var(--fg); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, .35); }
.s-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.s-field { display: grid; gap: 8px; }
.s-field > span { font-size: 14px; font-weight: 600; color: var(--fg); }
.s-field input, .s-field select, .s-field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--fg);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fbfbfa;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.s-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%234b524e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.s-field textarea { resize: vertical; min-height: 130px; }
.s-field input:focus, .s-field select:focus, .s-field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.s-field [aria-invalid="true"] { border-color: #b3261e; }
.s-form-error { color: #b3261e !important; font-size: 14px; }
.s-form-error.is-shaking { animation: s-shake .32s var(--ease-out); }
@keyframes s-shake { 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 100% { transform: none; } }
.s-btn-label { display: inline-flex; align-items: center; gap: 8px; transition: opacity .18s ease, filter .18s ease; }
.is-swapping .s-btn-label { opacity: 0; filter: blur(3px); }
.s-form .is-sent { background: var(--fg); box-shadow: none; }
.s-form-note { font-size: 13px; color: var(--fg-3) !important; text-align: center; }

/* ---------- footer ---------- */
.s-footer { background: var(--dark); color: var(--dark-fg-2); border-top: 1px solid var(--dark-line); padding: clamp(64px, 8vw, 112px) 0 28px; }
.s-footer .s-brand { color: #fff; }
.s-footer .s-brand img { filter: brightness(0) invert(1); }
.s-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.s-footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; padding-bottom: clamp(40px, 5vw, 64px); margin-bottom: 12px; border-bottom: 1px solid var(--dark-line); }
.s-footer-brand .s-brand { grid-column: 1 / -1; justify-self: start; }
.s-footer-line { font-size: clamp(32px, 5.2vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: #fff; max-width: 14em; text-wrap: balance; }
.s-footer-col { display: grid; align-content: start; gap: 10px; }
.s-footer-col h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; font-weight: 600; margin: 0 0 6px; }
.s-footer-col a, .s-footer-bottom a {
  justify-self: start; font-size: 15px; text-decoration: none; color: var(--dark-fg-2); transition: color .2s ease, background-size .35s var(--ease-out);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px;
}
@media (hover: hover) and (pointer: fine) { .s-footer-col a:hover, .s-footer-bottom a:hover { color: #fff; background-size: 100% 1px; } }
.s-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 14px; }

/* ---------- motion (restrained; disabled under reduced motion) ---------- */
/* Sibling reveals cascade by --i (set in studio.js, capped) so a grid reads as one gesture. */
.js .s-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js .s-reveal.is-in { opacity: 1; transform: none; }
/* Hero: one orchestrated entrance. The headline is unmasked upward, the rest of the copy follows in a short cascade,
   and the object opens (WebGL) or the frames settle (fallback). */
.s-hero-copy > * { animation: s-rise .7s var(--ease-out) both; }
.s-hero-copy > .s-h1 { animation: s-unmask .9s var(--ease-out) both; }
.s-hero-copy > :nth-child(2) { animation-delay: .05s; }
.s-hero-copy > :nth-child(3) { animation-delay: .1s; }
.s-hero-copy > :nth-child(4) { animation-delay: .15s; }
.s-hero-copy > :nth-child(5) { animation-delay: .2s; }
.s-frame-front { animation: s-rise-frame-front .85s .1s var(--ease-out) both; }
.s-frame-back { animation: s-rise-frame-back .95s .22s var(--ease-out) both; }
@keyframes s-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes s-unmask { from { opacity: 0; transform: translateY(.35em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-10% -5% -10% -5%); } }
@keyframes s-rise-frame-front {
  from { opacity: 0; transform: translateY(26px) scale(.985) rotate(-1deg); }
  to { opacity: 1; transform: rotate(-1deg); }
}
@keyframes s-rise-frame-back {
  from { opacity: 0; transform: translateY(34px) scale(.97) rotate(1.6deg); }
  to { opacity: 1; transform: rotate(1.6deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Drop movement, keep colour and opacity feedback. */
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity, text-decoration-color !important; }
  .js .s-reveal { opacity: 1; transform: none; }
  .s-plans::before, .s-steps::before, .s-steps li::before { transform: none !important; }
  .s-case-media { transform: none !important; }
  .s-btn { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .s-trio-item {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 16px 28px;
    align-items: start;
  }
  .s-trio-verb { grid-column: 1 / -1; font-size: clamp(34px, 6vw, 56px); }
  .s-trio-item p { grid-column: 1; }
  .s-trio-link { grid-column: 2; align-self: end; }
  html[data-locale="de"] .s-trio-item {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
}
@media (max-width: 1020px) {
  .s-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .s-hero-copy .s-h1 { width: auto; }
  .s-hero-visual { width: auto; margin: 8px calc(-1 * var(--gut)) 0; min-height: clamp(300px, 64vw, 520px); }
  .s-hero::after { right: -20%; top: auto; bottom: 0; width: 120%; }
  .s-case-feature { align-items: start; }
  .s-case-feature, .s-contact-grid, .s-faq-grid, .s-about { grid-template-columns: 1fr; }
  .s-about-person { position: static; display: flex; align-items: center; gap: 20px; }
  .s-about-person img { width: 112px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
  .s-about-person > div { margin-top: 0; }
  /* Stacked, the plans keep their stage nodes but lose the horizontal rail. */
  .s-plans { grid-template-columns: 1fr; max-width: 640px; }
  .s-plans::before, .s-plans::after { display: none; }
  .s-plan + .s-plan { border-left: 0; border-top: 1px solid var(--line-soft); }
  .s-plan:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .s-plan:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .s-plan::before { left: auto; right: 28px; top: 40px; }
  .s-plan-tag { margin-bottom: 20px; }
  .s-steps { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .s-steps li:nth-child(n+3)::before { display: none; }
  .s-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Header nav is desktop-only; mobile section nav is the segmented dock alone. */
  .s-nav { display: none; }
  .s-case-pair, .s-case-trio { grid-template-columns: 1fr; }
  .s-case-trio > :nth-child(even) { margin-top: 0; }
  .s-trio-item { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .s-footer-brand { grid-template-columns: 1fr; align-items: start; }
  .s-footer-brand .s-btn { justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .s-header-row { height: 64px; }
  .s-hero { padding-top: 32px; }
  .s-hero::before { inset: 10% -60% auto -20%; height: 90%; }
  .s-lead { font-size: 18px; }
  .s-kicker { font-size: 13px; margin-bottom: 22px; }
  .s-actions .s-btn { flex: 1 1 100%; }
  .s-hero-facts { grid-template-columns: 1fr; border-top: 0; margin-top: 32px; }
  .s-hero-facts li, .s-hero-facts li + li { padding: 12px 0 12px 20px; border-left: 0; border-top: 1px solid var(--line-soft); }
  .s-hero-facts li::before, .s-hero-facts li + li::before { left: 0; top: 19px; }
  .s-hero-visual { min-height: 78vw; }
  .s-stage-label { font-size: 11.5px; }
  .s-frame-bar { height: 22px; padding: 0 8px; gap: 4px; }
  .s-frame-bar i { width: 6px; height: 6px; }
  .s-frame-bar span { font-size: 9px; padding: 1px 8px; }
  .s-plan { padding: 24px; }
  /* Process turns vertical: the line runs down the left, one stop per step. */
  .s-steps { grid-template-columns: 1fr; row-gap: 40px; padding-top: 0; padding-left: 30px; }
  .s-steps::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--accent), var(--mint)); }
  .s-steps.is-drawn::before { transform: scaleY(1); }
  .s-steps li::before, .s-steps li:nth-child(n+3)::before { display: block; left: -30px; top: 6px; }
  .s-step-n { font-size: 64px; margin-top: 0; }
  .s-proof { grid-template-columns: 1fr; }
  .s-proof > div { padding: 22px; }
  .s-field-row { grid-template-columns: 1fr; }
  .s-faq summary { font-size: 17px; }
  .s-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .s-footer-bottom { flex-direction: column; }
}

/* ---------- panel navigation (mobile only; desktop uses .s-nav) ---------- */
.s-dock { display: none; }
@media (max-width: 860px) {
.s-dock {
  display: block;
  position: sticky; top: 72px; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
}
.s-dock-inner { padding-top: 0; padding-bottom: 0; }
.s-dock-row {
  display: flex; gap: 6px; align-items: stretch;
  padding: 10px 0 8px;
  /* no overflow-x scroll: all pills stay in one row */
  overflow-x: hidden;
}
.s-dock-btn {
  flex: 0 0 auto; appearance: none; border: 1px solid var(--line);
  background: #fff; color: var(--fg-2); font: 600 13px/1 var(--sans);
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
  white-space: nowrap;
}
.s-dock-btn[aria-current="true"] {
  background: var(--fg); color: #fff; border-color: var(--fg);
  box-shadow: 0 6px 18px rgba(16, 32, 24, .16);
}
.s-dock-btn.s-dock-book {
  border-color: rgba(11, 109, 61, .35); color: var(--accent); background: var(--accent-soft);
}
.s-dock-btn.s-dock-book[aria-current="true"] {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .s-dock-btn:hover { border-color: var(--fg); color: var(--fg); transform: translateY(-1px); }
  .s-dock-btn[aria-current="true"]:hover { color: #fff; }
}
.s-motion-bar {
  position: relative; height: 3px; background: var(--line-soft); overflow: hidden;
  margin: 0 0 0; border-radius: 2px;
}
.s-motion-bar i {
  display: block; height: 100%; width: calc(100% / 6);
  background: linear-gradient(90deg, var(--accent), var(--mint));
  border-radius: 2px;
  transform: translateX(0);
  transition: transform .45s var(--ease-out), width .35s var(--ease-out);
  box-shadow: 0 0 12px rgba(11, 109, 61, .35);
  will-change: transform, width;
}
.s-panel[hidden] { display: none !important; }
.s-panel {
  min-height: calc(100dvh - 72px);
}
@media (max-width: 860px) {
  .s-panel { min-height: calc(100dvh - 72px - 56px); }
}
/* Panels arrive from the side they sit on in the dock (--dir: 1 forward, -1 back), matching the swipe gesture. */
.s-panel.is-enter {
  animation: s-panel-in .5s var(--ease-out) both;
}
@keyframes s-panel-in {
  from { opacity: 0; transform: translate3d(calc(var(--dir, 1) * 36px), 0, 0); }
  to { opacity: 1; transform: none; }
}
.s-panel-home { min-height: 0; }
.s-panel .s-section:first-child { padding-top: clamp(48px, 6vw, 88px); }
.s-panel-home .s-hero { padding-top: clamp(28px, 3.4vw, 52px); }

/* Booking status */
.s-form-status {
  border-radius: var(--r-sm); padding: 14px 16px; font-size: 14.5px; line-height: 1.45;
}
.s-form-status[hidden] { display: none !important; }
.s-form-success {
  background: rgba(11, 109, 61, .1); color: var(--accent) !important;
  border: 1px solid rgba(11, 109, 61, .28);
}
.s-form-fail {
  background: rgba(179, 38, 30, .08); color: #8f1e18 !important;
  border: 1px solid rgba(179, 38, 30, .28);
}
.s-form .s-btn[disabled] { opacity: .72; cursor: wait; }
.s-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Dual labels: short on narrow, full from tablet up */
.s-dock-short { display: none; }
.s-dock-full { display: inline; }

/* Phone: ONE tight evenly spaced row — all 7 controls visible, no sticky-right Book gap */
@media (max-width: 600px) {
  .s-dock { top: 64px; }
  .s-dock-inner { padding-left: 10px; padding-right: 10px; }
  .s-dock-row {
    gap: 3px;
    padding: 7px 0 6px;
    justify-content: space-between;
    overflow-x: hidden;
  }
  .s-dock-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 2px;
    font-size: 11px;
    letter-spacing: -0.02em;
    text-align: center;
  }
  .s-dock-full { display: none; }
  .s-dock-short { display: inline; }
  /* Explicitly kill prior sticky-right / margin-left:auto Book pattern */
  .s-dock-btn.s-dock-book {
    flex: 1 1 0;
    margin-left: 0;
    position: static;
    right: auto;
    z-index: auto;
  }
  .s-panel { min-height: calc(100dvh - 64px - 52px); }
}
@media (max-width: 380px) {
  .s-dock-inner { padding-left: 8px; padding-right: 8px; }
  .s-dock-btn { padding: 7px 1px; font-size: 10px; }
  .s-dock-row { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-motion-bar i { transition: none; }
  .s-panel.is-enter { animation: none; }
}

/* Mobile: prefer vertical pan so horizontal swipes can switch panels without fighting scroll */
@media (max-width: 860px) {
  #main { touch-action: pan-y; }
}
