/* Orrery / instrument visual system, shared by the homepage and every case study. */
:root {
    --primary: #77c5c1;
    --primary-dark: #a8e0da;
    --secondary: #9aa9ac;
    --accent: #ddb17c;
    --text-primary: #f0eee6;
    --text-secondary: #c4cecc;
    --text-muted: #9faead;
    --bg-primary: #101820;
    --bg-secondary: #151f27;
    --bg-tertiary: #1b2931;
    --bg-card: #17232b;
    --border-light: #33454a;
    --border-medium: #576c70;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --border-radius-sm: 3px;
    --border-radius: 4px;
    --border-radius-lg: 6px;
    --section-padding: clamp(4.5rem, 8vw, 8rem) 0;
}

html { scroll-behavior: smooth; }
body { background: var(--bg-primary); color: var(--text-primary); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .13; background-image: linear-gradient(to right, #819391 1px, transparent 1px), linear-gradient(to bottom, #819391 1px, transparent 1px); background-size: 90px 90px; }
.bg-blobs, .blob { display: none; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; top: -100px; border: 1px solid var(--accent); background: var(--bg-primary); color: var(--text-primary); }
.skip-link:focus { top: 12px; }
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); font-family: var(--font-display); letter-spacing: -.025em; }
.container, .nav-container { max-width: 1360px; }
.main-content { margin-top: 76px; }
section[id] { scroll-margin-top: 92px; }

