/* ============================================================
   Czerwonka Educational Consulting — Accessible Web Design
   design.czerwonkalegal.com

   Design tokens are unified with the TLD (czerwonkalegal.com):
   same ink / gold / parchment palette, Cormorant Garamond + DM
   Sans pairing, 6px button radius, film-grain overlay, laurel
   ornament, gold-foil headline, and a prefers-reduced-motion
   collapse on every animation.

   This is the firm's accessibility-first showcase, so the
   stylesheet itself holds the line on the rules we sell:
     • WCAG 2.2 AA target (AAA contrast where feasible).
     • Gold (#c9a84c) is ~1.9:1 on cream and FAILS as text — it is
       used ONLY on the ink/navy background (gold-on-ink ≈ 7.5:1,
       AAA) or as large decorative ornament. Reading-size links on
       light backgrounds are ink text with a gold underline.
     • Visible :focus-visible on every interactive element.
     • Every animation has an end-state fallback under reduced motion.

   Fonts are loaded via <link> in each page <head> (faster than a
   render-blocking @import here).
   ============================================================ */

:root {
  --ink: #1a1a2e;
  --ink-light: #2d2d44;
  --parchment: #f5f0e8;
  --parchment-dark: #e8e0d0;
  --gold: #c9a84c;
  --gold-light: #d4b96a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --cream: #faf8f4;
  --slate: #6b6b80;
  --warm-white: #fffdf9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

/* Film grain over the whole page so the parchment palette reads as
   paper, not flat hex. Fixed, non-interactive, 3.5% opacity. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── ACCESSIBILITY PRIMITIVES ─── */
/* Dual-layer focus ring so the indicator clears WCAG 2.2 non-text contrast
   (3:1) on BOTH light and dark backgrounds: the dark ink outline carries on
   light surfaces (ink-on-white ~16:1), the gold halo carries on the dark
   navy hero/sections (gold-light-on-ink ~8.9:1). A single gold outline was
   only ~2:1 on cream and failed. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--gold-light); border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; background: var(--gold); color: var(--ink);
  padding: 0.75rem 1.5rem; border-radius: 0 0 6px 6px; font-weight: 600;
  font-size: 0.875rem; z-index: 200; text-decoration: none; transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* Screen-reader-only text (visually hidden, still announced) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ─── LAYOUT HELPERS ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 3rem; }
.section-pad { padding: 7rem 0; }
.section-pad-sm { padding: 5rem 0; }
.bg-parchment { background: var(--parchment); }
.bg-ink { background: var(--ink); color: var(--cream); }

/* ─── NAV ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  transition: all 0.4s ease;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 1.25rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: padding 0.4s ease;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(26, 26, 46, 0.06); }
.site-nav.scrolled .nav-inner { padding-top: 0.9rem; padding-bottom: 0.9rem; }

.nav-logo {
  font-family: var(--serif); font-weight: 600;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.8rem;
}
/* Seal set in a navy medallion so the gold mark reads on the light nav
   (gold-on-cream is ~1.9:1; gold-on-navy is ~7:1). */
.nav-logo img {
  height: 52px; width: 52px; object-fit: contain;
  background: var(--ink); border-radius: 50%; padding: 3px;
  display: block; transition: height 0.4s ease, width 0.4s ease;
}
.site-nav.scrolled .nav-logo img { height: 46px; width: 46px; }
.nav-logo-text {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); line-height: 1.05; letter-spacing: 0.01em;
}
.nav-logo-text small {
  display: block; font-family: var(--sans); font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-top: 3px;
}

.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--slate);
  text-decoration: none; letter-spacing: 0.02em; transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--gold); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important; color: var(--cream) !important;
  padding: 0.6rem 1.5rem; border-radius: 6px;
  font-size: 0.8rem !important; font-weight: 600 !important;
  letter-spacing: 0.04em !important; text-transform: uppercase;
  transition: all 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ink-light) !important; color: var(--gold-light) !important; transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: all 0.3s; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold); color: var(--ink);
  padding: 1rem 2rem; border-radius: 6px;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.03em; text-decoration: none;
  transition: all 0.3s ease; border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%; transform: skewX(-20deg);
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}
.btn-primary:hover::before { animation: btnSheen 0.9s ease; }
@keyframes btnSheen { from { left: -60%; } to { left: 130%; } }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--cream);
  padding: 1rem 2rem; border-radius: 6px;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.03em; text-decoration: none;
  transition: all 0.3s ease; border: 1.5px solid rgba(245, 240, 232, 0.25);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

