/* ==========================================================================
   Intercos Group redesign concept: "Before the label"
   Tokens first, then base, then sections in page order.
   ========================================================================== */
:root {
  /* palette: see design-direction.md for each colour's role */
  --ink: #16141A;
  --ink-2: #221F28;
  --ink-3: #2E2A35;
  --logo: #010103;
  --powder: #F2F1F4;
  --white: #FFFFFF;
  /* was --orange #FF6624 / --burnt #B8400F: that orange is only the first stop of the live site's
     rainbow gradient; the site's own solid accent token is --color-rose #FE3776 */
  --rose: #FE3776;          /* the live site's --color-rose: fills with ink text, focus, active states */
  --rose-deep: #C8154B;     /* rose as text on light: 5.09:1 on Powder */
  --mauve: #5E5873;         /* secondary text on light */
  --mauve-line: #7E7799;    /* hairlines, shapes, map dots; never body text */
  --mist: #B9B4C7;          /* secondary text on ink */
  --line: #DAD7E0;
  --line-dark: rgba(185, 180, 199, .22);
  --lilac: #C5A3FF;         /* the concept notice only */

  /* consent card aliases */
  --ink-soft: #3A3642;
  --muted: var(--mauve);
  --lapis: var(--ink);
  --blue: var(--rose-deep);
  --teal: var(--mauve);
  --serif: var(--font);
  --radius-l: 10px;

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  /* headings: Syncopate, wide geometric capitals whose spacing echoes the "G R O U P" under the
     logo (its lowercase is small caps, so every heading reads as capitals). Free, SIL OFL.
     Earlier: Jost, then Anybody wide, then Gremlin Bold (licensed, never published). */
  --display: "Syncopate", "Jost", system-ui, sans-serif;
  --display-stretch: normal;
  --display-weight: 700;
  --display-track: -.02em;
  --fs-display: clamp(2.1rem, 1.15rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.625rem, 1.15rem + 1.7vw, 2.5rem);
  --fs-h2-caps: clamp(1.375rem, 1rem + 1.35vw, 2.125rem);
  --caps-track: .01em;
  --fs-h3: 1.5rem;
  --fs-lede: clamp(1.125rem, 1rem + .4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(80px, 10vw, 150px);
  --radius: 6px;
  --shadow: 0 1px 0 rgba(22, 20, 26, .04), 0 24px 48px -28px rgba(22, 20, 26, .35);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --utility-h: 36px;
  --masthead-h: 76px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; scroll-padding-top: calc(var(--masthead-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--powder);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
/* the wide display face: headings, big figures, years, menu links */
h1, h2, .display, .step h3, .cat h3, .client h3, .group__list h3, .facts__row dd, .figures dd,
.timeline__year, .menu__nav a, .footer__tag, .step__num {
  font-family: var(--display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); letter-spacing: var(--display-track);
  text-transform: uppercase; /* Syncopate's lowercase is small caps; full capitals read cleaner */
}
h2 { font-size: var(--fs-h2); line-height: 1.08; }
/* main section titles in capitals, as on jobs.intercos.com; caps need a touch less size and a little air */
main h2:not(.visually-hidden):not(.notes__title) { text-transform: uppercase; letter-spacing: var(--caps-track); font-size: var(--fs-h2-caps); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
sup { font-size: .6em; line-height: 0; }
sup a { text-decoration: none; color: var(--rose-deep); padding: 0 .15em; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
::selection { background: var(--rose); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: var(--fs-lede); line-height: 1.55; }
.shape { width: 1em; height: 1em; flex: none; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--white); text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* placeholder flags: visible on purpose, listed in design-direction.md */
.flag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  background: rgba(254, 55, 118, .12);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--rose-deep);
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--rose); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--quiet { box-shadow: inset 0 0 0 1px rgba(22, 20, 26, .28); color: var(--ink); }
.btn--outline { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.btn--block { width: 100%; }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rose); text-decoration-thickness: 2px; text-underline-offset: .3em;
  transition: color .2s;
}
.link svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #FF5A8E; }
  .btn--ink:hover { background: var(--ink-3); }
  .btn--quiet:hover, .btn--outline:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .link:hover { color: var(--rose-deep); }
}

/* ---------- section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px var(--gutter); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p { color: var(--mauve); max-width: 44ch; }
.section-head--dark p { color: var(--mist); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* ==========================================================================
   LOADER: the letters of the logo rise, GROUP settles, the curtain lifts
   ========================================================================== */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 400;
  background: var(--powder);
}
.loader__stage { width: min(360px, 62vw); }
.loader__logo { width: 100%; height: auto; overflow: visible; fill: var(--logo); }
/* armed before GSAP arrives, so the logo never flashes in place first */
.js .loader__l { transform: translateY(58px); }
.js .loader__group { opacity: 0; }
.js.is-static .loader, .js.no-loader .loader { display: none; }

