/* ==========================================================================
   GlassWerx Design
   One stylesheet. Adjust the theme in the :root block below.
   Palette extracted from the GlassWerx icon (lead, painted leaf, blue glass).
   ========================================================================== */

:root {
  /* Color: from the icon */
  --lead: #1C170D;           /* lead came, darkest */
  --ink: #2B2619;            /* body text on paper (13.7:1) */
  --glass-night: #1E2741;    /* darkest blue glass */
  --glass-deep: #384776;     /* primary action, links (8.2:1 on paper) */
  --glass: #5570B5;          /* decorative + large type only (4.4:1) */
  --glass-sky: #B2C5EC;      /* lit glass, accents on dark */
  --silver-stain: #CAC180;   /* yellow stain highlight */
  --grisaille: #797452;      /* painted shading, decorative rules */
  --grisaille-deep: #5C5738; /* small labels (6.6:1 on paper) */
  --paint: #EFECCC;          /* painted cream, alternate sections */
  --paper: #F7F4E8;          /* page background */
  --linen: #EFE9D6;          /* warm neutral, alternate section background */
  --paper-bright: #FCFAF2;   /* cards, form fields */

  /* Color: roles */
  --bg: var(--paper);
  --text: var(--ink);
  --text-soft: #4A4431;
  --heading: var(--lead);
  --link: var(--glass-deep);
  --link-hover: var(--glass-night);
  --rule: rgba(28, 23, 13, 0.18);
  --rule-strong: rgba(28, 23, 13, 0.55);
  --focus: var(--glass-deep);
  --error: #8E2A1E;
  --success: #3E5A2B;

  /* Type */
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Hanken Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-h3: clamp(1.3rem, 1.2rem + 0.45vw, 1.6rem);
  --fs-h2: clamp(2rem, 1.5rem + 1.9vw, 3rem);
  --fs-display: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem);
  --lh-body: 1.65;
  --lh-tight: 1.08;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-section: clamp(4rem, 3rem + 4vw, 7.5rem);
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 38rem;
  --container: 1180px;

  /* Shape and depth */
  --radius: 3px;
  --radius-card: 6px;
  --shadow-soft: 0 1px 2px rgba(28, 23, 13, 0.06), 0 8px 24px -12px rgba(28, 23, 13, 0.22);
  --shadow-lift: 0 2px 4px rgba(28, 23, 13, 0.08), 0 18px 40px -18px rgba(28, 23, 13, 0.35);
  --came: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset and base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint paper grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0 0.05 0 0 0 1.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: -0.015em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: 1.125rem; font-family: var(--font-sans); font-weight: 600; }

h1 em, h2 em { font-style: italic; color: var(--glass-deep); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

strong { font-weight: 600; color: var(--heading); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--glass-sky); color: var(--lead); }

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--lead);
  color: var(--paper);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-4); color: var(--paper); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grisaille-deep);
  margin-bottom: var(--space-4);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--text-soft);
  max-width: var(--measure);
}

.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* Status badges for pre-beta features */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.5em 0.75em 0.45em;
  border-radius: 2px;
  white-space: nowrap;
  vertical-align: middle;
}
.badge::before {
  content: "";
  width: 0.55em; height: 0.55em;
  transform: rotate(45deg);
  background: currentColor;
}
.badge--preview {
  color: var(--glass-deep);
  background: rgba(178, 197, 236, 0.35);
  border: 1px solid rgba(56, 71, 118, 0.45);
}
.badge--dev {
  color: var(--grisaille-deep);
  background: rgba(202, 193, 128, 0.22);
  border: 1px dashed var(--grisaille);
}
.badge--future {
  color: var(--text-soft);
  background: transparent;
  border: 1px dotted var(--rule-strong);
}
.on-dark .badge--preview { color: var(--glass-sky); background: rgba(178, 197, 236, 0.12); border-color: rgba(178, 197, 236, 0.55); }
.on-dark .badge--dev { color: var(--silver-stain); background: rgba(202, 193, 128, 0.14); border-color: var(--silver-stain); }
.on-dark .badge--future { color: var(--glass-sky); border-color: rgba(178, 197, 236, 0.6); }

