/* ==========================================================================
   Virginia Renovations — site.css
   Design system: heritage-craft / quiet-luxury design-build studio.
   Palette derived from the company logo (forest greens + brass).
   Single stylesheet, no framework, no build step.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset, swap) ---------------------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-latin-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'InterVR';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --ink: #161A14;
  --forest: #22301D;
  --forest-2: #2F4029;
  --brass: #C0A062;
  --brass-lt: #D8C39A;
  --brass-ink: #6B5320;          /* accessible brass for light backgrounds (6.5:1 on cream) */
  --cream: #F6F3EC;
  --stone: #E2DDD2;
  --body: #3A3F38;
  --body-muted: #575D54;         /* 6.1:1 on cream */
  --on-dark: #F6F3EC;
  --on-dark-muted: #C9C3B6;      /* 10:1 on ink */
  --line-dark: rgba(246, 243, 236, 0.16);
  --line-light: rgba(22, 26, 20, 0.13);
  --warning: #964219;             /* urgent-need flag; 5.6:1 on cream */

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-ui: 'InterVR', system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;

  --step-kicker: 0.6875rem;
  --step-small: 0.8125rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.125rem, 0.4vw + 1.03rem, 1.3125rem);
  --step-h3: clamp(1.375rem, 0.6vw + 1.24rem, 1.75rem);
  --step-h2: clamp(2rem, 2.1vw + 1.5rem, 3.25rem);
  --step-h1: clamp(2.5rem, 3vw + 1.8rem, 4.25rem);
  --step-hero: clamp(2.75rem, 4.4vw + 1.4rem, 5.5rem);

  --gap: clamp(1rem, 2vw, 1.75rem);
  --sec-y: clamp(4rem, 7vw, 7.5rem);
  --shell: 1280px;
  --shell-narrow: 860px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dock-h: 0px;
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--font-ui);
  font-size: var(--step-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.005em; color: var(--forest); }
p { margin: 0 0 1em; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--brass-ink);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- Utilities ---------------------------------------------------- */
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--shell-narrow)); margin-inline: auto; }
@media (max-width: 480px) { .shell, .narrow { width: min(100% - 1.75rem, var(--shell)); } }
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(3rem, 4.5vw, 4.5rem); }
.dark { background: var(--cream); color: var(--body); }
.forest { background: var(--stone); color: var(--body); }
.stone { background: var(--stone); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brass); color: var(--ink); padding: 0.75rem 1.25rem;
  font-size: var(--step-small); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Kicker */
.kicker {
  font-family: var(--font-ui);
  font-size: var(--step-kicker);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-ink);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.kicker::before { content: ""; width: 2rem; height: 1px; background: currentColor; flex: none; opacity: 0.85; }
.kicker--center { justify-content: center; }

/* The house emphasis device: italic brass pivot */
.pivot { font-style: italic; color: var(--brass-ink); }

.lead { font-size: var(--step-lead); line-height: 1.6; color: var(--body); }
.muted { color: var(--body-muted); }
.rule { height: 1px; background: var(--line-light); border: 0; margin: 0; }

.h2 { font-size: var(--step-h2); }
.h3 { font-size: var(--step-h3); }
.section-head { max-width: 46ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head p { margin-top: 1.1rem; }

/* ---------- Buttons / links --------------------------------------------- */
.btn[hidden] { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 1.6rem;
  font-family: var(--font-ui); font-size: var(--step-small); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--brass-lt); }
.btn--ghost { border-color: var(--line-light); color: var(--forest); background: transparent; }
.btn--ghost:hover { border-color: var(--brass-ink); color: var(--brass-ink); }
/* over photography the outline needs a frosted plate to carry itself */
.hero .btn--ghost, .cta-band .btn--ghost, .quote-band .btn--ghost {
  border-color: rgba(22, 26, 20, 0.3); background: rgba(246, 243, 236, 0.62); color: var(--ink);
  backdrop-filter: blur(2px);
}
.hero .btn--ghost:hover, .cta-band .btn--ghost:hover, .quote-band .btn--ghost:hover {
  border-color: var(--brass-ink); color: var(--brass-ink); background: rgba(246, 243, 236, 0.88);
}
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.tlink {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-ui); font-size: var(--step-small); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--brass-ink); padding-block: 0.35rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}
.tlink:hover { background-size: 0% 1px; }
.tlink .arw { transition: transform 0.3s var(--ease); }
.tlink:hover .arw { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-light);
  color: var(--ink);
}
.site-header__bar { display: flex; align-items: center; gap: 1.25rem; min-height: 96px; }
.brand {
  display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--ink);
  margin-right: auto; flex-shrink: 0;
}
.brand img { width: 52px; height: 52px; }
.brand__name {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1; letter-spacing: 0.01em; white-space: nowrap;
}
.brand__sub {
  display: block; font-family: var(--font-ui); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-ink);
  margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px solid rgba(22, 26, 20, 0.16);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(1rem, 1.5vw, 1.6rem); }
