:root {
  --navy: #081d38;
  --navy-soft: #123157;
  --ink: #10233c;
  --muted: #64748b;
  --line: #d9e2ec;
  --paper: #ffffff;
  --mist: #f3f6fa;
  --blue: #2e70ff;
  --blue-dark: #1853d8;
  --cyan: #a7eced;
  --lime: #d8f26b;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 20px 50px rgba(8, 29, 56, 0.1);
  --radius: 1.1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: linear-gradient(rgba(46,112,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(46,112,255,.045) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(217,226,236,.82);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
}
.header-inner, .site-footer, .content-shell {
  width: min(92vw, 1240px);
  margin-inline: auto;
}
.header-inner {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.58rem);
  font-weight: 700;
  letter-spacing: -.045em;
}
.brand-mark {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: .8rem;
  background: var(--navy);
  color: var(--lime);
  box-shadow: 4px 4px 0 var(--cyan);
}
.brand-mark svg { width: 1.65rem; height: 1.65rem; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; padding: 0; margin: 0; }
.site-nav a { color: var(--muted); font-size: .92rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue-dark); }
.slate-ddf2 { display: none; border: 0; background: transparent; padding: .45rem; color: var(--navy); }
.slate-ddf2 svg { width: 1.7rem; height: 1.7rem; }

