/* ============================================================================
   Grey & Oak Consulting — Variant E: Flagship, motion-forward
   Three.js (ESM, jsDelivr) + GSAP 3 / ScrollTrigger (cdnjs).
   Scene: a 16,000-point sphere shell distorted on the GPU (drei MeshDistort
   formula), tone --cloud-tone; a wire icosahedron frames it (--wire-tone),
   with ?tune for a live lil-gui panel. On load the points
   gather onto the shell from scattered origins over ~2.2s (skipped under reduced motion).
   Themes:  dark (navy #1B2A4A · cream · gold #B08D45) — default
            light (warm grey #E4E1DC · near-black · walnut #7A4E24)
            toggled via <html data-theme>, persisted in localStorage('go-theme').
   Type:    Source Serif 4 (display) · Inter (body / UI).

   Progressive enhancement contract:
   - Every element is VISIBLE by default. Motion only ever hides things at
     runtime via gsap.from(), so a blocked CDN or disabled JS leaves a
     complete static page.
   - prefers-reduced-motion: reduce → one static WebGL frame, no scroll
     animation, numerals shown final, no tilt / magnetic / custom cursor.
   - WebGL unavailable → CSS radial-gradient ground instead of the canvas.
   ========================================================================== */

:root {
  /* ---- DARK (default) ------------------------------------------------ */
  --bg:            #1B2A4A;         /* navy */
  --bg-rgb:        27,42,74;
  --bg-raised:     #22345A;
  --bg-deep:       #141F38;
  --text:          #EDE6D6;         /* cream — 11.4:1 on --bg */
  --text-rgb:      237,230,214;
  --muted:         #9AA3B2;         /* 5.6:1 */
  --accent:        #B08D45;         /* gold — 4.57:1 as text on navy */
  --accent-rgb:    176,141,69;
  --accent-hover:  #C6A45C;         /* lighter on dark: 6.0:1 under a navy label */
  --line:          rgba(237,230,214,0.12);
  --line-accent:   rgba(176,141,69,0.45);
  --banner-bg:     #241E10;
  --banner-border: rgba(176,141,69,0.35);
  --banner-fg:     #EAD7A6;         /* 11.7:1 */
  /* WebGL reads these — the cloud follows the theme */
  --cloud-tone:    #C9BA92;         /* muted cream-gold */
  --far-tone:      #B08D45;
  --far-opacity:   0.38;
  --bg-about:      #16223D;         /* a shade darker than --bg: deliberate break, gold reads stronger */
  --wire-tone:     #B08D45;         /* gold wire around the cream-gold cloud */
  --wire-opacity:  0.5;
  --cloud-blend:   additive;        /* folds glow where points bunch up */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-y: clamp(80px, 12vw, 160px);
}

/* ---- LIGHT --------------------------------------------------------------- */
:root[data-theme="light"] {
  --bg:            #E4E1DC;         /* warm light grey — was off-white #FAF8F5, too bright */
  --bg-rgb:        228,225,220;
  --bg-raised:     #D9D5CE;         /* one step darker grey */
  --bg-deep:       #CFCAC2;         /* footer: two steps darker */
  --text:          #1C1C1C;         /* 13.1:1 on --bg · 10.5:1 on --bg-deep */
  --text-rgb:      28,28,28;
  --muted:         #485158;         /* 6.4:1 on --bg · 4.9:1 on --bg-deep */
  --accent:        #7A4E24;         /* deeper walnut — 5.5:1 on --bg (old walnut fell below AA on the greys) */
  --accent-rgb:    122,78,36;
  --accent-hover:  #5E3E1C;         /* 7.4:1 under a --bg label */
  --line:          rgba(28,28,28,0.12);
  --line-accent:   rgba(122,78,36,0.45);
  --banner-bg:     #E6DCC6;
  --banner-border: #C9B48A;
  --banner-fg:     #5E4012;         /* 7.0:1 */
  --cloud-tone:    #5C3A1E;         /* dark umber — 7.8:1 on --bg; jitter is a luminance scale so it stays warm */
  --far-tone:      #6E4423;         /* far-field matches: warm, not slate */
  --far-opacity:   0.32;
  --bg-about:      #D9D5CE;         /* light: the raised grey */
  --wire-tone:     #7A4E24;         /* walnut wire frames the umber cloud */
  --wire-opacity:  0.55;
  --cloud-blend:   normal;          /* additive glow vanishes on off-white */
}

