@import url('fonts.css');

/* ==========================================================================
   barmotion.de — site.css
   Single stylesheet for the whole site. Dependency-free, mobile-first.
   Breakpoints: 560px · 768px · 1024px · 1280px
   --------------------------------------------------------------------------
   TABLE OF CONTENTS
   01  Design tokens
   02  Reset & base elements
   03  Base typography
   04  Layout: container, grid, split
   05  Buttons
   06  Skip link, focus, a11y helpers
   07  Site header: brand, nav, toggle, drawer
   08  Hero slideshow
   09  Sections & section heads
   10  Cards
   11  Features
   12  Quotes
   13  Stats
   14  Client logos
   15  Gallery & lightbox
   16  Forms
   17  Prose (legal / long form)
   18  Sticky mobile CTA bar
   19  Footer
   20  Utilities & page furniture
   21  Motion preferences
   22  Print
   ========================================================================== */


/* ==========================================================================
   01  DESIGN TOKENS
   Every hex in the whole stylesheet lives here. Nowhere else.
   ========================================================================== */

:root {
  /* --- Brand palette ---------------------------------------------------- */
  --ink:        #14100E;   /* page text on light, dark section bg           */
  --ink-soft:   #2A2320;
  --wine:       #8E1C1F;   /* brand red (from original #770D10, lifted AA)  */
  --wine-dark:  #5E1013;
  --wine-soft:  #B8484B;
  --brass:      #C8A45C;   /* accent: hairlines, eyebrows, numerals         */
  --cream:      #F7F4EE;   /* light section bg                               */
  --sand:       #EBE8E2;   /* original site tone                             */
  --taupe:      #7C6853;   /* original site tone                             */
  --muted:      #6B625A;   /* secondary text                                 */
  --line:       #DCD6CC;
  --white:      #FFFFFF;

  /* --- Extended palette (derived, still declared here) ------------------- */
  --ink-deep:   #0C0908;   /* footer base, lightbox backdrop                 */
  --cream-dim:  #D8D2C8;   /* secondary text on dark surfaces                */
  --brass-pale: #E8DCBE;   /* hover tint for brass on dark                   */
  --brass-deep: #7F6320;   /* brass as TEXT on light: 5.2:1 on cream (AA)    */
  --rose:       #E8898C;   /* error text on dark: 7.6:1 on ink (AA)          */
  --ok:         #27624A;   /* form success                                   */
  --ok-bg:      #EAF2ED;
  --paper:      #FFFFFF;   /* print only                                     */
  --carbon:     #000000;   /* print only                                     */
  --print-line: #999999;   /* print only                                     */

  /* --- Channel triplets, for alpha compositing without new hexes --------- */
  --ink-rgb:    20 16 14;
  --wine-rgb:   142 28 31;
  --brass-rgb:  200 164 92;
  --cream-rgb:  247 244 238;
  --taupe-rgb:  124 104 83;
  --white-rgb:  255 255 255;

  /* --- Contextual tokens (re-declared per section) ----------------------- */
  --bg:         var(--white);
  --fg:         var(--ink);
  --fg-muted:   var(--muted);
  --surface:    var(--cream);
  --surface-2:  var(--sand);
  --border:     var(--line);
  --accent:     var(--wine);
  /* --gold is brass that is safe as TEXT in the current context: the deep
     tone on light surfaces, the bright brass on dark ones. Decorative
     hairlines use it too, so an eyebrow and its rule always match. */
  --gold:       var(--brass-deep);

  /* --- Type ------------------------------------------------------------- */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-body:    1.0625rem;                         /* 17px — never lower    */
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;
  --fs-hero:    clamp(2.6rem, 6vw, 5rem);
  --fs-h2:      clamp(1.9rem, 3.4vw, 3rem);
  --fs-h3:      clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-lead:    clamp(1.06rem, 1.4vw, 1.25rem);
  --fs-quote:   clamp(1.35rem, 2.6vw, 2.05rem);
  --fs-stat:    clamp(2.6rem, 5vw, 4rem);

  --lh-body:    1.7;
  --lh-tight:   1.15;
  --ls-wide:    0.18em;   /* eyebrows, small caps labels                    */
  --ls-btn:     0.08em;

  /* --- Spacing scale: 4px × n ------------------------------------------- */
  --sp-1:  0.25rem;   /*  4px */
  --sp-2:  0.5rem;    /*  8px */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.25rem;   /* 20px */
  --sp-6:  1.5rem;    /* 24px */
  --sp-7:  1.75rem;   /* 28px */
  --sp-8:  2rem;      /* 32px */
  --sp-9:  2.25rem;   /* 36px */
  --sp-10: 2.5rem;    /* 40px */
  --sp-11: 2.75rem;   /* 44px */
  --sp-12: 3rem;      /* 48px */
  --sp-13: 3.25rem;   /* 52px */
  --sp-14: 3.5rem;    /* 56px */
  --sp-15: 3.75rem;   /* 60px */
  --sp-16: 4rem;      /* 64px */

  /* --- Measure & rhythm -------------------------------------------------- */
  --container:      1200px;
  --container-wide: 1440px;
  --gutter:         clamp(1rem, 4vw, 3rem);
  --gap:            clamp(1.5rem, 3vw, 2.5rem);
  --section-y:      clamp(3.5rem, 8vw, 7.5rem);
  --header-h:       4.5rem;
  --cta-bar-h:      3.75rem;
  --measure:        68ch;

  /* --- Radius ------------------------------------------------------------ */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;

  /* --- Elevation: warm-tinted, never pure black -------------------------- */
  --shadow-1:
    0 1px 2px rgb(var(--ink-rgb) / 0.05),
    0 6px 16px -6px rgb(var(--taupe-rgb) / 0.18);
  --shadow-2:
    0 2px 4px rgb(var(--ink-rgb) / 0.05),
    0 18px 40px -14px rgb(var(--taupe-rgb) / 0.30);

  /* --- Motion ------------------------------------------------------------ */
  --t: 220ms cubic-bezier(.22, .61, .36, 1);
  --t-slow: 520ms cubic-bezier(.22, .61, .36, 1);

  --z-drawer: 90;
  --z-cta: 95;
  --z-header: 100;
  --z-lightbox: 200;
  --z-skip: 300;

  color-scheme: light;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 5.5rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --gap: 2.75rem;
    --section-y: 8rem;
  }
}