.nav a {
  font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--ink); padding-block: 0.4rem;
  white-space: nowrap;
  background-image: linear-gradient(var(--brass-ink), var(--brass-ink));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.3s var(--ease), color 0.25s var(--ease);
}
.nav a:hover { background-size: 100% 1px; color: var(--brass-ink); }
.nav a[aria-current="page"] { color: var(--brass-ink); background-size: 100% 1px; }
.header-tel {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  font-family: var(--font-ui); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap;
}
.header-tel { min-height: 26px; }
.header-tel:hover { color: var(--brass-ink); }
.header-tel svg { flex: none; }
.header-cta { padding: 0.7rem 1.15rem; min-height: 44px; white-space: nowrap; }
/* 1301-1600px (common laptop widths): tighten nav + CTA so the header never overflows */
@media (max-width: 1600px) {
  .site-header__bar { gap: 1rem; }
  .nav { gap: clamp(0.85rem, 1.1vw, 1.25rem); }
  .nav a { font-size: 0.75rem; letter-spacing: 0.07em; }
  .header-cta { padding: 0.65rem 0.95rem; font-size: 0.75rem; }
}
@media (max-width: 1440px) { .brand__sub { display: none; } }
/* between 1080 and 1300 the full nav, phone number and CTA stop fitting: keep the
   phone link as an icon but leave its label in the accessibility tree */
@media (min-width: 1161px) and (max-width: 1300px) {
  .header-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-cta { padding: 0.65rem 0.9rem; font-size: 0.75rem; }
}
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: transparent; border: 1px solid var(--line-light);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1160px) {
  .nav-toggle { display: inline-flex; }
  .header-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav {
    position: fixed; inset: 76px 0 auto; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line-light);
    padding: 0.5rem 1.25rem 1.75rem;
    max-height: calc(100dvh - 76px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    box-shadow: 0 16px 30px rgba(22, 26, 20, 0.1);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 1rem 0; border-bottom: 1px solid var(--line-light); font-size: 0.9375rem; background-image: none; }
  .nav .btn { margin-top: 1.25rem; }
  .nav .nav-tel { color: var(--brass-ink); }
}
@media (max-width: 1160px) { .header-cta { display: none; } }
@media (min-width: 1161px) { .nav .btn, .nav .nav-tel { display: none; } }

