/* NUGZ — a personal journey from operations to connected information. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0c0f10;
  --surface: #121718;
  --panel: #181e1f;
  --text: #eef2e9;
  --muted: #a3afac;
  --quiet: #899893;
  --line: #303a37;
  --lime: #c9f85a;
  --amber: #edb86b;
  --sans: Manrope, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(24px, 5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open, body.lightbox-open { overflow: hidden; }
::selection { background: var(--lime); color: var(--bg); }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
summary { cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
p, h1, h2, h3, h4, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
main:focus, section[tabindex="-1"]:focus { outline: none; }
.container { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
.icon { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 16px; transform: translateY(-170%); z-index: 100; padding: 12px 20px; background: var(--lime); color: var(--bg); border-radius: 4px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font: 10px/1.7 var(--mono); letter-spacing: .08em; }
.signal-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px #c9f85a0d, 0 0 16px #c9f85a30; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 53px; padding: 14px 24px; font-size: 12px; font-weight: 700; line-height: 1.6; border: 1px solid transparent; border-radius: 4px; transition: background .38s var(--ease), color .38s var(--ease), border-color .38s var(--ease), translate .38s var(--ease), box-shadow .38s var(--ease); transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)); }
.button .icon { width: 18px; height: 18px; transition: transform .38s var(--ease); }
.button:hover { translate: 0 -3px; box-shadow: 0 12px 35px #0004; }
.button:hover .icon:last-child { transform: translate(2px, -2px); }
.button-lime { background: var(--lime); color: var(--bg); }
.button-lime:hover { background: #dcff91; }
.button-outline { border-color: #52614e; background: #11171480; }
.button-outline:hover { background: #202c21; border-color: var(--lime); }
.text-link { display: inline-flex; gap: 26px; align-items: center; min-height: 44px; border-bottom: 1px solid #657844; font-size: 12px; font-weight: 600; padding-block: 9px; transition: color .38s var(--ease), border-color .38s var(--ease); }
.text-link .icon { width: 17px; height: 17px; transition: transform .38s var(--ease); }
.text-link:hover { color: var(--lime); }
.text-link:hover .icon { transform: translate(2px, 2px); }

/* Navigation sits on the same dark canvas as the opening scene. */
.site-header { position: sticky; top: 0; z-index: 30; background: #0c0f10b8; border-bottom: 1px solid #303a3760; backdrop-filter: blur(12px); transition: background .55s var(--ease), border-color .55s var(--ease), backdrop-filter .55s var(--ease), box-shadow .55s var(--ease); }
.site-header.is-scrolled { background: #0c0f10ef; border-color: #52604d88; backdrop-filter: blur(20px); box-shadow: 0 12px 35px #0002; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 25px; }
.brand { display: inline-flex; align-items: baseline; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -2px; flex-shrink: 0; }
.brand-dot { color: var(--lime); }
.brand-caption { align-self: center; margin-left: 20px; padding-left: 20px; border-left: 1px solid #43503b; font: 8px/1.7 var(--mono); letter-spacing: .07em; color: var(--quiet); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); }
.nav > a { position: relative; padding-block: 15px; font-size: 11px; font-weight: 500; color: #bbc4bb; transition: color .38s var(--ease); }
.nav > a:not(.nav-contact)::after { content: ""; position: absolute; bottom: 8px; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--lime); transition: transform .48s var(--ease); }
.nav > a:hover, .nav > a[aria-current="location"] { color: var(--text); }
.nav > a:hover::after, .nav > a[aria-current="location"]::after { transform: scaleX(1); }
.nav .nav-contact { display: inline-flex; transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)); transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); align-items: center; gap: 18px; border: 1px solid #617143; border-radius: 4px; padding: 10px 17px; min-height: 44px; color: var(--lime); }
.nav-contact .icon { width: 16px; height: 16px; }
.nav-contact:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.menu-button { display: none; }
.reading-progress { position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Hero: a human portrait in an abstract data field, without operational metrics. */
.hero { position: relative; isolation: isolate; overflow-x: clip; overflow-y: hidden; background: radial-gradient(ellipse at 82% 40%, #25321b55, transparent 50%), var(--bg); animation: intro-canvas 1.25s both; }
.hero { clip-path: inset(0); }
.hero-network { overflow: hidden; clip-path: inset(0); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(#a9c38005 1px, transparent 1px), linear-gradient(90deg, #a9c38005 1px, transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(90deg, transparent 5%, black); }
.hero-layout { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; padding-block: 64px 60px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 75% 35%, #64b8d20b, transparent 48%); transform: translate(var(--grid-shift, 0), var(--grid-shift, 0)); transition: transform .25s ease-out; }
.hero-network { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-network svg { overflow: hidden; }
.hero-network svg { width: 100%; height: 100%; }
.hero-network path { stroke: #9eb8781c; stroke-width: 1; }
.hero-network .network-signal { stroke: #b6da6952; stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: connect 2.4s .4s var(--ease) forwards; }
.hero-network circle { fill: var(--lime); opacity: .28; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy > * { animation: intro-rise 1.05s both; animation-delay: calc(.18s + var(--intro-order, 0) * .13s); }
.hero-copy > .hero-eyebrow { --intro-order: 0; }
.hero-copy > h1 { --intro-order: 1; }
.hero-copy > .hero-tagline { --intro-order: 2; }
.hero-copy > .hero-role { --intro-order: 3; }
.hero-copy > .hero-description { --intro-order: 4; }
.hero-copy > .hero-actions { --intro-order: 5; }
.hero-copy > .hero-location { --intro-order: 6; }
.hero-eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; color: #b5c39c; font-size: 9px; }
.hero h1 { font-size: clamp(59px, 6.6vw, 94px); line-height: 1.04; font-weight: 750; letter-spacing: -.065em; text-transform: uppercase; margin-left: -5px; }
.name-accent { color: var(--lime); }
.name-period { color: var(--amber); }
.hero-tagline { font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; letter-spacing: -.03em; color: #b8c1b5; margin-top: 22px; max-width: 590px; }
.hero-tagline strong { color: var(--text); font-weight: 500; }
.hero-role { display: flex; align-items: center; gap: 15px; margin-top: 25px; }
.role-line { width: 2px; height: 40px; background: var(--amber); }
.hero-role p { font-size: 16px; font-weight: 650; }
.hero-role div > span { display: inline-block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.hero-role div > span > span { margin-inline: 8px; color: var(--amber); }
.hero-description { max-width: 510px; margin-top: 22px; font-size: 13px; line-height: 1.95; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-location { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--quiet); font-size: 10px; }
.hero-location .icon { width: 14px; height: 14px; }
.hero-portrait { position: relative; isolation: isolate; margin-top: 4px; padding-right: 10px; transform: translate3d(var(--pointer-shift, 0), 0); transition: transform .55s var(--ease); animation: portrait-intro 1.35s .72s both; }
.hero-portrait { overflow: clip; }
.portrait-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; font: 9px/1.6 var(--mono); letter-spacing: .08em; color: #a8ba92; }
.portrait-topline > span:last-child { color: var(--amber); font-size: 14px; }
.portrait-frame { position: relative; background: #000; overflow: hidden; aspect-ratio: .81; border: 1px solid #455333; border-radius: 4px 75px 4px 4px; }
.portrait-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.portrait-frame figcaption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 13px; padding: 45px 24px 22px; background: linear-gradient(transparent, #030704f2 65%); color: var(--text); font: 9px/1.8 var(--mono); letter-spacing: .03em; }
.portrait-frame figcaption small { font: 10px/1.6 var(--sans); color: #b5c4a4; letter-spacing: 0; }
.portrait-index { margin-left: auto; color: var(--amber); font-size: 9px; }
.portrait-signal { position: absolute; bottom: 112px; left: -33px; display: flex; align-items: center; gap: 13px; padding: 17px 19px; background: #161e15f7; border: 1px solid #688444; border-left: 2px solid var(--lime); border-radius: 3px; font: 9px/1.7 var(--mono); box-shadow: 0 10px 35px #0005; }
.portrait-signal .icon { width: 24px; height: 24px; color: var(--lime); }
.portrait-signal span { color: var(--muted); }
.portrait-signal b { color: var(--text); font-weight: 400; }
.portrait-signal i { display: block; width: 33px; height: 23px; margin-left: 7px; background: repeating-linear-gradient(90deg, #c9f85a80 0 2px, transparent 2px 6px); mask-image: linear-gradient(0deg, black, transparent); }
.portrait-label { position: absolute; right: -28px; top: 130px; writing-mode: vertical-rl; font: 8px/1.6 var(--mono); letter-spacing: .16em; color: #aab992; }
.portrait-orbit { position: absolute; top: 100px; left: -67px; right: -53px; bottom: 51px; border: 1px solid #829f4026; border-radius: 50%; transform: rotate(-23deg); z-index: -1; box-shadow: 0 0 0 29px #afc96003, 0 0 0 30px #a2c14c16; }
.portrait-orbit > span { position: absolute; right: 38px; bottom: 39px; width: 7px; height: 7px; background: var(--amber); box-shadow: 0 0 16px #edb86b44; }
.portrait-grid { position: absolute; right: -18px; bottom: -23px; width: 134px; height: 134px; z-index: -1; background-image: radial-gradient(#b1cd6752 1px, transparent 1px); background-size: 12px 12px; }
.hero-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-block: 24px 28px; }
.hero-foot-label { font: 9px/1.8 var(--mono); letter-spacing: .05em; }
.hero-foot-label > span { color: var(--quiet); }
.hero-domains { display: flex; align-items: center; gap: 25px; font: 9px/1.6 var(--mono); color: #acbba1; }
.hero-domains > i { font-style: normal; color: var(--amber); font-size: 20px; }
.hero-domains > span:last-child { color: var(--lime); }
.scroll-link { display: flex; align-items: center; gap: 15px; font-size: 10px; color: #b4c0aa; }
.scroll-link > span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #4a5c3f; border-radius: 50%; transition: background .25s, color .25s; }
.scroll-link:hover > span { background: var(--lime); color: var(--bg); }
.scroll-link .icon { width: 16px; height: 16px; }

/* Narrative rhythm: open space, connected chapters, contrasting proportions. */
.section { padding-block: 110px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 47px; font: 10px/1.7 var(--mono); letter-spacing: .075em; }
.section-label > span:first-child { display: flex; align-items: center; gap: 12px; color: var(--lime); }
.section-label > span:first-child::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--lime); }
.label-note { color: var(--quiet); font-size: 9px; text-align: right; }
h2 { font-size: clamp(36px, 3.7vw, 54px); line-height: 1.18; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
h2 em { font-style: normal; color: var(--lime); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 65px; margin-bottom: 47px; }
.section-heading > p { max-width: 310px; color: var(--muted); font-size: 13px; line-height: 1.95; }

/* About: a quiet portrait and a first-person story. */
.about-section { background: var(--surface); border-block: 1px solid #2f393255; }
.about-heading { display: flex; align-items: center; justify-content: space-between; gap: 50px; margin-bottom: 61px; }
.about-heading h2 { max-width: 935px; }
.about-heading h2 em { color: var(--amber); }
.about-asterisk { font: 100px/1 var(--sans); color: #849661; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(70px, 9vw, 140px); align-items: start; }
.about-aside { padding: 8px 0 0; }
.about-photo { position: relative; border-left: 1px solid #6c7349; padding: 0 0 0 14px; }
.about-photo > img { width: 100%; aspect-ratio: 4/4.7; object-fit: cover; object-position: center 19%; border-radius: 2px 2px 45px 2px; }
.about-photo-caption { display: flex; justify-content: space-between; gap: 10px; padding-top: 17px; font: 8px/1.6 var(--mono); color: var(--quiet); letter-spacing: .04em; }
.about-fieldnote { position: relative; margin: 27px 0 0 15px; padding: 23px 0 0; border-top: 1px solid #444c32; }
.about-fieldnote .eyebrow { color: var(--amber); font-size: 8px; }
.about-fieldnote p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: #aab6a4; letter-spacing: -.02em; }
.about-fieldnote strong { color: var(--text); font-weight: 500; }
.about-fieldnote > .icon { position: absolute; right: 0; top: 23px; color: var(--amber); width: 26px; height: 26px; }
.about-copy > p { font-size: 14px; line-height: 2; color: var(--muted); }
.about-copy > p + p { margin-top: 24px; }
.about-copy > p.lead { font-size: 18px; line-height: 1.85; color: #c9d1c5; letter-spacing: -.02em; }
.about-copy strong { color: var(--text); font-weight: 600; }
.about-note { display: flex; align-items: flex-start; gap: 17px; margin-block: 30px 20px; padding: 21px 0 21px 21px; border-left: 2px solid var(--amber); }
.note-mark { color: var(--amber); font: 22px/1.6 var(--mono); }
.about-note p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.about-note strong { font-weight: 500; }

/* Career: the glowing current node anchors a continuous, editable timeline. */
.experience-section { background: var(--bg); }
.experience-grid { display: grid; grid-template-columns: .67fr 1.33fr; gap: 85px; align-items: start; }
.experience-intro { position: sticky; top: 130px; }
.experience-intro h2 { font-size: clamp(34px, 3.3vw, 48px); }
.experience-intro > p { margin-top: 27px; color: var(--muted); font-size: 13px; max-width: 315px; line-height: 1.95; }
.experience-intro > .text-link { margin-top: 33px; font-size: 11px; }
.journey-note { margin-top: 38px; display: flex; flex-direction: column; align-items: flex-start; padding-left: 6px; font: 9px/1.7 var(--mono); color: #a2ae96; letter-spacing: .035em; }
.journey-note > span { position: relative; padding-left: 20px; }
.journey-note > span::before { content: ""; width: 7px; height: 7px; border: 1px solid #657a49; position: absolute; left: -3px; top: 4px; }
.journey-note > i { height: 25px; border-left: 1px solid #3e4d33; margin-block: 4px; }
.journey-note .journey-current { color: var(--lime); }
.journey-current::before { background: var(--lime); }
.timeline { list-style: none; position: relative; padding-left: 49px; }
.timeline::before { content: ""; position: absolute; width: 1px; top: 34px; bottom: 25px; left: 14px; background: linear-gradient(var(--lime), #516438 15%, #414832 75%, #edb86b66); }
.timeline-item { position: relative; padding: 0 0 39px 5px; margin-bottom: 39px; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.timeline-marker { position: absolute; top: -4px; left: -49px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #52613d; border-radius: 3px; background: var(--bg); color: #b0c090; font: 9px var(--mono); transition: border-color .3s, color .3s, box-shadow .3s; }
.timeline-item.current { padding: 32px; margin-bottom: 46px; border: 1px solid #667e3b; border-radius: 4px 20px 4px 4px; background: radial-gradient(ellipse at 100% 0%, #799c2922, transparent 65%), #141c14; }
.current .timeline-marker { top: 31px; background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 6px var(--bg), 0 0 30px #c9f85a15; color: var(--bg); }
.timeline-item.is-in-view:not(.current) .timeline-marker { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 18px #edb86b0e; }
.timeline-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.timeline-date { font: 10px/1.7 var(--mono); color: #b3bf9e; }
.current .timeline-date { color: var(--lime); }
.current-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; background: #b5e54e0a; border: 1px solid #587232; color: var(--lime); border-radius: 3px; font: 8px/1.7 var(--mono); letter-spacing: .02em; }
.current-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); }
.timeline-item h3 { margin-block: 16px 7px; font-size: 26px; line-height: 1.35; letter-spacing: -.03em; font-weight: 600; }
.current h3 { font-size: 28px; }
.timeline-company { font-size: 13px; font-weight: 500; line-height: 1.7; color: #c1ccba; }
.timeline-company > span { color: var(--quiet); }
.timeline-description { color: var(--quiet); font-size: 12px; line-height: 1.9; margin-top: 13px; }
.job-responsibilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 18px; list-style: none; margin-top: 24px; padding-top: 23px; border-top: 1px solid #36432c; }
.job-responsibilities > li { position: relative; padding-left: 17px; color: #aebba6; font-size: 12px; line-height: 1.95; }
.job-responsibilities > li::before { content: "↗"; position: absolute; left: 0; top: -1px; color: #a7bb73; font-size: 12px; }
.current .job-responsibilities > li { color: #c1ccae; }

/* Projects: distinct compositions, abstract diagrams and honest development status. */
.projects-section { background: var(--surface); border-top: 1px solid #2f393255; }
.project-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.project-details { margin-top: 18px; border-bottom: 1px solid #35452b; }
.project-details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; min-height: 44px; font-size: 11px; font-weight: 600; transition: color .2s; }
.project-details > summary::-webkit-details-marker { display: none; }
.project-details > summary .icon { width: 17px; height: 17px; color: var(--lime); transition: transform .25s; }
.project-details[open] > summary .icon { transform: rotate(45deg); }
.project-details > summary:hover { color: var(--lime); }
.project-details > div { padding: 4px 0 20px; }
.project-details p { font-size: 12px; line-height: 1.95; color: var(--muted); }
.project-details p + p { margin-top: 10px; }
.tech-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.tech-tags li { border: 1px solid #3c4931; border-radius: 3px; padding: 5px 8px; color: #b8c4a6; background: #1a2117; font: 9px/1.65 var(--mono); }
.mine-diagram { display: flex; align-items: center; gap: 9px; max-width: 100%; }
.mine-diagram > span { padding: 8px 10px; border: 1px solid #627c34; border-radius: 3px; background: #172111; color: #c7dbb2; font: 8px/1.5 var(--mono); white-space: nowrap; }
.mine-diagram i { width: 24px; height: 1px; background: #779840; }
.project-monitor { grid-column: span 7; }
.project-contract { grid-column: span 5; }
.project-automation { grid-column: span 5; }
.project-core { grid-column: span 7; border-color: #414c58; }
.project-core .tech-tags li { border-color: #3f4c54; background: #182029; color: #b2c1ca; }
.project-concept { display: grid; grid-template-columns: 105px minmax(0, 1fr); background: transparent; border: 0; border-top: 1px dashed #596a45; border-bottom: 1px solid #34422d; border-radius: 0; }
.project-concept:hover { translate: none; }
.project-concept h3 { font-size: 23px; }
.project-footnote { display: flex; gap: 12px; align-items: flex-start; font-size: 10px; color: var(--quiet); margin-top: 28px; }
.project-footnote > span { font-size: 19px; line-height: 1.3; color: var(--amber); }

/* Skills stay editorial: levels are written explicitly, never expressed as percentages. */
.skills-section { background: var(--bg); position: relative; overflow: hidden; }
.skills-section::before { content: ""; position: absolute; top: -160px; right: -220px; width: 650px; height: 650px; border: 1px solid #c9f85a10; border-radius: 50%; box-shadow: 0 0 0 60px #c9f85a02, 0 0 0 61px #c9f85a09; pointer-events: none; }
.skills-section .container { position: relative; }
.skills-section .section-heading { align-items: flex-start; margin-bottom: 58px; }
.skills-section .section-heading > p { margin-top: 8px; }
.skill-groups { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; }
.skill-group { border-top: 1px solid #435232; padding-block: 28px 33px; min-width: 0; }
.skill-title { display: flex; align-items: center; gap: 19px; margin-bottom: 22px; }
.skill-number { font: 9px var(--mono); color: var(--lime); }
.skill-title h3 { font-size: 20px; line-height: 1.5; letter-spacing: -.025em; font-weight: 550; }
.skill-title .icon { margin-left: auto; width: 20px; height: 20px; color: #9cb47c; }
.skill-levels > div + div { margin-top: 19px; }
.skill-levels dt { font: 9px/1.8 var(--mono); margin-bottom: 10px; }
.level-used { color: #bcdb88; }
.level-explored { color: #a9b7c0; }
.level-learning { color: var(--amber); }
.skill-levels dt::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 9px; border: 1px solid currentColor; vertical-align: 1px; }
.level-used::before { background: currentColor; }
.skill-group ul { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.skill-group li { border: 1px solid #35412c; border-radius: 3px; padding: 7px 11px; color: #c3ceba; background: #151c14; font-size: 11px; line-height: 1.6; }
.skill-group li small { font-size: 9px; color: #a3b496; margin-left: 4px; }
.skill-context { font-size: 12px; color: var(--quiet); margin-top: 23px; max-width: 395px; line-height: 1.9; }
.learning-line { margin-top: 22px; padding-top: 29px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.learning-line > span { color: var(--lime); font-size: 23px; margin-right: 14px; }
.learning-line strong { font-weight: 500; color: var(--text); }

/* Learning archive: real scans, when provided, are rendered by the content script. */
.education-section { background: var(--surface); border-block: 1px solid #2f393255; }
.education-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.education-intro { position: sticky; top: 130px; }
.education-intro h2 { font-size: clamp(34px, 3.15vw, 46px); }
.education-intro h2 em { color: var(--amber); }
.education-description { margin-top: 23px; max-width: 350px; font-size: 13px; line-height: 1.95; color: var(--muted); }
.education-card { margin-top: 40px; padding: 29px; border: 1px solid #5c5538; border-left: 2px solid var(--amber); background: linear-gradient(120deg, #29271c, #181d17); border-radius: 3px; }
.education-card > .icon { margin-bottom: 30px; width: 30px; height: 30px; color: var(--amber); }
.education-card .eyebrow { color: #bcb18f; font-size: 9px; }
.education-card h3 { margin-block: 15px 6px; font-size: 24px; letter-spacing: -.03em; font-weight: 550; }
.education-card > p:last-child { font-size: 13px; color: #b7bca5; }
.training-heading { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; line-height: 1.6; font-weight: 600; border-bottom: 1px solid #5c693f; padding-bottom: 23px; }
.training-heading > span { font: 10px var(--mono); color: var(--quiet); }
.certificate-gallery { list-style: none; }
.certificate-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding-block: 25px; border-bottom: 1px solid var(--line); }
.certificate-item > .icon { width: 21px; height: 21px; color: var(--amber); margin-top: 3px; }
.certificate-item h4 { font-size: 13px; font-weight: 550; line-height: 1.75; }
.certificate-item p { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.8; }
.certificate-item .training-date { font: 9px/1.8 var(--mono); margin-top: 8px; color: #b3c595; }
.training-type { margin-left: auto; margin-top: 5px; font: 7px/1.7 var(--mono); color: var(--quiet); letter-spacing: .045em; white-space: nowrap; }
.certificate-item.has-image { grid-template-columns: minmax(0, 1fr); }
.certificate-item.has-image .training-type { grid-column: 2; margin: -9px 0 0; }
.certificate-thumbnail { position: relative; display: block; border: 1px solid #617346; padding: 7px; background: #1a2316; border-radius: 3px; }
.certificate-thumbnail img { display: block; width: 100%; height: 119px; object-fit: contain; background: #f1f0e9; }
.certificate-thumbnail > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; color: var(--lime); font: 8px/1.7 var(--mono); }
.certificate-thumbnail .icon { width: 15px; height: 15px; }
.certificate-thumbnail:hover { border-color: var(--lime); background: #28331d; }

/* The lightbox uses native dialog modality, with ordinary image links as the fallback. */
.certificate-lightbox { margin: auto; padding: 22px; width: min(1080px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; background: #121819; color: var(--text); border: 1px solid #677b46; border-radius: 5px; box-shadow: 0 25px 100px #0008; }
.certificate-lightbox::backdrop { background: #020504e8; backdrop-filter: blur(8px); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 16px; }
.lightbox-bar .eyebrow { color: var(--lime); }
.lightbox-close { display: flex; align-items: center; gap: 16px; background: #26331d; color: var(--lime); border: 1px solid #748c4c; border-radius: 3px; padding: 8px 14px; min-height: 44px; font-size: 12px; }
.lightbox-close span { font-size: 22px; line-height: 1; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; height: min(57dvh, 660px); min-height: 130px; overflow: auto; background: #080d0b; border: 1px solid #303d29; overscroll-behavior: contain; }
.lightbox-stage img { display: block; flex-shrink: 0; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.lightbox-stage.is-zoomed { display: block; }
.lightbox-stage.is-zoomed img { width: var(--image-width); height: auto; max-width: none; max-height: none; margin: auto; }
.lightbox-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-top: 20px; }
.lightbox-caption h2 { font-size: 18px; line-height: 1.55; letter-spacing: -.025em; }
.lightbox-caption p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.lightbox-count { white-space: nowrap; color: var(--amber); font: 10px/1.8 var(--mono); }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; }
.lightbox-controls button, .lightbox-controls a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 9px 14px; border: 1px solid #52693a; background: #1b2617; border-radius: 3px; font-size: 11px; color: #d2e4b9; }
.lightbox-controls button:hover, .lightbox-controls a:hover, .lightbox-close:hover { background: #354b20; }
.lightbox-controls button:disabled { opacity: .4; background: transparent; }
.lightbox-controls .icon { width: 15px; height: 15px; }
.lightbox-hint { text-align: center; font: 9px/1.7 var(--mono); color: var(--quiet); margin-top: 17px; }
.lightbox-error { margin-top: 18px; color: var(--amber); font-size: 12px; }

/* Contact: a final, spacious invitation. */
.contact-section { background: radial-gradient(ellipse at 17% 100%, #3f542021, transparent 65%), var(--bg); position: relative; overflow: hidden; }
.contact-section::before { content: ""; position: absolute; right: -160px; top: -220px; width: 670px; height: 670px; border: 1px solid #c9f85a13; border-radius: 50%; box-shadow: 0 0 0 45px #c9f85a02, 0 0 0 46px #c9f85a10, 0 0 0 90px #c9f85a02, 0 0 0 91px #c9f85a09; pointer-events: none; }
.contact-inner { display: grid; grid-template-columns: 1.35fr .65fr; gap: 90px; padding-block: 108px 97px; position: relative; }
.contact-copy .eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 33px; color: var(--lime); }
.contact-copy h2 { font-size: clamp(40px, 4vw, 58px); line-height: 1.22; }
.contact-copy > p:not(.eyebrow) { max-width: 445px; font-size: 13px; line-height: 1.95; margin-top: 26px; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.contact-actions .button { font-size: 11px; gap: 16px; }
.contact-details { align-self: center; border-left: 1px solid #4a5c36; padding-left: 39px; }
.contact-details > div:not(.contact-signature) { margin-bottom: 25px; }
.contact-details > div > span { display: block; font: 9px/1.7 var(--mono); color: #a5b493; letter-spacing: .075em; margin-bottom: 7px; }
.contact-details a, .contact-details p { font-size: 14px; font-weight: 500; }
.contact-details a { text-decoration: underline; text-decoration-color: #5f7143; text-underline-offset: 6px; display: inline-flex; align-items: center; min-height: 32px; transition: color .2s; }
.contact-details a:hover { color: var(--lime); }
.contact-signature { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 9px/1.7 var(--mono); letter-spacing: .1em; margin-top: 37px; color: var(--amber); }
.contact-signature .icon { width: 37px; height: 37px; stroke-width: 1; }
.site-footer { background: #0a0d0d; border-top: 1px solid #2c3928; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 30px; }
.site-footer .brand { font-size: 29px; }
.site-footer p { font-size: 9px; color: var(--quiet); }
.footer-divider { display: inline-block; margin-inline: 15px; color: var(--amber); }
.back-top { display: inline-flex; align-items: center; gap: 20px; font-size: 10px; min-height: 44px; }
.back-top .icon { width: 16px; height: 16px; color: var(--lime); }

/* Motion is finite and content remains accessible before JavaScript initializes. */
.reveal { transition: opacity .95s var(--ease), translate 1s var(--ease), filter .95s var(--ease); }
.reveal-pending { opacity: 0; translate: 0 35px; filter: blur(4px); }
.hero { animation: intro-canvas 1.2s both; }
.hero-copy > * { animation: intro-rise 1s both; animation-delay: calc(.16s + var(--intro-order, 0) * .12s); }
.hero-copy > .hero-eyebrow { --intro-order: 0; }
.hero-copy > h1 { --intro-order: 1; }
.hero-copy > .hero-tagline { --intro-order: 2; }
.hero-copy > .hero-role { --intro-order: 3; }
.hero-copy > .hero-description { --intro-order: 4; }
.hero-copy > .hero-actions { --intro-order: 5; }
.hero-copy > .hero-location { --intro-order: 6; }
.hero-portrait { animation: portrait-intro 1.25s .68s both; }
@keyframes intro-canvas { from { opacity: .75; } to { opacity: 1; } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(28px); filter: blur(5px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes portrait-intro { from { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(5px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes connect { to { stroke-dashoffset: 0; } }

@media (max-width: 1150px) {
  .brand-caption { display: none; }
  .hero-layout { gap: 49px; }
  .hero h1 { font-size: clamp(58px, 6.8vw, 80px); }
  .hero-tagline { font-size: 19px; }
  .hero-tagline br { display: none; }
  .hero .button { padding-inline: 19px; gap: 18px; font-size: 11px; }
  .portrait-signal { left: -25px; bottom: 90px; padding: 14px; font-size: 8px; }
  .portrait-signal i { display: none; }
  .portrait-index { display: none; }
  .hero-domains { gap: 18px; font-size: 8px; }
  .about-grid { gap: 70px; }
  .experience-grid { grid-template-columns: .64fr 1.36fr; gap: 50px; }
  .timeline { padding-left: 42px; }
  .timeline-marker { left: -42px; }
  .timeline-item.current { padding: 26px; }
  .job-responsibilities { grid-template-columns: 1fr; gap: 12px; }
  .job-responsibilities > li { font-size: 13px; }
  .timeline-item h3, .current h3 { font-size: 25px; }
  .mine-diagram { gap: 7px; }
  .mine-diagram > span { font-size: 7px; padding-inline: 8px; }
  .mine-diagram i { width: 17px; }
  .project-concept { grid-template-columns: 88px minmax(0, 1fr); }
  .project-concept h3 { font-size: 21px; }
  .education-grid { gap: 65px; }
  .training-type { display: none; }
  .certificate-item { grid-template-columns: 22px minmax(0, 1fr); }
  .certificate-item.has-image { grid-template-columns: 145px minmax(0, 1fr); }
  .contact-inner { gap: 60px; }
  .contact-details { padding-left: 29px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 74px; }
  .nav { gap: 16px; }
  .nav > a { font-size: 10px; }
  .nav .nav-contact { gap: 8px; padding-inline: 11px; }
  .hero-layout { gap: 32px; padding-block: 46px; }
  .hero h1 { font-size: clamp(48px, 6.8vw, 65px); }
  .hero-eyebrow { font-size: 8px; gap: 9px; margin-bottom: 23px; }
  .hero-tagline { font-size: 17px; margin-top: 19px; }
  .hero-role { margin-top: 23px; gap: 11px; }
  .hero-role p { font-size: 14px; }
  .hero-role div > span { font-size: 9px; }
  .hero-role div > span > span { margin-inline: 4px; }
  .hero-description { font-size: 12px; margin-top: 18px; }
  .hero-actions { gap: 9px; margin-top: 22px; }
  .hero .button { padding: 12px 15px; min-height: 48px; gap: 12px; font-size: 10px; }
  .hero .button .icon { width: 16px; height: 16px; }
  .hero-location { font-size: 9px; }
  .hero-portrait { padding: 0; }
  .portrait-frame { aspect-ratio: .66; border-top-right-radius: 55px; }
  .portrait-topline { font-size: 7px; }
  .portrait-label { right: -21px; font-size: 7px; }
  .portrait-signal { left: -18px; bottom: 78px; gap: 10px; padding: 12px; font-size: 7px; }
  .portrait-signal .icon { width: 20px; height: 20px; }
  .portrait-frame figcaption { padding: 32px 15px 18px; font-size: 7px; gap: 10px; }
  .portrait-frame figcaption small { font-size: 8px; }
  .hero-foot-label { font-size: 8px; }
  .hero-domains { gap: 12px; font-size: 7px; }
  .scroll-link { font-size: 0; gap: 0; }
  .section { padding-block: 83px; }
  .section-label { margin-bottom: 37px; font-size: 9px; }
  .label-note { font-size: 8px; }
  .about-heading { gap: 25px; margin-bottom: 44px; }
  .about-asterisk { font-size: 70px; }
  .about-grid { gap: 45px; grid-template-columns: .75fr 1.25fr; }
  .about-copy > p { font-size: 13px; }
  .about-copy > p.lead { font-size: 16px; }
  .about-photo-caption { font-size: 7px; }
  .about-fieldnote p { font-size: 14px; }
  .about-fieldnote .eyebrow { font-size: 7px; }
  .about-fieldnote > .icon { width: 20px; height: 20px; }
  .about-note { padding-left: 16px; gap: 11px; }
  .about-note p { font-size: 13px; }
  .experience-grid { grid-template-columns: .6fr 1.4fr; gap: 34px; }
  .experience-intro h2 { font-size: 33px; }
  .experience-intro > p { font-size: 12px; }
  .journey-note { font-size: 8px; }
  .experience-intro .text-link { gap: 11px; font-size: 10px; }
  .timeline { padding-left: 35px; }
  .timeline::before { left: 11px; }
  .timeline-marker { left: -35px; width: 24px; height: 24px; font-size: 8px; }
  .timeline-item.current { padding: 23px; }
  .timeline-date { font-size: 9px; }
  .timeline-item h3, .current h3 { font-size: 22px; }
  .timeline-company { font-size: 12px; }
  .section-heading { gap: 35px; }
  .section-heading > p { max-width: 240px; font-size: 12px; }
  .mine-diagram { flex-wrap: wrap; gap: 6px; }
  .mine-diagram > span { font-size: 7px; padding: 7px 6px; }
  .mine-diagram i { width: 10px; }
  .project-monitor, .project-contract, .project-automation, .project-core { grid-column: span 6; }
  .project-concept { grid-template-columns: 1fr; }
  .skill-groups { column-gap: 35px; }
  .skill-title { gap: 13px; }
  .skill-title h3 { font-size: 18px; }
  .skill-group li { font-size: 10px; padding: 7px 10px; }
  .skill-levels dt { font-size: 8px; }
  .learning-line { font-size: 12px; }
  .education-grid { gap: 43px; }
  .education-card { padding: 24px; }
  .education-card .eyebrow { font-size: 8px; }
  .education-card h3 { font-size: 22px; }
  .certificate-item { gap: 13px; }
  .certificate-item.has-image { grid-template-columns: 1fr; }
  .certificate-thumbnail { max-width: 100%; }
  .certificate-thumbnail img { height: 160px; }
  .contact-inner { gap: 35px; }
  .contact-details { padding-left: 23px; }
  .contact-details a, .contact-details p { font-size: 12px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 93px; }
  .header-inner { min-height: 71px; flex-wrap: wrap; gap: 0; }
  .brand { font-size: 30px; }
  .brand-caption { display: block; font-size: 7px; margin-left: 14px; padding-left: 14px; }
  .menu-button:not([hidden]) { display: flex; align-items: center; gap: 13px; justify-content: center; min-height: 44px; border: 1px solid #617344; border-radius: 3px; padding: 9px 12px; background: transparent; font-size: 11px; color: var(--lime); }
  .menu-bars { width: 17px; height: 12px; position: relative; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; width: 17px; height: 1px; background: currentColor; transition: transform .25s, top .25s; }
  .menu-bars::before { top: 3px; }
  .menu-bars::after { top: 9px; }
  .menu-button[aria-expanded="true"] .menu-bars::before { top: 6px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-bars::after { top: 6px; transform: rotate(-45deg); }
  .nav { flex-basis: 100%; flex-wrap: wrap; gap: 5px 20px; padding-block: 14px; }
  .nav > a { font-size: 12px; }
  .nav .nav-contact { padding-inline: 16px; }
  .nav.is-enhanced { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid #526c33; box-shadow: 0 20px 35px #02070380; max-height: calc(100dvh - 71px); overflow-y: auto; }
  .nav.is-enhanced > a { font-size: 17px; padding-block: 15px; border-bottom: 1px solid #35452b; }
  .nav.is-enhanced > a::after { display: none; }
  .nav.is-enhanced > .nav-contact { margin-top: 20px; justify-content: space-between; background: var(--lime); color: var(--bg); border: 1px solid var(--lime); padding-inline: 18px; }
  .hero-layout { grid-template-columns: 1fr; gap: 38px; padding-block: 39px 43px; }
  .hero h1 { font-size: clamp(58px, 11.7vw, 81px); line-height: 1.03; margin-left: -3px; letter-spacing: -.06em; }
  .hero-eyebrow { font-size: 8px; margin-bottom: 26px; gap: 11px; }
  .hero-tagline { font-size: clamp(18px, 3.3vw, 22px); max-width: 450px; margin-top: 23px; line-height: 1.55; }
  .hero-role p { font-size: 15px; }
  .hero-role div > span { font-size: 10px; }
  .hero-description { font-size: 13px; max-width: 490px; line-height: 1.95; margin-top: 21px; }
  .hero .button { padding: 14px 20px; font-size: 11px; gap: 18px; min-height: 51px; }
  .hero-location { font-size: 9px; margin-top: 22px; }
  .hero-portrait { width: calc(100% - 19px); max-width: 440px; margin: 3px 9px 0 auto; }
  .portrait-frame { aspect-ratio: .86; border-top-right-radius: 60px; }
  .portrait-frame > img { object-position: center 17%; }
  .portrait-topline { font-size: 7px; }
  .portrait-frame figcaption { padding: 31px 18px 18px; font-size: 7px; }
  .portrait-frame figcaption small { font-size: 8px; }
  .portrait-signal { left: -19px; bottom: 77px; font-size: 7px; padding: 13px 14px; }
  .portrait-label { top: 94px; right: -21px; font-size: 6px; }
  .portrait-orbit { inset: 65px -15px 35px -28px; }
  .portrait-grid { width: 105px; height: 105px; right: -10px; bottom: -20px; }
  .hero-foot { padding-block: 23px; gap: 18px; }
  .hero-foot-label { display: none; }
  .hero-domains { flex-wrap: wrap; gap: 9px 12px; font-size: 7px; max-width: 390px; }
  .hero-domains > i { font-size: 15px; }
  .scroll-link { margin-left: auto; }
  .scroll-link > span { width: 35px; height: 35px; }
  .section { padding-block: 68px; }
  .section-label { font-size: 9px; margin-bottom: 33px; }
  .label-note { display: none; }
  h2 { font-size: clamp(33px, 6.8vw, 45px); }
  .about-heading { align-items: flex-start; gap: 10px; margin-bottom: 34px; }
  .about-heading h2 br { display: none; }
  .about-asterisk { font-size: 47px; padding-top: 4px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-aside { max-width: 390px; width: 100%; margin-inline: auto; }
  .about-photo { padding-left: 11px; }
  .about-photo > img { aspect-ratio: 4/4; }
  .about-photo-caption { font-size: 7px; padding-top: 14px; }
  .about-fieldnote { margin-top: 23px; padding-top: 20px; margin-left: 12px; }
  .about-fieldnote p { font-size: 16px; }
  .about-fieldnote .eyebrow { font-size: 8px; }
  .about-fieldnote > .icon { width: 25px; height: 25px; right: 2px; }
  .about-copy > p { font-size: 14px; }
  .about-copy > p.lead { font-size: 17px; }
  .about-note { margin-block: 27px 19px; padding: 15px 0 15px 16px; }
  .about-note p { font-size: 13px; }
  .experience-grid { grid-template-columns: 1fr; gap: 35px; }
  .experience-intro { position: static; }
  .experience-intro h2 { font-size: clamp(35px, 7.2vw, 45px); }
  .experience-intro > p { font-size: 13px; max-width: 405px; margin-top: 22px; }
  .journey-note { display: none; }
  .experience-intro .text-link { margin-top: 20px; font-size: 11px; }
  .timeline { padding-left: 31px; }
  .timeline::before { left: 9px; }
  .timeline-item { padding: 0 0 30px 4px; margin-bottom: 31px; }
  .timeline-marker { width: 22px; height: 22px; left: -32px; top: -2px; font-size: 8px; }
  .timeline-item.current { padding: 23px 20px; border-radius: 3px 18px 3px 3px; margin-bottom: 36px; }
  .current .timeline-marker { top: 25px; }
  .timeline-top { gap: 11px; }
  .timeline-date { font-size: 9px; }
  .timeline-item h3, .current h3 { font-size: 23px; margin-top: 13px; }
  .timeline-company { font-size: 12px; }
  .timeline-description { font-size: 12px; margin-top: 12px; }
  .job-responsibilities { grid-template-columns: 1fr; gap: 13px; padding-top: 19px; margin-top: 20px; }
  .job-responsibilities > li { font-size: 13px; line-height: 1.85; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 29px; }
  .section-heading > p { max-width: 410px; font-size: 13px; }
  .project-toolbar { display: block; margin-bottom: 25px; }
  .mine-diagram { gap: 7px; }
  .mine-diagram > span { font-size: 8px; padding: 7px 8px; }
  .mine-diagram i { width: 15px; }
  .project-details > summary { font-size: 12px; }
  .project-details p { font-size: 13px; }
  .tech-tags li { font-size: 9px; }
  .project-footnote { font-size: 10px; }
  .skills-section .section-heading { margin-bottom: 34px; }
  .skills-section .section-heading > p { margin-top: 0; }
  .skill-groups { grid-template-columns: 1fr; }
  .skill-group { padding-block: 24px 27px; }
  .skill-title { gap: 15px; margin-bottom: 20px; }
  .skill-title h3 { font-size: 19px; }
  .skill-group li { padding: 8px 11px; font-size: 11px; }
  .skill-levels dt { font-size: 9px; }
  .learning-line { font-size: 13px; line-height: 1.9; margin-top: 10px; padding-top: 24px; }
  .learning-line strong { display: block; }
  .education-grid { grid-template-columns: 1fr; gap: 45px; }
  .education-intro { position: static; }
  .education-intro h2 { font-size: clamp(34px, 7vw, 43px); }
  .education-card { margin-top: 30px; padding: 27px; }
  .education-card h3 { font-size: 25px; }
  .education-card .eyebrow { font-size: 9px; }
  .certificate-item { gap: 14px; padding-block: 24px; }
  .certificate-item h4 { font-size: 14px; }
  .certificate-item p { font-size: 12px; }
  .certificate-item .training-date { font-size: 10px; }
  .certificate-thumbnail img { height: 200px; }
  .certificate-lightbox { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 16px; }
  .lightbox-stage { height: 44dvh; }
  .lightbox-caption h2 { font-size: 16px; }
  .lightbox-caption p { font-size: 11px; }
  .lightbox-controls { gap: 9px; display: grid; grid-template-columns: 1fr 1fr; }
  .lightbox-controls button, .lightbox-controls a { font-size: 10px; padding-inline: 10px; }
  [data-certificate-next] { grid-column: 2; grid-row: 1; }
  .lightbox-hint { font-size: 8px; }
  .contact-inner { grid-template-columns: 1fr; gap: 38px; padding-block: 68px 51px; }
  .contact-copy h2 { font-size: clamp(38px, 8vw, 51px); }
  .contact-copy .eyebrow { font-size: 9px; margin-bottom: 28px; }
  .contact-copy > p:not(.eyebrow) { font-size: 13px; }
  .contact-actions { gap: 10px; }
  .contact-actions .button { gap: 13px; padding-inline: 19px; font-size: 11px; }
  .contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 17px; padding: 28px 0 0; border-left: 0; border-top: 1px solid #4a5c36; }
  .contact-details > div:not(.contact-signature) { margin: 0; }
  .contact-details a, .contact-details p { font-size: 11px; }
  .contact-details > div > span { font-size: 8px; margin-bottom: 6px; }
  .contact-signature { margin: 0; font-size: 8px; align-self: center; }
  .contact-signature .icon { width: 26px; height: 26px; }
  .footer-inner { flex-wrap: wrap; padding-block: 25px; gap: 21px; }
  .site-footer .brand { font-size: 29px; }
  .site-footer p { order: 3; width: 100%; padding-top: 19px; border-top: 1px solid #32412c; text-align: center; font-size: 8px; }
  .back-top { font-size: 9px; gap: 15px; margin-left: auto; }
  .footer-divider { margin-inline: 8px; }
}

@media (max-width: 370px) {
  :root { --gutter: 20px; }
  .brand-caption { font-size: 6px; margin-left: 11px; padding-left: 11px; }
  .hero h1 { font-size: 53px; }
  .hero-eyebrow { font-size: 7px; }
  .hero-role p { font-size: 14px; }
  .hero-role div > span { font-size: 9px; }
  .hero .button { padding-inline: 14px; gap: 14px; font-size: 10px; }
  .portrait-signal { padding: 11px; font-size: 6px; }
  .portrait-signal .icon { width: 20px; height: 20px; }
  .hero-domains { font-size: 6px; gap: 7px; }
  .about-asterisk { display: none; }
  .timeline { padding-left: 26px; }
  .timeline-marker { left: -27px; }
  .timeline-item.current { padding-inline: 17px; }
  .timeline-item h3, .current h3 { font-size: 21px; }
  .mine-diagram { gap: 5px; }
  .mine-diagram > span { font-size: 7px; padding-inline: 6px; }
  .mine-diagram i { width: 12px; }
  .skill-title h3 { font-size: 17px; }
  .skill-levels dt { font-size: 8px; }
  .contact-actions .button { font-size: 10px; padding-inline: 14px; gap: 10px; }
  .contact-details { grid-template-columns: 1fr; gap: 22px; }
  .contact-details a, .contact-details p { font-size: 14px; }
  .contact-signature { margin-top: 5px; }
  .site-footer p { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; translate: none; filter: none; }
  .reading-progress { display: none; }
  .hero-network .network-signal { stroke-dashoffset: 0; }
}

@media print {
  :root { color-scheme: light; }
  body, .hero, .section, .contact-section, .site-footer { color: #111; background: white; }
  .container { width: 100%; }
  .section, .contact-inner, .hero-layout { padding-block: 25px; }
  .section-label { margin-bottom: 20px; }
  h2, .experience-intro h2, .education-intro h2 { font-size: 27px; }
  .hero h1 { font-size: 44px; }
  .hero-portrait { max-width: 220px; }
  .about-photo { max-width: 190px; }
  .reveal-pending { opacity: 1; translate: none; }
  .experience-intro, .education-intro { position: static; }
  .experience-grid { grid-template-columns: 1fr; gap: 25px; }
  .timeline-item, .certificate-item { break-inside: avoid; }
  .contact-inner { gap: 35px; }
}

/* Editorial live work and real certificate scans. */
:root { --cyan: #91d9e8; }
.editorial-project-list { display: grid; gap: clamp(48px, 8vw, 112px); }
.editorial-project { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); align-items: center; gap: clamp(30px, 6vw, 86px); min-width: 0; --stagger: 0ms; }
.editorial-project:nth-child(2n) { --stagger: 120ms; }
.editorial-project:nth-child(3n) { --stagger: 220ms; }
.editorial-project.is-reversed { grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); }
.editorial-project.is-reversed .editorial-project-preview { order: 2; }
.editorial-project.is-reversed .editorial-project-copy { order: 1; }
.editorial-project-preview { min-width: 0; }
.project-preview { transition: transform .7s var(--ease), border-color .7s var(--ease), box-shadow .7s var(--ease); display: block; position: relative; width: 100%; padding: 28px 0 0; overflow: hidden; aspect-ratio: 1.79; border: 1px solid #405057; border-radius: 3px; background: #080c0f; color: var(--text); cursor: zoom-in; text-align: left; box-shadow: 0 24px 70px #0005; transition: transform .7s var(--ease), border-color .7s var(--ease), box-shadow .7s var(--ease); }
.project-preview > img { position: absolute; inset: 28px 0 0; width: 100%; height: calc(100% - 28px); object-fit: cover; object-position: top; transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0); transition: transform 1s var(--ease), filter .8s var(--ease); will-change: transform; }
.project-preview:hover > img { transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.025) rotate(var(--parallax-rotate, 0deg)); }
.project-preview:hover { transform: translateY(-6px); border-color: #91d9e8a8; box-shadow: 0 32px 90px #0008, 0 0 0 1px #91d9e81c; }
.browser-bar { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 6px; height: 28px; padding-inline: 11px; background: #11171a; border-bottom: 1px solid #ffffff14; color: #aab8bb; font: 8px var(--mono); }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #53605e; }
.browser-bar i:first-child { background: #b97970; }.browser-bar i:nth-child(2) { background: #c8ac6d; }.browser-bar i:nth-child(3) { background: #76a47b; }
.browser-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 9px; }
.preview-cta { position: absolute; right: 13px; bottom: 13px; padding: 8px 11px; color: white; background: #0a1012d9; border: 1px solid #ffffff35; font: 8px var(--mono); letter-spacing: .05em; opacity: 0; transform: translateY(5px); transition: .25s; }
.project-preview:hover .preview-cta, .project-preview:focus-visible .preview-cta { opacity: 1; transform: none; }
.project-preview-empty { display: grid; align-content: center; justify-items: center; gap: 12px; color: var(--quiet); cursor: default; }
.project-preview-empty > span { font: 9px var(--mono); color: var(--cyan); letter-spacing: .1em; }
.project-preview-empty > strong { font-size: 17px; font-weight: 500; }
.editorial-project-copy { min-width: 0; padding-block: 13px; }
.editorial-project-number { color: var(--cyan); font: 11px var(--mono); letter-spacing: .08em; }
.editorial-project-number span { color: var(--quiet); font-size: 8px; }
.project-category { margin-top: 26px; color: #b4c7c9; font: 9px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.editorial-project-copy h3 { margin-top: 10px; font-size: clamp(27px, 3.1vw, 44px); line-height: 1.18; font-weight: 580; letter-spacing: -.045em; text-wrap: balance; }
.editorial-project-description { margin-top: 17px; max-width: 510px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.project-status-line { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #bdc9c7; font: 9px var(--mono); letter-spacing: .04em; }
.project-status-line .signal-dot { background: #85c7ab; box-shadow: 0 0 0 4px #85c7ab12; }
.editorial-project .tech-tags { margin-top: 17px; }
.editorial-project .tech-tags li { transition: transform .2s, border-color .2s, color .2s; }
.editorial-project .tech-tags li:hover { transform: translateY(-2px); border-color: #91d9e866; color: var(--cyan); }
.editorial-project .project-details { margin-top: 15px; border: 0; }
.editorial-project .project-details summary { width: fit-content; color: #c3cfca; font-size: 11px; }
.editorial-project .project-details summary span { padding-left: 12px; color: var(--cyan); }
.editorial-project .project-details > p { margin-top: 12px; max-width: 500px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.project-open, .project-private { display: inline-flex; transform: translate(var(--magnet-x, 0px), var(--magnet-y, 0px)); transition: transform .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); align-items: center; gap: 20px; margin-top: 24px; padding-block: 12px; border-bottom: 1px solid #78969a; color: #e4f5f5; font: 9px var(--mono); letter-spacing: .07em; transition: color .2s, border-color .2s; }
.project-open:hover { color: var(--cyan); border-color: var(--cyan); }
.project-open span { font-size: 15px; transition: transform .2s; }.project-open:hover span { transform: translate(3px,-3px); }
.project-private { color: #aab1a8; border-color: #59634f; cursor: default; }
.project-lightbox { width: min(1200px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 36px); padding: clamp(16px, 3vw, 34px); border: 1px solid #71868a70; background: #0b1012f5; color: var(--text); }
.project-lightbox::backdrop { background: #050809dd; backdrop-filter: blur(12px); }
.project-lightbox-bar, .project-lightbox-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.project-lightbox-bar button { padding: 8px 12px; background: transparent; border: 1px solid #526164; color: var(--text); }
.project-lightbox-stage { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 17px; }
.project-lightbox-stage img { max-width: 100%; max-height: min(70dvh, 760px); width: 100%; object-fit: contain; }
.project-lightbox-stage button { width: 40px; height: 42px; background: #151e20; border: 1px solid #465658; color: var(--text); }
.project-lightbox-caption { margin-top: 15px; }.project-lightbox-caption h2 { font-size: 18px; }.project-lightbox-caption p { font: 10px var(--mono); color: var(--quiet); }
.education-section { background: linear-gradient(180deg,#111719,#0d1112); }
.certificate-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.training-heading { grid-column: 1/-1; margin-bottom: 4px; color: var(--text); font-size: 16px; }
.certificate-item { grid-template-columns: 1fr; gap: 13px; padding: 13px; border: 1px solid #364448; background: #111719; min-width: 0; transition: transform .65s var(--ease), border-color .65s var(--ease), background .65s var(--ease), box-shadow .65s var(--ease); }
.certificate-item:hover { transform: translateY(-4px); border-color: #82bfcaad; background: #151e20; box-shadow: 0 18px 45px #0005; }
.certificate-item > .icon { display: none; }
.certificate-preview { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.38; overflow: hidden; border: 1px solid #435156; background: linear-gradient(145deg,#172124,#0c1113); }
.certificate-preview img { width: 100%; height: 100%; object-fit: contain; background: #f4f1e9; transition: transform .5s var(--ease); }
.certificate-item:hover .certificate-preview img { transform: scale(1.035); }
.certificate-thumbnail { position: relative; display: block; height: auto; padding: 0; overflow: hidden; border: 0; background: #101719; }
.certificate-thumbnail img { width: 100%; height: auto; aspect-ratio: 1.38; object-fit: contain; transition: transform .7s var(--ease), filter .7s var(--ease); }
.certificate-thumbnail:hover img { transform: scale(1.03) rotateX(.35deg) rotateY(-.35deg); filter: brightness(.88); }
.certificate-thumbnail > span { position: absolute; inset: auto 0 0; padding: 30px 13px 10px; background: linear-gradient(transparent,#071012e8); color: #eff8f7; text-align: left; font: 8px var(--mono); letter-spacing: .08em; opacity: 0; transition: opacity .25s; }
.certificate-thumbnail:hover > span, .certificate-thumbnail:focus-visible > span { opacity: 1; }
.certificate-preview-empty { align-content: center; gap: 9px; color: #aab8b9; }
.certificate-preview-empty span { color: var(--cyan); font: 8px var(--mono); letter-spacing: .1em; }
.certificate-preview-empty small { font-size: 10px; }
.certificate-item > div > h4 { margin-top: 2px; font-size: 13px; }
.certificate-item > div > p { font-size: 10px; }
.certificate-item .training-type { display: none; }
.certificate-original { display: inline-block; margin-top: 8px; color: var(--cyan); font: 8px var(--mono); }
.certificate-original:hover { text-decoration: underline; }
.certificate-lightbox { width: min(980px, calc(100% - 28px)); }
.lightbox-error { color: var(--muted); }
.job-draft-note { margin-top: 13px; color: #b7b19f; font-size: 10px; line-height: 1.7; }
.reveal-pending { translate: 0 35px; filter: blur(4px); }
.editorial-project.reveal-pending { opacity: 0; }
.editorial-project.reveal-pending .project-preview { scale: .97; }
.editorial-project.reveal-pending .editorial-project-number { translate: -12px 0; opacity: .25; }
.editorial-project .project-preview { transition-delay: var(--stagger, 0ms); }
.editorial-project .editorial-project-number { transition: opacity .85s var(--ease), translate .85s var(--ease); }
.editorial-project { --stagger: 0ms; }
.editorial-project:nth-child(2n) { --stagger: 120ms; }
.editorial-project:nth-child(3n) { --stagger: 220ms; }
.editorial-project.reveal-pending .project-preview { scale: .97; }
.editorial-project.reveal-pending .editorial-project-number { translate: -12px 0; opacity: .25; }
.editorial-project .project-preview { transition-delay: var(--stagger); }
.editorial-project .editorial-project-number { transition: opacity .85s var(--ease), translate .85s var(--ease); }
@media (max-width: 850px) {
  .editorial-project, .editorial-project.is-reversed { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .editorial-project.is-reversed .editorial-project-preview, .editorial-project.is-reversed .editorial-project-copy { order: initial; }
  .editorial-project-copy { padding-block: 0; }
  .project-category { margin-top: 13px; }
  .certificate-gallery { gap: 13px; }
}
@media (max-width: 520px) {
  .editorial-project-list { gap: 54px; }
  .project-preview { aspect-ratio: 1.38; }
  .editorial-project-copy h3 { font-size: clamp(26px,8vw,34px); }
  .editorial-project-description { font-size: 12px; }
  .certificate-gallery { grid-template-columns: minmax(0,1fr); }
  .certificate-item { padding: 11px; }
  .certificate-preview, .certificate-thumbnail img { aspect-ratio: 1.5; }
  .project-lightbox-stage { grid-template-columns: 32px minmax(0,1fr) 32px; gap: 5px; }
  .project-lightbox-stage button { width: 31px; height: 36px; }
  .project-lightbox-caption h2 { font-size: 14px; }
  .project-lightbox-caption p { font-size: 8px; }
}
@media (min-width: 701px) and (max-width: 1150px) {
  .certificate-gallery { grid-template-columns: minmax(0,1fr); }
}
@keyframes timeline-grow { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; } }
.timeline::before { animation: timeline-grow 1.4s .25s var(--ease) both; }
.project-open > span, .back-top .icon { transition: transform .4s var(--ease); }
.project-open:hover > span, .back-top:hover .icon { transform: translate(3px, -3px); }

@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor summary { cursor: none; }
  .custom-cursor { position: fixed; inset: 0 auto auto 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .2s ease; mix-blend-mode: screen; }
  .custom-cursor.is-visible { opacity: 1; }
  .custom-cursor-dot, .custom-cursor-ring { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; }
  .custom-cursor-dot { width: 5px; height: 5px; background: var(--lime); box-shadow: 0 0 12px #c9f85a80; }
  .custom-cursor-ring { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d9f1b9a8; background: #c9f85a0b; color: var(--text); font: 7px var(--mono); letter-spacing: .08em; transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease); }
  .custom-cursor[data-state="action"] .custom-cursor-ring { width: 48px; height: 48px; background: #c9f85a20; border-color: var(--lime); }
  .custom-cursor[data-state="project"] .custom-cursor-ring, .custom-cursor[data-state="certificate"] .custom-cursor-ring { width: 72px; height: 72px; background: #0c0f10b5; border-color: #c9f85a99; }
  .custom-cursor[data-state="project"] .custom-cursor-ring::after { content: "VIEW"; }
  .custom-cursor[data-state="certificate"] .custom-cursor-ring::after { content: "OPEN"; }
  .custom-cursor[data-state="external"] .custom-cursor-ring::after { content: "↗"; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero::after, .hero-portrait { transform: none; }
  .project-preview > img, .certificate-thumbnail img { transition: none; }
  .reveal-pending, .editorial-project.reveal-pending { opacity: 1; translate: none; filter: none; }
  .custom-cursor { display: none !important; }
}

@keyframes timeline-grow { from { transform: scaleY(0); transform-origin: top; } to { transform: scaleY(1); transform-origin: top; } }
.timeline::before { animation: timeline-grow 1.4s .25s var(--ease) both; }
@media (pointer: fine) and (hover: hover) and (prefers-reduced-motion: no-preference) {
 body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button, body.has-custom-cursor summary { cursor: none; }
 .custom-cursor { position: fixed; inset: 0 auto auto 0; z-index: 120; pointer-events: none; opacity: 0; transition: opacity .2s ease; mix-blend-mode: screen; }
 .custom-cursor.is-visible { opacity: 1; }
 .custom-cursor-dot, .custom-cursor-ring { position: absolute; left: 0; top: 0; translate: -50% -50%; border-radius: 50%; }
 .custom-cursor-dot { width: 5px; height: 5px; background: var(--lime); box-shadow: 0 0 12px #c9f85a80; }
 .custom-cursor-ring { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d9f1b9a8; background: #c9f85a0b; color: var(--text); font: 7px var(--mono); letter-spacing: .08em; transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease); }
 .custom-cursor[data-state="action"] .custom-cursor-ring { width: 48px; height: 48px; background: #c9f85a20; border-color: var(--lime); }
 .custom-cursor[data-state="project"] .custom-cursor-ring, .custom-cursor[data-state="certificate"] .custom-cursor-ring { width: 72px; height: 72px; background: #0c0f10b5; border-color: #c9f85a99; }
 .custom-cursor[data-state="project"] .custom-cursor-ring::after { content: "VIEW"; }
 .custom-cursor[data-state="certificate"] .custom-cursor-ring::after { content: "OPEN"; }
 .custom-cursor[data-state="external"] .custom-cursor-ring::after { content: "?"; font-size: 12px; }
}

/* Transition-aware timeline and CTA details. */
.timeline-item { transition: opacity .8s var(--ease), translate .9s var(--ease); }
.timeline-item:not(.is-in-view) .timeline-marker { transition: transform .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease); }
.timeline-item.is-in-view .timeline-marker { transform: scale(1.045); }
.project-open > span, .back-top .icon { transition: transform .4s var(--ease); }
.project-open:hover > span, .back-top:hover .icon { transform: translate(3px, -3px); }
