/* 771.ae — site stylesheet (r2: "Obsidian" redesign)
   Fonts: Cormorant Garamond & Inter (SIL OFL 1.1), self-hosted.
   MAA monogram: Cinzel Decorative (SIL OFL 1.1), drawn to SVG by tools/monogram.py. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #070708;
  --bg-raised: #0e0e10;
  --surface: #121214;
  --line: #1f1f22;
  --line-strong: #2b2b2f;
  --line-gold: rgba(201, 169, 86, 0.3);
  --text: #eeebe4;
  --text-soft: #c8c4bb;
  --muted: #9b978f;
  --gold: #c9a956;          /* measured from the approved crest */
  --gold-deep: #8d7334;
  --gold-bright: #e2c983;
  --champagne: #f3e5b8;
  --on-gold: #141109;
  --focus: #e6cf8f;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 40px);
  --max: 1120px;
  --header-h: 76px;
  --radius: 1px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);

  --mx: 50%;
  --my: 30%;

  --boot: 0s;            /* how long the opening curtain holds the page */
}
html.first-visit  { --boot: 2.7s; }
html.return-visit { --boot: .5s; }
@media (prefers-reduced-motion: reduce) {
  html.first-visit, html.return-visit { --boot: 0s; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 50% -240px, rgba(201, 169, 86, 0.08), transparent 70%),
    radial-gradient(700px 500px at 100% 110%, rgba(201, 169, 86, 0.04), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

/* Film grain + a faint light that follows the pointer (set by site.js) */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/images/grain.svg") repeat;
  background-size: 220px 220px;
  opacity: .055;
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grain 1.2s steps(6) infinite; }
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(201, 169, 86, 0.07), transparent 65%);
  transition: opacity .8s var(--ease);
}
.has-pointer .spotlight { opacity: 1; }

body > header, body > main, body > footer { position: relative; z-index: 1; }

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
p a, .link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
p a:hover, .link:hover { color: var(--gold-bright); text-decoration-color: currentColor; }

:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 4px;
}