/* ==========================================================================
   CONCEPT NOTICE, HEADER, MENU
   ========================================================================== */
.notice { background: var(--lilac); color: var(--ink); font-size: var(--fs-small); line-height: 1.4; }
.notice__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 9px; }
.notice a { font-weight: 500; }

.site-header { position: sticky; top: calc(var(--utility-h) * -1); z-index: 100; }
.utility { height: var(--utility-h); background: var(--ink); color: var(--mist); font-size: .8125rem; }
.utility__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.utility a { text-decoration: none; transition: color .2s; }
.utility__nav { display: flex; gap: 24px; }
@media (hover: hover) and (pointer: fine) { .utility a:hover { color: var(--white); } }

.masthead {
  height: var(--masthead-h);
  background: rgba(242, 241, 244, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 1px 0 transparent;
  transition: box-shadow .3s, height .3s var(--ease-out);
}
.is-scrolled .masthead { box-shadow: 0 1px 0 var(--line); }
.masthead__inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.masthead__logo { display: block; flex: none; width: 148px; color: var(--logo); transition: width .3s var(--ease-out); }
.masthead__logo svg { width: 100%; height: auto; fill: currentColor; }
.is-scrolled .masthead__logo { width: 132px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; padding: 8px 0; font-weight: 500; text-decoration: none; font-size: .9875rem; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--rose); transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.nav a[aria-current="true"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: none; } }
.masthead__cta { min-height: 42px; padding: 9px 20px; }

.menu-toggle {
  position: relative; display: none; place-items: center;
  width: 64px; height: 44px; margin-left: auto; margin-right: -10px;
  font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
}
.menu-toggle > * { grid-area: 1 / 1; transition: opacity .35s linear, transform .35s var(--ease-out); }
.menu-toggle__bolt { width: 13px; height: 29px; fill: currentColor; }
.menu-toggle__label { opacity: 0; transform: translateY(4px); }
.menu-toggle:focus-visible .menu-toggle__bolt, .menu-toggle.is-hinting .menu-toggle__bolt { opacity: 0; transform: translateY(-4px); }
.menu-toggle:focus-visible .menu-toggle__label, .menu-toggle.is-hinting .menu-toggle__label { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .menu-toggle:hover .menu-toggle__bolt { opacity: 0; transform: translateY(-4px); }
  .menu-toggle:hover .menu-toggle__label { opacity: 1; transform: none; }
}

