:root {
  --navy-950: #061724;
  --navy-900: #0a2131;
  --navy-800: #103047;
  --steel-700: #274b63;
  --steel-500: #6e8797;
  --steel-300: #b9c7cf;
  --steel-200: #d9e2e7;
  --steel-100: #edf2f4;
  --paper: #f7f8f8;
  --white: #ffffff;
  --signal: #54d7b2;
  --signal-dark: #087d69;
  --caution: #ffb528;
  --danger: #ff766d;
  --offline: #8ca0ae;
  --content: 1180px;
  --radius-sm: 4px;
  --radius-md: 7px;
  --line-dark: rgba(160, 196, 214, .25);
  --line-light: #d8e0e4;
  color-scheme: light;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color: var(--navy-950);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-weight: 800; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: #fff; background: var(--navy-950); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #63c6f2; outline-offset: 3px; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--steel-200); background: rgba(255,255,255,.98); }
.header-inner, .hero-inner, .section-inner, .footer-inner { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-mark { display: block; flex: 0 0 auto; width: 40px; min-width: 40px; height: 40px; min-height: 40px; border-radius: 9px; object-fit: contain; }
.brand-name strong { display: block; font-size: 15px; letter-spacing: .02em; }
nav[aria-label="주요 메뉴"] { display: flex; align-items: center; gap: 28px; margin-left: 20px; font-size: 13.5px; font-weight: 700; }
nav[aria-label="주요 메뉴"] a { padding: 8px 2px; border-bottom: 2px solid transparent; }
nav[aria-label="주요 메뉴"] a:hover { border-bottom-color: var(--navy-800); }
.button.nav-mobile-cta { display: none; }

/* 모바일 메뉴 — 자바스크립트 없이 checkbox+label 로 열고 닫는다. */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label { display: none; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; font-weight: 800; transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { margin-left: auto; color: #fff; background: #073557; }
.button-primary:hover { background: #0b496f; }
.button-signal { color: var(--navy-950); background: var(--signal); }
.button-signal:hover { background: #76e3c4; }
.button-outline { color: currentColor; background: transparent; border-color: currentColor; opacity: .92; }
.button-outline:hover { opacity: 1; background: rgba(255,255,255,.08); }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(103deg, #061a29 0%, #082235 44%, #0a2432 100%); }
.industrial-grid, .closing-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(83,151,183,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(83,151,183,.075) 1px, transparent 1px), radial-gradient(circle at 62% 20%, rgba(56,116,142,.25), transparent 40%); background-size: 40px 40px, 40px 40px, 100% 100%; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; gap: clamp(46px,6vw,72px); padding-block: clamp(60px,7vw,92px) clamp(56px,6vw,80px); }
.hero-inner > * { min-width: 0; max-width: 100%; }
.hero-copy { width: min(100%,880px); display: flex; flex-direction: column; align-items: center; margin-inline: auto; text-align: center; }
.section-code { margin: 0 0 16px; color: #1f5b80; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.section-code.light { color: #77bdd8; }
.hero h1 { margin: 0; font-size: clamp(34px,4vw,50px); line-height: 1.28; letter-spacing: -.03em; }
.hero-description { max-width: 620px; margin: 12px auto 0; color: #d3e0e7; font-size: 16.5px; line-height: 1.75; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-tags li { padding: 6px 12px; border: 1px solid rgba(177,208,222,.36); border-radius: 999px; color: #cfe0e7; font-size: 12px; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.example-note { margin: 14px 0 0; color: #8fa6b2; font-size: 10.5px; text-align: center; }

.command-panel { width: min(100%,760px); min-width: 0; margin-inline: auto; border: 1px solid #607b8b; border-radius: var(--radius-sm); background: rgba(4,20,31,.92); box-shadow: 0 28px 70px rgba(0,7,12,.32); font-size: 11px; }
.panel-topline { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line-dark); color: #a9bdc7; }
.panel-topline > div { display: flex; align-items: center; gap: 14px; }
.panel-topline strong { color: #fff; font-size: 13px; }
.example-label { padding: 3px 7px; border: 1px solid #527184; border-radius: 2px; color: #b9ccd5; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.state-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--offline); }
.state-dot.normal { background: var(--signal); }
.state-dot.caution { background: var(--caution); }

.hero-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 18px; border-bottom: 1px solid var(--line-dark); }
.hero-summary div { padding: 0 12px; border-left: 1px solid rgba(177,208,222,.2); }
.hero-summary div:first-child { padding-left: 0; border-left: 0; }
.hero-summary dt { color: #a9bdc7; font-size: 10.5px; }
.hero-summary dd { margin: 3px 0 0; color: var(--signal); font-size: 20px; font-weight: 900; }
.hero-summary dd small { margin-left: 2px; color: #96abb7; font-size: 11px; font-weight: 600; }

.panel-heading { min-height: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 18px 8px; border-bottom: 1px solid var(--line-dark); }
.panel-heading h2 { margin: 0; color: #e6eef2; font-size: 12px; font-weight: 800; }
.panel-heading > span { color: #7794a3; font-size: 9px; }
.record-timeline { margin: 0; padding: 6px 18px 16px; list-style: none; }
.record-timeline li { padding: 12px 0; border-bottom: 1px solid rgba(135,169,185,.13); }
.record-timeline li:last-child { border-bottom: 0; }
.record-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.record-meta time { color: #a9bdc7; font-size: 10.5px; }
.status { justify-self: start; padding: 2px 8px; border: 1px solid #536e7d; border-radius: 2px; color: #b8c7cf; font-size: 9.5px; }
.status.normal-text { color: var(--signal); border-color: var(--signal-dark); }
.status.caution-text { color: var(--caution); border-color: #9c6c0d; }
.record-timeline strong { display: block; margin-top: 6px; color: #e7eef1; font-size: 12.5px; }
.record-timeline p { margin: 4px 0 0; color: #a8bbc5; font-size: 11px; }
.record-detail { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 5px 0 0; }
.record-detail div { display: flex; gap: 5px; }
.record-detail dt { color: #7f98a6; font-size: 10.5px; }
.record-detail dd { margin: 0; color: #cfdae0; font-size: 10.5px; }

/* ---------------- Section shell ---------------- */
section > .section-inner > .section-code + h2,
section > .section-inner > h2 { margin: 0 0 14px; font-size: clamp(28px,3vw,40px); line-height: 1.24; letter-spacing: -.03em; }
.scope-section, .editorial, .roles-section, .reports-section, .coverage-section, .faq-section { padding: 80px 0; }
.scope-section { background: #fff; }
.scope-lede { max-width: 560px; margin: 0 0 36px; color: #536976; font-size: 15px; }

/* ---------------- 관리 가능 항목 판정표 ---------------- */
.scope-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.scope-list li { position: relative; padding: 22px 24px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: #fff; }
.scope-q { margin: 0 84px 8px 0; color: #142f3f; font-size: 15px; font-weight: 800; line-height: 1.4; }
.scope-a { margin: 0; color: #536976; font-size: 13px; line-height: 1.7; }
.scope-status { position: absolute; top: 22px; right: 22px; padding: 4px 9px; border-radius: 3px; font-size: 10.5px; font-weight: 800; }
.scope-status.supported { color: #087c68; background: #e6f8f3; }
.scope-status.unsupported { color: #7a4600; background: #fff2df; }

/* ---------------- 설비 이력 예시 ---------------- */
.history-feature { background: #eef2f4; padding: 80px 0; }
.history-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 64px; align-items: start; }
.history-copy > p:not(.section-code) { max-width: 460px; margin: 0 0 24px; color: #536976; font-size: 15.5px; line-height: 1.8; }
.equipment-facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 4px 0 0; border-top: 1px solid var(--line-light); }
.equipment-facts div { display: grid; grid-template-columns: 96px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line-light); }
.equipment-facts dt { color: #7e8f98; font-size: 12px; }
.equipment-facts dd { margin: 0; color: #182f3d; font-size: 13px; font-weight: 700; }
.history-sheet { padding: 0 24px 20px; background: #fff; border: 1px solid #cfd9de; border-radius: var(--radius-md); box-shadow: 0 16px 42px rgba(14,41,57,.08); }
.machine-head { min-height: 60px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-light); }
.machine-head span { color: #82939c; font-size: 10px; }
.machine-head strong { font-size: 14px; }
.machine-head b { margin-left: auto; color: #547081; font-size: 10px; font-weight: 700; }
.history-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.filter-pill { padding: 5px 12px; border: 1px solid var(--line-light); border-radius: 999px; color: #6c808a; font-size: 11.5px; font-weight: 700; }
.filter-pill.active { color: #146d99; border-color: #94cce7; background: #eaf6fb; }
.history-sheet ol { margin: 0; padding: 0; list-style: none; }
.history-sheet li { display: grid; grid-template-columns: 52px 16px 1fr; gap: 13px; min-height: 78px; align-items: center; }
.history-sheet time { color: #71858f; font-size: 10px; line-height: 1.5; }
.history-node { position: relative; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1px var(--signal-dark); }
.history-node::before, .history-node::after { content: ""; position: absolute; left: 2px; width: 1px; height: 33px; background: #c8d4da; }
.history-node::before { bottom: 7px; }
.history-node::after { top: 7px; }
.history-sheet li:first-child .history-node::before, .history-sheet li:last-child .history-node::after { display: none; }
.history-node.caution-node { background: var(--caution); box-shadow: 0 0 0 1px #b47706; }
.history-sheet li > div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 6px 12px; }
.history-sheet li b { grid-row: span 2; align-self: stretch; display: flex; align-items: center; color: #24745f; border-right: 1px solid var(--line-light); font-size: 10px; font-weight: 800; }
.history-sheet li strong { font-size: 12px; }
.history-sheet li small { color: #7e9099; font-size: 9.5px; }

/* ---------------- 업무 흐름 ---------------- */
.workflow-steps { display: grid; grid-template-columns: repeat(7,1fr); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.workflow-steps li { position: relative; padding: 26px 14px 0; border-top: 2px solid #9fb0b9; }
.workflow-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #1b5a7b; }
.workflow-steps li > span { display: block; margin-bottom: 8px; color: #1b5a7b; font-size: 17px; font-weight: 900; }
.workflow-steps strong { display: block; font-size: 14px; }
.workflow-steps p { margin: 8px 0 0; color: #71858f; font-size: 12px; line-height: 1.6; }

/* ---------------- 품질관리자 화면 ---------------- */
.qm-section { padding: 80px 0; background: #fff; }
.qm-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }
.qm-card { padding: 24px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: #fbfcfc; }
.qm-card h3 { margin: 0 0 12px; font-size: 16px; }
.qm-fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.qm-fields li { padding: 4px 9px; border: 1px solid var(--line-light); border-radius: 3px; color: #536976; font-size: 10.5px; background: #fff; }
.qm-card p { margin: 0; color: #6c808a; font-size: 13px; line-height: 1.7; }

/* ---------------- 모바일/웹 역할 ---------------- */
.roles-section { background: #eef2f4; }
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.roles-card { padding: 28px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: #fff; }
.roles-card h3 { margin: 0 0 6px; font-size: 18px; }
.roles-audience { margin: 0 0 18px; color: #6c808a; font-size: 12.5px; }
.roles-card ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.roles-card li { position: relative; padding-left: 14px; color: #395260; font-size: 13px; }
.roles-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal-dark); }

/* ---------------- 신뢰성 ---------------- */
.trust-band { padding: 80px 0; color: #fff; background: linear-gradient(115deg, #0c2b3e, #0b3446); }
.trust-points { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin: 32px 0 0; border-block: 1px solid var(--line-dark); }
.trust-points div { min-height: 150px; padding: 22px 20px 0 0; border-left: 1px solid var(--line-dark); padding-left: 20px; }
.trust-points div:first-child { border-left: 0; padding-left: 0; }
.trust-points dt { color: var(--signal); font-size: 13.5px; font-weight: 850; }
.trust-points dd { margin: 12px 0 0; color: #b8c9d2; font-size: 12px; line-height: 1.75; }

/* ---------------- 보고서 ---------------- */
.reports-section { background: #fff; }
.reports-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 32px; }
.report-card { padding: 22px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: #fbfcfc; }
.report-card h3 { margin: 16px 0 10px; font-size: 15.5px; }
.report-card ul { margin: 0; padding: 0; list-style: none; color: #6c808a; font-size: 12.5px; line-height: 2; }
.report-preview { display: grid; gap: 4px; height: 92px; padding: 10px; border: 1px solid var(--line-light); border-radius: var(--radius-sm); background: #fff; }
.report-preview-matrix { grid-template-columns: repeat(6,1fr); }
.report-preview-matrix span { background: repeating-linear-gradient(180deg,#e3ecef 0 6px,#f4f7f8 6px 12px); border-radius: 2px; }
.report-preview-blocks { grid-template-rows: repeat(3,1fr); }
.report-preview-blocks span { border: 1px solid var(--line-light); border-radius: 2px; background: #eef3f4; }
.report-preview-history { grid-template-rows: repeat(4,1fr); }
.report-preview-history span { border-left: 3px solid var(--signal-dark); border-radius: 2px; background: #eef3f4; }
.reports-note { max-width: 640px; margin: 28px 0 18px; color: #71858f; font-size: 12.5px; }

/* ---------------- 지원 범위 ---------------- */
.coverage-section { background: #eef2f4; }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.coverage-col h3 { margin: 0 0 16px; font-size: 16px; }
.coverage-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.coverage-list li { position: relative; padding-left: 20px; font-size: 13.5px; }
.coverage-list.supported li { color: #182f3d; }
.coverage-list.supported li::before { content: "지원"; position: absolute; left: 0; top: 1px; padding: 1px 5px; border-radius: 2px; color: #087c68; background: #e6f8f3; font-size: 9px; font-weight: 800; transform: translateX(-100%) translateX(-6px); }
.coverage-list.unsupported li { color: #6c808a; }
.coverage-list.unsupported li::before { content: "미지원"; position: absolute; left: 0; top: 1px; padding: 1px 5px; border-radius: 2px; color: #7a4600; background: #fff2df; font-size: 9px; font-weight: 800; transform: translateX(-100%) translateX(-6px); }
.coverage-list li { margin-left: 52px; }
.coverage-caption { max-width: 480px; margin: 20px 0 0 52px; padding: 16px 18px; border-left: 3px solid var(--signal-dark); background: #fff; color: #536976; font-size: 12.5px; line-height: 1.75; }

/* ---------------- FAQ ---------------- */
.faq-section { background: #fff; }
.faq-list { display: grid; gap: 10px; margin-top: 32px; }
.faq-list details { padding: 4px 22px; border: 1px solid var(--line-light); border-radius: var(--radius-md); background: #fbfcfc; }
.faq-list summary { padding: 16px 0; color: #142f3f; font-size: 14.5px; font-weight: 750; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: #1f5b80; font-weight: 900; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0 0 18px; color: #536976; font-size: 13.5px; line-height: 1.75; }

/* ---------------- Closing / Footer ---------------- */
.closing { position: relative; overflow: hidden; padding: 100px 0; color: #fff; text-align: center; background: var(--navy-950); }
.closing-grid { opacity: .75; }
.closing-inner { position: relative; }
.closing h2 { margin: 0; font-size: clamp(30px,3.8vw,44px); line-height: 1.3; }
.closing p:not(.section-code) { max-width: 560px; margin: 22px auto 0; color: #b8c9d2; font-size: 15px; line-height: 1.75; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

footer { padding: 28px 0 22px; color: #fff; background: #04111a; }
.footer-inner { display: flex; align-items: center; gap: 14px; }
.brand-mark.inverse { width: 32px; min-width: 32px; height: 32px; min-height: 32px; border-radius: 7px; }
.footer-inner strong { font-size: 12px; letter-spacing: .08em; }
.footer-inner > span:last-child { margin-left: auto; color: #8399a5; font-size: 11px; }
.footer-links { display: flex; align-items: center; gap: 16px; margin-left: 20px; font-size: 11px; }
.footer-links a { color: #d9e7ed; }
.footer-links a:hover { color: var(--signal); }
.footer-contact { width: min(calc(100% - 48px), var(--content)); margin: 14px auto 0; color: #8399a5; font-size: 11px; text-align: right; }
.footer-contact a { color: #b9d0da; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .nav-toggle-label { position: relative; z-index: 11; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; cursor: pointer; }
  .nav-toggle-label span { display: block; height: 2px; border-radius: 1px; background: var(--navy-950); }
  .nav-toggle-input:focus-visible + .nav-toggle-label { outline: 3px solid #63c6f2; outline-offset: 3px; }
  nav[aria-label="주요 메뉴"] { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; display: flex; flex-direction: column; align-items: stretch; gap: 0; max-height: 0; overflow: hidden; margin: 0; border-bottom: 1px solid var(--steel-200); background: #fff; transition: max-height .22s ease; }
  nav[aria-label="주요 메뉴"] a { padding: 16px 24px; border-bottom: 1px solid var(--steel-100); }
  .button.nav-mobile-cta { display: flex; margin: 14px 24px 20px; }
  .nav-toggle-input:checked ~ nav[aria-label="주요 메뉴"] { max-height: 520px; }
  .history-layout { grid-template-columns: 1fr; gap: 40px; }
  .workflow-steps { grid-template-columns: repeat(2,1fr); gap: 28px; row-gap: 28px; }
  .workflow-steps li { border-top: 0; padding-top: 0; padding-left: 20px; border-left: 2px solid #9fb0b9; }
  .workflow-steps li::before { top: 0; left: -5px; }
  .qm-cards, .roles-grid, .reports-grid { grid-template-columns: 1fr; }
  .coverage-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-points { grid-template-columns: repeat(2,1fr); }
  .trust-points div:nth-child(3) { border-left: 0; padding-left: 0; }
  .scope-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner, .hero-inner, .section-inner, .footer-inner { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 60px; gap: 10px; }
  .brand-name { display: none; }
  .brand-mark { width: 34px; min-width: 34px; height: 34px; min-height: 34px; }
  .header-cta { min-height: 40px; padding-inline: 14px; font-size: 12px; }
  .hero-inner { gap: 40px; padding-block: 52px 44px; }
  .hero h1 br { display: none; }
  .hero h1 { font-size: clamp(28px,8vw,36px); }
  .hero-description br { display: none; }
  .hero-description { font-size: 15px; }
  .hero-summary { grid-template-columns: repeat(2,1fr); row-gap: 14px; }
  .hero-summary div:nth-child(3) { border-left: 0; padding-left: 0; }
  .scope-section, .editorial, .history-feature, .qm-section, .roles-section, .trust-band, .reports-section, .coverage-section, .faq-section, .closing { padding: 60px 0; }
  .workflow-steps { grid-template-columns: 1fr; }
  .roles-card ul { grid-template-columns: 1fr; }
  .trust-points { grid-template-columns: 1fr; }
  .trust-points div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 20px; }
  .trust-points div:first-child { border-top: 0; padding-top: 0; }
  .coverage-list li, .coverage-caption { margin-left: 0; }
  .coverage-list li { padding-left: 0; padding-top: 22px; }
  .coverage-list li::before { position: static; display: inline-block; margin-bottom: 4px; transform: none; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > span:last-child { width: 100%; margin-left: 0; }
  .footer-links { width: 100%; margin: 8px 0 0; flex-wrap: wrap; }
  .footer-contact { width: min(calc(100% - 28px), var(--content)); text-align: left; line-height: 1.7; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 26px; }
  .button { min-height: 44px; padding-inline: 16px; }
  .hero-summary { grid-template-columns: 1fr 1fr; }
  .record-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
