/* ==========================================================================
   beic consultancy — 2026 rebuild
   Structure and typographic language after syntechbiofuel.com,
   in beic's own identity (purple #543B97 + gold #E1A425) on a white ground.

   Colour model: the page is light. Two surfaces stay dark because they sit on
   full-bleed photography — the hero and the references band — and those carry
   their own "on dark" overrides at the end of each block.

   Accent rule: gold is a graphic colour (rules, fills, dark surfaces). On
   white it only reaches ~2.2:1, so small text accents use purple instead.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------ */
:root {
  --paper:      #FFFFFF;   /* page background      */
  --surface:    #F5F3FA;   /* tinted panel / image placeholder */
  --ink:        #17122E;   /* primary text         */
  --muted:      #5F5878;   /* secondary text       */
  --violet:     #543B97;   /* brand purple  (--primary)   */
  --lilac:      #9084C0;   /* brand purple, light  */
  --gold:       #E1A425;   /* brand gold    (--secondary) */
  --line:       rgba(23, 18, 46, 0.16);
  --line-soft:  rgba(23, 18, 46, 0.09);

  /* text sitting over dark photography */
  --over:       #F4F2FA;
  --over-muted: rgba(244, 242, 250, 0.78);
  --scrim:      23, 18, 46;

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1520px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- loading screen ───────────────────────────────────────────────────
   Two-colour only: deep purple background + orange ring.
   A modern SVG circle whose orange arc sweeps around (material-style
   dash animation) on a faint track — nothing else. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet);
  overflow: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }

.loader .spin {
  position: relative;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the circle ring */
.loader .ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.loader .track {
  fill: none;
  stroke: rgba(225, 164, 37, 0.16);
  stroke-width: 3;
}
.loader .arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 50% 50%;
  animation: loaderArc 1.5s ease-in-out infinite;
}

/* modern circle: the arc grows, travels, and shrinks as it rotates */
@keyframes loaderArc {
  0%   { stroke-dasharray: 2 282;   stroke-dashoffset: 0;     transform: rotate(0deg); }
  50%  { stroke-dasharray: 200 83;  stroke-dashoffset: -60;   transform: rotate(180deg); }
  100% { stroke-dasharray: 200 83;  stroke-dashoffset: -281;  transform: rotate(360deg); }
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  /* the header is fixed, so in-page anchor targets must clear it */
  scroll-padding-top: clamp(76px, 10vw, 104px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 200;
  font-stretch: 112%;
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

/* the full stop closing each heading echoes the gold dot in the logo */
h1 .dot, h2 .dot, .tagline .dot { color: var(--gold); }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

/* --- shared layout ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 90px); }
.section--tight { padding-block: clamp(28px, 4vw, 55px); }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* eyebrow: 01 — LABEL */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 56px);
}
.eyebrow::before {
  content: '';
  width: clamp(24px, 4vw, 56px);
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow .num { color: var(--violet); }

/* display sizes */
.d1 { font-size: clamp(2.1rem, 5.8vw, 5.3rem); }
.d2 { font-size: clamp(1.6rem, 3.7vw, 3.2rem); }
.d3 { font-size: clamp(1.15rem, 1.9vw, 1.7rem); }
@media (max-width: 640px) {
  .d1, .d2 { font-weight: 300; font-stretch: 100%; }
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* arrow link ------------------------------------------------------------ */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-block: 10px;
  color: var(--ink);
}
.arrow-link .track {
  position: relative;
  width: clamp(56px, 9vw, 128px);
  height: 1px;
  background: var(--line);
  overflow: visible;
}
.arrow-link .track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.arrow-link .head {
  color: var(--gold);
  transform: translateX(-6px);
  transition: transform 0.55s var(--ease);
  line-height: 1;
}
.arrow-link:hover .track::after { transform: scaleX(1); }
.arrow-link:hover .head { transform: translateX(0); }

/* --- header ------------------------------------------------------------ */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line-soft);
}

.brand { display: inline-flex; align-items: center; }
.brand .logo {
  /* the artwork includes the "consultancy" descriptor, so it needs a little
     more height than a bare wordmark before that line becomes legible */
  height: clamp(32px, 3.6vw, 44px);
  width: auto;
  display: block;
}

