/* Rag & Ledger landing page, design draft v2 (29 Sept 2026).
   Direction: elegant and calm. Space instead of lines and boxes, large light
   headlines against small quiet text, deep indigo as the only strong colour,
   one clear action per screen. Tokens follow brand/rag-and-ledger/tokens.css. */

:root {
  --paper: #f6f6f2;
  --paper-raised: #ffffff;
  --rule: #e1e3ea;
  --rule-strong: #8a8fae;
  --ink: #15173a;
  --ink-muted: #5a5f7c;
  --accent: #1c1f6b;
  --accent-hover: #2f35c8;
  --on-accent: #f6f6f2;
  --slab: #1c1f6b;
  --on-slab: #f6f6f2;
  --on-slab-muted: #c4c7e4;
  --tag: #1c1f6b;
  --tag-quiet: #e6e8ef;
  --margin: #c0392b;
  --focus: #2f35c8;

  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 74rem;
  --gutter: 1.25rem;
  --section: 6rem;
}
@media (min-width: 48rem) { :root { --gutter: 2.5rem; --section: 9rem; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0e1030;
    --paper-raised: #151840;
    --rule: #262a5e;
    --rule-strong: #6a70a8;
    --ink: #eeeff8;
    --ink-muted: #a9adcf;
    --accent: #aeb2ff;
    --accent-hover: #cdd0ff;
    --on-accent: #0e1030;
    --slab: #151840;
    --on-slab: #eeeff8;
    --on-slab-muted: #a9adcf;
    --tag: #2f35c8;
    --tag-quiet: #262a5e;
    --margin: #ff8a78;
    --focus: #aeb2ff;
  }
}

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.125rem/1.65 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.6rem); font-weight: 480; line-height: 1.04; letter-spacing: -0.032em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Buttons --------------------------------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.75rem; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: 500 1rem/1.2 var(--sans); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); min-height: 46px; padding: 0 1.4rem; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { min-height: 42px; padding: 0 1.2rem; font-size: 0.9375rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
}
.nav-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.brand { display: block; flex: none; }
.brand img { width: 140px; height: auto; }
@media (min-width: 48rem) { .brand img { width: 160px; } }
.nav nav { margin-left: auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 2.25rem; font-size: 0.9375rem; }
.nav-links a { text-decoration: none; color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 62rem) { .nav-links { display: flex; } }
.nav .btn { margin-left: auto; }
@media (min-width: 62rem) { .nav .btn { margin-left: 0; } }

/* Hero: one statement, one line, one action. ----------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; min-height: min(88vh, 52rem); padding: 5rem 0 6rem;
}
.hero > .wrap { width: 100%; position: relative; z-index: 1; }

/* Background video, mirrored so the clothes sit right and the text sits on the plain wall.
   The veil fades the video into the page colour behind the text and at the bottom edge. */
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--paper); }
@media (min-width: 52rem) { .hero-media { left: 14%; right: -14%; } }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; transform: scaleX(-1); display: block; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 70%, var(--paper) 100%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--paper) 94%, transparent) 0%,
      color-mix(in srgb, var(--paper) 82%, transparent) 38%,
      color-mix(in srgb, var(--paper) 30%, transparent) 68%,
      color-mix(in srgb, var(--paper) 8%, transparent) 100%);
}
@media (max-width: 52rem) {
  .hero { align-items: flex-start; padding-top: 4rem; min-height: 88vh; }
  .hero-video { object-position: 25% 70%; }
  .hero-media::after {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 94%, transparent) 0%,
      color-mix(in srgb, var(--paper) 86%, transparent) 50%,
      color-mix(in srgb, var(--paper) 20%, transparent) 80%,
      var(--paper) 100%);
  }
}

/* Pause/play for the background video (moving content needs a way to stop it). */
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 2rem; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
  background: color-mix(in srgb, var(--paper) 70%, transparent); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--ink);
}
.video-toggle[hidden] { display: none; }
.video-toggle::before {
  content: ""; width: 10px; height: 12px;
  border-left: 3px solid currentColor; border-right: 3px solid currentColor;
}
.video-toggle.is-paused::before {
  width: 0; height: 0; margin-left: 3px; border-right: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor;
}
.video-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.video-toggle:hover { background: var(--paper); }
.hero h1 {
  max-width: 13ch; font-size: clamp(3.1rem, 9vw, 7.25rem);
  font-weight: 450; line-height: 0.98; letter-spacing: -0.045em;
}
.hero-line { margin: 2rem 0 2.75rem; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--ink-muted); letter-spacing: -0.01em; }