/* ==========================================================================
   02  RESET & BASE ELEMENTS
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-h) + var(--sp-4));
  tab-size: 4;
}

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  min-block-size: 100svh;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Short pages (404, legal) still push the footer to the bottom. */
body > main {
  flex: 1 0 auto;
}

body > .site-footer,
body > .cta-bar {
  flex: none;
}

/* Pages without a hero start below the fixed header. */
body:not(:has(.hero)) {
  padding-block-start: var(--header-h);
}

/* The drawer locks the page behind it. */
body:has(.drawer.is-open) {
  overflow: hidden;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-inline-size: 100%;
}

img,
video {
  block-size: auto;
}

/* Inline icons default to the text colour, but an explicit fill attribute
   (icons drawn with fill="none" + stroke) must keep winning. */
svg:not([fill]) {
  fill: currentColor;
}

ul,
ol {
  padding-inline-start: 1.25em;
}

li {
  margin-block: 0.25em;
}

li::marker {
  color: var(--gold);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--t), text-decoration-color var(--t), background-color var(--t);
}

a:hover {
  color: var(--wine-dark);
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--fs-xs);
}

address {
  font-style: normal;
}

hr {
  border: 0;
  block-size: 1px;
  background-color: var(--border);
  margin-block: var(--sp-10);
}

figure {
  margin: 0;
}

figcaption {
  margin-block-start: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}

table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

th,
td {
  text-align: start;
  padding: var(--sp-3) var(--sp-4);
  border-block-end: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--fg);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

textarea {
  resize: vertical;
}

abbr[title] {
  text-decoration: none;
  border-block-end: 1px dotted currentColor;
  cursor: help;
}

::selection {
  background-color: rgb(var(--wine-rgb) / 0.92);
  color: var(--white);
}

[hidden] {
  display: none !important;
}


/* ==========================================================================
   03  BASE TYPOGRAPHY
   --font-display is reserved for .hero__title, .section__title, .quote__text,
   .stat__num — plus bare h1/h2 so unstyled markup still reads as the brand.
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--fg);
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.005em;
}

h1 {
  font-size: var(--fs-h2);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  font-family: var(--font-sans);
}

h4 {
  font-size: 1.0625rem;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

h5,
h6 {
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--fg-muted);
}

p {
  text-wrap: pretty;
}

/* Eyebrow — small brass kicker with a hairline, used above section titles. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block-end: var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  inline-size: var(--sp-8);
  block-size: 1px;
  background-color: var(--gold);
  flex: none;
}

.section__head .eyebrow::after {
  content: "";
  inline-size: var(--sp-8);
  block-size: 1px;
  background-color: var(--gold);
  flex: none;
}

/* Lead paragraph. */
.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--fg-muted);
  max-inline-size: var(--measure);
}

.lead strong {
  color: var(--fg);
}


/* ==========================================================================
   04  LAYOUT: CONTAINER · GRID · SPLIT
   ========================================================================== */

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

.container--wide {
  max-inline-size: var(--container-wide);
}

/* --- Grid ---------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Split: media beside body ------------------------------------------- */

.split {
  display: grid;
  gap: var(--gap);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .split--rev .split__media {
    order: 2;
  }
}

.split__media {
  position: relative;
  z-index: 0;
  border-radius: var(--r-lg);
}

.split__media > img,
.split__media > picture,
.split__media > picture > img,
.split__media > figure > picture > img {
  inline-size: 100%;
  border-radius: var(--r-lg);
}

/* Thin brass frame, offset behind the photo — editorial, desktop only. */
@media (min-width: 1024px) {
  .split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgb(var(--brass-rgb) / 0.7);
    border-radius: var(--r-lg);
    translate: var(--sp-5) var(--sp-5);
    pointer-events: none;
  }

  .split--rev .split__media::after {
    translate: calc(var(--sp-5) * -1) var(--sp-5);
  }
}

.split__body > * + * {
  margin-block-start: var(--sp-5);
}

.split__body .section__title + .lead {
  margin-block-start: var(--sp-5);
}

.split__body p {
  color: var(--fg-muted);
}

.split__body .btn {
  margin-block-start: var(--sp-3);
}


/* ==========================================================================
   05  BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-block-size: 3rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background-color: transparent;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--t),
    border-color var(--t),
    color var(--t),
    box-shadow var(--t),
    translate var(--t);
}

.btn svg {
  inline-size: 1.15em;
  block-size: 1.15em;
  flex: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Literal values — an e-mail address or a phone number must keep its own
   casing and spacing, so opt these out of the uppercase button treatment. */
.btn--literal {
  text-transform: none;
  letter-spacing: normal;
}

/* Primary — wine */
.btn--primary {
  background-color: var(--wine);
  border-color: var(--wine);
  color: var(--white);
  box-shadow: 0 1px 2px rgb(var(--ink-rgb) / 0.12);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--wine-dark);
  border-color: var(--wine-dark);
  color: var(--white);
}

/* Ghost — hairline, inherits the surrounding text colour */
.btn--ghost {
  border-color: rgb(var(--ink-rgb) / 0.28);
  color: var(--fg);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--fg);
  background-color: rgb(var(--ink-rgb) / 0.05);
  color: var(--fg);
}

/* Light — for dark backgrounds and over the hero */
.btn--light {
  background-color: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}

