:root {
  --ivory: #f7f4ec;
  --paper: #fffdf8;
  --mist: #e8e8e3;
  --blue: #244e63;
  --blue-deep: #163947;
  --blue-soft: #dbe7ea;
  --moss: #5e6d4d;
  --moss-soft: #e2e7da;
  --ink: #202827;
  --muted: #64706d;
  --rule: #c9cec8;
  --gold: #a28142;
  --white: #ffffff;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(25, 49, 53, 0.1);
  --radius: 1.2rem;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 95% 4%, rgba(94, 109, 77, .10), transparent 29rem),
    linear-gradient(90deg, transparent 0 49.93%, rgba(36, 78, 99, .025) 50%, transparent 50.07%);
}

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }

:focus-visible {
  outline: 3px solid #efb43e;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border-radius: .4rem;
  background: var(--blue-deep);
  color: white;
  text-decoration: none;
  transition: top .2s;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(36, 78, 99, .14);
  background: rgba(247, 244, 236, .94);
  backdrop-filter: blur(15px);
}

body.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.nav-shell {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--blue-deep);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: .93rem;
  letter-spacing: -.06em;
}

.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .69rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg { width: 22px; vertical-align: middle; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: .12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: .52rem .58rem;
  border-radius: 999px;
  color: #33403d;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

main { min-height: 65vh; }

.container {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.narrow { width: min(790px, calc(100% - 2.4rem)); }

.hero {
  position: relative;
  padding: clamp(3.8rem, 8vw, 8.5rem) 0 clamp(4.2rem, 8vw, 7rem);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 36rem;
  height: 36rem;
  right: -16rem;
  top: -19rem;
  border: 1px solid rgba(36, 78, 99, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(36, 78, 99, .025), 0 0 0 8rem rgba(36, 78, 99, .02);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.eyebrow,
.page-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.3rem;
  color: var(--moss);
  font-size: .77rem;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before,
.page-kicker::before {
  content: "";
  width: 2.7rem;
  height: 1px;
  background: currentColor;
}

h1, h2, h3, .display {
  color: var(--blue-deep);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { margin: 0; font-size: clamp(3rem, 6.5vw, 6.3rem); letter-spacing: -.045em; }
h2 { margin: 0 0 1rem; font-size: clamp(2.15rem, 4vw, 3.65rem); letter-spacing: -.03em; }
h3 { margin: 0 0 .7rem; font-size: clamp(1.28rem, 2vw, 1.68rem); letter-spacing: -.015em; }

.hero-subtitle {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  color: #3f504d;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2.1vw, 1.72rem);
  line-height: 1.4;
}

.lede {
  max-width: 52rem;
  color: #44524f;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1.15rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: .88rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-1px); background: var(--blue-deep); color: white; }
.button.secondary { background: transparent; color: var(--blue); }
.button.secondary:hover { background: var(--blue-soft); color: var(--blue-deep); }
.button.ghost { border-color: var(--rule); background: var(--paper); color: var(--ink); }
.button.small { min-height: 37px; padding: .48rem .8rem; font-size: .78rem; }

.portrait-frame {
  position: relative;
  min-height: 540px;
  border-radius: 16rem 16rem 1.4rem 1.4rem;
  overflow: hidden;
  background: var(--blue-deep);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  filter: grayscale(100%) sepia(12%);
  opacity: .78;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 42, 54, .85));
}

.portrait-note {
  position: absolute;
  z-index: 2;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.35rem;
  color: white;
}

.portrait-note strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.portrait-note span { display: block; max-width: 27rem; margin-top: .4rem; color: rgba(255,255,255,.78); font-size: .78rem; line-height: 1.45; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.alt { background: var(--paper); border-block: 1px solid rgba(36, 78, 99, .09); }
.section.blue { background: var(--blue-deep); color: #edf3f2; }
.section.blue h2, .section.blue h3 { color: white; }
.section.blue .eyebrow { color: #c7d8c0; }
.section.compact { padding-block: 3rem; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

.section-heading p { margin: 0; color: var(--muted); }
.section.blue .section-heading p { color: rgba(255,255,255,.72); }

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

.card {
  position: relative;
  padding: 1.45rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255,255,255,.62);
}

.card.accent { border-top: 4px solid var(--moss); }
.card p:last-child { margin-bottom: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link:hover h3 { color: var(--moss); }

.number {
  display: block;
  margin-bottom: 1.8rem;
  color: var(--moss);
  font-family: var(--serif);
  font-size: 1.02rem;
}

.meta,
.source-line {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}

.source-line a { font-weight: 650; }

.milestones {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.milestone {
  position: relative;
  padding: 1.6rem 1rem 0 0;
}

.milestone::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: -5px;
  left: 0;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 4px var(--ivory);
}

.milestone time { display: block; color: var(--moss); font-family: var(--serif); font-size: 1.35rem; }
.milestone p { margin: .45rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }

.page-hero { padding: clamp(3.6rem, 7vw, 6.5rem) 0 3.5rem; }
.page-hero h1 { max-width: 940px; font-size: clamp(2.9rem, 6vw, 5.6rem); }
.page-hero .lede { margin-top: 1.35rem; }

.breadcrumb {
  display: flex;
  gap: .45rem;
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: .78rem;
}
.breadcrumb a { color: inherit; }

.image-band {
  position: relative;
  min-height: clamp(280px, 48vw, 560px);
  overflow: hidden;
  background: var(--blue-deep);
}

.image-band img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: grayscale(85%); opacity: .77; }
.image-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,52,64,.74), transparent 70%); }
.image-band figcaption { position: absolute; z-index: 2; left: max(1.2rem, calc((100% - var(--max))/2)); bottom: 1.5rem; max-width: 35rem; color: rgba(255,255,255,.82); font-size: .76rem; }
.image-band figcaption a { color: white; }

.prose { color: #34413f; font-size: 1.07rem; }
.prose p { margin: 0 0 1.35rem; }
.prose h2 { margin-top: 3.2rem; }
.prose h3 { margin-top: 2rem; }
.prose .pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 0 1.5rem 1.6rem;
  border-left: 4px solid var(--moss);
  color: var(--blue-deep);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  line-height: 1.45;
}

.fact-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--blue-soft);
}
.fact-panel dl { display: grid; grid-template-columns: 10rem 1fr; gap: .7rem 1.2rem; margin: 0; }
.fact-panel dt { color: var(--blue-deep); font-weight: 750; }
.fact-panel dd { margin: 0; }

.timeline {
  position: relative;
  margin: 2.3rem 0 0;
  padding-left: 1.8rem;
}
.timeline::before { content: ""; position: absolute; left: .35rem; top: .4rem; bottom: .5rem; width: 1px; background: var(--rule); }
.timeline-item { position: relative; padding: 0 0 2.2rem 1.2rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.78rem; top: .42rem; width: 9px; height: 9px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 5px var(--ivory); }
.timeline-item time { display: block; margin-bottom: .35rem; color: var(--moss); font-weight: 760; letter-spacing: .04em; }
.timeline-item p { margin: 0; color: var(--muted); }

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(4, minmax(122px, .55fr));
  gap: .7rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--paper);
}

