/* Egothor — Research / Executive Technology visual system */
:root {
  --paper: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --ink: #0b1728;
  --ink-2: #17304a;
  --muted: #5b6b7b;
  --muted-2: #7a8795;
  --line: #dce4ed;
  --line-strong: #c9d4df;
  --accent: #215f9b;
  --accent-deep: #174a7d;
  --accent-soft: #dcebf7;
  --navy: #0d2135;
  --navy-2: #142c44;
  --shadow-sm: 0 8px 26px rgba(13, 33, 53, .07);
  --shadow-md: 0 22px 60px rgba(13, 33, 53, .11);
  --radius: 18px;
  --radius-lg: 30px;
  --shell: 1180px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-deep); }
[id] { scroll-margin-top: 94px; }
button, input, textarea, select { font: inherit; }
::selection { background: #c9e0f4; color: var(--ink); }

.shell { width: min(calc(100% - 48px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 1000; transform: translateY(-180%); background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 249, 252, .88); border-bottom: 1px solid transparent; backdrop-filter: blur(18px) saturate(1.2); transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-color: rgba(201, 212, 223, .75); box-shadow: 0 8px 28px rgba(13,33,53,.045); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand-word { font-size: 15px; font-weight: 800; letter-spacing: .19em; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.nav-link { display: inline-flex; align-items: center; height: 42px; padding: 0 13px; border-radius: 10px; color: #35485d; text-decoration: none; font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.nav-link:hover, .nav-link.is-active, .nav-cluster.is-active > .nav-link { color: var(--ink); background: rgba(220, 228, 237, .55); }
.nav-cluster { position: relative; }
.nav-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 205px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-md); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: .16s ease; }
.nav-cluster:hover .nav-menu, .nav-cluster:focus-within .nav-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-menu a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; padding: 10px; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 9px; }

.site-main { min-height: 70vh; }
.page-content > :not(.shell):not(.continuity-band):not(.section--tinted) { width: min(calc(100% - 48px), 860px); margin-left: auto; margin-right: auto; }
.page-content > h1 { margin-top: 82px; font-size: clamp(44px, 7vw, 72px); letter-spacing: -.045em; line-height: 1.03; }
.page-content > h2 { margin-top: 62px; margin-bottom: 16px; font-size: 30px; line-height: 1.2; letter-spacing: -.025em; }
.page-content > h3 { margin-top: 38px; margin-bottom: 10px; font-size: 21px; line-height: 1.3; }
.page-content > p, .page-content > ul, .page-content > ol { color: #33485d; font-size: 17px; }
.page-content > ul, .page-content > ol { padding-left: 24px; }
.page-content > p:last-child { margin-bottom: 96px; }

.hero { padding-top: 92px; padding-bottom: 108px; }
.hero--home { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: 74px; }
.hero-copy h1, .page-hero h1, .profile-copy h1, .project-hero h1 { margin: 18px 0 24px; font-size: clamp(54px, 7.2vw, 88px); line-height: .99; letter-spacing: -.055em; font-weight: 735; color: var(--ink); }
.hero-copy h1 em, .page-hero h1 em, .profile-copy h1 em { font-style: normal; color: var(--accent); font-weight: 610; }
.hero-lede, .page-lede, .profile-lede { max-width: 720px; margin: 0; color: #405468; font-size: clamp(18px, 2vw, 21px); line-height: 1.58; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--accent); font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 11px; text-decoration: none; font-size: 14px; font-weight: 750; letter-spacing: .005em; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--navy); color: #fff; box-shadow: 0 9px 24px rgba(13,33,53,.13); }
.button--primary:hover { background: #16334f; color: #fff; box-shadow: 0 13px 28px rgba(13,33,53,.17); }
.button--quiet { color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--line-strong); }
.button--quiet:hover { color: var(--ink); background: #fff; }
.button--status { color: #33526f; background: #e8f1f8; border: 1px solid #bfd2e2; cursor: default; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 13% 7%; border-radius: 50%; background: radial-gradient(circle, rgba(60,126,181,.17), transparent 68%); filter: blur(18px); }
.hero-visual img { position: relative; width: 100%; filter: drop-shadow(0 30px 42px rgba(13,33,53,.09)); }

.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight-top { padding-top: 40px; }
.section--tinted { width: 100% !important; padding: 96px 0; background: #eef3f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 790px; margin-bottom: 44px; }
.section-heading h2 { margin: 13px 0 13px; font-size: clamp(36px, 5vw, 54px); line-height: 1.07; letter-spacing: -.04em; font-weight: 690; }
.section-heading > p:not(.section-kicker), .section-heading--split > p { color: var(--muted); font-size: 17px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.section-heading--split > p { margin: 0 0 7px; }
.section-kicker--light { color: #8fc2ec; }

.project-grid { display: grid; gap: 22px; }
.project-grid--featured { grid-template-columns: repeat(2, minmax(0,1fr)); }
.project-grid--portfolio { grid-template-columns: repeat(2, minmax(0,1fr)); }
.project-grid--full { grid-template-columns: 1fr; gap: 28px; }
.project-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 410px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.86); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.project-card::after { content: ""; position: absolute; top: -110px; right: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(33,95,155,.10), transparent 68%); pointer-events: none; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c5d4e2; }
.project-card--large { min-height: 0; padding: 40px; }
.project-card--spotlight { grid-column: 1 / -1; min-height: 340px; background: linear-gradient(138deg, rgba(255,255,255,.96), rgba(237,244,250,.90)); border-color: #c7d8e6; }
.project-card--spotlight::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #173f63, #68a5d3); }
.project-card--spotlight p { max-width: 860px; }
.project-grid--portfolio-detail .project-card--spotlight { min-height: 0; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-motif { width: 64px; height: 64px; }
.project-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; text-align: right; }
.project-card h2, .project-card h3 { margin: 34px 0 12px; letter-spacing: -.035em; line-height: 1.08; }
.project-card h2 { font-size: 42px; }
.project-card h3 { font-size: 34px; }
.project-card p { max-width: 720px; margin: 0 0 18px; color: #465a6e; }
.project-card .card-lede { color: var(--ink-2); font-size: 19px; line-height: 1.5; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 18px; }
.tag-row span, .topic-cloud span { padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: #536579; font-size: 11px; font-weight: 700; }
.card-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.card-links a { text-decoration: none; font-size: 13.5px; font-weight: 750; }

.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-row--card { margin-top: 14px; }
.metric-row span { display: flex; flex-direction: column; min-height: 92px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); }
.metric-row strong { font-size: 23px; line-height: 1.2; color: var(--ink); }
.metric-row small { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }

.continuity-band { width: 100% !important; margin: 34px 0 0; padding: 96px 0; background: linear-gradient(145deg, #0d2135 0%, #112941 58%, #15354f 100%); color: #fff; }
.continuity-inner { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: center; }
.continuity-copy h2 { margin: 14px 0; font-size: 48px; letter-spacing: -.04em; line-height: 1.06; }
.continuity-copy p:not(.section-kicker) { color: #becddd; }
.text-link { display: inline-flex; gap: 8px; margin-top: 12px; text-decoration: none; font-weight: 750; }
.text-link--light { color: #d9ebf9; }
.text-link--light:hover { color: #fff; }
.timeline--compact { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding-top: 40px; }
.timeline--compact::before { content: ""; position: absolute; left: 5%; right: 5%; top: 20px; height: 1px; background: rgba(184,211,233,.32); }
.timeline-item { position: relative; padding: 0 12px; }
.timeline-item::before { content: ""; position: absolute; width: 9px; height: 9px; top: -24px; left: 12px; border-radius: 50%; background: #8fc2ec; box-shadow: 0 0 0 6px rgba(143,194,236,.10); }
.timeline-item strong { display: block; color: #8fc2ec; font-size: 13px; letter-spacing: .08em; }
.timeline-item span { display: block; margin-top: 7px; color: #eef6fc; font-size: 13px; line-height: 1.35; }

.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-strong); }
.principle-grid article { padding: 30px 30px 10px 0; border-right: 1px solid var(--line); }
.principle-grid article + article { padding-left: 30px; }
.principle-grid article:last-child { border-right: 0; }
.principle-index { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.principle-grid h3 { margin: 18px 0 9px; font-size: 20px; }
.principle-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

.profile-bridge { margin-top: 20px; margin-bottom: 110px; display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 42px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.profile-bridge-photo { width: 190px; height: 190px; overflow: hidden; border-radius: 22px; background: var(--surface-2); }
.profile-bridge-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.profile-bridge h2 { margin: 10px 0 8px; font-size: 34px; letter-spacing: -.035em; }
.profile-bridge p:not(.section-kicker) { max-width: 690px; color: var(--muted); }

.page-hero { padding-top: 94px; padding-bottom: 56px; }
.page-hero h1 { max-width: 1020px; }
.page-hero--profile { padding-bottom: 28px; }
.heritage-panel { display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 34px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.heritage-panel img { max-height: 82px; }
.heritage-panel span { display: flex; flex-direction: column; }
.heritage-panel strong { font-size: 22px; }
.heritage-panel small { color: var(--muted); }
.heritage-panel b { color: var(--accent); font-size: 13px; }

.project-hero { padding-top: 92px; padding-bottom: 72px; display: grid; grid-template-columns: 1fr 410px; gap: 78px; align-items: end; }
.project-title-row { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.project-title-row h1 { margin: 0 0 10px; }
.metric-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-panel > div { min-height: 145px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); }
.metric-panel strong, .metric-panel span, .metric-panel small { display: block; }
.metric-panel strong { font-size: 29px; line-height: 1.1; letter-spacing: -.03em; }
.metric-panel span { margin-top: 8px; color: var(--ink-2); font-size: 13px; font-weight: 750; }
.metric-panel small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin: 30px auto 34px !important; padding: 28px; border-radius: 20px; background: var(--navy); color: #fff; }
.architecture-flow span { display: flex; flex-direction: column; min-height: 72px; justify-content: center; padding: 12px 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.045); }
.architecture-flow b { font-size: 13px; }
.architecture-flow small { margin-top: 4px; color: #b8c9d9; font-size: 10px; }
.architecture-flow i { color: #79add6; font-style: normal; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 28px auto 38px !important; }
.feature-grid--three { grid-template-columns: repeat(3,1fr); }
.feature-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.feature-grid h3 { margin: 0 0 8px; font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13.5px; }
.note-panel { margin: 30px auto !important; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: #edf4fa; color: #38516a; }
.note-panel strong { color: var(--ink); }
.resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px auto 96px !important; }
.resource-grid a { display: flex; flex-direction: column; min-height: 106px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); text-decoration: none; }
.resource-grid a:hover { border-color: #b9ccdd; box-shadow: var(--shadow-sm); }
.resource-grid span { margin-top: 7px; color: var(--accent); font-size: 12px; }
.project-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 28px auto 46px !important; }
.project-media-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.project-media-grid img { width: 100%; height: 100%; min-height: 300px; max-height: 520px; object-fit: contain; background: #edf2f6; }
.project-media-grid figcaption { padding: 12px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.project-media-wide { grid-column: 1 / -1; }
.project-media-wide img { max-height: 680px; }

.lineage { padding-bottom: 52px; }
.lineage-axis { display: flex; justify-content: space-between; padding: 0 4px 8px; color: var(--muted-2); font-family: var(--font-mono); font-size: 10px; }
.lineage img { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.heritage-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 28px auto 50px !important; }
.heritage-grid article { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.heritage-date { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.heritage-grid h3 { margin: 17px 0 10px; font-size: 24px; }
.heritage-grid p { color: var(--muted); font-size: 14px; }
.heritage-grid a { font-size: 12px; font-weight: 750; text-decoration: none; }

.profile-hero { padding-top: 86px; padding-bottom: 108px; display: grid; grid-template-columns: minmax(0,1.16fr) minmax(260px,.56fr); gap: 70px; align-items: center; }
.profile-copy h1 { font-size: clamp(62px, 8vw, 94px); }
.profile-signals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.profile-signals span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.65); color: var(--muted); font-size: 11px; }
.profile-signals b { color: var(--ink-2); }
.portrait-frame { position: relative; width: min(100%, 350px); margin: 0; justify-self: end; }
.portrait-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 837 / 1040; object-fit: cover; border-radius: 28px 28px 120px 28px; box-shadow: 0 30px 70px rgba(13,33,53,.16); }
.portrait-accent { position: absolute; right: -22px; bottom: -22px; width: 62%; height: 58%; border-radius: 26px 26px 118px 26px; border: 1px solid #9fbcd4; background: linear-gradient(145deg, #e3eff8, #c7deef); }
.expertise-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line-strong); }
.expertise-grid article { padding: 28px 22px 8px 0; border-right: 1px solid var(--line); }
.expertise-grid article + article { padding-left: 22px; }
.expertise-grid article:last-child { border-right: 0; }
.expertise-grid span { color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
.expertise-grid h3 { margin: 15px 0 8px; font-size: 18px; }
.expertise-grid p { margin: 0; color: var(--muted); font-size: 13.5px; }
.profile-projects { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.profile-projects a { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 24px; border: 1px solid #d3dde7; border-radius: 17px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.profile-projects img { width: 56px; height: 56px; }
.profile-projects span { display: flex; flex-direction: column; }
.profile-projects b { font-size: 20px; }
.profile-projects small { margin-top: 3px; color: var(--muted); }
.profile-projects strong { color: var(--accent); }
.academic-bridge { display: grid; grid-template-columns: 1fr 350px; gap: 70px; align-items: center; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.academic-bridge h2 { margin: 12px 0 12px; font-size: 39px; letter-spacing: -.035em; line-height: 1.1; }
.academic-bridge p:not(.section-kicker) { color: var(--muted); }
.academic-monogram { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.academic-monogram span { display: grid; place-items: center; aspect-ratio: 1.4; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }

.work-table { margin: 24px auto 64px !important; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.work-row { display: grid; grid-template-columns: 150px 130px 1fr; gap: 24px; align-items: baseline; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.work-row:last-child { border-bottom: 0; }
.work-row--head { background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; }
.work-row strong { color: var(--ink); }
.work-row > span { color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.work-row p { margin: 0; color: var(--muted); font-size: 13.5px; }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px auto 34px !important; }
.back-link { margin: 56px auto 96px !important; }
.back-link a { text-decoration: none; font-weight: 750; }

.site-footer { margin-top: 40px; padding: 56px 0; border-top: 1px solid var(--line); background: #f3f6f9; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 52px; }
.footer-brand { font-weight: 800; }
.footer-brand img { width: 30px; height: 30px; }
.footer-grid p { max-width: 350px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: grid; align-content: start; gap: 7px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 650; }
.footer-meta { text-align: right; }
.footer-meta p { margin-left: auto; }

.not-found { min-height: 100vh; display: grid; align-content: center; gap: 80px; width: min(calc(100% - 48px), 800px); margin: auto; }
.not-found h1 { max-width: 670px; margin: 18px 0; font-size: clamp(46px,8vw,76px); line-height: 1; letter-spacing: -.045em; }
.not-found p:not(.eyebrow) { max-width: 570px; color: var(--muted); }

:focus-visible { outline: 3px solid #7db4de; outline-offset: 3px; border-radius: 5px; }

@media (max-width: 1020px) {
  .hero--home, .project-hero, .profile-hero { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { max-width: 600px; margin: auto; }
  .metric-panel { max-width: 700px; }
  .portrait-frame { width: min(62vw, 350px); justify-self: start; }
  .continuity-inner { grid-template-columns: 1fr; gap: 50px; }
  .section-heading--split { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .expertise-grid { grid-template-columns: repeat(2,1fr); }
  .expertise-grid article:nth-child(2) { border-right: 0; }
  .expertise-grid article:nth-child(3) { padding-left: 0; }
  .academic-bridge { grid-template-columns: 1fr 250px; }
}

@media (max-width: 860px) {
  .header-inner { height: 68px; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; left: 16px; right: 16px; top: 76px; display: none; max-height: calc(100vh - 92px); overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.99); box-shadow: var(--shadow-md); }
  .primary-nav.is-open { display: block; }
  .nav-link { width: 100%; justify-content: space-between; }
  .nav-cluster { margin-bottom: 5px; }
  .nav-menu { position: static; min-width: 0; margin: 0 0 6px 14px; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; background: transparent; }
  .nav-menu a { padding: 7px 10px; }
  .project-grid--featured, .project-grid--portfolio, .profile-projects, .heritage-grid { grid-template-columns: 1fr; }
  .project-card--spotlight { grid-column: auto; }
  .feature-grid--three { grid-template-columns: repeat(2,1fr); }
  .resource-grid { grid-template-columns: 1fr; }
  .academic-bridge { grid-template-columns: 1fr; }
  .academic-monogram { max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
  .footer-meta p { margin-left: 0; }
}

@media (max-width: 680px) {
  .shell, .page-content > :not(.continuity-band):not(.section--tinted) { width: min(calc(100% - 32px), var(--shell)); }
  .hero, .page-hero, .profile-hero, .project-hero { padding-top: 62px; padding-bottom: 68px; }
  .hero-copy h1, .page-hero h1, .profile-copy h1, .project-hero h1 { font-size: clamp(44px, 15vw, 64px); }
  .hero-lede, .page-lede, .profile-lede { font-size: 17px; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .section-heading h2 { font-size: 36px; }
  .project-card, .project-card--large { padding: 24px; border-radius: 22px; }
  .project-card h2 { font-size: 34px; }
  .project-card h3 { font-size: 29px; }
  .project-card-top { align-items: flex-start; }
  .project-label { max-width: 190px; }
  .metric-row, .metric-panel { grid-template-columns: 1fr 1fr; }
  .timeline--compact { grid-template-columns: repeat(2,1fr); gap: 32px 0; }
  .timeline--compact::before { display: none; }
  .timeline-item::before { top: 5px; left: 0; }
  .timeline-item { padding-left: 20px; }
  .principle-grid, .expertise-grid { grid-template-columns: 1fr; border-top: 0; }
  .principle-grid article, .principle-grid article + article, .expertise-grid article, .expertise-grid article + article { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .profile-bridge { grid-template-columns: 88px 1fr; gap: 20px; padding: 22px; }
  .profile-bridge-photo { width: 88px; height: 110px; border-radius: 14px; }
  .profile-bridge h2 { font-size: 27px; }
  .profile-bridge p:not(.section-kicker) { grid-column: 1 / -1; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow i { transform: rotate(90deg); justify-self: center; }
  .feature-grid, .feature-grid--three { grid-template-columns: 1fr; }
  .heritage-panel { grid-template-columns: 1fr; }
  .work-row, .work-row--head { grid-template-columns: 1fr; gap: 5px; }
  .work-row--head { display: none; }
  .portrait-frame { width: min(76vw, 320px); }
  .project-media-grid { grid-template-columns: 1fr; }
  .project-media-wide { grid-column: auto; }
  .project-media-grid img { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-meta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .site-main, .page-content, .shell { width: 100% !important; max-width: none !important; }
  .project-card, .feature-grid article, .metric-panel > div, .heritage-grid article { box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
