/* ==========================================================
   home.css — the landing page (index.html) only.

   Extracted from index.html's inline <style> on 2026-11-16, which held
   ~500 lines, of which about 60 were empty comment shells left behind when
   site.css was split out, and another 80 styled sections that no longer
   existed (#b2c, .testimonial*, .hero-stat*, .expertise-*).

   Loaded AFTER site.css, so these rules win on equal specificity.
   Every length here is a token from site.css; no raw pixel values except
   hairlines and one optical offset, each marked.
   ========================================================== */

/* ── LAYOUT ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* The header is fixed; main has to clear it. */
main { padding-top: var(--header-h); }

section { padding-block: var(--s-9); }

.section--alt { background: var(--paper-2); }

/* The proof strip supplies its own vertical rhythm through its rules. */
.section--flush { padding-block: 0; }

.section-action { margin-top: var(--s-6); }

.form-legal { font-size: var(--fs-14); color: var(--on-dark-2); max-width: 52ch; }

.form-legal a { color: var(--on-dark); }

.section-head { margin-bottom: var(--s-7); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
  max-width: 24ch;
}

.section-intro {
  margin-top: var(--s-4);
  color: var(--ink-2);
  max-width: 60ch;
}

/* ── IMAGE SLOTS ────────────────────────────────────────────
   No photographs exist yet, so an empty slot renders NOTHING.

   This was wrong at first: the slots drew a bordered panel with a faint
   monogram, on the theory that they would read as deliberate. On the live
   site they read as broken. Six of them came to 1,386px — 17% of the whole
   page on a phone — of empty grey boxes, which is worse than no image at
   all and worse than the page the rebuild replaced.

   Paste a <picture> INSIDE the slot div (the markup is in the comment above
   each one) and the slot appears, at the aspect ratio it already reserves,
   with its section returning to two columns. Nothing else has to change. */

.slot:empty { display: none; }

.slot {
  position: relative;
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.section--alt .slot { background: var(--paper); }

.slot > img,
.slot > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;                  /* covers the placeholder once a file exists */
}

.slot--hero { aspect-ratio: 4 / 5; }
.slot--wide { aspect-ratio: 3 / 2; }
.slot--ui   { aspect-ratio: 16 / 10; }
.slot--team { aspect-ratio: 4 / 5; }

@media (max-width: 900px) {
  .slot--hero { aspect-ratio: 4 / 3; }
  .slot--team { aspect-ratio: 3 / 2; }
}

/* ── HERO ───────────────────────────────────────────────── */

/* One column until there is a photograph to put beside the text.
   Single column is the DEFAULT, not the fallback: a browser without :has()
   gets a correct page, and only the second column depends on the selector. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  padding-block: var(--s-8) var(--s-7);
}

/* Above 900px only, for the same reason as .how and .about below. */
@media (min-width: 901px) {
  @supports selector(:has(*)) {
    .hero:has(.slot:not(:empty)) {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    }
  }
}

.hero h1 {
  max-width: 20ch;             /* the full container is too wide for a headline */
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}

.hero-body {
  margin-top: var(--s-5);
  font-size: var(--fs-18);
  color: var(--ink-2);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-portal { margin-top: var(--s-4); font-size: var(--fs-14); }

.hero-portal a { color: var(--ink-2); text-underline-offset: 3px; }

.hero-portal a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: var(--s-6); padding-block: var(--s-6); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ── PROOF STRIP ────────────────────────────────────────── */

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  list-style: none;
  border-block: 1px solid var(--line);
  padding-block: var(--s-6);
}

.proof-fig {
  font: 500 var(--fs-28)/1 var(--font-body);
  color: var(--accent);
}

.proof-label {
  margin-top: var(--s-2);
  font-size: var(--fs-14);
  color: var(--ink-2);
}

.proof-label a { color: inherit; }

@media (max-width: 700px) {
  .proof { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
}

/* ── BRAND BANNER ───────────────────────────────────────── */

/* All brands in one row that drifts sideways. The track holds the list
   twice and moves by exactly half its width, so the second copy lands where
   the first began and the loop has no seam.

   The track carries the section colour on purpose. .brand-logo multiplies
   its white square into whatever is behind it, and both the animation's
   transform and the edge mask isolate the track, so with a transparent
   track the logos multiply into nothing and show as white boxes. */
.brand-marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper-2);
  animation: brand-drift 70s linear infinite;
}