/* Lead came divider: a leaded line with solder joints */
.came {
  height: 10px;
  border: 0;
  margin: 0;
  background:
    radial-gradient(circle, var(--lead) 0 3.5px, transparent 4px) center / 168px 10px repeat-x,
    linear-gradient(var(--lead), var(--lead)) center / 100% var(--came) no-repeat;
  opacity: 0.8;
}

/* Transom strip: a band of leaded glass */
.transom {
  height: 28px;
  background: var(--lead) url("../images/transom.svg") left center / auto 28px repeat-x;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.8em 1.5em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--glass-deep);
  color: var(--paper);
  border-color: var(--glass-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 16px -8px rgba(30, 39, 65, 0.7);
}
.btn--primary:hover {
  background: var(--glass-night);
  border-color: var(--glass-night);
  color: var(--paper);
}
.btn--primary .arrow { transition: transform 0.2s var(--ease); }
.btn--primary:hover .arrow { transform: translateX(3px); }

.btn--secondary {
  background: transparent;
  color: var(--lead);
  border-color: var(--rule-strong);
}
.btn--secondary:hover {
  color: var(--lead);
  border-color: var(--lead);
  background: rgba(239, 236, 204, 0.6);
}

.btn--large { min-height: 56px; padding: 1em 1.9em; font-size: 1.0625rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* On dark (lead) backgrounds the primary action becomes silver stain */
.on-dark { color: var(--paint); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark strong { color: var(--paper); }
.on-dark h2 em, .on-dark h1 em { color: var(--glass-sky); }
.on-dark a:not(.btn) { color: var(--glass-sky); }
.on-dark a:not(.btn):hover { color: var(--paper); }
.on-dark .eyebrow { color: var(--silver-stain); }
.on-dark .lede { color: #D9D5B8; }
.on-dark :focus-visible { outline-color: var(--glass-sky); }
.on-dark .btn--primary {
  background: var(--silver-stain);
  border-color: var(--silver-stain);
  color: var(--lead);
  box-shadow: 0 6px 20px -8px rgba(202, 193, 128, 0.55);
}
.on-dark .btn--primary:hover { background: var(--paint); border-color: var(--paint); color: var(--lead); }
.on-dark .btn--secondary { color: var(--paint); border-color: rgba(239, 236, 204, 0.5); }
.on-dark .btn--secondary:hover { color: var(--paper); border-color: var(--paper); background: rgba(239, 236, 204, 0.08); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 232, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header::after {
  /* thin double rule, like a came edge */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-bottom: 1px solid var(--rule);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--lead);
  margin-right: auto;
  flex-shrink: 0;
}
.brand:hover { color: var(--lead); text-decoration: none; }
.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  box-shadow: 0 0 0 1.5px var(--lead);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.brand-name em { font-style: italic; color: var(--glass-deep); }

.site-nav { order: 3; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.7rem;
  background: transparent;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--lead);
  font: 600 0.875rem/1 var(--font-sans);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.nav-menu a:hover { color: var(--glass-deep); }
.nav-menu a[aria-current="page"] { color: var(--lead); }

.btn--header { min-height: 44px; padding: 0.6em 1.1em; font-size: 0.95rem; order: 2; white-space: nowrap; }

/* Mobile menu panel (JS adds .js to <html>; without JS the menu stays open inline) */
@media (max-width: 1079.98px) {
  .js .nav-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 18px 30px -20px rgba(28, 23, 13, 0.45);
    padding: var(--space-3) var(--gutter) var(--space-5);
    display: none;
  }
  .js .nav-menu.is-open { display: block; }
  .nav-menu li + li { border-top: 1px solid var(--rule); }
  .nav-menu a { padding: 0.9rem 0; font-size: 1.125rem; font-family: var(--font-serif); }
  .nav-menu a[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 0.5em; height: 0.5em;
    margin-right: 0.6em;
    background: var(--glass-deep);
    transform: rotate(45deg) translateY(-0.12em);
  }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: var(--space-3); }
  html:not(.js) .site-nav { order: 4; width: 100%; }
  html:not(.js) .nav-menu { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
  html:not(.js) .nav-menu li + li { border-top: 0; }
  html:not(.js) .nav-menu a { padding: 0.4rem 0; font-size: 1rem; }
}

@media (max-width: 440px) {
  .brand-name { display: none; }
}

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { order: 2; margin-right: var(--space-4); }
  .btn--header { order: 3; }
  .nav-menu { display: flex; gap: var(--space-2); align-items: center; }
  .nav-menu a {
    position: relative;
    padding: 0.6rem 0.8rem;
    font-size: 0.975rem;
    white-space: nowrap;
  }
  .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0.8rem; right: 0.8rem; bottom: 0.25rem;
    height: 2px;
    background: var(--glass-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .nav-menu a:hover::after,
  .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-menu a[aria-current="page"]::after { background: var(--lead); }
  .nav-menu .nav-demo a {
    color: var(--glass-deep);
    border-left: 1px solid var(--rule);
    margin-left: var(--space-2);
    padding-left: 1.2rem;
  }
  .nav-menu .nav-demo a::after { left: 1.2rem; }
}

/* ---------- Sections ---------- */

/* Grid children may shrink below their content width (prevents code and images forcing page overflow) */
.split > *,
.feature > *,
.hero-grid > *,
.contact-grid > *,
.cta-band-inner > *,
.footer-grid > * { min-width: 0; }

main { display: block; }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.section--paint { background: var(--linen); }
.section--lead {
  background: var(--lead);
  color: var(--paint);
}
.section--night {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(85, 112, 181, 0.28), transparent 60%),
    var(--glass-night);
  color: var(--paint);
}

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head.center { text-align: center; }
.section-head.center .lede { margin-inline: auto; }

.split {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--center { align-items: center; }
}

/* ---------- Home hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* window light falling across the bench */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(255, 250, 225, 0.9), rgba(255, 250, 225, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); }
}
.hero h1 { margin-bottom: var(--space-5); }
.hero h1 .line { display: block; }
.hero .lede { margin-bottom: var(--space-6); }
.hero-note {
  margin-top: var(--space-5);
  font-size: var(--fs-small);
  color: var(--text-soft);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.hero-note .badge { flex: none; }

.panel-art { margin: 0; max-width: 440px; justify-self: center; width: 100%; }
/* The panel is an image of the design file, placed at its 12 x 24 in spot in the
   drawing (viewBox 11 0 440 540). The drawing over it holds the dimension lines
   and the light, and lets clicks through so the panel can be saved. */
.panel-stage { position: relative; aspect-ratio: 440 / 540; }
.panel-stage img {
  position: absolute;
  left: 19.468%;
  top: 5.556%;
  width: 51.518%;
  height: 83.956%;
  max-width: none;
  filter: drop-shadow(0 22px 30px rgba(28, 23, 13, 0.22));
}
.panel-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.panel-art figcaption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--grisaille-deep);
}
.panel-art .dim { font: 500 12px var(--font-sans); fill: var(--grisaille-deep); letter-spacing: 0.06em; }
.panel-art .piece-no { font: 600 11px var(--font-sans); fill: var(--grisaille-deep); }
.light-sweep { animation: sweep 11s var(--ease) infinite; }
@keyframes sweep {
  0% { transform: translateX(-520px); }
  55%, 100% { transform: translateX(520px); }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto 40%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(255, 250, 225, 0.85), rgba(255, 250, 225, 0) 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: var(--space-5); }