.btn--light:hover,
.btn--light:focus-visible {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

/* Large */
.btn--lg {
  min-block-size: 3.5rem;
  padding: 1.125rem 2.5rem;
  font-size: 0.95rem;
}

/* On dark surfaces the ghost button flips to light hairlines. */
.section--dark .btn--ghost,
.hero .btn--ghost,
.site-footer .btn--ghost {
  border-color: rgb(var(--white-rgb) / 0.45);
  color: var(--cream);
}

.section--dark .btn--ghost:hover,
.section--dark .btn--ghost:focus-visible,
.hero .btn--ghost:hover,
.hero .btn--ghost:focus-visible,
.site-footer .btn--ghost:hover,
.site-footer .btn--ghost:focus-visible {
  border-color: var(--brass);
  background-color: rgb(var(--brass-rgb) / 0.14);
  color: var(--white);
}


/* ==========================================================================
   06  SKIP LINK · FOCUS · A11Y HELPERS
   ========================================================================== */

.skip-link {
  position: fixed;
  inset-block-start: var(--sp-3);
  inset-inline-start: var(--sp-3);
  z-index: var(--z-skip);
  padding: var(--sp-3) var(--sp-5);
  background-color: var(--wine);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  translate: 0 calc(-100% - var(--sp-6));
  transition: translate var(--t);
}

.skip-link:focus,
.skip-link:focus-visible {
  translate: 0 0;
  color: var(--white);
}

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

.hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--brass);
}

/* Programmatic focus targets must not show a ring. */
[tabindex="-1"]:focus {
  outline: none;
}

main:focus {
  outline: none;
}


/* ==========================================================================
   07  SITE HEADER
   Transparent over the hero, solid cream once scrolled / without a hero /
   while the drawer is open.
   ========================================================================== */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: var(--z-header);
  --gold: var(--brass);
  color: var(--cream);
  background-color: transparent;
  background-image: linear-gradient(
    to bottom,
    rgb(var(--ink-rgb) / 0.62),
    rgb(var(--ink-rgb) / 0.22) 60%,
    rgb(var(--ink-rgb) / 0)
  );
  box-shadow: none;
  transition:
    background-color var(--t),
    color var(--t),
    box-shadow var(--t);
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-block-size: var(--header-h);
  transition: min-block-size var(--t);
}

/* --- Solid state --------------------------------------------------------- */

.site-header.is-scrolled,
body:not(:has(.hero)) .site-header,
body:has(.drawer.is-open) .site-header {
  --gold: var(--brass-deep);
  background-color: var(--cream);
  background-image: none;
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), var(--shadow-1);
}

.site-header.is-scrolled > .container {
  min-block-size: 4rem;
}

@media (min-width: 1024px) {
  .site-header.is-scrolled > .container {
    min-block-size: 4.75rem;
  }
}

/* --- Brand --------------------------------------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  flex: none;
}

.brand:hover {
  color: inherit;
}

.brand__logo {
  inline-size: auto;
  block-size: 2.125rem;
  transition: filter var(--t), block-size var(--t);
}

@media (min-width: 1024px) {
  .brand__logo {
    block-size: 2.625rem;
  }
}

/* The mark is near-black: knock it out to white while the header is
   transparent over the hero imagery, restore full colour when solid. */
.site-header .brand__logo {
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgb(var(--ink-rgb) / 0.55));
}

.site-header.is-scrolled .brand__logo,
body:not(:has(.hero)) .site-header .brand__logo,
body:has(.drawer.is-open) .site-header .brand__logo {
  filter: none;
}

.site-footer .brand__logo,
.section--dark .brand__logo {
  filter: brightness(0) invert(1);
}

/* --- Desktop navigation -------------------------------------------------- */

.nav {
  display: block;
}

/* Brand stays left; nav, CTA and toggle form one group on the right. */
.site-header .brand {
  margin-inline-end: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(var(--sp-4), 1.8vw, var(--sp-8));
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--sp-2);
  color: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t);
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  block-size: 1px;
  background-color: var(--gold);
  scale: 0 1;
  transform-origin: left center;
  transition: scale var(--t);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: inherit;
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after {
  scale: 1 1;
}

.nav__link.is-active {
  font-weight: 600;
}

.site-header.is-scrolled .nav__link:hover,
body:not(:has(.hero)) .site-header .nav__link:hover {
  color: var(--wine);
}

/* Below 1024px the horizontal nav inside the header is replaced by the
   drawer. The drawer's own copy of .nav stays visible. */
@media (max-width: 1023.98px) {
  .site-header .nav {
    display: none;
  }
}

/* --- Header CTA ---------------------------------------------------------- */

.header-cta {
  display: none;
  flex: none;
  min-block-size: 2.75rem;
  padding: 0.7rem 1.4rem;
  font-size: var(--fs-xs);
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* --- Nav toggle (hamburger) ---------------------------------------------- */

.nav-toggle {
  display: inline-grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  margin-inline-end: calc(var(--sp-2) * -1);
  position: relative;
  color: inherit;
  border-radius: var(--r-sm);
  flex: none;
}

.nav-toggle span {
  display: block;
  inline-size: 22px;
  block-size: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: translate var(--t), rotate var(--t), opacity var(--t);
}

/* Markup without child elements: draw the three bars from the button. */
.nav-toggle:not(:has(span, svg, i)) {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 22px 2px;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size var(--t);
}

.nav-toggle:not(:has(span, svg, i))::before,
.nav-toggle:not(:has(span, svg, i))::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inline-size: 22px;
  block-size: 2px;
  background-color: currentColor;
  border-radius: 2px;
  translate: -50% 0;
  transition: translate var(--t), rotate var(--t);
}

.nav-toggle:not(:has(span, svg, i))::before {
  inset-block-start: calc(50% - 7px);
}

.nav-toggle:not(:has(span, svg, i))::after {
  inset-block-start: calc(50% + 5px);
}

/* Open state — bars become an X. */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  translate: 0 7px;
  rotate: 45deg;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  translate: 0 -7px;
  rotate: -45deg;
}

.nav-toggle[aria-expanded="true"]:not(:has(span, svg, i)) {
  background-size: 0 2px;
}

