/* ==========================================================================
   Valora Forte OÜ — site stylesheet (v4)
   Single hand-written stylesheet. No frameworks, no build step.

   Type:    Instrument Serif (display)  ·  General Sans (body/UI)
   Surface: warm off-white #F7F5F0 · raised #FFFFFF · panel #EFECE4
   Ink:     #0E0E0E / soft #3A3833 / muted #5A574F
   Brand:   flat pine #1D4B3F · deep #12352C · night #0E2B23
   Accent:  brass #9A6B22 (on light) · #C9953E (on dark)

   All fonts are self-hosted — the site makes no third-party requests.
   Green surfaces are flat colour: no texture, no gradient.
   ========================================================================== */

/* --- Self-hosted fonts ----------------------------------------------------- */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/InstrumentSerif.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/GeneralSans-400.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/GeneralSans-500.woff2") format("woff2");
}
@font-face {
  font-family: "General Sans";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/GeneralSans-600.woff2") format("woff2");
}

/* --- Design tokens --------------------------------------------------------- */
:root {
  --bg:            #F7F5F0;
  --bg-raised:     #FFFFFF;
  --bg-panel:      #EFECE4;

  --ink:           #0E0E0E;
  --ink-soft:      #3A3833;
  --ink-muted:     #5A574F;

  --green:         #1D4B3F;
  --green-dark:    #174035;
  --green-deep:    #12352C;
  --green-night:   #0E2B23;
  --green-tint:    #E5EBE6;

  /* Brass comes in three weights because the same hue cannot clear 4.5:1 on
     every surface. --brass is the display tone (large text and numerals only);
     --brass-text is the small-label tone on light; --brass-light on green. */
  --brass:         #9A6B22;
  --brass-text:    #875D1E;
  --brass-light:   #D9AA57;

  --cream:         #F5F1E8;
  --sage:          #AFC4B7;
  --sage-dim:      #86A394;
  --line-on-dark:  rgba(245, 241, 232, 0.16);

  --border:        #E3DFD4;
  --border-strong: #CFC9B9;

  --white:         #FFFFFF;
  --danger:        #A8362E;
  --danger-bg:     #F9EAE7;

  --maxw:          1240px;
  --gutter:        clamp(1.25rem, 4vw, 3rem);

  --r-lg:          28px;
  --r-md:          20px;
  --r-sm:          12px;
  --r-pill:        999px;

  --shadow-sm:     0 1px 2px rgba(14, 14, 14, 0.04);
  --shadow-md:     0 1px 2px rgba(14, 14, 14, 0.04), 0 12px 28px -16px rgba(14, 14, 14, 0.18);
  --shadow-lg:     0 2px 4px rgba(14, 14, 14, 0.05), 0 28px 56px -24px rgba(18, 53, 44, 0.32);

  --font-head: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

::selection { background: var(--green); color: var(--cream); }

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

/* Display type: Instrument Serif, set tight and large — the template look. */
h1, h2 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 0.42em;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h1 em, h2 em { font-style: italic; color: var(--green); }

h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h3 { font-size: clamp(1.1rem, 1.8vw, 1.25rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.2rem; max-width: 68ch; }

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(29, 75, 63, 0.4);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover { color: var(--green-deep); text-decoration-color: currentColor; }

strong { font-weight: 600; }

ul, ol { margin: 0 0 1.2rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; max-width: 66ch; }
li::marker { color: var(--brass); }

hr { border: 0; border-top: 1px solid var(--border); margin: 3.5rem 0; }

/* --- Accessibility helpers -------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0.5rem; top: -3.5rem;
  background: var(--green-night);
  color: var(--cream);
  padding: 0.65rem 1.1rem;
  border-radius: var(--r-pill);
  z-index: 200;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.6rem; color: var(--cream); }

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

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

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

/* Section padding is per-edge, so two stacked sections used to sum to roughly
   300-380px of dead space at the seam. Reduced so a seam lands near 200px,
   which still separates the bands without leaving the page feeling broken up. */
.section { padding-block: clamp(3rem, 5.5vw, 5rem); }
/* Subpage hero band. Centred to match the home hero, with the lead centred on
   the same axis; the numeral that used to sit in the corner has been removed. */
.section--tight {
  padding-block: clamp(3.25rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.section--tight h1 { margin-inline: auto; max-width: 20ch; }
.section--tight .lead { margin-inline: auto; }
.section--tight .lead.measure { max-width: 58ch; }
.section--tight .eyebrow { justify-content: center; }
.section--tight .form-note { margin-inline: auto; }

.section--panel { background: var(--bg-panel); }

/* Closing call-to-action band: a textile photograph under a heavy flat green
   overlay. The overlay is one solid tone rather than a pattern, so the green
   still reads as flat; the photograph only supplies depth beneath it.
   Each page that uses this band gets its own photograph - no image appears
   twice anywhere on the site. green-night is set as the background-colour so
   the band is already the right colour before the photograph loads. */
.section--accent {
  position: relative;
  isolation: isolate;
  background-color: var(--green-night);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--cream);
}
.section--accent--mill    { background-image: url("../images/cta-index.jpg"); }
.section--accent--looms   { background-image: url("../images/cta-expertise.jpg"); }
.section--accent--roll    { background-image: url("../images/cta-materials.jpg"); }
.section--accent--vintage { background-image: url("../images/cta-quality.jpg"); }
.section--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(14, 43, 35, 0.90), rgba(18, 53, 44, 0.94));
}
.section--accent > .container { position: relative; z-index: 1; }
.section--accent h1,
.section--accent h2,
.section--accent h3 { color: var(--cream); }
.section--accent h1 em,
.section--accent h2 em { color: var(--brass-light); }
.section--accent a { color: var(--cream); }
.section--accent .lead { color: #D8E2DA; }
.section--accent .eyebrow { color: var(--brass-light); }
.section--accent .eyebrow::before { background: var(--brass-light); }

.measure { max-width: 62ch; }
.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: -0.014em;
}

/* Eyebrow — small caps label with a brass dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brass-text);
  flex: 0 0 auto;
}

/* Page numeral: quiet, sits beside the heading */
.section--tight { position: relative; overflow: hidden; }

/* --- Pull quote ------------------------------------------------------------ */
.pullquote {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote em { font-style: italic; color: var(--green); }
/* The band pullquote is a display statement, not body copy, so it is centred.
   Running text elsewhere stays left-aligned: centred paragraphs are harder to
   read because every line starts in a different place. */
.pullquote--band {
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  line-height: 1.06;
}
.pullquote--inline {
  border-left: 3px solid var(--brass);
  padding-left: 1.6rem;
  margin: 2.75rem 0;
  max-width: 34ch;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.15;
}
.pullquote__mark { display: block; }
.pullquote__mark::before {
  content: "\201C";
  display: block;
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 0.55;
  color: var(--brass);
  margin-bottom: 1.3rem;
}
/* Tiles inside a pullquote sit on a line of display type, so they run a little
   smaller than the hero tiles to keep the line from crowding. */
.pullquote .h-tile {
  width: 1.18em;
  height: 0.7em;
  border-radius: 0.2em;
  margin: 0 0.05em;
}

/* --- Header / navigation ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: saturate(1.1) blur(14px);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 245, 240, 0.96);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
/* The VF monogram, drawn from the client's own logo file. It is deliberately
   never rotated or animated: a brand mark that tilts on scroll or hover reads
   as a rendering fault rather than as motion design. */
.brand__mark {
  width: auto;
  height: 34px;
}
/* The wordmark is the client's own lettering lifted from the logo file, not a
   typeface we hold, so it is placed as artwork rather than set as text. The
   link itself carries aria-label="Valora Forte - home", which is what assistive
   technology reads; the image is decorative and stays alt="". */
.brand__name {
  height: 15px;
  width: auto;
  align-self: center;
  margin-top: 3px;
}

/* Full logo lockup in the footer (light variant on the green). */
.footer__logo {
  width: clamp(180px, 20vw, 232px);
  height: auto;
  margin-bottom: 1.4rem;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--ink);
}
.nav__toggle-bar { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 1.5px; background: currentColor;
}
.nav__toggle-bar::before { top: -6px; }
.nav__toggle-bar::after  { top: 6px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu li { margin: 0; max-width: none; }
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-pill);
  transition: color 0.16s ease, background 0.16s ease;
}
.nav__link:hover { color: var(--ink); background: rgba(14, 14, 14, 0.05); }
.nav__link.active,
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Final nav item (Contact) is the header CTA */
.nav__menu li:last-child .nav__link {
  margin-left: 0.5rem;
  padding: 0.66rem 1.35rem;
  background: var(--green-night);
  color: var(--cream);
  font-weight: 500;
  transition: background 0.16s ease, transform 0.12s ease;
}
.nav__menu li:last-child .nav__link:hover { background: var(--green); transform: translateY(-1px); }
.nav__menu li:last-child .nav__link.active,
.nav__menu li:last-child .nav__link[aria-current="page"] { background: var(--green); }

