/* Physeia Data Labs
   Type: Newsreader (display) + Source Sans 3 (text), as approved by the client.
   Spacing tokens follow a fixed scale; motion uses one custom curve. */

:root {
  --navy: #0e2a47;
  --navy-700: #163757;
  --navy-600: #1d4268;
  --navy-ink: #4a6585;
  --gold: #b08a3e;
  --gold-text: #87672a;      /* gold that passes contrast on paper */
  --gold-light: #d9bd7e;     /* gold that passes contrast on navy */
  --paper: #fbfaf7;
  --paper-2: #f3efe6;
  --white: #ffffff;
  --ink: #1b2430;
  --mut: #545f6c;
  --mut-dark: #b6c3d3;
  --line: #e3ddd0;
  --line-dark: rgba(255, 255, 255, .14);
  --danger: #a3352b;

  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; color: var(--navy); text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: 2.25rem; line-height: 2.5rem; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.01em; }
@media (min-width: 768px) { h2 { font-size: 3rem; line-height: 1.05; } }

.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; }
.skip { position: fixed; left: var(--s-200); top: var(--s-200); z-index: 100; padding: var(--s-75) var(--s-100); background: var(--navy); color: var(--white); border-radius: 8px; transform: translateY(-200%); transition: transform .4s var(--ease); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-200); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s-500); } }
.section { padding: var(--s-800) 0; }
@media (min-width: 768px) { .section { padding: var(--s-900) 0 calc(var(--s-900) + var(--s-200)); } }
.alt { background: var(--paper-2); }
.dark { background: var(--navy); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }

.eyebrow { display: inline-flex; align-items: center; gap: var(--s-75); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ""; width: var(--s-300); height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--gold-light); }
.head { max-width: 680px; margin-bottom: var(--s-600); }
.head h2 { margin-top: var(--s-200); }
.head p { margin-top: var(--s-200); color: var(--mut); font-size: 1.125rem; line-height: 1.75rem; }
.dark .head p { color: var(--mut-dark); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 20px; height: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-75);
  padding: var(--s-100) var(--s-300); border-radius: 9999px; border: 1px solid transparent;
  font: 600 1rem/1.5rem var(--sans); cursor: pointer; white-space: nowrap;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.btn .icon-sm { transition: transform .6s var(--ease); }