/* dot-grid menu toggle */
.menu-btn {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  gap: 4px;
  padding: 12px;
}
.menu-btn i {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  transition: background 0.3s var(--ease), transform 0.4s var(--ease);
}
.menu-btn:hover i { background: var(--violet); }
.menu-btn:hover i:nth-child(odd) { transform: scale(1.4); }

@media (max-width: 640px) {
  .hdr { padding-block: 12px; }
  .menu-btn { padding: 10px; }
}

/* --- overlay nav ------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px var(--gutter) clamp(28px, 5vw, 64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.nav.is-open { opacity: 1; visibility: visible; }

.nav-top { display: flex; justify-content: space-between; align-items: center; }
.nav-close {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  transition: color 0.3s var(--ease);
}
.nav-close:hover { color: var(--violet); }

.nav-list {
  align-self: center;
  list-style: none;
  margin: 0;
  padding: clamp(24px, 6vh, 64px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 1vh, 10px);
}
.nav-list li {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav.is-open .nav-list li { opacity: 1; transform: none; }
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 2.5vw, 34px);
  font-family: var(--display);
  font-weight: 200;
  font-stretch: 112%;
  font-size: clamp(1.09rem, 3.33vw, 2.62rem);
  line-height: 1.16;
  color: var(--ink);
  transition: color 0.35s var(--ease);
}
.nav-list a .n {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  flex: none;
  width: 2.4em;
  transition: color 0.35s var(--ease);
}
.nav-list a:hover { color: var(--violet); }
.nav-list a:hover .n { color: var(--violet); }

.nav-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 4vw, 52px);
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.nav-foot a:hover { color: var(--violet); }

/* --- hero (on dark photography) ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 clamp(40px, 7vw, 92px);
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  /* the headline sits in the lower band, which crosses the bright part of the
     photo — keep that band dark enough for thin display type to hold up */
  background:
    linear-gradient(to top,
      rgba(var(--scrim), 0.94) 2%,
      rgba(var(--scrim), 0.88) 32%,
      rgba(var(--scrim), 0.6) 64%,
      rgba(var(--scrim), 0.8) 100%),
    linear-gradient(to right, rgba(var(--scrim), 0.75), rgba(var(--scrim), 0.2));
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 17ch; color: var(--over); font-size: clamp(1.68rem, 4.64vw, 4.24rem); }
.hero .lede { margin-top: clamp(20px, 3vw, 34px); color: var(--over-muted); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(24px, 4vw, 52px);
  align-items: center;
  margin-top: clamp(30px, 4.5vw, 56px);
}
.hero .arrow-link { color: var(--over); }
.hero .arrow-link .track { background: rgba(244, 242, 250, 0.3); }

/* pinned to the viewport for the whole page; js hides it once the footer
   arrives. Sits under the header (90) and the menu overlay (95). */
.scroll-cue {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(28px, 4vw, 48px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
/* purple over the white page; js adds .on-dark while it floats over the hero
   or the references band, where it goes pale with the gold line restored */
.scroll-cue {
  --cue-text: var(--violet);
  --cue-line: var(--violet);
  color: var(--cue-text);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.45s var(--ease);
}
.scroll-cue.on-dark { --cue-text: var(--over-muted); --cue-line: var(--gold); }
.scroll-cue em { font-style: normal; }
.scroll-cue.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.scroll-cue span {
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, var(--cue-line), transparent);
}
/* on a phone the hero CTAs stack into the cue's corner — drop the cue */
@media (max-width: 640px) {
  .scroll-cue { display: none; }
}

/* --- statement --------------------------------------------------------- */
.statement h2 { max-width: 20ch; }
.statement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 32px);
  margin-top: clamp(16px, 2vw, 30px);
}
@media (min-width: 900px) {
  .statement-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 3vw, 55px); }
}
.statement-grid .col > * + * { margin-top: 10px; }

.pair { border-top: 1px solid var(--line-soft); padding-top: 11px; margin-top: 15px; }
.pair h3 {
  font-size: 12px;
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}
.pair p { color: var(--muted); }

/* --- figure-text (giant number filled with imagery) -------------------- */
.figure {
  position: relative;
  padding-block: clamp(70px, 11vw, 160px);
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--paper);
}
.figure-bg { position: absolute; inset: 0; z-index: 0; }
.figure-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.07; }
.figure-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--paper), rgba(255, 255, 255, 0.55), var(--paper));
}
.figure .wrap { position: relative; z-index: 1; text-align: center; }

