:root {
  color-scheme: light;
  --ink: #182637;
  --body: #3e4d60;
  --quiet: #52647a;
  --blue: #20529a;
  --line: #dce5ed;
  --paper: #f8fafc;
  --shell: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1964c2; outline-offset: 4px; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 30px; }

.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 2;
  inset: 8px auto auto 12px;
  padding: 8px 18px;
  border-radius: 10px;
  background: #fff;
  transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid #e8edf2; }
.header-inner, .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.header-inner { min-height: 66px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  white-space: nowrap;
  text-decoration: none;
}
.wordmark img { border-radius: 9px; box-shadow: 0 0 0 1px #193e7017; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 25px; }
.site-header nav a { align-self: center; font-size: 13px; font-weight: 650; text-decoration: none; }
.site-header .nav-section { color: var(--body); }
.site-header .nav-section:hover { color: var(--blue); text-decoration: underline; }
.nav-get {
  padding: 7px 13px;
  border: 1px solid #d3e1f2;
  border-radius: 100px;
  background: #f3f7fd;
  white-space: nowrap;
}
.nav-get:hover { background: #e8f1fc; }
.nav-get span, .primary-link span { margin-inline-start: .22em; }

.eyebrow {
  color: var(--blue);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 750;
  letter-spacing: .09em;
}

h1, h2 { line-height: 1.24; font-weight: 800; letter-spacing: -.045em; }
h1 { font-size: clamp(36px, 4.04vw, 57px); }
h2 { font-size: clamp(31px, 3.65vw, 52px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.01fr);
  align-items: center;
  position: relative;
  isolation: isolate;
  margin-top: 28px;
  min-height: 518px;
  border: 1px solid #e0eaf3;
  border-radius: 35px;
  background: linear-gradient(122deg, #f5f9ff 3%, #ecf4fd 58%, #dceaf8);
  overflow: hidden;
}
.hero-copy { padding: 55px 0 55px clamp(32px, 5.1vw, 74px); position: relative; z-index: 1; }
.hero h1 { margin-top: 12px; }
.hero h1 span { display: block; text-wrap: balance; word-break: auto-phrase; }
.hero-lead { margin-top: 10px; color: var(--body); font-size: clamp(15px, 1.55vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 100px;
  background: #23599f;
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}
.primary-link:hover { background: #164780; }
.feature-link { font-size: 14px; font-weight: 650; }
.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 440px;
  margin: 20px 20px 20px 8px;
  border-radius: 23px;
  overflow: hidden;
  background: #e7eff8;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.hero-art figcaption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  padding: 2px 9px;
  border-radius: 100px;
  background: #f8fbffeb;
  color: #42566c;
  font-size: 10px;
}
.hero-art figcaption a { white-space: nowrap; }

.story, .together {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 90px);
  align-items: center;
}
.story { padding: clamp(66px, 8.5vw, 118px) clamp(0px, 4.3vw, 63px); }
.story h2, .feature h2, .together h2 { margin-top: 12px; }
.story-text { display: grid; gap: 14px; }
.story-text p, .together-copy > p:last-child { font-size: 16px; line-height: 1.95; color: var(--body); }
.source-link { width: fit-content; font-size: 12px; line-height: 1.7; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5.1vw, 74px);
  border-radius: 35px;
  border: 1px solid #e2eaf2;
  background: linear-gradient(135deg, #fff 15%, #eef5fd);
}
.steps {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 28px 0;
  padding: 0;
}
.steps li { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 13px; align-items: start; }
.step-number {
  display: grid;
  place-items: center;
  height: 33px;
  border: 1px solid #d2e3f6;
  border-radius: 50%;
  background: #eff6fe;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}
.steps h3 { font-size: 17px; }
.steps p { margin-top: 2px; color: var(--body); font-size: 14px; line-height: 1.8; }

.preview-controls { min-inline-size: 0; border: 0; margin: 0; padding: 0; }
.preview-controls legend { margin-bottom: 8px; padding: 0; color: var(--quiet); font-size: 12px; font-weight: 700; }
.options { display: flex; flex-wrap: wrap; gap: 7px; }
.options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.options label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid #c6d8ed;
  border-radius: 100px;
  background: #fff;
  color: #344f72;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.options label:hover { border-color: #8baed9; }
.options input:checked + label { background: #e2effe; color: #1a477f; border-color: #739acb; }
.options input:focus-visible + label { outline: 3px solid #1964c2; outline-offset: 3px; }
.route-note { margin-top: 17px; color: var(--quiet); font-size: 13px; }
.route-note b { color: var(--blue); }
.route-note span { margin-inline: .22em; }
.feature-visual { min-width: 0; text-align: center; }
.map-kicker { margin-bottom: 8px; color: var(--quiet); font-size: 12px; font-weight: 700; }
.preview-figures { position: relative; }
.preview-figure { display: none; }
.preview-flood,
.feature:has(#view-duration:checked) .preview-duration,
.feature:has(#view-inland:checked) .preview-inland,
.feature:has(#view-surge:checked) .preview-surge,
.feature:has(#view-tsunami:checked) .preview-tsunami,
.feature:has(#view-sediment:checked) .preview-sediment,
.feature:has(#view-debris:checked) .preview-debris,
.feature:has(#view-slope:checked) .preview-slope { display: block; }
.feature:has(.options input:checked:not(#view-flood)) .preview-flood { display: none; }
.map-frame {
  overflow: hidden;
  border: 1px solid #bccfe2;
  border-radius: 19px;
  background: #e6eff8;
  box-shadow: 0 12px 25px #244a761a;
}
.map-frame img { width: 100%; height: auto; }
.preview-figure figcaption { margin-top: 11px; color: var(--ink); font-size: 13px; }
.preview-figure figcaption p { color: var(--body); line-height: 1.6; }
.map-legend { width: fit-content; margin: 6px auto 0; }
.map-legend summary { min-height: 32px; padding: 5px 10px; color: var(--blue); font-size: 12px; cursor: pointer; }
.map-legend img { max-width: 210px; margin: 4px auto 8px; }
.map-credit { margin-top: 7px; color: var(--quiet); font-size: 11px; }

.together { padding-block: clamp(70px, 9vw, 118px); gap: clamp(24px, 5.7vw, 82px); }
.together-copy { grid-column: 2; grid-row: 1; padding-inline-end: clamp(0px, 2vw, 30px); }
.together-copy > p:last-child { margin-top: 21px; }
.together-art {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  border: 1px solid #e1eaf3;
  border-radius: 30px;
  background: #eef7ff;
  aspect-ratio: 1.04;
}
.together-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58.5%;
}
.together-art figcaption {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #ffffffed;
  color: var(--quiet);
  font-size: 10px;
}

.acquisition { padding-bottom: 55px; }
.app-card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 37px 28px;
  border: 1px solid #deebf8;
  border-radius: 30px;
  background: #edf5fe;
}
.app-card img {
  flex: 0 0 auto;
  border-radius: 22px;
  box-shadow: 0 3px 14px #2d4a6c24, 0 0 0 1px #2d4a6c1a;
}
.app-card h2 { margin-top: 6px; font-size: clamp(28px, 4.1vw, 44px); }
.app-card-link { margin-top: 12px; }
.coverage { margin: 22px auto 0; width: min(830px, 100%); color: var(--quiet); font-size: 12px; line-height: 1.8; }
.coverage strong { display: block; color: var(--ink); }

.site-footer { background: #eef2f6; border-top: 1px solid #e0e7ee; }
.footer-inner { align-items: flex-start; padding-block: 24px; color: var(--quiet); font-size: 12px; }
.site-footer a { color: #344b66; }

@media (max-width: 920px) {
  .shell { width: calc(100% - 40px); }
  .hero { min-height: 440px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero-art { min-height: 400px; }
  .story { gap: 24px; padding-inline: 10px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .site-header .nav-section { display: none; }
  .wordmark { font-size: 15px; }
  .wordmark img { width: 32px; height: 32px; }
  .hero { display: flex; flex-direction: column; margin-top: 15px; min-height: 0; border-radius: 25px; }
  .hero-copy { align-self: stretch; padding: 28px 22px 19px; }
  .hero h1 { font-size: clamp(31px, 8.45vw, 48px); }
  .hero-actions { margin-top: 17px; }
  .hero-art { min-height: 0; aspect-ratio: 1.16; margin: 0 10px 10px; border-radius: 17px; }
  .hero-art img {
    object-position: center 54%;
  }
  .hero-art figcaption { right: 10px; bottom: 9px; }
  .story, .feature, .together { grid-template-columns: 1fr; gap: 22px; }
  .story { padding: 56px 8px; }
  .story-text p, .together-copy > p:last-child { font-size: 15px; }
  .feature { padding: 27px 21px 23px; border-radius: 25px; }
  .feature h2 { font-size: clamp(29px, 7.8vw, 43px); }
  .steps { margin-block: 20px; }
  .map-frame { border-radius: 15px; }
  .together { padding-block: 59px; }
  .together-copy, .together-art { grid-column: auto; grid-row: auto; }
  .together-copy { padding-inline: 8px; }
  .together-copy > p:last-child { margin-top: 13px; }
  .together-art { border-radius: 25px; }
  .app-card { justify-content: flex-start; gap: 13px; padding: 22px 17px; border-radius: 24px; }
  .app-card img { width: 60px; height: 60px; border-radius: 14px; }
  .app-card .eyebrow { font-size: 14px; }
  .app-card h2 { font-size: clamp(22px, 6.5vw, 34px); }
  .acquisition { padding-bottom: 38px; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .hero-copy { padding-inline: 16px; }
  .hero h1 { font-size: clamp(28px, 8.7vw, 31px); }
  .feature { padding-inline: 14px; }
  .options { gap: 5px; }
  .options label { padding-inline: 8px; }
}
