:root {
  --ink: #102244;
  --ink-soft: #52627d;
  --paper: #fffdfd;
  --paper-muted: #fff3f6;
  --pink: #f4a7bc;
  --pink-deep: #da6f91;
  --pink-pale: #ffe5ed;
  --navy: #102244;
  --navy-deep: #09152e;
  --line: #e9dfe4;
  --link: #9f3d63;
  --shadow: 0 1.25rem 3rem rgba(16, 34, 68, .09);
  --measure: 74rem;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
}

html[data-theme="dark"], html.dark {
  --ink: #f7f5f6;
  --ink-soft: #bdc5d2;
  --paper: #0c1730;
  --paper-muted: #142343;
  --pink: #f2a9bf;
  --pink-deep: #ffb9cc;
  --pink-pale: #352238;
  --navy: #f7f5f6;
  --navy-deep: #050c1d;
  --line: #293958;
  --link: #ffb5c8;
  --shadow: 0 1.25rem 3rem rgba(0, 0, 0, .24);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--pink-deep); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.header-inner {
  width: min(calc(100% - 3rem), var(--measure));
  min-height: 5.6rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 2.7rem;
  border-radius: 50% 50% 50% .85rem;
  background: var(--pink);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  transform: rotate(-8deg);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.header-controls { display: flex; align-items: center; gap: .55rem; }
.primary-nav { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav a {
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--ink); }
[data-theme-toggle], .menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
[data-theme-toggle] { font-size: 1rem; }
.menu-toggle { display: none; }

.page-wrap {
  width: min(calc(100% - 3rem), var(--measure));
  margin: 0 auto;
}
.rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  gap: 2.25rem;
  align-items: start;
  padding: 3rem 0 5.5rem;
}
.rail-layout:has([data-side-links][hidden]) { grid-template-columns: minmax(0, 1fr); }
[data-side-links][hidden] { display: none; }
.side-links {
  position: sticky;
  top: 2rem;
  padding: 1rem 0 1rem 1rem;
  border-left: 2px solid var(--pink);
}
.side-links h2 {
  margin: 0 0 .75rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.side-links ol { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.side-links li { margin: .5rem 0; padding-left: .2rem; font-size: .8rem; }
.side-links a { color: var(--ink-soft); text-decoration: none; }
.side-links a:hover { color: var(--link); }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--pink-deep);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(2.7rem, 7vw, 5.9rem); }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { margin: 0; font-size: 1.35rem; }
p { margin: 0; }
.lede { max-width: 39rem; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(18rem, 1.12fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 36rem;
  padding: 2rem 0 4rem;
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .7rem 1.25rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { color: var(--paper); background: var(--pink-deep); border-color: var(--pink-deep); transform: translateY(-2px); }
.button--quiet { border-color: var(--line); background: transparent; color: var(--ink); }
.button--quiet:hover { color: var(--ink); background: var(--pink-pale); border-color: var(--pink); }
.hero-visual { position: relative; min-height: 30rem; }
.hero-photo {
  position: absolute;
  inset: 0 0 1.75rem 2.5rem;
  overflow: hidden;
  border-radius: 1.75rem 1.75rem 1.75rem .35rem;
  box-shadow: var(--shadow);
  background: var(--pink-pale);
}
.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(9, 21, 46, .2), transparent 55%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-note {
  position: absolute;
  right: -1rem;
  bottom: 0;
  width: min(15rem, 55%);
  padding: 1.15rem;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 1rem;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-note strong { display: block; margin-bottom: .35rem; font-family: var(--font-display); font-size: 1.25rem; }
.hero-note span { color: #d7ddea; font-size: .78rem; line-height: 1.45; }

.section { padding: 5.5rem 0; }
.section--tint { background: var(--paper-muted); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading p { max-width: 27rem; color: var(--ink-soft); }
.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.intro-grid h2 { max-width: 10ch; }
.intro-copy p + p { margin-top: 1rem; }
.stat-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.stat-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.stat-list strong { font-family: var(--font-display); font-size: 1.5rem; }
.stat-list span { align-self: center; color: var(--ink-soft); font-size: .82rem; text-align: right; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.service-card { min-height: 15rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--paper); }
.service-number { display: block; margin-bottom: 3.2rem; color: var(--pink-deep); font-family: var(--font-mono); font-size: .72rem; }
.service-card h3 { margin-bottom: .7rem; }
.service-card p { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }

.quote-band { position: relative; overflow: hidden; padding: 5rem 0; background: var(--navy); color: #fff; }
.quote-band::before { position: absolute; top: -8rem; right: 8%; width: 20rem; height: 20rem; border: 1px solid rgba(244,167,188,.45); border-radius: 50%; content: ""; }
.quote-band blockquote { position: relative; max-width: 48rem; margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.25rem); line-height: 1.14; letter-spacing: -.04em; }
.quote-band cite { display: block; margin-top: 1.5rem; color: #c7cfdd; font-family: var(--font-mono); font-size: .7rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }

.photo-band { min-height: 24rem; overflow: hidden; border-radius: 1.5rem; background: var(--pink-pale); }
.photo-band img { width: 100%; height: 100%; min-height: 24rem; object-fit: cover; }
.split-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.check-list { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-soft); }
.check-list li::before { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .15rem; border-radius: 50%; background: var(--pink); content: "✓"; color: var(--navy-deep); font-size: .72rem; font-weight: 700; line-height: 1.25rem; text-align: center; }

.page-hero { padding: 2.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 1.25rem; }
.page-hero .lede { max-width: 42rem; }
.page-kicker { display: flex; align-items: center; gap: .75rem; margin-top: 2rem; color: var(--ink-soft); font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.page-kicker::before { width: 2.5rem; height: 1px; background: var(--pink-deep); content: ""; }

.about-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .7fr); gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.about-story h2 { max-width: 11ch; }
.about-story p { max-width: 38rem; color: var(--ink-soft); font-size: 1.05rem; }
.about-story p + p { margin-top: 1.2rem; }
.principles { display: grid; gap: 1rem; margin-top: 4rem; }
.principle { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.principle span { color: var(--pink-deep); font-family: var(--font-mono); font-size: .72rem; }
.principle h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.principle p { color: var(--ink-soft); font-size: .9rem; }

.service-detail { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 1px solid var(--line); }
.service-detail > span { color: var(--pink-deep); font-family: var(--font-mono); font-size: .72rem; }
.service-detail h2 { margin-bottom: .75rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.service-detail p { max-width: 40rem; color: var(--ink-soft); }
.service-detail ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.service-detail li { padding: .4rem .7rem; border-radius: 999px; background: var(--pink-pale); color: var(--ink); font-size: .76rem; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 8vw, 8rem); align-items: start; }
.contact-grid h2 { max-width: 10ch; }
.contact-intro p { max-width: 27rem; color: var(--ink-soft); }
.contact-details { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-details dt { margin-top: 1rem; color: var(--ink-soft); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-details dd { margin: .2rem 0 0; font-size: .95rem; }
.contact-form { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper-muted); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: .5rem; padding: .75rem .8rem; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-note { color: var(--ink-soft); font-size: .76rem; }

.archive-tools { display: flex; align-items: end; gap: 1rem; margin: 2rem 0; }
.archive-tools .field { flex: 1; max-width: 28rem; }
.archive-tools input { min-height: 3rem; border: 1px solid var(--line); border-radius: .5rem; padding: .7rem .8rem; background: var(--paper-muted); color: var(--ink); }
.filter-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-list a { padding: .45rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .76rem; text-decoration: none; }
.filter-list a:hover { border-color: var(--pink); background: var(--pink-pale); color: var(--ink); }
.archive-results, .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; align-items: start; }
.story-card { min-width: 0; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; background: var(--paper); }
.story-image { display: block; position: relative; aspect-ratio: 1.45; overflow: hidden; background: var(--pink-pale); }
.story-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card > :not(.story-image) { margin-right: 1rem; margin-left: 1rem; }
.story-card .story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: 1rem; color: var(--ink-soft); font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; }
.story-card h2, .story-card h3 { margin-top: .5rem; margin-bottom: .45rem; font-size: 1.25rem; letter-spacing: -.03em; }
.story-card h2 a, .story-card h3 a { color: var(--ink); text-decoration: none; }
.story-card p { margin-bottom: 1.2rem; color: var(--ink-soft); font-size: .84rem; }
.category-label { color: var(--pink-deep); }
.empty-state { color: var(--ink-soft); }

.byline { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 .85rem; align-items: center; max-width: 42rem; margin: 0 auto 2rem; padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--paper-muted); }
.byline img { grid-row: span 2; width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.byline strong { align-self: end; }
.byline p { align-self: start; color: var(--ink-soft); font-size: .78rem; }
.article-shell { max-width: 51rem; margin: 0 auto; }
.article-header { margin-bottom: 2rem; }
.article-header h1 { max-width: 16ch; margin-bottom: 1rem; font-size: clamp(2.6rem, 6vw, 5rem); }
.article-deck { max-width: 42rem; color: var(--ink-soft); font-size: 1.1rem; }
.article-cover { margin: 2rem 0; border-radius: 1rem; overflow: hidden; }
.article-cover img { width: 100%; max-height: 32rem; object-fit: cover; }
.prose { max-width: 43rem; }
.prose p, .prose li { color: var(--ink); font-family: var(--font-body); font-size: 1.08rem; line-height: 1.85; }
.prose p { margin: 0 0 1.4rem; }
.prose h2, .prose h3 { margin: 2.8rem 0 1rem; }
.prose a { color: var(--link); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.prose img.article-inline { width: 100%; margin: 2rem 0; border-radius: .75rem; }
.category-header { margin-bottom: 2rem; }
.category-header h1 { margin-bottom: .75rem; }
.category-header p { color: var(--ink-soft); }

.not-found { min-height: 54vh; display: grid; align-content: center; }
.not-found h1 { margin-bottom: 1rem; }
.not-found p { max-width: 30rem; margin-bottom: 1.5rem; color: var(--ink-soft); }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-inner p { color: var(--ink-soft); font-size: .78rem; }
.footer-mark { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .header-inner, .page-wrap { width: min(calc(100% - 2rem), var(--measure)); }
  .header-inner { min-height: 4.6rem; }
  .header-controls { gap: .4rem; }
  .menu-toggle { display: inline-grid; }
  .primary-nav { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; gap: 0; }
  .primary-nav a { padding: .8rem; }
  .rail-layout { display: block; padding-top: 2rem; }
  .side-links { position: static; margin-top: 3rem; }
  .hero { display: block; min-height: 0; padding-top: 1rem; }
  .hero-copy { padding: 2rem 0 3rem; }
  .hero-visual { min-height: 22rem; }
  .hero-photo { inset: 0 1rem 1.2rem 0; }
  .hero-note { right: 0; width: 13rem; }
  .section { padding: 3.8rem 0; }
  .section-heading, .intro-grid, .split-section, .about-story, .contact-grid { display: block; }
  .section-heading p { margin-top: 1rem; }
  .intro-grid h2, .about-story h2, .contact-grid h2 { margin-bottom: 1.5rem; }
  .stat-list { margin-top: 2rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .service-number { margin-bottom: 2rem; }
  .photo-band { margin-top: 2rem; }
  .service-detail { grid-template-columns: 1fr; gap: .5rem; }
  .contact-form { margin-top: 2rem; }
  .archive-tools { display: block; }
  .archive-tools .field { max-width: none; margin-bottom: .75rem; }
  .footer-inner { display: block; }
  .footer-inner p { margin-top: .5rem; }
}

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