/* ==========================================================================
   Athina Capital
   ==========================================================================

   EVERYTHING YOU ARE LIKELY TO WANT TO CHANGE IS IN THE BLOCK DIRECTLY BELOW.
   Change a value there and it updates everywhere on the site at once. You do
   not need to touch anything further down.

   ========================================================================== */

:root {
  /* ---- COLOURS ---------------------------------------------------------
     Change these four and the whole site changes character. */
  --paper:      #F7F5F1;   /* page background, a warm off-white          */
  --ink:        #16181C;   /* main text, near black                      */
  --muted:      #6E7178;   /* secondary text                             */
  --accent:     #8A6A3B;   /* bronze. Used for small marks and the button */

  --surface:    #FFFFFF;   /* cards and form fields                      */
  --line:       #E2DED7;   /* hairlines and borders                      */
  --dark:       #16181C;   /* the dark section background                */
  --on-dark:    #F7F5F1;   /* anything sitting ON --dark                 */

  /* ---- TYPE ------------------------------------------------------------
     No fonts are downloaded. These use whatever the visitor's device
     already has, which is why the page appears instantly. */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --h1: clamp(2.4rem, 6.5vw, 4.4rem);
  --h2: clamp(1.7rem, 3.6vw, 2.6rem);
  --h3: 1.15rem;

  /* ---- SPACING AND SHAPE ---------------------------------------------- */
  --wrap: 1120px;          /* how wide the content gets on a big screen   */
  --narrow: 760px;         /* reading width for prose pages               */
  --section-y: clamp(72px, 11vw, 148px);   /* space above and below sections */
  --radius: 3px;           /* corner rounding. 0 for hard corners.        */
  --header-h: 76px;

  /* ---- MOTION ----------------------------------------------------------
     --reveal-distance is how far things slide up as they appear.
     Set --motion-scale to 0 to turn ALL animation off site-wide. */
  --motion-scale: 1;
  --reveal-distance: 22px;
  --reveal-time: 0.85s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- DARK MODE -----------------------------------------------------------
   Used automatically when the visitor's phone or computer is set to dark. On
   a lot of phones that is the whole evening, so a light-only site glares.

   Same ideas as above, warmed rather than pure black and grey. The bronze is
   lifted a little because the darker one is hard to read on a dark background.

   NOTE ON --on-dark. It used to be called --ink-invert and it was doing two
   incompatible jobs: "text on an --ink fill" and "text on the --dark section".
   Those coincide in light mode and collide in dark, where --ink and the old
   --ink-invert were both #EDEAE4, so the primary button rendered cream on cream
   and was completely invisible. It now means exactly one thing: whatever sits on
   top of --dark. Anything on an --ink fill uses --paper instead.

   TO SWITCH DARK MODE OFF ENTIRELY: delete this whole block. Nothing else
   depends on it. */

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #131417;   /* page background   */
    --ink:        #EDEAE4;   /* main text         */
    --muted:      #9A9DA4;   /* secondary text    */
    --accent:     #C79A5C;   /* the bronze, lifted so it reads on dark */

    --surface:    #191B1F;   /* cards and form fields */
    --line:       #2A2D33;   /* hairlines         */
    /* Deliberately DARKER than the page, not lighter. The contact block and
       the footer need to separate from the page, and on a dark site the way to
       do that is to go further down, not up. */
    --dark:       #0C0D0F;
    --on-dark:    #EDEAE4;
  }
}

/* ==========================================================================
   Below here is the machinery. You can change it, but you do not have to.
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); margin-bottom: 0.6em; }
h3 { font-size: var(--h3); font-family: var(--font-body); font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
a { color: inherit; }

/* The header is fixed, so an anchor would otherwise scroll its own heading
   underneath it. Matters more now the language switch preserves the hash. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.wrap.narrow { max-width: calc(var(--narrow) + 80px); }

/* --paper, not --on-dark: the fill is --ink, and in dark mode --ink and the old
   --ink-invert were the same colour, which made this invisible. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.skip:focus { left: 0; }

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

/* Anyone navigating by keyboard must be able to see where they are. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1em; font-weight: 600;
}

.link { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); transition: border-color 0.25s; }
.link:hover { border-bottom-color: currentColor; }
.link-arrow::after { content: " \2192"; }

/* ---- header -------------------------------------------------------------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck,
.site-header.menu-open {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--line);
}
/* An open menu needs a solid header above it, or the panel looks detached
   from the bar it dropped out of. */
