:root {
  --ink: #193447;
  --muted: #5d7887;
  --paper: #f7fbfc;
  --white: #ffffff;
  --line: #dbeaf0;
  --sky: #dff3fa;
  --sky-strong: #9ed8e8;
  --teal: #247e91;
  --teal-deep: #176276;
  --coral: #e98e79;
  --display: #193447;
  --font-display: 'Cardo', serif;
  --font-body: 'Karla', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 18px 50px rgba(25, 80, 102, 0.1);
  --radius-lg: 2rem;
  --radius-md: 1.2rem;
  --shell: min(1180px, calc(100% - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  top: -12rem;
  right: -10rem;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 216, 232, .32), rgba(158, 216, 232, 0) 68%);
  pointer-events: none;
}
img { max-width: 100%; }
a { color: var(--teal-deep); }
a:hover { color: var(--coral); }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(219, 234, 240, .9);
  background: rgba(247, 251, 252, .88);
  backdrop-filter: blur(15px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: var(--shell);
  min-height: 6.3rem;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 3rem; height: 3rem; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1; gap: .25rem; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.brand-sub { color: var(--teal); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink); font-size: .96rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.nav-cta { padding: .72rem 1.05rem; border-radius: 99px; background: var(--teal); color: var(--white) !important; }
.nav-cta:hover { background: var(--teal-deep); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 1.65rem; }

.shell { width: var(--shell); margin-inline: auto; }
.rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  gap: 2rem;
  align-items: start;
}
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden] { display: none; }
.side-links {
  position: sticky;
  top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.7);
}
.side-links h2 { margin: 0 0 .75rem; color: var(--teal-deep); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.side-links ol { margin: 0; padding-left: 1.15rem; }
.side-links li { margin: .65rem 0; padding-left: .2rem; font-size: .86rem; }
.side-links a { color: var(--ink); text-decoration: none; }

main { min-width: 0; }
.eyebrow { margin: 0 0 .7rem; color: var(--teal); font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: var(--display); font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.6rem); }
h2 { margin: 0; font-size: clamp(2rem, 3vw, 3.15rem); }
h3 { margin: 0; font-size: 1.55rem; }
p { margin: 0 0 1rem; }
.lede { max-width: 37rem; color: var(--muted); font-size: 1.2rem; line-height: 1.55; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  border: 1px solid var(--teal);
  border-radius: 99px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.button:hover { border-color: var(--teal-deep); background: var(--teal-deep); color: var(--white); }
.button.secondary { background: transparent; color: var(--teal-deep); }
.button.secondary:hover { background: var(--sky); color: var(--teal-deep); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, .95fr);
  gap: 2rem;
  align-items: center;
  min-height: 35rem;
  padding: 4.2rem 0 4.5rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 10ch; }