.figure-num {
  font-family: var(--display);
  font-weight: 300;
  font-stretch: 125%;
  font-size: clamp(6rem, 25vw, 22rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  /* the photo alone has pale passages (sky, sea) that dissolve into the white
     page, so a scrim is layered into the same clipped background to guarantee
     the numeral stays dark enough to read */
  background-image:
    linear-gradient(rgba(23, 18, 46, 0.42), rgba(23, 18, 46, 0.42)),
    url('../img/13.jpg');
  background-size: cover;
  background-position: center 45%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* keeps the figure readable if background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .figure-num { color: var(--violet); -webkit-text-fill-color: var(--violet); background-image: none; }
}
.figure-cap {
  margin: clamp(18px, 3vw, 34px) auto 0;
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: var(--ink);
}
.figure .arrow-link { margin-top: clamp(24px, 3.5vw, 44px); }

/* --- numbered list (core values) --------------------------------------- */
.vlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.vlist li { border-bottom: 1px solid var(--line-soft); }
.vlist .row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px clamp(18px, 3vw, 44px);
  padding: clamp(24px, 3.4vw, 44px) 0;
  align-items: start;
}
@media (min-width: 860px) {
  .vlist .row { grid-template-columns: 5rem minmax(0, 20ch) 1fr; align-items: baseline; }
}
.vlist .n {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--violet);
  padding-top: 6px;
}
.vlist h3 { font-size: clamp(1rem, 1.7vw, 1.5rem); }
.vlist p { color: var(--muted); max-width: 58ch; }
.vlist li:hover h3 { color: var(--violet); transition: color 0.35s var(--ease); }

/* --- services (all panels open) ---------------------------------------- */
.svcs { border-top: 1px solid var(--line); }
.svc {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(15px, 2vw, 29px);
}
.svc-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: clamp(22px, 2.8vw, 36px);
}
.svc-head .n {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--violet);
  width: 2.6rem;
}
.svc-head h3 { font-size: clamp(1.05rem, 2.4vw, 2.1rem); }

.svc-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(11px, 1.5vw, 24px);
}
@media (min-width: 900px) {
  .svc-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: start;
    /* indent the body to sit under the title, clear of the number column */
    margin-left: calc(2.6rem + clamp(16px, 3vw, 40px));
  }
}
.svc-body .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border-radius: 14px; }
.svc-body .media img { width: 100%; height: 100%; object-fit: cover; }

.sub { list-style: none; margin: 0; padding: 0; }
.sub li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.sub li:first-child { border-top: 0; padding-top: 0; }
.sub h4 { font-size: 1.02rem; font-weight: 400; font-stretch: 100%; margin-bottom: 4px; }
.sub p { color: var(--muted); font-size: 0.94rem; max-width: 60ch; }

/* --- references CTA band (on dark photography) -------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--over);
}
.band-bg { position: absolute; inset: 0; z-index: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.band-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(var(--scrim), 0.92) 8%,
    rgba(var(--scrim), 0.62) 62%,
    rgba(var(--scrim), 0.35));
}
.band .wrap { position: relative; z-index: 1; padding-block: clamp(36px, 5.5vw, 79px); }
.band h2 { max-width: 15ch; color: var(--over); }
.band .lede { margin-top: 20px; color: var(--over-muted); }
.band .eyebrow { color: var(--over-muted); }
.band .eyebrow .num { color: var(--gold); }

.band-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(14px, 2vw, 24px);
  padding: 18px 30px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.band-cta:hover { background: var(--gold); color: var(--ink); }
.band-cta .head { font-size: 15px; line-height: 1; }

.band-peek {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: clamp(30px, 4vw, 50px);
  padding-top: 24px;
  border-top: 1px solid rgba(244, 242, 250, 0.18);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--over-muted);
}

/* --- clients (continuous marquee) --------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  /* fade the strip out at both edges rather than cutting logos dead */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  /* the track holds the row twice, so -50% lands exactly one row along and
     the loop is seamless */
  animation: marquee 70s linear infinite;
}
.marquee-row { display: flex; align-items: center; flex: none; }
.marquee-row > div {
  flex: none;
  width: clamp(132px, 13vw, 178px);
  height: clamp(72px, 7vw, 98px);
  display: grid;
  place-items: center;
  padding-inline: clamp(12px, 1.6vw, 24px);
}
.marquee img {
  max-height: 58%;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.62;
  transition: opacity 0.35s var(--ease), filter 0.35s var(--ease);
}
.marquee-row > div:hover img { opacity: 1; filter: none; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- projects grid (references page) ----------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(9px, 1.2vw, 17px);
}
.card { display: block; }
.card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
}
.card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .media img { transform: scale(1.05); }
.card .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
}
.card h3 { font-size: clamp(0.85rem, 1.2vw, 1.05rem); font-weight: 300; }
.card .place {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  flex: none;
}