@media (max-width: 1060px) {
  .nav, .masthead__cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (max-width: 600px) {
  :root { --masthead-h: 64px; }
  .utility__ticker { display: none; }
  .utility__nav { gap: 18px; width: 100%; justify-content: flex-end; }
  .utility__nav a:last-child { display: none; }
  .masthead__logo { width: 124px; }
  .is-scrolled .masthead__logo { width: 116px; }
}

/* full-screen menu: clips open from the top, links rise one after another */
.menu {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--white);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .55s cubic-bezier(.7, 0, .2, 1) .14s, visibility 0s linear .7s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s cubic-bezier(.7, 0, .2, 1), visibility 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: calc(var(--masthead-h) + var(--utility-h)); padding-top: var(--utility-h); }
.menu__logo { width: 124px; fill: var(--white); }
.menu__close { position: relative; width: 44px; height: 44px; margin-right: -8px; }
.menu__close span, .menu__close span::before { position: absolute; left: 11px; top: 21px; width: 22px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.menu__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }
.menu__nav { display: flex; flex-direction: column; gap: 4px; margin-top: auto; margin-bottom: auto; }
.menu__nav a, .menu__foot {
  opacity: 0; transform: translateY(26px);
  transition: opacity .2s, transform .2s;
}
.menu__nav a { font-size: clamp(1.5rem, 6.4vw, 2.5rem); line-height: 1.3; text-decoration: none; padding: 4px 0; }
.menu__nav a:last-child { color: var(--rose); }
.menu.is-open .menu__nav a, .menu.is-open .menu__foot {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s), transform .75s cubic-bezier(.2, .8, .2, 1) calc(.3s + var(--i) * .06s);
}
.menu__foot { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-bottom: max(32px, env(safe-area-inset-bottom)); color: var(--mist); }
.menu__foot a { text-decoration: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: #D9DADC; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__inner { position: relative; display: flex; align-items: center; min-height: clamp(620px, calc(100svh - var(--masthead-h) - 40px), 900px); }
/* the copy sits on the clean part of the drawdown card */
.hero__copy { width: min(46%, 620px); margin-left: clamp(0px, 3.5vw, 56px); padding-block: 72px; container-type: inline-size; }
/* three set lines in the wide face, sized to the column so "the label." always fits (~7.4em) */
.hero__title { font-size: clamp(2.25rem, 12.4cqi, 4.1rem); line-height: 1.02; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lede { margin-top: 28px; max-width: 34em; font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__caption { margin-top: 40px; max-width: 32em; font-size: var(--fs-small); color: var(--mauve); }

@media (max-width: 900px) {
  .hero { background: var(--powder); }
  .hero__media { position: relative; aspect-ratio: 4 / 3; }
  .hero__media img { object-position: 92% 50%; }
  .hero__inner { min-height: 0; }
  .hero__copy { width: 100%; margin: 0; padding-block: 40px 56px; }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero__caption { margin-top: 28px; }
  .hero__caption { display: none; }
}

/* ==========================================================================
   FACTS
   ========================================================================== */
.facts { padding-block: clamp(48px, 6vw, 80px); }
.facts__row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.facts__row > div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 28px 24px 28px 0; }
.facts__row > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts__row dt { font-size: var(--fs-small); color: var(--mauve); }
.facts__row dd { font-size: clamp(1.2rem, .85rem + 1.5vw, 2.25rem); line-height: 1.1; font-variant-numeric: lining-nums; }
.facts__source { margin-top: 14px; font-size: .8125rem; color: var(--mauve); }
@media (max-width: 900px) {
  .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts__row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement { padding-block: calc(var(--section) * .55) var(--section); }
.statement__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px var(--gutter); align-items: end; }
.statement__quote p { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.1rem); font-weight: 300; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.statement__quote footer { margin-top: 24px; font-size: var(--fs-small); color: var(--mauve); }
.statement__side { display: grid; gap: 16px; color: var(--ink-soft); }
@media (max-width: 900px) { .statement__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.categories { padding-block: var(--section); background: var(--white); }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.cat > * { min-width: 0; }
.cat__media { overflow: hidden; border-radius: var(--radius); background: var(--powder); aspect-ratio: 4 / 5; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.cat h3 { margin-top: 22px; font-size: 1.3rem; }
.cat > p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }
.cat__list { margin-top: 16px; border-top: 1px solid var(--line); }
.cat__list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); color: var(--mauve); }
@media (hover: hover) and (pointer: fine) { .cat:hover .cat__media img { transform: scale(1.04); } }
@media (max-width: 1060px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } .cat__media { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   FROM BRIEF TO SHELF
   ========================================================================== */
.process { padding-block: var(--section); }
.process__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); }
.process__visual { position: sticky; top: calc(var(--masthead-h) + 32px); align-self: start; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.process__frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--masthead-h) - 64px); overflow: hidden; border-radius: var(--radius); background: #DCDBDF; }
.process__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .5s var(--ease-out), transform 1.2s var(--ease-out); }
.process__frame img.is-active { opacity: 1; transform: none; }
.process__rail { position: relative; width: 2px; background: var(--line); border-radius: 2px; }
.process__rail span { position: absolute; inset: 0; background: var(--rose); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; }
.steps { counter-reset: step; }
.step { padding-block: 12vh; min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s var(--ease-out); }
.no-js .step, .step.is-active { opacity: 1; }
.step:first-child { padding-top: 4vh; }
.step__img { display: none; }
.step__num { font-size: .95rem; color: var(--rose-deep); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 8px; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.step p { margin-top: 16px; max-width: 34em; color: var(--ink-soft); }
.step .step__fact { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--mauve); }
/* phones: no pinned panel; each step carries its own photo, compact, with a rail */
@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__visual { display: none; }
  .steps { border-left: 2px solid var(--line); padding-left: 20px; }
  .step { min-height: 0; padding-block: 0 48px; opacity: 1; }
  .step:first-child { padding-top: 0; }
  .step__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
}

