/* =========================================================
   MMRV – Steuerberatung & Wirtschaftsprüfung
   Design tokens taken from the Figma prototype (1728px frame)
   ========================================================= */

:root {
  --red: #a02131;
  --red-deep: #861a28;
  --red-bright: #b22032;
  --ink: #111;
  --text: #1a1a1a;
  --muted: #565656;
  --soft-text: #6b6b6b;
  --quiet: #737373;
  --line: #e0e0e0;
  --paper: #fff;
  --paper-soft: #f9f9f9;
  --paper-card: #f6f6f6;
  --paper-tile: rgba(239, 239, 239, 0.5);
  --on-red: #fff;
  --on-red-soft: #f6dfe2;

  --radius: 10px;
  --radius-sm: 5px;

  --gutter: clamp(16px, 2.9vw, 50px);
  --inner: clamp(16px, 8.2vw, 189px);
  --wrap: 1350px;
  --section: clamp(88px, 10vw, 180px);
  --gap: clamp(20px, 2.4vw, 40px);

  --fs-h1: clamp(2.05rem, 1.2rem + 2.4vw, 3.125rem);
  --fs-h2: clamp(1.7rem, 1.15rem + 1.5vw, 2.5rem);
  --fs-h3: clamp(1.3rem, 1rem + 0.85vw, 1.875rem);
  --fs-body: clamp(1.0625rem, 0.98rem + 0.3vw, 1.25rem);
  --fs-small: clamp(1rem, 0.95rem + 0.15vw, 1.125rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.77, 0, 0.18, 1);

  --font: "graphie", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--red) var(--paper-soft); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-soft); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 10px; border: 2px solid var(--paper-soft); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
p + p { margin-top: 1.2em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 3px; }
.on-red :focus-visible, .menu__aside :focus-visible { outline-color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
.accent { color: var(--red); }

.prose a, a.inline { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color .3s; }
.prose a:hover, a.inline:hover { color: var(--red); }
.on-red a.inline:hover { color: var(--on-red-soft); }

.prose ul { list-style: none; margin-top: 1.2em; }
.prose ul + p { margin-top: 1.2em; }
.article__body > p, .article__body > ul, .article__lead { max-width: 46em; }
.prose ul li { position: relative; padding-left: 1.5em; }
.prose ul li + li { margin-top: .35em; }
.prose ul li::before { content: ""; position: absolute; left: .35em; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.prose strong, .prose b { font-weight: 700; }
.prose .lead-in { font-weight: 600; margin-top: 1.2em; }

.sr-only { position: absolute; 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; left: 16px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .3s; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 2 * var(--inner)); margin-inline: auto; }
.wide { margin-inline: var(--gutter); }
.section { padding-block: var(--section) 0; }
.section--tight { padding-top: clamp(56px, 6vw, 110px); }
.section:last-of-type { padding-bottom: var(--section); }

.split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 28px; align-items: start; }
.split > .split__l { grid-column: 1 / span 5; }
.split > .split__r { grid-column: 6 / -1; }
.split--half > .split__l { grid-column: 1 / span 6; }
.split--half > .split__r { grid-column: 7 / -1; }
.split--late > .split__l { grid-column: 1 / span 7; }
.split--late > .split__r { grid-column: 8 / -1; }
.measure { max-width: 34em; }
.measure-wide { max-width: 40em; }

.stack > * + * { margin-top: 1.15em; }
.stack-lg > * + * { margin-top: clamp(28px, 3vw, 44px); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 30; pointer-events: none; }
.site-header__inner { display: flex; justify-content: space-between; align-items: flex-start; padding: clamp(24px, 3.8vw, 66px) var(--gutter) 0; }
.site-header a, .site-header button { pointer-events: auto; }

/* Logo.svg has a 1366×768 artboard; the artwork spans x 87–1280, y 114–622 (measured). Crop with 2 units of air. */
.logo { --w: 157px; display: block; width: var(--w); aspect-ratio: 1182 / 320; }
.logo img { display: block; width: 100%; height: 100%; }
.logo--light img { filter: brightness(0) invert(1); }
.site-header .logo { --w: clamp(108px, 9.1vw, 157px); }

.burger {
  position: fixed; z-index: 60;
  top: clamp(22px, 3.9vw, 67px); right: var(--gutter);
  /* Figma v2 "Menü Bigger": 103×45, label 13px, lines 26px */
  display: inline-flex; align-items: center; gap: 9px;
  height: 45px; min-width: 103px; padding: 0 17px;
  border-radius: var(--radius-sm);
  background: var(--red); color: #fff;
  font-size: 13px; letter-spacing: .01em;
  box-shadow: 0 10px 28px -14px rgba(80, 10, 20, .55);
  transition: background-color .35s ease-out, color .35s ease-out, transform .5s var(--ease-out), opacity .4s;
}
.burger:hover { background: var(--red-deep); }
.burger__lines { position: relative; width: 26px; height: 5px; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .3s ease-out; }
.burger__lines::before { top: 0; }
.burger__lines::after { bottom: 0; }
/* hover (Figma Variant2): lines spread from 4px to 6px apart */
.burger:hover .burger__lines::before { transform: translateY(-1px); }
.burger:hover .burger__lines::after { transform: translateY(1px); }
/* over red areas (Figma "Menü Hell Bigger") */
.burger.is-light { background: #f5f5f5; color: #565656; box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .35); }
.burger.is-light:hover { background: #fff; }
.menu-open .burger { opacity: 0; pointer-events: none; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 55;
  right: var(--gutter); bottom: clamp(20px, 2.9vw, 50px);
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  box-shadow: 0 10px 28px -14px rgba(80, 10, 20, .55);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s ease-out, transform .45s var(--ease-out), visibility .35s, background .3s;
}
.to-top svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-deep); }
.to-top:hover svg { transform: translateY(-3px); }
.menu-open .to-top { opacity: 0; visibility: hidden; }