/* homepage services teasers: 4 up, final row of 3 centred beneath;
   on mobile always 2 per row, the odd 7th card centres on its own row */
.svc-teaser { display: flex; flex-wrap: wrap; justify-content: center; }
.svc-teaser .card { flex: 0 1 calc(25% - clamp(6.75px, 0.9vw, 12.75px)); min-width: 0; }
@media (max-width: 980px) {
  .svc-teaser .card { flex-basis: calc(50% - clamp(4.5px, 0.6vw, 8.5px)); }
}

/* references projects: centre the incomplete last row */
.ref-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.ref-grid .card { flex: 0 1 calc(25% - clamp(6.75px, 0.9vw, 12.75px)); min-width: 0; }
@media (max-width: 980px) {
  .ref-grid .card { flex-basis: calc(50% - clamp(4.5px, 0.6vw, 8.5px)); }
}
@media (max-width: 560px) {
  .ref-grid .card { flex-basis: 100%; }
}

/* --- events list ------------------------------------------------------- */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.events li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.4s var(--ease);
}
.events li:hover { padding-left: 12px; }
.events h3 { font-size: clamp(0.85rem, 1.5vw, 1.3rem); }
.events .place {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
}

/* --- contact ----------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(13px, 1.5vw, 20px);
  margin-top: clamp(17px, 2vw, 30px);
}
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card { border-top: 1px solid var(--line); padding-top: 22px; }
.contact-card h3 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact-card p, .contact-card a {
  font-family: var(--display);
  font-weight: 200;
  font-stretch: 105%;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.4;
  transition: color 0.3s var(--ease);
}
.contact-card a:hover { color: var(--violet); }

/* --- footer (contact fused in) ----------------------------------------- */
.ftr {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(35px, 5vw, 75px) 14px;
}
/* contact lives here now — give it room to read as a section, not a footnote */
.ftr-contact {
  padding-bottom: clamp(24px, 3vw, 42px);
  margin-bottom: clamp(22px, 2.5vw, 36px);
  border-bottom: 1px solid var(--line-soft);
}
.ftr-contact .contact-grid { margin-top: clamp(15px, 2vw, 26px); }
.ftr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(15px, 2vw, 28px);
}
@media (min-width: 820px) { .ftr-grid { grid-template-columns: 1.4fr 1fr; } }
.ftr h4 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li + li { margin-top: 10px; }
.ftr li a { color: var(--ink); transition: color 0.3s var(--ease); }
.ftr li a:hover { color: var(--violet); }
.ftr .tagline {
  font-family: var(--display);
  font-weight: 200;
  font-stretch: 108%;
  font-size: clamp(0.92rem, 1.6vw, 1.36rem);
  line-height: 1.24;
  max-width: 22ch;
}
.ftr-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(40px, 5vw, 66px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

/* --- legal pages (privacy, terms) -------------------------------------- */
.prose { max-width: 74ch; }
.prose .note {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 22px;
  margin-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}
.prose h2 {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 300;
  font-stretch: 104%;
  margin-top: clamp(34px, 4vw, 52px);
  margin-bottom: 12px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
.prose li + li { margin-top: 10px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a {
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--ink); }

/* legal links in the footer base row */
.ftr-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ftr-legal a { transition: color 0.3s var(--ease); }
.ftr-legal a:hover { color: var(--violet); }

/* ==========================================================================
   MOTION
   Restrained, transform/opacity only. Reveal styles are scoped to html.js so
   nothing is hidden when scripting is unavailable. Everything here is
   neutralised under prefers-reduced-motion at the bottom of the file.
   ========================================================================== */

/* --- page enter / leave ------------------------------------------------ */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.55s var(--ease) both; }
/* set by js just before following an internal link */
html.is-leaving body { opacity: 0; transition: opacity 0.26s ease; animation: none; }

/* --- reveal on scroll -------------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
html.js [data-reveal="left"]  { transform: translateX(-26px); }
html.js [data-reveal="right"] { transform: translateX(26px); }
html.js [data-reveal="scale"] { transform: scale(0.965); }
html.js [data-reveal].is-in   { opacity: 1; transform: none; }

/* the gold rule in each eyebrow draws in as its label reveals */
html.js .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.15s;
}
html.js .eyebrow.is-in::before { transform: scaleX(1); }