::selection { background: rgba(201, 169, 86, 0.32); color: #fff; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.7rem, 6.6vw, 5rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.2; }
h1 em, h2 em, p em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}
p { margin: 0; }

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 24px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.eyebrow__num {
  order: -1;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--gold-bright);
}
.eyebrow--center { justify-content: center; }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 38em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  font-size: .9rem;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: transparent;
  color: var(--champagne);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, var(--gold-deep), var(--gold) 45%, var(--gold-bright));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--slow);
}
.btn:hover { color: var(--on-gold); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text-soft); }
.btn--ghost:hover { border-color: var(--gold); }
.btn .arrow { transition: transform .3s var(--ease); letter-spacing: 0; }
.btn:hover .arrow { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 8, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
/* Home: the header floats, invisible, over the opening screen until scrolled */
.page-home .site-header {
  position: fixed;
  left: 0; right: 0;
  background: transparent;
  border-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.page-home.is-scrolled .site-header,
html:not(.js) .page-home .site-header {
  background: rgba(7, 7, 8, 0.78);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.brand img { width: 38px; height: auto; transition: transform .6s var(--slow); }
.brand:hover img { transform: translateY(-2px); }
.brand__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s 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: -7px; }
.nav-toggle__bars::after { top: 7px; width: 16px; left: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { width: 24px; left: 0; transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 8px;
  width: 4px; height: 4px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg) scale(0);
  transition: transform .35s var(--slow);
}
.site-nav a:not(.btn):hover { color: var(--text); }
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { transform: translateX(-50%) rotate(45deg) scale(1); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .btn { min-height: 42px; padding: 0 20px; margin-left: 12px; font-size: .68rem; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .page-home .site-header:has(.is-open) { background: var(--bg); border-color: var(--line); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 22px; }
  .site-nav a:not(.btn) { display: flex; min-height: 58px; padding: 0; font-size: .8rem; }
  .site-nav a:not(.btn)::after { left: auto; right: 4px; bottom: 50%; transform: translateY(50%) rotate(45deg) scale(0); }
  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after { transform: translateY(50%) rotate(45deg) scale(1); }
  .site-nav .btn { width: 100%; margin-left: 0; min-height: 52px; }
  html:not(.js) .site-nav { position: static; border: 0; padding: 0 0 16px; }
  html:not(.js) .site-header .container { flex-wrap: wrap; height: auto; padding-block: 12px; }
}

/* ---------- MAA monogram (CSS mask over a moving gold sheen) ---------- */
.monogram {
  width: 100%;
  aspect-ratio: 977.5 / 696.6;
  background: url("/assets/brand/maa-mark.svg") center / contain no-repeat;
}
@supports ((-webkit-mask-image: url("x.svg")) or (mask-image: url("x.svg"))) {
  .monogram {
    background: linear-gradient(105deg,
      var(--gold-deep) 0%, var(--gold) 34%, var(--champagne) 47%, #fff6d8 50%,
      var(--champagne) 53%, var(--gold) 66%, var(--gold-deep) 100%);
    background-size: 300% 100%;
    background-position: 100% 0;
    -webkit-mask: url("/assets/brand/maa-mark.svg") center / contain no-repeat;
    mask: url("/assets/brand/maa-mark.svg") center / contain no-repeat;
  }
}

/* ---------- Opening screen (home) ---------- */
.veil {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.veil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side at 50% 42%, rgba(201, 169, 86, 0.10), transparent 75%);
  pointer-events: none;
}
.veil__inner { position: relative; display: grid; justify-items: center; }

.emblem {
  position: relative;
  width: min(72vw, 400px, 44vh);
  min-width: 220px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: clamp(20px, 4vh, 40px);
}
.emblem__rings {
  position: absolute;
  inset: 0;
  background: url("/assets/images/seal-lines.svg") center / contain no-repeat;
  opacity: .8;
}
.emblem::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(201, 169, 86, 0.22);
  border-radius: 50%;
}
.emblem .monogram { position: relative; z-index: 1; width: 62%; }

.veil__name {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: -.42em; /* optically centre letter-spaced text */
}
.veil__title {
  margin-top: 20px;
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  font-weight: 300;
  max-width: 14ch;
}
.veil__whisper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
}
.veil__whisper span + span::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 18px;
  vertical-align: middle;
  background: var(--gold);
  opacity: .7;
  transform: rotate(45deg) translateY(-2px);
}