/* Theme crossfade: applied by JS for ~400ms around a switch. Only colour
   properties — transforms stay GSAP's. Off entirely under reduced motion. */
html.theming, html.theming *, html.theming *::before, html.theming *::after {
  transition: background-color 350ms ease, color 350ms ease, border-color 350ms ease, fill 350ms ease, stroke 350ms ease !important;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.02em; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; border-radius: 2px; }

/* --- WebGL canvas: fixed behind everything ------------------------------ */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
/* No WebGL: a still, layered gradient stands in for the scene. */
.no-webgl #bg { display: none; }
.no-webgl body, .static-ground body {
  background:
    radial-gradient(ellipse 60% 50% at 70% 35%, rgba(var(--accent-rgb),0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 30% 80%, rgba(var(--text-rgb),0.08), transparent 70%),
    var(--bg);
}

/* --- Custom cursor (fine pointers, motion allowed only) ----------------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent-hover); }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  transition: width 220ms ease, height 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.cursor-ring.is-hover { width: 56px; height: 56px; border-color: var(--accent-hover); background: rgba(var(--accent-rgb),0.10); }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { opacity: 1; }
html.cursor-off .cursor-dot, html.cursor-off .cursor-ring { opacity: 0; }
.cursor-dot, .cursor-ring { transition-property: width, height, border-color, background-color, opacity; }

/* --- Layout ------------------------------------------------------------- */
.wrap { position: relative; width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main, header, footer, .draft { position: relative; z-index: 1; }
.section { padding-block: var(--section-y); }
.solid { background: var(--bg); }
.about { background: var(--bg-about); }
.raised { background: var(--bg-raised); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.rule { display: block; width: 64px; height: 1px; background: var(--accent); border: 0; margin: 0; }
.perspective { perspective: 1200px; }

/* --- Section header: ONE shared style for every section's label + h2 + intro
   (homepage and practice pages). Do not size or colour section h2s anywhere else. */
.section-head { text-align: left; max-width: 60ch; margin: 0 0 48px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.section-head .head__intro { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 60ch; margin-top: 18px; }
.section-head .rule { margin-top: 22px; }
.about__grid .section-head { margin-bottom: 0; }

/* --- Skip link ---------------------------------------------------------- */
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--bg);
        padding: 12px 20px; z-index: 100; font-weight: 600; }
.skip:focus { left: 16px; top: 16px; }

/* --- Draft banner — themed, legible on either hero ------------------------ */
.draft {
  background: var(--banner-bg);
  border-bottom: 1px solid var(--banner-border);
  color: var(--banner-fg);
  font-size: 0.8125rem;
  text-align: center;
  padding: 9px var(--gutter);
  font-family: var(--sans);
}
.draft strong { font-weight: 600; letter-spacing: 0.06em; }

/* --- Nav ---------------------------------------------------------------- */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  min-height: 76px; padding-block: 14px;
}
.wordmark {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.wordmark .amp { font-style: italic; font-weight: 400; color: var(--accent-hover); }
/* Logo mark (tree, cut from the supplied lockup — EST 2026 line excluded).
   Gold on dark, walnut on light: the gold is too faint on off-white. */
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { height: 44px; width: auto; display: block; flex: none; }
.logo-mark--light, :root[data-theme="light"] .logo-mark--dark { display: none; }
:root[data-theme="light"] .logo-mark--light { display: block; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 30px; }
.nav li a {
  display: inline-block; padding: 8px 0;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.nav li a:hover { color: var(--text); border-bottom-color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 22px; }
.theme-toggle {
  width: 36px; height: 36px; padding: 0;
  display: inline-grid; place-items: center;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .ico-sun, :root[data-theme="light"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: block; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 15px 32px;
  background: var(--accent); color: var(--bg);           /* bg-coloured label: navy on gold 4.57 · off-white on walnut 5.5 */
  border: 1px solid var(--accent); border-radius: 2px;
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
  will-change: transform;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn .token {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 0.8;
}

/* --- Hero: full-screen over the scene ----------------------------------- */
.hero {
  min-height: calc(100vh - 118px);
  display: flex;
  align-items: center;
  padding-block: clamp(72px, 10vw, 128px);
  position: relative;
}
/* scrim so the headline stays legible whatever the mesh is doing */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--bg-rgb),0.90) 0%, rgba(var(--bg-rgb),0.6) 45%, rgba(var(--bg-rgb),0) 75%);
  pointer-events: none;
}
@media (max-width: 899px) {
  .hero::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),0.35), rgba(var(--bg-rgb),0.88)); }
}
.hero .wrap { max-width: var(--wrap); }
.hero__inner { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  line-height: 1.02;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 .amp { font-style: italic; font-weight: 400; color: var(--accent-hover); }
.hero h1 .line { display: block; }
.hero .rule { margin-top: 30px; }
.hero__lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 34ch;
  margin-top: 24px;
}
.hero .btn { margin-top: 40px; }
.hero__cue {
  position: absolute; left: var(--gutter); bottom: 28px;
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.hero__cue::after { content: ""; width: 1px; height: 36px; background: var(--accent); opacity: 0.7; }

/* --- Who we are --------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr; gap: 28px 72px; align-items: start; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 300px minmax(0, 1fr); } }
.about__body { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; max-width: 58ch; color: var(--text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags li {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hover); border: 1px solid var(--line-accent); padding: 7px 12px; border-radius: 2px;
}

/* --- Full-bleed moment: the scene comes forward ------------------------- */
.moment {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section-y);
  position: relative;
}
.moment::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 50%, rgba(var(--bg-rgb),0.6), rgba(var(--bg-rgb),0) 70%);
  pointer-events: none;
}
.moment .wrap { max-width: 1000px; }
.moment p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}
.moment p .word { display: inline-block; transform-origin: 50% 100%; }
.moment p .accent { color: var(--accent-hover); }
.moment footer { margin-top: 28px; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* --- Service lines: numbered rows, tilt-on-hover ------------------------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 48px;
  align-items: baseline;
  padding: 36px 20px;
  margin-inline: -20px;
  border-bottom: 1px solid var(--line);
  border-radius: 4px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: background-color 250ms ease;
}
.row:hover { background: rgba(var(--text-rgb),0.03); }
@media (min-width: 760px) { .row { grid-template-columns: 160px minmax(0, 1fr); padding-block: 44px; } }
.row__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums lining-nums;
  transform: translateZ(30px);
}
.row h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.3; color: var(--text); max-width: 28ch; transform: translateZ(20px); }
.row p { font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 56ch; margin-top: 10px; transform: translateZ(10px); }
/* Practice areas: each row carries a compact list of offerings beneath its intro */
.offers { display: grid; grid-template-columns: 1fr; gap: 22px 48px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); transform: translateZ(10px); }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offers h4 { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.row .offers p { font-size: 0.9375rem; line-height: 1.55; margin-top: 4px; max-width: 46ch; transform: none; }

/* --- Credibility strip -------------------------------------------------- */
.cred {
  border-top: 1px solid var(--line-accent);
  border-bottom: 1px solid var(--line-accent);
  text-align: center;
  padding-block: clamp(40px, 6vw, 64px);
}
.cred p { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.4; color: var(--text); max-width: 40ch; margin-inline: auto; }

/* --- CTA ---------------------------------------------------------------- */
.cta { position: relative; }
/* Transparent over the fixed canvas (the 3D form is gone by here); a soft
   centre scrim keeps the heading and button on a clean ground. */
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 46% 70% at 50% 50%, rgba(var(--bg-rgb),0.92) 0%, rgba(var(--bg-rgb),0.7) 55%, rgba(var(--bg-rgb),0.15) 100%);
  pointer-events: none;
}
.cta .wrap { position: relative; }
.cta .btn { margin-top: 40px; }
.cta__note { font-size: 0.875rem; color: var(--muted); margin: 22px auto 0; max-width: 56ch; }
.cta__note code { font-size: 0.8125rem; color: var(--text); }