.nav-toggle[aria-expanded="true"]:not(:has(span, svg, i))::before {
  inset-block-start: calc(50% - 1px);
  rotate: 45deg;
}

.nav-toggle[aria-expanded="true"]:not(:has(span, svg, i))::after {
  inset-block-start: calc(50% - 1px);
  rotate: -45deg;
}

/* Icon markup: a three-line SVG hamburger folds into an X. The offsets are
   relative to the viewBox, so any 3-line icon with evenly spaced lines works. */
.nav-toggle svg {
  inline-size: 1.625rem;
  block-size: 1.625rem;
}

.nav-toggle svg line,
.nav-toggle svg rect,
.nav-toggle svg path {
  transform-box: view-box;
  transform-origin: center;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle[aria-expanded="true"] svg > :first-child {
  transform: rotate(45deg) translateY(23%);
}

.nav-toggle[aria-expanded="true"] svg > :nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] svg > :last-child {
  transform: rotate(-45deg) translateY(-23%);
}

/* Only fold a genuine three-line icon. */
.nav-toggle svg > :only-child,
.nav-toggle[aria-expanded="true"] svg > :only-child {
  transform: none;
  opacity: 1;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* --- Drawer (full-screen mobile navigation) ------------------------------ */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  /* `safe` keeps a tall menu from being clipped at the top; the plain value
     is the fallback for engines that do not support it. */
  justify-content: flex-start;
  justify-content: safe center;
  gap: var(--sp-5);
  padding: calc(var(--header-h) + var(--sp-8)) var(--gutter) var(--sp-10);
  background-color: var(--cream);
  background-color: rgb(var(--cream-rgb) / 0.985);
  backdrop-filter: blur(10px);
  background-image:
    radial-gradient(
      120% 70% at 100% 0%,
      rgb(var(--brass-rgb) / 0.16),
      rgb(var(--brass-rgb) / 0) 60%
    );
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  translate: 0 -1.5rem;
  transition:
    opacity var(--t),
    translate var(--t),
    visibility var(--t);
}

.drawer.is-open {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
}

.drawer .nav,
.drawer .nav__list {
  display: block;
}

.drawer .nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-block-start: 1px solid var(--line);
}

.drawer .nav__item {
  margin: 0;
  border-block-end: 1px solid var(--line);
}

.drawer .nav__link {
  display: block;
  padding-block: var(--sp-5);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}

.drawer .nav__link::after {
  display: none;
}

.drawer .nav__link:hover,
.drawer .nav__link:focus-visible,
.drawer .nav__link.is-active {
  color: var(--wine);
}

.drawer .nav__link.is-active {
  padding-inline-start: var(--sp-4);
  border-inline-start: 2px solid var(--gold);
}

.drawer .btn {
  inline-size: 100%;
}

.drawer address,
.drawer p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.drawer a[href^="tel:"]:not(.btn),
.drawer a[href^="mailto:"]:not(.btn) {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.drawer a[href^="tel:"]:not(.btn):hover,
.drawer a[href^="mailto:"]:not(.btn):hover {
  color: var(--wine);
}

@media (min-width: 1024px) {
  .drawer {
    display: none;
  }
}


/* ==========================================================================
   08  HERO
   Full-viewport crossfading slideshow with a readability scrim.
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  --gold: var(--brass);
  /* One source of truth for the content inset. .hero uses it when .hero__inner
     is a direct child, .hero__slide inherits it when each slide carries its
     own copy of the content — both markup shapes line up identically. */
  --hero-pad-block-start: calc(var(--header-h) + var(--sp-10));
  --hero-pad-block-end: var(--sp-16);
  --hero-align: end;
  display: grid;
  align-content: var(--hero-align);
  align-items: var(--hero-align);
  min-block-size: min(100vh, 820px);
  min-block-size: min(100svh, 820px);
  padding-block: var(--hero-pad-block-start) var(--hero-pad-block-end);
  background-color: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    --hero-pad-block-end: calc(var(--sp-16) + var(--sp-8));
    --hero-align: center;
  }
}

/* Below 768px the sticky CTA bar overlays the viewport, so the hero keeps
   its content and its pager clear of it. */
@media (max-width: 767.98px) {
  body:has(.cta-bar) .hero {
    --hero-pad-block-end: calc(var(--sp-16) + var(--cta-bar-h));
  }

  body:has(.cta-bar) .hero__nav {
    inset-block-end: calc(var(--cta-bar-h) + var(--sp-3));
  }

  body:has(.cta-bar) .drawer {
    padding-block-end: calc(var(--sp-10) + var(--cta-bar-h));
  }
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* A slide is also the layout box for the content it carries, so markup that
   repeats .hero__inner inside every slide lands in exactly the same place as
   markup with a single .hero__inner next to .hero__slides. .hero__media and
   .hero__scrim are absolutely positioned and ignore this padding. */
.hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: var(--hero-align);
  align-items: var(--hero-align);
  padding-block: var(--hero-pad-block-start) var(--hero-pad-block-end);
  opacity: 0;
  /* Hidden slides leave the a11y tree and the tab order once they have faded
     out, so their links and buttons cannot be reached invisibly. */
  visibility: hidden;
  transition: opacity 900ms linear, visibility 0s linear 900ms;
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms linear, visibility 0s linear 0s;
}

/* Without JavaScript (or before it runs) the first slide must be visible. */
.hero__slides:not(:has(.is-active)) .hero__slide:first-child {
  opacity: 1;
  visibility: visible;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img,
.hero__media picture {
  inline-size: 100%;
  block-size: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 38%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(
      to bottom,
      rgb(var(--ink-rgb) / 0.58) 0%,
      rgb(var(--ink-rgb) / 0.30) 32%,
      rgb(var(--ink-rgb) / 0.62) 72%,
      rgb(var(--ink-rgb) / 0.86) 100%
    ),
    linear-gradient(
      to right,
      rgb(var(--ink-rgb) / 0.45) 0%,
      rgb(var(--ink-rgb) / 0) 70%
    );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block-end: var(--sp-5);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brass);
}

