/* ==========================================================================
   HARROLDS DESIGN SERVICES — styles.css
   One stylesheet for every page. Change the look from the TOKENS block below.
   ========================================================================== */

/* ---------- 1. TOKENS (edit these first) ---------------------------------- */
:root {
  /* Colours */
  --cream: #F5EDE2;          /* page background, text on dark panels */
  --ink: #231F20;            /* main text; footer, menu and "What’s new" backgrounds */
  --grey: #8C8681;           /* inactive list items */
  --wine: #7D2925;           /* deep red taken from the embroidered apple (average of its red threads); form errors.
                                Reads well on cream (8.4:1), so fine for text; too dark for text on ink */
  --approach-letter: var(--cream);  /* big initial letter on the "Our approach" images */
  --pill-text: var(--wine);         /* tool tags under each service */
  --pill-bg: transparent;
  --pill-border: var(--wine);
  --field-bg: #EEE7DE;              /* contact form fields */
  --field-bg-hover: #EAE2D8;
  --field-border: var(--ink);
  --error: var(--wine);             /* form errors */
  --rule: rgba(35, 31, 32, .18);
  --green: #38685C;          /* dark green from the palette: the positive impact leaf on the Clients page */

  /* Fonts (also change the Google Fonts <link> in each page's <head>) */
  --font-heading: "EB Garamond", Georgia, "Times New Roman", serif;     /* stand-in for Adobe Arabic */
  --font-body: "Archivo", Arial, Helvetica, sans-serif;

  /* Type scale */
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .875rem;
  --fs-h1: clamp(3rem, 6.4vw, 6.4rem);
  --fs-h2: clamp(2.1rem, 3.6vw, 3.2rem);
  --fs-list: clamp(1.5rem, 2.1vw, 2rem);
  --fs-display: clamp(2rem, 3.6vw, 3.2rem);
  --label-tracking: .12em;

  /* Layout */
  --frame: clamp(8px, .9vw, 14px);            /* cream border around heroes and coloured bands */
  --gutter: clamp(1.25rem, 4vw, 3.75rem);
  --content: 68.75rem;                        /* main content width */
  --measure: 42.5rem;                         /* reading column (case studies) */
  --section-space: clamp(4rem, 9vw, 8rem);
}

/* ---------- 2. RESET + BASE ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; }
h1 { font-size: var(--fs-h1); line-height: .9; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.section--flush-top { padding-top: 0; }
.section--clear-header { padding-top: clamp(8rem, 16vw, 12rem); }  /* pages with no hero image */
.features { padding-top: var(--section-space); }

.label {
  font-family: var(--font-body); font-size: var(--fs-label); line-height: 1.4; font-weight: 400;
  text-transform: uppercase; letter-spacing: var(--label-tracking);
}
/* The business name written like the logo, with a small raised last S: HARROLD<span class="brand-s">S</span> */
.brand-s { font-size: .8em; vertical-align: .17em; }
.text-link { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
/* An arrow after each stand-alone text link ("See more on YouTube" + arrow). inline-block keeps the underline off it.
   The arrow is images/icons/arrow-1.svg used as a mask, so it takes the link's own colour (ink on cream, cream on
   dark). Its shape is 91 x 34, so the width is the height x 91/34. */
.text-link::after {
  content: "" / ""; display: inline-block; margin-left: .4em;   /* / "" = screen readers skip the arrow */
  width: calc(.5em * 91 / 34); height: .5em; vertical-align: .05em;
  background: currentColor;
  -webkit-mask: url("/images/icons/arrow-1.svg") no-repeat center / contain;
          mask: url("/images/icons/arrow-1.svg") no-repeat center / contain;
  opacity: 0;   /* hidden until hover; its space is kept so the text never shifts */
}
.text-link:hover::after, .text-link:focus-visible::after { opacity: 1; }
.contact-form__note .text-link::after { content: none; }   /* no arrow on the link mid-sentence on the Contact form */
/* On hover the arrow appears and spins along its length, like an arrow rolling in flight: the head and tail
   flatten to a line and open out again. Change 720deg for more or fewer turns, .9s for the speed. */
.text-link:hover::after { animation: arrow-roll .9s ease-in-out; }
@keyframes arrow-roll {
  from { transform: perspective(3em) rotateX(0); }
  to   { transform: perspective(3em) rotateX(360deg); }
}
@media (prefers-reduced-motion: reduce) { .text-link:hover::after { animation: none; } }

/* Buttons */
.btn {
  display: inline-block; padding: .9rem 1.5rem; border: 2px solid var(--ink);
  background: var(--ink); color: var(--cream);
  font: 700 .95rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .04em;   /* body font, bold */
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--cream:hover { background: transparent; color: var(--cream); }

/* ---------- 3. HEADER + MENU --------------------------------------------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--frame) + 1rem) calc(var(--frame) + 1.25rem);
}
/* The header strip spans the full width, so let clicks pass through its empty space to whatever is
   underneath (such as the homepage sound buttons). The logo and menu button still take clicks. */
.site-header { pointer-events: none; }
.site-header > * { pointer-events: auto; }
.site-header--light { color: var(--cream); }
.site-header--dark { color: var(--ink); }
.site-header__logo img { width: clamp(7rem, 12vw, 10.5rem); }
.menu-toggle {
  margin-left: auto; padding: .5rem; background: none; border: 0; cursor: pointer; line-height: 0;
}
.menu-toggle svg { width: 1.75rem; height: 1.75rem; }

.menu {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: var(--ink); color: var(--cream);
  padding: calc(var(--frame) + 1rem) calc(var(--frame) + 1.25rem) 3rem;
}
.menu__bar { display: flex; align-items: center; justify-content: space-between; }
.menu__bar img { width: clamp(7rem, 12vw, 10.5rem); }
.menu nav { flex: 1; display: flex; flex-direction: column; }   /* lets the list sit at the bottom (desktop) or centre (mobile) */
.menu__close { margin-left: auto; padding: .5rem; background: none; border: 0; cursor: pointer; line-height: 0; }
.menu__close svg { width: 1.75rem; height: 1.75rem; }
.menu__list { margin: auto 0; padding-block: 2rem; }
.menu__list a {
  display: inline-block; font: 400 clamp(2.75rem, 3.7vw, 4.5rem)/1.2 var(--font-heading);
  text-decoration: none; color: var(--cream); opacity: .5; transition: opacity .2s;
}
.menu__list a:hover, .menu__list a:focus-visible, .menu__list a[aria-current="page"] { opacity: 1; }

/* Desktop menu (as on freuds.com): links stacked at the bottom right, text left-aligned in a
   column about 30% of the screen wide, sitting 5vw in from the right and bottom edges. */
@media (min-width: 48em) {
  .menu { padding-bottom: 5vw; }
  .menu__list {
    width: 30vw; min-width: 16rem; padding-block: 0;
    margin: auto max(0px, calc(5vw - var(--frame) - 1.25rem)) 0 auto;
  }
}

/* ---------- 4. HEROES ----------------------------------------------------- */
.hero, .page-hero {
  position: relative; margin: var(--frame); overflow: hidden;
  background: var(--ink); color: var(--cream);
}
.hero { height: calc(100svh - var(--frame) * 2); min-height: 32rem; }
.hero__video, .page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .35), transparent 45%);
  pointer-events: none;
}
.hero__wordmark {
  position: absolute; z-index: 2; left: 2%; right: 2%; width: 96%; height: auto;
  /* the same gap below as at the sides (2% of the hero's width), on every screen size */
  bottom: calc((100vw - var(--frame) * 2) * .02);
  display: block;
}
/* Sound buttons for the hero video (music, sound effects): top left, the same distance from the top and edge as the
   menu button is on the right (the header's padding minus the hero's frame). Each is an icon in a circle.
   Both are fully visible; the circle only wobbles while that sound is on (main.js section 7). */
