/* ==========================================================
   Storeline Consulting · styles
   Tokens follow Web Neu/DESIGN.md (Paper / Linen / Ink / Deep Navy)
   ========================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/open-sans-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 60-30-10 · see DESIGN.md */
  --canvas: #f8f8f8;        /* 60 %  page background */
  --navy: #112236;          /* 30 %  text, dark sections, secondary buttons */
  --orange: #f49f0a;        /* 10 %  accent marks only: dots, bars, bullets. Never text, never buttons. */
  --blue: #548bc9;          /* hover and focus only */
  --black: #000000;         /* button label on hover (5.9:1 on blue) */

  /* neutrals derived from navy + canvas */
  --surface: #ffffff;
  --tint: #eeeff1;
  --text: #3f4d5d;
  --body: #3f4d5d;
  --muted: #566270;
  --line: #dcdee1;
  --line-strong: #b3b8be;
  --field-border: #79828d;
  --navy-raised: #1f2f42;
  --line-on-navy: #2d3c4d;
  --on-navy-muted: #a7adb4;
  --error: #bd402c;

  --font: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 144px);
  --radius-panel: 28px;
  --radius-media: 20px;
  --radius-input: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

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

a { color: inherit; }

button { font: inherit; color: inherit; }

/* The hidden attribute must win over component display rules (e.g. .enquiry { display: grid }) */
[hidden] { display: none !important; }

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--canvas);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

::selection { background: var(--blue); color: var(--navy); }
:root { accent-color: var(--navy); caret-color: var(--navy); }
.site-footer :focus-visible, .section--navy :focus-visible { outline-color: var(--blue); }

/* ---------- Layout ---------- */

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

.section { padding-block: var(--section); }
.section--linen { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--canvas); }
.section--navy .section-lead,
.section--navy .lead { color: var(--on-navy-muted); }
.section--navy .label { color: var(--on-navy-muted); }
.section--navy .text-link { color: var(--canvas); text-decoration-color: var(--on-navy-muted); }
.section--navy .text-link:hover { text-decoration-color: var(--blue); }
.section--navy .side-note { background: var(--navy-raised); border-color: var(--line-on-navy); }
.section--navy .side-note p { color: var(--on-navy-muted); }
.section--navy .read-next,
.section--navy .read-next a { border-color: var(--line-on-navy); }
.section--navy .read-next a { color: var(--canvas); }
.section--navy .read-next a .icon { color: var(--canvas); }