.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
  background: linear-gradient(125deg, var(--navy) 0%, #0d3159 60%, #174776 100%);
  color: white;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 38rem;
  height: 38rem;
  right: -12rem;
  top: -18rem;
  border: 1px solid rgba(167,236,237,.35);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(167,236,237,.06), 0 0 0 8rem rgba(167,236,237,.045), 0 0 0 12rem rgba(167,236,237,.03);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--cyan); }
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--font-display); line-height: 1.06; letter-spacing: -.055em; }
.hero h1 { max-width: 12ch; margin-top: 1.3rem; color: white; font-size: clamp(3.6rem, 8vw, 7.2rem); }
.hero-copy { max-width: 34rem; margin: 1.8rem 0 0; color: #d7e6f6; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--blue-dark); }
.button--light { background: white; color: var(--navy); }
.button--light:hover { background: var(--cyan); }
.button--outline { border-color: var(--line); background: transparent; color: var(--navy); }
.button--outline:hover { background: var(--mist); }
.hero .button--outline { border-color: rgba(255,255,255,.28); color: white; }

.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--mist { background: var(--mist); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { max-width: 14ch; margin-top: .7rem; font-size: clamp(2.2rem, 4vw, 4rem); }
.section-heading p { max-width: 26rem; margin: 0; color: var(--muted); }
.text-link { color: var(--blue-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.text-link::after { content: "  ↗"; }

.mercury-079d { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mercury-079d:has([data-ivorycf][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-ivorycf][hidden] { display: none; }
.ivory-684d { position: sticky; top: 6rem; padding: 1rem 0 1rem 1.1rem; border-left: 2px solid var(--cyan); }
.ivory-684d h2 { font-family: var(--font-body); font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; }
.ivory-684d ol { display: grid; gap: .7rem; padding: 0; margin: 1rem 0 0; list-style: none; counter-reset: links; }
.ivory-684d li { counter-increment: links; }
.ivory-684d li::before { content: "0" counter(links); display: block; color: var(--muted); font-family: var(--font-mono); font-size: .65rem; }
.ivory-684d a { color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none; }
.ivory-684d a:hover { color: var(--blue-dark); }

.project-grid, .news-grid, .silver-30c6 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; gap: 1.25rem; }
.project-card, .grove-0393, .archive-card { border: 1px solid var(--line); background: white; overflow: hidden; }
.project-card { border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-card img { width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; }
.project-body { padding: 1.25rem 1.25rem 1.45rem; }
.project-body h3 { font-size: 1.45rem; }
.project-body p { margin: .65rem 0 0; color: var(--muted); font-size: .92rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem .8rem; margin-top: 1rem; color: var(--blue-dark); font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; }

.news-grid .grove-0393, .archive-card { border-radius: .9rem; }
.fable-c195 { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fable-c195 .grove-0393 { display: grid; grid-template-columns: minmax(7rem, 13rem) minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.fable-c195 .tide-2866 { grid-row: span 3; aspect-ratio: 1.3 / 1; }
.fable-c195 .grove-0393 .ember-6e62, .fable-c195 .grove-0393 h3, .fable-c195 .grove-0393 .story-excerpt { padding-left: 0; }
.fable-c195 .grove-0393 .ember-6e62 { padding-top: 0; }
.fable-c195 .grove-0393 .story-excerpt { padding-bottom: 0; }
.tide-2866 { position: relative; display: block; aspect-ratio: 1.45 / 1; overflow: hidden; background: var(--mist); }
.tide-2866 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grove-0393 > a:not(.tide-2866) { text-decoration: none; }
.grove-0393 .ember-6e62, .archive-card .ember-6e62 { display: flex; flex-wrap: wrap; gap: .45rem .75rem; align-items: center; padding: 1rem 1.1rem 0; color: var(--muted); font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; }
.cobalt-5878 { color: var(--blue-dark); }
.grove-0393 h3, .archive-card h3 { padding: 0 1.1rem; margin: .55rem 0 0; font-size: 1.32rem; }
.grove-0393 h3 a, .archive-card h3 a { text-decoration: none; }
.grove-0393 h3 a:hover, .archive-card h3 a:hover { color: var(--blue-dark); }
.grove-0393 .story-excerpt, .archive-card .story-excerpt { padding: 0 1.1rem 1.2rem; margin: .6rem 0 0; color: var(--muted); font-size: .9rem; }
.tide-265c { padding: 1rem; border: 1px dashed var(--line); color: var(--muted); }

.split-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 8vw, 8rem); align-items: start; }
.split-band h2 { max-width: 11ch; font-size: clamp(2.4rem, 5vw, 5rem); }
.lead { margin: 0; color: var(--muted); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.55; }
.number-list { display: grid; gap: 0; margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.number-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.number-list strong { color: var(--blue-dark); font-family: var(--font-mono); font-size: .7rem; }
.number-list h3 { font-family: var(--font-body); font-size: 1.02rem; letter-spacing: -.02em; }
.number-list p { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }

.page-intro { padding: 5rem 0 3.5rem; background: var(--mist); }
.page-intro h1 { max-width: 11ch; margin-top: .8rem; font-size: clamp(3rem, 7vw, 6rem); }
.page-intro p { max-width: 38rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.15rem; }
.archive-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.search-form { display: flex; width: min(100%, 28rem); }
.search-form input { min-width: 0; flex: 1; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .65rem 0 0 .65rem; background: white; color: var(--ink); font: inherit; }
.search-form button { padding: 0 1rem; border: 0; border-radius: 0 .65rem .65rem 0; background: var(--navy); color: white; font: inherit; font-weight: 600; }
.filter-list { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-list a { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.filter-list a:hover { border-color: var(--blue); color: var(--blue-dark); }

.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-card { min-height: 17rem; display: flex; flex-direction: column; justify-content: space-between; padding: 1.7rem; border-radius: var(--radius); background: var(--navy); color: white; }
.contact-card--light { background: var(--mist); color: var(--navy); }
.contact-card h2 { max-width: 12ch; color: inherit; font-size: clamp(2rem, 4vw, 3.5rem); }
.contact-card p { max-width: 28rem; margin: 1rem 0 0; color: #c1d3e4; }
.contact-card--light p { color: var(--muted); }
.contact-card a { color: var(--cyan); font-weight: 600; text-decoration: none; }
.contact-card--light a { color: var(--blue-dark); }

.article-layout { padding: 4rem 0 7rem; }
.byline { display: flex; align-items: center; gap: .8rem; margin-bottom: 2rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.byline[hidden] { display: none; }
.byline img { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; background: var(--mist); }
.byline strong { font-size: .9rem; }
.byline p { margin: 0; color: var(--muted); font-size: .82rem; }
.amber-8ba1 { max-width: 50rem; }
.amber-8ba1 h1 { margin-top: .8rem; font-size: clamp(2.8rem, 6vw, 5.7rem); }
.onyx-241f { color: var(--muted); font-size: 1.2rem; }
.nickel-850c { width: 100%; max-height: 34rem; margin: 2.2rem 0; border-radius: var(--radius); object-fit: cover; }
.prose { max-width: 48rem; }
.prose p, .prose li { color: #32465f; font-size: 1.08rem; line-height: 1.8; }
.prose h2, .prose h3 { margin: 2.5rem 0 .9rem; }
.prose a { color: var(--blue-dark); text-decoration-thickness: 2px; text-underline-offset: .18em; }

.not-found { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 5rem 0; }
.not-found h1 { font-size: clamp(4rem, 12vw, 10rem); color: var(--navy); }
.not-found h2 { margin-top: .5rem; font-size: clamp(1.8rem, 3vw, 3rem); }
.not-found p { max-width: 34rem; margin: 1rem auto 1.8rem; color: var(--muted); }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 2.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer a { color: var(--navy); font-weight: 600; text-decoration: none; }

@media (max-width: 760px) {
  .header-inner { min-height: 4.8rem; }
  .slate-ddf2 { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 4.8rem 0 auto; padding: 1rem 4vw 1.4rem; border-bottom: 1px solid var(--line); background: white; }
  .site-nav.brass-f821 { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a { display: block; padding: .9rem 0; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5.5rem); }
  .section-heading, .split-band, .contact-panel { grid-template-columns: 1fr; display: grid; align-items: start; }
  .section-heading { gap: 1rem; }
  .split-band h2 { max-width: 14ch; }
  .mercury-079d { grid-template-columns: 1fr; }
  .ivory-684d { position: static; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; }
  .ivory-684d ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { flex-direction: column; gap: .5rem; }
}

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