.hero__eyebrow::before {
  content: "";
  inline-size: var(--sp-10);
  block-size: 1px;
  background-color: var(--brass);
  flex: none;
}

.hero__title {
  max-inline-size: 18ch;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgb(var(--ink-rgb) / 0.45);
}

.hero__sub {
  margin-block-start: var(--sp-5);
  max-inline-size: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--cream);
  text-shadow: 0 1px 14px rgb(var(--ink-rgb) / 0.5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-block-start: var(--sp-8);
}

@media (max-width: 559.98px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* --- Slide pager --------------------------------------------------------- */

.hero__nav {
  position: absolute;
  z-index: 3;
  inset-block-end: var(--sp-4);
  inset-inline-start: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

@media (min-width: 768px) {
  .hero__nav {
    inset-inline-start: max(var(--gutter), calc(50vw - var(--container) / 2 + var(--gutter)));
    translate: 0 0;
    inset-block-end: var(--sp-10);
  }
}

.hero__dot {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-sm);
}

.hero__dot::after {
  content: "";
  inline-size: 1.75rem;
  block-size: 2px;
  background-color: rgb(var(--white-rgb) / 0.45);
  transition: background-color var(--t), inline-size var(--t);
}

.hero__dot:hover::after,
.hero__dot:focus-visible::after {
  background-color: rgb(var(--white-rgb) / 0.8);
}

.hero__dot.is-active::after {
  inline-size: 2.5rem;
  background-color: var(--brass);
}


/* ==========================================================================
   09  SECTIONS
   ========================================================================== */

.section {
  padding-block: var(--section-y);
  background-color: var(--bg);
  color: var(--fg);
}

.section--cream {
  --bg: var(--cream);
  --surface: var(--white);
  --surface-2: var(--sand);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.55);
}

/* Dark sections flip every contextual token — no component needs to know. */
.section--dark {
  --bg: var(--ink);
  --fg: var(--cream);
  --fg-muted: var(--cream-dim);
  --surface: var(--ink-soft);
  --surface-2: var(--ink-soft);
  --border: rgb(var(--white-rgb) / 0.14);
  --accent: var(--brass);
  --gold: var(--brass);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark a:not(.btn) {
  color: var(--brass);
}

.section--dark a:not(.btn):hover {
  color: var(--brass-pale);
}

.section--dark + .section--dark {
  padding-block-start: 0;
}

/* --- Section head -------------------------------------------------------- */

.section__head {
  max-inline-size: 64ch;
  margin-inline: auto;
  margin-block-end: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.section__head .lead {
  margin-inline: auto;
  margin-block-start: var(--sp-5);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}

.section--dark .section__title {
  color: var(--white);
}

.section__title + .lead {
  margin-block-start: var(--sp-5);
}

/* Spacing between stacked blocks inside a section. */
.section > .container > * + * {
  margin-block-start: clamp(2rem, 4vw, 3.5rem);
}

.section > .container > .section__head + * {
  margin-block-start: 0;
}


/* ==========================================================================
   10  CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition:
    border-color var(--t),
    box-shadow var(--t),
    translate var(--t);
}

.card:hover,
.card:focus-within {
  border-color: rgb(var(--brass-rgb) / 0.75);
  box-shadow: var(--shadow-2);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--surface-2);
}

.card__media img,
.card__media picture {
  inline-size: 100%;
  block-size: 100%;
}

.card__media img {
  object-fit: cover;
  transition: scale var(--t-slow);
}

.card:hover .card__media img {
  scale: 1.05;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
  padding: var(--sp-7) var(--sp-6) var(--sp-7);
}

@media (min-width: 768px) {
  .card__body {
    padding: var(--sp-8) var(--sp-7);
  }
}

.card__title {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
}

.card__title a {
  color: inherit;
  text-decoration: none;
}

.card__text {
  flex: 1;
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-block-start: var(--sp-2);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-decoration: none;
  align-self: flex-start;
}

.card__link::after {
  content: "\2192";
  font-size: 1.1em;
  line-height: 1;
  transition: translate var(--t);
}

.card__link:hover::after,
.card__link:focus-visible::after {
  translate: 4px 0;
}

/* The whole card is the click target, but only the link is focusable. */
.card__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.section--dark .card {
  background-color: var(--ink-soft);
}

.section--dark .card__link {
  color: var(--brass);
}


/* ==========================================================================
   11  FEATURES
   ========================================================================== */

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--sp-5);
  row-gap: var(--sp-2);
  align-items: start;
}

.feature__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  background-color: rgb(var(--brass-rgb) / 0.16);
  color: var(--taupe);
  flex: none;
}

.section--dark .feature__icon {
  background-color: rgb(var(--brass-rgb) / 0.18);
  color: var(--brass);
}

.feature__icon svg {
  inline-size: 1.4rem;
  block-size: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__icon img {
  inline-size: 1.5rem;
  block-size: 1.5rem;
}

.feature__title {
  align-self: center;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
}

.feature__text {
  grid-column: 2;
  color: var(--fg-muted);
  font-size: var(--fs-sm);
  line-height: 1.65;
}


/* ==========================================================================
   12  QUOTES
   ========================================================================== */

.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-block-start: var(--sp-6);
  border-block-start: 1px solid var(--border);
}

.quote__text {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--fg);
  text-wrap: pretty;
}

.section--dark .quote__text {
  color: var(--white);
}