/* ---------- Sticky dual-action dock ------------------------------------- */
.dock {
  position: fixed; z-index: 70; right: clamp(1rem, 2vw, 2rem); bottom: clamp(1rem, 2vw, 2rem);
  display: flex; gap: 0.6rem; align-items: stretch;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.dock[data-visible="true"] { opacity: 1; transform: none; pointer-events: auto; }
.dock a {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 52px;
  padding: 0 1.35rem; text-decoration: none;
  font-family: var(--font-ui); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(22, 26, 20, 0.28);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.dock__tel { background: var(--cream); color: var(--ink); border: 1px solid var(--line-light); }
.dock__tel:hover { background: var(--stone); color: var(--brass-ink); }
.dock__cta { background: var(--brass); color: var(--ink); }
.dock__cta:hover { background: var(--brass-lt); }
@media (max-width: 720px) {
  .dock { left: 0; right: 0; bottom: 0; gap: 0; }
  .dock a { flex: 1; justify-content: center; min-height: 60px; padding: 0 0.75rem; font-size: 0.75rem; box-shadow: none; letter-spacing: 0.1em; }
  .dock__tel { border: 0; border-top: 1px solid var(--line-light); border-right: 1px solid var(--line-light); }
  body:has(.dock) { padding-bottom: 60px; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero { position: relative; background: var(--cream); color: var(--ink); isolation: isolate; overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--home .hero__media img { animation: kb 26s ease-in-out infinite alternate; transform-origin: 60% 55%; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero--home .hero__media img { animation: none; } }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(246, 243, 236, 0.04) 0%, rgba(246, 243, 236, 0.02) 32%, rgba(246, 243, 236, 0.62) 100%),
    linear-gradient(95deg, rgba(246, 243, 236, 0.4) 0%, rgba(246, 243, 236, 0.06) 52%, rgba(246, 243, 236, 0) 100%);
}
.hero__inner { position: relative; padding-block: clamp(6rem, 13vh, 9rem) clamp(4.5rem, 10vh, 7rem); }
.hero--home .hero__inner { min-height: min(88svh, 860px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero h1 { font-size: var(--step-hero); line-height: 1.02; max-width: 20ch; color: var(--ink); }
.hero--page h1 { font-size: var(--step-h1); max-width: 26ch; }
.hero__sub { max-width: 52ch; font-size: var(--step-lead); color: var(--body-muted); margin-top: 1.5rem; }
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.hero__cue {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--body-muted); text-decoration: none;
}
.hero__cue .line { display: block; width: 1px; height: 34px; background: var(--brass-ink); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(0.4); opacity: 0.6; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__cue .line { animation: none; } }
.hero--page .hero__inner { min-height: min(52svh, 520px); display: flex; flex-direction: column; justify-content: flex-end; }
/* Page-hero photos (portfolio/services/process/about/etc.) are bright daylight
   shots, unlike the home hero's shadowed interior — a light cream wash reads as
   haze on them and doesn't leave enough contrast for dark ink text. Use a
   darker, photo-grounded overlay with light text instead, concentrated where
   the text sits so the photo still reads clearly elsewhere. */
.hero--page .hero__scrim {
  background:
    linear-gradient(180deg, rgba(22, 26, 20, 0.06) 0%, rgba(22, 26, 20, 0.14) 35%, rgba(22, 26, 20, 0.74) 100%),
    linear-gradient(95deg, rgba(22, 26, 20, 0.58) 0%, rgba(22, 26, 20, 0.2) 55%, rgba(22, 26, 20, 0) 100%);
}
.hero--page h1 { color: var(--on-dark); }
.hero--page .hero__sub { color: var(--on-dark-muted); }
.hero--page .kicker { color: var(--brass); }
.hero--page .pivot { color: var(--brass); }
.hero--page .crumbs { color: var(--on-dark-muted); }
.hero--page .crumbs a { color: var(--brass); }
.hero--page .muted { color: var(--on-dark-muted); }
.hero--page .tlink { color: var(--brass); }

/* Breadcrumbs */
.crumbs { font-size: var(--step-small); letter-spacing: 0.06em; color: var(--body-muted); margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 0.5rem; opacity: 0.5; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { text-decoration: none; color: var(--brass-ink); display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Credential bar --------------------------------------------- */
.credbar { background: var(--stone); color: var(--body); }
.credbar__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.credbar__item { padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem); border-right: 1px solid var(--line-light); }
.credbar__item:last-child { border-right: 0; }
.credbar__n { font-family: var(--font-display); font-size: clamp(2.25rem, 3.4vw, 3.25rem); line-height: 1; color: var(--brass-ink); display: block; }
.credbar__l { display: block; margin-top: 0.7rem; font-size: var(--step-small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--body-muted); }
@media (max-width: 860px) {
  .credbar__grid { grid-template-columns: repeat(2, 1fr); }
  .credbar__item:nth-child(2n) { border-right: 0; }
  .credbar__item:nth-child(n+3) { border-top: 1px solid var(--line-light); }
}

/* ---------- Service grid ----------------------------------------------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.svc {
  background: var(--cream); padding: clamp(1.5rem, 2.2vw, 2.1rem);
  display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: var(--body);
  transition: background-color 0.3s var(--ease);
  position: relative;
}
.svc:hover { background: #fff; }
.svc__num { font-family: var(--font-ui); font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.18em; color: var(--brass-ink); }
.svc__fig { overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.svc__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc:hover .svc__fig img { transform: scale(1.05); }
.svc h3 { font-size: var(--step-h3); }
.svc p { font-size: 0.9375rem; color: var(--body-muted); margin: 0; }
.svc__more { margin-top: auto; font-size: var(--step-small); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-ink); display: inline-flex; gap: 0.4rem; }
.svc:hover .svc__more .arw { transform: translateX(4px); }
.svc__more .arw { transition: transform 0.3s var(--ease); }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Project cards / portfolio ---------------------------------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.proj-grid--feature { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .proj-grid, .proj-grid--feature { grid-template-columns: 1fr; } }
.proj { display: block; text-decoration: none; color: inherit; }
.proj__fig { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 3 / 2; }
.proj--tall .proj__fig { aspect-ratio: 4 / 5; }
.proj__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.proj:hover .proj__fig img, .proj:focus-visible .proj__fig img { transform: scale(1.045); }
.proj__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 0.95rem; }
.proj__title { font-family: var(--font-display); font-size: 1.3125rem; color: var(--forest); }
.proj__tag { font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); white-space: nowrap; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: clamp(2rem, 3vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.chip {
  min-height: 44px; padding: 0.6rem 1.1rem; background: transparent;
  border: 1px solid var(--line-light); border-radius: 999px; cursor: pointer;
  font-size: var(--step-small); font-weight: 500; letter-spacing: 0.06em; color: var(--body);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.chip:hover { border-color: var(--brass-ink); color: var(--brass-ink); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.chip__n { margin-left: 0.4em; font-size: 0.8em; opacity: 0.65; font-variant-numeric: tabular-nums; }
.filter-count { font-size: var(--step-small); color: var(--body-muted); margin-bottom: 1.5rem; }
.proj[hidden] { display: none; }
.proj-anim { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.proj-anim.is-out { opacity: 0; transform: translateY(6px); }

/* ---------- Split / editorial rows ------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--tall img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split--rev .split__media { order: 0; } }
.badge-note {
  position: absolute; bottom: 0; left: 0; transform: translateY(35%);
  background: var(--brass); color: var(--ink); padding: 1rem 1.35rem;
  font-family: var(--font-display); font-size: 1.125rem; max-width: 16rem;
}
@media (max-width: 900px) { .badge-note { position: static; transform: none; margin-top: -1px; max-width: none; } }

/* ---------- Process steps ---------------------------------------------- */
.steps { counter-reset: s; display: grid; gap: 1px; background: var(--line-light); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.step { background: var(--stone); padding: clamp(1.75rem, 3vw, 2.5rem); display: grid; grid-template-columns: 5.5rem 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.step__n { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--brass-ink); }
.step h3 { font-size: var(--step-h3); margin-bottom: 0.7rem; }
.step p { color: var(--body-muted); margin: 0; max-width: 62ch; }
.step ul { margin-top: 0.9rem; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
.step li { font-size: var(--step-small); color: var(--body-muted); position: relative; padding-left: 0.9rem; }
.step li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; background: var(--brass-ink); }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ---------- Values / feature list -------------------------------------- */
.val-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.val { background: var(--cream); padding: clamp(1.5rem, 2.4vw, 2.25rem); }
.val h3 { font-size: 1.375rem; margin-bottom: 0.6rem; }
.val p { font-size: 0.9375rem; color: var(--body-muted); margin: 0; }
@media (max-width: 980px) { .val-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .val-grid { grid-template-columns: 1fr; } }

.checks { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.75rem; }
.checks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem; align-items: start; font-size: 1rem; }
.checks svg { margin-top: 0.35rem; color: var(--brass-ink); }

/* ---------- Testimonial ------------------------------------------------- */
.quote-band { position: relative; isolation: isolate; overflow: clip; background: var(--cream); color: var(--ink); }
.quote-band__bg { position: absolute; inset: 0; z-index: -2; }
.quote-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(246, 243, 236, 0.4), rgba(246, 243, 236, 0.82)); }
blockquote { margin: 0; }
.quote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.32;
  color: var(--ink); max-width: 34ch;
}
.quote-band .quote { max-width: 44ch; }
.quote__attr { margin-top: 1.75rem; font-size: var(--step-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); }
.placeholder-note {
  border: 1px dashed var(--line-light); padding: 1.25rem 1.35rem; font-size: 0.9375rem;
  color: var(--body-muted); background: rgba(22, 26, 20, 0.03);
}
.placeholder-note--light { border-color: var(--line-light); color: var(--body-muted); background: rgba(22, 26, 20, 0.03); }

/* ---------- Currently-recruiting trade list (sidebar card) --------------- */
.needs-card { border: 1px solid var(--line-light); background: var(--stone); padding: 1.25rem 1.35rem; }
.needs-card__title { font-family: var(--font-ui); font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 0.35rem; }
.needs-card__note { margin: 0 0 0.9rem; font-size: 0.8125rem; color: var(--body-muted); }
.needs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.need {
  display: grid; gap: 0.3rem;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--line-light);
}
.need:last-child { border-bottom: 0; }
.need__trade { font-size: 0.875rem; color: var(--ink); }
.need__status {
  justify-self: start; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap;
  color: var(--body-muted); border: 1px solid var(--line-light); background: var(--cream);
}
/* Toggle a trade to urgent by adding class="need--urgent" to its <li> and
   changing its status text (e.g. to "Urgently Hiring") — no other markup change needed. */
.need--urgent { padding-block: 0.7rem; }
.need--urgent .need__trade { font-weight: 600; }
.need--urgent .need__status { color: #fff; background: var(--warning); border-color: var(--warning); }

/* ---------- Areas ------------------------------------------------------- */
.area-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-light); margin-top: clamp(2rem, 3vw, 3rem); }
.area-list li { background: var(--cream); }
.area-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 1.35rem 1.35rem; text-decoration: none; min-height: 64px;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--forest);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.area-list a:hover { background: var(--forest); color: var(--cream); }
.area-list .arw { color: var(--brass-ink); }
.area-list a:hover .arw { color: var(--brass); }
@media (max-width: 900px) { .area-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .area-list { grid-template-columns: 1fr; } }

