/* proof. house pages: the home page (landing.html) and the content pages.
   Colours mirror proof.'s record in shared/brand.ts. */
  @font-face {
    font-family: "Bricolage Grotesque";
    src: url("/brands/proof/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-style: normal; font-display: swap;
  }
  @font-face {
    font-family: "Hanken Grotesk";
    src: url("/brands/proof/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
  }

  /* proof.'s colours (shared/brand.ts): navy carries the page, the purple is
     kept for the dot, links and focus. Proof Equine appears in its own green. */
  :root {
    --ink: #0A2540;
    --ink-soft: #425466;
    --ink-faint: #6B7C93;
    --accent: #635BFF;
    --accent-deep: #4B44D6;
    --paper: #FFFFFF;
    --mist: #F6F8FB;
    --rule: #E3E8EF;
    --equine: #1F7A5A;
    --equine-deep: #12332A;
    --engineering: #C2410C;
    --engineering-deep: #1F2A37;
    --radius: 14px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 17px/1.6 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  .wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; }

  h1, h2, h3 { font-family: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif; margin: 0; letter-spacing: -0.02em; }
  .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; }

  /* Wordmark: the dot is the brand. */
  .wordmark { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); line-height: 1; }
  .wordmark span { color: var(--accent); }

  /* --- header ----------------------------------------------------------------- */
  .site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
  .site-header.scrolled { border-bottom-color: var(--rule); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
  .site-header nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 15px; font-weight: 500; }
  .site-header nav a { text-decoration: none; color: var(--ink-soft); }
  .site-header nav a:hover { color: var(--ink); }
  .site-header nav a.btn-ink, .site-header nav a.btn-ink:hover { color: #fff; }
  .btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 999px; padding: 13px 22px; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
  .btn:active { transform: translateY(1px); }
  .btn-ink { background: var(--ink); color: #fff; }
  .btn-ink:hover { background: #13345A; }
  .btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
  .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
  .btn-sm { padding: 9px 16px; font-size: 14px; }
  .arrow { transition: transform .2s ease; }
  a:hover > .arrow { transform: translateX(3px); }
  @media (max-width: 640px) { .site-header nav .hide-sm { display: none; } }
  /* "Get a quote": a <details> menu of every brand's journeys, top right of every page. */
  .quote-menu { position: relative; }
  .quote-menu summary { list-style: none; cursor: pointer; color: #fff; }
  .quote-menu summary::-webkit-details-marker { display: none; }
  .quote-menu summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.75px 1.75px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
  .quote-menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
  .quote-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 24px 48px -20px rgba(10,37,64,.35); padding: 8px; display: grid; gap: 2px; }
  .quote-menu-title { margin: 8px 12px 6px; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
  .site-header nav .quote-menu-panel a { display: grid; gap: 2px; padding: 11px 12px; border-radius: 10px; color: var(--ink); }
  .site-header nav .quote-menu-panel a:hover, .site-header nav .quote-menu-panel a:focus-visible { background: var(--mist); }
  .quote-menu-panel small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
  .quote-menu-panel strong { font-size: 15px; font-weight: 600; line-height: 1.3; }

  /* --- hero --------------------------------------------------------------------- */
  .hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
  .hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1.02; font-weight: 700; max-width: 13ch; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero .lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 50ch; margin: 24px 0 32px; }
  .hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

  /* The brands carousel: one slide per brand, each a photograph that links to
     it. A row of slides that snap, so it swipes and scrolls with no script;
     landing.html's script adds the dots and the auto-advance. */
  .feature-carousel { position: relative; }
  .feature-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: calc(var(--radius) + 6px); }
  .feature-track::-webkit-scrollbar { display: none; }
  .feature-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
  .feature-track > .feature { scroll-snap-align: start; border-radius: 0; }
  .feature-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .feature-dots[hidden] { display: none; }
  .feature-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: var(--rule); cursor: pointer; transition: width .3s ease, background-color .3s ease; }
  .feature-dots button[aria-current="true"] { width: 26px; background: var(--ink); }
  .feature-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .feature--engineering { background: var(--engineering-deep); }
  .feature--engineering::after { background: linear-gradient(180deg, rgba(31,42,55,0) 38%, rgba(31,42,55,.88) 100%); }
  .feature--engineering .tag { color: var(--engineering-deep); }

  /* The featured brand: a photograph that is a link to it. */
  .feature { position: relative; display: block; border-radius: calc(var(--radius) + 6px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--equine-deep); text-decoration: none; color: #fff; isolation: isolate; }
  .feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); z-index: -2; }
  .feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,51,42,0) 38%, rgba(18,51,42,.86) 100%); }
  .feature:hover img { transform: scale(1.035); }
  .feature .tag { position: absolute; top: 18px; left: 18px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.94); color: var(--equine-deep); padding: 7px 12px; border-radius: 999px; }
  .feature .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 32px); }
  .feature .caption strong { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; }
  .feature .caption span { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; opacity: .92; }

  /* --- brands ------------------------------------------------------------------- */
  .brands { background: var(--mist); padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
  .section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; font-weight: 700; }
  .section-head p { color: var(--ink-soft); max-width: 46ch; margin: 0; }

  .brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--paper); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(10,37,64,.35); }
  .brand .photo { position: relative; min-height: 340px; background: var(--equine-deep); }
  .brand .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
  .brand .body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; }
  .brand .name { display: flex; align-items: center; gap: 12px; }
  .brand .name h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.05; color: var(--equine-deep); font-weight: 700; }
  .brand .swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--equine); flex: none; }
  .brand .tagline { color: var(--ink-soft); margin: 10px 0 24px; font-size: 18px; }
  .facts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
  .facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink); }
  .facts li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: rgba(31,122,90,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%231F7A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
  .brand .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
  .btn-equine { background: var(--equine); color: #fff; }
  .btn-equine:hover { background: #196A4D; }
  .brand + .brand { margin-top: 24px; }
  .brand-engineering .name h3 { color: var(--engineering-deep); }
  .brand-engineering .swatch { background: var(--engineering); }
  .brand-engineering .facts li::before { background-color: rgba(194,65,12,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23C2410C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .btn-engineering { background: var(--engineering); color: #fff; }
  .btn-engineering:hover { background: #A8380A; }
  .more { margin: 28px 0 0; color: var(--ink-faint); font-size: 15px; }

  /* --- shared promises ---------------------------------------------------------- */
  .shared { padding: clamp(56px, 8vw, 112px) 0; }
  .promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
  .promises article { border-top: 2px solid var(--ink); padding-top: 22px; }
  .promises .num { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
  .promises h3 { font-size: 1.4rem; line-height: 1.2; margin: 10px 0 10px; font-weight: 700; }
  .promises p { margin: 0; color: var(--ink-soft); }

  /* --- contact ------------------------------------------------------------------ */
  .contact { background: var(--ink); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
  .contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
  .contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.08; font-weight: 700; }
  .contact p { color: rgba(255,255,255,.78); margin: 14px 0 0; max-width: 48ch; }
  .contact .links { display: grid; gap: 12px; }
  .contact .links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: background-color .15s; }
  .contact .links a:hover { background: rgba(255,255,255,.11); }
  .contact .links small { display: block; color: rgba(255,255,255,.66); font-size: 14px; }
  .contact .links strong { font-weight: 600; }

  /* --- footer ------------------------------------------------------------------- */
  footer { padding: 48px 0 40px; font-size: 14px; color: var(--ink-soft); }
  footer .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
  footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
  footer nav a { text-decoration: none; }
  footer nav a:hover { color: var(--ink); text-decoration: underline; }
  .legal { padding-top: 24px; font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); }
  .legal p { margin: 0 0 6px; max-width: 110ch; }

  /* --- small screens ------------------------------------------------------------- */
  @media (max-width: 900px) {
    .hero .wrap, .brand, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
    .feature { aspect-ratio: 16 / 11; }
    /* A landscape crop of a portrait photograph: keep the rider and the horse's head. */
    .feature img { object-position: 50% 22%; }
    .brand .photo { min-height: 240px; }
    .promises { grid-template-columns: minmax(0, 1fr); }
  }

  /* --- motion: reveal on scroll, only when the script has run ------------------- */
  .reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal-on .reveal.in { opacity: 1; transform: none; }
  .hero .feature img { animation: settle 1.6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .brand-link { transition: none; }
    .hero .feature img { animation: none; }
    .feature-dots button { transition: none; }
    .feature img, .arrow, .btn { transition: none; }
    .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* --- content pages (claims, terms, privacy) ----------------------------------- */
  .page-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--rule); }
  .page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); line-height: 1.04; font-weight: 700; }
  .page-hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; margin: 18px 0 0; }
  .page-meta { margin-top: 14px; font-size: 14px; color: var(--ink-faint); }
  .content { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
  /* A readable measure, aligned with the header rather than centred. */
  .content .wrap > * { max-width: 760px; }
  .content h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 700; margin: 40px 0 10px; }
  .content h2:first-child { margin-top: 0; }
  .content p { color: var(--ink-soft); margin: 0 0 14px; }
  .content a { color: var(--accent-deep); text-underline-offset: 3px; }
  .notice { background: var(--mist); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 20px; color: var(--ink-soft); margin-bottom: 36px; }
  .notice strong { color: var(--ink); }
  /* Long legal text (the privacy notice): sub-headings, lists and the
     lawful-basis table. The table scrolls sideways on a phone rather than
     squeezing two columns of prose into slivers. */
  .content h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; margin: 26px 0 8px; }
  .content ul { color: var(--ink-soft); margin: 0 0 16px; padding-left: 22px; }
  .content li { margin: 0 0 8px; }
  .content .table-scroll { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--rule); border-radius: 10px; }
  .content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
  .content th, .content td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
  .content th { background: var(--mist); color: var(--ink); font-weight: 700; }
  .content tr:last-child td { border-bottom: 0; }
  .content td:first-child { width: 55%; }
  .brand-link { display: flex; justify-content: space-between; align-items: center; gap: 20px; text-decoration: none; padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); transition: border-color .15s, box-shadow .15s; margin: 8px 0 28px; }
  .brand-link:hover { border-color: var(--equine); box-shadow: 0 16px 40px -28px rgba(10,37,64,.4); }
  .brand-link strong { display: block; font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 1.35rem; color: var(--equine-deep); }
  .brand-link small { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
  .content .brand-link { color: var(--ink); }