/* ==========================================================================
   WHO WE MAKE FOR
   ========================================================================== */
.clients { padding-block: 0 var(--section); }
.clients__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(20px, 2.4vw, 32px); }
.client { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; border-top: 1px solid var(--ink); }
.client h3 { font-size: 1.2rem; }
.client p { color: var(--ink-soft); }
.client .link { margin-top: auto; }
.client .link + .link { margin-top: 0; }
.client--lead { padding: clamp(28px, 3.4vw, 48px); border: 0; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.client--lead h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.client--lead .client__lede { color: var(--mist); max-width: 36em; }
.client__modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; margin: 8px 0 12px; }
.client__modes div { padding-top: 12px; border-top: 1px solid var(--line-dark); }
.client__modes dt { font-weight: 500; }
.client__modes dd { margin-top: 4px; font-size: var(--fs-small); color: var(--mist); }
@media (max-width: 1060px) { .clients__grid { grid-template-columns: 1fr 1fr; } .client--lead { grid-column: 1 / -1; } }
@media (max-width: 600px) { .clients__grid, .client__modes { grid-template-columns: 1fr; } }

/* ==========================================================================
   RESEARCH
   ========================================================================== */
.research { padding-block: var(--section); background: var(--white); }
.research__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px clamp(32px, 6vw, 96px); }
.research__intro .lede { margin-top: 24px; color: var(--ink-soft); max-width: 30em; }
.research__modes { margin-top: 40px; border-top: 1px solid var(--line); }
.research__modes div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.research__modes dt { font-weight: 500; }
.research__modes dd { color: var(--ink-soft); font-size: 1rem; }
.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.figures div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); }
.figures div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.figures dt { font-size: var(--fs-small); color: var(--mauve); }
.figures dd { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem); line-height: 1.1; }
.figures__source { margin-top: 12px; font-size: .8125rem; color: var(--mauve); }
.proof { margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); background: var(--powder); }
.proof h3 { font-size: 1.125rem; font-weight: 500; }
.proof p { margin-top: 8px; font-size: 1rem; color: var(--ink-soft); }
.centres { grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--ink); }
.centres__title { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 500; }
.centres__title .shape { color: var(--mauve-line); width: 18px; height: 18px; }
.centres__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--gutter); margin-top: 24px; }
.centres h4 { font-size: var(--fs-small); font-weight: 500; color: var(--mauve); letter-spacing: 0; }
.centres li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
@media (max-width: 900px) { .research__grid { grid-template-columns: 1fr; } .centres__cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   NETWORK (ink)
   ========================================================================== */
.network { padding-block: var(--section); background: var(--ink); color: var(--white); }
.network ::selection { color: var(--ink); }
.filter {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark);
  --i: 0;
}
.filter button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; color: var(--mist); white-space: nowrap;
  transition: color 240ms var(--ease-in-out);
}
.filter button[aria-pressed="true"] { color: var(--ink); }
.filter button .shape { width: 14px; height: 14px; }
.filter__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 4); border-radius: 999px; background: var(--rose);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 240ms var(--ease-in-out);
}
@media (hover: hover) and (pointer: fine) { .filter button[aria-pressed="false"]:hover { color: var(--white); } }

