:root {
  --black: #0d3762;
  --charcoal: #123d68;
  --graphite: #315b7a;
  --mid-gray: #7891a2;
  --light-gray: #cad3d5;
  --off-white: #f2ede3;
  --white: #fffaf1;
  --accent: #ff6b2a;
  --accent-dark: #d94f18;
  --hero-rule: rgba(13, 55, 98, .09);
  --soft-edge: rgba(242, 237, 227, .55);
  --ink: var(--black);
  --paper: var(--off-white);
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --gutter: clamp(1.25rem, 3vw, 3.5rem);
  --edge: 1px solid currentColor;
}

html[data-theme="forest"] {
  --black: #071c31;
  --charcoal: #0d2e4d;
  --graphite: #426b88;
  --mid-gray: #87a1ad;
  --light-gray: #d5ddd9;
  --off-white: #edf0e9;
  --white: #ffffff;
  --accent: #ff7440;
  --accent-dark: #e05b28;
  --hero-rule: rgba(237, 240, 233, .08);
  --soft-edge: rgba(237, 240, 233, .52);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--black); }
body { margin: 0; overflow-x: clip; background: var(--off-white); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-is-open, body.modal-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 30; left: 1rem; top: -4rem; padding: .75rem 1rem; background: var(--white); color: var(--black); font: 700 .75rem var(--mono); }
.skip-link:focus { top: 1rem; }

.layout-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1rem; }