/* Sub pages close with a navy chapter that runs straight into the footer */
.section--closing { padding-bottom: clamp(64px, 8vw, 104px); }
.section--navy .btn--primary { background: var(--canvas); color: var(--navy); }
.section--navy .btn--primary:hover { background: var(--blue); color: var(--black); }
.section--tight-top { padding-top: clamp(48px, 6vw, 72px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

/* ---------- Type ---------- */

/* Montserrat: headings, buttons, labels. Open Sans: everything else (body). */
h1, h2, h3, h4,
.display, .h2, .h3,
.btn, .label, .mono,
.section-title, .services-tabs__title, .article-title, .feature__title,
.phase__title, .proof__number, .service__num, .mail-link, .why__close,
.faq summary, .tab__label, .lang-switch {
  font-family: var(--font-display);
}

.display {
  font-size: clamp(2.4rem, 1.5rem + 3.1vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.5;
  color: var(--body);
  max-width: 38rem;
}

.body { color: var(--body); max-width: 40rem; }
.body + .body { margin-top: 1em; }

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 120ms var(--ease-out), border-color 200ms var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn .icon { font-size: 1.05rem; transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.btn:has(> .icon:last-child) { padding-right: 8px; gap: 14px; }
.btn > .icon:last-child {
  width: 32px; height: 32px;
  padding: 8px;
  border-radius: 50%;
  background: rgb(248 248 248 / 0.14);
}
.btn:hover > .icon:last-child { transform: translateX(2px); background: rgb(0 0 0 / 0.08); }
.section--navy .btn--primary > .icon:last-child { background: rgb(17 34 54 / 0.08); }

.btn--primary { background: var(--navy); color: var(--canvas); }
.btn--primary:hover { background: var(--blue); color: var(--black); }

.btn--ghost { border-color: var(--line-strong); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--blue); color: var(--black); }

.btn--block { width: 100%; }

.text-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 200ms var(--ease-out);
}
.text-link:hover { text-decoration-color: var(--blue); text-decoration-thickness: 2px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* ---------- Header: floating island ----------
   The bar floats as a pill inside the content width. The sticky wrapper is
   transparent and lets clicks through; only the pill itself is interactive. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  pointer-events: none;
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 8px 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(248 248 248 / 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  pointer-events: auto;
  transition: border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
/* Once scrolled, the pill lifts off the page with one ultra-diffuse shadow */
.site-header.is-scrolled .site-header__inner {
  background: rgb(248 248 248 / 0.92);
  border-color: var(--line-strong);
  box-shadow: 0 12px 32px -16px rgb(17 34 54 / 0.18);
}

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; flex: none; }
.brand img { width: 120px; height: auto; }

.nav { flex: 1; display: flex; align-items: center; gap: 24px; }
.nav__list {
  display: flex;
  gap: 32px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.975rem;
  color: var(--body);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { background: var(--blue); }
.nav__link[aria-current="page"]:hover::after { background: var(--navy); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--navy); }

/* Home: the header CTA waits until the hero CTA has scrolled away (main.js) */
.nav__cta { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), visibility 0s, background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
@media (min-width: 900px) {
  .site-header.cta-waiting .nav__cta {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 0s 250ms;
  }
}

/* Hamburger: two lines that turn into an X */
.menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--canvas);
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
@media (hover: hover) {
  .menu-toggle:hover { background: var(--blue); color: var(--black); }
}
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 400ms var(--ease-out), top 400ms var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: calc(100% - 1.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-4.25px) rotate(-45deg); }

@media (max-width: 899px) {
  .site-header__inner { height: 60px; padding: 0 6px 0 20px; }
  .brand img { width: 112px; }
  .menu-toggle { display: inline-flex; }

  /* Full-screen menu. The pill drops its blur while open, otherwise it would
     become the containing block of this fixed layer. */
  .site-header.menu-open .site-header__inner {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--canvas);
    box-shadow: none;
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
    padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--canvas);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms var(--ease-out), visibility 0s 300ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 300ms var(--ease-out); }
  .nav__list { flex-direction: column; gap: 0; margin: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block;
    padding: 18px 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-color: var(--orange); }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .nav__actions .btn { width: 100%; min-height: 52px; }

  /* Staggered entrance of the menu items */
  .nav__list li, .nav__actions {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .nav.is-open .nav__list li, .nav.is-open .nav__actions { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: 60ms; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 110ms; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 160ms; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 210ms; }
  .nav.is-open .nav__actions { transition-delay: 260ms; }
}
html.menu-locked { overflow: hidden; }
.site-header.menu-open { z-index: 70; } /* above the consent banner */

/* Without JavaScript the menu cannot open, so show it inline instead */
.no-js .menu-toggle { display: none; }
@media (max-width: 899px) {
  .no-js .site-header__inner { flex-wrap: wrap; height: auto; padding: 12px 20px; border-radius: 28px; }
  .no-js .nav { position: static; visibility: visible; opacity: 1; padding: 0 0 8px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; width: 100%; }
  .no-js .nav__list li, .no-js .nav__actions { opacity: 1; transform: none; }
  .no-js .nav__link { font-size: 1.125rem; padding: 12px 0; }
}

/* ---------- Language switch (EN / DE) ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}
a.lang-switch__item:hover { color: var(--navy); }
.lang-switch__item[aria-current="true"] { color: var(--navy); font-weight: 600; }
.lang-switch__sep { color: var(--line-strong); }
@media (max-width: 899px) {
  .lang-switch { padding: 8px 0; font-size: 0.875rem; }
}

/* ---------- Hero (home) ---------- */

.mono {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}