/* Dark-on-light secondary (for use on parchment/white sections) */
.btn-outline-ink {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: transparent; color: var(--ink);
  padding: 1rem 2rem; border-radius: 6px;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.03em; text-decoration: none;
  transition: all 0.3s ease; border: 1.5px solid rgba(26, 26, 46, 0.25);
}
.btn-outline-ink:hover { border-color: var(--ink); background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.btn svg, .btn-primary svg, .btn-secondary svg, .btn-outline-ink svg { width: 16px; height: 16px; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; background: var(--ink); color: var(--cream);
}
.hero-short { min-height: 58vh; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.3) 100%);
}

/* Line-art motif (a browser frame with a keyboard-focus ring) drawn as
   SVG strokes that draw themselves in on load, then rest as a gold
   watermark. Mirrors the TLD's scales-of-justice treatment. */
.hero-art {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  height: 64vh; width: auto; max-height: 560px;
  opacity: 0.28; pointer-events: none; z-index: 1;
}
.hero-art path, .hero-art rect, .hero-art circle, .hero-art line {
  stroke: var(--gold); stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: drawStroke 1.4s ease forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; padding: 8rem 3rem 6rem; width: 100%;
}
.hero-short .hero-content { padding: 9rem 3rem 4rem; }

.hero-eyebrow {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1.5px; background: var(--gold); }

.hero h1 {
  font-family: var(--serif); font-size: clamp(2.9rem, 6vw, 5.4rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.02em;
  max-width: 860px; margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-short h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--gold-light); }

/* Gold-foil text: metallic gradient clipped to the glyphs with a slow
   sheen drift. Falls back to the plain gold-light em color. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-foil {
    background: linear-gradient(100deg,
      var(--gold) 0%, #f0dfa8 22%, var(--gold) 45%,
      var(--gold-light) 70%, #f0dfa8 88%, var(--gold) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: foilSheen 8s linear infinite;
  }
}
@keyframes foilSheen { to { background-position: 250% center; } }

.hero-sub {
  font-size: 1.15rem; line-height: 1.75; color: rgba(245, 240, 232, 0.78);
  max-width: 580px; margin-bottom: 3rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.7s forwards;
}
.hero-actions {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s ease 0.9s forwards;
}

/* ─── SECTION HEADER / EYEBROW ─── */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header.left { text-align: left; }
.label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold);
  margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.75rem;
}
.label::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.section-header:not(.left) .label::after { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.section-header:not(.left) .label::before { display: none; }

.section-header h2 {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
.bg-ink .section-header h2 { color: var(--cream); }
.section-header h2 em { font-style: italic; color: var(--gold); }
.bg-ink .section-header h2 em { color: var(--gold-light); }
.section-header p { max-width: 620px; margin: 1.25rem auto 0; color: var(--slate); line-height: 1.75; }
.section-header.left p { margin-left: 0; }

/* Engraved laurel divider */
.ornament { display: block; margin: 1.4rem auto 0; width: 220px; height: 24px; color: var(--gold); opacity: 0.85; }
.section-header.left .ornament { margin-left: 0; }

/* ─── PROSE (rich text blocks: about, services detail, accessibility) ─── */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1.05rem; line-height: 1.85; color: var(--ink-light); margin-bottom: 1.5rem; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; color: var(--ink); margin: 2.5rem 0 1rem; }
.prose h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.5rem; font-size: 1.05rem; line-height: 1.85; color: var(--ink-light); }
.prose li { margin-bottom: 0.6rem; padding-left: 0.3rem; }
.prose strong { color: var(--ink); }
/* Links on light: ink text + gold underline (gold-as-text would fail contrast) */
.prose a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); }
.prose a:hover { color: var(--gold-light); background: var(--ink); }

/* ─── CARD GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Audience / who-we-serve cards (on light) */
.audience-card {
  padding: 2.5rem 2rem; border-radius: 12px; background: var(--parchment);
  border: 1px solid rgba(26, 26, 46, 0.05); transition: all 0.3s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(26, 26, 46, 0.08); border-color: rgba(201, 168, 76, 0.25); }
