/*
Theme Name: Surrey Tasker
Theme URI: https://surreytasker.co.uk
Author: Surrey Tasker
Description: Custom theme for Surrey Tasker — "The Yard". Forest-green + white, Clash Display + Satoshi. Standalone theme (no HivePress/ListingHive).
Version: 1.22.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: surrey-tasker
*/

/* ---------- Self-hosted fonts ---------- */
@font-face{font-family:'Clash Display';src:url('assets/fonts/clash-display-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Clash Display';src:url('assets/fonts/clash-display-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:'Clash Display';src:url('assets/fonts/clash-display-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Satoshi';src:url('assets/fonts/satoshi-400.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Satoshi';src:url('assets/fonts/satoshi-500.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:'Satoshi';src:url('assets/fonts/satoshi-700.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap;}

/* ============================================================
   Surrey Tasker — "The Yard" homepage prototype
   Direction: warm, capable, no-nonsense local builder's yard.
   Green + white (client-selected palette) · Clash Display + Satoshi.
   Colours authored in OKLCH. Prototype (local-preview).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surface */
  --bg:            oklch(1 0 0);                 /* pure white body */
  --paper:         oklch(0.976 0.007 78);        /* warm section tint */
  --paper-2:       oklch(0.962 0.010 78);        /* deeper warm panel  */
  --surface:       oklch(1 0 0);                 /* cards */

  /* Ink */
  --ink:           oklch(0.245 0.013 60);        /* headings / near-black */
  --body:          oklch(0.415 0.013 58);        /* paragraph text (AA on white) */
  --muted:         oklch(0.525 0.012 60);        /* meta / large only */

  /* Brand — forest green is the structural workhorse (client-selected green + white) */
  --brick:         oklch(0.45 0.11 150);         /* primary brand (green) — AA as text on white */
  --brick-deep:    oklch(0.38 0.10 150);         /* hover / darker */
  --brick-band:    oklch(0.28 0.06 150);         /* deep green band */

  /* Accent — green CTA on white */
  --signal:        oklch(0.45 0.13 148);         /* CTA fill (green) — AA with white text */
  --signal-deep:   oklch(0.39 0.12 148);         /* CTA hover */
  --signal-bright: oklch(0.58 0.15 146);         /* ring / highlight (decorative) */
  --cta-ink:       oklch(0.99 0 0);              /* white text on green CTA */

  /* Lines & status */
  --line:          oklch(0.912 0.008 78);        /* hairline */
  --line-strong:   oklch(0.842 0.013 78);        /* crafted edge */
  --live:          oklch(0.605 0.140 150);       /* live status dot */

  /* Type */
  --font-display: "Clash Display", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --t-hero:  clamp(2.5rem, 1.3rem + 5.2vw, 5rem);
  --t-h2:    clamp(1.9rem, 1.2rem + 2.8vw, 3rem);
  --t-h3:    clamp(1.3rem, 1.05rem + 1.1vw, 1.7rem);
  --t-lead:  clamp(1.075rem, 1rem + 0.5vw, 1.3rem);
  --t-body:  1rem;
  --t-sm:    0.875rem;
  --t-xs:    0.78rem;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Spacing rhythm */
  --gutter: clamp(1.1rem, 0.6rem + 2vw, 2.2rem);
  --section: clamp(3.75rem, 2.5rem + 5vw, 7.5rem);
  --maxw: 1200px;

  /* Elevation (lift-on-intent) */
  --shadow-soft: 0 1px 2px rgba(44,40,34,.05), 0 8px 24px rgba(44,40,34,.06);
  --shadow-lift: 0 18px 44px -20px rgba(44,40,34,.34);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 320ms;

  /* z-scale */
  --z-sticky: 100;
  --z-menu: 300;
  --z-toast: 500;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--section); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em;
  color: var(--brick); text-transform: uppercase;
}
.eyebrow svg { width: 1rem; height: 1rem; }
.lead { font-size: var(--t-lead); color: var(--body); max-width: 56ch; }
.section__head { max-width: 60ch; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.section__head h2 { font-size: var(--t-h2); margin-top: .55rem; }
.section__head p { margin-top: .9rem; font-size: var(--t-lead); }

/* Signature: hand-drawn amber highlight on a word */
.mark { position: relative; white-space: nowrap; }
.mark > span { position: relative; z-index: 1; }
.mark__ring { position: absolute; inset: -28% -10% -22% -8%; z-index: 0; pointer-events: none; overflow: visible; }
.mark__ring path { fill: none; stroke: var(--signal-bright); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 760; stroke-dashoffset: 760; }
.mark__ring.is-drawn path { animation: ring-draw 1.05s var(--ease) .35s forwards; }

@keyframes ring-draw { to { stroke-dashoffset: 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: -0.01em;
  border-radius: var(--r-pill); padding: 0 1.5rem; min-height: 52px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--cta { background: var(--signal); color: var(--cta-ink); box-shadow: 0 1px 0 rgba(44,40,34,.10); }
.btn--cta:hover { background: var(--signal-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--brick { background: var(--brick); color: #fff; }
.btn--brick:hover { background: var(--brick-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--brick); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--brick); transform: translateY(-2px); }
.btn--lg { min-height: 60px; padding: 0 2rem; font-size: 1.075rem; }
.btn--on-dark.btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-loading { opacity: .6; cursor: not-allowed; transform: none; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__logo { width: 34px; height: 34px; flex: none; display: block; }
.brand__wordmark { height: 110px; width: auto; display: block; }
.brand b { color: var(--brick); font-weight: 700; }
.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav a { position: relative; padding: .55rem .7rem; font-weight: 500; font-size: .95rem; color: var(--ink); border-radius: var(--r-sm); }
.nav a::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .35rem; height: 2px;
  background: var(--brick); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: inline-flex; align-items: center; gap: .9rem; margin-left: .4rem; }
.header-cta .signin { font-weight: 600; font-size: .95rem; color: var(--ink); padding: .5rem .25rem; }
.st-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--brick,#1f6b3a);color:#fff;font-weight:700}
.burger { display: none; width: 48px; height: 48px; margin-left: auto; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); }
.burger svg { width: 24px; height: 24px; stroke: var(--ink); }

/* mobile menu panel */
.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--bg);
  display: flex; flex-direction: column; padding: 1.1rem var(--gutter) 2.5rem;
  transform: translateY(-100%); visibility: hidden; transition: transform 420ms var(--ease), visibility 420ms; }
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; min-height: 76px; }
.mobile-menu__close { margin-left: auto; width: 48px; height: 48px; display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); }
.mobile-menu__close svg { width: 24px; height: 24px; stroke: var(--ink); }
.mobile-menu nav { display: flex; flex-direction: column; gap: .25rem; margin-top: 1.5rem; }
.mobile-menu nav a { font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; color: var(--ink); padding: .55rem 0; letter-spacing: -0.02em; }
.mobile-menu .btn { margin-top: 1.5rem; width: 100%; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-bottom: var(--section); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.hero__locator { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem .45rem .65rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.hero__locator svg { width: 1.05rem; height: 1.05rem; color: var(--brick); }
.hero h1 { font-size: var(--t-hero); margin: 1.15rem 0 0; font-weight: 600; }
.hero__sub { margin-top: 1.25rem; font-size: var(--t-lead); max-width: 46ch; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.4rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.hero__trust svg { width: 1.1rem; height: 1.1rem; color: var(--live); flex: none; }
.hero__altpath { margin-top: 1.15rem; font-size: var(--t-sm); color: var(--muted); }
.hero__altpath a { color: var(--brick); font-weight: 700; }
.hero__altpath a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Job composer (inline conversion device) */
.composer { margin-top: 1.9rem; background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-lg); padding: .65rem; box-shadow: var(--shadow-soft); }
.composer__row { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: .5rem; }
.field { position: relative; display: flex; align-items: center; }
.field svg { position: absolute; left: .85rem; width: 1.2rem; height: 1.2rem; color: var(--muted); pointer-events: none; }
.field input, .field select { width: 100%; min-width: 0; min-height: 56px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 0 1rem 0 2.7rem; background: var(--bg); font-size: 1rem; color: var(--ink); appearance: none;
  transition: border-color var(--dur) var(--ease); }
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { border-color: var(--brick); outline: 3px solid var(--signal); outline-offset: 1px; }
.field select { cursor: pointer; }
.field--select::after { content: ""; position: absolute; right: 1rem; width: .55rem; height: .55rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); pointer-events: none; }
.composer .btn--cta { min-height: 56px; }
.composer__hint { display: block; margin: .65rem .4rem .2rem; font-size: var(--t-xs); color: var(--muted); }

/* Hero media — layered "crafted yard" framing */
.hero__media { position: relative; }
.hero__media-frame { position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 5; }
.hero__media-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::before { content: ""; position: absolute; inset: auto -1.2rem -1.2rem auto; width: 62%; height: 62%;
  background: var(--signal-bright); border-radius: var(--r-xl); z-index: -1; }
.hero__media::after { content: ""; position: absolute; inset: -1.1rem auto auto -1.1rem; width: 40%; height: 38%;
  border: 1.5px solid var(--brick); border-radius: var(--r-xl); z-index: -1; }
/* floating live card */
.live-card { position: absolute; left: -1rem; bottom: 1.6rem; display: flex; align-items: center; gap: .7rem;
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  padding: .7rem .9rem; box-shadow: var(--shadow-lift); max-width: 17rem; }
.live-card__dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--live); flex: none; position: relative; }
.live-card__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--live); opacity: .55; animation: pulse 2s var(--ease) infinite; }
.live-card small { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.live-card strong { display: block; font-size: .92rem; color: var(--ink); font-weight: 700; line-height: 1.25; }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.9); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Hero variant B: immersive full-bleed photo ---------- */
.hero-b-section { padding: clamp(1rem, .5rem + 1.5vw, 2rem) 0 var(--section); }
.hero-b { position: relative; min-height: clamp(560px, 78vh, 760px); display: flex; align-items: flex-end;
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-b .live-card { position: absolute; top: 1.4rem; right: 1.4rem; left: auto; bottom: auto; z-index: 3; max-width: 16rem; margin: 0; }
.hero-b__bg { position: absolute; inset: 0; z-index: 0; }
.hero-b__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-b__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(95deg, rgba(26,20,16,.88) 0%, rgba(26,20,16,.62) 42%, rgba(26,20,16,.12) 100%),
              linear-gradient(0deg, rgba(26,20,16,.55), transparent 55%); }