/* Statement hero: the headline carries the page, two lines on desktop.
   Lead + CTA in a 6/5 split, three trust facts as a hairline row,
   and the shelf panorama closes the section. */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: var(--section); }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 2vw, 28px);
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.hero__title {
  font-size: clamp(2.5rem, 1.35rem + 3.75vw, 4.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 32px;
  align-items: end;
  margin-top: clamp(28px, 3.4vw, 48px);
}
.hero__lead {
  grid-column: 1 / span 6;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--body);
  max-width: 36rem;
}
.hero__cta { grid-column: 8 / -1; justify-self: end; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(40px, 4.4vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.hero__facts li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 20px 24px 0 0;
}
.hero__facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__facts .label { flex: none; color: var(--muted); }
.hero__facts p {
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.hero__media {
  margin-top: clamp(40px, 4.4vw, 64px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--tint);
  aspect-ratio: 1918 / 620;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* One orchestrated entrance on load, nothing on scroll */
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-settle { from { opacity: 0; transform: scale(1.04); } }
.hero__eyebrow, .hero__title, .hero__lead, .hero__cta, .hero__facts {
  animation: hero-rise 900ms var(--ease-out) both;
}
.hero__title { animation-delay: 90ms; }
.hero__lead { animation-delay: 180ms; }
.hero__cta { animation-delay: 270ms; }
.hero__facts { animation-delay: 360ms; }
.hero__media img { animation: hero-settle 1600ms var(--ease-out) both 200ms; }

@media (max-width: 1023px) {
  .hero__lead, .hero__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 767px) {
  .hero__facts { grid-template-columns: 1fr; border-top: 0; }
  .hero__facts li { padding: 14px 0; border-top: 1px solid var(--line); }
  .hero__facts li + li { padding-left: 0; border-left: 0; }
  .hero__media { aspect-ratio: 4 / 3; border-radius: 20px; }
  .hero__media img { object-position: 21% 50%; } /* keeps the orange bottle centred */
}

/* ---------- Shared section type (homepage, per Stitch) ---------- */

.section-title {
  font-size: clamp(2.25rem, 1.6rem + 2.3vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-lead {
  margin-top: 24px;
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  line-height: 1.5;
  color: var(--body);
  max-width: 40rem;
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 28px;
  flex: none;
}
.icon-circle--linen { background: var(--tint); }

/* ---------- Eyebrow: section label with an orange accent dot ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.section--navy .eyebrow { color: var(--on-navy-muted); }

/* ---------- Why Germany is hard ---------- */

.why__head { max-width: 47.5rem; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(32px, 5vw, 80px);
  margin-top: clamp(56px, 7vw, 88px);
}
ul.why__grid[role="list"] { padding: 0; }
.why__card {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.why__num { display: block; margin-bottom: 20px; color: var(--navy); }
.why__card h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.why__card p { color: var(--body); max-width: 26rem; line-height: 1.5; }
.why__close {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 47.5rem;
}
@media (max-width: 767px) {
  .why__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
}

/* ---------- Proof / 25+ bento ---------- */

.proof__head { max-width: 45rem; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.proof__cell {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 40px;
}
.proof__figure {
  grid-column: 1 / span 5;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.proof__number {
  font-size: clamp(6rem, 4.4rem + 4.4vw, 8.75rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.proof__label { margin-top: 16px; color: var(--body); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.05em; }
.proof__figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-media);
  border: 1px solid var(--line);
}
.proof__side { grid-column: 6 / -1; }
.proof__side h3 { margin-top: 24px; font-size: 1.5rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.proof__side p { margin-top: 12px; color: var(--body); line-height: 1.5; }
.proof__wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
}
.proof__wide-text { display: flex; align-items: center; gap: 24px; flex: 1 1 32rem; }
.proof__wide-text p { color: var(--body); line-height: 1.5; }
.proof__wide-text strong {
  display: inline;
  margin-right: 10px;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
/* Proof as the navy chapter of the home page */
.section--navy .proof__cell { background: var(--navy-raised); border-color: var(--line-on-navy); }
.section--navy .proof__number { color: var(--canvas); }
.section--navy .proof__label,
.section--navy .proof__side p,
.section--navy .proof__wide-text p { color: var(--on-navy-muted); }
.section--navy .proof__wide-text strong { color: var(--canvas); }
.section--navy .proof__figure img { border-color: var(--line-on-navy); }
.section--navy .icon-circle { background: var(--navy); border-color: var(--line-on-navy); color: var(--canvas); }
@media (max-width: 1023px) {
  .proof__grid { grid-template-columns: minmax(0, 1fr); }
  .proof__figure, .proof__side, .proof__wide { grid-column: 1 / -1; }
  .proof__cell { padding: 32px; }
  .proof__wide-text { align-items: flex-start; }
}

/* ---------- Services tabs ---------- */

.services-tabs__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}
.services-tabs__intro { grid-column: 1 / span 4; padding-right: 16px; }
.services-tabs__title {
  font-size: clamp(2.2rem, 1.9rem + 1vw, 2.65rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.services-tabs__lead { margin: 24px 0 48px; font-size: 1.1875rem; line-height: 1.55; color: var(--body); }

.services-tabs__nav { grid-column: 5 / span 3; }

/* Tells visitors the four services are clickable */
.tab-hint {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tab-hint span { display: inline-flex; align-items: center; gap: 8px; }
.tab-hint .icon { font-size: 18px; color: var(--navy); }
.tab-hint__touch { display: none !important; }
@media (hover: none) {
  .tab-hint__pointer { display: none !important; }
  .tab-hint__touch { display: inline-flex !important; }
}

.tablist {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tablist::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}
.tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 999px;
}
.tab__circle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--body);
  font-size: 22px;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.tab__label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--body);
  transition: color 200ms var(--ease-out);
}
.tab:hover .tab__label { color: var(--navy); }
.tab:hover .tab__circle { border-color: var(--blue); }
.tab[aria-selected="true"] .tab__circle { background: var(--navy); border-color: var(--navy); color: var(--canvas); }
.tab[aria-selected="true"] .tab__label { color: var(--navy); }

.tabpanels { grid-column: 8 / span 5; }
.tabpanel {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 32px;
}
.tabpanel.is-entering { animation: panel-in 220ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tabpanel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-media);
  border: 1px solid var(--line);
  background: var(--canvas);
}
.tabpanel__phase { margin-top: 32px; color: var(--muted); }
.tabpanel h3 { margin-top: 12px; font-size: clamp(1.6rem, 1.4rem + 0.5vw, 1.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.tabpanel p:last-child { margin-top: 16px; color: var(--body); line-height: 1.55; }

@media (max-width: 899px) {
  .services-tabs__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .services-tabs__intro, .services-tabs__nav, .tabpanels { grid-column: 1 / -1; }
  .tab-hint { margin-bottom: 16px; }
  .services-tabs__lead { margin-bottom: 32px; }
  .tablist {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .tablist::-webkit-scrollbar { display: none; }
  .tablist::before { display: none; }
  .tab { flex-direction: column; text-align: center; gap: 8px; padding: 8px 10px; min-width: 104px; scroll-snap-align: start; border-radius: 16px; }
  .tab__label { font-size: 0.9375rem; }
  .tabpanel { padding: 20px; }
}

/* ---------- How we work (hover accordion) ---------- */

.process__head { max-width: 44rem; margin-bottom: clamp(56px, 7vw, 80px); }
.process__head .h2 { margin-bottom: 20px; }

.process {
  --g1: 1; --g2: 1; --g3: 1; --g4: 1;
  --gap: 16px;
}
.phases {
  display: flex;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* the track line runs through the centre of every stop */
.phases::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.phases::after {
  content: "";
  position: absolute;
  top: 23px;
  right: 0;
  width: 11px; height: 11px;
  border-top: 1.5px solid var(--line-strong);
  border-right: 1.5px solid var(--line-strong);
  transform: rotate(45deg);
}
.phase {
  flex: var(--grow, 1) 1 0;
  min-width: 0;
  position: relative;
  transition: flex-grow 320ms var(--ease-out);
}
.phase:nth-child(1) { --grow: var(--g1); }
.phase:nth-child(2) { --grow: var(--g2); }
.phase:nth-child(3) { --grow: var(--g3); }
.phase:nth-child(4) { --grow: var(--g4); }

.phase__stop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  color: var(--navy);
  font-size: 24px;
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out), border-color 250ms var(--ease-out);
}
.section--linen .phase__stop { background: var(--canvas); }

.phase__card {
  display: flex;
  flex-direction: column;
  height: calc(100% - 88px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid transparent;
  transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out);
}
.phase__toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.phase__label { display: block; margin-bottom: 12px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.phase__toggle { margin-bottom: 8px; }
.phase__title {
  display: block;
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.phase__more {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 320ms var(--ease-out), opacity 240ms var(--ease-out);
}
.phase__more > div { overflow: hidden; padding-bottom: 32px; }
.phase__promise {
  margin-top: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.phase__body {
  margin-top: 14px;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--body);
}
.keypoint {
  margin-top: auto;
  padding-left: 16px;
  border-left: 2px solid var(--orange);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
}

/* JS-enhanced desktop state: one phase open, the rest collapsed */
.js .process.is-enhanced .phase:not(.is-open) .phase__more {
  grid-template-rows: 0fr;
  opacity: 0;
}
.js .process.is-enhanced .phase.is-open .phase__card {
  background: var(--canvas);
  border-color: var(--line);
}
.js .process.is-enhanced .phase.is-open .phase__stop {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--canvas);
}
.js .process.is-enhanced .phase:not(.is-open) .phase__toggle:hover .phase__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }

/* commission bracket follows the widths of phases 3 and 4 */
.bracket-row {
  display: flex;
  gap: var(--gap);
  margin-top: 40px;
}
.bracket-row__spacer { flex: calc(var(--g1) + var(--g2)) 1 0; transition: flex-grow 320ms var(--ease-out); }
.bracket {
  flex: calc(var(--g3) + var(--g4)) 1 0;
  transition: flex-grow 320ms var(--ease-out);
  min-width: 0;
}
.bracket__line {
  height: 14px;
  border: 1px solid var(--navy);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  margin: 0 28px 20px;
}
.bracket__note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font-size: 0.975rem;
  line-height: 1.45;
}
.bracket__note .icon { color: var(--navy); font-size: 22px; margin-top: 1px; }
.bracket__note strong { color: var(--navy); font-weight: 600; }

@media (max-width: 1023px) {
  .phases::after { display: none; }
  .phase__more > div { padding-bottom: 0; }
  .keypoint { margin-top: 20px; }
  .phases { flex-direction: column; gap: 12px; }
  .phases::before { top: 0; bottom: 0; left: 28px; right: auto; width: 1px; height: auto; }
  .phase { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .phase__stop { margin: 0; }
  .phase__card { height: auto; padding: 12px 20px 20px; }
  .bracket-row { display: block; }
  .bracket-row__spacer, .bracket__line { display: none; }
  .bracket__note { border-radius: 20px; }
}

/* ---------- Contact & enquiry form ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 64px;
  align-items: start;
}
.contact__copy { grid-column: 1 / span 5; }
.contact__form { grid-column: 6 / -1; }
.contact .section-lead { max-width: 29rem; }

.assurances { list-style: none; margin: 48px 0 0; padding: 0; }
ul.assurances[role="list"] { padding: 0; }
.assurances li {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.assurances li:last-child { border-bottom: 1px solid var(--line); }
.assurances .icon { font-size: 20px; color: var(--navy); margin-top: 2px; grid-row: span 2; }
.assurances strong { font-weight: 600; line-height: 1.35; }
.assurances span { color: var(--body); font-size: 0.9375rem; margin-top: 2px; }

.form-card {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: clamp(24px, 4vw, 48px);
}
.enquiry { display: grid; gap: 20px; }
.enquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.9375rem; font-weight: 600; margin-bottom: 8px; }
.field label span { color: var(--body); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: var(--radius-input);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--blue);
}
.field [aria-invalid="true"],
.field [aria-invalid="true"]:hover { border-color: var(--error); }
.field__error { margin-top: 6px; font-size: 0.875rem; color: var(--error); }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid { color: var(--muted); }
.select .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--body); pointer-events: none; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn--submit { min-height: 52px; margin-top: 8px; font-size: 1rem; }
.btn--submit:disabled { opacity: 0.7; cursor: progress; }
.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgb(248 248 248 / 0.35);
  border-top-color: var(--canvas);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn--submit.is-sending .spinner { display: inline-block; }
.btn--submit.is-sending .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.enquiry__error { font-size: 0.9375rem; color: var(--error); }
.enquiry__error a, .enquiry__note a { color: inherit; text-underline-offset: 3px; }
.enquiry__note { font-size: 0.875rem; color: var(--body); line-height: 1.55; }

.enquiry__success { padding: 32px 0; outline: none; }
.enquiry__success .icon { font-size: 32px; color: var(--navy); margin-bottom: 20px; }
.enquiry__success h3 { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; }
.enquiry__success p { margin-top: 12px; color: var(--body); max-width: 30rem; }
.enquiry__success .enquiry__sign { margin-top: 24px; color: var(--navy); font-weight: 600; }

@media (max-width: 1023px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .contact__copy, .contact__form { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .enquiry__row { grid-template-columns: 1fr; }
}

/* ---------- Page hero (sub pages) ---------- */

.page-hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 7vw, 96px); }
.page-hero .display { max-width: 15em; margin-bottom: 28px; }
.page-hero .lead { max-width: 40rem; }
.page-hero__grid { row-gap: 48px; align-items: end; }
.page-hero__copy { grid-column: 1 / span 7; }
.page-hero__aside { grid-column: 9 / span 4; }
@media (max-width: 899px) {
  .page-hero__copy, .page-hero__aside { grid-column: 1 / -1; }
}

/* ---------- Split section (heading left, content right) ---------- */

.split { row-gap: 32px; }
.split__head { grid-column: 1 / span 5; }
.split__body { grid-column: 7 / span 6; }
@media (max-width: 899px) {
  .split__head, .split__body { grid-column: 1 / -1; }
}

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.rows > li { padding: 24px 0; border-bottom: 1px solid var(--line-strong); }
.rows strong { display: block; font-weight: 600; font-size: 1.125rem; margin-bottom: 6px; }
.rows p { color: var(--body); }

/* ---------- About ---------- */

.team {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 32px;
}
.team__title { font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 16px; }
.team__list { list-style: none; margin: 0; padding: 0; }
.team__list li { padding: 14px 0; border-top: 1px solid var(--line); }
.team__name { font-weight: 600; display: block; }
.team__role { color: var(--body); font-size: 0.95rem; }
.team__place {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--body); font-size: 0.95rem;
}
.team__place .icon { color: var(--navy); font-size: 20px; }

.mistakes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px clamp(32px, 5vw, 80px);
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
}
/* Numbered rows, same pattern as "Why Germany is hard" on the home page */
.mistakes li {
  grid-column: span 6;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.mistakes__num { display: block; margin-bottom: 16px; color: var(--navy); }
.mistakes strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.mistakes li > span:last-child { color: var(--body); }
.statement {
  margin-top: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--orange);
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.4;
  max-width: 44rem;
}
@media (max-width: 767px) {
  .mistakes li { grid-column: 1 / -1 !important; }
}

/* ---------- CTA band ---------- */

.cta-band__grid { row-gap: 32px; align-items: end; }
.cta-band__copy { grid-column: 1 / span 7; }
.cta-band__copy .h2 { margin-bottom: 16px; }
.cta-band__actions { grid-column: 9 / span 4; justify-self: start; }
@media (max-width: 899px) {
  .cta-band__copy, .cta-band__actions { grid-column: 1 / -1; }
}

/* ---------- Services page ---------- */

.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service {
  padding: clamp(40px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line-strong);
  row-gap: 28px;
}
.service__num {
  grid-column: 1 / span 1;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.service__main { grid-column: 2 / span 5; }
.service__main .h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-bottom: 14px; }
.service__main p { color: var(--body); max-width: 30rem; }
.service__deliver {
  grid-column: 8 / span 5;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 32px;
}
.service__deliver h3 { font-size: 0.8125rem; font-weight: 400; color: var(--body); margin-bottom: 12px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.checklist .icon { color: var(--navy); font-size: 18px; }
@media (max-width: 899px) {
  .service__num, .service__main, .service__deliver { grid-column: 1 / -1; }
}

.pricing { row-gap: 24px; margin-top: clamp(40px, 5vw, 56px); }
.price-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 40px;
}
.price-card:first-child { grid-column: 1 / span 5; }
.price-card:last-child { grid-column: 6 / span 7; border-top: 2px solid var(--orange); }
.price-card .h3 { margin: 12px 0 12px; }
.price-card p { color: var(--body); max-width: 28rem; }
@media (max-width: 899px) {
  .price-card:first-child, .price-card:last-child { grid-column: 1 / -1; }
}

/* FAQ uses native details/summary, works without JavaScript */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon {
  flex: none;
  width: 32px; height: 32px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  transition: transform 250ms var(--ease-out), border-color 200ms var(--ease-out);
}
.faq summary:hover .icon { border-color: var(--blue); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--body); max-width: 40rem; }

.read-next { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.read-next a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 600;
}
.read-next a .icon { color: var(--navy); font-size: 20px; transition: transform 200ms var(--ease-out); }
.read-next a:hover .icon { transform: translateX(4px); }

/* ---------- Insights index ---------- */

.feature {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 40px;
  align-items: center;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 24px;
  text-decoration: none;
  transition: border-color 200ms var(--ease-out);
}
.feature:hover { border-color: var(--blue); }
.feature__media { grid-column: 1 / span 7; }
.feature__copy { grid-column: 8 / span 5; padding: 16px 24px 16px 0; }
.thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
.feature .thumb { aspect-ratio: 16 / 10; }
.feature:hover .thumb img, .article-card:hover .thumb img { transform: scale(1.02); }
.thumb--plain { display: flex; align-items: center; justify-content: center; }
.thumb--plain img { width: 46%; height: auto; max-height: 88%; object-fit: contain; opacity: 0.85; }
.thumb--icon { color: var(--navy); font-size: clamp(56px, 7vw, 88px); background: var(--tint); }
.thumb--icon .icon { transition: transform 400ms var(--ease-out); }
.article-card:hover .thumb--icon .icon { transform: scale(1.06); }

.meta { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--body); }
.meta .icon { font-size: 18px; }

.feature__copy .label, .article-card .label { display: block; margin-bottom: 12px; }
.feature__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 16px; }
.feature__copy p { color: var(--body); margin-bottom: 24px; }
.feature__foot, .article-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fake-link { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-strong); }