.page-hero .btn-row { margin-top: var(--space-6); }

/* ---------- 404 page ---------- */

.notfound-art { display: block; width: 224px; max-width: 100%; height: auto; margin-top: var(--space-6); }
.notfound-no { font: 600 28px var(--font-sans); fill: var(--grisaille-deep); letter-spacing: 0.08em; }
.notfound-links { margin-top: var(--space-5); color: var(--text-soft); }

/* ---------- Ledger: who decides what ---------- */

.ledger {
  display: grid;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
@media (min-width: 620px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger-col { padding: var(--space-6) var(--space-5) var(--space-5); }
.ledger-col + .ledger-col { border-top: 3px double var(--rule-strong); }
@media (min-width: 620px) {
  .ledger-col + .ledger-col { border-top: 0; border-left: 3px double var(--rule-strong); }
}
.ledger-col h3 { font-size: 1.3rem; margin-bottom: var(--space-3); }
.ledger-col--artist { background: #FBF8EA; }
.ledger-col--software { background: #EEF2FA; }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--rule-strong);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.ledger li:last-child { border-bottom: 0; }
.ledger li::before {
  content: "";
  flex: none;
  width: 0.5em; height: 0.5em;
  transform: rotate(45deg) translateY(-0.1em);
  background: var(--silver-stain);
  box-shadow: 0 0 0 1.5px var(--lead);
}
.ledger-col--software li::before { background: var(--glass); }

/* ---------- Workflow steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) 4.2rem;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--space-4);
  top: var(--space-5);
  width: 2.2rem; height: 2.2rem;
  display: grid;
  place-items: center;
  font: 500 1.05rem/1 var(--font-serif);
  color: var(--lead);
  border: 1.5px solid var(--lead);
  border-radius: 50%;
  background: var(--paint);
}
.steps h3 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.steps p { font-size: 0.95rem; color: var(--text-soft); }

/* ---------- Feature highlight cards ---------- */

.highlights {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 700px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  position: relative;
  background: var(--paper-bright);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-5) var(--space-5);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card::before {
  /* a strip of colored glass along the top edge */
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 6px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--card-glass, var(--glass-deep));
  border-bottom: 2px solid var(--lead);
}
.card:nth-child(2) { --card-glass: var(--silver-stain); }
.card:nth-child(3) { --card-glass: var(--glass); }
.card:nth-child(4) { --card-glass: var(--grisaille); }
.card-icon { width: 44px; height: 44px; margin-bottom: var(--space-4); color: var(--glass-deep); }
.card h3 { font-size: 1.3rem; margin-bottom: var(--space-3); }
.card p { color: var(--text-soft); font-size: 0.975rem; }
.card .card-link { margin-top: auto; padding-top: var(--space-4); font-weight: 600; font-size: 0.95rem; }

/* ---------- Real glass band ---------- */

.tag-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag-list li {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35em 0.8em;
  border: 1px solid rgba(178, 197, 236, 0.45);
  border-radius: 2px;
  color: var(--paint);
  background: rgba(178, 197, 236, 0.07);
}
.section--paint .tag-list li,
.tag-list--light li {
  color: var(--ink);
  border-color: var(--rule-strong);
  background: var(--paper-bright);
}

/* Screenshot on a light table */
.shot {
  margin: 0;
  position: relative;
}
.shot-frame {
  border-radius: var(--radius-card);
  border: 6px solid var(--lead);
  background: var(--lead);
  box-shadow: 0 0 0 1px rgba(178, 197, 236, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 90px -20px rgba(178, 197, 236, 0.35);
  overflow: hidden;
}
.section--paint .shot-frame,
.shot-frame--light { box-shadow: var(--shadow-lift); }
.shot-frame img { width: 100%; }
.shot figcaption {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-soft);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  flex-wrap: wrap;
}
.on-dark .shot figcaption { color: #CFCBAE; }

/* ---------- Principle / pull quote ---------- */

.principle {
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}
.principle blockquote {
  margin: 0 0 var(--space-5);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  line-height: 1.1;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.on-dark .principle blockquote { color: var(--paper); }
.principle-mark {
  width: 56px;
  margin: 0 auto var(--space-5);
}

.chip-row {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.chip-row li {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  padding: 0.3em 1em;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper-bright);
}
.on-dark .chip-row li { background: transparent; border-color: rgba(239, 236, 204, 0.4); color: var(--paint); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band-inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band-inner { grid-template-columns: minmax(0, 1.5fr) auto; gap: var(--space-8); }
}
.cta-band h2 { margin-bottom: var(--space-4); }
.cta-band .btn-row { justify-content: flex-start; }
.cta-band-glow {
  position: absolute;
  inset: auto -10% -60% auto;
  width: 60%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(85, 112, 181, 0.35), transparent 70%);
  pointer-events: none;
}

/* ---------- Features page ---------- */

.badge-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  margin-top: var(--space-6);
  font-size: 0.925rem;
  color: var(--text-soft);
}
.badge-legend span.legend-item { display: inline-flex; gap: 0.6rem; align-items: center; }

.feature-index {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}
.feature-index a {
  display: inline-block;
  padding: 0.35em 0.85em;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-bright);
}
.feature-index a:hover { border-color: var(--glass-deep); color: var(--glass-deep); }

.feature {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}
.feature + .feature { border-top: 1px solid var(--rule); }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
  .feature:nth-of-type(even) .feature-text { order: 2; }
}
.feature-number {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--grisaille-deep);
  margin-bottom: var(--space-2);
  display: block;
}
.feature-text h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); margin-top: var(--space-3); }
.feature-text ul { padding: 0; list-style: none; margin-top: var(--space-4); }
.feature-text li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}
.feature-text li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95em;
  width: 0.5em; height: 0.5em;
  transform: rotate(45deg);
  background: var(--glass);
  box-shadow: 0 0 0 1.5px var(--lead);
}