/* --- Footer ------------------------------------------------------------- */
.foot { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: 36px; font-size: 0.8125rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot .wordmark { font-size: 1rem; gap: 10px; }
.foot .logo-mark { height: 30px; }

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { background: var(--bg); }
  .cta::before { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .hero__cue::after { display: none; }
}

/* ==========================================================================
   Practice pages (practice-*.html) + homepage row links
   Same tokens and components as the homepage; no WebGL. <html class=
   "static-ground"> gives the body the layered gradient ground.
   ========================================================================== */
.row__link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-hover); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
  transition: border-color 200ms ease, gap 200ms ease;
  transform: translateZ(10px);
}
.row__link:hover { border-bottom-color: var(--accent-hover); gap: 12px; }

.crumb { font-size: 0.8125rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 32px; }
.crumb a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: color 200ms ease, border-color 200ms ease; }
.crumb a:hover { color: var(--text); border-bottom-color: var(--accent); }
.crumb span[aria-hidden] { margin-inline: 8px; opacity: 0.6; }

.p-hero { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--line); }
.p-hero__grid { display: grid; grid-template-columns: 1fr; gap: 18px 64px; align-items: start; }
@media (min-width: 900px) { .p-hero__grid { grid-template-columns: 200px minmax(0, 1fr); } }
.p-hero .row__num { font-size: clamp(4rem, 9vw, 7.5rem); transform: none; }
@media (max-width: 899px) { .p-hero .row__num { font-size: 3rem; } .crumb { margin-bottom: 24px; } }
.p-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.05; color: var(--text); text-wrap: balance; max-width: 18ch; }
.p-hero .rule { margin-top: 28px; }
.p-hero__lead { font-family: var(--serif); font-size: clamp(1.1875rem, 2vw, 1.4375rem); line-height: 1.55; color: var(--text); max-width: 50ch; margin-top: 24px; }

