/* ==========================================================================
   site.css - the whole stylesheet, in three labelled parts:
   1. DESIGN TOKENS (colours, fonts, spacing: change these first)
   2. BASE (reset, element defaults, layout helpers)
   3. COMPONENTS (header, hero, sections, forms, footer, motion)
   One file means one request, which keeps the first paint fast.
   ========================================================================== */

/* >>>>>>>>>> PART 1. DESIGN TOKENS <<<<<<<<<< */
/* ==========================================================================
   tokens.css - design tokens. Change colours, fonts and spacing HERE.
   Every colour pair used for text meets WCAG AA (4.5:1, or 3:1 for large text).
   ========================================================================== */

/* Fonts: self-hosted variable woff2 (latin subset). No external requests. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep layout shift at zero while the web fonts load. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  /* Colour: warm neutrals, one green accent, one muted amber secondary */
  --bg: #faf8f4;
  --surface: #ffffff;
  --sand: #f0eadc;
  --sand-deep: #e4dbc6;
  --line: #ddd5c4;
  --ink: #16211e;
  --ink-soft: #4a5754;
  --accent: #17693f;
  --accent-strong: #0f4f2e;
  --accent-tint: #e3efe6;
  --amber: #8a5a00;
  --amber-tint: #f6e7c1;
  --dark: #13201c;
  --dark-soft: #1d2d28;
  --on-dark: #f3f1ea;
  --on-dark-soft: #b9c4bf;
  --focus: #8a5a00;
  --focus-on-dark: #f2c14e;
  --error: #a3200f;

  /* Type */
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Figtree", "Figtree Fallback", Arial, sans-serif;
  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.7rem);

  /* Spacing: 8px scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2rem;
  --s-6: 3rem;
  --s-7: 4rem;
  --s-8: 6rem;
  --section: clamp(3rem, 2rem + 5vw, 6rem);

  /* Layout */
  --max: 75rem; /* 1200px */
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --header-h: 5rem;
  --header-h-small: 3.75rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* >>>>>>>>>> PART 2. BASE <<<<<<<<<< */
/* ==========================================================================
   base.css - reset, element defaults, layout helpers
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-3);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 var(--s-3); text-wrap: pretty; max-width: 65ch; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--focus-on-dark); }
::selection { background: var(--accent-tint); color: var(--accent-strong); }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-3);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 55ch; }
.section-head { max-width: 46rem; margin-bottom: var(--s-6); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-3); top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--s-3); color: #fff; }
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Inline SVG icon sprite: takes up no space (the hidden attribute is not honoured on inline svg) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* >>>>>>>>>> PART 3. COMPONENTS <<<<<<<<<< */
/* ==========================================================================
   components.css - buttons, header, footer, sections, forms, motion
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 700 var(--step-0)/1.2 var(--font-body);
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--accent-strong); }
.btn--light:hover { background: var(--sand); color: var(--accent-strong); }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--accent-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; text-decoration: none; }
.link-arrow .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 48px; pointer-events: none; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 1px 12px rgba(22, 33, 30, 0.06); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); min-height: var(--header-h); transition: min-height 0.25s var(--ease); }
.site-header.is-scrolled .header-bar { min-height: var(--header-h-small); }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.5rem; height: 2.5rem; transition: width 0.25s var(--ease), height 0.25s var(--ease); }
.site-header.is-scrolled .brand-mark { width: 2.1rem; height: 2.1rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 800 1.25rem/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }
.brand-sub { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 3px; }

.nav-toggle {
  display: none; align-items: center; gap: var(--s-2); min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 0.9rem;
  font: 700 0.95rem var(--font-body); color: var(--ink); background: transparent;
  border: 2px solid var(--ink); border-radius: var(--radius-sm); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.site-nav { flex-basis: 100%; }
.nav-list { list-style: none; display: flex; flex-direction: column; padding-bottom: var(--s-3); }
.nav-list a { display: flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 0; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-list a:hover { color: var(--accent); }
.nav-list a[aria-current="page"] { color: var(--accent); }
.nav-list .btn { margin-top: var(--s-3); border-bottom: 2px solid transparent; color: #fff; }
.nav-list .btn:hover { color: #fff; }
.nav-phone { display: none; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 62rem) {
  .nav-toggle { display: none !important; }
  .site-nav, .js .site-nav { display: block; flex-basis: auto; }
  .nav-list { flex-direction: row; align-items: center; gap: var(--s-4); padding: 0; }
  .nav-list a { min-height: 2.75rem; border: 0; padding: 0.25rem 0; position: relative; }
  .nav-list a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
  .nav-list a:not(.btn):hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-list .btn { margin: 0; padding: 0.6rem 1.2rem; }
  .nav-phone { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; }
}

/* Persistent mobile call button */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 3.5rem; padding: 0.5rem var(--gutter);
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 -2px 12px rgba(22, 33, 30, 0.18);
}
.call-bar:hover { background: var(--accent-strong); color: #fff; }
body { padding-bottom: 3.5rem; }
@media (min-width: 48rem) { .call-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 5vw, 5rem) var(--section); }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { margin-bottom: var(--s-5); }
.hero-art { width: 100%; max-width: 34rem; margin-inline: auto; }
.hero-note { margin-top: var(--s-4); font-size: var(--step--1); color: var(--ink-soft); display: flex; align-items: center; gap: var(--s-2); }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-7); } }