.hero h1 span { color: var(--teal); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; color: var(--muted); font-size: .9rem; }
.hero-note::before { content: ""; width: 1.35rem; height: 1px; background: var(--coral); }
.hero-art { position: relative; min-height: 27rem; }
.hero-art::before { content: ""; position: absolute; inset: 2rem -1rem 1rem 2rem; border-radius: 48% 52% 45% 55%; background: var(--sky); transform: rotate(6deg); }
.hero-art::after { content: ""; position: absolute; right: 1rem; bottom: .2rem; width: 5rem; height: 5rem; border: 1.5rem solid rgba(233,142,121,.7); border-radius: 50%; }
.image-frame { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; min-height: 27rem; padding: 2rem; border-radius: 48% 52% 45% 55%; background: linear-gradient(145deg, #f4fdff, #c8edf5); box-shadow: var(--shadow); overflow: hidden; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 42% 58% 50% 50%; }
.image-placeholder { display: grid; place-items: center; width: 72%; aspect-ratio: 1; border: 1px solid rgba(36,126,145,.25); border-radius: 50%; color: var(--teal-deep); text-align: center; }
.image-placeholder strong { display: block; font-family: var(--font-display); font-size: 2.3rem; }
.image-placeholder small { display: block; max-width: 9rem; margin: .3rem auto 0; font-size: .75rem; }

.section { padding: 5rem 0; }
.section-tint { background: var(--sky); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-head p { max-width: 31rem; margin-bottom: .25rem; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.75); }
.service-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: 1.35rem; border-radius: 50%; background: var(--sky-strong); color: var(--teal-deep); font-family: var(--font-display); font-size: 1.3rem; }
.service-card p { margin-top: .7rem; color: var(--muted); font-size: .98rem; }

.split-band { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
.split-panel { padding: 2.6rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.step-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.step { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; align-items: start; }
.step-number { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--sky); color: var(--teal-deep); font-family: var(--font-mono); font-size: .75rem; }
.step h3 { font-size: 1.12rem; }
.step p { margin-top: .2rem; color: var(--muted); font-size: .95rem; }
.quote-band { padding: 4rem 0; background: var(--teal-deep); color: var(--white); }
.quote-band h2 { color: var(--white); max-width: 18ch; }
.quote-band p { max-width: 32rem; color: #d7eff4; }
.quote-mark { color: var(--coral); font-family: var(--font-display); font-size: 4rem; line-height: .8; }
.quote-source { color: #9ed8e8; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.page-intro { padding: 4rem 0 2.3rem; }
.page-intro h1 { max-width: 12ch; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.info-card { padding: 1.7rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.info-card p, .info-card li { color: var(--muted); }
.info-card ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.info-card li + li { margin-top: .45rem; }
.faq-list { display: grid; gap: 1rem; }
.faq-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1.25rem; }
.faq-item p { margin: .55rem 0 0; color: var(--muted); }

.news-grid, .archive-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; gap: 1rem; }
.story-card { min-width: 0; padding-bottom: .3rem; }
.story-image { position: relative; display: block; aspect-ratio: 16 / 10; margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius-md); background: var(--sky); }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .5rem; color: var(--muted); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.category-label { color: var(--teal); }
.story-card h3 { font-size: 1.35rem; }
.story-card h3 a { color: var(--ink); text-decoration: none; }
.story-card h3 a:hover { color: var(--teal); }
.story-card p { margin-top: .5rem; color: var(--muted); font-size: .96rem; }
.empty-state { padding: 1rem; border: 1px dashed var(--sky-strong); border-radius: 1rem; color: var(--muted); }
.archive-controls { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1.8rem; }
.archive-controls input { min-width: min(100%, 20rem); padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink); }
.filter-list { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.8rem; }
.filter-list a { padding: .45rem .75rem; border-radius: 99px; background: var(--sky); color: var(--teal-deep); font-size: .86rem; text-decoration: none; }

.article-layout { padding: 3.5rem 0 5rem; }
.byline { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.8rem; padding: .8rem 1rem; border-radius: 1rem; background: var(--sky); }
.byline img { width: 2.7rem; height: 2.7rem; border-radius: 50%; object-fit: cover; }
.byline strong { display: block; }
.byline p { margin: .1rem 0 0; color: var(--muted); font-size: .85rem; }
.article-header { max-width: 50rem; margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(2.5rem, 5vw, 4.7rem); }
.article-deck { margin-top: 1rem; color: var(--muted); font-size: 1.2rem; }
.article-cover { width: 100%; max-height: 34rem; margin: 1.5rem 0 2.5rem; border-radius: var(--radius-lg); object-fit: cover; }
.prose { max-width: 48rem; }
.prose p, .prose li { color: #355466; font-size: 1.12rem; line-height: 1.75; }
.prose h2 { margin: 2.4rem 0 .8rem; font-size: 2.1rem; }
.prose h3 { margin: 1.8rem 0 .6rem; font-size: 1.45rem; }
.prose a { color: var(--teal-deep); font-weight: 700; text-decoration-thickness: .12em; text-underline-offset: .18em; }
.prose img.article-inline { display: block; width: 100%; margin: 1.8rem 0; border-radius: 1rem; }

.not-found { min-height: 32rem; display: grid; place-items: center; padding: 4rem 0; text-align: center; }
.not-found h1 { margin-bottom: 1rem; }
.not-found p { max-width: 31rem; margin: 0 auto 1.5rem; color: var(--muted); }
.site-footer { margin-top: 3rem; padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: end; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--ink); font-size: .9rem; text-decoration: none; }

@media (max-width: 800px) {
  :root { --shell: min(100% - 2rem, 650px); }
  .header-inner { min-height: 5.5rem; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1rem var(--shell); border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: grid; gap: 1rem; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero h1 { max-width: 12ch; }
  .hero-art { min-height: 20rem; }
  .image-frame { min-height: 20rem; }
  .service-grid, .content-grid { grid-template-columns: 1fr; }
  .split-band { grid-template-columns: 1fr; gap: 2rem; }
  .rail-layout { grid-template-columns: minmax(0, 1fr); }
  .side-links { position: static; }
  .rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
  .section-head, .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 480px) {
  :root { --shell: calc(100% - 1.35rem); }
  .brand-name { font-size: 1.23rem; }
  .brand-sub { font-size: .58rem; }
  .hero { min-height: auto; }
  h1 { font-size: 3rem; }
  .section { padding: 3.6rem 0; }
  .split-panel { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
