:root {
  --paper: #F2F3F0;
  --ink: #172018;
  --ink-soft: #4A534C;
  --stamp: #0850A8;
  --stamp-hover: #0A63CC;
  --film: #161616;
  --line: rgba(23, 32, 24, 0.14);
  --display: "Young Serif", Georgia, serif;
  --body: "Public Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); overflow-x: clip; scrollbar-color: #0850A8 #E4E6E1; }
@view-transition { navigation: auto; }
.logo { view-transition-name: brand; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.38s; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
}
::selection { background: #C5D6F0; color: var(--ink); }
img, svg { display: block; max-width: 100%; }
.logo img.wordmark { max-width: none; }
a { color: var(--stamp); text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; }

.skip {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 100;
  padding: 0.5rem 0.8rem; background: var(--stamp); color: #fff;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.site-nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  color: #0850A8;
  background: #fff;
  border-bottom: 1px solid rgba(8, 80, 168, 0.12);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-nav.is-paper {
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  flex: 0 0 auto;
  text-decoration: none; color: inherit;
  font-family: var(--display); font-size: 1.15rem;
}
.logo img { width: 1.55rem; height: 1.55rem; }
.logo img.wordmark {
  display: block;
  width: 11.5rem;
  height: auto;
  aspect-ratio: 1540 / 321;
  flex-shrink: 0;
}
.nav-links {
  display: flex; align-items: center; gap: 1.4rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none; color: inherit;
  font-size: 0.95rem;
}
.nav-links a.btn,
.nav-links a.btn:hover { color: #F2F3F0; }
.nav-links a:hover { opacity: 0.7; }
.nav-links a[aria-current="page"] { text-decoration: underline; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  color: inherit; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-panel {
  display: flex; position: fixed; inset: var(--nav-h) 0 0; z-index: 39;
  background: #fff; color: #0850A8; padding: 1.4rem 1.5rem;
  flex-direction: column; gap: 1rem;
  visibility: hidden; pointer-events: none;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.mobile-panel.is-open {
  visibility: visible; pointer-events: auto;
  opacity: 1; transform: none;
}
.mobile-panel a {
  text-decoration: none; color: #0850A8;
  font-family: var(--display); font-size: 1.7rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.05rem;
  border: 0; border-radius: 4px;
  background: var(--stamp); color: #F2F3F0;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.btn:hover { background: var(--stamp-hover); color: #F2F3F0; }
.btn:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent; color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover { background: rgba(8, 80, 168, 0.08); color: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.sequence {
  height: 420vh;
  background: var(--film);
}
.sequence-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  background: var(--film);
}
.sequence canvas { width: 100%; height: 100%; display: block; }
.seq-loading {
  position: absolute; left: 1.75rem; bottom: 1.5rem;
  color: rgba(255,255,255,.78); font-size: 0.82rem; margin: 0;
  transition: opacity 0.4s;
}
.seq-loading.is-done { opacity: 0; pointer-events: none; }
.seq-cues { position: absolute; inset: 0; pointer-events: none; }
.seq-cues::after {
  content: "";
  position: absolute; inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(22, 22, 22, 0.78));
}
.seq-cue {
  position: absolute; left: 1.75rem; bottom: 11vh;
  max-width: 18rem;
  color: #fff;
  z-index: 1;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.seq-cue.is-on {
  clip-path: inset(0);
  transition-duration: 0.58s;
}
.seq-cue h1, .seq-cue h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.seq-cue p { margin: 0.45rem 0 0; color: rgba(255,255,255,.72); }

.wrap {
  width: min(720px, 100%);
  margin-inline: auto;
}
.wide {
  width: min(1040px, 100%);
  margin-inline: auto;
}
.section { padding: 5.75rem 1.75rem; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 0 0 0.55rem;
}
.lede { color: var(--ink-soft); margin: 0 0 2rem; max-width: 38rem; }
html.motion #layers.pending .wrap {
  clip-path: inset(0 0 100% 0);
}
html.motion #layers.is-in .wrap {
  clip-path: inset(0);
  transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack {
  display: flex; flex-direction: column;
  gap: 1.6rem;
  margin: 0;
}
.stack dt {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.25rem;
}
.stack dd { margin: 0; color: var(--ink-soft); }

.cases { margin: 0; }
.case {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case .where { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.case h3 { margin: 0 0 0.25rem; font-size: 1.08rem; font-weight: 600; }
.case p { margin: 0; color: var(--ink-soft); }

.quote {
  margin: 2.2rem 0 0;
  padding: 0;
  border: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
}
.quote cite {
  display: block; margin-top: 0.7rem;
  font-family: var(--body); font-style: normal; font-size: 0.92rem;
  color: var(--ink-soft);
}

.cta-band {
  background: var(--stamp);
  color: #fff;
}
.cta-band .lede { color: #E8EEF8; }
.cta-band .btn { background: #fff; color: var(--stamp); }
.cta-band .btn:hover { background: #E8EEF8; color: var(--stamp); }
.cta-band .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

.form { display: grid; gap: 1rem; max-width: 32rem; }
.field label { display: block; margin-bottom: 0.3rem; font-size: 0.9rem; }
.req { color: #9B2C2C; font-weight: 700; margin-left: 0.12rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 0.7rem 0.85rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: #fff;
  caret-color: var(--stamp);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--stamp);
  box-shadow: 0 1px 0 var(--stamp);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.err { display: block; min-height: 1.1em; color: #9B2C2C; font-size: 0.82rem; margin-top: 0.2rem; }
.form-ok { color: var(--stamp); }

.page-main { padding: 6.75rem 1.75rem 4rem; }
body:not(.theme-launch) .site-nav { position: relative; }
body:not(.theme-launch) .page-main { padding-top: 2rem; }
.crumbs { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
.crumbs a { color: inherit; }
.page-main h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin: 1.1rem 0 0.7rem;
  overflow-wrap: break-word;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 1.4rem;
}
.foot-grid {
  width: min(1040px, calc(100% - 3.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2.5rem;
  align-items: start;
}
.site-footer strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.site-footer .tag { color: var(--ink-soft); margin: 0.3rem 0 0; }
.site-footer ul { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a[href^="tel:"] { white-space: nowrap; }
.site-footer a:hover { color: var(--ink); }
.foot-bottom {
  width: min(1040px, calc(100% - 3.5rem));
  margin: 1.8rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.foot-bottom span { white-space: nowrap; }
.foot-bottom span:last-child { margin-left: auto; text-align: right; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .seq-cue {
    left: 1.25rem; right: 1.25rem; bottom: 4.5rem;
    max-width: none;
  }
  .case { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .seq-cue {
    clip-path: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .seq-cue.is-on { opacity: 1; }
  .mobile-panel { transform: none; transition: opacity 0.2s, visibility 0.2s; }
  .btn:active { transform: none; }
  html.motion #layers.pending .wrap,
  html.motion #layers.is-in .wrap {
    clip-path: none;
    transition: none;
  }
}