.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero .lead { margin: 0; }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; gap: var(--s-4); padding-block: var(--s-5); }
.trust-label { display: block; margin-bottom: var(--s-2); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.marks { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.marks li { padding: 0.3rem 0.8rem; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.trust-fact { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; margin: 0; }
@media (min-width: 62rem) {
  .trust-grid { grid-template-columns: 1.7fr 0.8fr 1.1fr; gap: 0; }
  .trust-grid > div { padding-inline: var(--s-5); border-left: 1px solid var(--line); }
  .trust-grid > div:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Service rows (home) ---------- */
.split-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); align-items: end; }
.split-head h2, .split-head p { margin: 0; }
@media (min-width: 62rem) { .split-head { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }
.service-rows { list-style: none; display: grid; column-gap: var(--s-7); border-top: 1px solid var(--ink); counter-reset: svc; }
.service-rows a {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: var(--s-3);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; counter-increment: svc;
  transition: padding-left 0.25s var(--ease), background-color 0.25s var(--ease);
}
.service-rows a::before { content: counter(svc, decimal-leading-zero); font: 600 var(--step--1) var(--font-body); color: var(--amber); letter-spacing: 0.06em; }
.service-rows a:hover { padding-left: var(--s-2); background: var(--surface); }
.service-rows .icon-arrow { color: var(--accent); transition: transform 0.25s var(--ease); }
.service-rows a:hover .icon-arrow { transform: translateX(4px); }
.service-rows strong { display: flex; align-items: center; gap: var(--s-2); font: 600 var(--step-1)/1.2 var(--font-display); }
.service-rows strong .icon { color: var(--accent); }
.service-rows span { display: block; margin-top: var(--s-1); color: var(--ink-soft); font-size: 0.95rem; max-width: 40ch; }
@media (min-width: 62rem) { .service-rows { grid-template-columns: 1fr 1fr; } }

/* ---------- Why us ---------- */
.why-grid { display: grid; gap: var(--s-6); }
.why-intro { align-self: start; }
.why-list { list-style: none; }
.why-item { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-3); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .icon { width: 2rem; height: 2rem; color: var(--accent); }
.why-item h3 { font: 600 var(--step-1)/1.25 var(--font-display); margin-bottom: var(--s-1); }
.why-item p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
@media (min-width: 62rem) { .why-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); } .why-intro { position: sticky; top: 7rem; } }

/* ---------- Process ---------- */
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding-left: 4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--accent); color: #fff; font: 700 1.1rem var(--font-body);
}
.steps li::after { content: ""; position: absolute; left: 1.35rem; top: 2.75rem; bottom: calc(var(--s-5) * -1); width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: var(--step-1); margin-bottom: var(--s-1); }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 62rem) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
  .steps li { padding: 4rem 0 0; }
  .steps li::after { left: 2.75rem; right: calc(var(--s-4) * -1); top: 1.35rem; bottom: auto; width: auto; height: 2px; }
}