/* photographs settle from a slight zoom as their block reveals, then offer a
   gentle zoom on hover — both on the same transform so they never fight */
html.js .svc .media img,
html.js .card .media img {
  transform: scale(1.07);
  transition: transform 1.5s var(--ease);
}
html.js .svc.is-in .media img,
html.js .card.is-in .media img { transform: scale(1); }
html.js .svc.is-in:hover .media img  { transform: scale(1.035); transition-duration: 1.1s; }
html.js .card.is-in:hover .media img { transform: scale(1.05);  transition-duration: 0.9s; }

/* --- hover feedback ---------------------------------------------------- */
.svc-head h3 { transition: color 0.35s var(--ease); }
.svc:hover .svc-head h3 { color: var(--violet); }

.card { transition: transform 0.6s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card .meta { transition: border-color 0.45s var(--ease); }
.card:hover .meta { border-top-color: var(--violet); }
.card h3 { transition: color 0.35s var(--ease); }
.card:hover h3 { color: var(--violet); }

.events h3 { transition: color 0.35s var(--ease); }
.events li:hover h3 { color: var(--violet); }

.band-cta {
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.band-cta:hover { transform: translateY(-1px); }
.band-cta:active { transform: translateY(0) scale(0.985); transition-duration: 0.12s; }
.band-cta .head { transition: transform 0.4s var(--ease); }
.band-cta:hover .head { transform: translateX(4px); }

/* text links gain a drawn underline rather than a colour flip alone */
.ftr li a,
.ftr-legal a,
.nav-foot a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}
.ftr li a:hover,
.ftr-legal a:hover,
.nav-foot a:hover { background-size: 100% 1px; }

.contact-card a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: color 0.3s var(--ease), background-size 0.45s var(--ease); }
.contact-card a:hover { background-size: 100% 1px; }

/* --- header ------------------------------------------------------------ */
.brand .logo { transition: height 0.45s var(--ease), opacity 0.3s var(--ease); }
.brand:hover .logo { opacity: 0.82; }
/* compacts slightly once the page is scrolling */
.hdr.is-stuck .brand .logo { height: clamp(28px, 3vw, 38px); }
.hdr.is-stuck { box-shadow: 0 12px 32px -22px rgba(23, 18, 46, 0.22); }

/* --- overlay nav ------------------------------------------------------- */
.nav {
  transform: scale(1.012);
  transition: opacity 0.5s var(--ease), visibility 0.5s, transform 0.7s var(--ease);
}
.nav.is-open { transform: none; }
.nav-list a { transition: color 0.35s var(--ease), transform 0.5s var(--ease); }
.nav-list a:hover { transform: translateX(6px); }
.nav-foot {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease) 0.35s, transform 0.5s var(--ease) 0.35s;
}
.nav.is-open .nav-foot { opacity: 1; transform: none; }

/* --- hero --------------------------------------------------------------- */
.scroll-cue span {
  background: linear-gradient(to bottom, transparent, var(--cue-line), transparent) 0 0 / 100% 200% no-repeat;
  animation: cueDrift 2.8s var(--ease) infinite;
}
@keyframes cueDrift {
  from { background-position: 0 -100%; }
  to   { background-position: 0 100%; }
}

/* --- parallax ----------------------------------------------------------- */
/* js moves these a fraction of their section's travel; the enlarged inset is
   the headroom that keeps the photo covering its box throughout */
.hero-media  { inset: -12% 0; }
.band-bg,
.figure-bg   { inset: -18% 0; }
[data-parallax] { will-change: transform; }