.quote__author {
  margin-block-start: auto;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.quote__role {
  display: block;
  margin-block-start: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* A single centred quote (not in a grid) gets the full editorial treatment. */
.section__head + .quote,
.container > .quote:only-child {
  max-inline-size: 44ch;
  margin-inline: auto;
  text-align: center;
  align-items: center;
  border-block-start: 0;
}

.section__head + .quote .quote__role,
.container > .quote:only-child .quote__role {
  text-align: center;
}


/* ==========================================================================
   13  STATS
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-8) var(--sp-4);
  padding-block: var(--sp-10);
  border-block: 1px solid var(--border);
}

/* auto-fit collapses the tracks it does not need, so three stats span the
   band just as evenly as four. */
@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: var(--sp-4);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  align-items: center;
  text-align: center;
  padding-inline: var(--sp-3);
}

@media (min-width: 768px) {
  .stat + .stat {
    border-inline-start: 1px solid var(--border);
  }
}

@media (max-width: 767.98px) {
  .stat:nth-child(even) {
    border-inline-start: 1px solid var(--border);
  }
}

.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}

.stat__label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-wrap: balance;
}


/* ==========================================================================
   14  CLIENT LOGOS
   ========================================================================== */

.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-4);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 560px) {
  .logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-8) var(--sp-6);
  }
}

@media (min-width: 1024px) {
  .logos {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.logos__item {
  display: grid;
  place-items: center;
  margin: 0;
  padding: var(--sp-2);
  min-block-size: 4rem;
}

.logos__item img,
.logos__item picture {
  inline-size: auto;
  max-inline-size: 100%;
  max-block-size: 2.75rem;
  block-size: auto;
}

.logos__item img {
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter var(--t), opacity var(--t);
}

.logos__item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.section--dark .logos__item img {
  mix-blend-mode: screen;
  filter: grayscale(1) invert(1) contrast(0.9);
  opacity: 0.72;
}

.section--dark .logos__item:hover img {
  opacity: 1;
}


/* ==========================================================================
   15  GALLERY & LIGHTBOX
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 560px) {
  .gallery {
    gap: var(--sp-3);
  }
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery__item {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background-color: var(--surface-2);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
}

.gallery__item img,
.gallery__item picture {
  inline-size: 100%;
  block-size: 100%;
}

.gallery__item img {
  object-fit: cover;
  transition: scale var(--t-slow);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    rgb(var(--ink-rgb) / 0.42),
    rgb(var(--ink-rgb) / 0) 55%
  );
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  scale: 1.06;
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: none;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem);
  background-color: rgb(var(--ink-rgb) / 0.94);
  color: var(--cream);
}

.lightbox.is-open {
  display: grid;
}

.lightbox figure,
.lightbox__figure {
  display: grid;
  gap: var(--sp-4);
  justify-items: center;
  margin: 0;
}

.lightbox img {
  inline-size: auto;
  block-size: auto;
  max-inline-size: min(92vw, 1400px);
  max-block-size: 80svh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 80px -20px rgb(var(--ink-rgb) / 0.9);
}

.lightbox figcaption,
.lightbox__caption {
  color: var(--cream-dim);
  font-size: var(--fs-sm);
  text-align: center;
}

.lightbox button {
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  border: 1px solid rgb(var(--white-rgb) / 0.3);
  background-color: rgb(var(--white-rgb) / 0.08);
  color: var(--cream);
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color var(--t), border-color var(--t);
}

.lightbox button:hover,
.lightbox button:focus-visible {
  background-color: rgb(var(--white-rgb) / 0.2);
  border-color: var(--brass);
  color: var(--white);
}

.lightbox button svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__close {
  position: absolute;
  inset-block-start: clamp(0.75rem, 3vw, 1.5rem);
  inset-inline-end: clamp(0.75rem, 3vw, 1.5rem);
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  inset-block-start: 50%;
  translate: 0 -50%;
}

.lightbox__prev {
  inset-inline-start: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox__next {
  inset-inline-end: clamp(0.5rem, 2vw, 1.5rem);
}


/* ==========================================================================
   16  FORMS
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}

@media (min-width: 768px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-5) var(--sp-6);
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  min-inline-size: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.field__label abbr,
.field__label .req {
  color: var(--wine);
  border: 0;
  text-decoration: none;
  margin-inline-start: 0.15em;
}

.section--dark .field__label abbr,
.section--dark .field__label .req {
  color: var(--brass);
}

.field__input,
.field__select,
.field__textarea {
  inline-size: 100%;
  min-block-size: 3rem;
  padding: 0.8rem 1rem;
  background-color: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
  appearance: none;
}

.field__textarea {
  min-block-size: 9.5rem;
  line-height: 1.6;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.field__input:hover,
.field__select:hover,
.field__textarea:hover {
  border-color: var(--taupe);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgb(var(--wine-rgb) / 0.16);
}

.field__input:focus-visible,
.field__select:focus-visible,
.field__textarea:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

/* Native date inputs keep a sensible height on iOS. */
.field__input[type="date"] {
  min-block-size: 3rem;
}

.field__input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

/* Select chevron drawn from two gradients — no image, no hard-coded colour. */
.field__select {
  padding-inline-end: 3rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px;
  background-position: right 20px center, right 14px center;
  background-repeat: no-repeat;
}

/* Invalid state */
.field__input[aria-invalid="true"],
.field__select[aria-invalid="true"],
.field__textarea[aria-invalid="true"] {
  border-color: var(--wine);
  background-color: rgb(var(--wine-rgb) / 0.04);
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.45;
  color: var(--wine);
}

.field__error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 1.1rem;
  block-size: 1.1rem;
  margin-block-start: 0.15rem;
  border-radius: 50%;
  background-color: var(--wine);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.section--dark .field__error {
  color: var(--rose);
}

/* Consent checkbox.
   Indent + absolutely placed box, so the label text, links and any inline
   markup simply flow — works whether .field__check is the <label> itself or
   a wrapper around <input> + <label>. */
.field__check {
  position: relative;
  display: block;
  padding-inline-start: 2.1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--fg-muted);
  cursor: pointer;
}

.field__check input[type="checkbox"] {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.2rem;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin: 0;
  accent-color: var(--wine);
  cursor: pointer;
}

.field__check label {
  cursor: pointer;
}

.field__check a {
  color: var(--accent);
}

.field--full > .field__check {
  margin-block-start: var(--sp-1);
}

/* Help text under a field, and the note beside the submit button. */
.form__hint {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--fg-muted);
}