/* Screenshot placeholder, styled as a pattern sheet */
.placeholder {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  background-color: var(--paper-bright);
  background-image:
    linear-gradient(rgba(85, 112, 181, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 112, 181, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 2px dashed var(--grisaille);
  display: grid;
  place-items: center;
  padding: var(--space-5);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.placeholder--wide { aspect-ratio: 21 / 9; }
.placeholder svg.placeholder-lines {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.35;
}
.placeholder-label {
  position: relative;
  max-width: 30rem;
  text-align: center;
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-soft);
}
.placeholder-label .eyebrow { margin-bottom: var(--space-2); color: var(--glass-deep); }
.placeholder-label p { font-size: 0.925rem; color: var(--text-soft); margin: 0; }
.placeholder-label strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.15rem; margin-bottom: var(--space-2); }

.triptych {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 559.98px) {
  .triptych { grid-template-columns: minmax(0, 1fr); }
}
.triptych .placeholder { aspect-ratio: 3 / 4; padding: var(--space-2); }
@media (max-width: 559.98px) {
  .triptych .placeholder { aspect-ratio: 21 / 9; }
}
.triptych .placeholder-label { padding: var(--space-3) var(--space-2); }
.triptych .placeholder-label strong { font-size: 1rem; margin: 0; }

/* ---------- Partners page ---------- */

.flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4);
  align-items: stretch;
}
@media (min-width: 820px) {
  .flow { grid-template-columns: 1fr auto 1fr auto 1fr; gap: var(--space-3); }
}
.flow-step {
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.flow-step .eyebrow { margin-bottom: var(--space-2); }
.flow-step h3 { font-size: 1.4rem; margin-bottom: var(--space-2); }
.flow-step p { font-size: 0.95rem; color: var(--text-soft); }
.flow-step:nth-child(1) { border-top: 6px solid var(--glass-deep); }
.flow-step:nth-child(3) { border-top: 6px solid var(--silver-stain); }
.flow-step:nth-child(5) { border-top: 6px solid var(--lead); }
.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--grisaille);
}
.flow-arrow svg { width: 40px; height: 24px; }
@media (max-width: 819.98px) { .flow-arrow svg { transform: rotate(90deg); } }

