/* ==========================================================================
   Stitch & Style International — Design System
   Light and calm, built on a light blue accent used for interaction,
   emphasis and the closing call-to-action band.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --paper:      #ffffff;
  --paper-2:    #eef5fc;   /* alternating band — light blue, this carries the theme */
  --paper-3:    #dfeaf5;
  --ink:        #13202e;   /* headings + dark surfaces (blue-black) */
  --ink-2:      #22303f;
  --ink-3:      #3d4650;

  /* Text */
  --text:       #333333;
  --muted:      #4f4f4f;
  /* #808080 reads nicer but lands at ~3.9:1 on white — too low for small text. */
  --muted-2:    #666666;

  /* Lines */
  --line:       #dde8f2;
  --line-2:     #bfd3e4;

  /* Accent — light blue. Kept at this depth because white button text needs
     4.5:1 against it; anything lighter than about #1a7cc4 fails that. */
  --accent:      #0e6fb2;
  --accent-2:    #0a5687;   /* hover / pressed */
  --accent-3:    #2a8fd4;   /* lighter, for use on dark surfaces */
  --accent-wash: #e4f1fc;   /* icon chips, soft fills */
  --label:       #0e6fb2;   /* small uppercase labels */

  --font-sans:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --wrap-narrow: 860px;
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05);
  --shadow-md: 0 6px 18px rgba(17, 17, 17, .07);
  --shadow-lg: 0 18px 44px rgba(17, 17, 17, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }
strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ink); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(56px, 7vw, 92px); }
.section--tight { padding-block: clamp(38px, 4.5vw, 58px); }
.section--paper2 { background: var(--paper-2); }

/* Formerly the dark band — now a light band, to keep the page calm. */
.section--ink { background: var(--paper-2); color: var(--text); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--ink); }

.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Present to screen readers and search engines, invisible on screen. Used for
   the home page h1, since that hero is pure photography. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--label); margin-bottom: 16px;
}
.section--ink .eyebrow { color: var(--label); }