.offer-list { border-top: 1px solid var(--line); }
.offer { display: grid; grid-template-columns: 1fr; gap: 14px 64px; padding-block: 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .offer { grid-template-columns: 320px minmax(0, 1fr); padding-block: 48px; } }
.offer h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.25; color: var(--text); }
.offer__idx { display: block; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.offer p { font-size: 1.0625rem; line-height: 1.65; color: var(--text); max-width: 60ch; }
.includes { display: grid; grid-template-columns: 1fr; gap: 10px 32px; margin-top: 22px; }
@media (min-width: 640px) { .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.includes li { position: relative; padding-left: 22px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.includes li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--accent); }

.principles { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .principles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
                            .principles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .principles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principle { background: var(--bg-about); padding: 32px 28px; }
.principle .offer__idx { margin-bottom: 16px; }
.principle h3 { font-size: 1.25rem; line-height: 1.3; color: var(--text); }
.principle p { font-size: 0.9875rem; line-height: 1.6; color: var(--muted); margin-top: 10px; }

.others { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .others { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.other {
  display: flex; flex-direction: column; gap: 10px; padding: 32px 28px;
  border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 4px;
  text-decoration: none; color: var(--text); background: rgba(var(--text-rgb),0.02);
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.other:hover { border-color: var(--line-accent); border-top-color: var(--accent-hover); background: rgba(var(--text-rgb),0.04); transform: translateY(-2px); }
.other__num { font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--accent); }
.other h3 { font-size: 1.375rem; line-height: 1.25; }
.other p { font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.other .row__link { margin-top: 8px; transform: none; }
@media (prefers-reduced-motion: reduce) { .other:hover { transform: none; } }

/* --- Contact: visible email address under the CTA, and in the footer ---- */
.cta__email { font-size: 0.9375rem; color: var(--muted); margin: 22px auto 0; }
.cta__email a, .foot a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-accent); transition: border-color 200ms ease, color 200ms ease; }
.cta__email a:hover, .foot a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

/* --- Contact form (published site) -------------------------------------- */
.contact-form { display: grid; grid-template-columns: 1fr; gap: 20px 24px; max-width: 720px; margin-top: 8px; }
@media (min-width: 640px) { .contact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .field--full, .contact-form .form-row { grid-column: 1 / -1; }
.contact-form label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select {
  font: inherit; font-size: 16px; line-height: 1.25; color: var(--text);   /* 16px: no iOS zoom-on-focus; fixed line-height so select = input height */
  background: rgba(var(--text-rgb), 0.04);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px; width: 100%;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.contact-form input, .contact-form select { height: calc(1.25em + 26px); }   /* 12px+12px padding + 2px border: identical single-line fields */
.contact-form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.contact-form input:hover, .contact-form textarea:hover, .contact-form select:hover { border-color: var(--line-accent); }
.contact-form input:focus-visible, .contact-form textarea:focus-visible, .contact-form select:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 1px; border-color: var(--accent); }
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.contact-form select:invalid { color: var(--muted); }                  /* placeholder state */
.contact-form select option { color: var(--text); background: var(--bg); }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }   /* honeypot */
.contact-form .form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.contact-form .btn { margin: 0; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { grid-column: 1 / -1; font-size: 0.9375rem; line-height: 1.5; padding: 12px 14px; border-left: 2px solid var(--line); color: var(--text); }
.form-status[data-kind="success"] { border-left-color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.form-status[data-kind="error"] { border-left-color: #C8553D; background: rgba(200, 85, 61, 0.10); }
.cta .cta__email { margin: 24px 0 0; }