/* Header & Navigation */
.site-header { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 1.15rem var(--gutter); color: var(--black); transition: color .25s ease; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: rgba(242, 237, 227, .9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(13, 55, 98, .12); transition: opacity .25s ease, background-color .25s ease, border-color .25s ease; pointer-events: none; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-inverted { color: var(--off-white); }
.site-header.is-inverted::before { background: rgba(13, 55, 98, .9); border-bottom-color: rgba(242, 237, 227, .14); }
html[data-theme="forest"] .site-header::before,
html[data-theme="forest"] .site-header.is-inverted::before { background: rgba(7, 28, 49, .9); border-bottom-color: rgba(237, 240, 233, .14); }
.wordmark { position: relative; z-index: 25; font: 700 .92rem/1 var(--mono); letter-spacing: -.04em; padding: .4rem 0; }
.site-nav { display: flex; flex-shrink: 0; align-items: center; gap: 1.2rem; font: 700 .78rem/1 var(--mono); letter-spacing: -.02em; text-transform: uppercase; }
.site-nav a { border-bottom: 1px solid transparent; padding-bottom: .22rem; transition: border-color .2s ease, color .2s ease; }
.nav-index, .nav-arrow, .nav-cv-link { display: none; }
.site-nav-meta { display: contents; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { border-color: currentColor; }
.site-nav a.is-active { color: var(--accent); border-color: var(--accent); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 0; cursor: pointer; font: 700 .8rem/1 var(--mono); text-transform: uppercase; }
.menu-symbol { display: inline-block; margin-left: .5rem; font-size: 1rem; line-height: 1; }

.theme-toggle { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid currentColor; padding: .42rem .65rem; background: transparent; cursor: pointer; font: 700 .75rem/1 var(--mono); letter-spacing: -.02em; text-transform: uppercase; }
.theme-toggle:hover, .theme-toggle:focus-visible { background: currentColor; color: var(--paper); }
.theme-toggle-mark { display: block; width: .48rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; box-shadow: inset 0 0 0 1px var(--paper); }
.theme-toggle:hover .theme-toggle-mark, .theme-toggle:focus-visible .theme-toggle-mark { background: var(--paper); box-shadow: none; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 1.25rem var(--gutter) 1.9rem; background: var(--off-white); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { inset: 0; background: linear-gradient(112deg, transparent 0 53%, var(--hero-rule) 53.1% 53.35%, transparent 53.45%); }
.hero::after { width: min(38vw, 34rem); aspect-ratio: 1; right: -10vw; bottom: -14vw; border: 1px solid var(--black); border-radius: 50%; opacity: .65; }
.hero-grain { position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: radial-gradient(rgba(13, 55, 98, .4) .6px, transparent .6px); background-size: 12px 12px; }

.hero-meta, .hero-footer { position: relative; z-index: 2; font: .8rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: -.01em; }
.hero-meta { margin-top: 3.1rem; }
.hero-meta p:first-child { grid-column: 1 / span 4; }
.hero-meta p:last-child { grid-column: 8 / -1; text-align: right; }

.hero-stage { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; margin: auto 0; padding: 2rem 0 1rem; }
.hero-title-wrap { position: relative; z-index: 2; min-width: 0; will-change: transform; }
.eyebrow { margin: 0 0 1.25rem .2rem; font: .82rem/1.3 var(--mono); letter-spacing: -.01em; text-transform: uppercase; }
h1, h2 { font-weight: 800; letter-spacing: -.075em; text-transform: uppercase; }
h1 { font-size: clamp(2.5rem, 8.2vw, 9.6rem); line-height: .82; max-width: 100%; }
h1 span { display: block; will-change: transform; }
h1 span:last-child { margin-left: clamp(0rem, 3.2vw, 3.6rem); color: var(--accent); }

.hero-footer p:first-child { grid-column: 1 / span 4; }
.scroll-cue { grid-column: 5 / span 4; justify-self: center; width: min(100%, 15rem); display: flex; align-items: center; justify-content: space-between; gap: .75rem; border-bottom: var(--edge); padding-bottom: .45rem; font: .8rem/1.2 var(--mono); text-transform: uppercase; }
.scroll-cue i { font-style: normal; font-size: 1rem; transition: transform .25s ease; }
.scroll-cue:hover i { transform: translateY(3px); }
.hero-footer p:last-child { grid-column: 9 / -1; text-align: right; }

/* CSS-built Isometric Hero Object */
.hero-object { --hero-object-shift: 0px; position: relative; z-index: 1; width: clamp(14rem, 25vw, 24rem); aspect-ratio: 1 / .92; color: var(--black); transform: translate3d(0, var(--hero-object-shift), 0); transition: transform .1s linear; pointer-events: none; flex-shrink: 0; }
.hero-object__shadow { position: absolute; width: 76%; height: 13%; left: 9%; top: 72%; border-radius: 50%; background: rgba(13,55,98,.18); filter: blur(1px); transform: skewX(-25deg); }
.hero-object__screen { position: absolute; z-index: 2; left: 14%; top: 14%; width: 64%; height: 53%; padding: 9% 9%; border: 1px solid rgba(13,55,98,.27); border-radius: .32rem; background: linear-gradient(132deg, #fffdf5 0 46%, #e2ddd3 46% 100%); box-shadow: 1rem 1.25rem 0 rgba(13,55,98,.11), 1.3rem 1.55rem 0 rgba(13,55,98,.06); transform: skewY(-17deg) rotate(7deg); }
.hero-object__screen::before { content: "SYSTEMS / 01"; display: block; margin-bottom: 14%; color: var(--black); font: 700 clamp(.48rem, .82vw, .7rem)/1 var(--mono); letter-spacing: .04em; }
.hero-object__screen i { display: block; height: 6%; margin: 8% 0; background: var(--black); }
.hero-object__screen i:nth-child(2) { width: 74%; background: var(--accent); }
.hero-object__screen i:nth-child(3) { width: 48%; opacity: .7; }
.hero-object__screen b { position: absolute; right: 8%; bottom: 8%; color: var(--accent); font: 700 clamp(1.4rem, 3.2vw, 2.8rem)/.8 var(--sans); letter-spacing: -.11em; }
.hero-object__base { position: absolute; z-index: 1; left: 19%; top: 61%; width: 62%; height: 14%; border: 1px solid rgba(13,55,98,.3); border-radius: .25rem; background: #e5dfd4; box-shadow: .7rem .82rem 0 rgba(13,55,98,.12); transform: skewX(-38deg) rotate(-6deg); }
.hero-object__signal { position: absolute; z-index: 3; left: 56%; top: 3%; width: 23%; height: 26%; transform: rotate(16deg); }
.hero-object__signal i { position: absolute; display: block; bottom: 0; left: 50%; width: 100%; aspect-ratio: 1; border: 2px solid var(--accent); border-left-color: transparent; border-bottom-color: transparent; border-radius: 0 100% 0 0; transform-origin: bottom left; }
.hero-object__signal i:nth-child(1) { transform: scale(.34); }
.hero-object__signal i:nth-child(2) { transform: scale(.62); }
.hero-object__signal i:nth-child(3) { transform: scale(.92); }
.hero-object__data { position: absolute; right: 2%; bottom: 2%; color: var(--black); font: 700 clamp(.55rem, .75vw, .68rem)/1.25 var(--mono); letter-spacing: .08em; text-align: right; transform: rotate(-5deg); }

/* Section Themes */
.section-light { background: var(--off-white); color: var(--black); }
.section-dark { background: var(--black); color: var(--off-white); }

html[data-theme="forest"] .hero,
html[data-theme="forest"] .statement,
html[data-theme="forest"] .practice,
html[data-theme="forest"] .profile { background: var(--black); color: var(--off-white); }
html[data-theme="forest"] .work,
html[data-theme="forest"] .timeline,
html[data-theme="forest"] .contact { background: var(--charcoal); color: var(--off-white); }
html[data-theme="forest"] .hero::after { border-color: var(--off-white); opacity: .25; }
html[data-theme="forest"] .hero-grain { background-image: radial-gradient(rgba(237, 240, 233, .22) .6px, transparent .6px); }
html[data-theme="forest"] .hero-object__data { color: var(--off-white); }
html[data-theme="forest"] .hero-object__shadow, html[data-theme="forest"] .scene-shadow { background: rgba(0,0,0,.42); }
html[data-theme="forest"] .timeline-item:not(.is-current)::before { background: var(--charcoal); }
html[data-theme="forest"] .statement-orbit { border-color: rgba(237,240,233,.28); }
html[data-theme="forest"] .statement-orbit::after { background: var(--off-white); }
html[data-theme="forest"] .statement-orbit i { border-color: rgba(237,240,233,.32); }
html[data-theme="forest"] .statement-orbit b { background: rgba(237,240,233,.15); }
html[data-theme="forest"] .capability-list,
html[data-theme="forest"] .capability,
html[data-theme="forest"] .stack-block,
html[data-theme="forest"] .stack-card { border-color: rgba(237, 240, 233, .24); }
html[data-theme="forest"] .capability > p:last-child,
html[data-theme="forest"] .stack-list li { color: var(--light-gray); }
html[data-theme="forest"] .profile-copy { background: var(--charcoal); border: 1px solid rgba(237, 240, 233, .2); }
html[data-theme="forest"] .profile-rule { background: rgba(237, 240, 233, .28); }

/* Statement */
.statement { position: relative; overflow: hidden; min-height: 82svh; padding: 2.5rem var(--gutter) 4.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.statement-top { position: relative; z-index: 1; font: .82rem/1.45 var(--mono); text-transform: uppercase; }
.section-index { font: .82rem/1.2 var(--mono); letter-spacing: -.01em; text-transform: uppercase; }
.statement-top .section-index { grid-column: 1 / span 2; }
.section-label { grid-column: 8 / -1; }
.statement-copy { position: relative; z-index: 1; width: min(68rem, 78%); font-size: clamp(2.75rem, 7.2vw, 8.2rem); font-weight: 800; letter-spacing: -.08em; line-height: .9; text-transform: uppercase; }
.statement-copy em { font-family: Georgia, serif; font-weight: 400; text-transform: none; color: var(--accent); }
.statement-orbit { --orbit-shift: 0px; position: absolute; right: 4%; bottom: -16vw; width: min(44vw, 40rem); aspect-ratio: 1; border: 1px solid rgba(13,55,98,.25); border-radius: 50%; transform: translate3d(var(--orbit-shift), 0, 0); transition: transform .12s linear; pointer-events: none; }
.statement-orbit::before, .statement-orbit::after { content: ""; position: absolute; border-radius: 50%; }
.statement-orbit::before { width: 24%; aspect-ratio: 1; left: 25%; top: 12%; background: var(--accent); box-shadow: 1.1rem 1.5rem 0 rgba(13,55,98,.16); }
.statement-orbit::after { width: 9%; aspect-ratio: 1; right: 8%; top: 31%; background: var(--black); }
.statement-orbit i { position: absolute; inset: 18%; border: 1px dashed rgba(13,55,98,.32); border-radius: 50%; }
.statement-orbit b { position: absolute; width: 48%; height: 12%; left: 13%; bottom: 27%; border-radius: 50%; background: rgba(13,55,98,.12); transform: rotate(-21deg); }

/* Section Heading */
.work, .practice { padding: clamp(4rem, 7vw, 6.5rem) var(--gutter) clamp(5rem, 10vw, 10rem); }
.work { overflow: visible; }
.section-heading { padding-bottom: clamp(2.25rem, 4.5vw, 4rem); }
.section-heading .section-index { grid-column: 1 / span 2; padding-top: .35rem; }
.section-heading h2 { grid-column: 3 / span 6; font-size: clamp(3.4rem, 8.2vw, 9.2rem); line-height: .8; letter-spacing: -.09em; }
.section-heading h2 span { font-family: var(--sans); font-weight: 800; text-transform: uppercase; color: var(--accent); }
.section-note { grid-column: 9 / -1; align-self: end; font: .82rem/1.5 var(--mono); text-transform: uppercase; }
.work .section-note { color: rgba(242,237,227,.72); }

/* Work Filters & Typography Index */
.work-toolbar { align-items: center; padding-bottom: 1.4rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid rgba(242,237,227,.18); gap: 1rem; }
.work-filters { grid-column: 1 / span 7; display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .52rem .9rem; border: 1px solid rgba(242,237,227,.34); background: transparent; color: var(--off-white); font: 700 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: background-color .22s ease, color .22s ease, border-color .22s ease; }
.filter-chip:hover, .filter-chip:focus-visible { border-color: var(--off-white); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--black); }
.filter-chip span { opacity: .75; font-weight: 400; }
.work-hint { grid-column: 8 / -1; text-align: right; font: .76rem/1.4 var(--mono); text-transform: uppercase; color: rgba(242,237,227,.68); }

.work-index-list { list-style: none; padding: 0; border-top: 1px solid rgba(242,237,227,.22); }
.work-index-item { border-bottom: 1px solid rgba(242,237,227,.18); transition: opacity .28s ease; }
.work-index-list.has-hover .work-index-item:not(.is-hovered) { opacity: .32; }
.work-index-row { width: 100%; display: grid; grid-template-columns: minmax(8rem, 1.4fr) minmax(0, 4.4fr) minmax(11rem, 2.2fr) 2.5rem; gap: 1rem 1.75rem; align-items: center; padding: clamp(1.4rem, 2.8vw, 2.35rem) 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.work-index-meta { display: flex; flex-direction: column; gap: .35rem; }
.work-index-num { font: 700 .8rem/1 var(--mono); color: var(--mid-gray); }
.work-index-type { font: 700 .74rem/1.2 var(--mono); text-transform: uppercase; color: var(--accent); }
.work-index-main { display: flex; align-items: center; gap: 1.15rem; min-width: 0; }
.work-index-thumb { display: none; flex: 0 0 4.75rem; width: 4.75rem; height: 4.75rem; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid rgba(242,237,227,.24); background: #dfe4df; }
.work-index-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-index-title { font-size: clamp(1.5rem, 3.2vw, 3.3rem); line-height: .96; letter-spacing: -.055em; text-transform: uppercase; transition: transform .38s cubic-bezier(.16,1,.3,1), color .25s ease; }
.work-index-desc { display: none; margin-top: .4rem; font: .92rem/1.45 var(--sans); color: var(--light-gray); }
.work-index-stack { font: .76rem/1.45 var(--mono); text-transform: uppercase; color: var(--light-gray); text-align: right; }
.work-index-arrow { justify-self: end; font-size: 1.45rem; transition: transform .3s ease, color .25s ease; }
.work-index-row:hover .work-index-title, .work-index-row:focus-visible .work-index-title { transform: translateX(.6rem); color: var(--white); }
.work-index-row:hover .work-index-arrow, .work-index-row:focus-visible .work-index-arrow { transform: translate(.25rem, -.25rem); color: var(--accent); }

.work-cursor-preview { position: fixed; top: 0; left: 0; z-index: 18; width: clamp(14.5rem, 21vw, 20rem); aspect-ratio: 1 / 1; pointer-events: none; opacity: 0; border: 1px solid rgba(242,237,227,.4); background: #dfe4df; box-shadow: 0 24px 52px rgba(4, 15, 28, .55); overflow: hidden; transform: translate3d(-999px, -999px, 0) scale(.86); transition: opacity .24s ease; }
.work-cursor-preview.is-visible { opacity: 1; }
.work-cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
.work-cursor-badge { position: absolute; z-index: 2; top: .75rem; right: .8rem; padding: .28rem .5rem; background: rgba(7, 28, 49, .82); color: var(--white); font: 700 .72rem/1 var(--mono); text-transform: uppercase; }

/* Isometric fallback project scenes */
.project-scene { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; background: linear-gradient(145deg, #f4efe5 0 58%, #e4dfd5 58% 100%); transition: transform .7s cubic-bezier(.16,1,.3,1); }
.project-trigger:hover .project-scene, .project-trigger:focus-visible .project-scene { transform: scale(1.04); }
.scene-shadow { position: absolute; z-index: 0; left: 28%; bottom: 17%; width: 49%; height: 13%; border-radius: 50%; background: rgba(13,55,98,.2); filter: blur(2px); transform: skewX(-22deg); }
.scene-plane { position: absolute; z-index: 1; left: 18%; bottom: 23%; width: 63%; height: 30%; border: 1px solid rgba(13,55,98,.18); border-radius: .28rem; background: #d6e0e1; box-shadow: .75rem .85rem 0 rgba(13,55,98,.12); transform: skewY(-22deg) rotate(-8deg); }
.scene-plane::before, .scene-plane::after { content: ""; position: absolute; border-radius: 100%; }
.scene-plane::before { width: 12%; aspect-ratio: 1; left: 16%; bottom: 22%; background: var(--accent); box-shadow: 1.2rem 0 0 var(--black), 2.4rem 0 0 var(--accent); }
.scene-plane::after { width: 74%; height: 1px; top: 22%; left: 13%; background: rgba(13,55,98,.23); }
.scene-display { position: absolute; z-index: 3; left: 39%; top: 18%; width: 36%; height: 41%; padding: 9% 7%; border: 1px solid rgba(13,55,98,.34); border-radius: .22rem; background: var(--black); box-shadow: .9rem 1.1rem 0 rgba(13,55,98,.16); transform: skewY(-18deg) rotate(7deg); }
.scene-display::before { content: "LIVE"; position: absolute; left: 11%; top: 10%; color: var(--off-white); font: 700 clamp(.37rem, .7vw, .6rem)/1 var(--mono); letter-spacing: .1em; }
.scene-display i { display: block; height: 7%; margin: 21% 0 -13%; background: var(--off-white); opacity: .86; }
.scene-display i:nth-child(2) { width: 72%; background: var(--accent); opacity: 1; }
.scene-display i:nth-child(3) { width: 44%; }
.scene-block { position: absolute; z-index: 4; display: block; border: 1px solid rgba(13,55,98,.3); border-radius: .15rem; background: var(--off-white); box-shadow: .48rem .6rem 0 rgba(13,55,98,.14); transform: skewY(-18deg) rotate(7deg); }
.scene-block--one { left: 21%; top: 43%; width: 15%; aspect-ratio: 1; background: var(--accent); }
.scene-block--two { right: 14%; bottom: 16%; width: 19%; aspect-ratio: 1; background: var(--black); }
.scene-orbit { position: absolute; z-index: 2; right: 14%; top: 11%; width: 43%; aspect-ratio: 1; border: 1px solid rgba(13,55,98,.42); border-radius: 50%; }
.scene-orbit::before { content: ""; position: absolute; width: 15%; aspect-ratio: 1; left: 4%; bottom: 9%; border-radius: 50%; background: var(--accent); }

/* Practice & Technical Stack */
.capability-list { border-top: 1px solid var(--black); }
.capability { display: grid; grid-template-columns: 1.2fr 4fr 3fr; gap: 1rem; min-height: 11rem; padding: 1.4rem 0 2.4rem; border-bottom: 1px solid var(--black); }
.capability-index { font: 700 .82rem/1.4 var(--mono); text-transform: uppercase; }
.capability h3 { font-size: clamp(2rem, 4.2vw, 4.6rem); letter-spacing: -.075em; line-height: .9; text-transform: uppercase; }
.capability > p:last-child { font: .96rem/1.55 var(--sans); max-width: 28rem; color: var(--graphite); }

.stack-block { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(13, 55, 98, .22); }
.stack-header { margin-bottom: 2rem; align-items: baseline; }
.stack-header .section-index { grid-column: 1 / span 3; }
.stack-header h3 { grid-column: 4 / -1; font-size: clamp(1.5rem, 2.8vw, 2.5rem); letter-spacing: -.05em; text-transform: uppercase; }
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.stack-card { padding: 1.25rem; border: 1px solid rgba(13, 55, 98, .24); }
.stack-card h4 { margin: 0 0 .85rem; font: 700 .78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); }
.stack-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.stack-list li { padding: .35rem .58rem; border: 1px solid currentColor; font: .76rem/1.1 var(--mono); }

/* Timeline & Credentials */
.timeline { padding: clamp(4rem, 7vw, 6rem) var(--gutter) clamp(5rem, 11vw, 10rem); }
.timeline-intro { padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.timeline-intro .section-index { grid-column: 1 / span 2; padding-top: .35rem; }
.timeline-intro h2 { grid-column: 3 / span 5; font-size: clamp(3rem, 6.8vw, 7.6rem); line-height: .8; letter-spacing: -.09em; }
.timeline-intro > p:last-child { grid-column: 9 / -1; align-self: end; font: .82rem/1.5 var(--mono); color: rgba(242,237,227,.72); text-transform: uppercase; }

.timeline-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 clamp(1.5rem, 3vw, 2.75rem); border-top: 1px solid rgba(242, 237, 227, .22); }
.timeline-list::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: rgba(242, 237, 227, .18); }
.timeline-list::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent); transform: scaleY(var(--timeline-progress, 0)); transform-origin: top; }
.timeline-item { position: relative; display: grid; grid-template-columns: minmax(10.5rem, 1.8fr) minmax(0, 4.6fr) minmax(15rem, 3.2fr); gap: 1.5rem 2.25rem; align-items: start; padding: clamp(2rem, 3.8vw, 3.2rem) 0; border-bottom: 1px solid rgba(242, 237, 227, .18); }
.timeline-item::before { content: ""; position: absolute; z-index: 2; left: calc(-1 * clamp(1.5rem, 3vw, 2.75rem) - 3px); top: clamp(2.35rem, 4.1vw, 3.55rem); width: 7px; height: 7px; border-radius: 50%; background: var(--black); border: 1.5px solid var(--mid-gray); transition: border-color .35s ease, background-color .35s ease, transform .35s ease; }
.timeline-item.is-revealed::before { border-color: var(--off-white); }
.timeline-item.is-current::before { background: var(--accent); border-color: var(--accent); }
.timeline-meta { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.timeline-index { font: 700 .78rem/1 var(--mono); color: var(--mid-gray); letter-spacing: .04em; }
.timeline-date { font: 700 .85rem/1.4 var(--mono); text-transform: uppercase; color: var(--off-white); }
.timeline-status { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .55rem; border: 1px solid var(--accent); color: var(--accent); font: 700 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.timeline-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.timeline-role { display: flex; align-items: flex-start; gap: 1.4rem; min-width: 0; }
.timeline-mark { flex: 0 0 clamp(4rem, 5.2vw, 5rem); width: clamp(4rem, 5.2vw, 5rem); height: clamp(4rem, 5.2vw, 5rem); display: grid; place-items: center; padding: .4rem; background: var(--white); border: 1px solid rgba(242, 237, 227, .24); overflow: hidden; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.timeline-mark img { width: 100%; height: 100%; object-fit: contain; }
.timeline-initials { color: var(--black); font: 700 1.05rem/1 var(--mono); letter-spacing: -.04em; }
.timeline-heading { min-width: 0; }
.timeline-org { margin-bottom: .45rem; font: 700 .8rem/1.35 var(--mono); letter-spacing: .01em; text-transform: uppercase; color: var(--mid-gray); }
.timeline-item h3 { font-size: clamp(1.45rem, 2.6vw, 2.75rem); line-height: .96; letter-spacing: -.05em; text-transform: uppercase; transition: transform .4s cubic-bezier(.16,1,.3,1), color .3s ease; }
.timeline-desc { font: .95rem/1.6 var(--sans); color: var(--light-gray); max-width: 30rem; padding-top: .15rem; }

@media (hover: hover) {
  .timeline-item:hover::before { border-color: var(--accent); background: var(--accent); transform: scale(1.35); }
  .timeline-item:hover .timeline-heading h3 { transform: translateX(.4rem); color: var(--white); }
  .timeline-item:hover .timeline-mark { transform: translateY(-2px); }
}

.credentials-wrap { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(242, 237, 227, .2); }
.credentials-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.credentials-label { font: 700 .82rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: 1.25rem; }
.credentials-head .credentials-label { margin-bottom: 0; }
.credentials-toggle { border: 1px solid rgba(242, 237, 227, .35); background: transparent; padding: .4rem .75rem; font: 700 .72rem/1 var(--mono); text-transform: uppercase; cursor: pointer; }
.credentials-toggle:hover { border-color: var(--accent); color: var(--accent); }

.education-card { display: flex; align-items: flex-start; gap: 1.15rem; padding: 1.25rem; border: 1px solid rgba(242, 237, 227, .22); }
.education-mark { flex: 0 0 3.75rem; width: 3.75rem; height: 3.75rem; display: grid; place-items: center; padding: .35rem; background: var(--white); overflow: hidden; }
.education-mark img { width: 100%; height: 100%; object-fit: contain; }
.education-card h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
.education-meta { margin-top: .35rem; font: .78rem/1.4 var(--mono); color: var(--light-gray); text-transform: uppercase; }

.certificate-list { list-style: none; padding: 0; border-top: 1px solid rgba(242, 237, 227, .2); }
.certificate-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(242, 237, 227, .16); }
.certificate-title { font-weight: 700; font-size: .96rem; line-height: 1.35; }
.certificate-issuer { font: .76rem/1.4 var(--mono); color: var(--mid-gray); text-transform: uppercase; margin-top: .2rem; }
.certificate-link { flex-shrink: 0; font: 700 .75rem/1 var(--mono); text-transform: uppercase; color: var(--accent); border-bottom: 1px solid transparent; padding-bottom: .15rem; }
.certificate-link:hover { border-color: var(--accent); }

/* Profile */
.profile { min-height: 92svh; position: relative; padding: clamp(4rem, 7vw, 6rem) var(--gutter); overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem 1.5rem; align-items: end; }
.profile-art { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.profile-disc { position: absolute; width: min(56vw, 50rem); aspect-ratio: 1; left: 4%; top: -14%; border-radius: 50%; background: var(--black); transform: translate3d(var(--profile-shift, 0), 0, 0); transition: transform .1s linear; }
.profile-square { position: absolute; width: min(26vw, 24rem); aspect-ratio: 1; right: 6%; bottom: 10%; background: var(--graphite); transform: translate3d(calc(var(--profile-shift, 0) * -.65), 0, 0); transition: transform .1s linear; }
.profile-rule { position: absolute; width: 120%; left: -10%; top: 53%; height: 1px; background: var(--black); transform: rotate(-12deg); }

.profile-portrait-wrap { position: relative; z-index: 1; grid-column: 1 / span 4; align-self: end; }
.profile-portrait { width: 100%; max-width: 21rem; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--black); background: var(--charcoal); }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.08); transition: filter .4s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.profile-portrait:hover img { filter: grayscale(20%) contrast(1.04); transform: scale(1.03); }

.profile-copy { position: relative; z-index: 1; grid-column: 5 / -1; padding: clamp(1.5rem, 3.2vw, 3.25rem); background: var(--black); color: var(--off-white); }
.profile-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: clamp(1.75rem, 4vw, 3.75rem); }
.profile-copy .section-index { margin-bottom: 0; }
.profile-kicker { font: .86rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .02em; color: var(--light-gray); }
.profile-kicker em { font-family: Georgia, serif; font-style: italic; text-transform: none; color: var(--accent); font-size: 1.08rem; }
.profile-copy h2 { max-width: 61rem; font-size: clamp(3rem, 7vw, 7.6rem); line-height: .82; letter-spacing: -.09em; }
.profile-copy h2 em { font-family: Georgia, serif; font-weight: 400; text-transform: none; color: var(--accent); }
.profile-bio { width: min(36rem, 100%); margin: 1.75rem 0 0; font: 1rem/1.6 var(--sans); color: var(--light-gray); }
.profile-facts { list-style: none; padding: 1rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid rgba(242, 237, 227, .18); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font: 700 .76rem/1.3 var(--mono); text-transform: uppercase; color: var(--mid-gray); }
.profile-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.action-button { display: inline-flex; align-items: center; gap: .45rem; padding: .72rem 1.05rem; border: 1px solid rgba(242, 237, 227, .42); font: 700 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .02em; transition: background-color .22s ease, color .22s ease, border-color .22s ease; }
.action-button:hover, .action-button:focus-visible { border-color: var(--off-white); background: var(--off-white); color: var(--black); }
.action-button--primary { background: var(--accent); border-color: var(--accent); color: var(--black); }
.action-button--primary:hover, .action-button--primary:focus-visible { background: var(--white); border-color: var(--white); color: var(--black); }

/* Contact */
.contact { min-height: 82svh; padding: clamp(4rem, 7vw, 6rem) var(--gutter) 2rem; display: flex; flex-direction: column; background: var(--charcoal); border-top: 1px solid rgba(242, 237, 227, .18); }
html[data-theme="forest"] .contact { background: var(--black); border-top-color: rgba(237, 240, 233, .16); }
.contact h2 { margin: auto 0 2.25rem; font-size: clamp(3.4rem, 10.5vw, 11.5rem); line-height: .8; letter-spacing: -.09em; }
.contact h2 span { display: block; color: var(--accent); }
.contact-primary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.5rem; }
.contact-link { width: fit-content; max-width: 100%; overflow-wrap: anywhere; border-bottom: 1px solid var(--off-white); padding-bottom: .35rem; font-size: clamp(1.2rem, 2.5vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; transform: translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0); transition: transform .25s ease; }
.contact-link span { display: inline-block; padding-left: .6rem; transition: transform .3s ease; }
.contact-link:hover span, .contact-link:focus-visible span { transform: translate(.25rem, -.25rem); }
.contact-copy { border: 1px solid rgba(242,237,227,.36); background: transparent; padding: .48rem .85rem; font: 700 .75rem/1 var(--mono); text-transform: uppercase; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.contact-copy:hover, .contact-copy:focus-visible { border-color: var(--accent); background: var(--accent); color: var(--black); }
.contact-copy-status { font: 700 .75rem/1 var(--mono); text-transform: uppercase; color: var(--accent); }
.certificate-actions { display: flex; flex-shrink: 0; align-items: center; gap: .85rem; }
.certificate-preview { border: 0; padding: 0 0 .15rem; background: transparent; font: 700 .75rem/1 var(--mono); text-transform: uppercase; color: var(--light-gray); border-bottom: 1px solid transparent; cursor: pointer; }
.certificate-preview:hover, .certificate-preview:focus-visible { color: var(--accent); border-color: var(--accent); }
.contact-socials { display: flex; flex-wrap: wrap; gap: .8rem 1.75rem; margin-top: 2rem; font: 700 .8rem/1.3 var(--mono); text-transform: uppercase; }
.contact-socials a { border-bottom: 1px solid rgba(242,237,227,.35); padding-bottom: .25rem; }
.contact-socials a:hover { border-color: var(--accent); color: var(--accent); }
.contact-footer { margin-top: auto; padding-top: 3.5rem; font: .8rem/1.45 var(--mono); text-transform: uppercase; row-gap: .75rem; }
.contact-footer p:first-child { grid-column: 1 / span 4; }
.contact-footer p:nth-child(2) { grid-column: 5 / span 4; text-align: center; color: var(--mid-gray); }
.contact-footer p:last-child { grid-column: 9 / -1; text-align: right; }

/* Case Study Modal */
.case-modal { margin: 0; padding: 0; border: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; color: var(--off-white); }
.case-modal::backdrop { background: rgba(7, 28, 49, .86); backdrop-filter: blur(6px); }
.case-modal__surface { min-height: 100%; width: min(68rem, 100%); margin: 0 auto; background: var(--black); border-inline: 1px solid rgba(242, 237, 227, .18); display: flex; flex-direction: column; }
.case-modal__topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem clamp(1.25rem, 3vw, 2.5rem); background: var(--black); border-bottom: 1px solid rgba(242, 237, 227, .18); }
.case-modal__meta { font: 700 .78rem/1.3 var(--mono); text-transform: uppercase; color: var(--accent); }
.case-modal__close { border: 1px solid rgba(242, 237, 227, .35); background: transparent; padding: .48rem .8rem; font: 700 .75rem/1 var(--mono); text-transform: uppercase; cursor: pointer; }
.case-modal__close:hover { border-color: var(--accent); color: var(--accent); }
.case-modal__body { padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) 3.5rem; display: grid; gap: 2rem; }
.case-modal__header h2 { font-size: clamp(2rem, 4.5vw, 4rem); line-height: .94; letter-spacing: -.06em; }
.case-modal__lead { margin-top: .9rem; font: 1.05rem/1.55 var(--sans); color: var(--light-gray); max-width: 48rem; }
.case-modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.case-modal__gallery { display: grid; gap: .85rem; }
.case-modal__stage { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(242, 237, 227, .24); background: var(--charcoal); }
.case-modal__stage img { width: 100%; height: 100%; object-fit: cover; }
.case-modal__thumbs { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .25rem; }
.case-modal__thumb { flex: 0 0 5.5rem; aspect-ratio: 16 / 10; padding: 0; border: 1px solid rgba(242, 237, 227, .24); background: var(--charcoal); overflow: hidden; cursor: pointer; opacity: .65; transition: opacity .2s ease, border-color .2s ease; }
.case-modal__thumb.is-active, .case-modal__thumb:hover { opacity: 1; border-color: var(--accent); }
.case-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }

.case-modal__details { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(242, 237, 227, .18); }
.case-modal__section { grid-column: span 6; }
.case-modal__section:first-child { grid-column: 1 / -1; }
.case-modal__section h3 { margin-bottom: .85rem; font: 700 .78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.case-modal__section p { font: 1rem/1.65 var(--sans); color: var(--light-gray); white-space: pre-line; }
.case-modal__features { padding-left: 1.15rem; display: grid; gap: .55rem; font: .95rem/1.55 var(--sans); color: var(--light-gray); }
.case-modal__stack { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.case-modal__stack li { padding: .4rem .68rem; border: 1px solid rgba(242, 237, 227, .3); font: .76rem/1 var(--mono); }

/* Opt-in Motion System */
.motion-ready .statement-copy { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.16,1,.3,1); }
.motion-ready .statement.is-revealed .statement-copy { clip-path: inset(0 0 0 0); }
.motion-ready .section-heading, .motion-ready .timeline-intro { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate3d(0, 1.25rem, 0); transition: opacity .5s ease, clip-path .85s cubic-bezier(.16,1,.3,1), transform .85s cubic-bezier(.16,1,.3,1); }
.motion-ready .section-heading.is-revealed, .motion-ready .timeline-intro.is-revealed { opacity: 1; clip-path: inset(0 0 0 0); transform: translate3d(0, 0, 0); }
.motion-ready .work-index-item { opacity: 0; transform: translate3d(0, 1rem, 0); transition: opacity .45s ease, transform .65s cubic-bezier(.16,1,.3,1); }
.motion-ready .work-index-item.is-revealed { opacity: 1; transform: translate3d(0, 0, 0); }
.motion-ready .capability { clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.16,1,.3,1); }
.motion-ready .capability.is-revealed { clip-path: inset(0 0 0 0); }
.motion-ready .timeline-item { opacity: 0; transform: translate3d(0, 1rem, 0); transition: opacity .5s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.motion-ready .timeline-item.is-revealed { opacity: 1; transform: translate3d(0, 0, 0); }
.motion-ready .profile-copy { clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.16,1,.3,1); }
.motion-ready .profile.is-revealed .profile-copy { clip-path: inset(0 0 0 0); }
.motion-ready .contact .section-index, .motion-ready .contact h2, .motion-ready .contact-link, .motion-ready .contact-socials, .motion-ready .contact-footer { opacity: 0; transform: translate3d(0, 1.2rem, 0); transition: opacity .5s ease, transform .75s cubic-bezier(.16,1,.3,1); }
.motion-ready .contact.is-revealed .section-index, .motion-ready .contact.is-revealed h2, .motion-ready .contact.is-revealed .contact-link, .motion-ready .contact.is-revealed .contact-socials, .motion-ready .contact.is-revealed .contact-footer { opacity: 1; transform: translate3d(0, 0, 0); }
.motion-ready .contact.is-revealed h2 { transition-delay: .06s; }
.motion-ready .contact.is-revealed .contact-link { transition-delay: .14s; }
.motion-ready .contact.is-revealed .contact-socials { transition-delay: .2s; }
.motion-ready .contact.is-revealed .contact-footer { transition-delay: .26s; }

@media (prefers-reduced-motion: no-preference) {
  body, .hero, .statement, .work, .practice, .timeline, .profile, .contact, .profile-copy, .site-nav, .theme-toggle {
    transition: background-color .42s ease, color .42s ease, border-color .42s ease;
  }
}

/* Tablet & Mobile Responsive */
@media (max-width: 960px) {
  .hero-stage { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-object { justify-self: end; width: clamp(13rem, 42vw, 19rem); }
  .work-filters { grid-column: 1 / span 7; }
  .work-hint { grid-column: 8 / -1; text-align: right; }
  .work-index-row { grid-template-columns: 1fr auto; gap: .75rem 1rem; align-items: start; }
  .work-index-meta { grid-column: 1; flex-direction: row; align-items: center; gap: .75rem; }
  .work-index-main { grid-column: 1 / -1; }
  .work-index-thumb { display: block; }
  .work-index-desc { display: block; }
  .work-index-stack { grid-column: 1; text-align: left; }
  .work-index-arrow { grid-column: 2; grid-row: 1; }
  .work-cursor-preview { display: none; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .credentials-wrap { grid-template-columns: 1fr; }
  .profile-portrait-wrap { grid-column: 1 / span 5; }
  .profile-copy { grid-column: 6 / -1; }
}

@media (max-width: 760px) {
  .layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: .75rem; }
  .site-header { padding: .85rem var(--gutter); }
  .site-nav { position: fixed; inset: 0; z-index: 22; height: 100dvh; overflow-y: auto; padding: 5.5rem var(--gutter) 2.25rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--black); color: var(--off-white); opacity: 0; visibility: hidden; pointer-events: none; transform: translate3d(0, -.5rem, 0); transition: opacity .24s ease, transform .28s cubic-bezier(.16,1,.3,1), visibility .24s; }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate3d(0, 0, 0); }
  .site-nav a { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; padding: .85rem 0; border-bottom: 1px solid rgba(242, 237, 227, .16); font-family: var(--sans); font-size: clamp(1.35rem, 6vw, 1.85rem); font-weight: 800; letter-spacing: -.04em; }
  .site-nav a.is-active { border-bottom-color: var(--accent); }
  .nav-index { display: inline-block; min-width: 1.75rem; font: 700 .78rem/1 var(--mono); color: var(--mid-gray); }
  .nav-arrow { display: inline-block; margin-left: auto; font: 400 1.2rem/1 var(--sans); color: var(--mid-gray); }
  .site-nav a.is-active .nav-index, .site-nav a.is-active .nav-arrow { color: var(--accent); }
  .site-nav-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; margin-top: auto; padding-top: 1.75rem; }
  .theme-toggle { min-height: 2.75rem; padding: .6rem .95rem; font-size: .8rem; }
  .site-nav .nav-cv-link { display: inline-flex; width: auto; min-height: 2.75rem; padding: .6rem .95rem; border: 1px solid rgba(242, 237, 227, .35); font: 700 .8rem/1 var(--mono); letter-spacing: .01em; }
  .menu-toggle { position: relative; z-index: 25; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 5.5rem; border: 1px solid currentColor; padding: .55rem .85rem; }
  .menu-is-open .site-header { color: var(--off-white); }
  .menu-is-open .site-header::before { opacity: 0; }

  .hero { min-height: auto; padding-bottom: 2.25rem; gap: 1.5rem; }
  .hero-meta { margin-top: 3.5rem; row-gap: .5rem; }
  .hero-meta p:first-child { grid-column: 1 / span 2; }
  .hero-meta p:last-child { grid-column: 3 / -1; font-size: .72rem; }
  .hero-stage { padding: 1rem 0 .5rem; gap: 1.75rem; }
  h1 { font-size: clamp(2.15rem, 9.6vw, 3.6rem); line-height: .88; letter-spacing: -.085em; }
  h1 span:last-child { margin-left: 0; }
  .hero-object { justify-self: center; width: min(68vw, 16.5rem); }
  .hero-footer { row-gap: 1.15rem; }
  .hero-footer p:first-child { grid-column: 1 / span 2; font-size: .72rem; }
  .hero-footer p:last-child { grid-column: 3 / -1; font-size: .72rem; }
  .scroll-cue { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-self: stretch; }

  .statement { min-height: 58svh; }
  .statement-top .section-index { grid-column: 1 / span 1; }
  .statement-top .section-label { grid-column: 2 / -1; }
  .statement-copy { width: 100%; font-size: clamp(2.4rem, 11vw, 4.4rem); }
  .statement-orbit { right: -30%; bottom: -10%; width: 88vw; }

  .section-heading .section-index { grid-column: 1 / span 1; }
  .section-heading h2 { grid-column: 1 / -1; margin-top: 1.75rem; font-size: clamp(2.9rem, 13vw, 5.4rem); }
  .section-note { grid-column: 1 / -1; margin-top: 1.25rem; }

  .work-toolbar { row-gap: .85rem; }
  .work-filters, .work-hint { grid-column: 1 / -1; text-align: left; }
  .work-index-thumb { flex: 0 0 4.25rem; width: 4.25rem; height: 4.25rem; }
  .work-index-title { font-size: 1.35rem; }

  .capability { grid-template-columns: 2.25rem 1fr; min-height: 0; padding: 1.25rem 0 2rem; }
  .capability h3 { font-size: clamp(1.75rem, 8.5vw, 3.2rem); }
  .capability > p:last-child { grid-column: 2; margin-top: .5rem; max-width: none; }
  .stack-header .section-index, .stack-header h3 { grid-column: 1 / -1; }
  .stack-grid { grid-template-columns: 1fr; }

  .timeline-intro .section-index { grid-column: 1 / span 1; }
  .timeline-intro h2 { grid-column: 1 / -1; margin-top: 1.75rem; font-size: clamp(2.7rem, 12vw, 4.4rem); }
  .timeline-intro > p:last-child { grid-column: 1 / -1; margin-top: 1.25rem; }
  .timeline-list { padding-left: 1.25rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; padding: 1.75rem 0; }
  .timeline-item::before { left: calc(-1.25rem - 3px); top: 2rem; }
  .timeline-meta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
  .timeline-mark { flex: 0 0 3.5rem; width: 3.5rem; height: 3.5rem; }
  .timeline-item h3 { font-size: clamp(1.35rem, 6.5vw, 1.9rem); }
  .timeline-desc { max-width: none; font-size: .92rem; }
  .certificate-item { flex-direction: column; gap: .45rem; }

  .profile { min-height: auto; }
  .profile-disc { width: 105vw; left: -35%; top: -5%; }
  .profile-square { width: 44vw; right: -4%; bottom: 10%; }
  .profile-portrait-wrap { grid-column: 1 / -1; }
  .profile-portrait { max-width: 15rem; }
  .profile-copy { grid-column: 1 / -1; }
  .profile-copy h2 { font-size: clamp(2.6rem, 12vw, 4.8rem); }

  .contact { min-height: 75svh; }
  .contact h2 { font-size: clamp(2.9rem, 13.5vw, 5.4rem); }
  .contact-footer p:first-child, .contact-footer p:nth-child(2), .contact-footer p:last-child { grid-column: 1 / -1; text-align: left; }
  .case-modal__section { grid-column: 1 / -1; }
}

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