.article-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 24px;
  text-decoration: none;
  transition: border-color 200ms var(--ease-out);
}
.article-card:hover { border-color: var(--blue); }
.article-card .thumb { margin-bottom: 24px; }
.article-card h2 { font-size: 1.4rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px; }
.article-card p { color: var(--body); margin-bottom: 24px; }
.article-card__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }

.upcoming { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.upcoming li {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1.1rem;
}
.upcoming span { color: var(--body); font-size: 0.9rem; white-space: nowrap; }

@media (max-width: 899px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature__media, .feature__copy { grid-column: 1 / -1; }
  .feature__copy { padding: 0 8px 8px; }
  .article-cards { grid-template-columns: 1fr; }
  .upcoming li { flex-direction: column; gap: 4px; }
}

/* ---------- Article ---------- */

.article-head { padding-top: clamp(48px, 6vw, 88px); }
.article-head .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.article-head__inner { grid-column: 4 / -1; max-width: 56rem; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
@media (max-width: 1023px) { .article-head__inner { grid-column: 1 / -1; } }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--body);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  min-height: 44px;
  margin-top: -12px;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--navy); }
.article-head .label { display: block; margin-bottom: 16px; }
.article-title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.article-layout { padding-top: clamp(48px, 6vw, 72px); padding-bottom: var(--section); row-gap: 40px; }
.toc { grid-column: 1 / span 3; }
.toc__inner { position: sticky; top: calc(var(--header-h) + 32px); }
.toc__title { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--body); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a {
  display: block;
  padding: 8px 0 8px 16px;
  border-left: 2px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--body);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.toc a:hover { color: var(--navy); }