/* ---------- Renewables panel ---------- */
.renew-grid { display: grid; gap: var(--s-6); }
.renew-tiles { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.renew-tile { display: block; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.renew-tile:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); }
.renew-tile .icon { width: 2.25rem; height: 2.25rem; color: var(--accent); margin-bottom: var(--s-3); }
.renew-tile h3 { font-size: var(--step-1); margin-bottom: var(--s-1); }
.renew-tile p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.note-box { margin-top: var(--s-4); padding: var(--s-4); background: var(--amber-tint); border-radius: var(--radius); font-size: 0.95rem; }
.note-box strong { display: block; margin-bottom: var(--s-1); color: #5e3d00; }
.note-box p { margin: 0; max-width: none; color: #3d2a00; }
@media (min-width: 36rem) { .renew-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .renew-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-7); align-items: start; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; padding-block: var(--section); }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #e6f1ea; font-size: var(--step-1); }
.cta-inner { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 62rem) { .cta-inner { grid-template-columns: 1.3fr 1fr; } .cta-inner .btn-row { justify-content: flex-end; } }

/* ---------- Services page ---------- */
.svc-layout { display: grid; gap: var(--s-6); }
.svc-index { position: static; }
.svc-index h2 { font: 700 var(--step--1) var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s-2); }
.svc-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.svc-index a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.3rem 0.9rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.svc-index a:hover { border-color: var(--accent); color: var(--accent); }
.svc { padding-block: var(--s-6); border-top: 1px solid var(--ink); }
.svc:first-child { border-top: 0; padding-top: 0; }
.svc-title { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.svc-title .icon { width: 2.5rem; height: 2.5rem; padding: 0.5rem; background: var(--accent-tint); color: var(--accent); border-radius: 50%; }
.svc-title h2 { margin: 0; font-size: var(--step-3); }
.svc-cols { display: grid; gap: var(--s-4); margin-block: var(--s-4); }
.svc-cols h3 { font: 700 var(--step--1) var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: var(--s-2); }
.svc-cols p { margin: 0; }
.ticks { list-style: none; display: grid; gap: var(--s-2); }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s-2); align-items: start; }
.ticks .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; color: var(--accent); }
@media (min-width: 62rem) {
  .svc-layout { grid-template-columns: 14rem 1fr; gap: var(--s-8); }
  .svc-index { position: sticky; top: 7rem; align-self: start; }
  .svc-index ul { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .svc-index a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding-inline: 0; }
  .svc-cols { grid-template-columns: 1fr 1.2fr; gap: var(--s-6); }
}

/* ---------- Renewables page ---------- */
.explain { display: grid; gap: var(--s-5); padding-block: var(--s-6); border-top: 1px solid var(--ink); }
.explain:first-of-type { border-top: 0; }
.explain-title { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.explain-title .icon { width: 2.5rem; height: 2.5rem; color: var(--accent); }
.explain-title h2 { margin: 0; }
.glance { align-self: start; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.glance h3 { font: 700 var(--step--1) var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: var(--s-3); }
.glance dl { margin: 0; }
.glance dt { font-weight: 700; margin-top: var(--s-3); }
.glance dt:first-child { margin-top: 0; }
.glance dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 62rem) { .explain { grid-template-columns: 1.4fr 1fr; gap: var(--s-7); } .explain--flip .glance { order: -1; } .explain--flip { grid-template-columns: 1fr 1.4fr; } }

.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 3.5rem; padding-block: var(--s-3); font: 600 var(--step-1)/1.3 var(--font-display); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); font: 700 1.4rem/1 var(--font-body); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: var(--s-4); color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s-6); }
.person { display: grid; grid-template-columns: 5rem 1fr; gap: var(--s-4); padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--sand); color: var(--ink-soft); font: 600 0.7rem/1.2 var(--font-body); text-align: center; border: 1.5px dashed var(--ink-soft); }
.person h3 { margin-bottom: var(--s-1); font-size: var(--step-1); }
.person .role { color: var(--amber); font-weight: 700; font-size: 0.9rem; margin-bottom: var(--s-2); }
.accred-list { list-style: none; border-top: 1px solid var(--ink); }
.accred-list li { display: grid; gap: var(--s-1); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.accred-list strong { font: 600 var(--step-1) var(--font-display); }
.accred-list span { color: var(--ink-soft); font-size: 0.95rem; }
.area-cols { display: grid; gap: var(--s-4); }
.area-cols h3 { font: 700 var(--step--1) var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: var(--s-2); }
.area-cols p { margin: 0; color: var(--ink-soft); }
@media (min-width: 48rem) { .area-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 62rem) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } .accred-list li { grid-template-columns: 13rem 1fr; gap: var(--s-4); } }