/* --- marquee ------------------------------------------------------------ */
/* pause the strip while a visitor is reading a logo */
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --- counters ----------------------------------------------------------- */
/* equal-width digits so the numeral doesn't jitter while counting up */
.figure-num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   REDUCED MOTION — every effect above steps aside
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body { animation: none; }
  html.is-leaving body { opacity: 1; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  html.js .eyebrow::before { transform: none; }
  html.js .svc .media img,
  html.js .card .media img { transform: none; }
  .hero-media img { transform: none; animation: none; }
  .hero-media, .band-bg, .figure-bg { inset: 0; transform: none !important; }
  [data-parallax] { will-change: auto; }
  .nav { transform: none; }
  .nav-foot { opacity: 1; transform: none; }
  .scroll-cue span { animation: none; background: linear-gradient(to bottom, var(--cue-line), transparent); }

  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-row[aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   MOBILE OPTIMIZATION — touch, layout, and performance for small screens
   ========================================================================== */

/* remove tap highlight + callout, enable momentum scroll */
html { -webkit-tap-highlight-color: transparent; }
body { -webkit-touch-callout: none; -webkit-overflow-scrolling: touch; }

/* touch targets: links and buttons get at least 44px hit area */
@media (max-width: 760px) {
  .menu-btn { min-width: 44px; min-height: 44px; }
  .nav-list a { padding-block: 6px; }
  .band-cta { min-height: 44px; }
  .ftr li a,
  .ftr-legal a { display: inline-block; padding-block: 4px; }
  .contact-card a { display: inline-block; padding-block: 4px; }
}

/* hero: less top padding, smaller min-height on phones */
@media (max-width: 640px) {
  .hero { min-height: 92svh; padding-top: 90px; }
  .hero .lede { font-size: 1rem; }
}

/* sections: tighter padding on phones */
@media (max-width: 640px) {
  .section { padding-block: clamp(28px, 8vw, 50px); }
  .section--tight { padding-block: clamp(20px, 6vw, 35px); }
  .eyebrow { margin-bottom: clamp(16px, 4vw, 28px); }
}

/* statement grid: single column already; tighten internal spacing */
@media (max-width: 640px) {
  .statement-grid { gap: 20px; }
  .pair { padding-top: 8px; margin-top: 10px; }
}

/* services page: stack body under heading, image first on phones */
@media (max-width: 899px) {
  .svc-body { grid-template-columns: 1fr; }
  .svc-body .media { order: -1; max-height: 260px; }
  .svc-body .media img { object-position: center; }
  .svc-head { gap: 10px; }
}

/* card grids: 2-up on tablets, 1-up on phones (already set) */
/* ensure card text doesn't overflow on narrow screens */
@media (max-width: 560px) {
  .card .meta { padding: 12px 14px; }
  .card h3 { font-size: 0.95rem; }
}

/* events: single column stack on phones */
@media (max-width: 560px) {
  .events li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .events li:hover { padding-left: 0; }
}

/* contact: single column, tighter gaps on phones */
@media (max-width: 560px) {
  .contact-grid { gap: 12px; }
  .contact-card { padding-top: 14px; }
  .ftr-contact { padding-bottom: 28px; margin-bottom: 20px; }
}

/* footer: stack, tighten spacing on phones */
@media (max-width: 560px) {
  .ftr { padding-block: 36px 14px; }
  .ftr-grid { gap: 24px; }
  .ftr-base { flex-direction: column; gap: 8px; text-align: center; }
}

/* band CTA: full-width on phones */
@media (max-width: 560px) {
  .band .wrap { padding-block: 40px; }
  .band-cta { display: inline-flex; }
}

/* prevent horizontal overflow from any element */
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  img { max-width: 100%; height: auto; }
  .hero-media img { height: 100%; }
}

/* scroll cue already hidden on < 640; also hide on landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .scroll-cue { display: none; }
  .hero { min-height: 100svh; }
}

/* dynamic hover: only on devices that support hover (not touch) */
@media (hover: none) {
  .card:hover { transform: none; }
  .card .media img { transform: none; }
  .events li:hover { padding-left: 0; }
  .nav-list a:hover { transform: none; }
  .band-cta:hover { transform: none; }
}

