@font-face {
    font-family: "Outfit";
    src: url("assets/fonts/Outfit-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("assets/fonts/SourceSans3-Variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --night: #101c24;
    --night-soft: #182a32;
    --paper: #f5f7f3;
    --surface: #ffffff;
    --ink: #182226;
    --muted: #5c6b67;
    --accent: #3f9c68;
    --accent-dark: #2d7650;
    --steel: #58717a;
    --line: #ccd6d0;
    --line-dark: #38505a;
    --soft-green: #e4eee7;
    --shadow: 0 18px 48px rgba(16, 28, 36, 0.12);
    --radius: 8px;
    --container: 1280px;
    --nav-height: 76px;
    --z-nav: 20;
    --z-overlay: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Source Sans 3", sans-serif;
    font-size: 18px;
    line-height: 1.62;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f3b94f; outline-offset: 3px; }
h1, h2, h3, h4, p, figure, blockquote { margin-top: 0; }
h1, h2, h3, h4 {
    color: inherit;
    font-family: "Outfit", sans-serif;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.08;
    text-wrap: balance;
}
p, li { text-wrap: pretty; }

.skip-link {
    position: fixed; left: 16px; top: 12px; z-index: calc(var(--z-overlay) + 1);
    padding: 10px 14px; background: var(--surface); color: var(--night);
    border-radius: 4px; transform: translateY(-160%); transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.eyebrow, .meta-label, .project-domain, .visual-label {
    margin: 0 0 12px; color: var(--accent-dark); font-family: "Outfit", sans-serif;
    font-size: 0.82rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; text-transform: uppercase;
}
.section-heading {
    display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 1fr);
    gap: 48px; align-items: end; margin-bottom: 48px;
}
.section-heading h2, .page-heading h1 { margin-bottom: 0; font-size: 52px; }
.section-heading p, .page-heading > p { max-width: 62ch; margin-bottom: 0; color: var(--muted); }

.site-header {
    position: sticky; top: 0; z-index: var(--z-nav); min-height: var(--nav-height);
    background: var(--night); border-bottom: 1px solid rgba(204, 214, 208, 0.16);
}
.site-nav { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; flex-direction: column; min-width: 0; color: var(--paper); text-decoration: none; }
.brand strong { font-family: "Outfit", sans-serif; font-size: 1.15rem; line-height: 1.15; }
.brand span { margin-top: 3px; color: #afc0bc; font-size: 0.78rem; line-height: 1.3; }
.nav-links { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
    display: inline-flex; min-height: 44px; align-items: center; padding: 8px 12px;
    color: #dce5e1; font-family: "Outfit", sans-serif; font-size: 0.91rem;
    font-weight: 550; text-decoration: none; border-bottom: 2px solid transparent;
    transition: color 180ms ease, border-color 180ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--surface); border-bottom-color: var(--accent); }
.menu-toggle {
    display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
    padding: 0; background: transparent; border: 1px solid var(--line-dark);
    border-radius: 6px; color: var(--surface); cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    display: block; width: 20px; height: 2px; background: currentColor; content: "";
    transition: transform 180ms ease, opacity 180ms ease;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.button-row, .link-row, .project-actions, .contact-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button, .filter-button {
    display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
    padding: 10px 18px; border: 1px solid transparent; border-radius: 6px;
    font-family: "Outfit", sans-serif; font-size: 0.94rem; font-weight: 650;
    line-height: 1.2; letter-spacing: 0; text-decoration: none; cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover, .filter-button:hover { transform: translateY(-2px); }
.button:active, .filter-button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #07140d; }
.button-primary:hover { background: #55ae76; }
.button-secondary { background: transparent; border-color: var(--line-dark); color: var(--surface); }
.button-secondary:hover { border-color: var(--accent); color: var(--accent); }
.button-dark { background: var(--night); color: var(--surface); }
.button-dark:hover { background: var(--night-soft); }
.text-link {
    display: inline-flex; min-height: 44px; align-items: center; color: var(--accent-dark);
    font-family: "Outfit", sans-serif; font-weight: 650; text-decoration: underline;
}

.hero {
    min-height: calc(100dvh - var(--nav-height) - 42px); display: flex; align-items: center;
    padding: 48px 0; overflow: hidden; background: var(--night); color: var(--paper);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.8fr); gap: 60px; align-items: center; }
.hero-copy { max-width: 760px; }
.hero h1 { max-width: 15ch; margin-bottom: 24px; font-size: 60px; }
.hero .eyebrow, .page-heading .eyebrow, .case-hero .eyebrow { color: #79bd91; }
.hero-lead { max-width: 61ch; margin-bottom: 20px; color: #dce5e1; font-size: 1.16rem; line-height: 1.48; }
.hero-note { max-width: 62ch; margin-bottom: 32px; color: #afc0bc; }
.hero-links { margin-top: 18px; }
.hero-links a { color: #cbd8d4; }
.hero-media { position: relative; min-height: 520px; }
.media-button {
    position: relative; margin: 0; padding: 0; overflow: hidden; background: var(--night-soft);
    border: 1px solid var(--line-dark); border-radius: var(--radius); color: inherit;
    text-align: left; cursor: zoom-in;
}
.media-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.media-button:hover img { transform: scale(1.025); }
.hero-portrait { position: absolute; inset: 0 78px 52px 0; }
.hero-portrait img { object-position: center 22%; }
.hero-evidence { position: absolute; width: 48%; height: 174px; right: 0; bottom: 0; box-shadow: var(--shadow); }
.hero-evidence-secondary { right: 18px; top: 36px; bottom: auto; width: 38%; height: 150px; }
.media-caption {
    position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
    padding: 7px 10px; background: rgba(16, 28, 36, 0.9); color: var(--paper);
    border-radius: 4px; font-size: 0.76rem; font-weight: 600; line-height: 1.25;
}

.proof-strip { position: relative; margin-top: -42px; z-index: 2; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.proof-item { min-height: 132px; padding: 28px; border-right: 1px solid var(--line); }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; color: var(--night); font-family: "Outfit", sans-serif; font-size: 2rem; font-variant-numeric: tabular-nums; line-height: 1; }
.proof-item span { display: block; margin-top: 12px; color: var(--muted); font-size: 0.94rem; line-height: 1.35; }
.section { padding: 108px 0 122px; }
.section-compact { padding: 78px 0 92px; }
.section-white { background: var(--surface); }
.section-night { background: var(--night); color: var(--paper); }
.section-night .section-heading p, .section-night .page-heading > p { color: #afc0bc; }

.flagship {
    display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
    min-height: 560px; border: 1px solid var(--line-dark); border-radius: var(--radius);
    overflow: hidden; background: var(--night-soft); color: var(--paper);
}
.flagship-media { position: relative; min-height: 520px; border: 0; border-radius: 0; }
.flagship-copy { display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.flagship-copy h2 { margin-bottom: 20px; font-size: 44px; }
.flagship-copy p { color: #c8d4d0; }
.play-mark {
    position: absolute; left: 24px; bottom: 24px; z-index: 1; display: inline-flex;
    min-height: 44px; align-items: center; padding: 9px 14px; background: var(--surface);
    color: var(--night); border-radius: 6px; font-family: "Outfit", sans-serif;
    font-size: 0.88rem; font-weight: 700;
}
.evidence-list, .tag-list, .case-facts, .compact-list { margin: 0; padding: 0; list-style: none; }
.evidence-list { display: grid; gap: 12px; margin: 18px 0 30px; }
.evidence-list li { padding-left: 18px; color: #dce5e1; border-left: 3px solid var(--accent); }

.selected-work { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }
.project-card {
    position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.project-card:hover { transform: translateY(-4px); border-color: #a5b8af; box-shadow: 0 14px 34px rgba(16, 28, 36, 0.1); }
.project-card-wide { grid-row: span 2; }
.project-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--night-soft); border-bottom: 1px solid var(--line); }
.project-card-wide .project-card-media { aspect-ratio: 4 / 3; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 260ms ease; }
.project-card:hover .project-card-media img { transform: scale(1.025); }
.project-card-copy { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.project-card h2, .project-card h3 { margin-bottom: 14px; font-size: 1.65rem; }
.project-card-link { color: inherit; text-decoration: none; }
.project-card-link:hover { color: var(--accent-dark); text-decoration: underline; }
.all-work-link { margin-top: 32px; }
.project-card p { color: var(--muted); }
.project-card .project-actions { margin-top: auto; padding-top: 16px; }
.project-actions a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent-dark); font-family: "Outfit", sans-serif; font-weight: 650; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.tag-list li { padding: 5px 9px; background: var(--soft-green); color: #295a40; border-radius: 4px; font-size: 0.78rem; font-weight: 650; line-height: 1.2; }

.timeline-preview { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 64px; align-items: start; }
.timeline-preview-copy { position: sticky; top: calc(var(--nav-height) + 32px); }
.timeline-preview-copy h2, .story-preview-copy h2 { font-size: 48px; }
.timeline-preview-list { border-top: 1px solid var(--line); }
.timeline-preview-item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-preview-item time { color: var(--steel); font-variant-numeric: tabular-nums; }
.timeline-preview-item h3 { margin-bottom: 8px; font-size: 1.35rem; }
.timeline-preview-item p { margin-bottom: 0; color: var(--muted); }

.story-preview { display: grid; grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr); gap: 48px; align-items: center; }
.story-collage { display: grid; grid-template-columns: 1.2fr 0.8fr; grid-template-rows: 220px 220px; gap: 12px; }
.story-collage figure, .gallery figure, .evidence-figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--night-soft); }
.story-collage figure:first-child { grid-row: span 2; }
.story-collage img, .gallery img, .evidence-figure img { width: 100%; height: 100%; object-fit: cover; }
.data-analytics-photo img { object-position: center 50%; }
.aurora-photo img { object-position: center 70%; }
.story-collage figcaption, .gallery figcaption, .evidence-figure figcaption {
    position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px;
    background: rgba(16, 28, 36, 0.9); color: var(--paper); border-radius: 4px;
    font-size: 0.78rem; line-height: 1.3;
}

.contact-band { padding: 96px 0 108px; background: var(--night); color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr); gap: 72px; align-items: end; }
.contact-grid h2 { max-width: 14ch; margin-bottom: 20px; font-size: 52px; }
.contact-grid p { max-width: 62ch; color: #afc0bc; }
.contact-details { display: grid; gap: 10px; padding: 28px 0 0; border-top: 1px solid var(--line-dark); }
.contact-details a, .contact-details span { color: #dce5e1; }
.site-footer { padding: 28px 0; background: #0b151b; color: #afc0bc; border-top: 1px solid #233843; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-grid p { margin: 0; font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: #dce5e1; }

.page-hero { padding: 92px 0 104px; background: var(--night); color: var(--paper); }
.page-hero .page-heading > p { color: #afc0bc; }
.page-heading { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 0.8fr); gap: 64px; align-items: end; }
.page-heading h1 { font-size: 64px; }
.filter-bar { position: sticky; top: var(--nav-height); z-index: 8; padding: 16px 0; background: rgba(245, 247, 243, 0.96); border-bottom: 1px solid var(--line); }
.filter-controls { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filter-button { flex: 0 0 auto; background: var(--surface); border-color: var(--line); color: var(--ink); }
.filter-button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--surface); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.work-grid .project-card[hidden] { display: none; }
.visual-label { position: absolute; top: 10px; left: 10px; z-index: 1; margin: 0; padding: 7px 9px; background: rgba(245, 247, 243, 0.94); color: var(--night); border-radius: 4px; font-size: 0.68rem; }

.experience-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
.experience-aside, .case-toc { position: sticky; top: calc(var(--nav-height) + 32px); }
.experience-aside h2 { font-size: 2rem; }
.experience-list { border-top: 1px solid var(--line); }
.experience-entry { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 36px; padding: 42px 0 48px; border-bottom: 1px solid var(--line); }
.experience-entry time { color: var(--steel); font-variant-numeric: tabular-nums; }
.experience-entry h2 { margin-bottom: 8px; font-size: 2rem; }
.experience-entry h3 { margin-bottom: 18px; color: var(--accent-dark); font-family: "Source Sans 3", sans-serif; font-size: 1.04rem; font-weight: 650; line-height: 1.4; }
.experience-entry p { max-width: 76ch; margin-bottom: 0; color: var(--muted); }
.compact-list { display: grid; gap: 10px; }
.compact-list li { position: relative; padding-left: 18px; color: var(--muted); }
.compact-list li::before { position: absolute; left: 0; top: 0.72em; width: 7px; height: 2px; background: var(--accent); content: ""; }
.skills-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.skill-column { padding: 28px; background: var(--surface); }
.skill-column h3 { font-size: 1.25rem; }
.skill-column p { margin-bottom: 0; color: var(--muted); font-size: 0.94rem; }

.about-lead { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 64px; align-items: center; }
.about-lead h2 { font-size: 48px; }
.about-lead-photo { width: 100%; min-height: 620px; }
.about-lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.story-chapter { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding: 54px 0; border-top: 1px solid var(--line); }
.story-chapter h2 { font-size: 2rem; }
.story-chapter-copy { max-width: 72ch; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; gap: 12px; }
.gallery figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: span 5; }
.gallery figure:nth-child(4) { grid-column: span 8; grid-row: span 2; }
.gallery figure:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.gallery figure:nth-child(n + 6) { grid-column: span 6; }
.gallery .media-button { width: 100%; height: 100%; border: 0; border-radius: 0; }

.case-hero { padding: 72px 0 86px; background: var(--night); color: var(--paper); }
.case-hero-grid { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr); gap: 64px; align-items: center; }
.case-hero h1 { margin-bottom: 22px; font-size: 64px; }
.case-summary { color: #dce5e1; font-size: 1.18rem; }
.case-hero-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero-media--diagram { aspect-ratio: 16 / 9; }
.case-hero-media--diagram img { object-fit: contain; }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.case-facts li { padding: 20px 18px 20px 0; }
.case-facts strong, .case-facts span { display: block; }
.case-facts strong { color: #79bd91; font-family: "Outfit", sans-serif; font-size: 0.78rem; text-transform: uppercase; }
.case-facts span { margin-top: 6px; color: #dce5e1; font-size: 0.92rem; line-height: 1.35; }
.case-snapshot { padding: 52px 0 0; background: var(--paper); }
.case-snapshot > .container > .eyebrow { margin-bottom: 18px; }
.case-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.case-snapshot-grid > div { min-width: 0; padding: 22px 20px 24px; border-right: 1px solid var(--line); }
.case-snapshot-grid > div:nth-child(4) { border-right: 0; }
.case-snapshot-grid .case-proves {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    border-top: 1px solid var(--line);
    border-right: 0;
}
.case-snapshot-grid dt {
    color: var(--accent-dark);
    font-family: "Outfit", sans-serif;
    font-size: 0.76rem;
    font-weight: 720;
    line-height: 1.3;
    text-transform: uppercase;
}
.case-snapshot-grid dd { margin: 8px 0 0; color: #34423f; font-size: 0.94rem; line-height: 1.45; }
.case-snapshot-grid .case-proves dd { margin-top: 0; color: var(--night); font-family: "Outfit", sans-serif; font-weight: 600; }
.case-snapshot + .section { padding-top: 72px; }
.case-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: center; gap: 72px; align-items: start; }
.case-toc { padding-top: 4px; }
.case-toc strong { display: block; margin-bottom: 12px; font-family: "Outfit", sans-serif; }
.case-toc a { display: block; min-height: 40px; padding: 7px 0; color: var(--muted); font-size: 0.9rem; }
.case-body section { padding: 0 0 58px; scroll-margin-top: calc(var(--nav-height) + 24px); }
.case-body section + section { padding-top: 54px; border-top: 1px solid var(--line); }
.case-body h2 { margin-bottom: 22px; font-size: 2.25rem; }
.case-body h3 { margin: 28px 0 12px; font-size: 1.35rem; }
.case-body p, .case-body li { color: #34423f; }
.case-body ul { padding-left: 22px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.evidence-figure { min-height: 260px; }
.evidence-figure-wide { grid-column: 1 / -1; min-height: 420px; }
.evidence-figure button { width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; }
.case-quote { margin: 28px 0; padding: 24px 28px; color: var(--night); background: var(--soft-green); border-left: 4px solid var(--accent); font-family: "Outfit", sans-serif; font-size: 1.18rem; line-height: 1.45; }
.related-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-link { display: block; min-height: 150px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease; }
.related-link:hover { transform: translateY(-3px); border-color: var(--accent); }
.related-link span, .related-link strong { display: block; }
.related-link span { color: var(--muted); font-size: 0.84rem; }
.related-link strong { margin-top: 8px; font-family: "Outfit", sans-serif; font-size: 1.3rem; }

.media-lightbox { position: fixed; inset: 0; z-index: var(--z-overlay); display: none; place-items: center; padding: 24px; }
.media-lightbox.is-open { display: grid; }
.lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(5, 11, 15, 0.88); border: 0; }
.lightbox-panel { position: relative; z-index: 1; width: min(1080px, 100%); max-height: calc(100dvh - 48px); overflow: auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4); }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 46px; height: 46px; padding: 0; background: var(--surface); color: var(--night); border: 1px solid var(--line); border-radius: 6px; font-size: 1.55rem; line-height: 1; cursor: pointer; }
.lightbox-stage { display: grid; min-height: 360px; place-items: center; background: var(--night); }
.lightbox-stage img, .lightbox-stage video { width: 100%; max-height: 72dvh; object-fit: contain; }
.lightbox-copy { padding: 22px 28px 26px; }
.lightbox-copy h2 { margin-bottom: 8px; font-size: 1.45rem; }
.lightbox-copy p { margin-bottom: 0; color: var(--muted); }
.reveal { opacity: 1; transform: none; }

.not-found { min-height: calc(100dvh - var(--nav-height)); display: grid; place-items: center; padding: 64px 0; background: var(--night); color: var(--paper); }
.not-found-copy { max-width: 720px; }
.not-found h1 { margin-bottom: 22px; font-size: 72px; }
.not-found p { color: #afc0bc; }

@media (max-height: 800px) and (min-width: 901px) {
    .hero { padding: 34px 0 70px; }
    .hero-grid { gap: 46px; }
    .hero h1 { max-width: 15ch; margin-bottom: 18px; font-size: 50px; }
    .hero-lead { margin-bottom: 20px; font-size: 1.04rem; }
    .hero-note, .hero-links { display: none; }
    .hero-media { min-height: 440px; }
    .hero-portrait { inset: 0 64px 42px 0; }
    .hero-evidence { height: 142px; }
    .hero-evidence-secondary { height: 126px; top: 24px; }
}

@media (max-width: 1100px) {
    .hero-grid, .flagship, .case-hero-grid { grid-template-columns: 1fr 0.9fr; gap: 42px; }
    .hero h1 { font-size: 60px; }
    .hero-media { min-height: 500px; }
    .skills-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --nav-height: 70px; }
    .container, .narrow { width: min(calc(100% - 36px), var(--container)); }
    .menu-toggle { display: inline-flex; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; display: none; align-items: stretch; padding: 14px 18px 22px; background: var(--night); border-bottom: 1px solid var(--line-dark); }
    .nav-links.is-open { display: grid; }
    .nav-links a { width: 100%; min-height: 48px; padding-inline: 8px; }
    .hero { min-height: auto; padding: 64px 0 104px; }
    .hero-grid, .flagship, .case-hero-grid, .section-heading, .page-heading, .timeline-preview, .story-preview, .contact-grid, .about-lead { grid-template-columns: 1fr; }
    .hero-grid, .case-hero-grid { gap: 54px; }
    .hero h1, .page-heading h1, .case-hero h1 { font-size: 54px; }
    .hero h1 { max-width: 14ch; }
    .hero-media { min-height: 600px; }
    .hero-portrait { inset: 0 112px 56px 0; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-item:nth-child(2) { border-right: 0; }
    .proof-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .section-heading { gap: 20px; }
    .selected-work, .work-grid { grid-template-columns: 1fr; }
    .project-card-wide { grid-row: auto; }
    .project-card-wide .project-card-media { aspect-ratio: 16 / 9; }
    .timeline-preview-copy, .experience-aside, .case-toc { position: static; }
    .experience-layout, .case-layout { grid-template-columns: 1fr; gap: 40px; }
    .experience-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .case-toc { display: flex; gap: 8px 18px; overflow-x: auto; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .case-toc strong { display: none; }
    .case-toc a { flex: 0 0 auto; }
    .case-facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 17px; }
    .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
    .brand span { display: none; }
    .hero { padding: 34px 0 62px; }
    .hero-grid { gap: 28px; }
    .hero h1, .page-heading h1, .case-hero h1, .not-found h1 { font-size: 40px; }
    .hero h1 { margin-bottom: 18px; }
    .hero-lead { margin-bottom: 18px; font-size: 1rem; }
    .hero-note, .hero-links { display: none; }
    .hero-media { min-height: 140px; }
    .hero-portrait { inset: 0 88px 0 0; }
    .hero-evidence { right: 0; bottom: 0; width: 42%; height: 90px; }
    .hero-evidence-secondary { top: 0; right: 0; bottom: auto; width: 34%; height: 72px; }
    .hero-media .media-caption { padding: 5px 7px; font-size: 0.63rem; }
    .proof-strip { margin-top: -34px; }
    .proof-item { min-height: 116px; padding: 20px; }
    .proof-item strong { font-size: 1.65rem; }
    .section, .section-compact { padding: 74px 0 84px; }
    .section-heading { margin-bottom: 32px; }
    .section-heading h2, .timeline-preview-copy h2, .story-preview-copy h2, .about-lead h2, .contact-grid h2 { font-size: 36px; }
    .flagship-copy { padding: 28px; }
    .flagship-copy h2 { font-size: 34px; }
    .flagship-media { min-height: 300px; }
    .project-card-copy { padding: 22px; }
    .timeline-preview-item, .experience-entry, .story-chapter { grid-template-columns: 1fr; gap: 10px; }
    .story-collage { grid-template-columns: 1fr 1fr; grid-template-rows: 250px 150px; }
    .contact-grid { gap: 40px; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
    .page-hero, .case-hero { padding: 62px 0 72px; }
    .experience-aside { grid-template-columns: 1fr; }
    .skills-band { grid-template-columns: 1fr; }
    .about-lead-photo { min-height: 440px; }
    .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .gallery figure:nth-child(n) { grid-column: auto; grid-row: auto; }
    .case-facts { grid-template-columns: 1fr; }
    .case-facts li { border-bottom: 1px solid var(--line-dark); }
    .case-facts li:last-child { border-bottom: 0; }
    .evidence-grid, .related-work { grid-template-columns: 1fr; }
    .evidence-figure, .evidence-figure-wide { grid-column: auto; min-height: 260px; }
    .lightbox-panel { max-height: calc(100dvh - 24px); }
    .lightbox-stage { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Decision Observatory local concept */
.page-hero, .case-hero {
    background-color: var(--night);
    background-image: url("assets/images/portfolio/decision-observatory-field.jpg");
    background-position: center;
    background-size: cover;
    background-blend-mode: soft-light;
}

.home-page .hero {
    position: relative;
    min-height: calc(100dvh - var(--nav-height) - 24px);
    isolation: isolate;
    padding: 36px 0 48px;
    background: #07141b;
}
.home-page .hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("assets/images/portfolio/decision-observatory-field.jpg") center / cover no-repeat;
    content: "";
    opacity: 0.78;
    transform: scale(1.015);
    animation: observatory-drift 24s ease-in-out infinite alternate;
}
.home-page .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    gap: 36px;
}
.home-page .hero-copy { position: relative; z-index: 4; max-width: 690px; }
.home-page .hero-intro {
    margin: 0 0 8px;
    color: #dce5e1;
    font-family: "Outfit", sans-serif;
    font-size: 1.04rem;
    font-weight: 520;
}
.home-page .hero h1 { max-width: 12ch; font-size: 66px; }
.home-page .hero-lead { max-width: 55ch; }
.home-page .hero-note { max-width: 57ch; }
.home-page .hero .button-secondary { border-color: var(--accent); color: #8ed2a5; }
.home-page .hero-media { min-height: 570px; }
.home-page .hero-portrait {
    inset: 0 2% 0 14%;
    z-index: 1;
    border-color: rgba(204, 214, 208, 0.22);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}
.home-page .hero-portrait img { object-position: center 28%; }
.home-page .selected-work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-page .project-card-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
}
.home-page .project-card-wide .project-card-media {
    min-height: 390px;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
}
.home-page .proof-strip {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    margin-top: -52px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.home-page .proof-strip-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 28px;
    background: var(--night-soft);
    color: var(--paper);
}
.home-page .proof-strip-label > span {
    color: #79bd91;
    font-family: "Outfit", sans-serif;
    font-size: 0.76rem;
    font-weight: 720;
    line-height: 1.35;
    text-transform: uppercase;
}
.home-page .proof-strip-label > strong { margin-top: 10px; font-family: "Outfit", sans-serif; font-size: 1.65rem; line-height: 1.08; }
.home-page .proof-strip-label > p { margin: 12px 0 0; color: #afc0bc; font-size: 0.9rem; line-height: 1.4; }
.home-page .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.home-page .proof-item { position: relative; min-height: 164px; padding: 24px 26px; border-right: 0; border-bottom: 1px solid var(--line); }
.home-page .proof-item:nth-child(odd) { border-right: 1px solid var(--line); }
.home-page .proof-item:nth-last-child(-n + 2) { border-bottom: 0; }
.home-page .proof-context {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-family: "Outfit", sans-serif;
    font-size: 0.73rem;
    font-weight: 720;
    line-height: 1.3;
    text-transform: uppercase;
}
.home-page .proof-item strong { font-size: 1.85rem; line-height: 1.08; }
.home-page .proof-item p { margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }

.method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    list-style: none;
}
.method-step { min-width: 0; padding: 30px 28px 34px; border-left: 1px solid var(--line); }
.method-step:first-child { border-left: 0; }
.method-step > span {
    display: block;
    margin-bottom: 28px;
    color: var(--accent-dark);
    font-family: "Outfit", sans-serif;
    font-size: 0.82rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
}
.method-step h3 { margin-bottom: 12px; font-size: 1.3rem; }
.method-step p { margin-bottom: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.5; }

.projects-page .page-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 72px;
    background-color: #07141b;
    background-image:
        linear-gradient(90deg, rgba(7, 20, 27, 0.94) 0%, rgba(7, 20, 27, 0.62) 52%, rgba(7, 20, 27, 0.12) 100%),
        url("assets/images/portfolio/decision-observatory-field.jpg");
    background-position: center;
    background-size: cover;
    color: var(--paper);
}
.projects-page .page-hero::after { display: none; }
.projects-page .page-heading { position: relative; z-index: 1; grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr); }
.projects-page .page-heading h1 { max-width: 14ch; font-size: 68px; }
.projects-page .page-hero .eyebrow { color: #79bd91; }
.projects-page .page-hero .page-heading > p { color: #cbd8d4; }
.projects-page .filter-bar { padding: 6px 0; background: var(--paper); }
.projects-page .filter-controls { gap: 24px; }
.projects-page .filter-button {
    min-height: 44px;
    padding: 8px 2px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}
.projects-page .filter-button[aria-pressed="true"] { background: transparent; border-bottom-color: var(--accent); color: var(--night); }
.work-canvas {
    position: relative;
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(88, 113, 122, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 113, 122, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
}
.work-canvas::before {
    position: absolute;
    inset: 0;
    background: url("assets/images/portfolio/decision-observatory-field.jpg") 82% 0 / 760px auto no-repeat;
    content: "";
    opacity: 0.035;
    pointer-events: none;
}
.projects-page .work-grid { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 28px; }
.projects-page .project-card {
    overflow: visible;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
}
.projects-page .project-card:hover { border-color: var(--accent); box-shadow: none; transform: translateY(-2px); }
.projects-page .project-card-featured {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
    overflow: hidden;
    background: var(--night-soft);
    color: var(--paper);
    border: 1px solid var(--line-dark);
    border-radius: 6px;
}
.projects-page .project-card-featured:hover { border-color: #4c765f; box-shadow: 0 16px 44px rgba(7, 20, 27, 0.14); transform: none; }
.projects-page .project-card-media { border: 0; border-radius: 6px; }
.projects-page .project-card-featured .project-card-media { min-height: 430px; aspect-ratio: auto; border-radius: 0; }
.projects-page .project-card-evidence .project-card-media { aspect-ratio: 16 / 8; }
.projects-page .project-card-copy { padding: 24px 6px 34px; }
.projects-page .project-card-featured .project-card-copy { justify-content: center; padding: 40px; }
.projects-page .project-card-featured .project-domain { color: #79bd91; }
.projects-page .project-card-featured p { color: #cbd8d4; }
.projects-page .project-card-featured .project-card-link { color: var(--paper); }
.projects-page .project-card-featured .project-actions { border-top-color: var(--line-dark); }
.projects-page .project-card-featured .project-actions a { color: #8ed2a5; }
.projects-page .project-card-featured h2 { font-size: 2.1rem; }
.projects-page .project-card h2 { font-size: 1.55rem; }
.projects-page .project-actions { border-top: 1px solid var(--line); }

.about-observatory {
    position: relative;
    overflow: hidden;
    background: var(--night);
    color: var(--paper);
    isolation: isolate;
}
.about-observatory::before {
    position: absolute;
    inset: 0 42% 170px 0;
    z-index: -1;
    background: url("assets/images/portfolio/decision-observatory-field.jpg") center / cover no-repeat;
    content: "";
    opacity: 0.62;
}
.about-observatory-grid {
    display: grid;
    grid-template-columns: minmax(330px, 0.78fr) minmax(520px, 1.22fr);
    min-height: 650px;
    gap: 0;
    align-items: stretch;
}
.about-observatory-copy { display: flex; flex-direction: column; justify-content: center; padding: 78px 56px 86px 0; }
.about-observatory-copy .eyebrow { color: #79bd91; }
.about-observatory-copy h1 {
    max-width: 10ch;
    margin-bottom: 26px;
    font-family: "Outfit", sans-serif;
    font-size: 60px;
    font-weight: 650;
    line-height: 1.03;
}
.about-observatory-copy > p:last-child { max-width: 40ch; margin-bottom: 0; color: #dce5e1; font-size: 1.16rem; }
.about-ceremony { width: 100%; min-height: 650px; border: 0; border-radius: 0; }
.about-ceremony img { object-position: 62% center; }
.about-trajectory-shell { position: relative; z-index: 2; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.about-trajectory { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 28px 0 32px; }
.about-trajectory::before { position: absolute; top: 39px; left: 0; right: 0; height: 1px; background: var(--line); content: ""; }
.about-trajectory article { position: relative; padding-top: 24px; }
.about-trajectory article::before { position: absolute; top: 7px; left: 0; width: 11px; height: 11px; background: var(--accent); border: 2px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--accent-dark); content: ""; }
.about-trajectory span { color: var(--accent-dark); font-family: "Outfit", sans-serif; font-size: 0.84rem; font-weight: 720; text-transform: uppercase; }
.about-trajectory p { max-width: 26ch; margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.about-thesis { background: var(--paper); }
.about-thesis-grid { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: 72px; align-items: start; }
.about-thesis h2 { max-width: 12ch; font-size: 52px; }
.about-thesis-grid > div:last-child { max-width: 68ch; }
.about-page .story-chapter { position: relative; }
.about-page .story-chapter::before { position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--accent); content: ""; }

@keyframes observatory-drift {
    from { transform: scale(1.015) translate3d(0, 0, 0); }
    to { transform: scale(1.03) translate3d(-0.5%, -0.35%, 0); }
}

@media (max-width: 1100px) {
    .home-page .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(430px, 1.05fr); }
    .home-page .hero h1 { font-size: 58px; }
    .about-observatory-grid { grid-template-columns: minmax(300px, 0.85fr) minmax(440px, 1.15fr); }
    .about-observatory-copy h1 { font-size: 62px; }
}

@media (max-width: 900px) {
    .site-header { background: var(--night); }
    .home-page .hero { padding-bottom: 90px; }
    .home-page .hero-grid, .about-observatory-grid, .about-thesis-grid { grid-template-columns: 1fr; }
    .home-page .hero-media { min-height: 560px; }
    .home-page .hero-portrait { left: 18%; right: 4%; }
    .home-page .selected-work { grid-template-columns: 1fr; }
    .home-page .selected-work .project-card { min-width: 0; }
    .home-page .project-card-wide {
        grid-column: auto;
        display: flex;
    }
    .home-page .project-card-wide .project-card-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .home-page .proof-strip { grid-template-columns: 1fr; }
    .home-page .proof-strip-label { min-height: 72px; padding: 18px 24px; }
    .home-page .proof-grid { border-top: 1px solid var(--line); border-left: 0; }
    .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .method-step:nth-child(3) { border-left: 0; }
    .method-step:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .case-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-snapshot-grid > div:nth-child(2) { border-right: 0; }
    .case-snapshot-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .case-snapshot-grid .case-proves { grid-template-columns: 150px minmax(0, 1fr); }
    .projects-page .page-heading { grid-template-columns: 1fr; }
    .projects-page .work-grid { grid-template-columns: 1fr; }
    .projects-page .project-card-featured {
        grid-column: auto;
        grid-row: auto;
        display: flex;
    }
    .projects-page .project-card-featured .project-card-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .projects-page .project-card-featured .project-card-copy { padding: 30px; }
    .about-observatory::before { inset: 0 0 45% 0; }
    .about-observatory-copy { min-height: 470px; padding: 72px 0; }
    .about-ceremony { min-height: 520px; }
    .about-trajectory { grid-template-columns: repeat(2, 1fr); }
    .about-trajectory::before { display: none; }
    .about-thesis-grid { gap: 28px; }
}

@media (max-width: 640px) {
    .home-page .hero { padding: 38px 0 66px; }
    .home-page .hero::before { background-position: 58% center; opacity: 0.64; }
    .home-page .hero-intro { font-size: 0.96rem; }
    .home-page .hero h1 { max-width: 12ch; font-size: 40px; }
    .home-page .hero-media { min-height: 390px; }
    .home-page .hero-portrait { inset: 0 7%; }
    .home-page .proof-strip { margin-top: -26px; }
    .home-page .proof-strip-label { min-height: 0; padding: 24px; }
    .home-page .proof-grid { grid-template-columns: 1fr; }
    .home-page .proof-item { min-height: 0; padding: 22px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
    .home-page .proof-item:nth-child(odd) { border-right: 0; }
    .home-page .proof-item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .home-page .proof-item:last-child { border-bottom: 0; }
    .home-page .proof-item strong { font-size: 1.65rem; }
    .method-grid { grid-template-columns: 1fr; }
    .method-step, .method-step:nth-child(3) { padding: 24px 4px 28px; border-left: 0; }
    .method-step:nth-child(n + 2) { border-top: 1px solid var(--line); }
    .method-step > span { margin-bottom: 16px; }
    .case-snapshot { padding-top: 38px; }
    .case-snapshot-grid { grid-template-columns: 1fr; }
    .case-snapshot-grid > div { padding: 20px 0 22px; border-right: 0; }
    .case-snapshot-grid > div:nth-child(n + 2) { border-top: 1px solid var(--line); }
    .case-snapshot-grid .case-proves { grid-template-columns: 1fr; gap: 8px; }
    .case-snapshot-grid .case-proves dd { margin-top: 0; }
    .case-snapshot + .section { padding-top: 58px; }
    .projects-page .page-hero { padding: 60px 0 54px; }
    .projects-page .page-hero { background-position: 62% center; }
    .projects-page .page-heading h1 { font-size: 42px; }
    .projects-page .filter-controls {
        flex-wrap: wrap;
        gap: 4px 16px;
        overflow-x: visible;
    }
    .projects-page .filter-button { min-height: 40px; }
    .projects-page .project-card-featured .project-card-media, .projects-page .project-card-evidence .project-card-media { aspect-ratio: 16 / 9; }
    .about-observatory-copy { min-height: 430px; padding: 58px 0 64px; }
    .about-observatory-copy h1 { max-width: 9ch; font-size: 48px; }
    .about-observatory-copy > p:last-child { font-size: 1rem; }
    .about-ceremony { min-height: 360px; }
    .about-ceremony img { object-position: 67% center; }
    .about-trajectory { grid-template-columns: 1fr; gap: 0; padding: 18px 0 22px; }
    .about-trajectory article { padding: 18px 0 18px 24px; border-bottom: 1px solid var(--line); }
    .about-trajectory article:last-child { border-bottom: 0; }
    .about-trajectory article::before { top: 24px; }
    .about-thesis h2 { font-size: 38px; }
}

/* Clearer hierarchy within the existing photographic design. */
.home-page .hero { min-height: 0; padding: 42px 0; }
.home-page .hero::before { opacity: 0.3; }
.home-page .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
.home-page .hero h1 { max-width: 20ch; font-size: 58px; }
.home-page .hero-media { display: flex; justify-content: center; min-height: 0; height: 500px; }
.home-page .hero-portrait { position: relative; inset: auto; height: 100%; width: auto; aspect-ratio: 640 / 862; max-width: 100%; box-shadow: none; }
.home-page .hero-portrait img { object-fit: contain; object-position: center; }
.home-page .hero-lead { margin-bottom: 26px; font-size: 1.1rem; }
.home-page .proof-strip { grid-template-columns: 1fr; margin-top: 0; border-radius: 0; box-shadow: none; }
.home-page .proof-strip-label { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; }
.home-page .proof-strip-label strong { margin: 0; font-size: 1.3rem; }
.home-page .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; }
.home-page .proof-item { padding: 20px 24px; min-height: 0; }
.home-page .proof-item:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 0; }
.home-page .proof-item:last-child { border-right: 0; }
.home-page .proof-context { margin-bottom: 10px; }
.home-page .proof-item strong { font-size: 1.6rem; }
.proof-item a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--accent-dark); font-size: 0.88rem; font-weight: 650; }
.home-page .section { padding: 72px 0 82px; }
.home-page .section-heading { margin-bottom: 32px; }
.home-page .section-heading h2 { font-size: 44px; }
.home-page .project-card-copy { padding: 24px; }
.home-page .project-card-copy strong { color: var(--ink); font-weight: 650; }
.home-page .project-card-wide .project-card-media { min-height: 340px; }
.home-page .project-card-wide .project-card-media img { position: absolute; inset: 0; }
.home-page .flagship { min-height: 0; align-items: start; }
.home-page .flagship-media { min-height: 0; aspect-ratio: 16 / 9; align-self: center; }
.home-page .flagship-media img { object-fit: contain; }
.home-page .flagship-copy { padding: 32px; }
.home-page .flagship-copy h2 { font-size: 38px; }
.home-page .method-step { padding: 24px 20px; }
.home-page .method-step > span { margin-bottom: 14px; }
.home-page .timeline-preview-item { padding: 22px 0; }
.home-page .story-collage { grid-template-rows: 180px 180px; }
.project-context { margin: 0 0 8px; color: var(--ink); font-size: 0.87rem; font-weight: 650; }
.projects-page .project-card-featured .project-context { color: #dce5e1; }
.projects-page .page-heading h1 { max-width: 20ch; font-size: 58px; }
.projects-page .work-canvas { padding-top: 44px; background-image: none; }
.work-canvas::before { display: none; }
.projects-page .project-card-featured .project-card-media { min-height: 0; aspect-ratio: 16 / 9; align-self: center; }
.projects-page .project-card-featured .project-card-media img { object-fit: contain; }
.projects-page .project-card-featured .project-card-copy { padding: 30px; }
.projects-page .project-card-copy { padding: 20px 2px 28px; }
.project-card[id] { scroll-margin-top: calc(var(--nav-height) + 84px); }
.experience-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; }
.experience-list { border-top: 0; }
.experience-group { scroll-margin-top: calc(var(--nav-height) + 24px); }
.experience-group + .experience-group { margin-top: 64px; }
.experience-group-title { margin: 0; padding: 0 0 20px; border-bottom: 2px solid var(--accent-dark); font-size: 1.4rem; }
.experience-entry { grid-template-columns: 150px minmax(0, 1fr); gap: 26px; padding: 30px 0; }
.experience-entry .experience-role { margin-bottom: 8px; color: var(--ink); font-family: "Outfit", sans-serif; font-size: 1.65rem; font-weight: 650; line-height: 1.15; }
.experience-entry .experience-organization { margin-bottom: 14px; color: var(--accent-dark); font-weight: 650; }
.experience-entry p { max-width: 65ch; }
.experience-entry strong { color: var(--ink); font-weight: 650; }
.experience-entry .project-actions { margin-top: 14px; }
.experience-jumps { display: grid; gap: 2px; margin: 20px 0; }
.experience-jumps a { display: flex; min-height: 44px; align-items: center; font-size: 0.95rem; color: var(--accent-dark); }
.about-observatory-copy h1 { max-width: 16ch; font-size: 56px; }
.about-observatory::before { opacity: 0.25; }
.about-thesis h2 { max-width: 18ch; }
.case-hero .case-summary { max-width: 60ch; }
.process-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 24px 0 16px; padding: 0; list-style: none; counter-reset: process; border-top: 2px solid var(--accent-dark); }
.process-sequence li { counter-increment: process; padding: 22px 20px 8px 0; min-width: 0; }
.process-sequence li::before { content: "0" counter(process); display: block; margin-bottom: 10px; color: var(--accent-dark); font-family: "Outfit", sans-serif; font-size: 0.85rem; font-weight: 650; }
.process-sequence strong { display: block; font-family: "Outfit", sans-serif; line-height: 1.3; }
.process-sequence p { margin: 10px 0 0; font-size: 0.95rem; }
.evidence-note { color: var(--muted); font-size: 0.9rem; }
.analysis-table-wrap { max-width: 100%; margin: 24px 0 16px; }
.analysis-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.94rem; font-variant-numeric: tabular-nums; }
.analysis-table caption { margin-bottom: 14px; color: var(--muted); text-align: left; }
.analysis-table th, .analysis-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.analysis-table thead { background: var(--soft-green); }
.analysis-table tbody th { font-weight: 600; }
.model-equation { padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
@media (min-width: 641px) and (max-width: 1100px) {
    .home-page .hero h1 { font-size: 46px; }
    .home-page .hero-media { height: 420px; }
    .home-page .hero-grid { gap: 28px; }
    .home-page .proof-strip { grid-template-columns: 1fr; }
    .home-page .proof-strip-label { display: block; }
    .home-page .proof-strip-label strong { display: inline; margin-left: 20px; font-size: 1.3rem; }
    .home-page .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .proof-item:nth-child(even) { border-right: 0; }
    .home-page .proof-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
    .page-heading { gap: 24px; }
    .home-page .project-card-wide .project-card-media { min-height: 0; }
    .experience-layout { grid-template-columns: 1fr; gap: 32px; }
    .experience-aside { display: block; }
    .experience-jumps { display: flex; flex-wrap: wrap; gap: 6px 22px; }
    .about-observatory-copy { min-height: 0; padding: 52px 0; }
    .about-observatory-copy h1 { max-width: 20ch; font-size: 48px; }
}
@media (max-width: 640px) {
    .home-page .hero { padding: 28px 0 32px; }
    .home-page .hero::before { opacity: 0.15; }
    .home-page .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .home-page .hero h1 { max-width: 20ch; font-size: 38px; }
    .home-page .hero-lead { font-size: 1rem; line-height: 1.5; margin-bottom: 20px; }
    .home-page .hero-media { height: 260px; }
    .home-page .proof-strip { grid-template-columns: 1fr; }
    .home-page .proof-strip-label { display: block; padding: 18px 20px; }
    .home-page .proof-strip-label > span { display: block; margin-bottom: 6px; }
    .home-page .proof-strip-label strong { font-size: 1.3rem; }
    .home-page .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .proof-item { padding: 16px 14px 10px; }
    .home-page .proof-item strong { font-size: 1.35rem; }
    .home-page .proof-item p { font-size: 0.85rem; }
    .home-page .proof-item:nth-child(even) { border-right: 0; }
    .home-page .proof-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .home-page .proof-context { margin-bottom: 7px; }
    .home-page .proof-item p { margin-top: 8px; }
    .home-page .section { padding: 48px 0 54px; }
    .home-page .section-heading h2 { font-size: 34px; }
    .home-page .flagship-copy { padding: 24px; }
    .home-page .flagship-copy h2 { font-size: 32px; }
    .home-page .project-card-copy { padding: 22px; }
    .home-page .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-page .method-step { padding: 20px 12px; }
    .home-page .method-step:nth-child(2) { border-top: 0; border-left: 1px solid var(--line); }
    .home-page .method-step:nth-child(4) { border-left: 1px solid var(--line); }
    .home-page .story-collage { grid-template-rows: 180px 140px; }
    .projects-page .page-hero { padding: 42px 0; }
    .projects-page .page-heading h1 { font-size: 40px; }
    .projects-page .filter-controls { flex-wrap: nowrap; gap: 16px; overflow-x: auto; }
    .projects-page .filter-button { min-height: 44px; }
    .projects-page .project-card-featured .project-card-copy { padding: 24px; }
    .projects-page .work-canvas { padding-top: 28px; }
    .experience-entry { grid-template-columns: 1fr; gap: 8px; }
    .experience-entry .experience-role { font-size: 1.5rem; }
    .about-observatory-copy h1 { font-size: 40px; }
    .process-sequence { grid-template-columns: 1fr; }
    .process-sequence li + li { border-top: 1px solid var(--line); }
    .analysis-table { font-size: 0.9rem; }
    .analysis-table th, .analysis-table td { padding: 10px 4px; }
}

/* Motion and professional profile layer */
:root {
    --motion-fast: 180ms;
    --motion-medium: 620ms;
    --motion-slow: 880ms;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: page-out var(--motion-fast) ease both; }
::view-transition-new(root) { animation: page-in 360ms var(--motion-ease) both; }

@keyframes page-out {
    to { opacity: 0; transform: translate3d(0, -6px, 0); }
}

@keyframes page-in {
    from { opacity: 0; transform: translate3d(0, 10px, 0); }
}

.home-page .hero::before {
    animation: observatory-drift 22s var(--motion-ease-soft) infinite alternate;
    will-change: transform;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.hero-actions .hero-links {
    display: flex !important;
    gap: 8px;
    align-items: center;
    margin-top: 0;
}

.social-icon-link {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    overflow: visible;
    color: #dce5e1 !important;
    background: rgba(16, 28, 36, 0.54);
    border: 1px solid rgba(204, 214, 208, 0.34);
    border-radius: 6px;
    text-decoration: none;
    transition:
        color var(--motion-fast) ease,
        background-color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        transform var(--motion-fast) var(--motion-ease);
}

.social-icon-link::before {
    width: 18px;
    height: 18px;
    background: currentColor;
    content: "";
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.social-linkedin::before { -webkit-mask-image: url("assets/icons/linkedin.svg"); mask-image: url("assets/icons/linkedin.svg"); }
.social-github::before { -webkit-mask-image: url("assets/icons/github.svg"); mask-image: url("assets/icons/github.svg"); }
.social-scholar::before { -webkit-mask-image: url("assets/icons/google-scholar.svg"); mask-image: url("assets/icons/google-scholar.svg"); }
.social-email::before { -webkit-mask-image: url("assets/icons/gmail.svg"); mask-image: url("assets/icons/gmail.svg"); }

.social-icon-link::after {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 3;
    padding: 5px 8px;
    background: var(--surface);
    color: var(--night);
    border-radius: 4px;
    box-shadow: 0 8px 22px rgba(5, 15, 20, 0.2);
    content: attr(data-tooltip);
    font-family: "Outfit", sans-serif;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
    white-space: nowrap;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
    color: #07140d !important;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.social-icon-link:hover::after,
.social-icon-link:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.social-icon-link:active { transform: translateY(0) scale(0.97); }

.motion-ready .hero .hero-copy > * {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity var(--motion-medium) var(--motion-ease),
        transform var(--motion-medium) var(--motion-ease);
}

.motion-ready .hero .hero-copy > :nth-child(1) { transition-delay: 60ms; }
.motion-ready .hero .hero-copy > :nth-child(2) { transition-delay: 130ms; }
.motion-ready .hero .hero-copy > :nth-child(3) { transition-delay: 210ms; }
.motion-ready .hero .hero-copy > :nth-child(4) { transition-delay: 290ms; }
.motion-ready .hero .hero-copy > :nth-child(5) { transition-delay: 360ms; }

.motion-ready .hero.is-motion-ready .hero-copy > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.motion-ready .hero .hero-media {
    --hero-x: 0px;
    --hero-y: 0px;
    opacity: 0;
    transform: translate3d(calc(24px + var(--hero-x)), var(--hero-y), 0) scale(0.985);
    transition:
        opacity var(--motion-slow) var(--motion-ease) 240ms,
        transform var(--motion-slow) var(--motion-ease) 240ms;
}

.motion-ready .hero.is-motion-ready .hero-media {
    opacity: 1;
    transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1);
}

.motion-ready [data-motion-item] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity var(--motion-medium) var(--motion-ease) var(--motion-delay, 0ms),
        transform var(--motion-medium) var(--motion-ease) var(--motion-delay, 0ms);
}

.motion-ready [data-motion-item].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.button,
.filter-button,
.project-card,
.media-button img,
.project-card-media img {
    transition-timing-function: var(--motion-ease);
}

.button:active,
.filter-button:active { transform: translateY(1px) scale(0.98); }

.project-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    content: "";
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 380ms var(--motion-ease);
}

.project-card:hover::after,
.project-card:focus-within::after { transform: scaleX(1); }

.project-card:hover { transform: translateY(-5px); }
.project-card:hover .project-card-media img { transform: scale(1.035); }

.project-actions a::after,
.text-link::after {
    margin-left: 7px;
    content: "\2192";
    text-decoration: none;
    transition: transform var(--motion-fast) var(--motion-ease);
}

.project-actions a:hover::after,
.project-actions a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after { transform: translateX(4px); }

.nav-links a { position: relative; }
.nav-links a::after {
    position: absolute;
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 2px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--motion-fast) var(--motion-ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: transparent; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-socials {
    display: flex;
    min-width: 196px;
    gap: 3px;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    padding-left: 0;
    border-left: 1px solid rgba(204, 214, 208, 0.2);
}

.nav-socials .nav-social-link {
    display: grid;
    width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: #cbd8d4 !important;
}

.nav-socials .nav-social-link:hover,
.nav-socials .nav-social-link:focus-visible {
    background: var(--accent);
    color: #07140d !important;
}

.nav-socials .nav-social-link::after {
    top: calc(100% + 8px);
    right: auto;
    bottom: auto;
    left: 50%;
    width: auto;
    height: auto;
    padding: 5px 8px;
    background: var(--surface);
    color: var(--night);
    content: attr(data-tooltip);
    opacity: 0;
    transform: translate(-50%, -5px);
    transform-origin: center;
}

.nav-socials .nav-social-link:hover::after,
.nav-socials .nav-social-link:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.contact-details { font-style: normal; }

.contact-profile-link {
    display: flex;
    min-height: 44px;
    gap: 12px;
    align-items: center;
    border-radius: 6px;
    text-decoration: none;
    transition: color var(--motion-fast) ease, transform var(--motion-fast) var(--motion-ease);
}

.contact-profile-link:hover,
.contact-profile-link:focus-visible {
    color: #8ed2a5;
    transform: translateX(4px);
}

.contact-profile-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    place-items: center;
    color: #dce5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-dark);
    border-radius: 5px;
}

.contact-profile-icon::before {
    width: 16px;
    height: 16px;
    background: currentColor;
    content: "";
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.contact-profile-link:hover .contact-profile-icon,
.contact-profile-link:focus-visible .contact-profile-icon {
    color: #07140d;
    background: var(--accent);
    border-color: var(--accent);
}

.contact-location {
    padding: 8px 0 0 46px;
    color: #afc0bc !important;
    font-size: 0.92rem;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    :root { --nav-height: 70px; }
    .menu-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 14px 18px 22px;
        background: var(--night);
        border-bottom: 1px solid var(--line-dark);
    }
    .nav-links.is-open { display: grid; }
    .nav-links > li:not(.nav-socials) > a { width: 100%; min-height: 48px; padding-inline: 8px; }
    .nav-socials {
        width: 100%;
        min-width: 0;
        gap: 8px;
        justify-content: center;
        margin: 8px 0 0;
        padding: 14px 0 0;
        border-top: 1px solid var(--line-dark);
        border-left: 0;
    }
    .nav-socials .nav-social-link { width: 44px; min-height: 44px; }
    .nav-socials .nav-social-link::after { display: none; }
    html:not(.js-ready) .menu-toggle { display: none; }
    html:not(.js-ready) .site-nav { flex-wrap: wrap; padding-block: 16px; }
    html:not(.js-ready) .nav-links { position: static; display: flex; flex-wrap: wrap; width: 100%; padding: 0; }
}

@media (max-width: 900px) {
    .home-page .hero::before { animation: none; }
    .hero-actions { align-items: flex-start; }
    .motion-ready .hero .hero-media,
    .motion-ready .hero.is-motion-ready .hero-media { transform: none; }
}

@media (max-width: 640px) {
    .hero-actions { flex-direction: column; gap: 14px; }
    .hero-actions .button-row { width: 100%; }
    .hero-actions .button { flex: 1 1 150px; }
    .hero-actions .hero-links { width: 100%; }
    .social-icon-link::after { display: none; }
    .motion-ready [data-motion-item] { transform: translate3d(0, 18px, 0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .motion-ready .hero .hero-copy > *,
    .motion-ready .hero .hero-media,
    .motion-ready [data-motion-item] {
        opacity: 1;
        transform: none;
    }
}

/* Photograph-led editorial preview: shared surfaces, then page-specific layouts. */
:root { --container: 1320px; --shadow: 0 8px 24px rgba(16, 28, 36, 0.06); }
.brand span { display: block; font-size: 12px; }
.brand strong { font-size: 21px; font-weight: 550; }
.site-nav { gap: 20px; }
.nav-links a { font-size: 15px; font-weight: 450; }
.nav-links > li > a[href="#contact"] { border: 1px solid #68ad83; border-radius: 4px; margin-inline: 12px; padding-inline: 22px; }
.nav-socials .nav-social-link {
    color: #edf5ef !important;
    background: #1c3038;
    border: 1px solid #526860;
    border-radius: 5px;
}
.nav-socials .nav-social-link::before { width: 23px; height: 23px; }
.nav-socials { gap: 6px; padding-left: 12px; }
.eyebrow, .project-domain, .project-context, .meta-label { text-transform: none; font-weight: 550; }
.eyebrow { font-size: 15px; }
.button-primary { color: white; background: var(--accent-dark); }
.button-primary:hover { color: white; background: #245f40; }
.section, .home-page .section { padding-block: 76px 88px; }
.section-heading { display: block; margin-bottom: 36px; }
.section-heading h2, .home-page .section-heading h2 { font-size: 44px; max-width: 24ch; margin-bottom: 20px; }
.section-heading > p { max-width: 76ch; }
.page-hero, .projects-page .page-hero {
    padding: 48px 0 36px; color: var(--paper);
    background-color: var(--night);
    background-image: linear-gradient(90deg, rgba(3, 10, 14, .7), rgba(3, 10, 14, .35)), url("assets/images/portfolio/decision-observatory-field.jpg");
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
}
.page-hero::before, .page-hero::after, .work-canvas::before { display: none; }
.page-heading, .projects-page .page-heading { display: block; }
.page-heading h1, .projects-page .page-heading h1 { font-size: 48px; max-width: 28ch; margin-bottom: 20px; }
.page-hero .page-heading > p, .projects-page .page-hero .page-heading > p { color: #dce5e1; max-width: 90ch; font-size: 18px; }
.page-hero .eyebrow, .projects-page .page-hero .eyebrow { color: #96d3ac; }
.project-card:hover { transform: none; box-shadow: none; }
.project-card { box-shadow: none; }
.project-card::after { display: none; }
.project-actions a, .text-link, .case-toc a { min-height: 44px; }
.project-actions { gap: 8px 22px; }
.visual-label { text-transform: none; font-weight: 500; }

/* The portrait is part of a continuous stage, not a card above the copy. */
.home-page .hero {
    position: relative; isolation: isolate; display: block; padding: 0;
    min-height: 630px; height: auto; overflow: hidden;
    background: var(--night);
}
.home-page .hero-grid { display: flex; min-height: 630px; align-items: center; gap: 0; }
.home-page .hero-copy { z-index: 3; width: 53%; min-width: 0; max-width: 680px; padding: 28px 0; }
.home-page .hero .eyebrow { color: #96d3ac; font-size: 15px; margin-bottom: 24px; max-width: 43ch; }
.home-page .hero h1 { font-size: 48px; line-height: 1.08; max-width: 23ch; margin-bottom: 22px; font-weight: 600; }
.home-page .hero-intro { font-family: "Outfit", sans-serif; font-size: 24px; line-height: 1.3; margin-bottom: 18px; }
.home-page .hero-lead { max-width: 52ch; font-size: 18px; line-height: 1.45; margin-bottom: 26px; color: #dce5e1; }
.home-page .hero-media { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 57%; height: 100%; min-height: 0; }
.home-page .hero-portrait { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; }
.home-page .hero-portrait img { object-fit: cover; object-position: center 31%; }
.home-page .hero::before {
    z-index: 1; inset: 0; opacity: 1; animation: none; transform: none; pointer-events: none;
    background: linear-gradient(90deg, #101c24 0%, #101c24 41%, rgba(16,28,36,.93) 46%, rgba(16,28,36,.48) 54%, rgba(16,28,36,0) 65%);
}
.home-page .hero .media-caption { left: auto; right: 22px; bottom: 20px; font-size: 13px; }
.home-page .hero .button { min-height: 48px; padding-inline: 24px; }
.home-page .hero .button-secondary { color: var(--paper); border-color: #79bd91; }
.home-page .proof-strip { display: block; border: 0; background: var(--paper); margin: 0 auto; }
.home-page .proof-strip-label { background: transparent; color: var(--ink); padding: 26px 0 0; }
.home-page .proof-strip-label > span { color: var(--accent-dark); }
.home-page .proof-grid { padding: 32px 0; background: transparent; }
.home-page .proof-item { padding: 0 26px; }
.home-page .proof-item:first-child { padding-left: 0; }
.home-page .proof-item:last-child { padding-right: 0; }
.home-page .proof-context { font-size: 13px; text-transform: none; margin: 0 0 10px; }
.home-page .proof-item strong { color: var(--accent-dark); font-size: 30px; line-height: 1.1; }
.home-page .proof-item p { margin: 10px 0 6px; font-size: 15px; }
.home-page .proof-item a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--accent-dark); }
.home-page .selected-work { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.home-page .selected-work .project-card { border: 0; border-radius: 0; background: transparent; overflow: hidden; }
.home-page .project-card-wide { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line) !important; }
.home-page .project-card-wide .project-card-media { min-height: 0; aspect-ratio: 16 / 10; }
.home-page .project-card-media { border-radius: 4px; aspect-ratio: 16 / 10; }
.home-page .project-card-copy { padding: 22px 0 0; }
.home-page .project-card-wide .project-card-copy { padding: 0; }
.home-page .project-card-copy h3 { font-size: 28px; }
.home-page .project-card-wide h3 { font-size: 38px; }
.home-page .project-card-copy p { font-size: 17px; }
.home-page .project-card-copy strong { display: block; margin-top: 14px; font-weight: 550; }
.home-page .flagship { border: 0; border-radius: 0; background: transparent; gap: 44px; align-items: center; }
.home-page .flagship-copy { padding: 0; }
.home-page .flagship-media { border-radius: 4px; }
.method-grid { border-radius: 0; border: 0; background: transparent; }
.home-page .story-collage { gap: 12px; }

/* All projects retain their context; rows make comparison less laborious. */
.projects-page .work-canvas { background: var(--paper); padding-top: 12px; }
.projects-page .work-grid { grid-template-columns: 1fr; gap: 0; }
.projects-page .filter-bar { position: static; border-bottom: 0; }
.projects-page .filter-controls { flex-wrap: wrap; gap: 10px 28px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.projects-page .filter-button { font-size: 16px; flex-shrink: 0; }
.projects-page .project-card {
    display: grid; grid-template-columns: minmax(220px, .4fr) minmax(0, 1fr);
    align-items: start; gap: 32px; padding: 30px 0; border: 0;
    border-bottom: 1px solid var(--line); border-radius: 0;
    color: var(--ink); background: transparent;
}
.projects-page .project-card[hidden] { display: none; }
.projects-page .project-card:hover { transform: none; box-shadow: none; }
.projects-page .project-card .project-card-media {
    min-height: 0; aspect-ratio: 16 / 11; align-self: start; border-radius: 4px; background: #e9ede8;
}
.projects-page .project-card .project-card-copy { padding: 0; }
.projects-page .project-card h2 { font-size: 28px; margin: 8px 0 14px; }
.projects-page .project-card p { color: var(--muted); font-size: 17px; margin-bottom: 10px; }
.projects-page .project-card .project-context { display: inline; color: var(--accent-dark); font-size: 14px; }
.projects-page .project-card .project-domain { font-size: 13px; margin: 4px 0 8px; color: var(--muted); }
.projects-page .project-card .project-card-link { color: var(--ink); }
.projects-page .project-actions { padding-top: 2px; border: 0; margin-top: 4px; }
.projects-page .project-card .project-actions a { color: var(--accent-dark); font-size: 16px; }
.projects-page .project-card-featured { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 40px; padding: 10px 0 30px; }
.projects-page .project-card-featured .project-card-media { aspect-ratio: 1600 / 732; align-self: center; background: var(--night); }
.projects-page .project-card-featured .project-card-media img { object-fit: contain; }
.projects-page .project-card-featured h2 { font-size: 34px; }
.projects-page .project-card .visual-label { position: static; display: block; margin: 0; padding: 8px 12px; background: var(--soft-green); color: var(--ink); font-size: 12px; max-width: none; }
.projects-page .project-card-media:has(.visual-label) { overflow: visible; margin-bottom: 30px; }

.section:has(.experience-layout) { padding-top: 24px; }
.experience-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 70px; }
.experience-aside { position: static; }
.experience-jumps { margin-top: 0; padding-left: 16px; border-left: 2px solid var(--line); }
.experience-jumps a { text-decoration: none; color: var(--muted); }
.experience-jumps a:hover { color: var(--accent-dark); }
.career-photos { display: grid; gap: 16px; margin-top: 28px; }
.career-photo { margin: 0; min-width: 0; }
.career-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.career-photo figcaption { color: var(--muted); font-size: 14px; line-height: 1.35; padding-top: 8px; }
.experience-entry { grid-template-columns: 130px minmax(0, 1fr); gap: 28px; }
.experience-entry time { font-size: 15px; }
.experience-entry .experience-role { font-size: 26px; }
.experience-entry p { font-size: 18px; }
.experience-group-title { font-size: 20px; border-bottom-width: 1px; }

.about-observatory { background: var(--night); color: var(--paper); }
.about-observatory::before { display: none; }
.about-observatory-grid { width: 100%; max-width: 1800px; min-height: 0; grid-template-columns: 1fr 1.1fr; gap: 0; }
.about-observatory-copy {
    padding: 54px 44px 54px max(24px, calc((100vw - 1320px) / 2));
    background-image: linear-gradient(rgba(16, 28, 36, .35), rgba(16, 28, 36, .35)), url("assets/images/portfolio/decision-observatory-field.jpg");
    background-position: center;
    background-size: cover;
}
.about-observatory-copy h1 { font-size: 50px; max-width: 17ch; }
.about-observatory-copy .eyebrow { color: #96d3ac; }
.about-observatory-copy > p:last-child { color: #dce5e1; font-size: 18px; }
.about-ceremony { min-height: 0; height: 560px; }
.about-ceremony img { object-position: 60% center; }
.about-trajectory { padding-block: 24px; }
.about-thesis h2 { font-size: 44px; }
.gallery figcaption { font-size: 15px; }

/* Case openings are reading surfaces with inspectable, uncropped evidence. */
.case-hero { padding: 44px 0 24px; background: var(--paper); color: var(--ink); }
.case-hero-grid { grid-template-columns: 1fr 1.15fr; gap: 48px; }
.case-hero h1 { font-size: 48px; }
.case-hero .eyebrow { color: var(--accent-dark); }
.case-summary { color: var(--muted); font-size: 19px; }
.case-hero-media { border: 0; border-radius: 3px; background: #e9ede8; aspect-ratio: 3 / 2; }
.case-hero-media img { object-fit: contain; }
.case-hero-media--diagram { aspect-ratio: 16 / 9; }
.case-hero-media:has(img[src*="risq-weather-dashboard"]) { aspect-ratio: 1600 / 732; }
.case-hero .button-secondary { color: var(--accent-dark); border-color: var(--accent-dark); }
.case-facts { border-color: var(--line); margin-top: 32px; }
.case-facts strong { color: var(--accent-dark); text-transform: none; font-size: 14px; }
.case-facts span { color: var(--muted); font-size: 16px; }
.case-snapshot { padding-top: 24px; }
.case-snapshot-grid dt { text-transform: none; font-size: 15px; }
.case-body h2 { font-size: 34px; }
.case-body section { padding-bottom: 40px; }
.case-body section + section { padding-top: 40px; }
.case-quote { background: transparent; padding-block: 12px; }
.not-found { background: var(--paper); color: var(--ink); }
.not-found p { color: var(--muted); }
.not-found .button-secondary { color: var(--accent-dark); border-color: var(--accent-dark); }
.contact-band { padding-block: 64px; }

@media (max-width: 1100px) {
    .home-page .hero h1 { font-size: 42px; }
    .nav-socials { padding-left: 0; }
    .home-page .hero-copy { width: 52%; }
    .nav-links > li > a[href="#contact"] { margin-inline: 0; }
    .experience-layout { gap: 36px; grid-template-columns: 210px minmax(0, 1fr); }
    .experience-entry { grid-template-columns: 1fr; gap: 10px; }
    .about-observatory-copy h1 { font-size: 42px; }
    .case-hero h1 { font-size: 40px; }
}
@media (max-width: 900px) {
    .home-page .hero { height: auto; min-height: 0; }
    .home-page .hero-grid { width: 100%; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
    .home-page .hero-copy { width: 100%; padding: 36px 24px; }
    .home-page .hero h1 { font-size: 38px; }
    .home-page .hero-media { position: relative; inset: auto; width: 100%; height: 100%; }
    .home-page .hero::before { display: none; }
    .home-page .hero-portrait img { object-position: 50% 30%; }
    .home-page .proof-item:nth-child(n) { padding: 20px; }
    .home-page .selected-work { grid-template-columns: 1fr; gap: 36px; }
    .home-page .selected-work .project-card { display: grid; grid-template-columns: .85fr 1fr; gap: 28px; }
    .home-page .project-card-wide { padding-bottom: 0; border-bottom: 0 !important; }
    .home-page .project-card-copy { padding: 0; }
    .home-page .project-card-wide h3 { font-size: 28px; }
    .home-page .flagship { grid-template-columns: 1fr; gap: 28px; }
    .projects-page .project-card { grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
    .projects-page .project-card-featured { grid-template-columns: 1fr; }
    .projects-page .project-card-featured .project-card-media { max-height: 320px; }
    .experience-layout { grid-template-columns: 1fr; }
    .experience-aside { position: static; }
    .career-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .experience-jumps { display: flex; flex-wrap: wrap; gap: 8px 22px; }
    .about-observatory-grid { grid-template-columns: 1fr; }
    .about-observatory-copy { padding: 36px 24px; }
    .about-observatory-copy h1 { max-width: 24ch; }
    .about-observatory-copy > p:last-child { max-width: 65ch; }
    .about-ceremony { height: 420px; }
    .case-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .case-hero-media { max-height: 440px; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 36px); }
    .brand strong { font-size: 18px; }
    .section, .home-page .section { padding-block: 42px 48px; }
    .section-heading h2, .home-page .section-heading h2, .about-thesis h2 { font-size: 32px; }
    .home-page .hero-grid { grid-template-columns: 1fr; }
    .home-page .hero-copy { padding: 24px 18px; }
    .home-page .hero .eyebrow { font-size: 13px; line-height: 1.35; margin-bottom: 14px; }
    .home-page .hero h1 { font-size: 34px; margin-bottom: 16px; }
    .home-page .hero-intro { font-size: 22px; margin-bottom: 14px; }
    .home-page .hero-lead { font-size: 16px; margin-bottom: 18px; }
    .home-page .hero .button { padding-inline: 16px; min-height: 44px; font-size: 15px; }
    .home-page .hero-media { height: 230px; }
    .home-page .hero-portrait img { object-position: 50% 33%; }
    .home-page .hero .media-caption { font-size: 11px; right: 12px; bottom: 12px; }
    .home-page .proof-grid { padding: 16px 0; }
    .home-page .proof-item:nth-child(n) { padding: 14px 12px; }
    .home-page .proof-item strong { font-size: 25px; }
    .home-page .proof-context { font-size: 12px; }
    .home-page .proof-item p { font-size: 14px; }
    .home-page .proof-item a { font-size: 13px; }
    .home-page .selected-work .project-card { grid-template-columns: 1fr; gap: 20px; }
    .home-page .project-card-copy h3 { font-size: 28px; }
    .home-page .project-card-media { aspect-ratio: 16 / 10; }
    .home-page .flagship-copy h2 { font-size: 32px; }
    .page-hero, .projects-page .page-hero { padding: 32px 0 22px; }
    .page-heading h1, .projects-page .page-heading h1 { font-size: 36px; max-width: 20ch; }
    .page-hero .page-heading > p, .projects-page .page-hero .page-heading > p { font-size: 17px; }
    .projects-page .filter-controls { gap: 6px 20px; overflow: visible; flex-wrap: wrap; }
    .projects-page .filter-button { font-size: 14px; }
    .projects-page .project-card { grid-template-columns: 1fr; gap: 20px; padding-block: 24px; }
    .projects-page .project-card .project-card-media { aspect-ratio: 16 / 10; width: 100%; }
    .projects-page .project-card-featured .project-card-media { aspect-ratio: 1600 / 732; }
    .projects-page .project-card-featured h2, .projects-page .project-card h2 { font-size: 28px; }
    .projects-page .project-card-media:has(.visual-label) { margin-bottom: 20px; }
    .experience-entry .experience-role { font-size: 24px; }
    .experience-jumps { padding-left: 12px; gap: 2px 14px; }
    .experience-entry p { font-size: 17px; }
    .about-observatory-copy { padding: 32px 18px; }
    .about-observatory-copy h1 { font-size: 36px; }
    .about-observatory-copy > p:last-child { font-size: 17px; }
    .about-ceremony { height: 300px; }
    .about-trajectory { grid-template-columns: 1fr 1fr; gap: 0 18px; }
    .about-trajectory article { padding: 18px 0 18px 20px; }
    .case-hero { padding: 32px 0 18px; }
    .case-hero h1 { font-size: 36px; }
    .case-summary { font-size: 18px; }
    .case-facts { grid-template-columns: 1fr 1fr; }
    .case-facts span { font-size: 15px; }
    .case-body h2 { font-size: 30px; }
    .contact-band { padding-block: 44px; }
}