.city { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.5rem, 4vw, 3.75rem); border-top: 1px solid var(--line-light); align-items: start; }
.city:first-of-type { border-top: 0; }
.city h2 { font-size: clamp(1.75rem, 2.4vw, 2.5rem); }
.city__label { margin-top: 0.6rem; font-size: var(--step-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); }
@media (max-width: 860px) { .city { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- Journal ----------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 2.6vw, 2.5rem); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; gap: 0.9rem; text-decoration: none; color: inherit; }
.post__fig { overflow: hidden; background: var(--stone); aspect-ratio: 16 / 10; }
.post__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post:hover .post__fig img { transform: scale(1.05); }
.post__cat { font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); }
.post h3 { font-size: 1.375rem; line-height: 1.22; }
.post__note { font-size: var(--step-small); color: var(--body-muted); }

/* ---------- Area / scope cards ------------------------------------------ */
.area-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); margin-top: clamp(2rem, 3vw, 3rem); }
.area-card { background: var(--cream); padding: clamp(1.5rem, 2.2vw, 2.1rem); }
.stone .area-card { background: var(--stone); }
.area-card h3 { font-size: 1.1875rem; }
.area-card p { font-size: 0.9375rem; color: var(--body-muted); }
.area-card a { color: var(--forest); }
@media (max-width: 780px) { .area-grid { grid-template-columns: 1fr; } }