.toc a.is-active { color: var(--navy); border-left-color: var(--navy); }

.prose { grid-column: 4 / span 7; max-width: 42.5rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.7; color: var(--text); }
.prose .prose-lead { font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.35rem); line-height: 1.55; color: var(--navy); }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.prose h2 + p { margin-top: 0.7em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--orange); }
.prose strong { font-weight: 600; color: var(--navy); }
.prose a { text-decoration-color: var(--navy); text-underline-offset: 3px; }

.pullquote {
  margin: 2.2em 0 !important;
  padding: 36px 40px;
  background: var(--tint);
  border-radius: var(--radius-panel);
}
.pullquote::before {
  content: "";
  display: block;
  width: 32px; height: 2px;
  margin-bottom: 20px;
  background: var(--orange);
}
.pullquote p {
  font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem) !important;
  font-weight: 600;
  line-height: 1.4 !important;
  letter-spacing: -0.015em;
  color: var(--navy) !important;
}
.pullquote figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--body); }

.article-cta {
  margin-top: 3em !important;
  padding: 40px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.article-cta .h3 { margin-bottom: 12px; }
.article-cta p { font-size: 1rem !important; color: var(--body) !important; margin-bottom: 24px; }

@media (max-width: 1023px) {
  .toc, .prose { grid-column: 1 / -1; }
  .toc__inner { position: static; }
  .toc details { border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; background: var(--tint); }
}
.toc details > summary { display: none; }
@media (max-width: 1023px) {
  .toc details > summary { display: block; padding: 12px 0; cursor: pointer; font-weight: 600; }
  .toc .toc__title { display: none; }
}

/* ---------- Legal pages ---------- */

.legal-head { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-head .display { margin-bottom: 20px; }
.legal-head p { color: var(--body); max-width: 44rem; }

.factsheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  margin: 48px 0 16px;
  padding: 40px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}
.factsheet h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.factsheet p { color: var(--text); }
@media (max-width: 767px) { .factsheet { grid-template-columns: 1fr; padding: 28px; } }

.legal-rows { list-style: none; margin: 0 0 var(--section); padding: 0; }
.legal-row { padding: 32px 0; border-bottom: 1px solid var(--line); row-gap: 8px; }
.legal-row h2 { grid-column: 1 / span 4; font-size: 1.05rem; font-weight: 600; }
.legal-row div { grid-column: 5 / span 7; max-width: 40rem; color: var(--text); line-height: 1.65; }
.legal-row a, .factsheet a { text-decoration-color: var(--navy); text-underline-offset: 3px; }
@media (max-width: 767px) { .legal-row h2, .legal-row div { grid-column: 1 / -1; } }

.legal-prose { grid-column: 5 / span 7; max-width: 42.5rem; }
.legal-prose h2 {
  margin-top: 56px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p, .legal-prose li { color: var(--text); line-height: 1.7; }
.legal-prose p, .legal-prose ul { margin-top: 14px; }
.legal-prose ul { padding-left: 1.2em; }
.legal-prose li::marker { color: var(--orange); }
.legal-prose strong { font-weight: 600; color: var(--navy); }
.legal-prose code { font-family: inherit; font-size: inherit; font-weight: 600; color: var(--navy); }
.legal-prose a { text-decoration-color: var(--navy); text-underline-offset: 3px; }
@media (max-width: 1023px) { .legal-prose { grid-column: 1 / -1; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--canvas);
  border-top: 1px solid var(--line-on-navy);
  padding-top: clamp(64px, 8vw, 96px);
}
.footer__top { row-gap: 40px; }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand img { width: 140px; margin-bottom: 20px; }
.footer__brand p { color: var(--on-navy-muted); max-width: 22rem; }
.footer__col { grid-column: span 2; }
.footer__col--contact { grid-column: span 3; }
.footer__col:first-of-type { grid-column: 7 / span 2; }
.footer__heading { font-size: 0.9rem; font-weight: 600; color: var(--on-navy-muted); margin-bottom: 16px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__links a, .footer__plain {
  position: relative;
  color: var(--canvas);
  text-decoration: none;
  display: inline-block;
}
.footer__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.footer__links a:hover::after, .footer__links a[aria-current="page"]::after { transform: scaleX(1); }
.footer__links a[aria-current="page"]:not(:hover)::after { background: var(--canvas); }
.site-footer address { font-style: normal; color: var(--on-navy-muted); font-size: 0.95rem; line-height: 1.6; margin-top: 10px; }

.footer__mail {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--line-on-navy);
}
.footer__mail p { color: var(--on-navy-muted); font-size: 0.95rem; margin-bottom: 12px; }
.mail-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  max-width: 100%;
  font-size: clamp(1.35rem, 0.7rem + 3.1vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--canvas);
  overflow-wrap: anywhere;
}
.mail-link__bracket {
  color: var(--on-navy-muted);
  font-weight: 300;
  transition: transform 250ms var(--ease-out), color 250ms var(--ease-out);
}
.mail-link:hover .mail-link__bracket { color: var(--blue); }
.mail-link:hover .mail-link__bracket:first-child,
.mail-link:focus-visible .mail-link__bracket:first-child { transform: translateX(-8px); }
.mail-link:hover .mail-link__bracket:last-child,
.mail-link:focus-visible .mail-link__bracket:last-child { transform: translateX(8px); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-block: 24px;
  border-top: 1px solid var(--line-on-navy);
  font-size: 0.875rem;
  color: var(--on-navy-muted);
}
.footer__bottom a { color: var(--canvas); text-underline-offset: 3px; }
/* tap target ≥ 44px without moving the line */
.footer__bottom a { display: inline-block; padding-block: 11px; margin-block: -11px; }

@media (max-width: 899px) {
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:first-of-type { grid-column: span 6; }
  .footer__col--contact { grid-column: 1 / -1; }
}

/* Footer: "Cookie settings" reopens the consent banner */
.footer__bottom-links { display: inline-flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__consent {
  padding: 11px 0;
  margin: -11px 0;
  border: 0;
  background: none;
  color: var(--canvas);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__consent:hover, .footer__bottom a:hover { text-decoration-color: var(--blue); }
.no-js .footer__consent { display: none; }

/* ---------- Consent banner (Google Analytics) ---------- */

.consent {
  position: fixed;
  z-index: 60;
  left: var(--gutter);
  bottom: var(--gutter);
  width: min(30rem, calc(100% - 2 * var(--gutter)));
  padding: 24px;
  background: var(--navy);
  color: var(--canvas);
  border: 1px solid var(--line-on-navy);
  border-radius: 20px;
}
.consent.is-visible { animation: consent-in 500ms var(--ease-out) both; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
.consent__text { font-size: 0.9375rem; line-height: 1.55; color: var(--on-navy-muted); }
.consent__text a { color: var(--canvas); text-underline-offset: 3px; }
.consent__text a:hover { text-decoration-color: var(--blue); }
.consent__actions { display: flex; gap: 12px; margin-top: 20px; }
.consent__actions .btn { flex: 1; background: var(--canvas); color: var(--navy); }
.consent__actions .btn:hover { background: var(--blue); color: var(--black); }
.consent :focus-visible { outline-color: var(--blue); }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(96px, 14vw, 180px); }
.notfound .display { margin-bottom: 24px; }
.notfound .lead { margin-bottom: 40px; }

/* ---------- Scroll reveal ---------- */

@keyframes reveal-up { from { opacity: 0; transform: translateY(20px); } }
.js-reveal .reveal { opacity: 0; }
.js-reveal .reveal.is-in {
  opacity: 1;
  animation: reveal-up 800ms var(--ease-out) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@media print { .js-reveal .reveal { opacity: 1; } }

/* ---------- Reduced motion ---------- */

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

/* Unfinished legal placeholders: deliberately visible until filled in */
.placeholder {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  background: #fbf3db;
  color: #7a5200;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Small side note next to a CTA (insights page) */
.side-note {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px 28px;
  max-width: 24rem;
}
.side-note .label { display: block; margin-bottom: 10px; }
.side-note p { color: var(--body); font-size: 0.9375rem; line-height: 1.55; }