/* --- Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
              transform 0.12s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn::after {
  content: "\2192";
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s ease;
}
.btn:hover::after { transform: translateX(3px); }

.btn--primary { background: var(--green-night); color: var(--cream); }
.btn--primary:hover { background: var(--green); color: var(--white); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-tint); }

/* .section--accent a (0,1,1) would otherwise repaint this cream-on-cream */
.btn--on-accent,
.section--accent a.btn--on-accent { background: var(--cream); color: var(--green-night); }
.btn--on-accent:hover,
.section--accent a.btn--on-accent:hover { background: var(--white); color: var(--green-night); }

/* --- Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--bg);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  text-align: center;
}
/* Soft brand-tinted glow behind the headline so the centred block sits on
   something rather than floating in flat cream. */
.hero::before {
  content: "";
  position: absolute;
  top: -28%; left: 50%;
  width: min(1100px, 120%); aspect-ratio: 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(29, 75, 63, 0.13), transparent 70%),
    radial-gradient(closest-side, rgba(154, 107, 34, 0.10), transparent 72%);
  background-position: 30% 40%, 72% 30%;
  background-size: 78% 78%, 62% 62%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; display: flex; flex-direction: column; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  max-width: 17ch;
  margin-inline: auto;
  margin-bottom: 0.34em;
  font-size: clamp(3rem, 6.8vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero h1 em { color: var(--brass); }
.hero .lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink-muted);
}
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