/* ---------- Menu ---------- */
.menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.menu.is-open { visibility: visible; pointer-events: auto; }
/* Overlay background from the prototype: #a02131 at 87 %, click outside closes. */
.menu__scrim {
  position: absolute; inset: 0;
  background: rgba(160, 33, 49, .87);
  opacity: 0; transition: opacity .4s ease-out;
}
.menu.is-open .menu__scrim { opacity: 1; }
.menu__aside { position: absolute; left: var(--gutter); top: clamp(24px, 3.8vw, 66px); opacity: 0; transition: opacity .6s .2s; }
.menu__aside .logo { --w: clamp(108px, 9.1vw, 157px); }
.menu.is-open .menu__aside { opacity: 1; }

.menu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 65%;
  background: var(--paper);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(48px, 7.9vw, 137px);
  padding: clamp(24px, 3.9vw, 67px) var(--gutter) clamp(40px, 6vw, 100px) clamp(40px, 6.9vw, 119px);
  transform: translateX(100%);
  transition: transform .4s ease-out; /* prototype: Move in, 0.4s ease-out */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu.is-open .menu__panel { transform: none; }

.menu__close {
  grid-column: 1 / -1; justify-self: end;
  display: inline-flex; align-items: center; gap: 12px;
  height: 41px; color: var(--red); font-size: 11px; font-weight: 500;
}
/* Menu typography from Figma. Kit mapping (measured against Figma text widths):
   Figma "Book" = 400, "Regular" = 500, "SemiBold" = 600, "Bold" = 700. */
.menu__close svg { width: 19px; height: 19px; transition: transform .6s var(--ease-out); }
.menu__close:hover svg { transform: rotate(90deg); }

.menu__nav { grid-column: 1; grid-row: 2; align-self: center; padding-block: 40px; }
.menu__list { list-style: none; }
.menu__item + .menu__item { margin-top: clamp(8px, 1.8vw, 31px); } /* prototype: 83px rhythm (52px item + 31px) */
.menu__link {
  display: inline-block;
  font-size: clamp(2rem, 1.2rem + 1.85vw, 2.6875rem); /* 43px */
  font-weight: 500; line-height: 1.21; letter-spacing: 0; /* Graphie Regular */
  color: var(--ink);
  transition: transform .3s ease-out, color .3s ease-out;
}
/* prototype hover: 15px to the right, red */
.menu__link:hover, .menu__link:focus-visible { transform: translateX(15px); color: var(--red); }
.menu__item.is-active > .menu__link { color: var(--red); transform: translateX(14px); }
/* Current page: red text (also "Steuerberatung" when one of its sub pages is open) */
.menu .menu__link--current, .menu .is-current-parent > .menu__link { color: var(--red); }

.menu__sub {
  grid-column: 2; grid-row: 2; align-self: center;
  list-style: none; pointer-events: none;
  padding-top: 12px;
}
.menu__sub li { opacity: 0; transform: translateX(-14px); transition: opacity .35s, transform .5s var(--ease-out); }
.menu__sub li + li { margin-top: 12px; }
.menu__sub a { font-size: var(--fs-body); font-weight: 400; /* Graphie Book */ transition: color .3s ease-out, transform .3s ease-out; display: inline-block; padding-block: 2px; }
.menu__sub a:hover, .menu__sub a:focus-visible { color: var(--red); transform: translateX(10px); }
.menu__sub a[aria-current="page"] { color: var(--red); }
.menu__sub.is-visible { pointer-events: auto; }
.menu__sub.is-visible li { opacity: 1; transform: none; }
.menu__sub.is-visible li:nth-child(2) { transition-delay: .05s; }
.menu__sub.is-visible li:nth-child(3) { transition-delay: .1s; }
.menu__sub.is-visible li:nth-child(4) { transition-delay: .15s; }
.menu__sub.is-visible li:nth-child(5) { transition-delay: .2s; }

.menu__contact { grid-column: 2; grid-row: 3; font-size: var(--fs-body); font-weight: 500; }
.menu__contact h2 { font-size: inherit; font-weight: 500; color: var(--red); margin-bottom: 20px; font-size: clamp(1.05rem, .95rem + .4vw, 1.375rem); } /* 22px at 1728 */
.menu__contact a { display: table; position: relative; }
.menu__contact a + a { margin-top: 10px; }