.hero-sound {
  position: absolute; z-index: 3; top: 1rem; left: 1.25rem;
  display: flex; align-items: center; gap: .35rem; color: var(--cream);
}
.hero-sound__btn {
  position: relative; width: 2.5rem; height: 2.5rem; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer;
}
/* With reduced motion nothing wobbles, so a sound that is off is faded instead */
@media (prefers-reduced-motion: reduce) {
  .hero-sound__btn[aria-pressed="false"] { opacity: .5; }
}
/* The circle round each button wobbles while it is on (see main.js section 7); the icon inside stays still */
.hero-sound__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-sound__glyph { width: 1.1rem; height: 1.1rem; display: block; }
.page-hero { height: clamp(24rem, 62vh, 40rem); display: grid; place-items: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.page-hero--short { height: clamp(20rem, 48vh, 32rem); }
.page-hero__title { position: relative; z-index: 2; padding-inline: var(--gutter); text-align: center; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1; }

/* ---------- 5. INTRO (heading left, copy right) --------------------------- */
.intro {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  column-gap: clamp(2rem, 6vw, 7rem); row-gap: 2rem;
}
.intro__title { font-size: var(--fs-h1); line-height: .82; }

/* Rotating heading (Home and Portfolio): a fixed first line, then a changing phrase on line two.
   Every phrase sits in the same spot, so the heading never changes size or pushes the page around.
   Font size follows the column width so the longest line fits. Each page sets its own --rotator-fit
   in the h1's style attribute: if you add a longer phrase, raise that number until it fits. */
.rotator-title { --rotator-fit: 8.15; container-type: inline-size; }
.rotator-title__static, .rotator { display: block; font-size: min(var(--fs-h1), 100cqi / var(--rotator-fit)); white-space: nowrap; }
.rotator { display: grid; }
.rotator__item {
  grid-area: 1 / 1;                    /* stack all phrases on top of each other */
  opacity: 0; transform: translateY(.25em);
  transition: opacity .6s ease, transform .6s ease;
}
.rotator__item.is-active { opacity: 1; transform: none; }
.rotator__item.is-leaving { opacity: 0; transform: translateY(-.25em); }
@media (prefers-reduced-motion: reduce) {
  .rotator__item, .rotator__item.is-leaving { transform: none; transition: opacity .3s linear; }
}
.intro__text > * + * { margin-top: 1.5em; }
.intro__text { font-size: var(--fs-body); line-height: 1.55; letter-spacing: .02em; max-width: 34rem; }   /* same size as the slider text below */
/* Small headings above each paragraph (PROTECTORS, PARTNERS, PIONEERS), set like the logo: capitals with a small raised last S */
.intro__subhead { font: 500 1.6rem/1 var(--font-heading); letter-spacing: .08em; margin-bottom: 1.25rem; }
.intro__subhead .brand-s { vertical-align: .16em; color: var(--wine); }   /* a hair lower than in body text, in the brand red */
/* TRIAL: the small S wobbles slightly, like the logo (filter in index.html, main.js section 7b) */
.intro__subhead .brand-s { display: inline-block; filter: url(#s-wobble); }
@media (prefers-reduced-motion: reduce) { .intro__subhead .brand-s { filter: none; } }
.sr-filter { position: absolute; width: 0; height: 0; overflow: hidden; }
.intro__subhead + p { margin-top: 0; }   /* the heading's margin-bottom sets the gap to its own paragraph; the usual gap stays above the next heading */

/* ---------- 6. WHAT’S NEW SLIDER (homepage) / FEATURED WORK (portfolio) ------------------------------------------ */
.latest { margin-inline: var(--frame); padding: 2.25rem var(--gutter) 1.75rem; background: var(--ink); color: var(--cream); }
.latest > .label { text-align: center; }
.slider { max-width: var(--content); margin: 1.5rem auto 0; }
.slide { display: none; min-height: clamp(24rem, 42vw, 34rem); grid-template-columns: 1fr 1fr; align-items: center; column-gap: clamp(2rem, 6vw, 6rem); row-gap: 2rem; }
.slide.is-active { display: grid; }
.slide__title { font: 400 var(--fs-display)/1.05 var(--font-heading); }
.slide__text { margin-top: 1.25rem; max-width: 30rem; }
.slide .btn { margin-top: 1.5rem; font: 700 .95rem/1 var(--font-body); }   /* slider buttons use the body font, bold */
.slide__media { justify-self: center; }
.slide__media img { width: auto; max-height: 26rem; }
.dots { display: flex; justify-content: center; gap: .35rem; margin-top: 1rem; }
.dots button { position: relative; width: 2.6rem; height: 1.5rem; padding: 0; background: none; border: 0; cursor: pointer; }
.dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: currentColor; opacity: .45; }
.dots button[aria-current="true"]::before { opacity: 1; }

/* ---------- 6b. BRANDS WE’VE WORKED WITH (homepage logo row, bottom of the page) ---------- */
/* Seven logos in one line on desktop; on phones, eight (AB Agri added) in rows of two, lined up on the left. Each logo's height
   is in em (set in the HTML), so changing the font-size here scales the whole row. */
/* Top: Services + specialisms above already leaves space. Bottom: the footer's own top margin plus the thin frame,
   so the gap down to the footer matches the gap from the hero video down to the intro text. */
.brands { padding-top: 0; padding-bottom: var(--frame); }
.brands__label { margin-bottom: 2.5rem; }

/* Testimonial (homepage, below the brands): one quote in large heading type with a wine drop cap on the first
   letter, like an illuminated manuscript. Full content width at every screen size. */
.testimonial { padding-bottom: 0; }   /* the footer's top margin gives the space below */
.testimonial__label { margin-bottom: 2.5rem; }   /* same gap as "Brands we've worked with" */
/* A thin line across the full content width above each testimonial, the same as the lines between the reports
   on the Case studies page */
.testimonial__grid::before { content: ""; display: block; border-top: 1px solid var(--rule); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.testimonial__quote { font: 400 clamp(1.6rem, 2.8vw, 2.4rem)/1.3 var(--font-heading); display: flow-root; }   /* flow-root keeps the drop cap inside, so a one-line quote doesn't overlap the name below */
/* Drop cap: the quote's first letter, wrapped in <span class="testimonial__cap">, floated so the first three lines
   wrap round it. Sized from EB Garamond's measurements so the top of the letter lines up with the top of the
   capitals on line 1 and its foot sits on line 3's baseline (with the quote's line-height of 1.3).
   If you change the quote's line-height, these numbers need recalculating. */
.testimonial__cap {
  float: left; font-size: 4.98em; line-height: .7; margin-top: .019em;
  padding-right: .08em;   /* the gap between the drop cap and the text (.08em of the big letter) */
  font-weight: 500; color: var(--wine);
}
/* TRIAL: the drop cap wobbles slightly, like the logo (filter in index.html, main.js section 7b) */
.testimonial__cap { filter: url(#cap-wobble); }
@media (prefers-reduced-motion: reduce) { .testimonial__cap { filter: none; } }
/* Closing speech mark: twice the size, in wine, and dropped a little so it sits on the last line like a full stop */
.testimonial__close { font-size: 200%; line-height: 1rem; position: relative; top: .26em; margin-left: .125em; color: var(--wine); }
.testimonial__by { margin-top: 1.75rem; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.testimonial__name { font: 500 var(--fs-body)/1.3 var(--font-body); }
.testimonial__role { font-size: var(--fs-small); color: var(--grey); }
.brands__list {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  margin: 0; padding: 0; list-style: none; font-size: clamp(1.25rem, 2.2vw, 2.1rem);
}
.brands__list img { width: auto; max-width: 100%; display: block; object-fit: contain; opacity: .875; }   /* contain: a logo too wide for its space shrinks rather than squashes */
@media (max-width: 767px) {
  .brands__list { flex-wrap: wrap; justify-content: flex-start; gap: 2.25rem 0; font-size: 1.45rem; }
  .brands__list li { flex: 0 0 50%; display: flex; justify-content: flex-start; }   /* each logo lines up on the left of its column */
  .brands__item--servicenow { font-size: 1.09em; }   /* ServiceNow is a thin wordmark, so a little bigger again on phones */
}
@media (min-width: 768px) {
  .brands__item--phone { display: none; }
}

/* ---------- 7. EXPLORER (hover / click list + swapping panel) -------------- */
/* Used for "Our approach", "Services + specialisms" and the "Topics" list.
   Desktop: names in one column, the active panel in the other.
   Mobile: turns into a simple accordion. */
.explorer__label { margin-bottom: 1.25rem; }
.explorer__item { border-bottom: 1px solid var(--rule); }
.explorer__tab {
  display: block; width: 100%; padding: .4rem 0; background: none; border: 0; cursor: pointer;
  text-align: left; font: 400 var(--fs-list)/1.5 var(--font-heading); color: var(--grey);
  transition: color .2s;
}
.explorer__tab:hover, .explorer__item.is-active .explorer__tab { color: var(--ink); }

/* Positive impact leaf (Clients page): a small dark green leaf after a client's name, and in the key line above the list.
   It wobbles very slightly, like the logo (main.js section 7). Width follows the drawing's shape. */
.impact-leaf { display: inline-block; height: .42em; width: auto; margin-left: .4em; vertical-align: .08em; fill: var(--green); overflow: visible; }
.impact-key { display: flex; justify-content: center; align-items: center; gap: .6em; margin-top: clamp(2rem, 4vw, 3rem); font-size: var(--fs-small); color: var(--grey); text-align: center; }   /* below the list, centred */
.impact-key .impact-leaf { height: .85em; margin: 0; }
.nowrap { white-space: nowrap; }   /* keeps the leaf on the same line as the last word of the name */
/* Click-only lists (data-explorer-click): only the open item goes dark; hover just underlines */
[data-explorer-click] .explorer__tab:hover { color: var(--grey); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
[data-explorer-click] .explorer__item.is-active .explorer__tab { color: var(--ink); text-decoration: none; }
.explorer__panel { position: relative; padding-block: .5rem 1.5rem; }
/* Panel images crop to 4:3, except in the Portfolio list (#work), where each picture shows whole
   at its own shape. Give every Portfolio <img> its real width and height attributes: the browser
   uses them to hold the right space before the picture loads. */
.panel__img { width: 100%; height: auto; object-fit: cover; }
.panel__img:where(:not(#work *)) { aspect-ratio: 4 / 3; }
#work .panel__img { border: 1px solid #e2d9cb; }   /* Portfolio only: a thin line around each picture */

/* Portfolio gallery: several pictures in one panel, stacked, swapped instantly (script section 9).
   Wine dots: the current one filled, the rest outlined. On desktop they sit just right of the
   picture, centred top to bottom; on phones they sit underneath, right aligned. */
.gallery { position: relative; }
.gallery__frame { display: grid; position: relative; touch-action: pan-y; }   /* page still scrolls up and down; sideways is a swipe */
.gallery__img { grid-area: 1 / 1; visibility: hidden; }
/* The first picture sets the frame's shape. Any later picture of a different shape fills
   the same frame and is trimmed to fit (object-fit: cover), so there is never a gap. */
.gallery__img ~ .gallery__img { position: absolute; inset: 0; height: 100%; }
.gallery__img.is-current { visibility: visible; }
/* Video slides (AI Filmmaking): the thumbnail with a square play button in the middle. Pressing it swaps in the
   YouTube player (main.js section 10), which fills the same frame. */
.video { position: relative; }
.video__play {
  position: absolute; top: 50%; left: 50%; width: 4rem; height: 4rem; transform: translate(-50%, -50%);
  display: grid; place-items: center; padding: 0 0 0 .3rem; border: 0; border-radius: 0;
  background: var(--wine); color: var(--cream); cursor: pointer; transition: transform .2s ease;
}
.video__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video__play svg { width: 3.2rem; height: 3.2rem; position: relative; left: -3px; }   /* nudged left so the triangle looks centred */
.video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 1px solid #e2d9cb; background: var(--ink); }   /* dark while the player loads */
.gallery__nums { display: flex; justify-content: flex-end; margin-top: .25rem; margin-right: -.6rem; }
.gallery__num { padding: .6rem; border: 0; background: none; cursor: pointer; line-height: 0; }   /* padding = bigger tap area */
.gallery__num::before {
  content: ""; display: block; width: .6rem; height: .6rem; border-radius: 50%;
  border: 1px solid var(--wine); background: transparent; transition: background-color .2s ease;
}
.gallery__num[aria-current="true"]::before { background: var(--wine); }
@media (min-width: 768px) {
  .gallery__nums {
    position: absolute; top: 50%; left: 100%; transform: translateY(-50%);
    flex-direction: column; margin: 0;   /* the button padding is the gap to the picture */
  }
}
.panel__text { margin-top: 1.5rem; max-width: 34rem; font-size: .95rem; line-height: 1.6; }
.panel__text > * + * { margin-top: 1em; }
/* Portfolio subheading above each project's text. Keep titles to about 50 characters to sit on one line on desktop. */
.panel__title { font-size: 1.5rem; line-height: 1.2; margin-bottom: .65em; }
.panel__text > .panel__title + * { margin-top: 0; }   /* the title's margin-bottom sets the gap */

.explorer__panel--overlay { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: var(--ink); color: #fff; }
.explorer__panel--overlay .panel__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.explorer__panel--overlay .panel__text {
  position: absolute; inset: auto 0 0 0; margin: 0; max-width: none;
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
}
.explorer__panel--overlay .panel__text p { max-width: 30rem; }

@media (min-width: 48em) {
  /* The extra 1fr row soaks up any spare height, so the names stay bunched at the top */
  .explorer { --rows: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: repeat(var(--rows), auto) 1fr; column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .explorer__item { display: contents; border: 0; }
  .explorer__label, .explorer__tab { grid-column: 1; }
  .explorer__panel { grid-column: 2; grid-row: 1 / -1; position: sticky; top: 2rem; align-self: start; padding: 0; }
  .explorer__panel--overlay { aspect-ratio: 1 / 1.05; }
  .explorer--reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .explorer--reverse .explorer__label, .explorer--reverse .explorer__tab { grid-column: 2; }
  .explorer--reverse .explorer__panel { grid-column: 1; }
  .explorer--right .explorer__tab { text-align: right; }
}

/* Mobile accordion: a chevron shows each name can be opened (desktop uses hover instead) */
@media (max-width: 767px) {
  .explorer__tab { position: relative; padding-right: 2.5rem; }
  .explorer__tab::after {
    content: ""; position: absolute; right: .5rem; top: 50%; width: .6rem; height: .6rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-65%) rotate(45deg); transition: transform .2s;
  }
  .explorer__tab[aria-expanded="true"]::after { transform: translateY(-35%) rotate(225deg); }
}

.approach { padding: var(--section-space) 0 var(--section-space) var(--frame); }
.approach .explorer { padding-right: var(--gutter); }
.approach .explorer__panel--overlay { aspect-ratio: 1 / 1.1; }

/* Our approach (as on freuds.com): text sits on the right half of the image, pinned to the bottom,
   and the list of names runs down to the bottom of the section with its heading at the top. */
.approach .explorer__panel--overlay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%);
}
/* Shared spacing so the big letter and the text line up with the image edges */
.approach .explorer__panel--overlay {
  --panel-pad-x: clamp(1.25rem, 4vw, 3.5rem);
  --panel-pad-bottom: clamp(2.5rem, 6vw, 6rem);
  container-type: inline-size;
}
.approach .explorer__panel--overlay .panel__text {
  z-index: 1; left: auto; right: 0; width: 54%;
  padding: 0 var(--panel-pad-x) var(--panel-pad-bottom) 0;
  background: none; font-size: 1rem; line-height: 1.65;
}
/* Big initial letter (A, B, C, D, E), bottom left. Its foot sits on the
   same line as the bottom of the text. Size scales with the image width. */
.approach .panel__letter {
  position: absolute; z-index: 1;
  left: var(--panel-pad-x); bottom: var(--panel-pad-bottom);
  font: 400 40cqw/.76 var(--font-heading); color: var(--approach-letter);
  pointer-events: none;
}
.approach .explorer__panel--overlay .panel__text p { max-width: none; }
@media (min-width: 48em) {
  /* the first row takes all spare height, pushing the names to the bottom */
  .approach .explorer { grid-template-rows: 1fr repeat(var(--rows), auto); }
  .approach .explorer__label { align-self: start; margin-bottom: 0; }
}
@media (max-width: 767px) {
  .approach .explorer__panel--overlay .panel__text { left: 0; width: auto; padding: 0 clamp(1.25rem, 4vw, 3rem) 1.5rem; font-size: .95rem; }
  /* Text spans the full width on phones, so the letter moves to the top left */
  .approach .panel__letter { top: var(--panel-pad-x); bottom: auto; font-size: 30cqw; }
  /* The text always starts below the letter. If a panel has more text than fits, the panel grows
     taller instead of the text running into the letter (overflow: clip lets it grow, hidden would not). */
  .approach .explorer__panel--overlay:not([hidden]) { display: flex; flex-direction: column; justify-content: flex-end; overflow: clip; }
  .approach .explorer__panel--overlay .panel__text { position: relative; padding-top: calc(var(--panel-pad-x) + 23cqw + 3rem); }
  /* A taller panel and a slightly darker, higher gradient, so the text is easier to read over the picture */
  .approach .explorer__panel--overlay { aspect-ratio: 1 / 1.3; }
  .approach .explorer__panel--overlay::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, .72) 55%, rgba(0, 0, 0, .25) 78%, rgba(0, 0, 0, 0) 100%);
  }
}
.services__label { text-align: center; margin-bottom: 3rem; }

/* Tools list under each service, shown as small pills.
   Change the look with the --pill-* colours in the TOKENS block. */
.tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.panel__text > .tools { margin-top: 1.5em; }
.panel__text > .tools + p { margin-top: 1.5em; }

/* TEMPORARY: highlights copy still to be written or checked (text in [square brackets]).
   Remove the "todo" / "is-todo" classes as you fill each one in. Search the HTML for "todo" before launch. */
.todo { background: #FFE98A; color: var(--ink); padding: 0 .2em; }
.tools__item.is-todo { border-style: dashed; color: var(--grey); }
.tools__item {
  padding: .25em .85em .25em .85em;
  border: 1px solid var(--pill-border); border-radius: 999px;
  background: var(--pill-bg); color: var(--pill-text);
  font-size: .8rem; line-height: 1.4; letter-spacing: .02em; white-space: nowrap;
}

/* ---------- 8. FEATURE BLOCK (image one side, text the other) -------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: clamp(3rem, 7vw, 6rem); }
.feature__media { margin-left: var(--frame); }
.feature__media img { width: 100%; height: auto; }   /* each picture keeps its own shape, so nothing is cropped */
.feature__link { display: block; }
.feature__link img { transition: opacity .2s ease; }
.feature__link:hover img { opacity: .9; }   /* a gentle sign the picture is clickable */
.feature__body { padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter); max-width: 44rem; }
.feature__title { font-size: var(--fs-h2); line-height: 1.15; }
.feature__text { margin-top: 2rem; }
.feature__text > * + * { margin-top: 1.25em; }
.feature .text-link { display: inline-block; margin-top: 1.75rem; }
.feature--reverse .feature__media { order: 2; margin-left: 0; margin-right: var(--frame); }
.feature--reverse .feature__body { order: 1; margin-left: auto; }

/* Industries page: a grid of cards, four across on desktop (two rows of four).
   Each card: image, title, short text and an optional link.
   Same width as the standard .container used on the other pages. */
.industries {
  max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto;
  padding: var(--section-space) var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 2vw, 1.5rem);
}
.industry__img { width: 100%; aspect-ratio: 11 / 10; object-fit: cover; }
.industry__title { margin-top: 1.25rem; font: 400 1.6rem/1.1 var(--font-heading); }
.industry__title .impact-leaf { margin-left: .2em; }   /* a tighter gap after the title than on the Clients list */
.industries__key { grid-column: 1 / -1; margin-top: 0; }   /* the key spans the whole grid; the grid gap gives the space above */
.industry__text { margin-top: .5rem; font-size: .95rem; line-height: 1.5; }
.industry__link { margin-top: .9rem; font-size: .95rem; }
@media (max-width: 1023px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .industries { grid-template-columns: 1fr; } }

/* CTA band: the dark "What's new" look without the slider or image (end of the Industries page).
   Text lines up with the standard content width. */
.cta-band { margin: 0 var(--frame) var(--frame); padding: var(--section-space) calc(var(--gutter) - var(--frame)); background: var(--ink); color: var(--cream); }
.cta-band__inner { max-width: var(--content); margin-inline: auto; }
.cta-band .slide__text { max-width: 34rem; }
.cta-band .btn { margin-top: 1.5rem; font: 700 .95rem/1 var(--font-body); }

/* Reports list */
.reports { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.reports__label { text-align: center; margin-bottom: 2.5rem; }
.reports__item { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: baseline; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.reports__item:last-child { border-bottom: 1px solid var(--rule); }
.reports__title { font: 400 1.6rem/1.2 var(--font-heading); }
.reports__title a { text-decoration: none; }
.reports__title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.reports__meta { font-size: var(--fs-small); text-align: right; }
.tag { display: inline-block; border: 1px solid currentColor; padding: .1rem .5rem; margin-right: .75rem; font-size: .75rem; letter-spacing: var(--label-tracking); text-transform: uppercase; }

/* ---------- 9. ABOUT + CONTACT + PRIVACY ---------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.quote { padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.quote blockquote { font: 400 1.45rem/1.35 var(--font-heading); }
.quote figcaption { margin-top: 1.25rem; font-size: var(--fs-small); }
.section-title { text-align: center; margin-bottom: 3rem; }

.cta { text-align: center; }
.cta__text { max-width: 36rem; margin-inline: auto; font-size: 1.15rem; }
.cta__text > * + * { margin-top: 1.25em; }
.cta .btn { margin-top: 2.25rem; }

.contact-title { font-size: var(--fs-h1); line-height: .9; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.office h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.office address { font-style: normal; }
.office p { margin-top: 1.25rem; }
.office a { text-underline-offset: .2em; }

.legal { max-width: calc(var(--measure) + var(--gutter) * 2); margin-inline: auto; padding: clamp(7rem, 14vw, 10rem) var(--gutter) 0; }
.legal--tall { min-height: 60vh; }
.legal__action { margin-top: 2rem; }
.legal h1 { font-size: clamp(2.75rem, 5vw, 4.5rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.9rem; line-height: 1.2; margin-top: 2.5rem; margin-bottom: .75rem; }
.legal p, .legal li { line-height: 1.7; }
.legal p + p, .legal ul, .legal ul + p { margin-top: 1em; }   /* the same gap after a list as between paragraphs */
.legal li + li { margin-top: .5em; }   /* a little space between bullets */
.legal p a, .legal li a { color: var(--wine); }   /* links within the text (email, ICO, Netlify) in the brand red */
.legal ul, .legal ol { padding-left: 1.25rem; margin-left: 2em; }   /* indented a little; less on phones (below) */
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal .meta { font-size: var(--fs-small); color: var(--grey); }

/* Contact form (Contact page). Field and button styles follow the Freuds careers page:
   square, 1px ink border, a slightly darker fill; solid ink button with spaced capitals. */
.contact-form { margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem clamp(1rem, 2.5vw, 2rem); }
.field--full { grid-column: 1 / -1; }
.field__label { display: block; margin-bottom: .5rem; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--label-tracking); }
.field__req { color: var(--error); }
.field__input {
  display: block; width: 100%; min-height: 4rem; padding: 1rem 1.25rem;
  border: 1px solid var(--field-border); border-radius: 0; background: var(--field-bg); color: var(--ink);
  font: inherit; font-size: 1rem; letter-spacing: .02em;
  transition: background-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: var(--grey); }
.field__input:hover { background: var(--field-bg-hover); }
.field__input:focus { outline: none; background: var(--cream); box-shadow: inset 0 0 0 1px var(--field-border); }   /* border thickens on focus */
.field__input:focus-visible { outline: none; }
.field__input--textarea { min-height: 12rem; resize: vertical; line-height: 1.6; }
/* After someone has tried to send, show which required fields are missing */
.contact-form.was-validated .field__input:invalid { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
/* Under the form: small print lines up with the top of the button, the sent / error message with its bottom */
.contact-form__footer {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "note button" "status button";
  column-gap: 2rem; margin-top: 2rem;
}
.contact-form__note { grid-area: note; align-self: start; max-width: 34rem; font-size: .9rem; line-height: 1.2; color: var(--grey); }
.contact-form__footer .btn-solid { grid-area: button; }
.contact-form__status { grid-area: status; align-self: end; font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.contact-form__status.is-error { color: var(--error); }

/* Solid button (Freuds "Register your interest" style) */
.btn-solid {
  display: inline-block; padding: 1.6rem 2.9rem; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--cream); cursor: pointer;
  font: 400 1.05rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em;
  transition: background-color .2s, color .2s;
}
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-solid:disabled { opacity: .6; cursor: wait; }
@media (max-width: 767px) {
  .contact-form__grid { grid-template-columns: 1fr; }
  .btn-solid { width: 100%; }
  .contact-form__footer { grid-template-columns: 1fr; grid-template-areas: "note" "button" "status"; row-gap: 1.25rem; }
}

/* ---------- 10. CASE STUDY PAGE ------------------------------------------- */
.cs-head { padding: clamp(7rem, 14vw, 10rem) var(--gutter) 3rem; max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; }
.cs-head h1 { font-size: clamp(2.75rem, 6vw, 5.5rem); max-width: 16ch; }
.cs-summary { margin-top: 1.75rem; max-width: 40rem; font: 400 clamp(1.3rem, 2.2vw, 1.7rem)/1.35 var(--font-heading); }
.cs-meta { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.25rem 2rem; }
.cs-meta dt { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--label-tracking); color: var(--wine); font-weight: 600; }   /* the CLIENT, SECTOR etc. labels: wine and bold */
.cs-meta dd { margin-top: .25rem; }

.cs-hero { margin-inline: var(--frame); background: var(--ink); }
.cs-hero img, .cs-hero video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.prose { max-width: calc(var(--measure) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; margin-top: 2.25em; }
.prose h3 { font-size: 1.6rem; line-height: 1.2; margin-top: 1.75em; }
.prose h3[id] { scroll-margin-top: 2rem; }   /* a little space above a section opened from a link, e.g. #babease */
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-left: 2em; }   /* indented a little; less on phones (below) */
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
@media (max-width: 767px) { .prose ul, .prose ol, .legal ul, .legal ol { margin-left: .5em; } }
.prose li + li { margin-top: .4em; }
.prose a { text-underline-offset: .2em; }
.prose p a, .prose li a { color: var(--wine); }   /* links within the reading text in the brand red, as on the Privacy Policy */

.cs-block { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.cs-wide { max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.cs-full { margin-inline: var(--frame); }
.cs-wide img, .cs-wide video, .cs-full img, .cs-full video { width: 100%; object-fit: cover; }
.cs-wide .ratio-16x9 { aspect-ratio: 16 / 9; }
.cs-full .ratio-21x9 { aspect-ratio: 21 / 9; }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.75rem); }
.cs-pair img { aspect-ratio: 4 / 5; }
.cs-block figcaption { margin-top: .75rem; font-size: var(--fs-small); color: var(--grey); }
/* Gallery: two or more pictures side by side at their natural shape (nothing cropped). Set the number of
   columns with style="--cols: 3" on the .cs-gallery; phones show one column (two for sets of three or more). */
.cs-gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); align-items: start; }
.cs-gallery img, .cs-gallery video { width: 100%; height: auto; }
/* Pictures of different shapes shown at the same height: each column is as wide as its picture's shape, set with
   style="--match: 1.774fr 1.094fr" (each picture's width divided by its height). Phones stack them as usual. */
.cs-gallery--match { grid-template-columns: var(--match); }
/* Video blocks: a click-to-play YouTube or Vimeo thumbnail (main.js section 10), or a short silent loop */
.cs-block .video img { width: 100%; height: auto; display: block; }
.cs-video--portrait { max-width: calc(24rem + var(--gutter) * 2); }   /* tall phone-shaped videos stay a sensible size */
.cs-loop { width: 100%; height: auto; display: block; }
/* Rounded corners that hide the white corners baked into a clip (the photography guidelines video).
   The white corners have a radius of about 41px on the 1280px-wide video, so these cover about 46px:
   3.6% across and 6.4% down make round corners on a 16:9 video at any size. */
.cs-loop--rounded { border-radius: 3.6% / 6.4%; }
/* Quotes inside a case study use the testimonial block; the Testimonies label is only on the client testimonial */
.cs-quote { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
/* Quotes within a case study also get a line underneath, matching the one above, so they stand out from the story.
   The client testimonial at the end of the page has no .cs-quote, so it keeps just the top line. */
.cs-quote .testimonial__grid::after { content: ""; display: block; border-top: 1px solid var(--rule); margin-top: clamp(2.5rem, 5vw, 4rem); }

.pullquote { max-width: calc(52rem + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.pullquote blockquote { font: 400 clamp(1.8rem, 3.4vw, 3rem)/1.2 var(--font-heading); }
.pullquote figcaption { margin-top: 1.25rem; font-size: var(--fs-small); }

.stats { max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 2rem; }
.stat { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.stat__value { font: 400 clamp(3rem, 6vw, 5rem)/1 var(--font-heading); }
/* The unit after a figure (%, m, +, x, months) is small, raised and wine, like the S in the logo */
.stat__unit { font-size: .45em; font-weight: 500; vertical-align: .8em; margin-left: .06em; color: var(--wine); }
.stat__label { margin-top: .5rem; font-size: var(--fs-small); max-width: 14rem; }

.cs-nav { max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; padding: 1.5rem var(--gutter) 0; display: flex; justify-content: space-between; gap: 2rem; }
.cs-nav a { display: block; font: 400 1.6rem/1.2 var(--font-heading); text-decoration: none; }
.cs-nav a:hover span:last-child { text-decoration: underline; text-underline-offset: .15em; }
.cs-nav span:first-child { display: block; font: 400 var(--fs-label)/1.4 var(--font-body); text-transform: uppercase; letter-spacing: var(--label-tracking); color: var(--grey); }
.cs-nav__next { text-align: right; margin-left: auto; }
.cs-nav-wrap { margin-top: clamp(3rem, 7vw, 6rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); max-width: calc(var(--content) + var(--gutter) * 2); margin-inline: auto; }
.cs-nav-wrap .cs-nav { padding-top: 0; }

/* ---------- 11. FOOTER ----------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--cream); margin-top: var(--section-space); padding: 4rem var(--frame) 2rem; }
.site-footer__grid {
  display: grid; grid-template-columns: 1.1fr repeat(4, 1fr) auto; gap: 2.5rem 2rem;
  padding-inline: calc(var(--gutter) - var(--frame));
}
.site-footer__logo img { width: 100%; max-width: 9rem; }
.site-footer h2 { font: 400 var(--fs-label)/1.4 var(--font-body); text-transform: uppercase; letter-spacing: var(--label-tracking); margin-bottom: 1.25rem; }
.site-footer ul li + li { margin-top: .85rem; }
.site-footer a, .site-footer address, .site-footer p { font-size: .8rem; line-height: 1.55; font-style: normal; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-footer address + address { margin-top: 1.25rem; }
.site-footer__badges { display: flex; flex-direction: column; align-items: flex-end; gap: 1.25rem; }
.site-footer__copy { margin-top: 2.5rem; padding-inline: calc(var(--gutter) - var(--frame)); text-align: right; font-size: .75rem; }

/* ---------- 12. RESPONSIVE ------------------------------------------------- */
@media (max-width: 991px) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer__logo { grid-column: 1 / -1; }
  .site-footer__badges { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .intro, .slide, .feature, .offices { grid-template-columns: 1fr; }
  .intro__title { line-height: .95; margin-bottom: .75em; }   /* same gap below the heading as above it */
  /* Phones: a shorter hero, so less of the video is cropped at the sides and the intro heading shows on first screen */
  .hero { height: 62svh; min-height: 24rem; }
  .feature__media, .feature--reverse .feature__media { order: 0; margin-inline: var(--frame); }
  .feature__body, .feature--reverse .feature__body { order: 1; margin-left: 0; padding-inline: var(--gutter); }
  .slide { min-height: 0; padding-block: 1.5rem; }
  .slide__media { order: -1; }
  .slide__media img { max-height: 16rem; }
  .reports__item { grid-template-columns: 1fr; }
  .reports__meta { text-align: left; }
  .approach { padding-left: 0; }
  .approach .explorer { padding-inline: var(--gutter); }
  .cs-pair { grid-template-columns: 1fr; }
  .cs-pair img { aspect-ratio: 4 / 3; }
  .cs-gallery { grid-template-columns: 1fr; }
  .cs-gallery--match { grid-template-columns: 1fr; }
  .cs-gallery[style*="--cols: 3"], .cs-gallery[style*="--cols: 4"] { grid-template-columns: 1fr 1fr; }
  .cs-full .ratio-21x9 { aspect-ratio: 16 / 9; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__copy { text-align: left; }
}
@media (max-width: 479px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .cs-nav { flex-direction: column; }
  .cs-nav__next { text-align: left; margin-left: 0; }
}

/* ---------- 13. REDUCED MOTION -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