.hero__meta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--border);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem clamp(1.5rem, 5vw, 3.5rem);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Image tiles set inline within the headline. Sized in em so they scale with
   the type, and kept out of the accessibility tree - the sentence reads
   correctly without them. */
.h-tile {
  display: inline-block;
  vertical-align: middle;
  width: 1.28em;
  height: 0.76em;
  margin: 0 0.06em;
  border-radius: 0.22em;
  overflow: hidden;
  /* The inset hairline keeps a pale image (the measuring tape, for one) from
     dissolving into the linen background - without it the tile stops
     reading as a tile and looks like a stray fragment. */
  box-shadow: inset 0 0 0 1px rgba(14, 14, 14, 0.10),
              0 1px 2px rgba(14, 14, 14, 0.06),
              0 8px 20px -10px rgba(14, 14, 14, 0.35);
  transform: translateY(-0.06em);
}
.h-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Wide image closing the hero */
.hero__media {
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 8;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* 404 reuses .hero__cta outside the hero */
main > .section .hero__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* --- Grids ------------------------------------------------------------------ */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); counter-reset: card; margin-top: 2.75rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--split {
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.grid--split > .media { align-self: center; }

/* Two-column rows only: the photograph stretches to the height of the text
   beside it instead of keeping a fixed portrait ratio. A 3/4 image next to a
   shorter text column left an empty gap under the copy; matching the row height
   closes it, and object-fit: cover crops rather than distorts. The min-height
   stops a very short paragraph squashing the image into a strip. */
@media (min-width: 941px) {
  .grid--split { align-items: stretch; }
  .grid--split > .media {
    align-self: stretch;
    height: 100%;
    aspect-ratio: auto;
    min-height: 22rem;
  }
}

/* These blocks carry a top margin to separate them from a heading above them.
   When one opens a section there is no heading, so that margin becomes dead
   space stacked on the section's own padding. */
.container > .faq-list:first-child,
.container > .feature-list:first-child,
.container > .steps:first-child,
.container > .grid--3:first-child,
.container > .grid:first-child { margin-top: 0; }

/* --- Cards ------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.1rem 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.card::before {
  counter-increment: card;
  content: "0" counter(card);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 1.4rem;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 1.5rem; color: var(--ink-muted); font-size: 0.98rem; }
.card__link {
  margin-top: auto;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.014em;
  text-decoration: none;
  color: var(--green-deep);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  /* A card's call to action is a standalone target, so it needs to clear the
     24px minimum on its own rather than relying on the inline exception. */
  padding-block: 0.32rem;
}
.card__link::after { content: "\2192"; transition: transform 0.25s ease; }
.card:hover .card__link::after { transform: translateX(4px); }

