/* =====================================================================
   MEDISTORY — 병원 브랜딩·마케팅 에이전시
   Static rebuild. Pure CSS design system. Light theme, responsive.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0c1b2a;   /* primary text / dark surfaces */
  --ink-soft:   #2b3a4a;
  --muted:      #5d6b7a;   /* secondary text */
  --line:       #e4eaf0;   /* hairlines */
  --bg:         #ffffff;
  --surface:    #f5f8fb;   /* tinted section bg */
  --surface-2:  #eef3f8;

  --brand:      #0e6ba8;   /* azure — primary brand */
  --brand-ink:  #0a4f7d;   /* darker brand for text on light */
  --brand-soft: #e7f1f8;
  --accent:     #12b3a6;   /* teal — energy accent */
  --accent-ink: #0c7d74;

  --radius:     5px;
  --radius-sm:  3px;
  --shadow-sm:  0 1px 2px rgba(12,27,42,.06), 0 1px 3px rgba(12,27,42,.04);
  --shadow-md:  0 8px 24px rgba(12,27,42,.08);
  --shadow-lg:  0 24px 60px rgba(12,27,42,.14);

  --container:  1160px;
  --gap:        clamp(1rem, 3vw, 2rem);

  --ff: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
        "Malgun Gothic", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--surface); }