/* ---------- Projects ---------- */
.project-grid { list-style: none; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project-media { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--sand) 0 12px, #ece4d2 12px 24px); color: var(--ink-soft); }
.project-media .icon { width: 3rem; height: 3rem; }
.project-media span { position: absolute; left: var(--s-2); bottom: var(--s-2); padding: 0.2rem 0.6rem; background: var(--ink); color: #fff; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.project-body { padding: var(--s-4); }
.project-body h3 { font-size: var(--step-1); margin-bottom: var(--s-1); }
.tag { display: inline-block; margin-bottom: var(--s-2); padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); font-size: 0.8rem; font-weight: 700; }
.project-body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; gap: var(--s-6); }
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; gap: var(--s-4); }
.field label { display: block; margin-bottom: var(--s-1); font-weight: 700; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.9rem;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid #8b8574; border-radius: var(--radius-sm);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { margin: var(--s-1) 0 0; color: var(--error); font-size: 0.9rem; font-weight: 600; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.form-status { margin: 0; padding: var(--s-3); border-radius: var(--radius-sm); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fbe9e5; color: #7a1a0c; }
.form-success { padding: var(--s-5); background: var(--accent-tint); border-radius: var(--radius); }
.form-success h2 { font-size: var(--step-2); color: var(--accent-strong); }
.form-success[hidden], .form[hidden] { display: none; }
.details-card { padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.details-card h2 { font-size: var(--step-2); }
.details-list { list-style: none; display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
.details-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s-3); }
.details-list .icon { color: var(--accent); margin-top: 0.15rem; }
.details-list small { display: block; color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.details-list a { font-weight: 700; overflow-wrap: anywhere; }
.details-list a[href^="mailto"] { font-size: 0.95rem; }
@media (min-width: 36rem) { .details-card { padding: var(--s-5); } .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: var(--s-7); } }

/* ---------- Prose (privacy, 404) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s-6); }
.prose h3 { font-size: var(--step-1); margin-top: var(--s-4); }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--s-3); }
.prose li { margin-bottom: var(--s-1); }
.review-flag, .ph { background: var(--amber-tint); color: #3d2a00; padding: 0.05rem 0.4rem; border-radius: 4px; font-weight: 600; }
.review-banner { padding: var(--s-3) var(--s-4); background: var(--amber-tint); color: #3d2a00; border-left: 4px solid var(--amber); border-radius: var(--radius-sm); margin-bottom: var(--s-5); max-width: 46rem; }
.review-banner p { margin: 0; }
.notfound { min-height: 55vh; display: grid; align-content: center; }
.notfound .code { font: 600 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--font-display); color: var(--accent); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-soft); padding-block: var(--s-7) var(--s-5); font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgba(243, 241, 234, 0.4); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer h2 { font: 700 var(--step--1) var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark); margin-bottom: var(--s-3); }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-logo { width: 13rem; margin-bottom: var(--s-3); }
.footer-list { list-style: none; display: grid; gap: var(--s-1); }
.footer-list a { display: inline-flex; min-height: 2.25rem; align-items: center; }
.site-footer .marks li { border-color: var(--on-dark-soft); color: var(--on-dark); font-size: 0.8rem; }
.footer-base { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--dark-soft); display: grid; gap: var(--s-2); font-size: 0.85rem; }
.footer-base p { margin: 0; max-width: none; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Motion ----------
   Hidden initial states only exist when JS is running (.js on <html>),
   so the page is fully visible without JS. Only opacity and transform animate. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .reveal-group > .reveal:nth-child(2) { transition-delay: 60ms; }
  .js .reveal-group > .reveal:nth-child(3) { transition-delay: 120ms; }
  .js .reveal-group > .reveal:nth-child(4) { transition-delay: 180ms; }
  .js .reveal-group > .reveal:nth-child(5) { transition-delay: 240ms; }
  .js .reveal-group > .reveal:nth-child(n+6) { transition-delay: 300ms; }

  /* One hero entrance. The h1 only moves (no fade) so it paints immediately for LCP. */
  .js .hero-in > * { animation: rise 0.6s var(--ease) both; }
  .js .hero-in > h1 { animation-name: slide; }
  .js .hero-in > :nth-child(3) { animation-delay: 80ms; }
  .js .hero-in > :nth-child(4) { animation-delay: 160ms; }
  .js .hero-in > :nth-child(5) { animation-delay: 220ms; }
  .js .hero-art { animation: rise 0.8s var(--ease) 120ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes slide { from { transform: translateY(14px); } }