/* ---------- Process list (ordered numbered steps) ----------------------- */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-light); margin-top: clamp(2rem, 3vw, 3rem); }
.process-list > li { background: var(--stone); padding: clamp(1.5rem, 2.4vw, 2.1rem); border-left: 3px solid var(--brass-ink); }
.process-list > li h3 { color: var(--brass-ink); font-family: var(--font-ui); font-size: var(--step-small); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.process-list > li p { color: var(--body-muted); margin: 0; max-width: 68ch; }

/* ---------- FAQ accordion (native details/summary variant) -------------- */
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0; font-family: var(--font-display); font-size: var(--step-h3); color: var(--forest); min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brass-ink); }
.faq-item .chev { flex: none; transition: transform 0.3s var(--ease); color: var(--brass-ink); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding-bottom: 1.4rem; }
.faq-body p { margin: 0; max-width: 78ch; color: var(--body-muted); }

/* ---------- FAQ / accordion -------------------------------------------- */
.faq { border-top: 1px solid var(--line-light); margin-top: clamp(2rem, 3vw, 3rem); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.4rem 0; font-family: var(--font-display); font-size: var(--step-h3); color: var(--forest);
  min-height: 56px;
}
.faq__q:hover { color: var(--brass-ink); }
.faq__ico { flex: none; width: 18px; height: 18px; position: relative; }
.faq__ico::before, .faq__ico::after { content: ""; position: absolute; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.faq__ico::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq__ico::after { left: 8px; top: 0; width: 1.5px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__ico::after { transform: rotate(90deg); opacity: 0; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 1.4rem; margin: 0; max-width: 78ch; color: var(--body-muted); }
.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) { .faq__a { transition: none; } }

/* ---------- CTA band ---------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; overflow: clip; background: var(--cream); color: var(--on-dark); text-align: center; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 90% at 50% 50%, rgba(22, 26, 20, 0.78) 0%, rgba(22, 26, 20, 0.5) 55%, rgba(22, 26, 20, 0.16) 100%),
    linear-gradient(180deg, rgba(22, 26, 20, 0.32) 0%, rgba(22, 26, 20, 0.1) 30%, rgba(22, 26, 20, 0.1) 70%, rgba(22, 26, 20, 0.32) 100%);
}
.cta-band .kicker { justify-content: center; color: var(--brass); }
.cta-band h2 { font-size: var(--step-h2); max-width: 30ch; margin-inline: auto; color: var(--on-dark); }
.cta-band h2 .pivot { color: var(--brass); }
.cta-band p, .cta-band .lead { max-width: 56ch; margin-inline: auto; color: var(--on-dark-muted); }
.cta-band .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--cream); color: var(--body); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; border-top: 1px solid var(--line-light); }
.site-footer h2, .site-footer h3 { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { display: block; width: 100%; max-width: 320px; height: auto; }
.footer-brand p { margin-top: 1.1rem; color: var(--body-muted); font-size: 0.9375rem; max-width: 34ch; }
.footer-title { font-family: var(--font-ui); font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 1.15rem; }
.footer-list { list-style: none; display: grid; gap: 0.35rem; }
/* WCAG 2.2 target size: keep every footer link at least 24px tall */
.footer-list a { text-decoration: none; color: var(--body-muted); font-size: 0.9375rem; display: inline-flex; align-items: center; min-height: 26px; }
.footer-list a:hover { color: var(--brass-ink); text-decoration: underline; }
.footer-contact { display: grid; gap: 0.7rem; font-size: 0.9375rem; }
.footer-contact a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; min-height: 32px; }
.footer-contact a:hover { color: var(--brass-ink); }
.footer-bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: var(--step-small); color: var(--body-muted);
}
.footer-bottom a { color: var(--body-muted); display: inline-flex; align-items: center; min-height: 26px; }

