:root {
  color: #142438;
  background: #f6f8fb;
  font-family: system-ui, "Yu Gothic UI", sans-serif;
  line-height: 1.7;
  --blue: #174b88;
  --navy: #102741;
  --border: #d6e0eb;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #2c72bc; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: white; padding: .5rem; }
.skip:focus { top: 0; z-index: 2; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
header { background: white; border-bottom: 1px solid var(--border); }
.bar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-weight: 850; color: var(--navy); text-decoration: none; }
.logo i { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #123661 50%, #5089bd 50%); }
nav { display: flex; gap: .9rem; flex-wrap: wrap; }
#nav { display: none; width: 100%; padding-bottom: 1rem; }
#nav.open { display: flex; }
main { min-height: 65vh; padding-block: 30px 55px; }
main section + section { margin-top: 42px; }
.hero { display: grid; gap: 30px; padding: clamp(22px, 5vw, 58px); background: #102741; color: #fff; border-radius: 24px; }
.hero h1 { color: inherit; }
.hero p { max-width: 34ch; color: #d6e7fc; }
.kicker { letter-spacing: .12em; font-weight: 700; font-size: .8rem; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.2; margin: .2em 0; color: var(--navy); }
h2 { margin-top: 1.25em; }
h3 { margin: .4em 0; line-height: 1.4; }
.hero-art { align-self: center; background: #163755; padding: 20px; border-radius: 18px; border: 1px solid #426485; }
.hero-art span { color: #b6d7ff; font-size: .72rem; letter-spacing: .2em; }
.hero-art div { border-top: 1px solid #55718c; margin-top: .65rem; padding-top: .6rem; color: #a8d1ff; }
.hero-art b { color: white; margin-left: .6rem; }
.primary, .secondary, button { display: inline-block; padding: .55rem .8rem; border-radius: 9px; cursor: pointer; text-decoration: none; }
.primary { background: var(--blue); color: white; border: 1px solid transparent; font-weight: 700; }
.hero .primary { color: #132e4d; background: #d5eaff; }.secondary { color: white; }
button { background: white; color: var(--navy); border: 1px solid var(--border); }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 250px),1fr)); gap: 16px; }
.card, .empty, .filters, .reading, .toc, output { background: white; border: 1px solid var(--border); border-radius: 15px; padding: 18px; }
.card { height: 100%; transition: box-shadow .18s, transform .18s; }
.card:hover, .card:focus-within { box-shadow: 0 8px 23px #14345515; transform: translateY(-2px); }
img { display: block; width: 100%; height: auto; border-radius: 10px; }
.meta, .crumb { color: #4d6179; font-size: .88rem; }
.crumb { margin-bottom: 20px; }
.arrow { font-weight: 650; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.filters label { display: grid; flex: 1 1 160px; }
.filters input, .filters select { width: 100%; padding: .4rem; border: 1px solid #8da1b7; border-radius: 6px; }
.reading { max-width: 850px; margin-inline: auto; padding: clamp(18px, 4vw, 48px); }
.notice { background: #e7f0fa; border-left: 3px solid #3c6da4; padding: .6rem; }
.toc { display: block; margin-block: 1.4rem; }
.table-scroll { overflow: auto; background: white; border: 1px solid var(--border); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--border); min-width: 100px; }
th { background: #e8f0fa; }
output { display: block; white-space: pre-line; margin-top: 1rem; }
output:empty { display: none; }
#pagination button { margin: 1rem .4rem 0 0; }
[aria-current="page"] { background: var(--blue); color: white; }
footer { border-top: 1px solid var(--border); background: #eaf0f7; padding-block: 24px; }
footer nav { margin: .55rem 0; font-size: .88rem; }
@media (min-width: 768px) {
  #menu { display: none; }
  #nav { display: flex; width: auto; padding: 0; }
  .hero { grid-template-columns: 1.3fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.home-hero {
  display: grid;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(22px, 5vw, 64px);
  border: 1px solid #d5e3f0;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 35%, #e3effb);
}
.home-topic { color: #174b88; font-size: .85rem; font-weight: 750; letter-spacing: .12em; }
.home-copy h1 { font-size: clamp(2rem, 5.5vw, 4rem); letter-spacing: -.045em; }
.home-copy p { max-width: 37ch; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.case-study { color: white; background: #102741; padding: clamp(16px, 3vw, 32px); border-radius: 19px; }
.case-label, .case-note { color: #c4daef; font-size: .83rem; }
.case-result { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 20px; }
.case-result strong { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: #b9defc; }
.case-row { display: grid; grid-template-columns: max-content minmax(32px, 1fr) max-content; align-items: center; gap: .65rem; margin-block: 12px; }
.case-track { background: #294763; border-radius: 5px; overflow: hidden; }
.before-bar, .after-bar { height: 9px; background: #acc9e5; }
.after-bar { width: 33.33%; background: #72d6ce; }
.case-note { margin-bottom: 0; }
.home-section .card { border-top: 3px solid #97b9d9; padding: 22px; }
@media (min-width: 840px) { .home-hero { grid-template-columns: 1.15fr 1fr; } }