.hero-b__inner { position: relative; z-index: 2; padding: clamp(1.75rem, 1rem + 4vw, 3.5rem); max-width: min(44rem, 100%); min-width: 0; color: #fff; }
.hero-b .hero__locator { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.hero-b .hero__locator svg { color: var(--signal-bright); }
.hero-b h1 { color: #fff; font-size: var(--t-hero); margin: 1.1rem 0 0; }
.hero-b .mark__ring path { stroke: var(--signal-bright); }
.hero-b .hero__sub { color: rgba(255,255,255,.88); }
.hero-b .hero__trust li { color: #fff; }
.hero-b .hero__altpath { color: rgba(255,255,255,.72); }
.hero-b .hero__altpath a { color: var(--signal-bright); }

/* ---------- Towns marquee ---------- */
.towns { border-block: 1px solid var(--line); background: var(--paper); padding-block: 1.1rem; }
.towns__inner { display: flex; align-items: center; gap: 1.5rem; }
.towns__label { flex: none; font-size: var(--t-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink); display: inline-flex; align-items: center; gap: 2.4rem; }
.marquee__track span::after { content: "•"; color: var(--brick); }
@keyframes marquee { to { transform: translateX(-50%); } }
.towns:hover .marquee__track { animation-play-state: paused; }

/* ---------- Live board ---------- */
.board { background: var(--paper); }
.board__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.board__live { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.board__live .live-card__dot { width: .6rem; height: .6rem; }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.job {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.job.is-new { animation: job-in .55s var(--ease); }
@keyframes job-in { from { opacity: 0; transform: translateY(-10px) scale(.985); } to { opacity: 1; transform: none; } }
.job__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em;
  padding: .35rem .65rem; border-radius: var(--r-pill); background: var(--paper-2); color: var(--brick-deep); border: 1px solid var(--line); }
.tag__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brick); }
.job__time { font-size: var(--t-xs); color: var(--muted); font-weight: 600; white-space: nowrap; }
.job h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.job__meta { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: var(--t-sm); color: var(--body); margin-top: -.2rem; }
.job__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.job__meta svg { width: 1rem; height: 1rem; color: var(--muted); }
.job__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .35rem; border-top: 1px solid var(--line); }
.job__budget { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.job__replies { font-size: var(--t-xs); color: var(--muted); font-weight: 600; }
.board__cta { display: flex; justify-content: center; margin-top: 2.25rem; }

/* ---------- Categories ---------- */
.cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cat { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line-strong);
  aspect-ratio: 5 / 4; box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.cat:hover img { transform: scale(1.05); }
.cat__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,24,20,0) 38%, rgba(28,24,20,.82) 100%); }
.cat__label { position: absolute; left: 1rem; right: 1rem; bottom: .95rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cat__label h3 { color: #fff; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.cat__go { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--signal); display: grid; place-items: center; flex: none;
  transform: translateX(-4px); opacity: 0; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.cat:hover .cat__go { opacity: 1; transform: none; }
.cat__go svg { width: 1.1rem; height: 1.1rem; color: var(--cta-ink); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, .5rem + 2vw, 2.5rem); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--cta-ink);
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--signal-bright); display: grid; place-items: center; margin-bottom: 1.1rem; }
.step h3 { font-size: var(--t-h3); margin-bottom: .6rem; }
.step p { max-width: 34ch; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 1.5rem; left: 3.6rem; right: -1rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }

/* ---------- Why local (cottage) ---------- */
.why__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.why__media { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-lift); aspect-ratio: 4 / 5; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why__points { display: grid; gap: 1.1rem; margin-top: 1.75rem; }
.why__point { display: flex; gap: .9rem; }
.why__point svg { width: 1.6rem; height: 1.6rem; flex: none; color: var(--brick); margin-top: .1rem; }
.why__point h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.why__point p { font-size: var(--t-sm); }
.why__note { margin-top: 1.75rem; padding: 1rem 1.15rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: var(--t-sm); color: var(--body); }

/* ---------- Traders band ---------- */
.traders { position: relative; overflow: hidden; background: var(--brick-band); color: #fff; border-radius: 0; }
.traders::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .055;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 15px); }
.traders > .wrap { position: relative; z-index: 1; }
.traders__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.traders h2 { color: #fff; font-size: var(--t-h2); }
.traders p { color: rgba(255,255,255,.82); font-size: var(--t-lead); margin-top: 1rem; max-width: 48ch; }
.traders__list { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.5rem; }
.traders__list li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; font-size: var(--t-sm); }
.traders__list svg { width: 1.15rem; height: 1.15rem; color: var(--signal-bright); }
.traders__cta { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.traders__cta .btn { width: 100%; }
.traders__cta small { color: rgba(255,255,255,.6); font-size: var(--t-xs); }
.traders__how { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, .5rem + 2vw, 2.75rem);
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); padding-top: clamp(2rem, 1rem + 3vw, 3rem); border-top: 1px solid rgba(255,255,255,.16); }
.tstep__n { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--signal-bright); color: var(--cta-ink); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .9rem; }
.tstep h3 { color: #fff; font-size: 1.15rem; margin-bottom: .4rem; }
.tstep p { color: rgba(255,255,255,.78); font-size: var(--t-sm); max-width: 32ch; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final__card { background: var(--paper-2); border: 1.5px solid var(--line-strong); border-radius: var(--r-xl);
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--gutter); }
.final h2 { font-size: var(--t-h2); }
.final p { font-size: var(--t-lead); margin: 1rem auto 2rem; max-width: 48ch; }
.final__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer .brand { color: #fff; }
.footer .brand b { color: var(--signal-bright); }
.footer__about { margin-top: 1rem; font-size: var(--t-sm); max-width: 34ch; color: rgba(255,255,255,.62); }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: var(--t-sm); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .65rem; }
.footer a { font-size: var(--t-sm); color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer__disclaimer { font-size: var(--t-xs); color: rgba(255,255,255,.5); max-width: 78ch; line-height: 1.6; }
.footer__copy { font-size: var(--t-xs); color: rgba(255,255,255,.5); }

/* ---------- Header elevation on scroll ---------- */
.site-header { transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(44,40,34,.30); }

/* ---------- Hero atmosphere (subtle warmth near the media) ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 46% at 82% 26%, oklch(0.93 0.05 88 / .38), transparent 72%); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.faq__intro h2 { font-size: var(--t-h2); }
.faq__intro p { margin-top: .9rem; font-size: var(--t-lead); max-width: 34ch; }
.faq__intro .btn { margin-top: 1.6rem; }
.faq__list { display: grid; gap: .75rem; }
.faq__item { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.15rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); letter-spacing: -0.01em; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; flex: none; width: .58rem; height: .58rem; margin-right: .25rem;
  border-right: 2.5px solid var(--brick); border-bottom: 2.5px solid var(--brick); transform: rotate(45deg);
  transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__q::after { transform: rotate(225deg); }
.faq__a { padding: 0 1.3rem 1.3rem; color: var(--body); font-size: var(--t-sm); max-width: 64ch; }
.faq__a p + p { margin-top: .6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 30rem; margin-inline: auto; width: 100%; }
  .hero__media-frame { aspect-ratio: 16 / 11; }
  .why__grid { grid-template-columns: 1fr; }
  .why__media { max-width: 32rem; aspect-ratio: 16 / 11; }
  .traders__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-cta .signin { display: none; }
  .header-cta .btn { display: none; }
  .burger { display: flex; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step:not(:last-child)::after { display: none; }
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .faq__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .traders__how { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 540px) {
  .cats__grid { grid-template-columns: 1fr; }
  .cat { aspect-ratio: 16 / 10; }
}
@media (max-width: 680px) {
  .composer__row { grid-template-columns: 1fr; }
  .composer .btn--cta { width: 100%; }
  .hero__media::before, .hero__media::after { display: none; }
  .live-card { left: 0; right: 0; max-width: none; bottom: .8rem; margin-inline: .8rem; }
  .hero-b { min-height: 0; }
  .hero-b .live-card { display: none; }
  .hero-b__scrim { background: linear-gradient(0deg, rgba(26,20,16,.92) 18%, rgba(26,20,16,.55) 62%, rgba(26,20,16,.3) 100%); }
  .board__head { align-items: flex-start; }
  .towns__label { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .mark__ring path { stroke-dashoffset: 0; }
  .marquee__track { animation: none; transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Scroll reveal (progressive enhancement — visible without JS) ----------
   Hidden state is gated behind html.js so no-JS / headless renders always show
   content; JS adds .is-in (with a failsafe) so a section never ships blank.
   ALL hidden start-states live inside no-preference, so reduced-motion never hides. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .reveal.is-in { opacity: 1; transform: none; }

  /* Hero first-load choreography (pure CSS — always completes to visible) */
  html.js .hero__copy > * { opacity: 0; animation: hero-in .8s var(--ease) forwards; }
  html.js .hero__locator { animation-delay: .06s; }
  html.js .hero h1 { animation-delay: .15s; }
  html.js .hero__sub { animation-delay: .27s; }
  html.js .composer { animation-delay: .39s; }
  html.js .hero__trust { animation-delay: .5s; }
  html.js .hero__altpath { animation-delay: .58s; }
  html.js .hero__media { opacity: 0; animation: hero-in .9s var(--ease) .2s forwards; }

  /* Hero B entrance choreography */
  html.js .hero-b__inner > * { opacity: 0; animation: hero-in .8s var(--ease) forwards; }
  html.js .hero-b__inner > .hero__locator { animation-delay: .08s; }
  html.js .hero-b__inner > h1 { animation-delay: .18s; }
  html.js .hero-b__inner > .hero__sub { animation-delay: .3s; }
  html.js .hero-b__inner > .composer { animation-delay: .42s; }
  html.js .hero-b__inner > .hero__trust { animation-delay: .54s; }
  html.js .hero-b__inner > .hero__altpath { animation-delay: .62s; }
  html.js .hero-b .live-card { opacity: 0; animation: hero-in .8s var(--ease) .7s forwards; }

  /* Staggered item reveals within a group */
  html.js .reveal.stagger:not(.is-in) > * { opacity: 0; transform: translateY(16px); }
  html.js .reveal.stagger.is-in > * { opacity: 1; transform: none;
    transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 65ms); }

  /* FAQ answer reveal */
  .faq__item[open] .faq__a { animation: faq-in .35s var(--ease); }
}
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Homepage example job cards (pages.css is not enqueued on the front page) */
.job--ghost { position: relative; opacity: .9; border-style: dashed; }
.job--ghost:hover { opacity: 1; }
.job--ghost .card-soon { position: absolute; top: .75rem; right: .75rem; z-index: 2; background: var(--brick); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .26rem .55rem; border-radius: 999px; }