.form > .form__hint,
.form__note {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--fg-muted);
}

.form__note {
  margin-block-start: var(--sp-4);
  max-inline-size: 48ch;
}

.form__hint a,
.form__note a {
  color: var(--accent);
}

.section--dark .form__hint,
.section--dark .form__note {
  color: var(--cream-dim);
}

/* Status banner */
.form__status {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border);
  border-inline-start-width: 3px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.6;
  background-color: var(--surface);
}

.form__status--ok {
  border-color: var(--ok);
  background-color: var(--ok-bg);
  color: var(--ok);
}

.form__status--err {
  border-color: var(--wine);
  background-color: rgb(var(--wine-rgb) / 0.06);
  color: var(--wine-dark);
}

.form__status strong {
  font-weight: 600;
}

.section--dark .form__status {
  background-color: rgb(var(--white-rgb) / 0.06);
  color: var(--cream);
}

.section--dark .form__status--ok {
  border-color: var(--ok);
}

.section--dark .form__status--err {
  border-color: var(--wine-soft);
  color: var(--cream);
}

/* Honeypot: present for bots, invisible and unreachable for people. */
.hp-field {
  position: absolute !important;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Form on dark sections */
.section--dark .field__input,
.section--dark .field__select,
.section--dark .field__textarea {
  background-color: rgb(var(--white-rgb) / 0.05);
  border-color: rgb(var(--white-rgb) / 0.2);
  color: var(--cream);
}

.section--dark .field__input::placeholder,
.section--dark .field__textarea::placeholder {
  color: var(--cream-dim);
  opacity: 0.6;
}

.section--dark .field__input:hover,
.section--dark .field__select:hover,
.section--dark .field__textarea:hover {
  border-color: rgb(var(--white-rgb) / 0.4);
}

.section--dark .field__input:focus,
.section--dark .field__select:focus,
.section--dark .field__textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgb(var(--brass-rgb) / 0.22);
}


/* ==========================================================================
   17  PROSE — legal pages and long-form copy
   ========================================================================== */

.prose {
  max-inline-size: var(--measure);
  color: var(--fg);
  font-size: var(--fs-body);
  line-height: 1.75;
}

.prose > * + * {
  margin-block-start: var(--sp-5);
}

.prose h2 {
  margin-block-start: var(--sp-12);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.prose h3 {
  margin-block-start: var(--sp-9);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
}

.prose h4 {
  margin-block-start: var(--sp-7);
  font-size: 1.0625rem;
  font-weight: 600;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-block-start: var(--sp-3);
}

.prose h2::after {
  content: "";
  display: block;
  inline-size: var(--sp-10);
  block-size: 1px;
  margin-block-start: var(--sp-4);
  background-color: var(--gold);
}

.prose p,
.prose li {
  color: var(--fg-muted);
  text-wrap: pretty;
}

.prose strong {
  color: var(--fg);
}

.prose a {
  color: var(--wine);
  text-decoration: underline;
  text-decoration-color: rgb(var(--wine-rgb) / 0.35);
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.35em;
}

.prose li + li {
  margin-block-start: var(--sp-2);
}

.prose blockquote {
  margin-inline: 0;
  padding-inline-start: var(--sp-5);
  border-inline-start: 2px solid var(--gold);
  font-style: normal;
  color: var(--fg);
}

.prose address {
  color: var(--fg-muted);
}

.prose dl {
  display: grid;
  gap: var(--sp-2) var(--sp-5);
}

@media (min-width: 560px) {
  .prose dl {
    grid-template-columns: minmax(8rem, auto) 1fr;
  }
}

.prose dt {
  font-weight: 600;
  color: var(--fg);
}

.prose dd {
  margin: 0;
  color: var(--fg-muted);
}

.prose table {
  margin-block: var(--sp-6);
}

.prose hr {
  margin-block: var(--sp-10);
}

.prose > :first-child {
  margin-block-start: 0;
}

.prose small {
  color: var(--fg-muted);
}


/* ==========================================================================
   18  STICKY MOBILE CTA BAR
   ========================================================================== */

.cta-bar {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: var(--z-cta);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: var(--line);
  box-shadow: 0 -6px 22px -8px rgb(var(--ink-rgb) / 0.35);
  padding-block-end: env(safe-area-inset-bottom, 0px);
}

.cta-bar a,
.cta-bar .btn,
.cta-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-block-size: var(--cta-bar-h);
  padding: var(--sp-3) var(--sp-4);
  border: 0;
  border-radius: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-decoration: none;
}

.cta-bar a:last-child,
.cta-bar .btn:last-child,
.cta-bar button:last-child {
  background-color: var(--wine);
  color: var(--white);
}

.cta-bar svg {
  inline-size: 1.05rem;
  block-size: 1.05rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The bar must never cover page content. */
@media (max-width: 767.98px) {
  body:has(.cta-bar) {
    padding-block-end: calc(var(--cta-bar-h) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  .cta-bar {
    display: none;
  }
}


/* ==========================================================================
   19  FOOTER
   ========================================================================== */

.site-footer {
  --fg: var(--cream);
  --fg-muted: var(--cream-dim);
  --border: rgb(var(--white-rgb) / 0.14);
  --accent: var(--brass);
  --gold: var(--brass);
  background-color: var(--ink-deep);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 5rem) var(--sp-8);
  font-size: var(--fs-sm);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10) var(--gap);
}

@media (min-width: 560px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--sp-8) var(--sp-10);
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-inline-size: 0;
}

.footer__col .brand {
  color: var(--white);
  margin-block-end: var(--sp-2);
}

.footer__col p {
  color: var(--cream-dim);
  line-height: 1.7;
  max-inline-size: 36ch;
}

.footer__title {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brass);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin: 0;
}

