/* Emerald Ink Notary — one-page site
   Palette: deep emerald, forest, ivory paper, ink, brass
   Type: Fraunces (display) + Source Sans 3 (body)
*/

:root {
  --ink: #1a1814;
  --ink-soft: #3f3c36;
  --ink-muted: #6a655c;
  --ivory: #f7f3eb;
  --ivory-deep: #ebe4d6;
  --paper: #fbf8f2;
  --cream: #e8dfcf;
  --emerald: #0c3d2e;
  --emerald-mid: #165a44;
  --emerald-deep: #082920;
  --emerald-bright: #1e6b52;
  --leaf: #2a7a5c;
  --brass: #c4a36a;
  --brass-deep: #8e6b35;
  --brass-light: #e0c892;
  --error: #8b3a2a;
  --success: #165a44;
  --header-h: 5.75rem;
  --radius: 1rem;
  --shadow: 0 18px 40px -24px rgba(8, 41, 32, 0.45);
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Calibri, sans-serif;
  --measure: 38rem;
  --content: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 47.99rem) {
  :root { --header-h: 4.9rem; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(30, 107, 82, 0.06), transparent 50%),
    var(--ivory);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Subtle paper grain, SVG data-URI so it loads instantly */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .wordmark-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--emerald-deep);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.35rem); font-weight: 560; line-height: 1.05; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.4rem; margin: 0 0 0.4rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--emerald-mid);
  text-decoration-color: rgba(196, 163, 106, 0.7);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover { color: var(--emerald-deep); text-decoration-color: var(--brass-deep); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brass-deep);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 500;
  background: var(--ivory);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 0 0 0.4rem 0.4rem;
}

.skip-link:focus { top: 0; }

.wrap {
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 40rem) {
  .wrap { width: min(var(--content), calc(100% - 1.5rem)); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--ivory) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: color-mix(in srgb, var(--emerald) 14%, var(--cream));
  box-shadow: 0 8px 24px -18px rgba(8, 41, 32, 0.5);
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:focus-visible { outline-offset: 4px; border-radius: 0.4rem; }

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.18rem;
}

.wordmark-name {
  font-size: 1.05rem;
  font-weight: 560;
  color: var(--emerald);
  letter-spacing: -0.02em;
}

.wordmark-meta {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* Larger header brand */
.site-header .brand { gap: 0.9rem; }
.site-header .brand-mark { width: 3.75rem; height: 3.75rem; }
.site-header .wordmark { gap: 0.3rem; }
.site-header .wordmark-name { font-size: 1.6rem; }
.site-header .wordmark-meta { font-size: 0.82rem; letter-spacing: 0.2em; }
@media (max-width: 600px) {
  .site-header .brand-mark { width: 3.1rem; height: 3.1rem; }
  .site-header .wordmark-name { font-size: 1.35rem; }
  .site-header .wordmark-meta { font-size: 0.72rem; }
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--emerald) 20%, transparent);
  background: transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--emerald);
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 0.85rem;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle-bars span { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav ul {
  display: flex;
  gap: 0.2rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.2rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--emerald); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav .btn-header,
.site-nav .btn-header:hover,
.site-nav .btn-header:focus-visible {
  color: var(--ivory);
  text-decoration: none;
}

.site-nav .btn-header::after { display: none; }

/* ---------- Buttons ---------- */
.btn[hidden] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ivory);
  color: var(--emerald-deep);
  border-color: var(--ivory);
}

.btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--emerald-deep); }

.btn-on-light {
  background: var(--emerald);
  color: var(--ivory);
  border-color: var(--emerald);
}

.btn-on-light:hover { background: var(--emerald-deep); border-color: var(--emerald-deep); color: var(--ivory); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: color-mix(in srgb, var(--ivory) 45%, transparent);
}

.btn-ghost:hover { border-color: var(--brass); color: var(--brass-light); }

.btn-header {
  background: var(--emerald);
  color: var(--ivory);
  border-color: var(--emerald);
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

.btn-header:hover { background: var(--emerald-deep); color: var(--ivory); }

.btn-outline {
  background: transparent;
  color: var(--emerald-deep);
  border-color: color-mix(in srgb, var(--emerald) 35%, var(--cream));
}

.btn-outline:hover {
  border-color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 6%, var(--ivory));
  color: var(--emerald-deep);
}


/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(196, 163, 106, 0.12), transparent 50%),
    linear-gradient(165deg, #0e4636 0%, var(--emerald) 42%, var(--emerald-deep) 100%);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* faint concentric seal */
  content: "";
  position: absolute;
  right: -8vw;
  top: 50%;
  width: min(42rem, 70vw);
  height: min(42rem, 70vw);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(196, 163, 106, 0.22);
  box-shadow:
    inset 0 0 0 18px transparent,
    0 0 0 28px rgba(196, 163, 106, 0.06),
    0 0 0 29px rgba(196, 163, 106, 0.16);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.75fr);
  gap: 2rem 3rem;
  align-items: center;
  padding: 4.5rem 0 4.75rem;
  min-height: min(38rem, calc(100vh - var(--header-h)));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--brass);
}

.hero h1 { color: var(--ivory); margin: 0 0 1.25rem; max-width: 14ch; }

.hero .lede {
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ivory) 86%, #c4a36a);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-aside {
  justify-self: end;
  position: relative;
  width: min(22rem, 100%);
}

.hero-seal {
  width: 100%;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.28));
}

.hero-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-light);
}

/* ---------- Shared section chrome ---------- */
.section { padding: 4.75rem 0; }

.section-kicker {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 0.55rem;
}