.brand-marquee:hover .brand-track,
.brand-marquee:focus-within .brand-track { animation-play-state: paused; }


.brand-cell {
  display: grid;
  place-items: center;
  width: 180px;
  height: 120px;
}

/* The logo files are 150px squares with the mark in the middle, so the
   square is sized to the cell height. In pixels: a percentage height does
   not resolve inside an auto-sized grid row, and the image stayed 150px. */
.brand-cell .brand-logo { width: 120px; height: 120px; max-width: none; max-height: none; }

@keyframes brand-drift { to { transform: translateX(-50%); } }

/* Standing still: one copy, wrapped and centred, no mask. */
@media (prefers-reduced-motion: reduce) {
  .brand-marquee { -webkit-mask-image: none; mask-image: none; }
  .brand-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .brand-track li:has([aria-hidden="true"]) { display: none; }
}

@media (max-width: 600px) {
  .brand-cell { width: 128px; height: 88px; }
  .brand-cell .brand-logo { width: 88px; height: 88px; }
}

/* Six products under the logos: the brands, then what they actually make.
   Packshots are on white; multiply sets them into the tile colour. */
.product-range { margin-top: var(--s-8); }

.product-range-title {
  margin-bottom: var(--s-4);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--s-5);
  padding: 0;
  list-style: none;
}

.product-row li { display: grid; align-content: start; }

.product-row img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: var(--s-3);
  background: var(--paper-2);
  border-radius: var(--radius);
  mix-blend-mode: multiply;
}

.section--alt .product-row img { background: var(--paper); }

.product-brand {
  font-size: var(--fs-12);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.product-name { font-size: var(--fs-14); line-height: 1.4; color: var(--ink); }

@media (max-width: 900px) { .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .product-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); } }

/* ── SEGMENTS ───────────────────────────────────────────── */

.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
}

.segment h3 {
  margin-top: var(--s-5);
  font: 500 var(--fs-22)/1.25 var(--font-body);
  color: var(--ink);
}

.segment ul {
  list-style: none;
  margin-top: var(--s-4);
  display: grid;
  gap: var(--s-3);
}

.segment li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--ink-2);
}

.segment li::before {
  content: "";
  width: 6px;                  /* hairline-scale marker */
  height: 6px;
  margin-top: 0.55em;          /* optical: aligns the square to the first line */
  background: var(--accent-soft);   /* decoration: the logo sage */
}

.segment-link {
  display: inline-block;
  margin-top: var(--s-5);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--accent);
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .segments { grid-template-columns: 1fr; gap: var(--s-8); }
}

/* ── HOW IT WORKS ───────────────────────────────────────── */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}

/* Two columns once the slot holds an image, and only above 900px: as a
   plain rule its :has() selector outranked the 900px one-column rule below,
   so on a phone the image was squeezed into half the width (124px wide). */
@media (min-width: 901px) {
  @supports selector(:has(*)) {
    .how:has(.slot:not(:empty)) { grid-template-columns: 1fr 1fr; }
  }
}

.steps { list-style: none; display: grid; gap: var(--s-6); }

.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); }

.step-num {
  font: 500 var(--fs-28)/1 var(--font-body);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.step h3 { font: 500 var(--fs-18)/1.35 var(--font-body); color: var(--ink); }

.step p { margin-top: var(--s-2); font-size: var(--fs-14); color: var(--ink-2); max-width: 46ch; }

.how-note {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-14);
  color: var(--ink-2);
  max-width: 52ch;
}

@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: var(--s-7); } }

/* ── ABOUT ──────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
}

/* Two columns once the slot holds an image, and only above 900px: as a
   plain rule its :has() selector outranked the 900px one-column rule below,
   so on a phone the image was squeezed into half the width (124px wide). */
@media (min-width: 901px) {
  @supports selector(:has(*)) {
    .about:has(.slot:not(:empty)) { grid-template-columns: 0.85fr 1.15fr; }
  }
}

.about-body p { color: var(--ink-2); max-width: 56ch; }

/* Coverage map. Beside the text while the team slot is empty; under it once
   a photo fills the slot and takes the left column. */
.about > div:last-child { display: grid; gap: var(--s-6); align-items: start; }