.spec-sheet {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  background: var(--paper-bright);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.spec-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--lead);
  color: var(--paint);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.spec-sheet dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) { .spec-sheet dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec-sheet .spec-row {
  padding: 0.8rem var(--space-5);
  border-bottom: 1px dotted var(--rule-strong);
}
@media (min-width: 560px) {
  .spec-sheet .spec-row:nth-child(odd) { border-right: 1px dotted var(--rule-strong); }
  /* An odd last row spans both columns, so no empty half cell is left */
  .spec-sheet .spec-row:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
}
.spec-sheet dt { font-weight: 600; color: var(--heading); font-size: 0.95rem; }
.spec-sheet dd { margin: 0; font-size: 0.875rem; color: var(--text-soft); }
.spec-sheet-foot { padding: var(--space-4) var(--space-5); font-size: 0.9rem; color: var(--text-soft); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 2rem;
  border-bottom: 1px solid var(--rule);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 1.05rem;
  width: 0.9rem; height: 0.5rem;
  border-left: 2px solid var(--glass-deep);
  border-bottom: 2px solid var(--glass-deep);
  transform: rotate(-45deg);
}
.on-dark .check-list li { border-color: rgba(239, 236, 204, 0.18); }
.on-dark .check-list li::before { border-color: var(--silver-stain); }

.pair {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 760px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair .card h3 { font-size: 1.45rem; }

.benefits {
  display: grid;
  gap: var(--space-5) var(--space-6);
}
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.benefit { border-top: 2px solid var(--lead); padding-top: var(--space-4); }
.on-dark .benefit { border-top-color: var(--silver-stain); }
.benefit h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.benefit p { font-size: 0.975rem; }
.on-dark .benefit p { color: #D9D5B8; }

.process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  counter-reset: proc;
  position: relative;
}
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process li {
  counter-increment: proc;
  position: relative;
  padding: 0 0 var(--space-6) 4rem;
}
.process li::before {
  content: counter(proc);
  position: absolute;
  left: 0; top: 0;
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  font: 500 1.25rem/1 var(--font-serif);
  color: var(--paper);
  background: var(--glass-deep);
  border: 3px solid var(--lead);
  border-radius: 50%;
  z-index: 1;
}
.process li::after {
  /* the came connecting the steps */
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px); top: 2.75rem; bottom: 0;
  width: 2px;
  background: var(--lead);
}
.process li:last-child::after { display: none; }
@media (min-width: 900px) {
  .process li { padding: 4rem var(--space-5) 0 0; }
  .process li::after { left: 2.75rem; right: 0; top: calc(1.375rem - 1px); bottom: auto; width: auto; height: 2px; }
}
.process h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.process p { font-size: 0.95rem; color: var(--text-soft); }

.callout {
  border-left: 4px solid var(--silver-stain);
  padding: var(--space-4) var(--space-5);
  background: rgba(202, 193, 128, 0.14);
  border-radius: 0;
  font-size: 0.975rem;
}

/* ---------- About page ---------- */

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 0; }