/* --- Process steps ---------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
}
.step {
  position: relative;
  max-width: none;
  margin: 0;
  counter-increment: step;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.9rem 2rem 1.75rem 5.6rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 2rem;
  top: 1.85rem;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brass);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin-bottom: 0; color: var(--ink-muted); }
.step p + p { margin-top: 0.85rem; }

/* --- Feature list ----------------------------------------------------------- */
.feature-list {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  counter-reset: feat;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.feature-list > li {
  counter-increment: feat;
  max-width: none;
  margin: 0;
  padding: 1.9rem 1.9rem 1.75rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.feature-list > li::before {
  content: "0" counter(feat);
  display: block;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.feature-list h3 { margin-bottom: 0.4rem; }
.feature-list p { margin-bottom: 0; color: var(--ink-muted); font-size: 0.98rem; }

/* --- Images in content ------------------------------------------------------ */
.media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
/* Diagrams are drawings, not photographs: they sit on a white card, keep their
   own aspect ratio, and must not be cropped or zoomed on hover. */
.media--diagram {
  aspect-ratio: auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: clamp(0.5rem, 1.5vw, 1.25rem);
  box-shadow: var(--shadow-sm);
}
.media--diagram:hover { transform: none; box-shadow: var(--shadow-sm); }
/* Below ~700px the three weave panels and the spec rows become unreadably
   small, so the figure scrolls sideways inside its own box instead. */
@media (max-width: 700px) {
  .diagram-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-block: 1.25rem 3rem;
  }
  .diagram-scroll .media--diagram { min-width: 640px; margin-block: 0; }
}

.media--wide { aspect-ratio: 16 / 9; }
/* The full-width photographs that sit under a hero were filling roughly 80% of
   an 800px-tall viewport at 16/9. They are cropped to a wider, shallower band on
   larger screens so the copy below them stays in view. The ratio only widens as
   the screen does; on a phone a 2.6:1 crop would be a sliver, so the 16/9 above
   still applies there. object-fit: cover means the photograph is cropped, never
   squashed. */
/* A photograph whose subject runs vertically (a stack seen edge on, say) loses
   its point in the shallow 2.6:1 band, so it opts into a deeper frame. Used
   sparingly: it is taller than the default on purpose. */
.media--deep { aspect-ratio: 2 / 1; }
@media (min-width: 700px) {
  .media--wide.media--standalone.media--deep { aspect-ratio: 2 / 1; }
}
@media (min-width: 1100px) {
  .media--wide.media--standalone.media--deep { aspect-ratio: 2 / 1; }
}

@media (min-width: 700px) {
  .media--wide.media--standalone { aspect-ratio: 2.2 / 1; }
}
@media (min-width: 1100px) {
  .media--wide.media--standalone { aspect-ratio: 2.6 / 1; }
}
.media--tall { aspect-ratio: 3 / 4; }
/* The section's own padding already separates this from what follows, so the
   image needs far less bottom margin than it carried. */
.media--standalone { margin-block: 1.25rem 1.25rem; }

/* legacy placeholder blocks, kept in case a slot is ever emptied */
.img-ph {
  position: relative; width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  display: grid; place-items: center;
  color: var(--ink-muted);
  overflow: hidden;
}
.img-ph span {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg-raised); border: 1px solid var(--border);
  padding: 0.35rem 0.7rem; border-radius: var(--r-sm);
}
.img-ph--wide { aspect-ratio: 16 / 9; }
.img-ph--tall { aspect-ratio: 3 / 4; }
.img-ph--square { aspect-ratio: 1 / 1; }
.img-ph--standalone { margin-block: 0.5rem 2.5rem; }

/* --- FAQ accordion ---------------------------------------------------------- */
.faq-list { max-width: 82ch; margin-top: 2.5rem; display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer;
  padding: 1.3rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-radius: var(--r-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 1.25rem; font-weight: 400;
  color: var(--green-deep);
  background: var(--bg);
  border-radius: 50%;
  line-height: 1;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--green-night);
  color: var(--cream);
}
.faq-item summary:hover { color: var(--green-deep); }
.faq-item__body { padding: 0 1.6rem 1.5rem; color: var(--ink-soft); }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item[open] .faq-item__body { animation: faqIn 0.32s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* --- Legal documents --------------------------------------------------------
   Policy and terms pages are numbered reference documents, not landing pages.
   At the site's display scale a clause heading like "6. Fonts, cookies and
   third-party content" renders larger than the page title, so headings are
   stepped down and given room to separate one clause from the next. */
.legal-doc { max-width: 68ch; }
.legal-doc h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  margin-bottom: 0.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-doc > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-doc p, .legal-doc li { line-height: 1.7; }
.legal-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

/* --- Legal identification block --------------------------------------------- */
.legal-block {
  max-width: 46rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.9rem 2rem;
  margin: 0 0 1.75rem;
}
.legal-block dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(11rem, auto) 1fr;
  gap: 0.65rem 1.5rem;
}
.legal-block dt {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: baseline;
}
.legal-block dd { margin: 0; color: var(--ink); }

/* --- Contact details --------------------------------------------------------- */
.contact-detail {
  margin: 0 0 1.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.7rem 1.8rem 1.4rem;
}
.contact-detail dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-detail dd { margin: 0 0 0.4rem; font-size: 1.15rem; }
.contact-detail a { font-weight: 500; }

/* --- Form -------------------------------------------------------------------- */
.form { max-width: 36rem; }
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.field .req { color: var(--brass-text); }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px var(--green-tint);
}
.field textarea { resize: vertical; min-height: 9.5rem; }
.field--invalid input,
.field--invalid textarea { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: 0.88rem; margin-top: 0.35rem; }
.field--invalid .field__error { display: block; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  border-radius: var(--r-sm);
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.form__status[hidden] { display: none; }
.form__status--success { background: var(--green-tint); border-color: var(--green); color: var(--green-night); }
.form__status--error { background: var(--danger-bg); border-color: var(--danger); color: #7E241E; }

.form-note { font-size: 0.9rem; color: var(--ink-muted); }

/* --- Footer (flat green) ------------------------------------------------------ */
.site-footer {
  background: var(--green-night);
  color: var(--sage);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 4vw, 2.75rem);
  margin-top: auto;
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer__brand {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 0.85rem;
}
.footer__about { color: var(--sage-dim); font-size: 0.95rem; max-width: 36ch; }
.footer__heading {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
/* Footer navigation links are standalone targets, not links inside a sentence,
   so WCAG 2.2's inline exception does not cover them. Padding lifts each one to
   ~34px tall, which is both conformant and far easier to hit on a phone. */
.footer__list li { margin-bottom: 0.1rem; max-width: none; font-size: 0.96rem; }
.footer__list a { display: inline-block; padding-block: 0.42rem; }
.footer__bottom {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--sage-dim);
}
.footer__bottom p { margin: 0; max-width: none; }
.footer__bottom a { display: inline-block; padding-block: 0.35rem; }

/* --- Utility ------------------------------------------------------------------ */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.center :is(p, .pullquote--band, .lead) { margin-inline: auto; }
.center .eyebrow { justify-content: center; }
.stack > * + * { margin-top: 1.2rem; }

/* --- Marquee strip: the fibre set from the Expertise page, running under the
   hero. Purely decorative, so it is aria-hidden and pauses on hover. -------- */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-panel);
  overflow: hidden;
  padding-block: 0.95rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.marquee__group span { display: inline-flex; align-items: center; gap: 2.6rem; }
.marquee__group span::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.75;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* --- Director / leadership card ------------------------------------------- */
.director {
  display: grid;
  /* Portrait column scales with the card instead of sitting at a fixed 260px,
     which read small next to the text beside it. */
  grid-template-columns: clamp(260px, 32%, 400px) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-top: 2.5rem;
  box-shadow: var(--shadow-sm);
}
/* Portrait slot. Until a photograph is supplied it carries the monogram, which
   reads as intentional rather than as a broken image. */
.director__portrait {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--green-night);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.director__portrait img { width: 46%; height: auto; }
.director__portrait img.director__photo { width: 100%; height: 100%; object-fit: cover; }
.director__name {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1; letter-spacing: -0.03em; margin: 0 0 0.35rem;
}
.director__role {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-text); margin-bottom: 1.15rem;
}
.director__body p:last-of-type { margin-bottom: 0; }
.director__principle {
  margin: 1.4rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--brass);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (max-width: 760px) {
  .director { grid-template-columns: 1fr; }
  .director__portrait { max-width: 300px; }
}