.section--ink { background: var(--ink); color: #dce6f0; }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.section--ink .eyebrow { color: var(--accent); }
.section-head { max-width: 720px; margin-inline: auto; }
.section-head.center { text-align: center; }
h2.title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); }
.section--ink .lead { color: #9fb3c6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: var(--radius); font-weight: 700; font-size: .98rem;
  letter-spacing: -.01em;
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-height: 50px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(14,107,168,.28); }
.btn--primary:hover { background: var(--brand-ink); box-shadow: 0 10px 26px rgba(14,107,168,.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-soft); }
.btn--accent { background: var(--accent); color: #04332f; }
.btn--accent:hover { background: #0fa093; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark {
  width: 30px; height: 30px; border-radius: 6px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 16px;
  box-shadow: 0 4px 12px rgba(14,107,168,.35);
}
.brand .mark svg { width: 18px; height: 18px; }
.brand b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .55rem .85rem; border-radius: 4px; font-weight: 600; font-size: .96rem; color: var(--ink-soft);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-links a.is-active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-2px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #eaf2f9;
  background: var(--ink) center right / cover no-repeat;
  background-image: var(--hero-bg, none);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(18,179,166,.26), transparent 60%),
    radial-gradient(900px 520px at 8% 110%, rgba(14,107,168,.42), transparent 55%),
    linear-gradient(102deg, rgba(8,18,30,.97) 26%, rgba(8,18,30,.82) 50%, rgba(8,18,30,.52) 100%);
}
.hero .container { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.55rem); letter-spacing: -0.035em; line-height: 1.16; }
.hero h1 .hl { color: var(--accent); }
.hero p.sub { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #aec3d6; max-width: 38ch; }
.hero .cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-badges { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: #8ea7bd; font-size: .9rem; }
.hero-badges b { color: var(--accent); }

/* Hero stat panel */
.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 1.6rem;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.hero-panel .panel-title { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.1); border-radius: 5px; overflow: hidden; }
.stat { background: rgba(8,20,32,.55); padding: 1.15rem 1.1rem; }
.stat .num { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat .num small { font-size: .62em; color: var(--accent); font-weight: 700; }
.stat .lbl { font-size: .82rem; color: #9fb3c6; margin-top: .15rem; }

/* ---------- Generic stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem,3vw,2rem); }
.stat-band .item { text-align: center; }
.stat-band .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.stat-band .num small { font-size: .5em; color: var(--accent-ink); }
.stat-band .lbl { color: var(--muted); font-size: .92rem; margin-top: .25rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ee; }
.card .ic {
  width: 50px; height: 50px; border-radius: 7px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--brand-soft); color: var(--brand);
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card .num-badge { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--accent-ink); }

/* feature list with check */
.checklist { display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Service detail blocks ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem, 7vw, 5rem); }
.feature-row.reverse .media { order: -1; }
.feature-row .media {
  border-radius: var(--radius); background: linear-gradient(135deg, var(--brand-soft), #eafaf7);
  border: 1px solid var(--line); min-height: 280px; display: grid; place-items: center; padding: 2rem;
  position: relative; overflow: hidden;
}
.media-num { font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; color: var(--brand); opacity: .16; letter-spacing: -.04em; }
.media-tag { position: absolute; bottom: 1.4rem; left: 1.6rem; right: 1.6rem; font-weight: 700; color: var(--brand-ink); font-size: 1.05rem; }

/* image-backed media slot (natural ratio, framed) */
.media.media-img { padding: 0; min-height: 0; background: #eef3f8; display: block; }
.media.media-img img { width: 100%; height: auto; display: block; }
.media.media-img figcaption { padding: .7rem 1rem; font-size: .8rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
/* centered designed graphic (e.g. CEO card) on dark panel */
.media.media-card { background: linear-gradient(135deg, var(--ink), var(--brand-ink)); }
.media.media-card img { width: auto; max-width: 88%; max-height: 330px; border-radius: 6px; box-shadow: var(--shadow-md); }

/* figure inside a case study */
.case-figure { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #fff; }
.case-figure img { width: 100%; height: auto; display: block; }
.case-figure figcaption { padding: .7rem 1rem; font-size: .8rem; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Case studies ---------- */
.case {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm);
}
.case-head { padding: 1.6rem 1.7rem; border-bottom: 1px dashed var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.case-head .tag { font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--brand); padding: .3rem .7rem; border-radius: 3px; white-space: nowrap; }
.case-head h3 { font-size: 1.25rem; }
.case-body { padding: 1.6rem 1.7rem; }
.case-body p { color: var(--muted); font-size: .97rem; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 5px; overflow: hidden; margin-top: 1.3rem; }
.metric { background: var(--surface); padding: 1.05rem .9rem; text-align: center; }
.metric .m-num { font-weight: 800; font-size: clamp(1.2rem,2.4vw,1.55rem); color: var(--brand); letter-spacing: -.02em; }
.metric .m-num small { font-size: .56em; color: var(--accent-ink); font-weight: 700; }
.metric .m-lbl { font-size: .78rem; color: var(--muted); margin-top: .2rem; line-height: 1.4; }

/* ---------- Portfolio ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.pf-item {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease;
}
.pf-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pf-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.pf-item:hover .pf-thumb img { transform: scale(1.05); }
.pf-meta { padding: 1.1rem 1.2rem 1.3rem; }
.pf-meta .cat { font-size: .76rem; font-weight: 800; letter-spacing: .08em; color: var(--accent-ink); text-transform: uppercase; }
.pf-meta h3 { font-size: 1.05rem; margin-top: .35rem; }
.pf-meta p { font-size: .88rem; color: var(--muted); margin-top: .3rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 8px; background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 360px at 80% -20%, rgba(18,179,166,.4), transparent 60%), radial-gradient(700px 360px at 10% 120%, rgba(14,107,168,.5), transparent 55%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.cta-band p { color: #b6cadb; margin-top: .8rem; max-width: 52ch; margin-inline: auto; }
.cta-band .cta-row { margin-top: 1.8rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: #fff; box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ic { width: 42px; height: 42px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row .k { font-size: .82rem; color: var(--muted); }
.info-row .v { font-weight: 600; }
.todo { color: var(--accent-ink); font-weight: 700; }
.form-placeholder {
  border: 2px dashed #c5d6e6; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
  background: var(--surface); color: var(--muted);
}
.form-placeholder .big { font-size: 2.4rem; }
.form-fields { display: grid; gap: 1rem; margin-top: .5rem; }
.field { text-align: left; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 5px; font: inherit; background: #fff; color: var(--ink);
}
.field input:disabled, .field textarea:disabled, .field select:disabled { background: #f0f4f8; color: #9aa9b8; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.25rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1rem; }
.prose p, .prose li { color: var(--ink-soft); font-size: .97rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: .4rem; margin-top: .6rem; }
.prose .meta { color: var(--muted); font-size: .9rem; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  color: #fff; position: relative; overflow: hidden;
  background: var(--ink) center / cover no-repeat;
  background-image: var(--ph-bg, none);
}
.page-hero::before { content:""; position:absolute; inset:0; background:
  radial-gradient(800px 400px at 85% -30%, rgba(18,179,166,.24), transparent 60%),
  radial-gradient(700px 400px at -5% 120%, rgba(14,107,168,.36), transparent 55%),
  linear-gradient(180deg, rgba(8,18,30,.80), rgba(8,18,30,.92)); }
.page-hero .container { position: relative; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.page-hero p { color: #aec3d6; margin-top: .9rem; max-width: 56ch; font-size: clamp(1rem,1.6vw,1.15rem); }
.crumbs { font-size: .85rem; color: #8ea7bd; margin-bottom: 1rem; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9fb3c6; padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer .brand b { color: var(--accent); }
.footer-about { font-size: .92rem; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .92rem; letter-spacing: .04em; margin-bottom: .9rem; }
.footer-col a { display: block; padding: .28rem 0; font-size: .92rem; color: #9fb3c6; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #7c93a8; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Photographic sections ---------- */
/* Dark content section with a faint photo texture behind (set --sec-bg inline) */
.section--photo { position: relative; background: var(--ink) center / cover no-repeat; background-image: var(--sec-bg, none); color: #dce6f0; }
.section--photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,20,33,.93), rgba(9,20,33,.95)); }
.section--photo > .container { position: relative; }

/* Full-bleed photo statement band with text overlay */
.photo-band { position: relative; overflow: hidden; color: #fff; background: var(--ink) center / cover no-repeat; background-image: var(--band-bg, none); }
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,18,30,.92) 30%, rgba(8,18,30,.62) 65%, rgba(12,80,125,.45) 100%); }
.photo-band .container { position: relative; padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.photo-band .band-inner { max-width: 640px; }
.photo-band h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.photo-band p { color: #b6cadb; margin-top: 1rem; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.photo-band .band-stats { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2rem; }
.photo-band .band-stats .num { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.photo-band .band-stats .num small { font-size: .55em; color: var(--accent); font-weight: 700; }
.photo-band .band-stats .lbl { font-size: .86rem; color: #9fb3c6; margin-top: .15rem; }

/* gentle zoom on framed feature photos */
.media.media-img { transition: box-shadow .25s ease; }
.media.media-img img { transition: transform .6s ease; }
.feature-row:hover .media.media-img img { transform: scale(1.03); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Fail open: if JS is disabled, never hide content. */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: .9rem .6rem; border-radius: 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .metric-row { grid-template-columns: 1fr; }
  .metric { text-align: left; display: flex; align-items: baseline; gap: .6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-head { flex-direction: column; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}