/* Navigation */
.navbar { background: #101820; border-bottom: 1px solid var(--border-light); backdrop-filter: none; }
.nav-container { height: 76px; }
.nav-logo .logo-text, .footer-logo .logo-text { color: var(--accent); font-family: var(--font-mono); font-weight: 500; letter-spacing: -.08em; }
.nav-menu { gap: clamp(.9rem, 2vw, 2rem); }
.nav-link { color: var(--text-secondary); font-size: .85rem; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link::after { height: 1px; background: var(--accent); }
.nav-menu.active { top: 76px; background: var(--bg-secondary); backdrop-filter: none; box-shadow: none; }
.nav-cta, .btn-primary { border: 1px solid var(--accent); background: var(--accent); color: #111a21; border-radius: 3px; font-weight: 700; }
.nav-cta:hover, .btn-primary:hover { border-color: #f1c896; background: #f1c896; color: #111a21; transform: none; box-shadow: none; }
.btn-secondary { border: 1px solid var(--border-medium); color: var(--text-primary); border-radius: 3px; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: none; }
.hamburger span { background: var(--text-primary); }

/* Homepage orrery */
.orrery-hero { min-height: min(820px, calc(100svh - 76px)); background: transparent; border-bottom: 1px solid var(--border-light); padding: clamp(3rem, 5vw, 5rem) 0; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); width: 100%; }
.eyebrow, .hero-proof, .orrery-hint, .node-index, .orbit-preview-index, .case-kicker, .case-index-title { color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.hero-text { min-width: 0; }
.orrery-hero .hero-name { display: block; max-width: 9ch; margin: 1.1rem 0 1rem; font-family: var(--font-display); font-size: clamp(4.1rem, 7.1vw, 7.8rem); line-height: .91; letter-spacing: -.085em; color: var(--text-primary); background: none; -webkit-text-fill-color: currentColor; }
.hero-period { color: var(--accent); }
.orrery-hero .hero-title { color: var(--primary); font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.orrery-hero .hero-description { max-width: 48ch; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.7; }
.orrery-hero .hero-actions { margin-top: 2rem; }
.hero-proof { margin-top: 2.1rem; line-height: 1.8; letter-spacing: .08em; }
.hero-proof span { color: var(--accent); padding: 0 .35em; }
.orrery { min-width: 0; }
.orrery-instrument { position: relative; width: min(100%, 590px); aspect-ratio: 1; margin: 0 auto; }
.orrery-engraving { width: 100%; height: 100%; display: block; }
.orbit, .axis, .ticks { fill: none; vector-effect: non-scaling-stroke; }
.orbit { stroke: #607879; stroke-width: 1; opacity: .65; }
.orbit-outer { stroke-dasharray: 2 7; opacity: .7; }
.axis { stroke: #607879; stroke-width: .75; opacity: .38; }
.ticks { stroke: var(--accent); stroke-width: 1.5; opacity: .7; }
.hub { fill: var(--accent); }
.orrery-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 17%; aspect-ratio: 1; border: 1px solid var(--accent); border-radius: 50%; background: var(--bg-primary); display: grid; place-content: center; text-align: center; color: var(--text-primary); font-family: var(--font-mono); }
.orrery-center span { font-size: clamp(1.1rem, 2.5vw, 2rem); letter-spacing: -.08em; }
.orrery-center small { color: var(--accent); font-size: .55rem; letter-spacing: .06em; }
.orbit-node { position: absolute; z-index: 2; min-width: 112px; min-height: 72px; padding: .75rem .95rem; display: flex; flex-direction: column; justify-content: center; gap: .15rem; text-decoration: none; background: var(--bg-primary); border: 1px solid var(--border-medium); color: var(--text-primary); transition: background .18s, border-color .18s, transform .18s; }
.orbit-node:hover, .orbit-node.is-selected, .orbit-node:focus-visible { background: var(--bg-tertiary); border-color: var(--accent); transform: translateY(-3px); }
.orbit-node.is-selected::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); right: 10px; top: 10px; }
.node-index { color: var(--accent); }
.node-label { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.orbit-node--work { left: 12%; top: 14%; }
.orbit-node--projects { right: 1%; top: 27%; }
.orbit-node--about { left: 7%; bottom: 20%; }
.orbit-node--contact { right: 12%; bottom: 10%; }
.orrery-hint { margin: -.3rem 0 0; text-align: center; font-size: .65rem; letter-spacing: .05em; text-transform: none; }
.orbit-preview { display: grid; grid-template-columns: 115px 1fr auto; align-items: center; gap: 1rem; margin: 1.25rem auto 0; padding: 1rem 0; max-width: 590px; border-top: 1px solid var(--border-medium); border-bottom: 1px solid var(--border-light); }
.orbit-preview-index { color: var(--accent); }
.orbit-preview-copy { color: var(--text-secondary); line-height: 1.45; font-size: .8rem; }
.orbit-preview-link { white-space: nowrap; font-size: .78rem; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Editorial sections and cards */
section.bg-secondary, .about, .contact, .projects, .experience { background: transparent; }
.projects::before, .contact::before, .experience::before { display: none; }
#experience, #about { background: var(--bg-secondary); }
#experience, #projects, #about, #contact { border-bottom: 1px solid var(--border-light); }
.section-header { text-align: left; max-width: 1200px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-tag { display: block; width: fit-content; margin: 0 0 .75rem; padding: 0; border: none; border-radius: 0; box-shadow: none; background: none; color: var(--accent); font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; }
.section-title { max-width: none; margin: 0 0 .6rem; font-family: var(--font-display); font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: -.065em; }
.section-title::after { display: none; }
.section-subtitle { max-width: 60ch; margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }
.projects-grid { max-width: none; gap: 1.2rem; }
.projects-grid--two { max-width: none; }
.projects-grid--four { max-width: none; }
.project-card { border: 1px solid var(--border-light); border-radius: 3px; background: var(--bg-primary); box-shadow: none; animation: none; transition: border-color .2s, transform .2s; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-3px); border-color: var(--primary); box-shadow: none; }
.project-card .project-image { aspect-ratio: 1.65; background: var(--bg-tertiary); }
.project-card .project-image img { filter: saturate(.78); }
.project-card:hover .project-image:not(.project-image--logo) img { transform: scale(1.025); filter: saturate(1); }
.project-card .project-image::after { display: none; }
.project-content { min-height: auto; padding: clamp(1.3rem, 2.4vw, 2rem); }
.project-meta { justify-content: flex-start; gap: .75rem; margin-bottom: 1rem; }
.project-type, .project-year { padding: 0; border-radius: 0; background: none; color: var(--accent); font: 500 .7rem var(--font-mono); letter-spacing: .08em; }
.project-year { color: var(--text-muted); }
.project-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.3vw, 1.7rem); letter-spacing: -.03em; }
.project-description { color: var(--text-secondary); font-size: .94rem; }
@media (min-width: 920px) {
    #experience .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #projects .projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #projects .project-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr .8fr; }
    #projects .project-card:first-child .project-image { height: 100%; aspect-ratio: auto; min-height: 310px; }
    #projects .project-card:first-child .project-content { justify-content: center; padding: clamp(2rem, 4vw, 4rem); }
    #projects .project-card:first-child .project-title { font-size: clamp(2rem, 3.5vw, 3rem); }
}
.project-image--games, .project-card .project-image--games { background: #182a31; }
.games-card-art { background: #182a31; }
.games-card-kart { background: #244047; }

/* About and contact use measured dividers rather than cards. */
.about-content { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.text-block { padding: 0 0 1.5rem; border: 0; border-bottom: 1px solid var(--border-light); border-radius: 0; background: none; }
.text-block:hover { transform: none; box-shadow: none; border-color: var(--border-light); }
.text-block h3 { color: var(--accent); font-size: 1rem; border: 0; padding: 0; }
.text-block p { font-size: .96rem; color: var(--text-secondary); }
.timeline::before { background: var(--border-medium); }
.timeline-item::before { background: var(--accent); box-shadow: none; }
.timeline-date { color: var(--accent); }
.timeline-content { background: none; border-bottom: 1px solid var(--border-light); }
.timeline-content h4 { color: var(--text-primary); }
.timeline-content p { color: var(--text-secondary); }
.timeline-icon { background: var(--bg-tertiary); border-color: var(--border-light); }
.contact-content, .contact-info { max-width: none; }
.contact-items-grid { gap: 0; }
.contact-item { border: 0; border-top: 1px solid var(--border-light); border-radius: 0; background: none; box-shadow: none; }
.contact-item:hover, .contact-item:focus-within { transform: none; box-shadow: none; border-color: var(--primary); }
.contact-icon { background: none; color: var(--accent); }
.contact-details h3 { color: var(--text-muted); }
.contact-details a, .contact-details span { color: var(--text-primary); }
.social-link { background: none; border: 1px solid var(--border-medium); border-radius: 3px; color: var(--text-primary); }
.social-link:hover { background: var(--bg-tertiary); border-color: var(--primary); color: var(--primary); transform: none; }
.footer { background: #0c1319; border-top: 1px solid var(--border-light); }
.footer-text, .footer-links a, .footer-bottom p { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* Case studies: same instrument language with generous reading room. */
.project-hero, .project-hero-compact { min-height: auto; padding: clamp(3rem, 5vw, 5rem) 0; background: var(--bg-primary); border-bottom: 1px solid var(--border-light); }
.project-hero-content, .hero-main-content { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); }
.project-breadcrumb { color: var(--text-muted); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; }
.project-breadcrumb a { color: var(--primary); }
.project-hero .hero-name, .project-hero .hero-name-side { max-width: 15ch; font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: .98; letter-spacing: -.07em; background: none; -webkit-text-fill-color: currentColor; color: var(--text-primary); }
.project-hero .hero-subtitle, .project-hero .hero-subtitle-side { color: var(--accent); font-family: var(--font-mono); font-size: .85rem; font-weight: 500; letter-spacing: .03em; }
.project-hero .hero-description, .project-hero .hero-description-side { max-width: 55ch; color: var(--text-secondary); font-size: 1.02rem; }
.project-hero .project-image { max-height: 540px; min-height: 320px; border: 1px solid var(--border-light); border-radius: 2px; }
.project-hero .project-image > img { max-height: 540px; min-height: 320px; border-radius: 2px; object-fit: cover; }
.hero-team-photo-large { border: 1px solid var(--border-light); border-radius: 2px; box-shadow: none; }
.hero-team-photo-large:hover { transform: none; }
.project-section { padding: clamp(4rem, 7vw, 7rem) 0; border-bottom: 1px solid var(--border-light); background: var(--bg-primary); }
.project-section.bg-secondary { background: var(--bg-secondary); }
.project-section .section-header { margin-bottom: 2rem; }
.project-section .section-title { font-size: clamp(2rem, 3.8vw, 3.5rem); }
.project-overview-grid { grid-template-columns: minmax(0, 1.7fr) minmax(240px, .85fr); gap: clamp(2rem, 5vw, 5rem); }
.overview-content { max-width: 70ch; }
.overview-content h3 { margin-top: 2rem; color: var(--text-primary); font-size: 1.35rem; }
.overview-content p { color: var(--text-secondary); }
.specs-card, .specs-card--dark { padding: 1.5rem; border: 1px solid var(--border-light); border-radius: 2px; box-shadow: none; background: var(--bg-tertiary); color: var(--text-primary); }
.specs-card h4, .specs-card--dark h4 { color: var(--accent); text-align: left; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.specs-card--dark .spec-item { padding: .75rem 0; background: none; border-radius: 0; border-bottom: 1px solid var(--border-light); }
.specs-card--dark .spec-label, .spec-label { color: var(--text-muted); }
.specs-card--dark .spec-value, .spec-value { color: var(--text-primary); }
.chart-container, .video-container, .analysis-image, .achievement-glass, .game-experiment { background: var(--bg-tertiary); border: 1px solid var(--border-light); border-radius: 2px; box-shadow: none; }
.video-container video, .analysis-image img, .analysis-image video, .project-poster-image { border-radius: 2px; }
.analysis-caption, .video-caption, .analysis-desc, .project-poster-caption { color: var(--text-muted); }
.achievement-glass:hover, .analysis-image:hover { transform: none; box-shadow: none; }
.achievement-glass h3, .game-experiment h2 { color: var(--text-primary); }
.achievement-glass p, .game-experiment p { color: var(--text-secondary); }
.achievement-icon-wrap { background: var(--bg-secondary); color: var(--accent); }
.case-index { padding: 1.3rem 0; border-bottom: 1px solid var(--border-light); background: var(--bg-secondary); }
.case-brief { padding: 2.5rem 0; border-bottom: 1px solid var(--border-light); background: var(--bg-tertiary); }
.case-kicker { margin-bottom: 1.3rem; color: var(--accent); }
.case-brief dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.case-brief dl > div { padding-left: 1rem; border-left: 1px solid var(--border-medium); }
.case-brief dt { margin-bottom: .6rem; color: var(--accent); font: .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.case-brief dd { color: var(--text-primary); font-size: .9rem; line-height: 1.5; }
.case-index-inner { display: flex; align-items: baseline; gap: 2rem; flex-wrap: wrap; }
.case-index-title { color: var(--accent); }
.case-index-links { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; }
.case-index-links a { color: var(--text-secondary); text-decoration: none; font-size: .8rem; border-bottom: 1px solid transparent; }
.case-index-links a:hover { color: var(--primary); border-color: var(--primary); }
.case-next { padding: 4rem 0; background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.case-next-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.case-next a { display: block; color: var(--text-primary); font: 600 clamp(1.3rem, 2.5vw, 2rem) var(--font-display); text-decoration: none; }
.case-next a:hover { color: var(--primary); }
.case-next small { display: block; margin-bottom: .5rem; color: var(--accent); font: .7rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.game-experiment .project-type { color: var(--accent); }

@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; }
    .orrery-hero { min-height: auto; }
    .orrery { max-width: 690px; }
    .about-content { grid-template-columns: 1fr; }
    .project-hero-content, .hero-main-content { grid-template-columns: 1fr; text-align: left; }
    .project-hero-content .hero-description { margin-left: 0; margin-right: 0; }
    .hero-photo-large { order: 2; max-width: none; }
    .hero-content-right { order: 1; text-align: left; }
    .case-brief dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    :root { --container-padding: 0 1.2rem; }
    .main-content { margin-top: 68px; }
    .nav-container { height: 68px; }
    .nav-menu.active { top: 68px; background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
    .orrery-hero { padding: 3rem 0 4rem; }
    .orrery-hero .hero-name { font-size: clamp(3.6rem, 15vw, 5.5rem); }
    .hero-proof { display: none; }
    .orrery-instrument { width: 100%; height: auto; aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: 1.2rem 0 0; border-top: 1px solid var(--border-medium); }
    .orrery-engraving, .orrery-center { display: none; }
    .orbit-node, .orbit-node--work, .orbit-node--projects, .orbit-node--about, .orbit-node--contact { position: relative; inset: auto; width: 100%; min-width: 0; min-height: 74px; transform: none; }
    .orbit-node:hover, .orbit-node.is-selected, .orbit-node:focus-visible { transform: none; }
    .orrery-hint { margin-top: 1rem; text-align: left; }
    .orbit-preview { grid-template-columns: 1fr; gap: .55rem; }
    .orbit-preview-copy { font-size: .9rem; }
    .orbit-preview-link { width: fit-content; }
    #experience .projects-grid, #projects .projects-grid { grid-template-columns: 1fr; }
    .project-overview-grid { grid-template-columns: 1fr; }
    .case-next-inner { flex-direction: column; align-items: flex-start; }
    .case-brief dl { grid-template-columns: 1fr; }
    .project-hero .hero-name, .project-hero .hero-name-side { font-size: clamp(2.65rem, 12vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* A machined orbital instrument: the drawing tilts, while its labels never move. */
.orrery-hero { min-height: 0; padding: clamp(2.8rem, 4vw, 4rem) 0; }
.orrery-instrument { aspect-ratio: 600 / 520; max-width: 590px; }
.orrery-engraving { overflow: visible; transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform .42s cubic-bezier(.2,.7,.2,1); }
.engraved-axis { stroke: #547174; stroke-width: .7; opacity: .5; fill: none; vector-effect: non-scaling-stroke; }
.engraved-ticks { stroke: #b99b75; stroke-width: 1.1; fill: none; vector-effect: non-scaling-stroke; }
.orbit-shadow { fill: none; stroke: #081218; stroke-width: 10; opacity: .55; }
.orbital-path { fill: none; stroke: url(#ring-metal); stroke-width: 2.2; vector-effect: non-scaling-stroke; transition: stroke .22s, stroke-width .22s, opacity .22s; }
.orbital-path.rear { opacity: .34; stroke-width: 1.4; }
.orbital-path.front { opacity: .78; }
.orrery-instrument[data-focus="work"] .orbital-path--work,
.orrery-instrument[data-focus="projects"] .orbital-path--projects,
.orrery-instrument[data-focus="about"] .orbital-path--about,
.orrery-instrument[data-focus="contact"] .orbital-path--contact { stroke: var(--accent); stroke-width: 2.7; opacity: 1; }
.hub-rim { fill: url(#hub-metal); stroke: #acb8ac; stroke-width: 1; }
.hub-face { fill: #111e24; stroke: #b39169; stroke-width: .9; }
.hub-inner { fill: none; stroke: #557176; stroke-width: .7; stroke-dasharray: 2 5; }
.orrery-center { width: 12%; border: 0; background: transparent; }
.orrery-center span { font-size: clamp(1.05rem, 2vw, 1.7rem); }
.orrery-center small { font-size: .42rem; letter-spacing: .06em; }
.orbit-node { min-width: 106px; min-height: 58px; padding: .45rem .55rem .45rem 1.45rem; border: 0; background: transparent; }
.orbit-node::before { content: ''; position: absolute; left: 0; top: 50%; width: 13px; height: 13px; border: 1px solid #aec7c3; border-radius: 50%; background: #1d3035; transform: translateY(-50%); box-shadow: inset -3px -3px 4px #0b171d; transition: border-color .2s, background .2s, box-shadow .2s; }
.orbit-node::after { content: ''; position: absolute; left: 5px; bottom: -5px; width: 1px; height: 8px; background: var(--border-medium); }
.orbit-node:hover, .orbit-node:focus-visible, .orbit-node.is-selected { border: 0; background: transparent; transform: none; }
.orbit-node:hover::before, .orbit-node:focus-visible::before, .orbit-node.is-selected::before { border-color: var(--accent); background: #bb976b; box-shadow: inset -2px -2px 3px #674d35; }
.orbit-node.is-selected::before { right: auto; top: 50%; width: 13px; height: 13px; }
.orbit-node:hover .node-label, .orbit-node:focus-visible .node-label, .orbit-node.is-selected .node-label { color: var(--text-primary); }
.node-label { font-size: 1.02rem; color: var(--text-secondary); }
.orbit-node--work { left: 5%; top: 18%; }
.orbit-node--projects { right: -1%; top: 20%; }
.orbit-node--about { left: 7%; bottom: 17%; }
.orbit-node--contact { right: 5%; bottom: 14%; }
.orrery-hint { margin-top: -.1rem; }
.orbit-preview { margin-top: .8rem; }
.hero-feature { display: grid; grid-template-columns: 86px 1fr; gap: 1rem; align-items: center; max-width: 440px; margin-top: 1.8rem; padding: .75rem 0; border-top: 1px solid var(--border-medium); text-decoration: none; }
.hero-feature img { width: 86px; height: 75px; object-fit: cover; object-position: center 75%; filter: saturate(.65); }
.hero-feature span { display: grid; gap: .15rem; }
.hero-feature small, .hero-feature em { color: var(--accent); font: .68rem var(--font-mono); letter-spacing: .03em; }
.hero-feature strong { color: var(--text-primary); font: 600 .95rem var(--font-display); }
.hero-feature em { color: var(--primary); font-style: normal; }
.hero-feature:hover strong, .hero-feature:focus-visible strong { color: var(--primary); }
.hero-orbit-cue { display: none; }

/* Work is a pair of image-led case-study spreads, not matching tiles. */
#experience .projects-grid { display: block; }
#experience .project-card { display: grid; grid-template-columns: 1.05fr .95fr; margin: 0; border: 0; border-top: 1px solid var(--border-medium); border-radius: 0; background: transparent; }
#experience .project-card:last-child { grid-template-columns: .95fr 1.05fr; border-bottom: 1px solid var(--border-medium); }
#experience .project-card:last-child .project-image { grid-column: 2; grid-row: 1; }
#experience .project-card:last-child .project-content { grid-column: 1; grid-row: 1; }
#experience .project-card .project-image { height: clamp(350px, 39vw, 580px); aspect-ratio: auto; }
#experience .project-card .project-image img { object-position: center 53%; }
#experience .project-card .project-content { justify-content: center; padding: clamp(2rem, 5vw, 5rem); }
#experience .project-card .project-title { font-size: clamp(1.9rem, 3.4vw, 3.5rem); line-height: 1.05; }
#experience .project-card:hover { transform: none; }
.project-evidence { margin: 1rem 0 0; }
.project-evidence > div { display: grid; grid-template-columns: 100px 1fr; gap: 1rem; padding: .56rem 0; border-top: 1px solid var(--border-light); }
.project-evidence dt { color: var(--accent); font: .67rem var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.project-evidence dd { color: var(--text-secondary); font-size: .87rem; line-height: 1.48; }
.project-read-more { display: inline-block; margin-top: 1.4rem; color: var(--primary); font: .75rem var(--font-mono); }

/* Monte remains the independent feature; supporting work varies in scale. */
#projects .projects-grid { gap: 0; }
#projects .project-card { border: 0; border-top: 1px solid var(--border-medium); border-radius: 0; background: transparent; }
#projects .project-card:hover { transform: none; }
#projects .project-card .project-image { aspect-ratio: 1.25; }
#projects .project-card .project-content { padding: 2rem 1rem 2.5rem 0; }
#projects .project-card:first-child .project-content { padding: clamp(2rem, 4vw, 4rem); }
#projects .project-card:first-child .project-image { min-height: 430px; }
#projects .project-card:not(:first-child) { padding: 1.3rem 1.2rem 0 0; }
#projects .project-card:not(:first-child) .project-evidence > div { display: block; }
#projects .project-card:not(:first-child) .project-evidence dt { margin-bottom: .22rem; }
#projects .project-card:not(:first-child) .project-evidence dd { font-size: .83rem; }
#projects .project-card:nth-child(3) .project-image { aspect-ratio: 1.65; }
#projects .project-card:nth-child(4) .project-image { aspect-ratio: 1.65; }

/* Optional inspection controls keep the underlying images and captions intact. */
.inspectable-image { position: relative; }
.image-enlarge { position: absolute; right: .7rem; bottom: .7rem; z-index: 3; min-height: 42px; padding: .55rem .8rem; border: 1px solid var(--text-secondary); background: #101820ee; color: var(--text-primary); cursor: pointer; font: .75rem var(--font-mono); }
.image-enlarge:hover, .image-enlarge:focus-visible { border-color: var(--accent); color: var(--accent); }
.image-dialog { position: fixed; inset: 0; width: min(96vw, 1440px); max-width: none; height: min(96vh, 1000px); max-height: none; margin: auto; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--border-medium); background: #0b141a; color: var(--text-primary); }
.image-dialog::backdrop { background: rgba(2, 7, 10, .9); }
.image-dialog-inner { display: flex; flex-direction: column; height: 100%; gap: .7rem; }
.image-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.image-dialog-bar span { color: var(--accent); font: .7rem var(--font-mono); text-transform: uppercase; }
.image-dialog button { min-height: 42px; padding: .55rem .85rem; border: 1px solid var(--border-medium); background: transparent; color: var(--text-primary); cursor: pointer; }
.image-dialog button:hover, .image-dialog button:focus-visible { border-color: var(--accent); color: var(--accent); }
.image-dialog-figure { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.image-dialog img { width: 100%; min-height: 0; flex: 1; object-fit: contain; }
.image-dialog figcaption { max-width: 80ch; color: var(--text-secondary); font-size: .9rem; }
.image-dialog-nav { display: flex; gap: .65rem; }

/* The canister and printed frame are called out on the actual Re:3D photograph. */
.annotated-project-image { position: relative; }
.project-hero .project-image--annotated { max-height: none; min-height: 0; overflow: visible; border: 0; background: transparent; }
.project-hero .annotated-project-image img { width: 100%; height: 470px; object-fit: cover; object-position: center 55%; border: 1px solid var(--border-light); }
.annotation-pin { position: absolute; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #111820; border-radius: 50%; background: var(--accent); color: #111820; cursor: pointer; font: 700 .75rem var(--font-mono); box-shadow: 0 0 0 3px #101820aa; }
.annotation-pin:hover, .annotation-pin:focus-visible, .annotation-pin[aria-pressed="true"] { background: var(--primary); outline-color: var(--accent); }
.annotation-pin--feedstock { left: 59%; top: 23%; }
.annotation-pin--frame { left: 48%; top: 70%; }
.annotation-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: .7rem; background: var(--border-light); }
.annotation-note { padding: .85rem 1rem; background: var(--bg-primary); border: 0; color: var(--text-secondary); font: .8rem/1.5 var(--font-primary); text-align: left; cursor: pointer; }
.annotation-note strong { display: block; margin-bottom: .25rem; color: var(--accent); font: .7rem var(--font-mono); }
.annotation-note[aria-pressed="true"], .annotation-note:hover, .annotation-note:focus-visible { background: var(--bg-tertiary); color: var(--text-primary); }

@media (max-width: 900px) {
    .hero-orbit-cue { display: inline-block; margin-top: .6rem; color: var(--primary); text-decoration: none; font: .72rem var(--font-mono); }
    .hero-orbit-cue:hover, .hero-orbit-cue:focus-visible { color: var(--accent); text-decoration: underline; }
    .orrery { scroll-margin-top: 90px; }
    #experience .project-card, #experience .project-card:last-child { grid-template-columns: 1fr; }
    #experience .project-card:last-child .project-image, #experience .project-card:last-child .project-content { grid-column: 1; grid-row: auto; }
    #experience .project-card .project-image { height: clamp(300px, 55vw, 480px); }
    #experience .project-card .project-content { padding: 2rem 0 3rem; }
    #projects .project-card:not(:first-child) { padding-right: 0; }
}
@media (max-width: 639px) {
    .orrery-hero { padding-top: 2.5rem; }
    .orrery-instrument { aspect-ratio: auto; }
    .orbit-node, .orbit-node--work, .orbit-node--projects, .orbit-node--about, .orbit-node--contact { position: relative; inset: auto; width: 100%; border: 1px solid var(--border-medium); padding: .65rem 1rem .65rem 2.35rem; }
    .orbit-node::before { left: .9rem; }
    .orbit-node::after { display: none; }
    .hero-feature { margin-top: 1.5rem; }
    #experience .project-card .project-image { height: 340px; }
    #projects .project-card:first-child .project-image { min-height: 0; }
    #projects .project-card .project-content, #projects .project-card:first-child .project-content { padding: 1.5rem 0 2.5rem; }
    .project-evidence > div { grid-template-columns: 82px 1fr; gap: .5rem; }
    .annotation-pin { display: none; }
    .annotation-notes { grid-template-columns: 1fr; }
    .project-hero .annotated-project-image img { height: auto; max-height: 520px; object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) {
    .orrery-engraving { transition: none; transform: none !important; }
}
