/* =====================================================================
   Legal AI — stylesheet
   Light corporate/legal theme: navy + gold, serif display, sans body.
   ===================================================================== */

:root {
  --navy-900: #0a2540;
  --navy-800: #0f2f52;
  --navy-700: #1b3d6b;
  --navy-100: #e6ecf3;

  --gold-600: #a8883f;
  --gold-500: #c9a961;
  --gold-400: #d7bb7d;
  --gold-100: #f5ecd3;

  --ink-900: #0c1220;
  --ink-700: #27364d;
  --ink-500: #5b6b84;
  --ink-400: #7a8aa3;

  --paper: #ffffff;
  --paper-tint: #f7f6f1;
  --paper-alt: #f2efe6;
  --rule: #e4dfd1;

  --danger: #9b2c2c;
  --success-bg: #edf7ef;
  --success-ink: #1f5c2e;
  --success-rule: #bfe0c6;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05), 0 2px 8px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 6px 16px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.12);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;

  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* -------------------------------------------------- reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h1 em { font-style: italic; color: var(--gold-600); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy-800); font-family: var(--sans); }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
ul.plain, ol.plain { list-style: none; padding: 0; }
dl { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0 0 1em;
}

.lede { font-size: 1.2rem; color: var(--ink-700); max-width: 68ch; margin: 0 auto 1em; }
.lede-sm { color: var(--ink-700); max-width: 62ch; margin: 0 auto; }
.muted { color: var(--ink-500); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; color: #fff; }

/* -------------------------------------------------- header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  box-shadow: var(--shadow-sm);
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--navy-900);
}
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-500);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  border-radius: var(--radius);
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; }
.brand-tag  { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-600); }

.primary-nav ul {
  display: flex; gap: 6px; list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius);
  position: relative;
}
.primary-nav a:hover { color: var(--navy-900); background: var(--paper-tint); }
.primary-nav a.is-active { color: var(--navy-900); }
.primary-nav a.is-active:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}

.btn-nav {
  background: var(--navy-900);
  color: #fff !important;
  padding: 10px 18px !important;
}
.btn-nav:hover { background: var(--navy-800); color: #fff !important; }
.btn-nav.is-active { background: var(--gold-600); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy-900); margin: 4px auto;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------- buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
  text-align: center;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-block { width: 100%; }

/* -------------------------------------------------- flash messages */
.flash-wrap { padding: 16px 0 0; }
.flash {
  padding: 12px 16px;
  border-left: 3px solid var(--gold-500);
  background: var(--gold-100);
  color: var(--navy-900);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.flash-success { background: var(--success-bg); border-color: var(--success-rule); color: var(--success-ink); }

/* -------------------------------------------------- hero (home) */
.hero {
  position: relative;
  padding: 100px 0 80px;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 169, 97, 0.10), transparent 45%),
    radial-gradient(circle at 10% 85%, rgba(10, 37, 64, 0.05), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-tint) 100%);
  overflow: hidden;
}
.hero-inner { text-align: center; max-width: 880px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px;
  list-style: none; padding: 0; margin: 0;
  font-size: 0.9rem; color: var(--ink-500);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; background: var(--gold-500); border-radius: 50%; display: inline-block; }

.hero-rule {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80%; max-width: 1100px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--rule) 20%, var(--rule) 80%, transparent 100%);
}

/* -------------------------------------------------- page hero (subpages) */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-tint) 100%);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.page-hero .lede { margin: 0 auto; }

/* -------------------------------------------------- sections */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-tint); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 12px; }

.cta-band { background: var(--navy-900); color: #fff; padding: 72px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band h2::after {
  content: ""; display: block; margin: 18px auto 0; width: 48px; height: 2px; background: var(--gold-500);
}
.cta-band p { color: rgba(255, 255, 255, 0.75); max-width: 60ch; margin: 20px auto 32px; }
.cta-band .btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.cta-band .btn-primary:hover { background: var(--gold-400); color: var(--navy-900); }

/* -------------------------------------------------- card grid (home capabilities) */
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--paper);
  padding: 32px 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.card-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-600);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.card h3 { color: var(--navy-900); margin-bottom: 10px; }
.card p { color: var(--ink-700); font-size: 0.97rem; margin: 0; }

/* -------------------------------------------------- stats */
.stats {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.stat {
  padding: 28px 16px;
  border-top: 3px solid var(--gold-500);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-num, .stat-suffix {
  font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--navy-900);
  line-height: 1;
}
.stat-suffix { color: var(--gold-600); }
.stat p { margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-500); }

/* -------------------------------------------------- process (workflow) */
.process {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
}
.process li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.process li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 16px; right: 20px;
  font-family: var(--serif); font-size: 1rem; color: var(--gold-500); letter-spacing: 0.08em;
}
.process-step {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 600; color: var(--navy-900);
  margin-bottom: 8px;
}
.process p { margin: 0; color: var(--ink-700); font-size: 0.95rem; }