.btn:hover .icon-sm { transform: translateX(4px); }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-600); }
.btn-ghost { border-color: rgba(14, 42, 71, .2); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); background: rgba(14, 42, 71, .04); }
.btn-gold { background: var(--gold-light); color: var(--navy); }
.btn-gold:hover { background: #e6cf98; }
.btn-sm { padding: var(--s-75) var(--s-200); font-size: .875rem; line-height: 1.25rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Floating island navigation */
.nav {
  position: fixed; top: var(--s-200); left: 50%; z-index: 50; transform: translateX(-50%);
  width: calc(100% - var(--s-400)); max-width: max-content;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-300);
  border-radius: 9999px; border: 1px solid rgba(14, 42, 71, .08);
  background: rgba(251, 250, 247, .74); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 2px rgba(14, 42, 71, .04), 0 12px 32px -12px rgba(14, 42, 71, .18);
  transition: box-shadow .7s var(--ease), background-color .7s var(--ease);
}
@media (min-width: 768px) { .nav { top: var(--s-300); } }
@media (max-width: 959px) { .nav { width: calc(100% - var(--s-400)); max-width: none; justify-content: space-between; } }
.brand { display: inline-flex; align-items: center; gap: var(--s-100); color: var(--navy); }
.brand-mark { width: 28px; height: 28px; }
.brand-word { font: 500 1.25rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-word small { font: 600 .625rem/1 var(--sans); letter-spacing: .2em; color: var(--gold-text); margin-left: var(--s-75); vertical-align: 2px; }
.nav-links { display: none; gap: var(--s-50); font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--mut); }
.nav-links a { padding: var(--s-75) var(--s-100); border-radius: 9999px; transition: color .5s var(--ease), background-color .5s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--navy); background: rgba(14, 42, 71, .05); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav .btn-sm { display: none; }
@media (min-width: 960px) { .nav .btn-sm { display: inline-flex; } }

.burger { position: relative; width: 44px; height: 44px; border-radius: 9999px; border: 0; background: transparent; cursor: pointer; color: var(--navy); }
.burger span { position: absolute; left: 13px; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .7s var(--ease), top .7s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
@media (min-width: 960px) { .burger { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: center;
  padding: var(--s-900) var(--s-400) var(--s-600);
  background: rgba(251, 250, 247, .82); backdrop-filter: blur(40px) saturate(160%); -webkit-backdrop-filter: blur(40px) saturate(160%);
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-100); }
.menu li { overflow: hidden; }
.menu ul a { display: block; font: 500 2.25rem/2.5rem var(--serif); color: var(--navy); transform: translateY(48px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.menu.open ul a { transform: none; opacity: 1; }
.menu.open li:nth-child(2) a { transition-delay: .05s; } .menu.open li:nth-child(3) a { transition-delay: .1s; }
.menu.open li:nth-child(4) a { transition-delay: .15s; } .menu.open li:nth-child(5) a { transition-delay: .2s; }
.menu.open li:nth-child(6) a { transition-delay: .25s; }
.menu .btn { margin-top: var(--s-500); align-self: flex-start; }
@media (min-width: 960px) { .menu { display: none; } }

/* Hero */
.hero { padding: calc(var(--s-900) + var(--s-600)) 0 var(--s-800); }
@media (min-width: 768px) { .hero { padding-top: calc(var(--s-900) * 2); } }
.hero-grid { display: grid; gap: var(--s-600); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s-700); } }
.hero h1 {
  max-width: 680px; margin-top: var(--s-300);
  font-size: 3rem; line-height: 1; letter-spacing: -0.025em;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-ink) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) and (max-width: 1279px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero h1 { font-size: 4.5rem; } .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.hero h1 .w { display: inline-block; }
.hero h1.split { background: none; color: var(--navy); }
.hero h1 > span[aria-hidden] { position: relative; display: block; }
.hero .lede { max-width: 680px; margin-top: var(--s-300); font-size: 1.125rem; line-height: 1.75rem; color: var(--mut); }
@media (min-width: 768px) { .hero .lede { font-size: 1.25rem; line-height: 1.75rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-100); margin-top: var(--s-500); }
.proof { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); margin-top: var(--s-500); padding-top: var(--s-300); border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.25rem; color: var(--mut); }
.proof b { color: var(--navy); font-weight: 600; }

/* Signal plates (data graphics) */
.plate { position: relative; border-radius: 16px; background: var(--navy); color: var(--mut-dark); overflow: hidden; box-shadow: 0 1px 2px rgba(14, 42, 71, .08), 0 32px 64px -32px rgba(14, 42, 71, .45); }
.plate-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-100) var(--s-300); border-bottom: 1px solid var(--line-dark); font-size: .75rem; line-height: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.plate-bar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 639px) { .plate-bar .wide { display: none; } }
.plate-bar .live { display: inline-flex; white-space: nowrap; align-items: center; gap: var(--s-75); color: var(--gold-light); }
.plate-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--gold-light); }
.plate svg { width: 100%; height: auto; }
.plate .cursor { position: absolute; top: 41px; bottom: 0; width: 1px; background: rgba(217, 189, 126, .55); pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.plate .cursor span { position: absolute; top: var(--s-75); left: var(--s-75); padding: var(--s-25) var(--s-75); border-radius: 4px; background: rgba(14, 42, 71, .9); color: var(--gold-light); font-size: .75rem; line-height: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plate:hover .cursor { opacity: 1; }
@media (hover: none) { .plate .cursor { display: none; } }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: var(--s-500) var(--s-100); text-align: center; border-right: 1px solid var(--line-dark); }
.stat:last-child { border-right: 0; }
.stat .n { font: 500 2.25rem/1 var(--serif); letter-spacing: -0.02em; color: var(--white); font-variant-numeric: lining-nums; }
@media (min-width: 640px) { .stat .n { font-size: 3rem; } }
@media (min-width: 768px) { .stat { padding: var(--s-700) var(--s-300); } .stat .n { font-size: 4.5rem; } }
.stat .l { margin-top: var(--s-100); font-size: .75rem; line-height: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mut-dark); }