/* --- Cookie / storage notice ----------------------------------------------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  transform: translate(-50%, 130%);
  z-index: 300;
  width: min(720px, calc(100vw - 2rem));
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
  opacity: 0;
}
.cookie[hidden] { display: none; }
.cookie.is-shown { transform: translate(-50%, 0); opacity: 1; }
.cookie__title {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.4rem;
}
.cookie__text { margin: 0; font-size: 0.94rem; line-height: 1.5; color: var(--ink-soft); max-width: 62ch; }
.cookie__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
/* Both choices are the same size and weight - a "decline" that is harder to
   find than "accept" is not a free choice under the GDPR. */
.cookie__btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.014em;
  padding: 0.7rem 1.35rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.cookie__btn:hover { border-color: var(--green); background: var(--green-tint); color: var(--green-deep); }
.cookie__btn--accept { background: var(--green-night); border-color: var(--green-night); color: var(--cream); }
.cookie__btn--accept:hover { background: var(--green); border-color: var(--green); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
@media (max-width: 640px) {
  .cookie { grid-template-columns: 1fr; }
  .cookie__actions { width: 100%; }
  .cookie__btn { flex: 1 1 auto; }
}


/* --- Motion & scroll reveal (progressive enhancement) --------------------------
   Scoped to html.js (added by main.js) and to users without reduced motion, so
   with scripting off or reduced motion on nothing is ever hidden or moved. */
@media (prefers-reduced-motion: no-preference) {

  html.js [data-reveal] { opacity: 0; transition: opacity 0.5s ease; }
  html.js [data-reveal].is-visible { opacity: 1; }

  html.js [data-reveal] :is(.eyebrow, h1, h2, .lead, .pullquote) {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.js [data-reveal].is-visible :is(.eyebrow, h1, h2, .lead, .pullquote) {
    opacity: 1; transform: none;
  }
    html.js [data-reveal].is-visible .eyebrow  { transition-delay: 0.05s; }
  html.js [data-reveal].is-visible :is(h1, h2) { transition-delay: 0.12s; }
  html.js [data-reveal].is-visible :is(.lead, .pullquote) { transition-delay: 0.22s; }

  html.js [data-reveal] :is(.card, .step, .feature-list > li, .faq-item) {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.js [data-reveal].is-visible :is(.card, .step, .feature-list > li, .faq-item) {
    opacity: 1; transform: none;
  }
  html.js [data-reveal].is-visible :is(.card, .step, .feature-list > li, .faq-item):nth-child(1) { transition-delay: 0.14s; }
  html.js [data-reveal].is-visible :is(.card, .step, .feature-list > li, .faq-item):nth-child(2) { transition-delay: 0.21s; }
  html.js [data-reveal].is-visible :is(.card, .step, .feature-list > li, .faq-item):nth-child(3) { transition-delay: 0.28s; }
  html.js [data-reveal].is-visible :is(.card, .step, .feature-list > li, .faq-item):nth-child(4) { transition-delay: 0.35s; }
  html.js [data-reveal].is-visible :is(.card, .step, .feature-list > li, .faq-item):nth-child(5) { transition-delay: 0.42s; }
  html.js [data-reveal].is-visible :is(.card, .step, .feature-list > li, .faq-item):nth-child(n+6) { transition-delay: 0.49s; }

  /* Hero load-in. The .w spans are created by main.js, so this is scoped to
     html.js — with scripting off the headline is never hidden. */
  html.js .hero h1 .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: calc(0.05s + var(--wi, 0) * 0.04s);
  }
  html.js .hero.is-loaded h1 .w { opacity: 1; transform: none; }

  html.js .hero :is(.lead, .hero__cta, .hero__meta, .hero__media) {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  html.js .hero.is-loaded :is(.lead, .hero__cta, .hero__meta, .hero__media) { opacity: 1; transform: none; }
  html.js .hero.is-loaded .lead       { transition-delay: 0.42s; }
  html.js .hero.is-loaded .hero__cta  { transition-delay: 0.52s; }
  html.js .hero.is-loaded .hero__meta { transition-delay: 0.62s; }
  html.js .hero.is-loaded .hero__media{ transition-delay: 0.68s; }
}


/* --- Scroll effects ----------------------------------------------------------
   Built on CSS scroll-driven animations (animation-timeline), which run on the
   compositor rather than firing JavaScript on every scroll event. Browsers that
   do not support it simply get the static layout, plus a small JS fallback for
   the progress bar. Everything here is inside a reduced-motion guard. */

/* Reading-progress bar across the top of the header. */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green) 0%, var(--brass) 100%);
  z-index: 150;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {

  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      animation: progressGrow linear forwards;
      animation-timeline: scroll(root block);
    }
    /* The JS fallback is not needed where this works. */
    .scroll-progress { --css-driven: 1; }
  }
  @keyframes progressGrow { to { transform: scaleX(1); } }

  @supports (animation-timeline: view()) {
    /* Where the scroll timeline drives things, stand the IntersectionObserver
       reveal down. Running both would double the motion, and the observer's
       opacity:0 would fight the timeline's own fill. */
    html.js [data-reveal],
    html.js [data-reveal] :is(.eyebrow, h1, h2, .lead, .pullquote,
                              .card, .step, .feature-list > li, .faq-item) {
      opacity: 1;
      transform: none;
      transition: none;
    }
    /* The reveal animates the eyebrow's rule width; the current eyebrow is a
       6px dot, so only the transition is reset - forcing a width here
       stretched the dot into an oval. */
    html.js [data-reveal] .eyebrow::before { transition: none; }

    /* Photographs, diagrams and list items rise as they enter the viewport. */
    .media, .card, .step, .feature-list > li, .faq-item, .director {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    /* Section headings drift up slightly behind their content. */
    .section h2, .section .lead, .pullquote {
      animation: driftIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    /* The hero photograph only drifts its framing - it is handed its entrance
       by the hero load-in, so it must not also be given riseIn. */
    .hero__media {
      animation: heroFloat linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    /* Full-bleed green bands ease in rather than snapping on. */
    .section--accent > .container {
      animation: driftIn linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }

  @keyframes riseIn {
    from { opacity: 0; transform: translateY(34px) scale(0.985); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes driftIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes heroFloat {
    from { object-position: 50% 42%; }
    to   { object-position: 50% 58%; }
  }

}

/* Where scroll-driven animation is unavailable, the IntersectionObserver reveal
   in main.js still runs, so nothing is left invisible. */
@supports not (animation-timeline: view()) {
  .scroll-progress { transition: transform 0.1s linear; }
}

/* --- Responsive ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 44px -20px rgba(14, 14, 14, 0.24);
    padding: 0.75rem var(--gutter) 1.25rem;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav__link:hover { background: none; }
  .nav__menu li:last-child .nav__link {
    margin: 0.9rem 0 0;
    text-align: center;
    border-bottom: 0;
    border-radius: var(--r-pill);
  }

  .grid--split { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid--split .media--tall { max-width: 30rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
  .hero h1 { max-width: none; }
  .hero__media { aspect-ratio: 16 / 10; }
}

@media (max-width: 820px) {
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .step { padding: 1.7rem 1.5rem 1.6rem; }
  .step::before { position: static; display: block; margin-bottom: 0.9rem; } { font-size: clamp(3.5rem, 16vw, 5rem); }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; }
  .hero__media { aspect-ratio: 4 / 3; }
}

/* Below ~380px the brand and the menu button start to crowd each other, so the
   logo steps down a size rather than the two colliding. */
@media (max-width: 380px) {
  .brand__mark { height: 29px; }
  .brand__name { height: 13px; }
  .brand { gap: 0.55rem; }
}

@media (max-width: 560px) {
  .legal-block { padding: 1.4rem 1.3rem; }
  .legal-block dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .legal-block dd { margin-bottom: 0.8rem; }
  .card, .feature-list > li { padding: 1.7rem 1.5rem 1.6rem; }
  .btn { width: 100%; justify-content: center; }
  .hero__cta .btn, main > .section .hero__cta .btn { width: auto; }
}

/* --- Print ---------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .skip-link, .nav__toggle { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* --- Small motion details -------------------------------------------------- */
/* Photographs lift slightly on hover, so the page feels alive without anything
   actually moving on load. */
.media, .hero__media {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.4s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .media:hover, .hero__media:hover { transform: scale(1.012); box-shadow: var(--shadow-md); }
}

/* Brass rule that draws itself across a card on hover. */
.card { overflow: hidden; }
.card::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 2px; width: 0;
  background: var(--brass);
  transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.card:hover::after { width: 100%; }

/* Steps get the same treatment down their left edge. */
.step { overflow: hidden; }
.step::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: var(--brass);
  transition: height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.step:hover::after { height: 100%; }

/* Feature rows warm up on hover. */
.feature-list > li { transition: border-color 0.25s ease, transform 0.25s ease; }
@media (hover: hover) {
  .feature-list > li:hover { border-color: var(--border-strong); transform: translateY(-2px); }
}