/* -------------------------------------------------- architecture diagram */
.arch-diagram {
  display: flex; align-items: stretch; justify-content: center; gap: 12px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.arch-col { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 140px; }
.arch-node {
  background: var(--navy-900); color: #fff;
  padding: 18px 20px; border-radius: var(--radius);
  font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.25;
  min-width: 140px;
}
.arch-node small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-top: 4px; letter-spacing: 0.03em; }
.arch-cloud { background: var(--gold-600); color: #fff; }
.arch-local { background: var(--navy-700); color: #fff; }
.arch-or { padding: 6px 0; font-size: 0.8rem; color: var(--ink-500); font-style: italic; }
.arch-split { gap: 8px; }
.arch-caption { font-size: 0.78rem; color: var(--ink-500); margin-top: 8px; letter-spacing: 0.04em; }
.arch-arrow { font-size: 1.4rem; color: var(--gold-500); align-self: center; }

/* -------------------------------------------------- tech grid */
.tech-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tech-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.tech-card h3 { color: var(--navy-900); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 12px; }
.tech-card p { color: var(--ink-700); font-size: 0.95rem; }
.tech-stack { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tech-stack li {
  background: var(--paper-alt); color: var(--navy-800);
  font-size: 0.75rem; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--rule);
}

/* -------------------------------------------------- axis list */
.axis-list { display: flex; flex-direction: column; gap: 24px; max-width: 820px; margin: 0 auto; }
.axis {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px;
  padding: 28px; background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
.axis-num {
  font-family: var(--serif); font-size: 2rem; color: var(--gold-600);
  line-height: 1;
}
.axis h3 { margin-bottom: 6px; }
.axis p { margin: 0; color: var(--ink-700); }

/* -------------------------------------------------- services */
.service-list { display: flex; flex-direction: column; gap: 20px; }
.service {
  display: grid; grid-template-columns: 1fr;
  padding: 36px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service:hover { transform: translateX(2px); box-shadow: var(--shadow-md); }
.service-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.service-num {
  font-family: var(--serif); font-size: 1rem; color: var(--gold-600); letter-spacing: 0.1em;
}
.service h2 { margin: 0; font-size: 1.5rem; }
.service > p { color: var(--ink-700); margin-bottom: 16px; }
.service-points { margin: 0; padding-left: 1.1em; color: var(--ink-700); }
.service-points li { margin-bottom: 6px; }

/* engage grid */
.engage-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.engage {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.engage.is-featured { border-color: var(--gold-500); box-shadow: var(--shadow-md); }
.engage .badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold-500); color: var(--navy-900);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.engage-price { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-600); margin: -6px 0 14px; }

/* -------------------------------------------------- about */
.about-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
}
.about-bio h2 { font-size: 2rem; margin-bottom: 4px; }
.about-bio .role {
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 24px;
}
.about-bio p { color: var(--ink-700); }
.about-card {
  background: var(--paper-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about-card h3 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 16px; }

.kv {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 10px;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.kv dt { color: var(--ink-500); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; color: var(--navy-900); font-weight: 500; }

/* pills */
.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 980px; margin: 0 auto; }
.pill {
  background: var(--paper); color: var(--navy-900);
  border: 1px solid var(--rule);
  padding: 10px 18px; border-radius: 100px; font-size: 0.88rem; font-weight: 500;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.pill:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* principles */
.principle-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.principle {
  padding: 28px; background: var(--paper-tint); border-left: 3px solid var(--gold-500);
  border-radius: var(--radius);
}
.principle h3 { margin-bottom: 8px; font-size: 1.15rem; }
.principle p { margin: 0; color: var(--ink-700); font-size: 0.95rem; }

/* -------------------------------------------------- contact */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1fr 1.3fr; align-items: start; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-info h3 { margin-top: 28px; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-800); }

.process-small { padding-left: 1.2em; color: var(--ink-700); }
.process-small li { margin-bottom: 6px; }

.fineprint { font-size: 0.82rem; color: var(--ink-500); margin-top: 20px; line-height: 1.6; }
.fineprint.centered { text-align: center; margin-top: 12px; }

.contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h2 { margin-bottom: 24px; font-size: 1.4rem; }

.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--navy-800); margin-bottom: 8px; letter-spacing: 0.02em;
}
.field .req { color: var(--danger); }
.field .optional { color: var(--ink-500); font-weight: 400; text-transform: none; letter-spacing: 0; }

.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans); font-size: 1rem;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(155, 44, 44, 0.12);
}
.field-error { color: var(--danger); font-size: 0.85rem; margin: 6px 0 0; }
.field-hint { font-size: 0.78rem; color: var(--ink-500); margin: 6px 0 0; text-align: right; }

/* honeypot - hidden from users */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  text-align: center; padding: 40px 20px;
}
.form-success h2 { color: var(--navy-900); margin-bottom: 12px; }
.form-success p { color: var(--ink-700); margin-bottom: 24px; }

/* -------------------------------------------------- footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 24px;
  margin-top: 0;
}
.site-footer h4 { color: #fff; margin-bottom: 16px; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--gold-500); }
.site-footer .muted { color: rgba(255, 255, 255, 0.5); }
.site-footer .brand-mark { background: var(--gold-500); color: var(--navy-900); }

.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand strong { color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.footer-grid ul.plain li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid p { font-size: 0.92rem; }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
}

/* -------------------------------------------------- reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------- responsive */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .arch-arrow { transform: rotate(90deg); }
  .arch-diagram { flex-direction: column; align-items: stretch; }
  .arch-col { min-width: auto; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .page-hero { padding: 56px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .primary-nav.is-open { max-height: 420px; }
  .primary-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 0; }
  .primary-nav a { padding: 14px 4px; font-size: 1rem; width: 100%; border-radius: 0; border-bottom: 1px solid var(--rule); }
  .primary-nav a:last-child { border-bottom: none; }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav a.is-active { color: var(--gold-600); }
  .btn-nav { margin-top: 8px; }

  .hero-meta { gap: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .service { padding: 28px 24px; }
  .contact-form-wrap { padding: 28px 22px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* -------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .cta-band { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