.veil__cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-size: .62rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.veil__cue:hover { color: var(--gold-bright); }
.veil__cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--line-strong), transparent);
  overflow: hidden;
}
.veil__cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  .emblem__rings { animation: spin 120s linear infinite, fade 2.4s var(--ease) var(--boot) both; }
  .emblem::after { animation: ring 2.2s var(--slow) calc(var(--boot) + .1s) both; }
  .emblem .monogram { animation: emerge 2s var(--slow) calc(var(--boot) + .1s) both, sheen 9s ease-in-out calc(var(--boot) + 2s) infinite; }
  .veil__cue i::after { animation: drip 2.6s var(--ease) calc(var(--boot) + 2.4s) infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes emerge {
  from { opacity: 0; filter: blur(14px); transform: scale(.94); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes sheen {
  0%, 30%  { background-position: 100% 0; }
  70%, 100% { background-position: 0% 0; }
}
@keyframes drip { 0% { top: -40%; } 60%, 100% { top: 100%; } }

/* ---------- Load reveals and scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 1.4s var(--slow) both; }
  .reveal--2 { animation-delay: calc(var(--boot) + .55s); }
  .reveal--3 { animation-delay: calc(var(--boot) + .75s); }
  .reveal--4 { animation-delay: calc(var(--boot) + 1s); }
  .reveal--5 { animation-delay: calc(var(--boot) + 1.5s); }
  .page-head .container,
  .notfound .container { animation: rise 1.3s var(--slow) calc(var(--boot) + .05s) both; }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1.2s var(--slow), transform 1.2s var(--slow);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .pillars [data-reveal]:nth-child(2), .js .rows [data-reveal]:nth-child(2) { transition-delay: .12s; }
  .js .pillars [data-reveal]:nth-child(3), .js .rows [data-reveal]:nth-child(3) { transition-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Statement ---------- */
.statement {
  padding: clamp(88px, 14vw, 180px) 0;
  border-bottom: 1px solid var(--line);
}
.statement__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 24em;
}
.statement__sign {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 420px;
}
.statement__sign img { width: 52px; }
.statement__by {
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.statement__note { margin-top: 4px; color: var(--muted); font-size: .95rem; }

/* ---------- Page head (inner pages) ---------- */
.page-head {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -120px; top: 50%;
  width: 520px; aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("/assets/images/seal-lines.svg") center / contain no-repeat;
  opacity: .35;
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .lead { margin-top: 26px; }
.page-head h1 { max-width: 16ch; font-weight: 300; }
@media (max-width: 760px) { .page-head::after { width: 340px; right: -170px; opacity: .25; } }

/* ---------- Sections ---------- */
.section {
  padding: clamp(80px, 11vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section__head h2 { font-weight: 300; }
.section__head p { color: var(--muted); max-width: 30em; }
@media (max-width: 760px) {
  .section__head { grid-template-columns: 1fr; }
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pillar {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 60%);
  overflow: hidden;
  transition: border-color .6s var(--ease), background-color .6s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 50% 0%, rgba(201, 169, 86, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.pillar:hover { border-color: var(--line-gold); }
.pillar:hover::before { opacity: 1; }
.pillar__num {
  position: relative;
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--gold);
  padding-bottom: clamp(36px, 6vw, 72px);
}
.pillar h3, .pillar p { position: relative; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--muted); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar__num { padding-bottom: 28px; }
}

/* Counterparties list */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px clamp(32px, 6vw, 80px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.row::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--slow);
}
.row:hover::after { transform: scaleX(1); }
.row h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  transition: color .4s var(--ease), transform .6s var(--slow);
}
.row:hover h3 { color: var(--gold-bright); transform: translateX(8px); }
.row p { color: var(--muted); }
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; }
}

/* Principles (about) */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.principle {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  padding: clamp(28px, 3vw, 40px);
  transition: border-color .4s var(--ease);
}
.principle:hover { border-color: var(--line-gold); }
.principle h3 { margin-bottom: 12px; font-style: italic; font-weight: 500; color: var(--gold-bright); }
.principle p { color: var(--muted); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.about-seal { width: 132px; margin-bottom: 32px; opacity: .95; }

/* Prose */
.prose { max-width: 40em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 1.8em; font-weight: 400; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--gold); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > :first-child h2 { max-width: 12ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Contact */
.contact-card {
  position: relative;
  border: 1px solid var(--line-gold);
  background: linear-gradient(160deg, rgba(201, 169, 86, 0.06), transparent 50%), var(--bg-raised);
  padding: clamp(28px, 4vw, 52px);
}
.contact-card__label {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.contact-card__email {
  display: inline-block;
  margin: 16px 0 32px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.9vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  border-bottom: 1px solid var(--line-gold);
  transition: color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.contact-card__email:hover { color: var(--gold-bright); border-color: var(--gold); }
.copy-status { min-height: 1.6em; margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative;
  padding: clamp(96px, 13vw, 170px) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: min(120vw, 820px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: url("/assets/images/seal-lines.svg") center / contain no-repeat;
  opacity: .25;
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band img { width: 64px; margin: 0 auto 28px; opacity: .95; }
.cta-band h2 { max-width: 16ch; margin: 0 auto; font-weight: 300; }
.cta-band p { margin: 22px auto 0; color: var(--muted); max-width: 34em; }
.cta-band .actions { justify-content: center; margin-top: 40px; }

/* Notice */
.notice {
  border-left: 1px solid var(--gold);
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-size: .95rem;
  max-width: 46em;
}
.notice strong { color: var(--text-soft); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(64px, 9vw, 104px) 0 40px;
  color: var(--muted);
  font-size: .85rem;
}
.site-footer__sign {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: clamp(48px, 7vw, 72px);
  text-align: center;
}
.site-footer__seal { width: 96px; opacity: .9; transition: opacity .4s var(--ease), transform 1s var(--slow); }
.site-footer__sign:hover .site-footer__seal { opacity: 1; transform: rotate(-4deg); }
.site-footer__name {
  font-size: .66rem;
  letter-spacing: .42em;
  margin-right: -.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.site-footer .brand img { width: 34px; }
.site-footer .brand__word { font-size: 1.3rem; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-soft);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .2s var(--ease);
}
.footer-nav li:last-child a { text-transform: none; letter-spacing: .02em; font-size: .9rem; font-family: var(--serif); font-style: italic; color: var(--gold-bright); }
.footer-nav a:hover { color: var(--gold-bright); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 24px;
  font-size: .8rem;
}
.site-footer__bottom p { max-width: 52em; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(96px, 16vw, 180px) 0; text-align: center; }
.notfound img { width: 120px; margin: 0 auto 36px; }
.notfound h1 { margin: 0 auto; max-width: 14ch; font-weight: 300; }
.notfound p { margin: 20px auto 0; color: var(--muted); }
.notfound .eyebrow { margin-bottom: 20px; }
.notfound .actions { justify-content: center; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}

@media print {
  .site-header, .nav-toggle, .skip-link, .actions, .grain, .spotlight, .veil__cue { display: none !important; }
  body { background: #fff; color: #000; }
  .veil { min-height: 0; }
}

main:focus { outline: none; }

/* Optically centre letter-spaced labels */
.veil__cue span { margin-right: -.4em; }

/* =====================================================================
   r6 refinements, from the site review
   ===================================================================== */
/* Navigation: larger, calmer tracking; the current page also gains weight (not colour alone) */
.site-nav a:not(.btn) { font-size: .78rem; letter-spacing: .2em; }
.site-nav a[aria-current="page"] { font-weight: 600; }
.site-nav .btn { font-size: .74rem; letter-spacing: .2em; }
.eyebrow { font-size: .75rem; }

/* Opening screen: a little shorter, so the introduction begins to show */
.veil { min-height: 86vh; min-height: 86svh; padding: calc(var(--header-h) + 8px) var(--gutter) 84px; }
.emblem { width: min(64vw, 300px, 33vh); margin-bottom: clamp(14px, 2.5vh, 28px); }
.veil__title { max-width: 20ch; margin-top: 14px; }
/* the next section now shows, so the cue is just a thin falling line */
.veil__cue { bottom: 14px; gap: 0; }
.veil__cue span { display: none; }
.veil__cue i { height: 40px; }
.veil__desc {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-soft);
}

/* Inner page heads: tighter, with the ornament pushed back */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-head::after { width: 420px; opacity: .16; }
.page-head .lead { max-width: 36em; color: var(--text-soft); }

/* About: the principal's seal at full strength */
.about-seal { width: 168px; opacity: 1; filter: brightness(1.18); }

/* Principles: headings set apart from their text */
.principle h3 { font-size: clamp(1.6rem, 2.2vw, 1.9rem); }
.principle h3::before {
  content: "";
  display: block;
  width: 28px; height: 1px;
  margin-bottom: 20px;
  background: var(--gold);
}

/* Disclosure: easier to read, clearly separated */
.notice {
  font-size: 1rem;
  line-height: 1.75;
  padding: 18px 0 18px 24px;
  color: var(--text-soft);
}

/* =====================================================================
   Opening sequence and page transitions (r4)
   First page of a visit: the MAA seal is traced in gold, filled, signed
   with the name, then the curtain lifts. Later pages: a short curtain.
   Leaving a page: the curtain rises from below, then the next page lifts it.
   Without JavaScript, or with reduced motion, none of this is shown.
   ===================================================================== */
.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60vmax 60vmax at 50% 46%, rgba(201, 169, 86, 0.07), transparent 60%),
    var(--bg);
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}
/* a hairline of gold rides the curtain's lower edge as it lifts */
.js .loader::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--champagne) 50%, var(--gold) 70%, transparent);
  opacity: .7;
}
.loader__stage {
  display: grid;
  justify-items: center;
  gap: 22px;
  transform: translateY(-2vh);
}
.loader__mark { width: min(46vw, 230px); height: auto; overflow: visible; }
.loader__ring {
  fill: none;
  stroke: var(--gold);
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.loader__ring--1 { stroke-opacity: .55; }
.loader__ring--2 { stroke-opacity: .28; }
.loader__glyph {
  fill: var(--gold);
  fill-opacity: 1;
  stroke: var(--champagne);
  stroke-opacity: 0;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}
.loader__name {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .42em;
  margin-right: -.42em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
}
.loader__line {
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
}

/* ---- first visit: trace, fill, sign, lift (about 3.6s in all) ---- */
.first-visit .loader { animation: curtain-lift 1.05s cubic-bezier(.76, 0, .24, 1) 2.5s both; }
.first-visit .loader__stage { animation: stage-out .7s cubic-bezier(.5, 0, .75, 0) 2.4s both; }
.first-visit .loader__ring { animation: trace-ring 1.3s cubic-bezier(.45, .05, .25, 1) .15s both; }
.first-visit .loader__ring--2 { animation-delay: .35s; }
.first-visit .loader__glyph {
  animation:
    trace 1.35s cubic-bezier(.45, .05, .25, 1) both,
    ink .75s var(--ease) 1.45s both;
}
.first-visit .loader__glyph--1 { animation-delay: .3s, 1.45s; }
.first-visit .loader__glyph--2 { animation-delay: .45s, 1.55s; }
.first-visit .loader__glyph--3 { animation-delay: .6s, 1.65s; }
.first-visit .loader__name { animation: sign 1s var(--slow) 1.55s both; }
.first-visit .loader__line { animation: draw-line 1s var(--slow) 1.75s both; }

/* ---- later pages in the same visit: a brief curtain with the seal ---- */
.return-visit .loader { animation: curtain-lift .85s cubic-bezier(.76, 0, .24, 1) .2s both; }
.return-visit .loader__stage { animation: stage-out .5s cubic-bezier(.5, 0, .75, 0) .1s both; }
.return-visit .loader__mark { width: min(30vw, 120px); }

/* ---- leaving: the curtain rises from below, seal settles, then we go ---- */
html.is-leaving .loader {
  visibility: visible;
  pointer-events: auto;
  animation: curtain-cover .6s cubic-bezier(.76, 0, .24, 1) both;
}
html.is-leaving .loader__stage { animation: stage-in .45s var(--ease) .2s both; }
html.is-leaving .loader__mark { width: min(30vw, 120px); }
html.is-leaving .loader__ring,
html.is-leaving .loader__glyph { animation: none; stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
html.is-leaving .loader__ring--1 { stroke-opacity: .55; }
html.is-leaving .loader__ring--2 { stroke-opacity: .28; }
html.is-leaving .loader__name,
html.is-leaving .loader__line { animation: none; opacity: 0; }

/* safety net (set by init.js after 6s) */
html.loaded:not(.is-leaving) .loader { visibility: hidden; }

@keyframes trace {
  0%   { stroke-dashoffset: 1; stroke-opacity: 1; fill-opacity: 0; }
  100% { stroke-dashoffset: 0; stroke-opacity: 1; fill-opacity: 0; }
}
@keyframes trace-ring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ink {
  0%   { fill-opacity: 0; stroke-opacity: 1; }
  100% { fill-opacity: 1; stroke-opacity: 0; }
}
@keyframes sign {
  from { opacity: 0; letter-spacing: .7em; margin-right: -.7em; }
  to   { opacity: 1; letter-spacing: .42em; margin-right: -.42em; }
}
@keyframes draw-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stage-out {
  from { opacity: 1; transform: translateY(-2vh); }
  to   { opacity: 0; transform: translateY(-6vh) scale(.97); }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(0) scale(.97); }
  to   { opacity: 1; transform: translateY(-2vh); }
}
@keyframes curtain-lift {
  from { clip-path: inset(0 0 0 0); visibility: visible; }
  99%  { visibility: visible; }
  to   { clip-path: inset(0 0 100% 0); visibility: hidden; }
}
@keyframes curtain-cover {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .js .loader { display: none; }
}