/* ---------- Reveal animations ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
html.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Prose ------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.75rem, 2.2vw, 2.375rem); margin-top: 2.5rem; margin-bottom: 0.9rem; }
.prose h3 { font-size: var(--step-h3); margin-top: 2rem; margin-bottom: 0.6rem; }
.prose ul { list-style: none; display: grid; gap: 0.6rem; margin: 1.25rem 0; }
.prose ul li { position: relative; padding-left: 1.1rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 5px; height: 1px; background: var(--brass-ink); }

/* ---------- Definition rows (service detail) --------------------------- */
.svc-detail { border-top: 1px solid var(--line-light); padding-block: clamp(2.75rem, 5vw, 4.5rem); scroll-margin-top: 92px; }
.svc-detail__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.75rem, 4vw, 4rem); align-items: start; }
.svc-detail--rev .svc-detail__fig { order: 2; }
.svc-detail__fig img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
@media (max-width: 900px) { .svc-detail__grid { grid-template-columns: 1fr; } .svc-detail--rev .svc-detail__fig { order: 0; } }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.tags li { font-size: var(--step-small); letter-spacing: 0.04em; border: 1px solid var(--line-light); border-radius: 999px; padding: 0.35rem 0.85rem; color: var(--body-muted); }


/* ---------- Contact ----------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line-light); padding: clamp(1.5rem, 2.6vw, 2.25rem); display: grid; gap: 1.5rem; }
.contact-row { display: grid; gap: 0.35rem; }
.contact-row dt { font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-ink); }
.contact-row dd { margin: 0; font-family: var(--font-display); font-size: 1.375rem; color: var(--forest); }
.contact-row dd a { text-decoration: none; }
.contact-row dd a:hover { color: var(--brass-ink); text-decoration: underline; }
.map-placeholder {
  border: 1px dashed var(--line-light); background: var(--stone);
  aspect-ratio: 4 / 3; display: grid; place-content: center; text-align: center; gap: 0.75rem;
  padding: 2rem; color: var(--body-muted);
}
.map-placeholder strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); font-weight: 400; }

/* ---------- Form (request.html) ---------------------------------------- */
.form-shell { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 1000px) { .form-shell { grid-template-columns: 1fr; } }
.form-shell--with-right-aside { grid-template-columns: 300px 1fr 300px; gap: clamp(2rem, 4vw, 3rem); }
@media (max-width: 1300px) { .form-shell--with-right-aside { grid-template-columns: 300px 1fr; } .form-aside--right { grid-column: 1 / -1; } }
@media (max-width: 1000px) { .form-shell--with-right-aside { grid-template-columns: 1fr; } .form-aside--right { grid-column: auto; } }
.form-aside { position: sticky; top: 100px; display: grid; gap: 1.5rem; }
@media (max-width: 1000px) { .form-aside { position: static; } }
.form-aside--right { position: sticky; top: 100px; display: grid; gap: 1.5rem; }
@media (max-width: 1000px) { .form-aside--right { position: static; } }
.progress { list-style: none; display: grid; gap: 0; counter-reset: p; }
.progress li {
  display: grid; grid-template-columns: 2rem 1fr; gap: 0.85rem; align-items: center;
  padding: 0.7rem 0; font-size: 0.9375rem; color: var(--body-muted);
  border-bottom: 1px solid var(--line-light);
}
.progress li:last-child { border-bottom: 0; }
.progress .dot {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line-light);
  display: grid; place-content: center; font-size: 0.8125rem; font-weight: 600; color: var(--body-muted);
  background: transparent;
}
.progress li[aria-current="step"] { color: var(--forest); font-weight: 600; }
.progress li[aria-current="step"] .dot { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.progress li[data-done="true"] .dot { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.progress-meter { height: 3px; background: var(--stone); overflow: hidden; }
.progress-meter span { display: block; height: 100%; background: var(--brass); width: 20%; transition: width 0.4s var(--ease); }

.fstep { display: none; }
.fstep[data-active="true"] { display: block; animation: fadein 0.35s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fstep[data-active="true"] { animation: none; } }
.fstep > h2 { font-size: clamp(1.75rem, 2.4vw, 2.5rem); }
.fstep__intro { margin-top: 0.8rem; color: var(--body-muted); max-width: 60ch; }
fieldset { border: 0; margin: 0; padding: 0; }
legend, .flabel {
  font-family: var(--font-ui); font-size: var(--step-small); font-weight: 600;
  letter-spacing: 0.06em; color: var(--forest); padding: 0; margin-bottom: 0.5rem; display: block;
}
.field { margin-top: 1.75rem; }
.field__hint { font-size: var(--step-small); color: var(--body-muted); margin: 0.3rem 0 0.6rem; }
.req { color: var(--brass-ink); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--body);
  background: #FFFDF9; border: 1px solid #CFCABD; border-radius: var(--radius);
  padding: 0.8rem 0.9rem; min-height: 48px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233A3F38' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: #A9A392; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(34, 48, 29, 0.12); outline: none; }
/* keyboard users still get a hard outline on top of the soft focus ring */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 2px; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #8E2F1E; border-width: 2px; background: #FFF7F5; }
.counter { font-size: var(--step-small); color: var(--body-muted); margin-top: 0.4rem; }
.counter[data-ok="false"] { color: #8E2F1E; font-weight: 600; }
.err {
  display: none; margin-top: 0.45rem; font-size: var(--step-small); font-weight: 600; color: #8E2F1E;
  align-items: center; gap: 0.4rem;
}
.err[data-show="true"] { display: flex; }
.err::before { content: "!"; flex: none; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #8E2F1E; color: #fff; font-size: 0.75rem; display: grid; place-content: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem; }
.opt {
  display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.7rem; align-items: start;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 0.85rem 1rem; min-height: 48px; cursor: pointer; font-size: 0.9375rem;
  background: #FFFDF9; transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.opt:hover { border-color: var(--brass-ink); }
.opt input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0.22rem 0 0; accent-color: var(--forest); }
.opt:has(input:checked) { border-color: var(--forest); background: #F1EFE6; box-shadow: inset 3px 0 0 var(--brass); }
.opt:has(input:focus-visible) { outline: 2px solid var(--brass-ink); outline-offset: 2px; }
.form-nav { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-light); }
.form-nav .spacer { margin-left: auto; }
.filelist { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.7rem; font-size: var(--step-small); color: var(--body-muted); }
.filelist li::before { content: "\2713"; color: var(--brass-ink); margin-right: 0.45rem; }
input[type="file"] { border: 1px dashed #CFCABD; background: #FFFDF9; padding: 0.85rem; }

/* Review */
.summary { border: 1px solid var(--line-light); background: #FFFDF9; }
.summary__group { padding: 1.35rem clamp(1.1rem, 2vw, 1.75rem); border-bottom: 1px solid var(--line-light); }
.summary__group:last-child { border-bottom: 0; }
.summary h3 { font-family: var(--font-ui); font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 0.9rem; }
.summary dl { display: grid; grid-template-columns: minmax(150px, 0.6fr) 1.4fr; gap: 0.55rem 1.25rem; margin: 0; }
.summary dt { font-size: 0.9375rem; color: var(--body-muted); }
.summary dd { margin: 0; font-size: 0.9375rem; color: var(--body); }
@media (max-width: 560px) { .summary dl { grid-template-columns: 1fr; gap: 0.15rem; } .summary dd { margin-bottom: 0.65rem; } }
.assessment { border: 1px solid var(--line-light); background: var(--stone); color: var(--body); padding: clamp(1.35rem, 2.4vw, 2rem); margin-top: 1.75rem; }
.assessment h3 { font-family: var(--font-display); font-size: var(--step-h3); color: var(--ink); margin-bottom: 0.6rem; }
.assessment p { color: var(--body-muted); margin-bottom: 0.75rem; }
.assessment p:last-child { margin-bottom: 0; }
.assessment__band { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--step-kicker); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 0.9rem; }
.assessment__score { font-family: var(--font-display); font-size: 2rem; color: var(--brass-ink); }
.assessment ul { list-style: none; display: grid; gap: 0.4rem; margin-top: 0.9rem; }
.assessment ul li { padding-left: 1rem; position: relative; font-size: 0.9375rem; color: var(--body-muted); }
.assessment ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 1px; background: var(--brass-ink); }
.success-panel { border: 1px solid var(--line-light); background: #FFFDF9; padding: clamp(1.5rem, 3vw, 2.5rem); }
.success-panel h2 { font-size: clamp(1.75rem, 2.4vw, 2.375rem); margin-bottom: 0.8rem; }
.pill-note { display: inline-block; font-size: var(--step-small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-ink); font-weight: 600; margin-bottom: 0.8rem; }
.saved-note { font-size: var(--step-small); color: var(--body-muted); margin-top: 1rem; }
.saved-note[data-flash="true"] { color: var(--brass-ink); font-weight: 600; }

/* 404 */
.err-page { min-height: 68svh; display: grid; place-content: center; text-align: center; gap: 1.25rem; padding-block: 5rem; }
.err-page .big { font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 10rem); line-height: 0.9; color: var(--brass-ink); }

/* Print */
@media print {
  .site-header, .dock, .site-footer, .form-nav, .form-aside, .form-aside--right, .skip-link, .reveal-cue { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 1rem !important; }
  .hero { min-height: 0 !important; }
  .hero__media, .cta-band__bg, .quote-band__bg { display: none !important; }
  .hero, .hero__inner, .hero h1, .hero p { color: #000 !important; }
  img, figure, .card, .proj, .review { break-inside: avoid; page-break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; color: #000 !important; }
  .step, .fieldset { display: block !important; }
  .summary, .summary * { color: #000 !important; }
}