/* staggered entrance of nav items */
.menu .menu__item, .menu .menu__contact { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.menu.is-open .menu__item, .menu.is-open .menu__contact { opacity: 1; transform: none; }
.menu.is-open .menu__item:nth-child(1) { transition-delay: .35s; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: .4s; }
.menu.is-open .menu__item:nth-child(3) { transition-delay: .45s; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: .5s; }
.menu.is-open .menu__item:nth-child(5) { transition-delay: .55s; }
.menu.is-open .menu__item:nth-child(6) { transition-delay: .6s; }
.menu.is-open .menu__contact { transition-delay: .65s; }

.menu__mobile-sub { display: none; }
.menu__brand { display: none; }
@media (max-width: 900px) { .menu__brand { display: block; } .menu__brand .logo { --w: 108px; } }

/* ---------- Underline links ---------- */
.uline { position: relative; display: inline-block; }
.uline::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.uline:hover::after, .uline:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.uline--red { color: var(--ink); }
.uline--red::after { background: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff; --blob: var(--red-bright);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 28px; min-width: 211px;
  border-radius: var(--radius-sm);
  background: var(--bg); color: var(--fg);
  font-size: var(--fs-small); line-height: 1;
  transition: color .45s var(--ease-out);
}
/* Red button hover (Figma "Button"): a 22px circle at the bottom centre grows to cover the button, 0.3s ease-out */
.btn::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 92%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--blob);
  transform: scale(0); transition: transform .3s ease-out;
}
.btn:hover::before, .btn:focus-visible::before { transform: scale(11); }
.btn__arrow { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* White button hover (Figma "Button White …"): no circle. The label shifts 11px left while a small
   red arrow-in-circle slides from the centre to the right edge and fades in, 0.3s ease-out. */
.btn--light { --bg: #fff; --fg: var(--red); min-width: 238px; transition: padding .3s ease-out; }
.btn--light::before { content: none; }
.btn--light::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23a02131' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='6.4'/%3E%3Cpath d='M5 9 9 5M5.6 5H9v3.4'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transition: left .3s ease-out, opacity .3s ease-out;
}
.btn--light:hover, .btn--light:focus-visible { padding-right: 50px; }
.btn--light:hover::after, .btn--light:focus-visible::after { left: calc(100% - 36px); opacity: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 24px; }

/* ---------- Icons ---------- */
.icon-circle { display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; color: var(--red); transition: background .4s var(--ease-out), color .4s, transform .6s var(--ease-out); }
.icon-circle svg { width: 42%; height: 42%; transition: transform .6s var(--ease-out); }
.icon-circle--lg { width: 55px; height: 55px; color: #fff; }
.icon-circle--md { width: 37px; height: 37px; }
.icon-circle--sm { width: 28px; height: 28px; border-width: 1.25px; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: min(100svh, 1100px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img, .hero__media video { width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); will-change: transform; }
.hero__media { background: #3a3a3a; }
.hero__media video { position: absolute; inset: 0; }
/* v2: flat 26% black overlay over the video */
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .26); }
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(96px, 9.1vw, 157px); }
.hero__rule { display: block; width: 99px; height: 2px; background: #fff; margin-bottom: clamp(28px, 2.5vw, 44px); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.3rem + 2.5vw, 3.125rem); }
.hero__lead { font-weight: 600; max-width: 31em; margin-top: 40px; }
.hero .btn { margin-top: clamp(28px, 2.8vw, 49px); }
.hero .scroll-cue { left: auto; right: 0; bottom: 0; }

/* ---------- Scroll-down square (Figma "Scroll Down") ---------- */
.scroll-cue {
  position: absolute; z-index: 4; left: 50%; bottom: 0;
  width: clamp(52px, 4vw, 69px); aspect-ratio: 1; display: grid; place-items: center;
  background: var(--red-bright); color: #fff; cursor: pointer; transition: background-color .3s ease-out;
}
.scroll-cue:hover { background: var(--red-deep); }
.scroll-cue svg { width: 21px; height: 21px; animation: cue-bob 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes cue-bob { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(5px); } }

/* ---------- Page hero v2: photo + red title panel + grey intro panel ---------- */
.phero { position: relative; }
.phero__media { position: relative; height: clamp(360px, 39.9vw, 689px); overflow: hidden; background: #ddd; }
.phero__media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.phero__media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 40%; background: linear-gradient(rgba(0,0,0,.22), transparent); pointer-events: none; }
.phero__action { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(24px, 4.3vw, 74px); }
.phero__band { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(300px, 23.3vw, 403px); }
.phero__red { background: var(--red); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 5vw, 86px) clamp(32px, 6.5vw, 112px) clamp(48px, 5vw, 86px) clamp(24px, 8.7vw, 150px); }
.phero__red h1 { color: #fff; font-size: var(--fs-h1); line-height: 1.2; max-width: 13em; }
.phero__red .crumb { color: rgba(255,255,255,.85); margin-bottom: clamp(18px, 2vw, 33px); }
.phero__red .crumb:hover { color: #fff; }
.phero__grey { background: var(--paper-card); display: flex; align-items: center; padding: clamp(48px, 5vw, 86px) var(--gutter) clamp(48px, 5vw, 86px) clamp(24px, 9.3vw, 161px); }
.phero__grey p { max-width: 26em; }

/* ---------- Red bands ---------- */
.band-red { background: var(--red); color: #fff; }
.band-red h1, .band-red h2, .band-red h3 { color: #fff; }
.band-red .accent { color: #fff; }

/* Leistungen on a red band; the cards overlap the band's lower edge */
.svc { --overlap: clamp(80px, 11.5vw, 198px); }
.svc__band { padding: clamp(88px, 12.7vw, 219px) 0 calc(clamp(56px, 6.4vw, 110px) + var(--overlap)); }
.svc .services { margin-top: calc(-1 * var(--overlap)); }
.svc .service { background: #efefef; }
.svc .service::after { border: .25px solid #fff; } /* white hairline so the red hover card stands off the red band */

/* Image that bleeds off the right edge and overlaps a red band below */
.overlap { overflow-x: clip; }
.overlap__media { position: relative; z-index: 2; margin-left: 33.7vw; width: 71.6vw; }
.overlap__media .float__frame { aspect-ratio: 1237 / 679; }
.overlap__band { margin-top: calc(-1 * clamp(80px, 13.9vw, 240px)); padding: clamp(150px, 19.2vw, 331px) 0 clamp(72px, 11.5vw, 198px); }

/* Four columns separated by fine vertical rules */
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 4.4vw, 76px); }
.values > div { padding-right: clamp(16px, 2.6vw, 45px); }
.values > div + div { border-left: 1px solid rgba(255, 255, 255, .45); padding-left: clamp(16px, 2.6vw, 45px); }
.values h3 { min-height: 2.4em; }
.values p { margin-top: clamp(16px, 2.2vw, 38px); }

/* Full-bleed photo with a frosted glass card */
.glass-sec { position: relative; height: clamp(520px, 54.2vw, 936px); overflow: hidden; }
.glass-sec__media { position: absolute; inset: 0; }
.glass-sec__media img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.glass {
  position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(24px, 3.6vw, 62px);
  width: min(706px, calc(100% - 2 * var(--gutter)));
  padding: clamp(32px, 3.1vw, 54px) clamp(28px, 5.1vw, 88px) clamp(36px, 3.4vw, 58px);
  border-radius: var(--radius); background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(29px) saturate(1.2); backdrop-filter: blur(29px) saturate(1.2);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45);
}
.glass p { margin-top: 24px; }
.glass .btn { margin-top: 36px; }
.glass--vision { left: clamp(16px, 11.5vw, 199px); width: min(686px, calc(100% - 2 * var(--gutter))); bottom: clamp(24px, 5.3vw, 91px); }

/* Karriere benefits: endless right-to-left marquee */
.marquee { overflow: hidden; margin-top: clamp(64px, 8vw, 139px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.perk { flex: none; width: clamp(280px, 29.9vw, 516px); min-height: clamp(200px, 16.7vw, 288px); padding: clamp(28px, 3.7vw, 64px) clamp(24px, 4.6vw, 80px) 32px clamp(24px, 4.5vw, 78px); background: #efefef; border-radius: var(--radius); }
.perk h3 { color: var(--red); font-size: clamp(1.3rem, 1rem + .9vw, 1.75rem); }
.perk p { margin-top: clamp(16px, 2vw, 34px); }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

/* Jobs on red */
.band-red .job { background: rgba(246, 246, 246, .7); color: var(--ink); border-color: var(--line); }
.band-red .job:hover { background: #fff; }
.band-red p a.inline { color: #fff; }

/* Full-bleed photo (v2): edge to edge, no radius */
.media-wide--full { border-radius: 0; margin: 0; height: clamp(320px, 53.4vw, 922px); }
.media-wide--full .media-wide__clip { border-radius: 0; }
.js-anim .media-wide--full .media-wide__clip { clip-path: inset(22% 38% 22% 38%); }
.js-anim .media-wide--full.is-in .media-wide__clip { clip-path: inset(0 0 0 0); }
.js-anim .glass-sec .glass-sec__media { clip-path: inset(22% 38% 22% 38%); transition: clip-path 1.7s var(--ease-inout); }
.js-anim .glass-sec.is-in .glass-sec__media { clip-path: inset(0 0 0 0); }

/* ---------- Accordion (Figma "Tab") ---------- */
.acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 3vw, 52px); margin-top: clamp(40px, 3vw, 52px); }
.acc__head > span:first-child { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.acc__head {
  position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: clamp(80px, 8.2vw, 142px); padding: 20px clamp(24px, 4.7vw, 81px) 20px clamp(24px, 5.4vw, 93px);
  border-radius: var(--radius); background: var(--paper-card); text-align: left;
  font-size: clamp(1.25rem, .95rem + .9vw, 1.75rem); font-weight: 600; line-height: 1.2; color: var(--ink);
  transition: background-color .3s ease-out, color .3s ease-out;
}
.acc__icon { flex: none; width: 28px; height: 28px; color: var(--red); transition: color .3s ease-out; }
.acc__icon svg { width: 100%; height: 100%; transform: rotate(45deg); transition: transform .3s ease-out; }
.acc__head:hover, .acc__head:focus-visible, .acc__head[aria-expanded="true"] { background: var(--red); color: #fff; }
.acc__head:hover .acc__icon, .acc__head:focus-visible .acc__icon, .acc__head[aria-expanded="true"] .acc__icon { color: #fff; }
.acc__head:hover .acc__icon svg { transform: rotate(135deg); }
.acc__head[aria-expanded="true"] .acc__icon svg { transform: rotate(-45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__body { max-width: 794px; margin-left: clamp(24px, 16.1vw, 278px); padding: clamp(32px, 5.3vw, 92px) 0 clamp(16px, 1.4vw, 10px); }
.acc__body > * + * { margin-top: 1.2em; }

/* Mandanteninformationen header on red (Aktuelles + Archiv) */
.news-head { --overlap: clamp(60px, 7.2vw, 125px); }
.news-head__band { padding: clamp(150px, 18.1vw, 313px) 0 calc(clamp(56px, 6.3vw, 110px) + var(--overlap)); }
.news-head .docs { margin-top: calc(-1 * var(--overlap)); position: relative; z-index: 2; }
.news-head .archive-cta { margin-top: 0; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding-top: clamp(150px, 15vw, 258px); }
.page-hero__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-hero h1 .accent { display: block; }
.page-hero h1 .accent--inline { display: inline; }
.page-hero__lead { max-width: 34.5em; margin-top: clamp(24px, 2.4vw, 42px); }
.page-hero__media { margin-top: clamp(48px, 4.5vw, 74px); }

/* ---------- Wide media (reveal from centre + parallax) ---------- */
.media-wide { position: relative; height: clamp(320px, 40.5vw, 700px); border-radius: var(--radius); }
.media-wide--tall { height: clamp(340px, 51vw, 922px); }
.media-wide__clip { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; clip-path: inset(0 0 0 0 round var(--radius)); }
.media-wide__clip img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(var(--ms, 1)); will-change: transform; }
.media-wide .bar { position: absolute; z-index: 2; left: clamp(16px, 6.2vw, 101px); bottom: 0; height: 30px; width: min(835px, 51%); background: var(--red); transform-origin: left; }
.media-wide figcaption { position: absolute; top: calc(100% + 10px); left: 0; font-size: 13px; color: #939393; }

/* ---------- Floating media ---------- */
.float { translate: 0 var(--py, 0px); will-change: translate; }
.float__frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: 0 34px 60px -32px rgba(30, 6, 10, .35), 0 12px 24px -16px rgba(0, 0, 0, .18); background: #ececec; }
.float__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.float:hover .float__frame img { transform: scale(1.09); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.trio .float:nth-child(2) { margin-top: 2.2%; }
.trio .float:nth-child(3) { margin-top: 4.6%; }
.trio .float__frame { aspect-ratio: 516 / 655; }

/* ---------- Rows (heading left / text right) ---------- */
.rows { margin-top: clamp(48px, 5vw, 80px); border-top: .5px solid var(--red); }
.row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 14px; padding-block: clamp(28px, 3vw, 52px); border-bottom: .5px solid var(--red); }
.row > :first-child { grid-column: 1 / span 6; }
.row > :last-child { grid-column: 7 / -1; }
.row h3 { max-width: 15em; }
.rows--h2 .row h3 { font-size: var(--fs-h2); line-height: 1.15; }

/* ---------- Leistungen cards ---------- */
/* All tiles share one size (Figma 516×400). The column stagger (0 / 44 / 88px) is a pure shift via `translate`,
   so it no longer changes the stretched height; padding-bottom keeps room for the shifted last column. */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--gap); margin-top: clamp(56px, 6vw, 110px); padding-bottom: 88px; }
.service:nth-child(3n+2) { translate: 0 44px; }
.service:nth-child(3n+3) { translate: 0 88px; }
.service {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  aspect-ratio: 516 / 400; width: 100%; align-self: stretch; /* explicit: aspect-ratio items don't stretch by default */
  padding: clamp(28px, 3vw, 52px) clamp(24px, 2.5vw, 37px) clamp(28px, 3.1vw, 54px) clamp(24px, 2.4vw, 42px);
  border-radius: var(--radius); background: var(--paper-tile); /* no overflow:hidden – lets aspect-ratio grow with content, and grid-auto-rows:1fr keeps every tile equal */
}
/* Hover per Figma component "Leistungen Card" (Smart Animate, 0.3s ease-out):
   a red bar (bottom 6.75%, invisible) grows to fill the card; title + icon turn white, text #e5e5e5. */
.service h3 { position: relative; z-index: 1; max-width: 86%; transition: color .3s ease-out; } /* Figma title box: 375px of the 437px inner width */
.service p { position: relative; z-index: 1; color: var(--muted); max-width: 22em; transition: color .3s ease-out; }
.service .icon-circle { position: absolute; z-index: 1; top: clamp(26px, 2.1vw, 36px); right: clamp(24px, 2.1vw, 37px); transition: color .3s ease-out; }
.service::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: var(--red); opacity: 0; clip-path: inset(93.25% 0 0 0 round var(--radius)); transition: clip-path .3s ease-out, opacity .3s ease-out; }
.service:hover::after, .service:focus-visible::after { opacity: 1; clip-path: inset(0 0 0 0 round var(--radius)); }
.service:hover h3, .service:focus-visible h3, .service:hover .icon-circle, .service:focus-visible .icon-circle { color: #fff; }
.service:hover p, .service:focus-visible p { color: #e5e5e5; }

/* ---------- Feature (red panel + image) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.panel-red { position: relative; background: var(--red); color: var(--on-red); border-radius: var(--radius); padding: clamp(32px, 5.7vw, 99px); display: flex; flex-direction: column; justify-content: flex-end; }
.panel-red h2, .panel-red h3 { color: #fff; }
.panel-red p { margin-top: 24px; max-width: 28em; }
.panel-red .btn { margin-top: 40px; align-self: flex-start; }
.panel-red .icon-circle { position: absolute; top: clamp(28px, 4.7vw, 82px); right: clamp(28px, 5.7vw, 99px); }
/* Image sets the row height by the Figma ratio (794×610, or 794×800 for --tall); the red card stretches to match.
   The photo is absolutely positioned so its own (portrait) proportions never size the block. */
.feature .float__frame { width: 100%; height: 100%; aspect-ratio: 794 / 610; }
.feature .float__frame img { position: absolute; inset: 0; }
.feature--tall .float__frame { aspect-ratio: 794 / 800; }
.feature--tall .panel-red { padding-bottom: clamp(32px, 7.4vw, 128px); }
.feature--offset { align-items: start; }
.feature--offset .panel-red { margin-top: clamp(80px, 16.5vw, 286px); min-height: clamp(380px, 39vw, 680px); justify-content: center; }
.feature--offset .float__frame { aspect-ratio: 794 / 800; height: auto; }

/* ---------- CTA band ---------- */
.cta { background: var(--red); color: var(--on-red); border-radius: var(--radius); padding: clamp(40px, 6vw, 104px) 0 clamp(40px, 5vw, 92px); position: relative; overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 36px; align-items: end; padding-inline: clamp(24px, 5.7vw, 99px); }
.cta__main { grid-column: 1 / span 5; }
.cta h2 { color: #fff; max-width: 13em; }
.cta p { margin-top: 28px; max-width: 21em; }
.cta .btn { margin-top: 40px; }
.cta__hours { grid-column: 6 / span 6; font-size: var(--fs-small); }
.cta .icon-circle { position: absolute; top: clamp(32px, 6vw, 130px); right: clamp(28px, 5.7vw, 99px); }
.cta .icon-circle:hover { background: #fff; color: var(--red); }
.hours-title { font-weight: 600; margin-bottom: 18px; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 400; padding: 0 clamp(16px, 1.7vw, 28px) 4px 0; vertical-align: top; }
.hours td { padding: 0 clamp(16px, 1.7vw, 28px) 4px 0; white-space: nowrap; vertical-align: top; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news {
  position: relative; display: flex; flex-direction: column;
  min-height: clamp(560px, 41vw, 712px);
  padding: 19px; border: .5px solid var(--line); border-radius: var(--radius);
  background: rgba(246, 246, 246, .2);
  --t: .45s ease-out;
  transition: background-color var(--t);
}
.news__img { aspect-ratio: 478 / 334; border-radius: var(--radius); overflow: hidden; background: #eee; }
.news__img img { width: 100%; height: 100%; object-fit: cover; }
.news__body { display: flex; flex-direction: column; flex: 1; padding-top: clamp(24px, 2.7vw, 46px); }
.news--text .news__body { justify-content: flex-end; }
.news h3 { color: var(--red); transition: color var(--t); }
.news__excerpt { margin-top: 20px; transition: color var(--t); }
/* Arrow sits 32px from the card's right and bottom edge (Figma); on hover it moves to 22px right / 43px bottom. */
.news__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 28px 13px 13px 0; }
.news--text .news__foot { margin-top: 0; padding-top: 40px; }
.news time { font-size: 16px; color: var(--quiet); transition: color var(--t); }
.news .icon-circle { transition: color var(--t), transform var(--t); }
/* Hover per Figma components "Newsbeitrag", "Newsbeitrag 2", "Newsbeitrag ohne Bild" (Smart Animate, 0.45s ease-out):
   card turns #a02131 (grey hairline stays), title white, text #f5f5f5, date #e5e5e5,
   arrow circle turns white and moves 10px right / 11px up. Image stays as it is. */
.news:hover, .news:focus-visible { background-color: var(--red); }
.news:hover h3, .news:focus-visible h3 { color: #fff; }
.news:hover .news__excerpt, .news:focus-visible .news__excerpt { color: #f5f5f5; }
.news:hover time, .news:focus-visible time { color: #e5e5e5; }
.news:hover .icon-circle, .news:focus-visible .icon-circle { color: #fff; transform: translate(10px, -11px); }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(56px, 7vw, 120px); border-top: .5px solid var(--red); }
.faq__item { border-bottom: .5px solid var(--red); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(28px, 3vw, 52px); text-align: left; font-weight: 700; font-size: var(--fs-body); transition: color .3s; }
.faq__q:hover { color: var(--red); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--red); transition: transform .5s var(--ease-out); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: clamp(28px, 3vw, 48px); max-width: 44em; color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(48px, 5vw, 80px) var(--gap); margin-top: clamp(56px, 6vw, 110px); }
.member__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #eee; }
.member__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.member:hover .member__img img { transform: scale(1.04); }
.member h3 { margin-top: clamp(20px, 2vw, 34px); }
.member__role { color: #616161; margin-top: 8px; min-height: 2.9em; }
.member__foot { margin-top: 14px; padding-top: 18px; border-top: .5px solid var(--red); display: flex; justify-content: flex-end; }
.member__mail { color: var(--quiet); transition: color .3s, transform .5s var(--ease-out); }
.member__mail:hover { color: var(--red); transform: translateX(-4px); }
.member__mail svg { width: 31px; height: 21px; }

/* ---------- Benefits / definition rows ---------- */
.deflist { margin-top: clamp(40px, 4vw, 64px); border-top: .5px solid var(--red); }
.deflist div { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 16px 28px; padding-block: clamp(20px, 2.2vw, 36px); border-bottom: .5px solid var(--red); }
.deflist dt { color: var(--red); font-weight: 700; }
.deflist dd { margin: 0; }

/* ---------- Jobs ---------- */
.jobs { margin-top: clamp(40px, 4vw, 64px); display: grid; gap: clamp(20px, 2.4vw, 42px); }
.job {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 120px; padding: 24px clamp(20px, 3vw, 52px) 24px clamp(24px, 5vw, 84px);
  border: .5px solid var(--line); border-radius: var(--radius); background: rgba(246, 246, 246, .2);
  transition: border-color .4s, background .5s, transform .6s var(--ease-out);
}
.job__title { font-weight: 600; }
.job__cta { display: flex; align-items: center; gap: 22px; color: var(--red); font-size: 15px; letter-spacing: .04em; flex: none; }
.job__cta > span:first-child { opacity: 0; transform: translateX(10px); transition: opacity .4s, transform .6s var(--ease-out); }
.job:hover { border-color: #d8d8d8; background: #fafafa; }
.job:hover .job__cta > span:first-child { opacity: 1; transform: none; }
.job:hover .icon-circle { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Document cards ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 44px) var(--gap); margin-top: clamp(40px, 4.3vw, 74px); } /* Figma: 44px rows, 40px columns */
/* Hover per Figma component "Mandantenrundschrieben" (Smart Animate, 0.45s ease-out):
   card + border turn #a02131, title + file icon white, date #efefef,
   a white download arrow (hidden, 29px higher) slides down into place. */
.doc { --t: .45s ease-out; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px; padding: clamp(28px, 2.3vw, 39px) clamp(24px, 2.6vw, 46px); background: var(--paper-card); border: .5px solid var(--line); border-radius: var(--radius); transition: background-color var(--t), border-color var(--t); }
/* "Zum Archiv" (Figma Aktuelles): 31px to the text above, 105px to the cards below at 1728px */
.archive-cta { margin-top: clamp(25px, 1.8vw, 31px); }
.docs--after-cta { margin-top: clamp(48px, 6.1vw, 105px); }
.doc h3 { padding-right: 60px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; transition: color var(--t); }
.doc__date { color: var(--muted); transition: color var(--t); }
.doc__file { position: absolute; top: clamp(28px, 2.3vw, 40px); right: clamp(24px, 2vw, 35px); width: 28px; height: 28px; color: var(--red); transition: color var(--t); }
.doc__dl { position: absolute; right: clamp(29px, 2.3vw, 40px); bottom: clamp(28px, 2.6vw, 44px); width: 18px; height: 27px; color: #fff; opacity: 0; transform: translateY(-29px); transition: opacity var(--t), transform var(--t); }
.doc:hover, .doc:focus-visible { background: var(--red); border-color: var(--red); }
.doc:hover h3, .doc:focus-visible h3, .doc:hover .doc__file, .doc:focus-visible .doc__file { color: #fff; }
.doc:hover .doc__date, .doc:focus-visible .doc__date { color: #efefef; }
.doc:hover .doc__dl, .doc:focus-visible .doc__dl { opacity: 1; transform: none; }

/* ---------- Divider ---------- */
.rule { height: 0; border: 0; border-top: .5px solid var(--quiet); margin: 0; }

/* ---------- Contact ---------- */
.contact-block { padding-block: clamp(56px, 6vw, 110px); border-bottom: .5px solid var(--quiet); }
.contact-block:first-child { padding-top: var(--section); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 14px clamp(24px, 3vw, 60px); align-items: baseline; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }
.label-strong { font-weight: 700; margin-bottom: 18px; }
.address-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.maps-link { display: inline-flex; align-items: center; gap: 12px; }
.maps-link svg { width: 18px; height: 18px; color: var(--red); transition: transform .5s var(--ease-out); }
.maps-link:hover svg { transform: translate(3px, -3px); }

.form { margin-top: clamp(48px, 5vw, 90px); max-width: 1072px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 10vw, 180px); row-gap: clamp(36px, 4vw, 60px); }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-size: var(--fs-small); color: var(--quiet); transition: color .3s; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--quiet); border-radius: 0;
  padding: 18px 0 14px; font: inherit; font-size: var(--fs-body); color: var(--ink); background: transparent;
  outline: none; transition: border-color .3s; caret-color: var(--red);
}
.field textarea { min-height: 170px; resize: vertical; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--red); }
.field textarea + .field__err, .field input + .field__err { position: absolute; top: 100%; left: 0; margin-top: 6px; font-size: 14px; color: var(--red); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--red); }
.check { display: flex; gap: 20px; align-items: flex-start; margin-top: clamp(56px, 6vw, 90px); font-size: var(--fs-small); color: #6f6f6f; max-width: 42em; cursor: pointer; }
.check input { appearance: none; flex: none; width: 21px; height: 21px; border: 1px solid var(--quiet); margin: 0; display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s; }
.check input:checked { background: var(--red); border-color: var(--red); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.check a { color: var(--red); text-decoration: underline; text-underline-offset: .2em; }
.check.has-error input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(160, 33, 49, .15); }
.form .btn { margin-top: clamp(40px, 4vw, 70px); }
.form__status { margin-top: 20px; font-size: var(--fs-small); color: var(--muted); min-height: 1.5em; }

/* ---------- Job detail ---------- */
.job-hero { padding-top: clamp(150px, 14.5vw, 251px); }
.crumb { font-size: 17px; letter-spacing: .06em; color: var(--quiet); display: inline-flex; align-items: center; gap: 10px; }
.crumb svg { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.crumb:hover { color: var(--red); }
.crumb:hover svg { transform: translateX(-4px); }
.job-hero .split { margin-top: clamp(32px, 3.8vw, 62px); align-items: end; }
.job-hero h1 .accent { display: block; }
.job-hero .float__frame { aspect-ratio: 516 / 350; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.3vw, 40px); margin-top: clamp(64px, 7vw, 127px); }
.box { border-radius: var(--radius); background: rgba(224, 224, 224, .5); padding: clamp(32px, 4.5vw, 77px) clamp(28px, 5.7vw, 99px) clamp(40px, 5vw, 90px); }
.box h2 { color: var(--red); margin-bottom: clamp(28px, 3vw, 50px); }
.box--red { background: var(--red); color: #fff; }
.box--red h2 { color: #fff; }
.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 40px; }
.checklist li + li { margin-top: 18px; }
.checklist svg { position: absolute; left: 0; top: .2em; width: 17px; height: 17px; color: var(--red); }

/* ---------- Article ---------- */
.article { padding-top: clamp(140px, 11.8vw, 204px); }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1072px) minmax(0, 1fr); column-gap: var(--gap); }
.article__main { grid-column: 2; grid-row: 1; }
.article__date { font-size: 17px; letter-spacing: .06em; color: var(--quiet); }
.article h1 { margin-top: 26px; }
.article h1 .accent { display: block; }
.article__lead { margin-top: 36px; }
.article__media { margin-top: 36px; }
.article__media .media-wide { height: clamp(260px, 37.6vw, 650px); }
.article__body { margin-top: clamp(80px, 6vw, 110px); }
.article__body h2 { margin-top: clamp(56px, 5vw, 80px); margin-bottom: 24px; }
.article__body h2:first-child { margin-top: 0; }
.article__body h3 { margin-top: 44px; margin-bottom: 16px; }
.share { grid-column: 1; grid-row: 1; justify-self: start; align-self: start; position: sticky; top: 140px; margin-top: calc(clamp(260px, 25vw, 372px)); }
.share__title { font-size: 11px; letter-spacing: .18em; color: #939393; }
.share__list { list-style: none; margin-top: 20px; display: grid; gap: 14px; }
.share__list a, .share__list button { display: flex; align-items: center; gap: 14px; font-size: 12.5px; letter-spacing: .06em; color: #939393; transition: color .3s; }
.share__list span.b { width: 46px; height: 46px; border: 1px solid #939393; border-radius: var(--radius-sm); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.share__list svg { width: 19px; height: 19px; }
.share__list a:hover, .share__list button:hover { color: var(--red); }
.share__list a:hover span.b, .share__list button:hover span.b { border-color: var(--red); background: var(--red); color: #fff; }
.author { display: flex; align-items: center; gap: 26px; margin-top: clamp(64px, 6vw, 100px); padding: 40px; background: var(--paper-card); border-radius: var(--radius); }
.author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.author__name { color: var(--red); font-weight: 700; font-size: 17px; }
.author__role { color: var(--quiet); font-size: 14.5px; margin-top: 4px; }
.author__links { color: var(--red); font-size: 14.5px; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { padding: var(--section) 0 var(--gutter); }
.footer-box { background: var(--paper-soft); border-radius: var(--radius); padding-block: clamp(48px, 5.8vw, 100px) clamp(48px, 7vw, 120px); }
/* Logo-Footer.svg: 1366×542 artboard, artwork x 87–1280, y 114–430 (measured). */
.logo-foot { --w: clamp(170px, 13.8vw, 238px); display: block; width: var(--w); aspect-ratio: 1197 / 320; overflow: hidden; position: relative; }
.logo-foot img { position: absolute; max-width: none; width: calc(var(--w) * 1366 / 1197); left: calc(var(--w) * -85 / 1197); top: calc(var(--w) * -112 / 1197); }
.footer-box hr { border: 0; border-top: .5px solid var(--muted); margin: clamp(32px, 2.7vw, 46px) 0 clamp(32px, 2.4vw, 42px); }
.footer-cols { display: grid; grid-template-columns: 329fr 277fr 383fr 361fr; gap: 32px var(--gap); font-size: var(--fs-small); line-height: 1.2; }
.footer-cols ul { list-style: none; display: grid; gap: 17px; align-content: start; }
.footer-cols a { transition: color .3s; }
.footer-cols a:hover { color: var(--red); }
.footer-cols a[aria-current="page"] { color: var(--red); }
.footer-contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin-top: 26px; }
.footer-contact dt, .footer-contact dd { margin: 0; }
.footer-legal { margin-top: clamp(40px, 4vw, 60px); font-size: 14px; color: var(--quiet); }

/* ---------- Reveal (scroll-in) ---------- */
.js-anim [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js-anim [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Buttons that fade in keep their own hover transitions (without the reveal delay) */
.js-anim .btn[data-reveal] { transition: opacity 1s var(--ease-out) var(--d, 0ms), transform 1.3s var(--ease-out) var(--d, 0ms), filter 1s var(--ease-out) var(--d, 0ms), color .45s var(--ease-out) 0s, padding .3s ease-out 0s; }
.js-anim [data-reveal="fade"] { transform: none; }

.js-anim .media-wide .media-wide__clip { clip-path: inset(22% 38% 22% 38% round var(--radius)); transition: clip-path 1.7s var(--ease-inout); }
.js-anim .media-wide.is-in .media-wide__clip { clip-path: inset(0 0 0 0 round var(--radius)); }
@property --ms { syntax: "<number>"; inherits: true; initial-value: 1; }
.js-anim .media-wide .media-wide__clip img { --ms: 1.32; }
.js-anim .media-wide.is-in .media-wide__clip img { animation: settle 1.9s var(--ease-inout) both; }
@keyframes settle { from { --ms: 1.32; } to { --ms: 1; } }

.js-anim .bar, .js-anim .hero__bar { transform: scaleX(0); transition: transform 1.2s var(--ease-out) .9s; }
.js-anim .is-in .bar, .js-anim .hero.is-in .hero__bar { transform: scaleX(1); }

.js-anim .hero__media img { animation: hero-in 2.2s var(--ease-out) both; }
@keyframes hero-in { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }

@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; }
  .float, .hero__media img, .media-wide__clip img { translate: none !important; --py: 0px !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 44px; }
  .service:nth-child(n) { translate: none; }
  .service:nth-child(2n) { translate: 0 44px; }
  .news-grid, .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .cta__main { grid-column: 1 / span 7; }
  .cta__hours { grid-column: 1 / -1; }
  .share { display: none; }
  .article__grid { grid-template-columns: 1fr; }
  .article__main { grid-column: 1; }
}

@media (max-width: 900px) {
  /* Menu: fullscreen with visible sub items */
  .menu__scrim, .menu__aside { display: none; }
  .menu__panel { width: 100%; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 22px var(--gutter) 40px; }
  .menu__panel::before { content: ""; grid-row: 1; grid-column: 1; }
  .menu__brand { grid-row: 1; grid-column: 1; align-self: center; }
  .menu__close { grid-row: 1; grid-column: 1; }
  .menu__nav { grid-column: 1; grid-row: 2; align-self: start; padding-block: 48px 40px; }
  .menu__link { font-size: clamp(1.9rem, 1.3rem + 3vw, 2.4rem); }
  .menu__link:hover, .menu__item.is-active > .menu__link { transform: none; color: var(--ink); }
  .menu .menu__link--current, .menu .is-current-parent > .menu__link { color: var(--red); }
  .menu__sub { display: none; }
  /* Sub items: no dash, separated by hairlines, more air above and below the group */
  .menu__mobile-sub { display: block; list-style: none; margin: 18px 0 26px; padding: 0; }
  .menu__mobile-sub li + li { border-top: .5px solid var(--line); }
  .menu__mobile-sub a { display: block; padding: 11px 0; font-size: 1.0625rem; font-weight: 400; color: var(--muted); transition: color .3s ease-out; }
  .menu__mobile-sub a:hover, .menu__mobile-sub a[aria-current="page"] { color: var(--red); }
  .menu__label { cursor: default; }
  .menu__contact { grid-column: 1; grid-row: 3; border-top: .5px solid var(--red); padding-top: 28px; }

  .split > .split__l, .split > .split__r,
  .split--half > .split__l, .split--half > .split__r,
  .split--late > .split__l, .split--late > .split__r { grid-column: 1 / -1; }
  .row { grid-template-columns: 1fr; }
  .row > :first-child, .row > :last-child { grid-column: 1; }
  .feature { grid-template-columns: 1fr; }
  .feature--offset .panel-red { margin-top: 0; }
  .feature .float__frame { height: auto; aspect-ratio: 4 / 3; }
  .feature .panel-red { min-height: 0; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .float:nth-child(3) { display: none; }
  .cta__main, .cta__hours { grid-column: 1 / -1; }
  .boxes { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .page-hero__head { align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .services, .news-grid, .docs { grid-template-columns: 1fr; }
  .services { padding-bottom: 0; }
  .service:nth-child(n) { translate: none; }
  .service { aspect-ratio: auto; }
  .cta .icon-circle, .panel-red .icon-circle { display: none; }
  .menu__item + .menu__item { margin-top: 6px; }
  .team { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
  .member h3 { font-size: 1.15rem; }
  .member__role { font-size: .95rem; }
  .trio { grid-template-columns: 1fr; }
  .trio .float:nth-child(n) { margin-top: 0; display: block; }
  .trio .float__frame { aspect-ratio: 4 / 5; }
  .footer-cols { grid-template-columns: 1fr; }
  .deflist div { grid-template-columns: 1fr; gap: 6px; }
  .hours th, .hours td { display: block; padding-right: 0; }
  .hours tr { display: grid; grid-template-columns: 1fr; margin-bottom: 12px; }
  .hours tr td:empty { display: none; }
  .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .job { min-height: 96px; padding: 20px; }
  .job__cta > span:first-child { display: none; }
  .news { min-height: 0; }
  .news--text .news__body { padding-top: 8px; }
  .media-wide .bar { height: 18px; }
  .hero__bar { height: 18px; }
  .author { flex-direction: column; align-items: flex-start; padding: 28px; }
}

/* v2 components: tablet */
@media (max-width: 900px) {
  .phero__band { grid-template-columns: 1fr; }
  .phero .scroll-cue { left: auto; right: 0; bottom: auto; top: 0; transform: translateY(-100%); }
  .overlap__media { margin-left: var(--gutter); width: calc(100% - var(--gutter) + 8vw); }
  .values { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .values > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .acc__body { margin-left: clamp(0px, 6vw, 48px); }
}

/* v2 components: phone */
@media (max-width: 640px) {
  .values { grid-template-columns: 1fr; row-gap: 0; }
  .values > div, .values > div + div, .values > div:nth-child(3) { border-left: 0; padding: 24px 0; }
  .values > div + div { border-top: 1px solid rgba(255, 255, 255, .45); }
  .values h3 { min-height: 0; }
  .values p { margin-top: 12px; }
  .glass-sec { height: auto; overflow: visible; }
  .glass-sec__media { position: relative; height: 380px; overflow: hidden; }
  .glass, .glass--vision { position: relative; left: auto; bottom: auto; width: auto; margin: -96px var(--gutter) 0; }
  .acc__body { margin-left: 0; }
  .perk { width: 82vw; }
}