/* Network */
#network .stats { border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.net { display: grid; gap: var(--s-200); margin-top: var(--s-600); }
@media (min-width: 900px) { .net { grid-template-columns: repeat(3, 1fr); } }
.net-item { padding: var(--s-300); border: 1px solid var(--line-dark); border-radius: 12px; background: var(--navy-700); }
.net-item .icon { color: var(--gold-light); }
.net-item h3 { margin-top: var(--s-200); font-size: 1.25rem; line-height: 1.75rem; }
.net-item p { margin-top: var(--s-50); color: var(--mut-dark); font-size: 1rem; line-height: 1.5rem; }

/* Standards */
.std { display: grid; gap: var(--s-300); }
@media (min-width: 640px) { .std { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .std { grid-template-columns: repeat(4, 1fr); } }
.std-item { padding: var(--s-300); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.std-item .icon { color: var(--gold); }
.std-item b { display: block; margin: var(--s-200) 0 var(--s-75); font: 500 1.5rem/2rem var(--serif); color: var(--navy); }
.std-item p { color: var(--mut); font-size: 1rem; line-height: 1.5rem; }

/* Services */
.services { display: grid; gap: var(--s-300); }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc { display: flex; flex-direction: column; padding: var(--s-400); border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .7s var(--ease); }
.svc:hover { transform: translateY(-4px); border-color: #d6cdb9; box-shadow: 0 24px 48px -32px rgba(14, 42, 71, .35); }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-num { font: 500 1rem/1.5rem var(--serif); color: var(--gold-text); }
.svc .icon { color: var(--navy); }
.svc h3 { margin-top: var(--s-400); font-size: 1.875rem; line-height: 2.25rem; }
.svc > p { margin-top: var(--s-100); color: var(--mut); }
.svc ul { list-style: none; margin: var(--s-300) 0 0; padding: 0; }
.svc li { display: flex; gap: var(--s-100); padding: var(--s-100) 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.5rem; }
.svc li .icon-sm { color: var(--gold); margin-top: var(--s-25); }

/* Tagline reveal */
.tagline { padding: var(--s-900) 0; }
.tagline p { max-width: 900px; margin: 0 auto; text-align: center; font: 500 2.25rem/1.15 var(--serif); letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; }
@media (min-width: 768px) { .tagline p { font-size: 3.75rem; } }
.tagline .tw { transition: opacity .6s var(--ease); }

/* Annotation */
.anno { display: grid; gap: var(--s-600); align-items: start; }
@media (min-width: 1024px) { .anno { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-700); } }
@media (min-width: 1024px) { .anno > .plate { position: sticky; top: 120px; } }
.kinds { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .kinds { grid-template-columns: 1fr 1fr; column-gap: var(--s-500); } }
.kind { display: flex; gap: var(--s-200); padding: var(--s-300) 0; border-bottom: 1px solid var(--line); }
.kind .icon { color: var(--gold); margin-top: var(--s-50); }
.kind h3 { font-size: 1.25rem; line-height: 1.75rem; }
.kind p { margin-top: var(--s-50); color: var(--mut); font-size: 1rem; line-height: 1.5rem; }
.readers { display: flex; flex-wrap: wrap; gap: var(--s-75); margin-top: var(--s-400); }
.readers .label { width: 100%; margin-bottom: var(--s-50); }
.chip { padding: var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: 9999px; background: var(--white); font-size: .875rem; line-height: 1.25rem; color: var(--navy); }

/* Data types */
.types { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .types { grid-template-columns: repeat(4, 1fr); } }
.type { padding: var(--s-300); border-radius: 12px; border: 1px solid var(--line); background: var(--paper); transition: border-color .6s var(--ease), background-color .6s var(--ease); }
.type:hover { border-color: #d6cdb9; background: var(--white); }
.type .icon { color: var(--navy); }
.type h3 { margin-top: var(--s-200); font-size: 1.25rem; line-height: 1.75rem; }
.type p { margin-top: var(--s-50); color: var(--mut); font-size: 1rem; line-height: 1.5rem; }
.type.more { background: var(--navy); border-color: var(--navy); }
.type.more h3 { color: var(--white); } .type.more p { color: var(--mut-dark); } .type.more .icon { color: var(--gold-light); }

/* Programs */
.prog { display: grid; gap: var(--s-200); padding: var(--s-500) 0; border-top: 1px solid var(--line); }
.prog:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .prog { grid-template-columns: 220px minmax(0, 1fr) 260px; gap: var(--s-600); align-items: start; } }
.prog .meta { font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.prog .meta span { display: block; margin-top: var(--s-75); font-size: .875rem; line-height: 1.25rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mut); }
.prog h3 { font-size: 1.875rem; line-height: 2.25rem; }
.prog p { margin-top: var(--s-100); color: var(--mut); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-75); padding: 0; margin: var(--s-200) 0 0; }
.facts li { padding: var(--s-50) var(--s-100); border: 1px solid var(--line); border-radius: 9999px; background: var(--white); font-size: .875rem; line-height: 1.25rem; color: var(--mut); }
.facts b { color: var(--navy); font-weight: 600; }
.prog .fig b { display: block; font: 500 3rem/1 var(--serif); letter-spacing: -0.02em; color: var(--navy); white-space: nowrap; }
.prog .fig span { display: block; margin-top: var(--s-75); font-size: .875rem; line-height: 1.25rem; color: var(--mut); }
@media (min-width: 900px) { .prog .fig { text-align: right; } }

/* Steps */
.steps { display: grid; gap: var(--s-300); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: var(--s-400); border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 1rem/1.5rem var(--serif); color: var(--gold-text); }
.step h3 { margin-top: var(--s-300); font-size: 1.5rem; line-height: 2rem; }
.step p { margin-top: var(--s-100); color: var(--mut); font-size: 1rem; line-height: 1.5rem; }
.step ul { list-style: none; padding: 0; margin: var(--s-200) 0 0; display: grid; gap: var(--s-75); font-size: .875rem; line-height: 1.25rem; color: var(--ink); }
.step li::before { content: ""; display: inline-block; width: 12px; height: 1px; margin-right: var(--s-75); vertical-align: 4px; background: var(--gold); }

/* Compliance */
.comp { display: grid; gap: var(--s-200); }
@media (min-width: 768px) { .comp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .comp { grid-template-columns: repeat(3, 1fr); } }
.comp-item { padding: var(--s-300); border: 1px solid var(--line-dark); border-radius: 12px; background: var(--navy-700); }
.comp-item .icon { color: var(--gold-light); }
.comp-item h3 { margin-top: var(--s-200); font-size: 1.25rem; line-height: 1.75rem; }
.comp-item p { margin-top: var(--s-50); color: var(--mut-dark); font-size: 1rem; line-height: 1.5rem; }

/* Who */
.who { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-100); }
.who span { padding: var(--s-100) var(--s-300); border: 1px solid var(--line); border-radius: 9999px; background: var(--white); font: 500 1.25rem/1.75rem var(--serif); color: var(--navy); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-300); padding: var(--s-300) 0; cursor: pointer; list-style: none; font: 500 1.25rem/1.75rem var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--gold); transition: transform .7s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s-300); max-width: 680px; color: var(--mut); }