.field { display: grid; gap: .28rem; }
.field label { color: var(--muted); font-size: .72rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select {
  min-height: 44px;
  width: 100%;
  padding: .58rem .75rem;
  border: 1px solid #b9c2bd;
  border-radius: .55rem;
  background: white;
  color: var(--ink);
}

.catalog-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .85rem 0 1.2rem; color: var(--muted); font-size: .84rem; }
.catalog-grid { display: grid; gap: 1rem; }

.work-card {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: rgba(255,255,255,.7);
}

.work-kind { min-height: 7.7rem; padding: 1rem; border-radius: .7rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--blue-deep); color: white; }
.work-kind span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
.work-kind strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.work-visual { display: grid; gap: .55rem; min-width: 0; }
.work-cover { margin: 0; }
.work-cover > a { display: block; border-radius: .5rem; background: white; }
.work-cover img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: contain; border: 1px solid var(--rule); border-radius: .5rem; background: white; }
.work-cover figcaption { display: grid; gap: .1rem; margin-top: .38rem; color: var(--muted); font-size: .61rem; line-height: 1.35; }
.work-cover figcaption a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: .12em; }
.work-kind.compact { min-height: 4.7rem; padding: .7rem; }
.work-kind.compact strong { font-size: 1.05rem; }
.work-card h3 { margin-bottom: .45rem; }
.work-card p { margin: 0 0 .7rem; color: var(--muted); font-size: .9rem; }
.work-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.tag, .status-chip {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  border-radius: 999px;
  background: var(--moss-soft);
  color: #3c4a32;
  font-size: .68rem;
  font-weight: 720;
}
.status-chip { background: var(--blue-soft); color: var(--blue-deep); }
.work-actions { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; min-width: 124px; }
.empty-state { display: none; padding: 3rem 1rem; text-align: center; border: 1px dashed var(--rule); border-radius: 1rem; color: var(--muted); }
.empty-state.visible { display: block; }

.notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--moss);
  border-radius: .25rem .7rem .7rem .25rem;
  background: var(--moss-soft);
  color: #384132;
}

.source-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.3rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--paper);
}
.source-card .source-label { color: var(--moss); font-size: .7rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.source-card h3 { margin-top: .55rem; }
.source-card p { color: var(--muted); font-size: .9rem; }
.source-card a { margin-top: auto; font-weight: 720; }

.video-shell {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d222a;
  box-shadow: var(--shadow);
}
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.document-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.2rem;
  border: 1px solid #c7c4af;
  border-radius: 1rem;
  background: #f4f0df;
}
.document-status strong { color: #6d5b25; }

.logo-type {
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #2f5a6d, #173b4a);
  color: white;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: .08em;
}

dialog {
  width: min(960px, calc(100% - 2rem));
  height: min(84vh, 780px);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,.3);
}
dialog::backdrop { background: rgba(9, 24, 29, .74); backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--rule); }
.dialog-head strong { font-family: var(--serif); color: var(--blue-deep); }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--rule); border-radius: 50%; background: white; cursor: pointer; }
.pdf-frame { width: 100%; height: calc(100% - 118px); border: 0; background: var(--mist); }
.dialog-fallback { min-height: 54px; display: flex; align-items: center; justify-content: flex-end; padding: .5rem 1rem; border-top: 1px solid var(--rule); background: white; }

.site-footer {
  padding: 3.4rem 0 1.5rem;
  border-top: 1px solid var(--rule);
  background: #eceae2;
}
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 2.5rem; }
.footer-title { max-width: 31rem; margin: 0; color: var(--blue-deep); font-family: var(--serif); font-size: 1.45rem; }
.footer-note { max-width: 35rem; margin: .75rem 0 0; color: var(--muted); font-size: .82rem; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav li + li { margin-top: .42rem; }
.footer-nav a { color: #45514e; font-size: .84rem; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-heading { margin: 0 0 .8rem; color: var(--moss); font-size: .72rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .72rem; }

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 1.25rem;
  transform: translate(-50%, 140%);
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--blue-deep);
  color: white;
  font-size: .82rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.toast.visible { transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; padding: .6rem 1rem 1rem; background: var(--ivory); border-bottom: 1px solid var(--rule); box-shadow: 0 15px 30px rgba(0,0,0,.08); }
  .site-nav.open { display: block; }
  .site-nav ul { width: min(var(--max), 100%); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
  .site-nav a { padding: .65rem .75rem; border-radius: .5rem; }
  .catalog-controls { grid-template-columns: repeat(2, 1fr); }
  .catalog-controls .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .hero-grid, .section-heading, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .portrait-frame, .portrait-frame img { min-height: 410px; }
  .portrait-frame { max-width: 560px; border-radius: 10rem 10rem 1.2rem 1.2rem; }
  .milestones { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--rule); margin-left: .3rem; }
  .milestone { padding: 0 0 1.4rem 1.3rem; }
  .milestone::before { top: .5rem; left: -5px; box-shadow: 0 0 0 4px var(--ivory); }
  .work-card { grid-template-columns: 6.5rem minmax(0,1fr); }
  .work-kind { grid-row: 1 / 3; min-height: 100%; }
  .work-visual { grid-row: 1 / 3; }
  .work-visual .work-kind { grid-row: auto; min-height: 4.5rem; }
  .work-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
  .fact-panel dl { grid-template-columns: 1fr; gap: .1rem; }
  .fact-panel dd { margin-bottom: .7rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 570px) {
  .container, .narrow { width: min(100% - 1.4rem, var(--max)); }
  .nav-shell { width: calc(100% - 1.2rem); min-height: 68px; }
  .brand-text span { display: none; }
  .brand-mark { width: 37px; height: 37px; }
  .site-nav ul { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: clamp(2.7rem, 15vw, 4.1rem); }
  .page-hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .catalog-controls { grid-template-columns: 1fr; }
  .catalog-controls .field:first-child { grid-column: auto; }
  .work-card { grid-template-columns: 1fr; }
  .work-kind { grid-row: auto; min-height: 6.3rem; }
  .work-visual { grid-row: auto; width: min(8.5rem, 100%); }
  .work-visual .work-kind { min-height: 4.5rem; }
  .work-actions { grid-column: auto; }
  .button { width: 100%; }
  .work-actions .button, .button-row .button { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .hero-actions, .menu-toggle, .button, .site-footer { display: none !important; }
  body { background: white; color: black; }
  .section { padding-block: 1.5rem; }
  a { color: black; }
}