.display   { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 600; }
.h1        { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
.h2        { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.h3        { font-size: clamp(1.12rem, 1.6vw, 1.3rem); }
.h4        { font-size: 1.02rem; }

.serif { font-family: var(--font-display); font-weight: 600; }

.lede { font-size: 1.06rem; font-weight: 300; line-height: 1.75; color: var(--muted); }
.section--ink .lede { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.measure { max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-size: .875rem; font-weight: 600; letter-spacing: .02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
/* Outlined button. Defaults to the dark outline so it is always legible; the
   white variant applies only where it actually sits on photography. */
.btn--ghost-light { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost-light:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--lg { padding: 16px 34px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .875rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}
.arrow-link:hover { gap: 14px; color: var(--accent); border-color: var(--accent); }
.section--ink .arrow-link { color: var(--ink); border-color: var(--line-2); }
.section--ink .arrow-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--paper-2); color: var(--muted);
  font-size: .8rem; font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.topbar a { transition: color .2s var(--ease); }
.topbar a:hover { color: var(--accent); }
.topbar__list { display: flex; align-items: center; gap: 24px; list-style: none; }
.topbar__list li { display: flex; align-items: center; gap: 8px; }
.topbar svg { width: 13px; height: 13px; opacity: .55; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
/* Sized to fill the 80px bar with a little breathing room. The bar height is
   set by min-height on .header, so a taller logo does not grow the bar. */
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 10px 13px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .26s var(--ease);
}
.nav a:not(.btn):hover { color: var(--accent); }
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.btn)[aria-current="page"] { color: var(--accent); }
/* The drawer CTA is a button, not a nav link: it keeps its own colours even
   when it points at the current page. */
.nav a.btn::after { content: none; }

/* The nav also carries a CTA for the mobile drawer; on desktop the one in
   .header__cta is used instead, so hide this duplicate. */
.nav > .btn { display: none; }

.header__cta { display: flex; align-items: center; gap: 12px; flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: background .2s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
  transition: transform .26s var(--ease), top .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (home) ----------
   Fills the first screen. The photographs carry NO dark overlay and no
   filter — the copy sits on its own solid card instead, so the pictures stay
   clean and the text stays readable whichever slide is showing. */
.hero {
  position: relative; background: var(--paper-3); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  --chrome: var(--header-h);
  min-height: calc(100vh - var(--chrome));
  min-height: calc(100svh - var(--chrome));
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .85s var(--ease);
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__slide.is-active { opacity: 1; }
/* The slow drift is what gives the still images their sense of motion. */
.hero__slide.is-active img { animation: heroPan 5.5s linear forwards; }
@keyframes heroPan { from { transform: scale(1.04); } to { transform: scale(1.12); } }

/* Caption gradient. Measured across all four slides, every part of these
   photographs runs from near-black to near-white, so text alone would fail
   somewhere. This gradient is confined to the bottom edge — it is fully
   transparent above 62%, leaving most of each picture untouched — and at the
   caption line it is dense enough that white text clears 5:1 even if the
   photograph behind it is pure white. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(11,18,26,.76) 0%,
    rgba(11,18,26,.72) 26%,
    rgba(11,18,26,.34) 50%,
    rgba(11,18,26,0)   66%);
}

.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(56px, 7vw, 84px); }
/* In px, not ch: a ch here resolves against the container's 16px, not the
   headline's size, which silently wrapped the headline onto a second line. */
.hero__caption { max-width: 620px; }
.hero__caption h1 {
  color: #fff;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  text-shadow: 0 1px 16px rgba(8,14,20,.5);
}
.hero__caption p {
  margin: 12px 0 0;
  color: #e8ecf0;
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
  font-weight: 300;
  text-shadow: 0 1px 14px rgba(8,14,20,.5);
}

/* Scroll cue — the bare arrow, no disc behind it. Sits to the right so it
   never runs into the caption. */
.hero__cue {
  position: absolute; z-index: 3; right: 24px; bottom: 24px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: #d3d8dd;
  filter: drop-shadow(0 1px 4px rgba(10,16,24,.55));
  transition: color .2s var(--ease);
}
.hero__cue:hover { color: #fff; }
/* Anchor the scroll cue jumps to; offset so the sticky header doesn't cover it. */
#main-content { display: block; scroll-margin-top: var(--header-h); }
.hero__cue svg { width: 26px; height: 26px; animation: cueBob 1.9s var(--ease) infinite; }
@keyframes cueBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Page hero (interior) ----------
   Same principle as the home hero: the photograph is shown clean, and the
   title sits on a solid card over it. */
.pagehero {
  position: relative; background: var(--paper-3); overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(300px, 34vw, 420px);
}
.pagehero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
/* Frosted panel rather than a solid one, so the photograph reads through it.
   At 55% white the worst possible backdrop (a pure black photo) still clears
   4.5:1 — but ONLY for --ink. Every piece of copy in this panel therefore uses
   --ink; the mid grey (--text) drops to 3.8:1 here and must not be used. */
.pagehero__inner {
  position: relative; z-index: 2;
  max-width: 620px;
  margin-block: clamp(24px, 4vw, 44px);
  padding: clamp(24px, 2.8vw, 36px);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(11px) saturate(1.15);
  -webkit-backdrop-filter: blur(11px) saturate(1.15);
  border: 1px solid rgba(255,255,255,.45);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(16,32,48,.14);
}
.pagehero .eyebrow { color: var(--ink); }
.pagehero h1 { color: var(--ink); }
.pagehero .lede { color: var(--ink); max-width: 44ch; margin-top: 12px; }

/* No opacity on the links: fading --ink to 82% here drops it to 3.8:1 over a
   dark photo. The current page is distinguished by weight instead. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink); margin-bottom: 14px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { font-weight: 600; }
.crumbs .sep { opacity: .5; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stats--float { margin-top: -54px; position: relative; z-index: 5; box-shadow: var(--shadow-lg); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1; color: var(--ink);
}
.stat__num span { font-size: .55em; color: var(--accent); vertical-align: super; margin-left: 2px; }
.stat__label { margin-top: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Section head ---------- */
.sechead { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 50px); }
.sechead--center { margin-inline: auto; text-align: center; }
.sechead p { margin-top: 16px; }
.sechead-split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(32px, 4vw, 50px);
}
.sechead-split .sechead { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.section--ink .card { background: var(--paper); border-color: var(--line); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent);
  border-radius: var(--radius); margin-bottom: 20px;
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; }
.card__num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--accent); margin-bottom: 16px; }

/* Feature list */
.featurelist { list-style: none; display: grid; gap: 0; }
.featurelist li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: .94rem;
}
.featurelist li:first-child { border-top: 1px solid var(--line); }
.featurelist svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 4px; }
.featurelist strong { display: block; color: var(--ink); font-weight: 600; }
.featurelist span { color: var(--muted); }