/* Contact */
.contact { display: grid; gap: var(--s-600); }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-700); } }
.contact h2 { margin-top: var(--s-200); font-size: 2.25rem; line-height: 2.5rem; }
@media (min-width: 768px) { .contact h2 { font-size: 3.75rem; line-height: 1; } }
.contact .lede { margin-top: var(--s-300); color: var(--mut-dark); font-size: 1.125rem; line-height: 1.75rem; }
.assure { list-style: none; padding: 0; margin: var(--s-500) 0 0; display: grid; gap: var(--s-200); }
.assure li { display: flex; gap: var(--s-100); color: var(--white); }
.assure .icon { color: var(--gold-light); }
.contact-alt { margin-top: var(--s-400); color: var(--mut-dark); font-size: 1rem; line-height: 1.5rem; }
.contact-alt a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-alt a:hover { color: var(--gold-light); }
.form { display: grid; gap: var(--s-200); padding: var(--s-400); border-radius: 16px; background: var(--paper); color: var(--ink); }
@media (max-width: 639px) { .form { padding: var(--s-300); } }
.row { display: grid; gap: var(--s-200); }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-75); }
.field label { font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--navy); }
.field label em { font-style: normal; font-weight: 400; color: var(--mut); }
.field input, .field select, .field textarea {
  width: 100%; padding: var(--s-100); border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  font: 400 1rem/1.5rem var(--sans); color: var(--ink);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc5ae; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(14, 42, 71, .12); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { display: none; font-size: .875rem; line-height: 1.25rem; color: var(--danger); }
.field .err.show { display: block; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-200); margin-top: var(--s-75); }
.form-note { font-size: .875rem; line-height: 1.25rem; color: var(--mut); }
.form-status { font-size: .875rem; line-height: 1.25rem; }
.form-status.error { color: var(--danger); }
.form[hidden] { display: none; }
.form.leaving { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.success { display: none; padding: var(--s-400); border-radius: 16px; background: var(--paper); color: var(--ink); }
.success.show { display: block; animation: success-in .5s var(--ease) both; }
@keyframes success-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .success.show { animation: none; } .form.leaving { transition: none; } }
.success:focus { outline: none; }
.success .icon { color: var(--gold); width: 32px; height: 32px; }
.success h3 { margin-top: var(--s-200); color: var(--navy); }
.success p { margin-top: var(--s-75); color: var(--mut); }