.section-intro {
  max-width: 40rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1rem 3rem;
  margin-bottom: 2.5rem;
  align-items: end;
}

/* ---------- Services ---------- */
.services { background: var(--paper); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.services-note {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42rem;
}

.card {
  background: var(--ivory);
  border: 1px solid color-mix(in srgb, var(--emerald) 10%, var(--cream));
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--brass-deep);
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}

.card p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  pointer-events: none;
}

.step {
  position: relative;
  padding-top: 0.2rem;
}

.step-index {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ivory);
  border: 1px solid var(--brass);
  color: var(--emerald);
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.step p { color: var(--ink-soft); }

/* ---------- Area ---------- */
.area {
  background: var(--emerald-deep);
  color: var(--ivory);
}

.area h2, .area .section-kicker { color: var(--brass-light); }
.area h2 { color: var(--ivory); }
.area .section-intro { color: color-mix(in srgb, var(--ivory) 80%, #c4a36a); }

.area-places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.area-places li {
  border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
  color: var(--ivory);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
}

.portrait {
  margin: 0;
  position: relative;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 1.2rem 1.2rem 2.4rem 1.2rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brass) 50%, var(--cream));
  background: var(--emerald-deep);
  position: relative;
  box-shadow: var(--shadow);
}

.portrait-frame img,
.portrait-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  color: var(--ink-soft);
  padding: 0.7rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.portrait-note strong {
  display: block;
  color: var(--emerald);
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.about-tagline {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--brass-deep);
  margin: 0.45rem 0 1.35rem;
}

.about-copy h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.about-copy p { color: var(--ink-soft); }
.about-copy p + p { margin-top: 1rem; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.place-line {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--emerald) 12%, var(--cream));
  align-items: baseline;
}

.place-line dt {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.placeholder-value {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--cream) 70%, white);
  border: 1px dashed color-mix(in srgb, var(--brass-deep) 45%, transparent);
  padding: 0.1rem 0.55rem;
  border-radius: 0.35rem;
}

.contact-note {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.contact-email {
  color: var(--emerald-deep);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--brass) 80%, transparent);
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--emerald);
  text-decoration-color: var(--brass-deep);
}


.form {
  background: var(--ivory);
  border: 1px solid color-mix(in srgb, var(--emerald) 10%, var(--cream));
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }

.field label {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--emerald-deep);
}

.req { color: var(--brass-deep); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--emerald) 16%, var(--cream));
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 7rem; resize: vertical; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: color-mix(in srgb, var(--emerald) 35%, var(--cream)); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--emerald-mid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 25%, transparent);
}

.form-help {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.form-status {
  display: none;
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--emerald) 8%, var(--ivory));
  border: 1px solid color-mix(in srgb, var(--emerald) 20%, var(--cream));
  color: var(--emerald-deep);
}

.form-status.is-visible { display: block; }

.form-status h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

.draft-box {
  margin-top: 0.8rem;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--paper);
  border-radius: 0.5rem;
  padding: 0.8rem;
  max-height: 14rem;
  overflow: auto;
  color: var(--ink-soft);
}

.form-error {
  display: none;
  color: var(--error);
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

.form-error.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald-deep);
  color: color-mix(in srgb, var(--ivory) 78%, #c4a36a);
  padding: 2.5rem 0 2.2rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ivory);
  text-decoration: none;
}

.footer-brand .brand-mark { width: 2.1rem; height: 2.1rem; }

.footer-legal {
  max-width: 46rem;
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ivory) 78%, #c4a36a);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--brass) 28%, transparent);
  font-size: 0.88rem;
}

.footer-email {
  color: var(--ivory);
  text-decoration-color: color-mix(in srgb, var(--brass) 70%, transparent);
  text-underline-offset: 0.18em;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--brass-light);
  text-decoration-color: var(--brass-light);
}


/* ---------- Motion ---------- */
@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;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(0.7rem);
    animation: rise 0.8s var(--ease) forwards;
  }
  .hero .reveal { animation-delay: 0.05s; }
  .hero .reveal-delay { animation-delay: 0.18s; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 68rem) {
  .hero-inner { grid-template-columns: 1fr minmax(14rem, 18rem); }
}

@media (max-width: 58rem) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--cream);
    padding: 0.75rem 1.25rem 2rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    box-shadow: 0 16px 30px -20px rgba(8, 41, 32, 0.45);
    min-height: calc(100dvh - var(--header-h));
  }

  .site-nav.is-open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.2rem;
    font-size: 1.1rem;
  }

  .site-nav .btn-header {
    width: 100%;
    margin-top: 0.35rem;
  }

  .hero-inner,
  .split-head,
  .about-grid,
  .contact-grid,
  .form-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before { display: none; }

  .hero-inner {
    padding: 3rem 0 3.25rem;
    min-height: 0;
  }

  .hero h1 { max-width: 16ch; }

  .hero-aside {
    justify-self: center;
    width: min(11.5rem, 52%);
    order: -1;
    margin-bottom: 0.15rem;
  }

  .hero-inner { padding-top: 1.75rem; }

  .hero-caption { display: none; }

  .split-head { margin-bottom: 1.75rem; }
}

@media (max-width: 64rem) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 39.99rem) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .section { padding: 3.4rem 0; }
  .card { padding: 1.25rem; }
  .form { padding: 1.15rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: auto; }
}

/* High-contrast / forced colors */
@media (forced-colors: active) {
  .btn, .card, .form, .area-places li, .nav-toggle {
    border: 1px solid ButtonText;
  }
}

.contact-lead { margin-bottom: 1.25rem; }
.footer-name { color: var(--ivory); }

.footer-credentials {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #c9a66b;
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