/* ---------- Split media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__badge {
  position: absolute; right: -20px; bottom: -20px;
  background: var(--accent); color: #fff; padding: 22px 26px; border-radius: var(--radius-lg);
  max-width: 220px; box-shadow: var(--shadow-lg);
}
.split__badge .stat__num { color: #fff; font-size: 2rem; }
.split__badge .stat__num span { color: rgba(255,255,255,.88); }
.split__badge .stat__label { color: #fff; margin-top: 6px; }

.media-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-duo img { border-radius: var(--radius-lg); object-fit: cover; width: 100%; aspect-ratio: 3/4; }
.media-duo img:first-child { margin-top: 34px; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.tile img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .55s var(--ease); mix-blend-mode: multiply; }
.tile:hover img { transform: scale(1.05); }
.tile__body {
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); background: var(--paper);
}
.tile__body h3 { font-size: .92rem; font-weight: 600; }
.tile__body svg { width: 16px; height: 16px; color: var(--accent); transition: transform .25s var(--ease); }
.tile:hover .tile__body svg { transform: translateX(4px); }

/* ---------- Catalogue ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line);
}
.filter {
  padding: 9px 18px; font-size: .82rem; font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 100px; color: var(--muted);
  background: var(--paper);
  transition: all .2s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter span { opacity: .6; margin-left: 5px; font-size: .78em; }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pcard {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper); cursor: zoom-in;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pcard__img { position: relative; background: #fafafa; overflow: hidden; }
.pcard__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 8%; transition: transform .5s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.06); }
.pcard__body { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.pcard__cat { font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pcard__name { font-size: .88rem; font-weight: 500; color: var(--ink); margin-top: 5px; }
.pcard.is-hidden { display: none; }

.count-note { font-size: .85rem; color: var(--muted); margin-bottom: 22px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 12, 12, .94);
  display: none; align-items: center; justify-content: center;
  padding: 5vh 6vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); background: #fff; }
.lightbox__cap { position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: #e0e0e0; font-size: .88rem; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.12); border-radius: 50%;
  transition: background .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__close { top: 3vh; right: 4vw; }
.lightbox__prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__btn svg { width: 20px; height: 20px; }

/* ---------- Gallery (factory) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .55s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 56px 20px 18px; color: #fff;
  background: linear-gradient(to top, rgba(10,16,24,.9) 15%, rgba(10,16,24,.55) 55%, transparent);
}
.gallery__label {
  display: inline-block; margin-bottom: 7px;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
}
.gallery__title {
  font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: #fff;
  text-shadow: 0 1px 14px rgba(10,16,24,.5);
}
.gallery figure:nth-child(1) .gallery__title { font-size: 1.24rem; }
@media (max-width: 720px) { .gallery__title { font-size: .94rem; } }
.gallery figure:nth-child(1) { grid-column: span 2; }
.gallery figure:nth-child(1) img { aspect-ratio: 16 / 9; }

/* ---------- Process / timeline ---------- */
.process { display: grid; gap: 0; }
.pstep { display: grid; grid-template-columns: 90px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); }
.pstep:last-child { border-bottom: 1px solid var(--line); }
.pstep__n { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; color: var(--accent); }
.pstep h3 { margin-bottom: 9px; }
.pstep p { color: var(--muted); font-size: .95rem; }
.pstep ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.pstep ul li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--muted); }
.pstep ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Spec table ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); }
.spec table { font-size: .92rem; }
.spec th, .spec td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { font-weight: 400; color: var(--muted); width: 42%; background: var(--paper-2); }
.spec td { color: var(--ink); font-weight: 500; }
.spec caption {
  caption-side: top; text-align: left; padding: 18px 22px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: .9rem;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Panel / pull quote ---------- */
.band {
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
}
.section--ink .band { background: var(--paper); }
.band .lede { color: var(--muted); }
.band h2, .band h3 { color: var(--ink); }

.pull {
  border-left: 3px solid var(--accent);
  padding-left: clamp(22px, 3vw, 34px);
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.6; color: var(--ink);
}
.section--ink .pull { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(34px, 5vw, 62px); align-items: start; }

.people { display: grid; gap: 14px; }
.person {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px;
  background: var(--paper);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.person:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.person__avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .82rem; font-weight: 600;
}
.person__name { font-weight: 600; color: var(--ink); }
.person__role { font-size: .74rem; font-weight: 600; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.person__links { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font-size: .875rem; }
.person__links a { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); transition: color .2s var(--ease); word-break: break-all; }
.person__links a:hover { color: var(--accent); }
.person__links svg { width: 14px; height: 14px; flex: none; color: var(--muted-2); }

/* Dark call-to-action tile that sits in the team grid. */
.person--cta { background: var(--accent); border-color: var(--accent); }
.person--cta:hover { border-color: var(--accent); }
.person--cta .person__avatar { background: #fff; color: var(--accent); }
.person--cta .person__name { color: #fff; }
.person--cta p { color: #e6f1fb; }
.person--cta .arrow-link { color: #fff; border-color: rgba(255,255,255,.4); }
.person--cta .arrow-link:hover { border-color: #fff; }

.infocard { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 22px; background: var(--paper); }
.infoline { display: flex; gap: 14px; align-items: flex-start; }
.infoline svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 4px; }
.infoline dt { font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.infoline dd { margin: 0; color: var(--ink); font-weight: 400; }
.infoline dd a:hover { color: var(--accent); text-decoration: underline; }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .78rem; font-weight: 600; color: var(--ink); letter-spacing: .05em; text-transform: uppercase; }
.field label .req { color: var(--muted-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: .94rem; font-weight: 300;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,111,178,.16);
}
.field__hint { font-size: .78rem; color: var(--muted-2); }
.field--error input, .field--error textarea, .field--error select { border-color: #c0392b; }
.field__err { font-size: .78rem; color: #c0392b; display: none; }
.field--error .field__err { display: block; }

.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.checkline input { width: 16px; height: 16px; margin-top: 4px; flex: none; accent-color: var(--accent); }

.form-note { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .84rem; color: var(--muted); }
.form-status { font-size: .9rem; padding: 13px 16px; border-radius: var(--radius); display: none; }
.form-status.is-ok  { display: block; background: #f1f6f2; border: 1px solid #c8dfcf; color: #23572f; }
.form-status.is-err { display: block; background: #fdf2f0; border: 1px solid #f0c9c2; color: #8e2a1c; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Chips / registrations ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 100px; font-size: .82rem; color: var(--muted); background: var(--paper); }
.section--ink .chip { border-color: var(--line-2); color: var(--muted); background: var(--paper); }

.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reg { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--paper); }
.reg__label { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.reg__no { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--accent); }

/* ---------- CTA band ---------- */
/* The one strongly coloured block on the page — a full-width accent band that
   closes each page and makes the call to action unmissable. */
.cta {
  background: var(--accent); color: #fff;
  text-align: center;
  padding-block: clamp(58px, 7vw, 88px);
}
.cta h2 { color: #fff; }
.cta p { color: #e6f1fb; max-width: 56ch; margin: 18px auto 0; }
.cta .btn-row { justify-content: center; margin-top: 32px; }
.cta .btn--primary { background: #fff; color: var(--accent); border-color: #fff; }
.cta .btn--primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta .btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.cta .btn--ghost-light:hover { background: #fff; color: var(--accent); border-color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--paper-2); color: var(--muted); padding-block: 60px 0; font-size: .88rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 42px; padding-bottom: 44px; }
/* width:auto is required — without it the image stretches to fill the column
   and the logo comes out roughly twice as wide as it should be. */
.footer img { height: 44px; width: auto; margin-bottom: 20px; }
.footer h4 { color: var(--ink); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { transition: color .2s var(--ease); }
.footer a:hover { color: var(--accent); }
.footer p { line-height: 1.75; max-width: 40ch; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .82rem; color: var(--muted-2);
}
.footer__bottom ul { display: flex; gap: 20px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* Uppercase nav items are wide — tighten before switching to the drawer.
   The logo keeps its size: the header row has ~180px of slack even here. */
@media (max-width: 1400px) {
  .nav a { padding: 10px 8px; font-size: .74rem; letter-spacing: .02em; }
}

@media (max-width: 1080px) {
  .tiles, .pgrid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .header__cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 24px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .24s var(--ease), transform .24s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 4px; font-size: .84rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav > .btn { display: inline-flex; margin-top: 18px; justify-content: center; color: #fff; }

  .topbar__list li:not(:last-child) { display: none; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__media { order: 0; }
  .split__badge { position: static; margin-top: 16px; max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats--float { margin-top: -32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(1) { grid-column: span 2; }
  .reg-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  .hero__cue { right: 12px; bottom: 14px; }
  .hero__caption { max-width: none; }
  .pagehero__inner { max-width: none; }
  .wrap { padding-inline: 18px; }
  .brand img { height: 42px; }
  .tiles, .pgrid { grid-template-columns: repeat(2, 1fr); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .pstep { grid-template-columns: 1fr; gap: 10px; }
  .media-duo img:first-child { margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .spec th, .spec td { padding: 13px 16px; }
  .spec th { width: 46%; }
  .lightbox__prev, .lightbox__next { display: none; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard__body { padding: 11px 12px 13px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ---------- Print ---------- */
@media print {
  .header, .topbar, .footer, .cta, .nav-toggle, .hero__dots, .lightbox { display: none !important; }
  body { color: #000; }
  .section { padding-block: 18px; }
}