/* ---------- Launch notice bar (site chrome, logged-out only) ---------- */
.notice-bar { background: var(--brick-band); color: #fff; }
.notice-bar__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .1rem 1rem; min-height: 42px; padding-block: .45rem; font-size: var(--t-sm); text-align: center; }
.notice-bar p { color: rgba(255,255,255,.88); }
.notice-bar strong { color: #fff; font-weight: 700; }
.notice-bar__link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: .3rem .2rem; white-space: nowrap; border-radius: 4px; }
.notice-bar__link:hover { text-decoration-thickness: 2px; }

/* Launch-offer flag on the traders band */
.launch-flag { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.08); border: 1.5px solid var(--signal-bright); border-radius: var(--r-pill); color: #fff; font-size: var(--t-sm); font-weight: 700; padding: .45rem 1rem; margin-bottom: 1.2rem; }
.launch-flag svg { width: 1.05em; height: 1.05em; flex: none; color: var(--signal-bright); }
@media (max-width: 540px) {
  .notice-bar__inner { font-size: var(--t-xs); }
}

/* Big-font phones (OS/browser text scaling): let hero words break rather than
   clip against .hero-b's overflow:hidden. The ring phrase (.mark) stays
   nowrap — it's only 188px at default size, so it fits even scaled 1.5x,
   and wrapping it splits the ring device across lines. */
.hero-b h1, .hero-b .hero__sub { overflow-wrap: break-word; }