.map { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 24px clamp(24px, 3vw, 48px); align-items: center; margin-top: 40px; }
.map__svg { width: 100%; height: auto; overflow: visible; }
.map__europe { padding: 16px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-dark); }
.map__caption { margin-top: 8px; font-size: var(--fs-small); color: var(--mist); }
.map__zone { fill: none; stroke: var(--mist); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: .7; }
@media (max-width: 760px) {
  .map { grid-template-columns: 1fr; }
  /* phones: the world map pans sideways at a readable size; the list below has every site */
  .map__world { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); scrollbar-width: none; }
  .map__world::-webkit-scrollbar { display: none; }
  .map__world .map__svg { min-width: 720px; }
}
.map__dots circle { fill: var(--mauve-line); opacity: .42; }
.pin { cursor: pointer; }
.pin__shape { fill: none; stroke: var(--white); stroke-width: 1.6; vector-effect: non-scaling-stroke; transition: stroke 220ms, opacity 220ms; }
.pin__hit { fill: transparent; }
.pin.is-dim .pin__shape { opacity: .18; }
.pin.is-hot .pin__shape, .pin:focus-visible .pin__shape { stroke: var(--rose); }
.pin:focus { outline: none; }
.pin:focus-visible .pin__ring { stroke: var(--rose); stroke-width: 1.5; fill: none; }
.map__label {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 8px 12px; border-radius: 6px; background: var(--white); color: var(--ink);
  font-size: var(--fs-small); line-height: 1.35; pointer-events: none; white-space: nowrap;
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)) translateY(4px);
  transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out);
}
.map__label.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.map__label strong { display: block; font-weight: 500; }
.map__label span { color: var(--mauve); }