.audience-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.audience-icon svg { width: 24px; height: 24px; color: var(--gold); }
.audience-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--ink); }
.audience-card p { font-size: 0.95rem; line-height: 1.7; color: var(--slate); }

/* Offering / service cards (on ink) */
.offering-card {
  background: rgba(245, 240, 232, 0.04); border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 12px; padding: 2.5rem 2rem; transition: all 0.4s ease;
  position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block;
}
.offering-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0; transition: opacity 0.4s ease;
}
.offering-card:hover { background: rgba(245, 240, 232, 0.07); border-color: rgba(201, 168, 76, 0.2); transform: translateY(-4px); }
.offering-card:hover::before { opacity: 1; }
.offering-icon {
  width: 48px; height: 48px; border-radius: 10px; background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.offering-icon svg { width: 24px; height: 24px; color: var(--gold); }
.offering-card h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--cream); }
.offering-card p { font-size: 0.92rem; line-height: 1.7; color: rgba(245, 240, 232, 0.65); margin-bottom: 1.5rem; }
.offering-link {
  font-size: 0.8rem; font-weight: 600; color: var(--gold); text-transform: uppercase;
  letter-spacing: 0.1em; display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.3s ease;
}
.offering-card:hover .offering-link { gap: 0.8rem; }
.offering-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.offering-card:hover .offering-link svg { transform: translateX(2px); }

/* Approach items with oversized ghost numerals */
.approach-item {
  padding: 2.5rem; border-radius: 12px; background: var(--parchment);
  border: 1px solid rgba(26, 26, 46, 0.04); transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.approach-item:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26, 26, 46, 0.06); }
.approach-num {
  position: absolute; top: -1.6rem; right: 0.6rem;
  font-family: var(--serif); font-size: 8rem; font-weight: 600;
  color: var(--gold); opacity: 0.12; line-height: 1;
  pointer-events: none; user-select: none;
}
.approach-item h3 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
  margin-bottom: 0.75rem; color: var(--ink); position: relative; z-index: 1; padding-top: 1.5rem;
}
.approach-item p { font-size: 0.92rem; line-height: 1.75; color: var(--slate); position: relative; z-index: 1; }

/* ─── WORK / CASE STUDIES ─── */
.case-card {
  border-radius: 14px; overflow: hidden; background: var(--cream);
  border: 1px solid rgba(26, 26, 46, 0.06); transition: all 0.3s ease;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(26, 26, 46, 0.1); }
.case-thumb {
  aspect-ratio: 16 / 10; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245, 240, 232, 0.4); position: relative; overflow: hidden;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 2rem; }
.case-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); background: var(--gold-dim);
  padding: 0.3rem 0.7rem; border-radius: 100px; margin-bottom: 1rem;
}
.case-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); margin-bottom: 0.75rem; }
.case-card p { font-size: 0.95rem; line-height: 1.7; color: var(--slate); margin-bottom: 1rem; }
.case-metrics { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(26, 26, 46, 0.08); }
.case-metric .num { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1; }
.case-metric .lbl { font-size: 0.72rem; color: var(--slate); margin-top: 0.3rem; }

/* ─── ABOUT / HEADSHOT ─── */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 5rem; align-items: start; }
.headshot-container { position: relative; max-width: 320px; }
.headshot-frame { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 48px rgba(26, 26, 46, 0.12); }
.headshot-frame::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  background: linear-gradient(150deg, rgba(201, 168, 76, 0.22), transparent 45%);
  mix-blend-mode: overlay; pointer-events: none;
}
.headshot-frame img { display: block; width: 100%; height: auto; filter: contrast(1.02); }
.headshot-accent { position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px; border: 1.5px solid var(--gold-dim); border-radius: 16px; pointer-events: none; z-index: -1; }
.headshot-caption { max-width: 320px; margin: 1.5rem 0 0; font-family: var(--serif); font-size: 0.98rem; font-style: italic; line-height: 1.55; color: var(--slate); }