/* Sections -------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 46rem; margin-bottom: 4rem; }
@media (min-width: 48rem) { .section-head { margin-bottom: 5.5rem; } }
.section-line { margin: 1.5rem 0 0; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.5; color: var(--ink-muted); letter-spacing: -0.008em; }

/* Offers ---------------------------------------------------------------- */
.offers { display: grid; gap: 4.5rem; }
@media (min-width: 52rem) { .offers { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.offer { display: flex; flex-direction: column; align-items: flex-start; padding-top: 1.75rem; border-top: 1px solid var(--ink); }
.offer-title { font-size: clamp(1.75rem, 2.6vw, 2.2rem); font-weight: 480; letter-spacing: -0.028em; line-height: 1.1; }
.offer-outcome { margin: 0.9rem 0 1.75rem; font-size: 1.25rem; line-height: 1.45; color: var(--ink); max-width: 28ch; }
.offer-list { list-style: none; margin: 0 0 2rem; padding: 0; color: var(--ink-muted); }
.offer-list li { position: relative; padding: 0 0 0.7rem 1.4rem; }
.offer-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.55rem; height: 1px; background: var(--ink-muted); }
.offer-meta { margin: 0 0 1.5rem; }
.offer .btn { margin-top: auto; }

.offers-minor { margin-top: 6rem; }
.offers-minor .offer { border-top-color: var(--rule); }
.offers-minor .offer-title { font-size: 1.5rem; }
.offers-minor .offer-outcome { font-size: 1.125rem; }
.offers-minor .offer-list { font-size: 1rem; }
.offer-for { margin: 0 0 0.75rem; font-size: 0.9375rem; color: var(--ink-muted); }

/* Bale tag: chamfered end with a punched hole. */
.tag {
  --c: 8px; position: relative; display: inline-flex; align-items: center;
  padding: 0.38rem 0.85rem 0.38rem 1.45rem;
  background: var(--tag); color: #f6f6f2;
  font-size: 0.8125rem; font-weight: 500; line-height: 1.2; letter-spacing: 0.01em;
  border-radius: 0 3px 3px 0;
  clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.tag::before { content: ""; position: absolute; left: 0.58rem; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--paper); }
.tag-quiet { background: var(--tag-quiet); color: var(--ink); }

/* Why now --------------------------------------------------------------- */
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
@media (min-width: 52rem) { .dates { grid-template-columns: repeat(3, 1fr); gap: 4rem; } }
.dates li { padding-left: 1.25rem; border-left: 1px solid var(--margin); }
.date { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 450; line-height: 1.1; letter-spacing: -0.025em; }
.dates li p:last-child { margin: 0; color: var(--ink-muted); }
.closing { margin: 5rem 0 0; max-width: 32ch; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 450; line-height: 1.2; letter-spacing: -0.025em; }
.sources { margin: 2.5rem 0 0; font-size: 0.875rem; color: var(--ink-muted); }

/* How we work ----------------------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 4rem; } }
.step-n { display: block; margin-bottom: 1.25rem; font-size: 3.25rem; font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.steps h3 { margin-bottom: 0.6rem; }
.steps p { margin: 0; color: var(--ink-muted); }
.how-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; margin-top: 5rem; }
.how-foot p { margin: 0; flex: 1 1 22rem; max-width: 36rem; font-size: 1.25rem; line-height: 1.5; }

/* Promises: the one deep-indigo slab. ---------------------------------- */
.promises { background: var(--slab); color: var(--on-slab); padding: var(--section) 0; }
.promises h2 { max-width: 14ch; margin-bottom: 4.5rem; }
.promise-cols { display: grid; gap: 3.5rem; }
@media (min-width: 52rem) { .promise-cols { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.promise-cols h3 { margin-bottom: 1.5rem; font-size: 1rem; font-weight: 500; color: var(--on-slab-muted); letter-spacing: 0.01em; }
.promise-cols ul { list-style: none; margin: 0; padding: 0; }
.promise-cols li { margin-bottom: 1.1rem; font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; line-height: 1.35; letter-spacing: -0.015em; }
.promises :focus-visible { outline-color: var(--on-slab); }

/* Team ------------------------------------------------------------------ */
.team { display: grid; gap: 4rem; }
@media (min-width: 52rem) { .team { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.person img { width: 100%; max-width: 26rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; background: var(--rule); margin-bottom: 1.75rem; }
.person h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.person p { color: var(--ink-muted); max-width: 30rem; }
.linkedin { font-size: 1rem; }

/* Questions ------------------------------------------------------------- */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; } }
details { border-bottom: 1px solid var(--rule); }
details:first-child { border-top: 1px solid var(--rule); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem;
  padding: 1.5rem 0; font-size: 1.25rem; font-weight: 450; letter-spacing: -0.012em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-weight: 300; font-size: 1.75rem; line-height: 1; color: var(--ink-muted); }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-muted); max-width: 38rem; padding-bottom: 1rem; }

/* Contact --------------------------------------------------------------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6rem; } }
.direct { margin-top: 2rem; color: var(--ink-muted); }
.tbd { background: #fcebc9; color: #15173a; padding: 0 0.35rem; }
.form { display: grid; gap: 0.4rem; }
.form label { font-size: 0.9375rem; color: var(--ink-muted); margin-top: 1rem; }
.form label:first-of-type { margin-top: 0; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; padding: 0.6rem 0;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-bottom: 2px solid var(--focus); }
.form .is-error { border-bottom-color: var(--margin); }
.form .btn { justify-self: start; margin-top: 2rem; }
.form-status { min-height: 1.5rem; margin: 0.75rem 0 0; }
.fine { font-size: 0.875rem; color: var(--ink-muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
.offer-chip { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; padding: 0.55rem 0.9rem; background: var(--paper-raised); border: 1px solid var(--rule); border-radius: 999px; font-size: 0.9375rem; justify-self: start; }
.offer-chip[hidden] { display: none; }
.chip-clear { border: 0; background: none; font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink-muted); }

/* Footer ---------------------------------------------------------------- */
.footer { background: var(--slab); color: var(--on-slab-muted); padding: 5rem 0 4rem; font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .footer-inner { grid-template-columns: auto 1fr; gap: 6rem; align-items: start; } }
.footer-mark { width: 180px; }
.footer-text p { margin: 0 0 0.6rem; }
.footer a { color: var(--on-slab); }
.footer .tbd { color: #15173a; }
.footer :focus-visible { outline-color: var(--on-slab); }