@media (min-width: 901px) {
  .about > div:last-child {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    /* The map spans both rows; without this the two rows split its height
       and the heading floated far above its text. */
    grid-template-rows: auto 1fr;
    gap: 0 var(--s-8);
  }
  .about > div:last-child > :not(.coverage) { grid-column: 1; }
  .about > div:last-child > .coverage { grid-column: 2; grid-row: 1 / span 2; }
  .about:has(.slot:not(:empty)) > div:last-child { grid-template-columns: minmax(0, 1fr); }
  .about:has(.slot:not(:empty)) > div:last-child > .coverage { grid-column: 1; grid-row: auto; max-width: 300px; }
}

.coverage { margin: 0; max-width: 300px; }

@media (max-width: 600px) { .coverage { max-width: 240px; } }

.coverage-map { position: relative; }

.coverage-map img { display: block; width: 100%; height: auto; }

.coverage-name {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-size: var(--fs-12);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest);
  white-space: nowrap;
}

.coverage figcaption {
  margin-top: var(--s-4);
  font-size: var(--fs-14);
  color: var(--ink-2);
}

.about-body p + p { margin-top: var(--s-4); }

@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { max-width: 72ch; }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-4);
  min-height: 44px;
  font: 500 var(--fs-18)/1.4 var(--font-body);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-weight: 400;
  color: var(--accent);
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  padding-bottom: var(--s-5);
  color: var(--ink-2);
  max-width: 64ch;
}

/* ── CONTACT (on dark) ──────────────────────────────────── */

.on-dark { background: var(--forest); color: var(--on-dark); }

.on-dark .section-title { color: var(--on-dark); }

.on-dark .section-intro { color: var(--on-dark-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--s-8);
}

.contact-list { list-style: none; display: grid; gap: var(--s-5); }

.contact-list dt,
.contact-term {
  font-size: var(--fs-14);
  color: var(--on-dark-2);
  margin-bottom: var(--s-1);
}

.contact-value { font-size: var(--fs-18); }

.contact-value a { color: var(--on-dark); text-underline-offset: 3px; }

.contact-value a:hover { color: var(--sage-light); }

.contact-note { margin-top: var(--s-5); font-size: var(--fs-14); color: var(--on-dark-2); max-width: 44ch; }

.form { display: grid; gap: var(--s-4); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }

.field { display: grid; gap: var(--s-2); }

.field label { font-size: var(--fs-14); color: var(--on-dark-2); }

.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  color: var(--on-dark);
  font: 400 var(--fs-16)/1.5 var(--font-body);   /* 16px: stops iOS zooming on focus */
  transition: border-color 0.2s ease;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.55); }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--sage-light); }

/* -webkit-appearance:none removed the arrow and nothing replaced it, so the
   select looked like a dead text input. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9CCC9' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  cursor: pointer;
}

.form-status { font-size: var(--fs-14); color: var(--sage-light); min-height: 1.5em; }   /* the raw sage is 3.8:1 on forest; this is 5.1 */

.form-status:empty { min-height: 0; }

.form-status[data-state="error"] { color: #F0B8B0; }   /* 7.4:1 on --ink */

.form-done {
  font-family: var(--font-display);
  font-size: var(--fs-22);
  color: var(--on-dark);
  padding-block: var(--s-7);
}

/* Honeypot. Off-screen, unreachable by keyboard, invisible to a screen
   reader; a bot that fills every field fills this one too. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE: shared ─────────────────────────────────── */

@media (max-width: 900px) {
  section { padding-block: var(--s-8); }
}
/* Hiding .nav-links and .nav-cta on small screens now lives in site.css,
   next to the chrome it acts on, so every page gets it from one place. */

@media (max-width: 600px) {
  section { padding-block: var(--s-7); }
  .container { padding: 0 var(--s-4); }
}

/* ── FOOTER tweaks ──────────────────────────────────────── */

footer a { text-underline-offset: 3px; }

.footer-nav a,
.footer-links a,
.footer-contact-info a { padding-block: var(--s-2); }   /* 20px tall links were under the 44px target */

/* The brand row sits on the sand --alt ground, so sand tiles vanished into
   it. Cream tiles keep the grid legible; the logos multiply onto whichever
   colour they sit on. */