.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); margin-top: 48px; }
.sites h3 { font-size: var(--fs-small); font-weight: 500; color: var(--mist); padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.site { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); transition: opacity 220ms; }
.site.is-dim { opacity: .3; }
.site__types { display: flex; gap: 3px; padding-top: 5px; color: var(--white); }
.site__types .shape { width: 13px; height: 13px; }
.site__name { font-size: 1rem; line-height: 1.4; }
.site__place { grid-column: 2; font-size: var(--fs-small); color: var(--mist); }
@media (max-width: 900px) { .sites { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .filter { display: grid; width: 100%; }
  .filter button { padding: 8px 8px; font-size: .875rem; gap: 6px; }
  .filter button .shape { display: none; }
}

.plants { margin-top: clamp(64px, 8vw, 112px); }
.plants__title { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 500; }
.plants__title .shape { width: 18px; height: 18px; color: var(--mist); }
.plants__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; margin-top: 24px; }
.plants__track img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.plants__track p { margin-top: 10px; font-size: .9375rem; line-height: 1.35; }
.plants__track p span { display: block; font-size: var(--fs-small); color: var(--mist); }
.plants__note { margin-top: 24px; font-size: .8125rem; color: var(--mist); }
@media (max-width: 1060px) { .plants__track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .plants__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .plants__track::-webkit-scrollbar { display: none; }
  .plants__track li { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ==========================================================================
   GROUP, HISTORY, LEADERS, PEOPLE, DOORS
   ========================================================================== */
.group { padding-block: var(--section); }
.group__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.group__list li { padding-top: 20px; border-top: 1px solid var(--ink); }
.group__list h3 { font-size: 1.375rem; }
.group__where { margin-top: 6px; font-size: var(--fs-small); color: var(--mauve); }
.group__list p:last-child { margin-top: 14px; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 1060px) { .group__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 600px) { .group__list { grid-template-columns: 1fr; } }

.history { padding-block: var(--section); background: var(--white); }
.history__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(32px, 6vw, 96px); }
.history__head { position: sticky; top: calc(var(--masthead-h) + 40px); align-self: start; }
.history__head p { margin-top: 16px; color: var(--mauve); max-width: 24em; }
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline__year { font-size: .95rem; font-variant-numeric: tabular-nums; }
.timeline p { color: var(--ink-soft); }
@media (max-width: 900px) { .history__grid { grid-template-columns: 1fr; } .history__head { position: static; } }
@media (max-width: 480px) { .timeline li { grid-template-columns: 64px minmax(0, 1fr); } }

.leaders { padding-block: var(--section); }
.leaders__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; margin-bottom: 40px; }
.leader__portrait {
  position: relative; display: grid; place-items: center;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 0 0 5px var(--powder), 0 0 0 6px var(--line);
  font-size: 1.5rem; font-weight: 300; color: var(--mauve);
}
.leader--chair .leader__portrait { width: 136px; height: 136px; }
.leader__portrait .flag { position: absolute; bottom: -14px; white-space: nowrap; font-size: .6875rem; background: var(--powder); }
.leader h3 { margin-top: 28px; font-size: 1.25rem; font-weight: 500; }
.leader__role { margin-top: 4px; font-size: var(--fs-small); color: var(--rose-deep); font-weight: 500; }
.leader p:last-child { margin-top: 10px; font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 1060px) { .leaders__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .leaders__list { grid-template-columns: 1fr; } }