.pillars {
  display: grid;
  gap: var(--space-6) var(--space-7);
}
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pillar h3 { display: flex; gap: 0.75rem; align-items: baseline; }
.pillar h3 .pillar-no { font-size: 0.9rem; color: var(--grisaille-deep); font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.1em; }

.code-sample {
  font-family: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  background: var(--lead);
  color: var(--paint);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  overflow-x: auto;
  margin: 0;
  box-shadow: var(--shadow-lift);
}
.code-sample .tok-tag { color: var(--glass-sky); }
.code-sample .tok-attr { color: var(--silver-stain); }
.code-sample .tok-comment { color: #A39E7E; font-style: italic; }

/* Team: photo set in an arched, leaded frame that echoes the home hero panel */
.team {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
.team > * { min-width: 0; }
@media (min-width: 900px) {
  .team { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
}
.team-figure { margin: 0; width: 100%; max-width: 440px; justify-self: center; }
.team-frame {
  padding: 6px;
  background: var(--silver-stain);
  border: 6px solid var(--lead);
  border-radius: 50% 50% 4px 4px / 16% 16% 4px 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.team-frame img {
  width: 100%;
  border-radius: 50% 50% 2px 2px / 15% 15% 2px 2px;
}
.team-figure figcaption {
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.85rem;
  color: var(--grisaille-deep);
}

.person h3 { font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem); margin-bottom: var(--space-1); }
.person-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grisaille-deep);
  margin-bottom: var(--space-4);
}

.team-quote {
  margin: var(--space-6) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  line-height: 1.25;
  color: var(--glass-deep);
}

.teachers {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 2px solid var(--lead);
}
.teachers h3 { font-size: 1.35rem; margin-bottom: var(--space-5); }
.teacher-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-4) var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.teacher-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: var(--space-4);
  border-left: 3px solid var(--silver-stain);
}
.teacher-name { font-family: var(--font-serif); font-size: 1.2rem; color: var(--heading); }
.teacher-list a { font-size: 0.925rem; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); } }