.footer__list a,
.footer__col address a {
  color: var(--cream-dim);
  text-decoration: none;
  transition: color var(--t);
}

.footer__list a:hover,
.footer__list a:focus-visible,
.footer__col address a:hover,
.footer__col address a:focus-visible {
  color: var(--brass);
}

.footer__col address {
  color: var(--cream-dim);
  line-height: 1.8;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: var(--sp-6);
  border-block-start: 1px solid rgb(var(--white-rgb) / 0.12);
  font-size: var(--fs-xs);
  color: var(--cream-dim);
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  color: var(--cream-dim);
  text-decoration: none;
}

.footer__bottom a:hover,
.footer__bottom a:focus-visible {
  color: var(--brass);
  text-decoration: underline;
}

.footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__bottom li {
  margin: 0;
}


/* ==========================================================================
   20  UTILITIES & PAGE FURNITURE
   ========================================================================== */

/* Anchor offset for in-page targets under the fixed header. */
:target {
  scroll-margin-block-start: calc(var(--header-h) + var(--sp-6));
}

/* Telephone / mail links in body copy stay unobtrusive. */
.section a[href^="tel:"]:not(.btn, .card__link),
.section a[href^="mailto:"]:not(.btn, .card__link) {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgb(var(--brass-rgb) / 0.6);
  text-underline-offset: 0.2em;
}

.section a[href^="tel:"]:not(.btn, .card__link):hover,
.section a[href^="mailto:"]:not(.btn, .card__link):hover {
  color: var(--accent);
}

/* A full-bleed media band, e.g. between sections. */
.section > .container > figure img,
.section > .container > picture img {
  inline-size: 100%;
  border-radius: var(--r-md);
}

/* --- Breadcrumbs (subpages, directly below the header) ------------------- */

.breadcrumbs {
  padding-block: var(--sp-5) 0;
  background-color: var(--bg);
  font-size: var(--fs-xs);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin: 0;
  color: var(--fg-muted);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "\203A";
  color: var(--gold);
  font-size: 1.1em;
  line-height: 1;
}

.breadcrumbs__link {
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumbs__current {
  color: var(--fg);
  font-weight: 500;
}

.section--dark .breadcrumbs__link {
  color: var(--cream-dim);
}

/* Breadcrumb-ish small nav, if a page renders one as a bare <nav> in main. */
main > nav[aria-label]:not(.breadcrumbs) ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}

main > nav[aria-label]:not(.breadcrumbs) li + li::before {
  content: "\2022";
  margin-inline-end: var(--sp-2);
  color: var(--gold);
}

/* Long words (German compounds) must not blow out narrow columns. */
.card__title,
.feature__title,
.stat__label,
.field__label,
.footer__list a {
  overflow-wrap: break-word;
  hyphens: auto;
}


/* ==========================================================================
   21  MOTION PREFERENCES
   Everything decorative only moves when the visitor allows motion.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn--primary:hover,
  .btn--light:hover,
  .btn--lg:hover {
    translate: 0 -2px;
  }

  .card:hover {
    translate: 0 -4px;
  }

  /* Slow Ken-Burns drift on the active hero slide. */
  .hero__slide .hero__media img {
    scale: 1;
    transition: scale 9s linear;
  }

  .hero__slide.is-active .hero__media img,
  .hero__slides:not(:has(.is-active)) .hero__slide:first-child .hero__media img {
    scale: 1.06;
  }

  /* Reveal-on-scroll hook. Opt-in via the `js` class that site.js sets on
     <html>, so without JavaScript nothing is ever hidden. */
  .js [data-reveal] {
    opacity: 0;
    translate: 0 1.25rem;
    transition: opacity var(--t-slow), translate var(--t-slow);
  }

  .js [data-reveal].is-visible,
  .js [data-reveal].is-in {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__slide {
    transition: none;
  }

  [data-reveal],
  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }
}


/* ==========================================================================
   22  PRINT
   ========================================================================== */

@media print {
  :root {
    --bg: var(--paper);
    --fg: var(--carbon);
    --fg-muted: var(--carbon);
    --border: var(--print-line);
    --accent: var(--carbon);
    --gold: var(--carbon);
    --surface: var(--paper);
    --surface-2: var(--paper);
  }

  html,
  body {
    background: var(--paper) !important;
    color: var(--carbon) !important;
    font-size: 11pt;
    line-height: 1.5;
    padding: 0 !important;
    display: block !important;
    min-block-size: 0 !important;
  }

  .site-header,
  .nav,
  .nav-toggle,
  .drawer,
  .header-cta,
  .hero,
  .hero__nav,
  .cta-bar,
  .skip-link,
  .lightbox,
  .gallery,
  .logos,
  .form,
  .card__link::before {
    display: none !important;
  }

  .section,
  .section--dark,
  .section--cream,
  .site-footer,
  .card,
  .form__status {
    background: var(--paper) !important;
    color: var(--carbon) !important;
    box-shadow: none !important;
    padding-block: 1rem !important;
  }

  .section--dark h1,
  .section--dark h2,
  .section--dark h3,
  .section__title,
  .quote__text,
  .stat__num,
  .footer__title,
  .eyebrow,
  .card__text,
  .lead,
  .prose p,
  .prose li,
  .footer__col p,
  .footer__col address,
  .footer__bottom {
    color: var(--carbon) !important;
  }

  .eyebrow::before,
  .eyebrow::after,
  .prose h2::after {
    background: var(--carbon) !important;
  }

  a {
    color: var(--carbon) !important;
    text-decoration: underline;
  }

  .brand__logo {
    filter: none !important;
  }

  .logos__item img,
  .card__media img {
    filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
  }

  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  .card,
  .section,
  .stat,
  .quote {
    break-inside: avoid;
    border-color: var(--print-line) !important;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
  }

  img {
    max-block-size: 8cm;
    object-fit: contain;
  }

  .site-footer {
    border-block-start: 1px solid var(--print-line);
  }
}
