/* Shared visual finish. Keep the cinematic scene and document structure intact. */
:root {
  color-scheme: dark;
  --bg: #101820;
  --surface: #19232c;
  --bg2: #151f28;
  --text-primary: #eceee8;
  --text-secondary: #bdc7cc;
  --text: var(--text-primary);
  --text2: var(--text-secondary);
  --muted: #a7b5be;
  --navy: #d6dfe0;
  --accent: #d99060;
  --accent-text: #efb38b;
  --a: var(--accent-text);
  --b: var(--navy);
  --a-rgb: 239,179,139;
  --b-rgb: 214,223,224;
  --border-subtle: #2e3a43;
  --border-strong: #53616a;
  --border: var(--border-subtle);
  --border2: var(--border-strong);
  --rule: var(--border-strong);
  --card: var(--surface);
  --nav-bg: var(--bg);
  --radius: 2px;
}
body { background: var(--bg); color: var(--text); }
::selection { background: #eeb18b; color: #101820; }
a { text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-text); outline-offset: 5px;
}
.site-nav { background: var(--bg); border-color: var(--border-subtle); }
.site-footer { background: #0c131a; padding-top: 48px; }
.site-footer .footer-identity > a { font-weight: 650; letter-spacing: -.02em; }
.label, .editorial-kicker, .essay-meta { color: var(--accent-text); }
.btn-primary, .form-submit, .citation-copy {
  background: var(--text-primary); color: var(--bg); border-color: var(--text-primary);
}
.hero-actions .btn-primary, .hi-button-primary, .hi-site-link,
.contact-buttons a:first-child { color: var(--bg) !important; }
.article-shell .no { color: #f09a91; }
.guide-entry a { color: var(--accent-text); }
.lang-banner { border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; background: transparent; padding: 0 0 16px; font-size: 14px; }
.lang-banner:hover { background: transparent; }
.btn-primary:hover, .form-submit:hover, .citation-copy:hover {
  background: var(--accent-text); color: var(--bg); border-color: var(--accent-text);
}
.btn-secondary:hover { background: var(--surface); }
.language-toggle-btn.is-active, .case-status--completed {
  background: var(--text-primary) !important; color: var(--bg) !important;
}
.language-toggle, .language-toggle-btn, .citation-copy { border-radius: 2px; }
.modal-box, input, textarea, input:focus, textarea:focus { background: var(--surface); }
.citation-text, .guide-entry { background: var(--surface); color: var(--text-secondary); }
.guide-entry { border-left-color: var(--accent); }
.citation-copy { font-size: 14px; }
.article-table-wrap { border-color: var(--border-strong); }
.article-data-table thead th { background: var(--surface); }
.article-data-table tbody tr:nth-child(even) { background: #ffffff03; }
.port-card, .blog-card--image, .port-card:hover, .blog-card--image:hover {
  background: transparent !important; border-radius: 0; box-shadow: none; transform: none;
}
.featured-case { background: transparent; border-radius: 0; }
.article-hero-image, .article-inline-image, .essay-media picture,
.essay-inline-image picture { background: transparent; }
.article-hero-image picture, .article-inline-image picture, .essay-media picture {
  border: 1px solid var(--border-subtle); border-radius: 0;
}
.article-hero-image img, .article-inline-image img { filter: none; }
.article-hero-image figcaption, .article-inline-image figcaption,
.essay-inline-image figcaption { padding-top: 10px; color: var(--muted); line-height: 1.75; }

/* The scene leads into the same canvas; chapter rules carry the change of pace. */
.story-trust .field-credentials { margin-top: 0; padding-block: 28px; border-top: 0; }
.field-home .portfolio-section { padding-block: clamp(56px, 6vw, 88px); }
.field-home .section-heading { align-items: end; }
.field-home .section-heading h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.25; }
.field-home .portfolio-section > .container > .section-heading { margin-bottom: 40px; }
.field-home .section-heading .editorial-kicker { color: var(--accent-text); }
.field-home .project-category { color: var(--accent-text); }
.field-home .project-image { background: var(--surface); border: 1px solid var(--border-subtle); }
.field-home .project-card:last-child img { background: var(--surface); }
.field-home .project-end a, .field-home .practice-grid a,
.field-home .evidence-grid a { color: var(--accent-text); }
.field-home .project-copy h3 { letter-spacing: -.035em; }
.field-home .practice-grid article { padding-top: 24px; }
.field-home .practice-number { color: var(--muted); font-variant-numeric: tabular-nums; }
.field-home .practice-grid h3 { margin-top: 18px; margin-bottom: 8px; }
.field-home .practice-subtitle { color: var(--text-primary); }
.field-home .evidence-type { color: var(--accent-text); }
.field-home .evidence-grid h3 { line-height: 1.4; }
.field-home .note-item h3 { line-height: 1.4; }
.field-home .note-item h3 a:hover, .field-notes h4 a:hover { color: var(--accent-text); }
.field-home .portfolio-contact { padding-top: 40px; }
.field-home .portfolio-contact h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1.3; }

/* Interior pages share the cover's type hierarchy, with a quieter reading measure. */
.article-page { padding: 0; }
.article-shell { padding-top: 140px; padding-bottom: 76px; }
.article-shell > section { padding-block: 0; }
.article-shell h1, .profile-heading h1, .cases-hero h1 {
  font-size: clamp(36px, 4.6vw, 58px); font-weight: 750; line-height: 1.24;
  letter-spacing: -.035em; text-wrap: pretty;
}
.article-shell h1 { margin-bottom: 26px; }
.article-shell .article-lead { color: #d2dadd; font-size: clamp(19px, 1.65vw, 22px); line-height: 1.75; }
.article-shell p, .article-shell li { line-height: 1.85; }
.article-shell strong { color: var(--text-primary); font-weight: 700; }
.article-shell h2, .case-refined .article-shell .case-chapter {
  margin: 48px 0 20px; padding-top: 24px; border-top: 1px solid var(--border-strong);
  font-size: clamp(27px, 2.7vw, 34px); line-height: 1.35; font-weight: 750;
  letter-spacing: -.025em; text-wrap: pretty;
}
.article-shell h3 { font-size: clamp(22px, 2vw, 27px); font-weight: 700; line-height: 1.4; }
.article-shell .chapter-label { font-size: 11px; letter-spacing: .1em; margin-bottom: 10px; }
.article-shell .essay-meta { font-size: 12px; line-height: 1.7; }
.article-shell .answer-summary, .article-shell .article-key-finding {
  border-left: 2px solid var(--accent); padding-left: 24px;
}
.article-shell .answer-summary h2, .article-shell .citation-box h2,
.article-shell .writing-list-card h2, .article-shell .topic-map-card h2 {
  border-top: 0; padding-top: 0; margin-top: 0;
}
.case-refined .case-summary { border-top: 2px solid var(--accent); padding-block: 22px; margin-block: 28px; }
.case-summary dl > div { padding-block: 10px; }
.case-refined .article-hero-image { margin-block: 32px 40px; }
.case-toc a { color: var(--muted); }
.case-refined .case-toc a:hover { color: var(--accent-text); }
.article-shell .citation-box { margin-top: 44px; border-color: var(--border-strong); }
.article-shell .writing-list-card { padding-block: 28px; }
.article-shell .writing-list-card h2 { font-size: clamp(25px, 2.7vw, 32px); margin-bottom: 14px; }
.article-shell .topic-map-card h2 { font-size: 23px; line-height: 1.4; }
.article-shell .topic-map-card { border-color: var(--border-subtle); }
.article-shell .writing-list { gap: 0; }
.profile-heading { padding-top: 136px; }
.profile-heading h1 { margin: 14px 0 0; }
.profile-v2026 h2.stitle, .english-v2026 h2.stitle,
.case-map-header h2 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 750; line-height: 1.3; }
.about-text p { line-height: 1.85; }
.about-photo { border-radius: 0; }
.profile-v2026 .about-text > p[style] { opacity: 1 !important; color: var(--muted); }
.cases-hero { padding-top: 136px; padding-bottom: 44px; }
.cases-page { padding-top: 0; }
.case-filter-nav {
  position: static; width: auto; height: auto; padding: 0; margin: 28px 0 0;
  background: transparent; border: 0; box-shadow: none; backdrop-filter: none;
  display: flex; justify-content: flex-start; gap: 12px 24px; z-index: auto;
}
.case-filter-nav a { padding: 8px 0; border: 0 !important; border-bottom: 1px solid var(--border-strong) !important; border-radius: 0; font-size: 14px; }
.case-map-section { padding-block: 56px; }
.case-map-header { margin-bottom: 32px; }
.case-map-item, .case-map-item--active {
  min-height: 240px; padding: 24px 0; background: transparent; border-radius: 0;
  border-top: 1px solid var(--border-strong); color: var(--text-primary);
}
.case-map-item--active:hover, .case-map-item:hover {
  transform: none; background: transparent; border-top: 1px solid var(--accent);
}
.case-map-number {
  display: block; width: auto; height: auto; border: 0; border-radius: 0;
  color: var(--accent-text); font-size: 12px; margin-bottom: 26px;
}
.case-map-item .case-map-status { color: var(--muted); }
.case-map-item strong { color: var(--text-primary); font-size: 27px; line-height: 1.35; }
.case-map-item span:last-child { color: var(--text-secondary); font-size: 14px; }
.case-card h3 { font-size: 26px; line-height: 1.4; font-weight: 700; }
.case-section-title { font-size: clamp(28px, 3vw, 38px); font-weight: 750; }
.case-card, .press-card, .faq-card { border-color: var(--border-subtle); }
@media (max-width: 760px) {
  .field-home .portfolio-section { padding-block: 52px; }
  .field-home .section-heading { align-items: flex-start; }
  .field-home .portfolio-section > .container > .section-heading { margin-bottom: 28px; }
  .field-home .section-heading h2 { font-size: 34px; }
  .field-home .project-copy h3, .field-home .project-card:first-child h3 { font-size: 30px; line-height: 1.35; }
  .field-home .practice-grid article { padding-top: 20px; }
  .field-home .note-item h3 { font-size: 26px; }
  .article-shell { padding-top: 112px; padding-bottom: 52px; }
  .article-shell h1, .case-refined .article-shell h1 { font-size: 36px; line-height: 1.3; }
  .article-shell h2, .case-refined .article-shell .case-chapter {
    font-size: 28px; margin-top: 36px; padding-top: 20px;
  }
  .article-shell p, .article-shell li { font-size: 16px; line-height: 1.85; }
  .case-refined .case-summary { margin-block: 24px; padding-block: 14px; }
  .case-refined .article-hero-image { margin-block: 26px 32px; }
  .profile-heading, .cases-hero { padding-top: 112px; }
  .cases-hero { padding-bottom: 32px; }
  .case-map-section { padding-block: 40px; }
  .case-map-item, .case-map-item--active { min-height: auto; padding-block: 24px; }
  .case-map-number { margin-bottom: 18px; }
  .case-map-item .case-map-status { margin-top: 0; }
  .site-footer { padding-top: 36px; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --surface: #f1f1ee; --bg2: #f1f1ee;
    --text-primary: #17202a; --text-secondary: #39454c; --muted: #495660;
    --accent-text: #894017; --border-subtle: #ccc; --border-strong: #999; }
  .site-nav, .case-toc, .site-footer, .article-share, .citation-copy { display: none; }
  .article-shell, .case-refined .article-page { padding-top: 0; }
  .article-shell .article-lead { color: var(--text-secondary); }
}

/* Reading navigation uses the existing editorial rules and native disclosure. */
.article-toc { margin: 24px 0 30px; border-block: 1px solid var(--border-strong); }
.article-toc[hidden] { display: none; }
.article-toc summary { padding: 14px 0; min-height: 48px; box-sizing: border-box; color: var(--text-primary); font-size: 15px; font-weight: 650; cursor: pointer; }
.article-toc summary::marker { color: var(--accent-text); }
.article-toc nav { position: static; inset: auto; width: auto; height: auto; display: block; padding: 0 0 14px; margin: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; z-index: auto; }
.article-shell .article-toc ol { list-style: none; padding: 0; margin: 0; }
.article-shell .article-toc li { margin: 0; padding: 0; font-size: 15px; line-height: 1.6; }
.article-toc a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 9px 0; color: var(--text-secondary); text-decoration: none; border-bottom: 1px solid var(--border-subtle); }
.article-toc li:last-child a { border-bottom: 0; }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--accent-text); }
.article-shell :is(h2,h3)[id] { scroll-margin-top: 112px; }
.cases-page #field-safety-diagnosis { padding-top: 32px; }
.cases-page #field-safety-diagnosis .case-section-header { margin-bottom: 24px; }
@media (min-width: 1280px) { .article-toc--mobile { display: none; } }
@media (max-width: 760px) {
  .article-shell :is(h2,h3)[id] { scroll-margin-top: 100px; }
  .cases-hero .case-filter-nav { margin-top: 20px; gap: 8px 22px; }
  .cases-page #field-safety-diagnosis { padding-top: 24px; }
}
@media print { .article-toc { display: none; } }