.people { padding-block: var(--section); background: var(--white); }
.people__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.people__head .lede { margin-top: 24px; color: var(--ink-soft); }
.people__head .btn { margin-top: 32px; }
.values { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.values div { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.values div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.values dt { font-size: var(--fs-small); font-weight: 500; color: var(--mauve); }
.values dd { margin-top: 4px; font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 300; line-height: 1.25; }
@media (max-width: 900px) { .people__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } .values div:nth-child(even) { padding-left: 0; border-left: 0; } }

.doors { padding-block: var(--section); }
.doors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.door { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius); background: var(--white); }
.door h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.door > p { color: var(--ink-soft); max-width: 36em; }
.door__links { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
@media (max-width: 760px) { .doors__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CLOSE AND BRIEF FORM (ink)
   ========================================================================== */
.close { padding-block: var(--section); background: var(--ink); color: var(--white); }
.close__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.close__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 5 / 4; margin-bottom: 40px; background: var(--ink-2); }
.close__media img { width: 100%; height: 100%; object-fit: cover; }
.close h2 { font-size: var(--fs-h2); }
.close__intro > p { margin-top: 20px; color: var(--mist); max-width: 30em; }
.close address { margin-top: 32px; font-style: normal; font-size: 1rem; line-height: 1.6; color: var(--mist); }
.close address a { color: var(--white); }
.brief { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 48px); border-radius: var(--radius); background: var(--white); color: var(--ink); }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: .9375rem; font-weight: 500; }
.field__opt { font-weight: 400; color: var(--mauve); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid #CFCBD6; border-radius: 6px; background: var(--white);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2316141A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field :is(input, select, textarea):focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(254, 55, 118, .35); }
.field [aria-invalid="true"] { border-color: var(--rose-deep); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.brief .btn { justify-self: start; }
.brief__status { font-size: .9375rem; color: var(--ink-soft); }
.brief__status:empty { display: none; }
.brief__status.is-error { color: var(--rose-deep); }
.is-ring { animation: ring .7s var(--ease-out); }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(254, 55, 118, .6); } to { box-shadow: 0 0 0 12px rgba(254, 55, 118, 0); } }
@media (max-width: 900px) { .close__grid { grid-template-columns: 1fr; } .close__media { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.notes { padding-block: 32px; background: var(--ink); color: var(--mist); font-size: .8125rem; border-top: 1px solid var(--line-dark); }
.notes__title { font-size: .8125rem; font-weight: 500; letter-spacing: 0; }
.notes ol { margin-top: 6px; padding-left: 1.2em; }
.notes a { color: var(--white); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding-block: 72px 40px; background: #0E0D11; color: var(--mist); font-size: .9375rem; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__logo { width: 180px; fill: var(--white); }
.footer__tag { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; color: var(--white); }
.footer__tag svg { width: 11px; height: 24px; fill: var(--rose); flex: none; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gutter); padding-block: 40px; }
.footer__cols nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__cols h2, .notes__title { font-family: var(--font); font-stretch: normal; }
.footer__cols h2 { margin-bottom: 6px; font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: var(--white); }
.footer a, .footer__cookie { text-decoration: none; text-align: left; line-height: 1.4; transition: color .2s; }
.footer__cookie { text-decoration: underline; text-underline-offset: .2em; }
@media (hover: hover) and (pointer: fine) { .footer a:hover, .footer__cookie:hover { color: var(--white); } }
.footer__legal { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .8125rem; line-height: 1.55; }
.footer__concept a { text-decoration: underline; color: var(--white); }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   STATIC REVIEW AND REDUCED MOTION
   ========================================================================== */
.is-static *, .is-static *::before, .is-static *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .process__frame img { transform: none !important; }
  .menu__nav a, .menu__foot { transform: none !important; }
  .cat__media img { transition: none; }
}

/* ==========================================================================
   COOKIE CONSENT
   Asks once, after the loader lifts. Reject sits beside Accept with the same weight;
   Cookie settings in the footer reopens it with the choices already open.
   ========================================================================== */
.consent {
  position: fixed;
  /* bottom right: over the hero photo rather than the quick form (was left: clamp(16px, 2.5vw, 32px)) */
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 90; /* under the header (100), so the full-screen menu covers it */
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 22px;
  border-radius: var(--radius-l);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(20, 40, 90, .08), 0 28px 56px -24px rgba(14, 29, 68, .5);
  /* resting state; leaving returns here, so it exits the way it came in */
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transform-origin: 100% 100%; /* rises out of its corner */
  transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
}
.consent[hidden] { display: none; }
.consent.is-open {
  opacity: 1;
  transform: none;
  transition: opacity 320ms var(--ease-out), transform 560ms var(--ease-drawer);
}
/* after a choice it fades out while sinking, unhurried, so it never feels snapped shut
   (it used to fall back to the resting state's 220/260ms and a 16px drop) */
.consent.is-leaving {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 440ms cubic-bezier(0.4, 0, 0.2, 1), transform 560ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* the content settles in just behind the card, a beat apart */
.consent__head,
.consent__text,
.consent__manage,
.consent__actions {
  opacity: 0;
  transform: translateY(8px);
}
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions),
.consent.is-leaving :is(.consent__head, .consent__text, .consent__manage, .consent__actions) {
  opacity: 1;
  transform: none;
}
.consent.is-open :is(.consent__head, .consent__text, .consent__manage, .consent__actions) {
  transition:
    opacity 360ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms),
    transform 480ms var(--ease-out) calc(90ms + var(--i, 0) * 50ms);
}

.consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
/* the khatam star turns an eighth into place: it lands looking exactly as it started */
.consent__star {
  flex: none;
  width: 18px;
  height: 18px;
  fill: var(--gold);
  opacity: 0;
  transform: rotate(-45deg) scale(.5);
}
.consent.is-open .consent__star,
.consent.is-leaving .consent__star { opacity: 1; transform: none; }
.consent.is-open .consent__star { transition: transform 720ms var(--ease-out) 150ms, opacity 280ms var(--ease-out) 150ms; }
.consent__title { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; color: var(--lapis); }
.consent__title:focus { outline: none; } /* only ever focused by script, on reopen */
.consent__close {
  display: none;
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  margin: -6px -10px -6px auto;
  border-radius: 50%;
  color: var(--muted);
  transition: background-color .2s, color .2s, transform 160ms var(--ease-out);
}
.consent.can-dismiss .consent__close { display: block; }
.consent__close:active { transform: scale(.92); }
.consent__close span,
.consent__close span::before {
  position: absolute;
  left: 11px;
  top: 17px;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(45deg);
}
.consent__close span::before { content: ""; left: 0; top: 0; transform: rotate(90deg); }

.consent__text { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }

.consent__manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--blue);
  transition: color .2s;
}
.consent__manage svg { width: 12px; height: 12px; transition: transform 260ms var(--ease-in-out); }
.consent.is-expanded .consent__manage svg { transform: rotate(180deg); }

/* choices: the panel opens to its natural height, rows arrive one after another;
   closing is quicker and all together */
.consent__prefs { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease-in-out); }
.consent.is-expanded .consent__prefs { grid-template-rows: 1fr; transition-duration: 380ms; }
.consent__prefs-inner { min-height: 0; overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.consent__row,
.consent__save {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.consent.is-expanded :is(.consent__row, .consent__save) {
  opacity: 1;
  transform: none;
  transition:
    opacity 300ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms),
    transform 420ms var(--ease-out) calc(70ms + var(--i, 0) * 40ms);
}
.consent__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.consent__label { font-size: 1rem; font-weight: 500; color: var(--ink); }
label.consent__label { cursor: pointer; }
.consent__row p { grid-column: 1 / -1; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.consent__always { font-size: .875rem; font-weight: 500; color: var(--teal); }
.consent__save { padding: 6px 0 4px; }

/* switch: the thumb slides across and stretches a little while pressed */
.consent__switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 13px;
  background: #C3CAD6;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out);
}
.consent__switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(14, 29, 68, .3);
  transition: transform 220ms var(--ease-out), width 160ms var(--ease-out);
}
.consent__switch:checked { background: var(--lapis); }
.consent__switch:checked::before { transform: translateX(18px); }
.consent__switch:active::before { width: 24px; }
.consent__switch:checked:active::before { transform: translateX(14px); }
.consent__switch:focus-visible { outline-offset: 2px; border-radius: 13px; }

.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.consent__actions .btn { min-height: 46px; padding: 10px 14px; }

@media (hover: hover) and (pointer: fine) {
  .consent__manage:hover { color: var(--lapis); }
  .consent__close:hover { background: var(--mist); color: var(--lapis); }
}

/* phones: a sheet that comes up from the bottom edge and goes back down there */
@media (max-width: 600px) {
  .consent {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 18px 20px 20px;
    transform: translateY(calc(100% + 24px));
    transform-origin: 50% 100%;
    transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-out);
  }
  /* the sheet sinks back below the edge it came from, fading as it goes */
  .consent.is-leaving { transform: translateY(calc(100% + 24px)); }
  .consent__title { font-size: 1.25rem; }
}

/* reduced motion: gentler, not zero. Everything still fades; nothing travels */
@media (prefers-reduced-motion: reduce) {
  .consent,
  .consent :is(.consent__head, .consent__text, .consent__manage, .consent__actions, .consent__star, .consent__row, .consent__save) { transform: none !important; }
  .consent__prefs,
  .consent.is-expanded .consent__prefs { transition: none; }
}