/* Footer */
.footer { padding: var(--s-700) 0 var(--s-500); background: var(--paper); }
.foot-top { display: grid; gap: var(--s-400); padding-bottom: var(--s-500); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-top p { margin-top: var(--s-200); max-width: 360px; color: var(--mut); font-size: 1rem; line-height: 1.5rem; }
.foot-col h4 { margin: 0 0 var(--s-200); font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.foot-col a { display: block; padding: var(--s-50) 0; color: var(--mut); font-size: 1rem; line-height: 1.5rem; transition: color .5s var(--ease); }
.foot-col a:hover { color: var(--navy); }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-200); padding-top: var(--s-300); font-size: .875rem; line-height: 1.25rem; color: var(--mut); }
.foot-bot a { text-decoration: underline; text-underline-offset: 3px; }

/* Simple pages */
.page { padding: calc(var(--s-900) * 2) 0 var(--s-900); }
.page article { max-width: 720px; }
.page h1 { font-size: 3rem; line-height: 1; letter-spacing: -0.02em; margin-top: var(--s-200); }
.page h2 { font-size: 1.5rem; line-height: 2rem; margin-top: var(--s-500); }
.page p, .page li { margin-top: var(--s-100); color: var(--ink); }
.page .updated { margin-top: var(--s-200); color: var(--mut); font-size: .875rem; }
.page a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Motion: initial states only apply once JS has confirmed motion is allowed */
.motion [data-reveal] { opacity: 0; transform: translateY(64px); filter: blur(12px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .menu { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