/* ─── PROCESS STEPS ─── */
.steps { counter-reset: step; display: grid; gap: 1.25rem; max-width: 760px; margin: 0 auto; }
.step { display: flex; gap: 1.5rem; padding: 1.75rem; background: var(--parchment); border-radius: 12px; border: 1px solid rgba(26,26,46,0.04); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold);
  flex: 0 0 auto; line-height: 1.2;
}
.step h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.step p { font-size: 0.95rem; line-height: 1.7; color: var(--slate); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; max-width: 1000px; margin: 0 auto; align-items: start; }
.contact-info h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; color: var(--ink); margin-bottom: 1rem; }
.contact-info > p { font-size: 1rem; line-height: 1.75; color: var(--slate); margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-detail-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.contact-detail-icon svg { width: 20px; height: 20px; color: var(--gold); }
.contact-detail strong { color: var(--ink); font-size: 0.95rem; }
.contact-detail a { color: var(--ink); border-bottom: 1.5px solid var(--gold); text-decoration: none; }
.contact-detail a:hover { color: var(--gold-light); background: var(--ink); }
.contact-detail span { font-size: 0.92rem; color: var(--slate); }

/* Form */
.contact-form { background: var(--parchment); border: 1px solid rgba(26,26,46,0.06); border-radius: 14px; padding: 2.5rem; }
.contact-form fieldset { border: none; margin: 0; padding: 0; }
.contact-form legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.45rem; letter-spacing: 0.01em; }
.form-group .req { color: var(--ink-light); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: var(--warm-white); border: 1.5px solid rgba(26,26,46,0.15);
  border-radius: 6px; padding: 0.7rem 0.85rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; box-shadow: 0 0 0 3px var(--gold-light); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-hint { font-size: 0.78rem; color: var(--slate); margin-top: 0.35rem; }

/* ─── CTA BANNER ─── */
.cta-banner {
  margin: 0 auto; max-width: var(--max-width); padding: 5rem 4rem;
  background: var(--ink); border-radius: 16px; text-align: center;
  color: var(--cream); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.25; margin-bottom: 1.25rem; }
.cta-banner h2 em { font-style: italic; color: var(--gold-light); }
.cta-banner p { font-size: 1.05rem; color: rgba(245, 240, 232, 0.7); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; }
.cta-banner .btn-primary { font-size: 0.9rem; padding: 1.1rem 2.5rem; }
.cta-wrap { padding: 0 3rem 6rem; }

/* ─── FOOTER ─── */
.site-footer { border-top: 1px solid rgba(26, 26, 46, 0.08); }
.footer-inner { padding: 4rem 3rem 3rem; max-width: var(--max-width); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { height: 56px; width: 56px; object-fit: contain; background: var(--ink); border-radius: 50%; padding: 5px; display: block; }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; color: var(--slate); max-width: 320px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink); margin-bottom: 1.25rem; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--slate); text-decoration: none; margin-bottom: 0.75rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(26, 26, 46, 0.06);
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--slate); padding-left: 3rem; padding-right: 3rem; padding-bottom: 0;
}

/* ─── 404 ─── */
.error-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 4rem; }
.error-code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); font-weight: 600; color: var(--gold); opacity: 0.85; line-height: 1; }
.error-page h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; color: var(--ink); margin: 1rem 0; }
.error-page p { color: var(--slate); max-width: 460px; margin: 0 auto 2rem; line-height: 1.7; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── REDUCED MOTION ─── */
/* Accessibility-first isn't just copy: every animation collapses to its
   end state for prefers-reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow, .hero h1, .hero-sub, .hero-actions { opacity: 1; }
  .hero-art path, .hero-art rect, .hero-art circle, .hero-art line { stroke-dashoffset: 0; animation: none; }
  .gold-foil { animation: none; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 968px) {
  .container, .nav-inner, .footer-inner, .footer-bottom { padding-left: 1.5rem; padding-right: 1.5rem; }
  .nav-inner { padding-top: 1rem; padding-bottom: 1rem; }
  .hero-art { display: none; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--warm-white);
    padding: 1.5rem; border-bottom: 1px solid rgba(26,26,46,0.08); gap: 1rem;
  }
  .section-pad { padding: 5rem 0; }
  .hero-content { padding: 7rem 1.5rem 4rem; }
  .hero-short .hero-content { padding: 8rem 1.5rem 3rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .headshot-container { max-width: 280px; margin: 0 auto; }
  .headshot-caption { max-width: 280px; margin: 1.25rem auto 0; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-banner { padding: 3.5rem 2rem; }
  .cta-wrap { padding: 0 1.5rem 4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