.site-header.menu-open { background: var(--paper); border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 13px; height: 13px; border: 1.5px solid var(--accent); border-radius: 50%;
  position: relative; flex-shrink: 0;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3px; background: var(--accent); border-radius: 50%;
  transform: scale(0); transition: transform 0.5s var(--ease);
}
.brand:hover .brand-mark::after { transform: scale(1); }
.brand-name { font-family: var(--font-display); font-size: 1.16rem; letter-spacing: 0.01em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.nav a { text-decoration: none; font-size: 0.9rem; color: var(--muted); transition: color 0.25s; }
.nav a:hover { color: var(--ink); }

.header-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---- language switch -----------------------------------------------------
   Two real links to the counterpart URL, not buttons: the language is part of
   the address now, so switching is navigation. 44px minimum hit area, which the
   old 20x26 buttons badly missed for a 55 to 75 audience. */

.lang-switch {
  display: flex; align-items: center; gap: 2px;
  font-size: 0.78rem; letter-spacing: 0.06em;
}
.lang-switch > span[aria-hidden] { color: var(--line); }
.lang-current, .lang-alt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; text-decoration: none;
}
.lang-current { color: var(--ink); font-weight: 700; }
.lang-alt { color: var(--muted); transition: color 0.25s; }
.lang-alt:hover { color: var(--ink); }

/* ---- mobile menu --------------------------------------------------------- */

.menu-btn {
  display: none; appearance: none; background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center;
  transition: border-color 0.25s;
}
.menu-btn:hover { border-color: var(--ink); }
.menu-bars { display: block; width: 16px; height: 10px; position: relative; }
.menu-bars::before, .menu-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.menu-bars::before { top: 0; }
.menu-bars::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(4.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-4.2px) rotate(-45deg); }

/* 860px lives HERE and nowhere else. main.js asks whether .menu-btn is
   displayed rather than measuring the window, so the number is not duplicated
   into JavaScript where the two could drift. */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 5vw, 40px) 26px;
    transform: translateY(-8px); opacity: 0;
    /* visibility:hidden, not just opacity:0. The old panel kept all five links
       in the tab order while invisible, so a keyboard user at phone width tabbed
       through a menu they could not see. This removes them from the tab order
       AND the accessibility tree, keeps the transition, and works even if
       main.js never loads, which inert would not. */
    visibility: hidden; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    display: block; padding: 15px 0; border-bottom: 1px solid var(--line);
    font-size: 1.02rem; color: var(--ink);
  }
  .nav li:last-child a { border-bottom: 0; }

  /* Stops the page behind the open panel scrolling under a thumb. */
  body.menu-open { overflow: hidden; }
}

/* ---- hero ---------------------------------------------------------------- */

.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: center; padding: 130px 0 90px; overflow: hidden;
}

/* The slow-drifting wash behind the headline. Two soft radial gradients that
   move very slowly. Subtle on purpose: you should notice it only if you look. */
.hero-field {
  position: absolute; inset: -30%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 32%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 70%),
    radial-gradient(34% 38% at 78% 62%, color-mix(in srgb, var(--ink) 8%, transparent), transparent 70%);
  filter: blur(28px);
  animation: drift calc(38s / var(--motion-scale, 1)) ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.12); }
}

.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 0.5em; }
.hero-footnote { font-size: 0.85rem; color: var(--muted); margin: 2.4em 0 0; max-width: 44ch; }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted);
  max-width: 58ch; margin-bottom: 2.2em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 13px 26px; border-radius: var(--radius); text-decoration: none;
  font-size: 0.92rem; font-weight: 550; letter-spacing: 0.01em; cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(calc(-2px * var(--motion-scale))); }
/* colour is --paper, NOT --on-dark. The fill here is --ink, and --on-dark means
   "on the --dark section". Conflating the two is what made this button render
   cream on cream in dark mode. */
.btn-primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: none; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---- sections ------------------------------------------------------------ */

.section { padding: var(--section-y) 0; }
.section-head { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-callout { border-top: 1px solid var(--line); padding: clamp(52px, 8vw, 92px) 0; }
.body { color: var(--muted); max-width: 62ch; }
.fit-closing { color: var(--muted); font-size: 0.94rem; max-width: 62ch; margin: 30px 0 0; }

.crumbs { font-size: 0.8rem; color: var(--muted); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* ---- credibility strip ---------------------------------------------------
   auto-fit, so the grid is correct whether it carries three items or four. The
   fee claim only renders once it is confirmed as factually accurate, and this
   must not leave a gap when it does not. */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.strip-item { padding: 30px clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 700px) {
  .strip-item { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .strip-item:first-child { border-top: 0; }
}
.strip-t {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 650; margin: 0 0 8px; color: var(--ink);
}
.strip-d { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---- why you were contacted ---------------------------------------------- */

.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 34px; margin-top: 46px; }
.reason { border-top: 1px solid var(--line); padding-top: 20px; }
.reason h3 { margin-bottom: 0.5em; }
.reason p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---- cards --------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 46px; }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 34px 34px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.section-alt .card { background: var(--paper); }
.card:hover {
  transform: translateY(calc(-5px * var(--motion-scale)));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 18px 44px -28px rgba(20, 22, 26, 0.32);
}
.card-index {
  font-family: var(--font-display); font-size: 0.82rem; color: var(--accent);
  letter-spacing: 0.1em; display: block; margin-bottom: 20px;
}
.card h3 { margin-bottom: 0.7em; }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--muted);
  margin-bottom: 9px; line-height: 1.5;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 1px; background: var(--accent);
}