.form-card {
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  position: relative;
}
.form-card::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 8px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--lead) url("../images/transom.svg") left center / auto 8px repeat-x;
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 620px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
}
.field .optional,
.field .required-mark { font-weight: 400; color: var(--text-soft); font-size: 0.85rem; }
.field .required-mark { color: var(--error); }
.field .hint { display: block; font-size: 0.85rem; color: var(--text-soft); margin-top: 0.35rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFEF9;
  border: 1.5px solid rgba(28, 23, 13, 0.6);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231C170D' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--lead); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--glass-deep);
}
.field [aria-invalid="true"] { border-color: var(--error); background: #FFF8F5; }
.field-error {
  display: block;
  color: var(--error);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.35rem;
  min-height: 0;
}
.field-error:empty { display: none; }

.checkbox {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: var(--space-4);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: rgba(178, 197, 236, 0.16);
  cursor: pointer;
}
.checkbox input {
  flex: none;
  width: 22px; height: 22px;
  margin: 0.1rem 0 0;
  accent-color: var(--glass-deep);
  cursor: pointer;
}
.checkbox span { font-weight: 600; color: var(--heading); }
.checkbox small { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.875rem; margin-top: 0.15rem; }

/* Groups of tick boxes on the contact form */
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--ink);
  cursor: pointer;
}
.choice input {
  flex: none;
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--glass-deep);
  cursor: pointer;
}
.field input.choice-text { flex: 1 1 12rem; width: auto; min-width: 0; }

/* Honeypot: off-screen for people, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-6);
}
.form-actions .privacy { font-size: 0.85rem; color: var(--text-soft); margin: 0; flex: 1 1 16rem; }
.btn[aria-busy="true"] { opacity: 0.75; cursor: progress; }

.form-alert {
  display: none;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  font-weight: 500;
}
.form-alert.is-visible,
.form-alert:target { display: block; }
.form-alert--error { background: #FBEDE8; border: 1px solid rgba(142, 42, 30, 0.45); color: var(--error); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-6) var(--space-3);
}
.form-success.is-visible,
.form-success:target { display: block; }
.form-success:target ~ form { display: none; }
.form-success h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.form-success .principle-mark { width: 64px; }
.form-success p { max-width: 32rem; margin-inline: auto; color: var(--text-soft); }
.form-success .btn-row { justify-content: center; margin-top: var(--space-5); }

.aside-block + .aside-block { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--rule); }
.aside-block h2 { font-size: 1.45rem; }
.aside-block ol { padding-left: 1.3em; }
.aside-block ol li { padding-left: 0.3em; margin-bottom: 0.6rem; }
.aside-block ol li::marker { font-family: var(--font-serif); color: var(--glass-deep); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--lead);
  color: #D9D5B8;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8) var(--space-6);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-7); } }
.footer-brand .brand { color: var(--paper); margin-bottom: var(--space-4); }
.footer-brand .brand img { box-shadow: 0 0 0 1.5px var(--silver-stain); }
.footer-brand .brand-name { display: inline; }
.footer-brand .brand-name em { color: var(--glass-sky); }
.footer-brand p { max-width: 24rem; }
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-stain);
  margin-bottom: var(--space-4);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 0.45rem; }
.site-footer a:not(.btn) { color: var(--paint); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--paper); text-decoration: underline; }
.footer-actions .btn { width: 100%; max-width: 20rem; }
.footer-actions .btn + .btn { margin-top: var(--space-3); }
.footer-actions p { margin-top: var(--space-4); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid rgba(239, 236, 204, 0.16);
  font-size: 0.85rem;
  color: #B9B596;
}
.footer-base p { margin: 0; }

/* ---------- Motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.hero-enter > * {
  animation: rise 0.9s var(--ease) both;
}
.hero-enter > *:nth-child(1) { animation-delay: 0.05s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.15s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.28s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.4s; }
.hero-enter > *:nth-child(5) { animation-delay: 0.52s; }
.hero-enter > *:nth-child(6) { animation-delay: 0.64s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.panel-art { animation: settle 1.3s var(--ease) 0.2s both; }
@keyframes settle {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@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;
  }
  .light-sweep { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */

@media print {
  body::before, .site-header, .site-footer, .transom, .nav-toggle { display: none; }
  .section--lead, .section--night { background: none; color: var(--ink); }
  .on-dark h2, .on-dark h3 { color: var(--lead); }
}
