:root {
  --navy: #102235;
  --navy-2: #183049;
  --paper: #f6f7f9;
  --white: #ffffff;
  --ink: #17212b;
  --muted: #4b5b69;
  --line: #d7dee5;
  --light-ink: #f6f7f9;
  --light-muted: #cdd7e0;
  --accent: #a8804c;
  --accent-text: #76572f;
  --focus: #e4b870;
  --shadow: 0 22px 60px rgba(16, 34, 53, .14);
  --radius-sm: 2px;
  --radius: 8px;
  --radius-lg: 20px;
  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 104px);
  --display: Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.7; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--navy); background: #dfc59f; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; }
h1 { margin-bottom: 24px; font-size: clamp(2.65rem, 6vw, 5rem); line-height: .99; }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.07; }
h3 { margin-bottom: 12px; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.22; }
p { max-width: 66ch; }
em { color: var(--accent); font-weight: inherit; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; color: var(--navy); background: var(--focus); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.section-shell { width: min(100%, var(--shell)); margin-inline: auto; padding: var(--section) var(--gutter); }
.eyebrow { margin-bottom: 14px; color: var(--accent-text); font-size: .75rem; font-weight: 800; letter-spacing: .14em; line-height: 1.35; text-transform: uppercase; }
.lede { max-width: 64ch; margin-bottom: 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }

.site-header { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 32px; padding: 12px var(--gutter); border-bottom: 1px solid rgba(23, 33, 43, .12); background: rgba(246, 247, 249, .96); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font-size: .9rem; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--navy); background: var(--focus); font-family: var(--display); font-size: .82rem; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.site-nav a { position: relative; padding-block: 8px; color: var(--muted); font-size: .84rem; font-weight: 680; text-decoration: none; }
.site-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.site-nav a[aria-current="page"] { color: var(--navy); }
.menu-toggle { display: none; border: 0; color: var(--navy); background: transparent; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.menu-toggle i, .menu-toggle i::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease; }
.menu-toggle i { position: relative; margin-left: 10px; }
.menu-toggle i::after { position: absolute; top: 6px; content: ""; }

.hero { display: grid; width: 100%; max-width: none; min-height: min(760px, calc(100vh - 78px)); align-items: center; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 360px); gap: clamp(48px, 9vw, 130px); padding-inline: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter))); color: var(--light-ink); background: var(--navy); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 780px; font-size: clamp(3.4rem, 7vw, 6.9rem); }
.hero .eyebrow { color: var(--focus); }
.hero-lede { max-width: 60ch; color: var(--light-muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 780; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-accent { color: var(--navy); background: var(--focus); }
.button-accent:hover { background: #efc985; }
.button-quiet { color: var(--light-ink); border-color: #698096; }
.button-quiet:hover { background: var(--navy-2); }
.button-dark { color: var(--light-ink); background: var(--navy); }
.button-dark:hover { background: var(--navy-2); }
.portrait-frame { width: min(100%, 320px); margin: 0; justify-self: end; }
.portrait-frame img { width: 100%; max-height: 430px; border: 1px solid #476078; border-radius: 120px 120px var(--radius) var(--radius); object-fit: contain; box-shadow: var(--shadow); }
.portrait-frame figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #476078; color: var(--light-muted); font-size: .78rem; }
.portrait-frame strong { color: var(--light-ink); }

.method { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 2.3fr); gap: clamp(40px, 7vw, 90px); }
.section-heading h2 { max-width: 700px; }
.method-rail { position: relative; display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.method-rail::before { position: absolute; top: 21px; right: 12%; left: 12%; height: 1px; background: var(--accent); content: ""; }
.method-rail li { position: relative; padding: 0 clamp(12px, 2vw, 28px); }
.method-rail li:first-child { padding-left: 0; }
.method-rail li:last-child { padding-right: 0; }
.method-rail span { position: relative; z-index: 1; display: grid; width: 42px; height: 42px; margin-bottom: 24px; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-text); background: var(--paper); font-size: .72rem; font-weight: 800; }
.method-rail p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.method-compact { grid-template-columns: 1fr; }
.method-compact .method-rail span { color: var(--focus); background: var(--navy); }

.section-rule { border-top: 1px solid var(--line); }
.split-heading { display: grid; align-items: end; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 48px; margin-bottom: 48px; }
.split-heading > p { color: var(--muted); }
.expertise-list { display: grid; gap: 16px; }
.expertise-card { display: grid; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); grid-template-columns: 64px minmax(0, 1fr); gap: 24px; }
.card-index { color: var(--accent-text); font-family: var(--display); font-size: 1.6rem; }
.expertise-card p { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tag-list li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .78rem; }
.section-link { margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 780; text-decoration: none; }
.text-link span { color: var(--accent); transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }

.section-ink { width: 100%; max-width: none; color: var(--light-ink); background: var(--navy); padding-inline: max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter))); }
.section-ink .eyebrow { color: var(--focus); }
.section-ink .split-heading > p, .section-ink p { color: var(--light-muted); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case-card { min-height: 310px; padding: clamp(26px, 4vw, 44px); border: 1px solid #3e566d; border-radius: var(--radius); color: var(--light-ink); background: var(--navy-2); }
.case-card.case-featured { grid-column: span 2; min-height: 270px; }
.case-card p { color: var(--light-muted); }
.case-card .text-link { color: var(--light-ink); }

.profile-band, .contact-strip { display: grid; align-items: center; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(32px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.profile-band > div:last-child p { color: var(--muted); }
.feature-story { display: grid; align-items: center; grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr); gap: clamp(40px, 7vw, 90px); }
.story-copy p { color: var(--muted); }
.story-media { max-width: 540px; margin: 0; justify-self: end; }
.story-media img { max-height: 360px; border-radius: var(--radius-lg) var(--radius-sm); object-fit: contain; box-shadow: var(--shadow); }
.contact-strip { border-top: 1px solid var(--line); }
.contact-strip .button { justify-self: end; }

.page-intro { padding-top: clamp(84px, 10vw, 140px); padding-bottom: clamp(54px, 7vw, 88px); }
.page-intro h1 { max-width: 960px; color: var(--navy); }
.page-intro .lede { max-width: 720px; }
.evidence-note, .editorial-line { border-top: 1px solid var(--line); }
.evidence-note h2, .editorial-line h2 { max-width: 900px; }

.case-detail { display: grid; padding-top: 28px; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: clamp(40px, 8vw, 110px); }
.case-facts { align-self: start; border-top: 3px solid var(--accent); background: var(--white); }
.case-facts > div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-facts span { display: block; margin-bottom: 8px; color: var(--accent-text); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-facts p, .case-facts li { color: var(--muted); font-size: .92rem; }
.case-facts ul { margin: 0; padding-left: 18px; }
.case-narrative { max-width: 720px; }
.case-narrative > section { padding-bottom: 56px; }
.case-narrative p { color: var(--muted); }
.number-list { margin: 0; padding: 0; counter-reset: actions; list-style: none; }
.number-list li { position: relative; min-height: 48px; padding: 14px 0 14px 54px; border-top: 1px solid var(--line); counter-increment: actions; }
.number-list li::before { position: absolute; top: 14px; left: 0; color: var(--accent-text); content: "0" counter(actions); font-weight: 800; }
.learning { padding: 34px !important; border-left: 3px solid var(--accent); background: var(--white); }
.learning h2 { margin-bottom: 0; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.next-case { display: flex; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.next-case a { color: var(--navy); font-weight: 750; text-decoration: none; }

.timeline-section { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: clamp(40px, 8vw, 100px); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; padding: 26px 0; border-bottom: 1px solid var(--line); grid-template-columns: 130px minmax(0, 1fr); gap: 24px; }
.timeline-date { color: var(--accent-text); font-size: .78rem; font-weight: 800; }
.timeline-org { margin-bottom: 8px; color: var(--muted); font-weight: 680; }
.timeline-item div > p:last-child { margin-bottom: 0; color: var(--muted); }
.education-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #3c5369; }
.education-item { padding: clamp(26px, 4vw, 42px); background: var(--navy); }
.education-item p:last-child { margin-bottom: 0; color: var(--light-muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { padding: clamp(26px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.project-card:first-child { grid-column: span 2; }
.project-card p:last-child { color: var(--muted); }

.analysis-feature { display: grid; align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 8vw, 100px); }
.analysis-feature figure { max-width: 560px; margin: 0; }
.analysis-feature img { max-height: 380px; border-radius: var(--radius-lg) var(--radius-sm); object-fit: contain; box-shadow: var(--shadow); }
.analysis-feature p { color: var(--muted); }
.contact-layout { display: grid; padding-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); background: var(--white); }
.contact-card h2 { overflow-wrap: anywhere; font-family: var(--body); font-size: clamp(1.2rem, 2.4vw, 1.8rem); letter-spacing: -.02em; }
.contact-card p:last-child { color: var(--muted); }

.article-layout { display: grid; padding-top: 30px; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: clamp(40px, 8vw, 100px); }
.article-layout article { max-width: 720px; }
.article-lead { color: var(--navy); font-family: var(--display); font-size: clamp(1.35rem, 2.7vw, 2.1rem); line-height: 1.35; }
.article-section { padding-top: 34px; border-top: 1px solid var(--line); }
.article-section h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.article-section p { color: var(--muted); }
.article-layout aside { align-self: start; padding: 24px; border-top: 3px solid var(--accent); background: var(--white); }
.article-layout aside p:last-child { margin-bottom: 0; color: var(--muted); }
.gallery { display: grid; padding-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery-item { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 230px; object-fit: contain; background: #e9edf1; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.015); }
.gallery-item span { display: block; padding: 10px 14px; color: var(--navy); font-size: .78rem; font-weight: 750; text-align: left; }
.lightbox { width: min(92vw, 960px); max-height: 90vh; padding: 18px; border: 0; border-radius: var(--radius); color: var(--light-ink); background: var(--navy); }
.lightbox::backdrop { background: rgba(6, 15, 24, .84); }
.lightbox-head, .lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lightbox-head h2 { margin: 0; font-family: var(--body); font-size: 1rem; }
.lightbox button { padding: 9px 12px; border: 1px solid #6c8296; color: var(--light-ink); background: transparent; cursor: pointer; }
.lightbox figure { margin: 18px 0; text-align: center; }
.lightbox figure img { width: auto; max-height: 65vh; margin-inline: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 10px; color: var(--light-muted); font-size: .85rem; }
.not-found { min-height: 70vh; }

.site-footer { display: grid; align-items: end; grid-template-columns: 1.1fr .9fr auto; gap: 40px; padding: 54px var(--gutter); color: var(--light-muted); background: var(--navy); }
.footer-brand { color: var(--light-ink); }
.site-footer p { margin: 12px 0 0; font-size: .8rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer nav a { color: var(--light-muted); font-size: .8rem; }
.copyright { white-space: nowrap; }

.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .42s ease, transform .42s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .site-header { min-height: 70px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; visibility: hidden; padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line); background: var(--paper); opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 10px 0; }
  .menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i::after { top: 0; transform: rotate(90deg); }
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
  .hero h1 { font-size: clamp(3.2rem, 8vw, 5.8rem); }
  .portrait-frame img { max-height: 380px; }
  .method { grid-template-columns: 1fr; }
  .feature-story, .analysis-feature { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: span 2; }
}

@media (max-width: 719px) {
  body { font-size: 16px; line-height: 1.68; }
  .brand > span:last-child { display: none; }
  .section-shell { padding-block: 64px; }
  .hero { display: flex; padding-top: 64px; padding-bottom: 64px; flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .portrait-frame { width: min(100%, 250px); align-self: center; }
  .portrait-frame img { max-height: 350px; }
  .method-rail { grid-template-columns: 1fr; gap: 0; }
  .method-rail::before { top: 22px; bottom: 22px; left: 20px; width: 1px; height: auto; }
  .method-rail li, .method-rail li:first-child, .method-rail li:last-child { min-height: 130px; padding: 0 0 28px 64px; }
  .method-rail span { position: absolute; top: 0; left: 0; }
  .split-heading, .profile-band, .contact-strip, .feature-story, .analysis-feature, .case-detail, .timeline-section, .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .contact-strip .button { justify-self: stretch; }
  .expertise-card { grid-template-columns: 1fr; gap: 8px; }
  .case-grid, .education-grid, .project-grid, .contact-layout { grid-template-columns: 1fr; }
  .case-card.case-featured, .project-card:first-child { grid-column: auto; }
  .case-card { min-height: auto; }
  .story-media, .analysis-feature figure { max-width: 100%; justify-self: auto; }
  .story-media img, .analysis-feature img { width: 100%; max-height: 280px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
  .next-case { flex-direction: column; gap: 16px; }
  .site-footer { grid-template-columns: 1fr; gap: 28px; }
  .site-footer nav { flex-direction: column; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}