/* ---- steps --------------------------------------------------------------- */

.steps {
  list-style: none; margin: 46px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 34px 26px;
}
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
/* A bronze mark, and nothing else. The old .step-n held the digit at font-size 0
   with aria-hidden, so the number was invisible to sighted users AND to screen
   readers. The <ol> already carries the ordinal, which is what gets announced. */
.step-rule { position: absolute; top: -1px; left: 0; width: 30px; height: 2px; background: var(--accent); }
.step h3 { margin-bottom: 0.55em; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---- criteria ------------------------------------------------------------ */

.criteria { margin: 46px 0 0; }
.criterion { padding: 22px 0; border-bottom: 1px solid var(--line); }
.criterion:first-child { padding-top: 0; }
.criterion dt { font-weight: 650; margin-bottom: 5px; font-size: 1rem; }
.criterion dd { margin: 0; color: var(--muted); font-size: 0.94rem; max-width: 70ch; }

/* ---- who you are dealing with -------------------------------------------- */

.who-grid { display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: start; margin: 46px 0 0; }
.who-plain { margin: 46px 0 0; max-width: 68ch; }
@media (max-width: 760px) { .who-grid { grid-template-columns: 1fr; } }
.founder-photo { margin: 0; }
.founder-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.who-person h3 { font-size: 1.35rem; font-family: var(--font-display); font-weight: 400; margin-bottom: 0.25em; }
.founder-role { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4em; }
.who-person p { color: var(--muted); font-size: 0.97rem; }
.founder-where { font-size: 0.88rem; }
.founder-link { margin-bottom: 0; }
.who-register { margin-top: 40px; font-style: italic; }

.verify { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.verify-t { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 14px; }
.verify-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; font-size: 0.9rem; }
.verify-list dt { color: var(--muted); }
.verify-list dd { margin: 0; }
@media (max-width: 560px) {
  .verify-list { grid-template-columns: 1fr; gap: 2px; }
  .verify-list dd { margin-bottom: 12px; }
}

/* ---- questions ----------------------------------------------------------- */

.faq { margin-top: 46px; max-width: 820px; }

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }

.qa summary {
  list-style: none; cursor: pointer; padding: 21px 44px 21px 0; position: relative;
  font-size: 1.02rem; font-weight: 600; transition: color 0.25s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent); }

/* The plus that becomes a minus. Two lines, one of them rotates away. */
.qa summary::before,
.qa summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  background: var(--accent); transition: transform 0.4s var(--ease), opacity 0.3s;
}
.qa summary::before { width: 13px; height: 1.5px; margin-top: -0.75px; }
.qa summary::after { width: 1.5px; height: 13px; margin-top: -6.5px; right: 9.75px; }
.qa[open] summary::after { transform: rotate(90deg); opacity: 0; }

.qa p {
  margin: 0; padding: 0 44px 24px 0; color: var(--muted); font-size: 0.96rem;
  max-width: 68ch;
}

/* Opening one slides the answer down rather than snapping it. */
.qa[open] p { animation: unfold 0.45s var(--ease); }
@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---- property and privacy prose ------------------------------------------ */

.prop-blocks, .pr-blocks { display: grid; gap: clamp(30px, 4vw, 46px); }
.prop-block h2, .pr-block h2 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 650; letter-spacing: 0; margin-bottom: 0.55em; }
.prop-block p, .pr-block p { color: var(--muted); font-size: 0.97rem; max-width: 68ch; margin-bottom: 0.7em; }
.prop-block p:last-child, .pr-block p:last-child { margin-bottom: 0; }
.pr-pending { font-style: italic; }
.pr-note { margin-top: 12px; color: var(--muted); max-width: 68ch; }

/* ---- contact ------------------------------------------------------------- */

.section-contact { background: var(--dark); color: var(--on-dark); }
.section-contact .eyebrow { color: color-mix(in srgb, var(--accent) 82%, white); }
.section-contact .lede { color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
.section-contact .fineprint { color: color-mix(in srgb, var(--on-dark) 62%, transparent); }
.section-contact .link { color: var(--on-dark); }
.contact-inner { max-width: 760px; margin: 0 auto; }
.contact-inner > .eyebrow, .contact-inner > h2, .contact-inner > .lede { text-align: center; }
.contact-inner > .lede { margin-left: auto; margin-right: auto; }

/* On the dark section the fill must be --on-dark, not --ink: in light mode
   --ink and --dark are the same colour, so a --ink button here would be
   invisible against its own section. */
.section-contact .btn-primary {
  background: var(--on-dark); color: var(--dark); border-color: var(--on-dark);
}
.section-contact .btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }

.contact-alt { text-align: center; margin-top: 40px; border-top: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); padding-top: 30px; }
.contact-alt .fineprint { margin: 0 auto 10px; }
.mail-wrap { text-align: center; }

.mail {
  display: inline-block; font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); text-decoration: none;
  padding-bottom: 4px; position: relative;
}
.mail::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: 0.35;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease), opacity 0.6s;
}
.mail:hover::after { transform: scaleX(1); opacity: 1; }

.fineprint { font-size: 0.85rem; color: var(--muted); max-width: 52ch; }

/* ---- the enquiry form ---------------------------------------------------
   Form controls keep normal light-on-light field colours even inside the dark
   section. A 65 year old owner should meet a field that looks like a field, and
   it also avoids the native <select> dropdown inheriting a colour that makes its
   own options unreadable. */

.enquiry { text-align: left; margin-top: 40px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 24px; }
.field { margin: 0 0 20px; display: flex; flex-direction: column; gap: 7px; }
.field-wide { margin-top: 4px; }
.enquiry label { font-size: 0.88rem; font-weight: 600; }
.enquiry .opt { font-weight: 400; color: color-mix(in srgb, var(--on-dark) 55%, transparent); font-size: 0.8rem; }
.enquiry .hint { font-size: 0.8rem; color: color-mix(in srgb, var(--on-dark) 58%, transparent); line-height: 1.45; }

.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit; font-size: 1rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; width: 100%; min-height: 48px;
}
.enquiry textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.enquiry input:focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.enquiry input[aria-invalid="true"], .enquiry select[aria-invalid="true"], .enquiry textarea[aria-invalid="true"] {
  border-color: #B0503E; border-width: 2px;
}
.enquiry button[type="submit"] { margin-top: 10px; }
.form-reassurance { margin: 16px 0 0; max-width: 62ch; }

/* Off-screen rather than display:none. Some bots skip fields whose computed
   style hides them, and this one needs to look fillable to them. */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-summary {
  border: 2px solid #B0503E; border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 26px;
  background: color-mix(in srgb, var(--on-dark) 8%, transparent);
}
.form-summary[hidden] { display: none; }
.form-summary h3 { margin-bottom: 0.5em; font-size: 1rem; }
.form-summary ul { margin: 0; padding-left: 20px; font-size: 0.9rem; }
.form-summary a { color: inherit; }

/* ---- footer -------------------------------------------------------------- */

.site-footer { background: var(--dark); color: var(--on-dark); border-top: 1px solid rgba(255,255,255,0.09); padding: 46px 0 34px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer-note { color: color-mix(in srgb, var(--on-dark) 55%, transparent); font-size: 0.86rem; max-width: 42ch; margin: 10px 0 0; }
.footer-note a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; font-size: 0.88rem; color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
.footer-nav a:hover { color: var(--on-dark); }
.footer-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--on-dark) 12%, transparent); }
/* 62%, not 45%. At 45% these three lines composite to about 3.8:1 against --dark,
   which fails AA at this size. Measured, not guessed. Nothing that carries text on
   the dark sections goes below 55%, and a test enforces that. */
.footer-legal p, .footer-disclaimer, .footer-copy {
  color: color-mix(in srgb, var(--on-dark) 62%, transparent); font-size: 0.8rem; margin: 0 0 5px;
}
.footer-legal a { color: inherit; }

/* ---- the root chooser and the 404 ---------------------------------------
   Lives here rather than in a <style> block on the page. That is what lets the
   Content-Security-Policy ship without 'unsafe-inline'. */

.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; gap: 4px; }
.lost .code { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent); margin: 0 0 14px; }
.lost h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 0.5em; }
.lost p { color: var(--muted); }
.lost-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin-top: 18px; }
.lost-links a { text-decoration: none; }

/* ---- the reveal-on-scroll animation -------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(calc(var(--reveal-distance) * var(--motion-scale)));
  transition:
    opacity var(--reveal-time) var(--ease),
    transform var(--reveal-time) var(--ease);
  transition-delay: calc(var(--stagger, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* If JavaScript never runs, nothing should be invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* ---- someone who has asked their device for less motion gets none --------- */

@media (prefers-reduced-motion: reduce) {
  :root { --motion-scale: 0; --reveal-distance: 0px; --reveal-time: 0.001s; }
  html { scroll-behavior: auto; }
  .hero-field { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.001s !important; animation-duration: 0.001s !important; }
}
