@font-face {
  font-family: 'DM Serif Display';
  src: url('assets/fonts/dm-serif-display.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/cormorant-garamond-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #202321;
  --surface: #292d2a;
  --text: #f0f2ec;
  --muted: #b0b7ad;
  --gold: #c9b27e;
  --gold-bright: #e2cd97;
  --gold-dim: rgba(201, 178, 126, .16);
  --line: #3a403a;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-name: 'DM Serif Display', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { min-width: 960px; }
body { margin: 0; background: var(--background); color: var(--text); font: 400 16px/1.75 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-bright); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--gold); color: #15130c; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 8px 16px; background: var(--text); color: var(--background); z-index: 30; }
.skip-link:focus { top: 10px; }

/* Header */
.header-inner, .hero-copy, .home-intro, .home-section, .site-footer { max-width: 1280px; width: calc(100% - 96px); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(32, 35, 33, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.site-name { font-family: var(--font-name); font-size: 28px; font-weight: 400; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.site-header nav > a { position: relative; padding: 28px 0; color: var(--muted); }
.site-header nav > a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--gold); }
.site-header nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 1px; background: var(--gold); }

/* Shared page scaffold */
.page { max-width: 1180px; width: calc(100% - 128px); margin: 64px auto 100px; min-height: calc(100vh - 295px); }
.page-heading { margin-bottom: 48px; }
.page-heading h1 { font-family: var(--font-display); font-size: 48px; font-weight: 600; }
.page-heading > p { color: var(--muted); margin-top: 14px; max-width: 700px; font-size: 17px; }
.meta { color: var(--muted); font-size: 14px; line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--gold); }
.text-link:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: #15130c; font-weight: 600; font-size: 15px; line-height: 1; padding: 17px 30px; border-radius: 999px; transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.btn:hover { background: var(--gold-bright); color: #15130c; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(201, 178, 126, .22); }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--text); border: 1px solid #3a3d35; font-weight: 500; font-size: 15px; line-height: 1; padding: 16px 28px; border-radius: 999px; transition: border-color .25s ease, color .25s ease; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* Home hero */
.home-page { max-width: none; width: 100%; margin: 0; min-height: 0; }
.hero { position: relative; height: min(680px, calc(100svh - 240px)); min-height: 420px; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero::after { content: ''; position: absolute; inset: 35% 0 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .72), transparent); pointer-events: none; }
.hero-copy { position: absolute; bottom: 38px; left: 0; right: 0; }
.hero-copy h1 { font-family: var(--font-name); font-weight: 400; font-size: 104px; line-height: 1.04; color: #fff; }
.hero-sub { font-size: 16px; font-weight: 500; color: var(--gold-bright); margin-bottom: 12px; }
.home-intro { padding: 34px 0; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 56px; }
.hero-lede { flex: 1; font-size: 18px; line-height: 1.75; color: #d6dcd2; max-width: 900px; margin: 0; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex-shrink: 0; }

/* Home sections */
.home-section { padding: 100px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 44px; }
.section-head h2 { font-family: var(--font-display); font-size: 36px; font-weight: 600; }

/* Project panels */
.panel-stack { display: grid; gap: 44px; }
.panel { position: relative; display: block; height: 600px; border-radius: 8px; overflow: hidden; border: 1px solid var(--gold-dim); background: #252926; }
.panel:focus-visible { outline-offset: 7px; }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: blur(38px) brightness(.42); transform: scale(1.3); }
.panel-img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: min(920px, calc(100% - 96px)); max-height: calc(100% - 96px); object-fit: contain; transition: transform .7s cubic-bezier(.2, .6, .2, 1); }
.panel-photo .panel-img { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: cover; object-position: 50% 32%; }
.panel:hover .panel-img { transform: scale(1.025); }
.panel-badge { position: absolute; z-index: 2; top: 28px; left: 32px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; color: #15130c; background: var(--gold); padding: 9px 17px; border-radius: 999px; }
.panel-content { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: block; padding: 130px 48px 44px; background: linear-gradient(180deg, rgba(32, 35, 33, 0) 0%, rgba(32, 35, 33, .9) 46%, rgba(32, 35, 33, .98) 100%); }
.panel-meta { display: block; font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 12px; }
.panel-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.15; color: #f4f5f0; margin-bottom: 10px; }
.panel-desc { display: block; color: #b9bdb2; font-size: 16px; line-height: 1.6; max-width: 620px; margin-bottom: 20px; }
.panel-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright); font-weight: 600; font-size: 15px; }
.panel:hover .panel-cta { text-decoration: underline; text-underline-offset: 4px; }
.panel-islecho { background: #111a19; }
.panel-islecho .panel-img { width: 100%; height: 78%; max-width: none; max-height: none; top: 0; bottom: auto; object-fit: cover; object-position: center top; }
.panel-islecho .panel-content { padding-top: 70px; background: linear-gradient(180deg, transparent, rgba(17, 26, 25, .95) 35%, #111a19 100%); }
.detail-next .panel-identity .panel-img { width: 400px; height: 400px; top: -84px; }

/* Home beyond strip + closing */
.home-beyond { display: grid; grid-template-columns: 1fr; gap: 44px; }
.beyond-card { position: relative; display: block; height: 460px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.beyond-card img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(.55); transition: transform .7s cubic-bezier(.2, .6, .2, 1); }
.beyond-music img { object-position: 50% 12%; }
.beyond-about img { object-position: 50% 20%; }
.beyond-card:hover img { transform: scale(1.04); }
.beyond-content { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: block; padding: 90px 38px 32px; background: linear-gradient(180deg, rgba(8, 9, 8, 0), rgba(8, 9, 8, .92) 55%); }
.beyond-meta { display: block; font-size: 12.5px; font-weight: 500; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 10px; }
.beyond-title { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: #f4f5f0; margin-bottom: 8px; }
.beyond-desc { display: block; color: #b9bdb2; font-size: 15px; line-height: 1.6; }
.home-cta { text-align: center; padding: 130px 32px 140px; }
.home-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; margin-bottom: 36px; }
.home-compositions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.home-compositions article { min-width: 0; }
.home-compositions h3 { font-size: 20px; margin-bottom: 4px; }
.home-compositions .video-play { width: 60px; height: 60px; }
.home-compositions .video-play .icon { width: 25px; height: 25px; }

/* Inline players keep the original cover until the visitor starts playback. */
.media-block { min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 8px; overflow: hidden; border: 1px solid var(--gold-dim); background: #000; }
.video-trigger { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-trigger[hidden], .video-reset[hidden], .video-status[hidden] { display: none; }
.video-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.video-poster { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 44px rgba(0, 0, 0, .5); transition: transform .25s ease, background .25s ease; }
.video-play .icon { width: 34px; height: 34px; margin-left: 4px; }
.video-trigger:hover .video-play { transform: translate(-50%, -50%) scale(1.06); background: var(--gold-bright); }
.video-footer { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-height: 40px; }
.video-footer .text-link { color: var(--muted); font-size: 13px; }
.video-status { margin-right: auto; color: var(--muted); font-size: 13px; }
.video-reset { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.video-reset:hover { background: var(--surface); }
.video-reset:focus-visible { outline: 2px solid var(--gold); }

/* Projects page */
.experience-section { margin-top: 80px; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.experience-section h2 { font-size: 26px; margin-bottom: 14px; }
.experience-section p { color: var(--muted); }

/* Project detail pages */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.back-link:hover { color: var(--gold-bright); }
.detail-head { max-width: 860px; margin-bottom: 48px; }
.detail-meta { font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.detail-head h1 { font-family: var(--font-display); font-size: 54px; font-weight: 600; line-height: 1.1; }
.detail-sub { font-size: 20px; color: #c4c8bd; margin-top: 14px; }
.project-intro { max-width: 760px; margin: 26px 0 0; font-size: 17px; color: #c4c8bd; }
.project-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 30px 0 0; }
.reading-content + .project-actions { margin: 34px 0 0; }
.screenshot { margin: 0 0 52px; }
.screenshot .panel { height: 560px; }
.panel-static { cursor: default; }
.panel-static:hover .panel-img { transform: none; }
figcaption { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 850px; }
.reading-content { max-width: 760px; }
.reading-content section { margin-bottom: 36px; }
.reading-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.reading-content p { color: #c4c8bd; }
.source-note { color: var(--muted); font-size: 14px; max-width: 850px; margin: 28px 0; }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }
.detail-gallery { margin: 8px 0 52px; }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.shot-grid figure { margin: 0; }
.shot-frame { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shot-frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.phone-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.phone-grid figure { margin: 0; }
.phone-grid img { width: 100%; border: 1px solid var(--line); border-radius: 18px; }
.phone-grid figcaption { text-align: center; }
.cert-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 22px; }
.cert-card { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; background: var(--surface); transition: border-color .25s ease; }
.cert-card:hover { border-color: var(--gold-dim); }
.cert-card > img { width: 62px; height: auto; border-radius: 6px; flex-shrink: 0; }
.cert-text { flex: 1; min-width: 0; }
.cert-title { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cert-meta { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cert-card .icon { width: 16px; height: 16px; flex-shrink: 0; }
.detail-next { margin-top: 72px; }
.detail-next .panel { height: 440px; }
.detail-nav-row { display: flex; justify-content: space-between; margin-top: 30px; }

/* Real Islecho captures retain their original landscape proportions. */
.islecho-visual { margin-bottom: 60px; scroll-margin-top: 104px; }
.islecho-visual video { display: block; width: 100%; aspect-ratio: 1280 / 592; background: #111a19; object-fit: contain; border-radius: 8px; }
.islecho-visual video:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.islecho-visual figcaption { display: flex; justify-content: space-between; gap: 24px; max-width: none; }
.islecho-visual figcaption span:last-child { text-align: right; }
.islecho-world { margin: 8px 0 52px; }
.islecho-world .photograph-link { aspect-ratio: 2556 / 1179; }
.islecho-world .photograph-link img { object-fit: contain; }
.islecho-interactions { padding: 30px 0 52px; border-top: 1px solid var(--line); }
.islecho-interactions > h2, .islecho-engineering h2 { font-family: var(--font-display); font-size: 34px; margin-bottom: 24px; }
.islecho-interaction-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.islecho-interaction-list article { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.islecho-step { color: var(--gold); font-size: 12px; font-variant-numeric: tabular-nums; }
.islecho-interaction-list h3 { font-size: 18px; margin-bottom: 12px; }
.islecho-interaction-list p { color: #c4c8bd; font-size: 15px; }
.islecho-engineering { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.3fr); gap: 44px; align-items: start; padding: 44px 0; border-block: 1px solid var(--line); }
.islecho-engineering-copy p:not(.build-eyebrow) { color: #c4c8bd; font-size: 15px; }
.code-editor.islecho-code pre { height: auto; min-height: 300px; }
.islecho-notes { margin-top: 52px; }
.islecho-roadmap { scroll-margin-top: 112px; }
.islecho-roadmap h3 { font-size: 17px; font-weight: 500; margin: 24px 0 8px; }

/* Code is highlighted at build time; all examples remain readable without JavaScript. */
.build-showcase { margin: 72px 0; padding: 38px 0 30px; border-block: 1px solid var(--line); scroll-margin-top: 108px; }
.build-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.build-eyebrow { color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.build-heading h2 { font-family: var(--font-display); font-size: 38px; }
.build-heading > p { color: var(--muted); font-size: 15px; margin: 0 0 5px; }
.build-tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.build-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 0; font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; color: var(--muted); }
.build-tabs a:hover { color: var(--text); }
.build-tabs a[aria-selected="true"] { color: var(--gold-bright); border-bottom-color: var(--gold); }
.build-tab-number { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.build-example { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 64px; margin-bottom: 36px; scroll-margin-top: 108px; }
.build-example[hidden] { display: none; }
.build-screen { width: 270px; }
.build-screen > a { position: relative; display: block; width: 270px; aspect-ratio: 1280 / 2774; border-radius: 8px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .16); }
.build-screen > a > img { width: 100%; height: 100%; object-fit: contain; }
.build-screen .photo-zoom { background: #202321; }
.build-screen figcaption { font-size: 12px; line-height: 1.6; margin-top: 14px; }
.build-implementation { min-width: 0; display: flex; flex-direction: column; }
.build-description { min-height: 128px; margin-bottom: 22px; }
.build-description h3 { font-size: 24px; line-height: 1.35; margin: 0 0 14px; font-weight: 500; }
.build-description p { color: #c4c8bd; font-size: 15px; line-height: 1.75; max-width: 650px; }
.code-editor { background: #191f22; border: 1px solid #3d4848; border-radius: 8px; overflow: hidden; }
.code-editor figcaption { display: flex; align-items: center; justify-content: space-between; max-width: none; margin: 0; padding: 15px 20px; border-bottom: 1px solid #344042; background: #242c2e; color: #dbe2dc; font-size: 13px; }
.code-editor figcaption > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.code-editor figcaption > span:last-child { color: #a6b6b7; font-size: 12px; }
.code-editor pre { margin: 0; height: 424px; padding: 21px 0; overflow: auto; tab-size: 2; }
.code-editor pre:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.code-editor code { display: block; color: #dbe2dc; font: 400 13.5px/1.65 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; white-space: normal; }
.code-line { display: flex; width: 100%; padding-right: 20px; border-left: 2px solid transparent; }
.code-line.is-emphasized { background: rgba(162, 199, 175, .055); border-left-color: #8fae9d; }
.code-number { width: 46px; padding-right: 14px; flex-shrink: 0; text-align: right; color: #839590; user-select: none; }
.code-text { padding-left: 8px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.code-editor .token.keyword { color: #c5acdc; }
.code-editor .token.function { color: #e1c78e; }
.code-editor .token.string { color: #a9cbb8; }
.code-editor .token.number, .code-editor .token.boolean { color: #e9b59c; }
.code-editor .token.operator, .code-editor .token.punctuation { color: #a9b7b8; }
.code-editor-footer { display: flex; justify-content: space-between; gap: 20px; padding: 10px 20px; border-top: 1px solid #344042; color: #a6b6b7; font-size: 11px; }
.build-source-note { color: var(--muted); font-size: 12px; margin: 0; max-width: 900px; }
@media (max-width: 1150px) {
  .build-example { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
  .build-screen, .build-screen > a { width: 240px; }
  .build-description { min-height: 150px; }
  .code-editor pre { height: 470px; }
  .build-heading { align-items: flex-start; }
  .build-heading > p { max-width: 260px; padding-top: 24px; }
}

/* Music page */
.accordion-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; margin-bottom: 64px; }
.accordion-lead .photograph-link { aspect-ratio: 1.05; }
.accordion-lead img { object-position: 40% 30%; }
.accordion-section h2 { font-family: var(--font-display); font-size: 32px; margin-bottom: 18px; }
.accordion-section p { color: #c4c8bd; }
.composition-section { scroll-margin-top: 110px; }
.composition-section > h2 { font-family: var(--font-display); font-size: 32px; margin-bottom: 24px; }
.performance-section { margin-bottom: 64px; }
.performance-section > h2 { font-family: var(--font-display); font-size: 32px; margin-bottom: 24px; }
.composition-list { border-top: 1px solid var(--line); }
.composition-list article { display: grid; grid-template-columns: minmax(400px, 1.2fr) minmax(0, 1fr); gap: 36px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: center; }
.composition-list h3 { margin-bottom: 6px; font-size: 19px; }
.composition-desc { margin: 10px 0 0; color: #c4c8bd; }
.composition-list .video-play { width: 60px; height: 60px; }
.composition-list .video-play .icon { width: 25px; height: 25px; }

/* Selected photographs are also direct links when JavaScript is unavailable. */
.music-photo-section { margin-top: 72px; }
.music-photo-section h2 { font-family: var(--font-display); font-size: 32px; margin-bottom: 28px; }
.music-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.photograph { min-width: 0; }
.photograph-link { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); border-radius: 6px; }
.photograph-link > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .3s ease; }
.photograph-link:hover > img { transform: scale(1.025); }
.photo-zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 32px; height: 32px; background: rgba(11, 12, 11, .8); border-radius: 50%; }
.photograph figcaption { font-size: 13px; line-height: 1.5; margin-top: 12px; }
.viewing-photo { overflow: hidden; }
.photo-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 60px 90px 48px; border: 0; background: rgba(8, 9, 8, .98); color: var(--text); }
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer::backdrop { background: #080908; }
.photo-viewer figure { max-width: 100%; }
.photo-full { max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; margin: auto; object-fit: contain; }
.photo-viewer figcaption { text-align: center; max-width: none; margin-top: 16px; }
.photo-viewer button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #171916; cursor: pointer; }
.photo-viewer button:hover { border-color: var(--gold); }
.photo-viewer button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.photo-close { top: 20px; right: 24px; }
.photo-previous { top: calc(50% - 22px); left: 24px; }
.photo-next { top: calc(50% - 22px); right: 24px; }
.photo-count { position: absolute; bottom: 16px; left: 0; width: 100%; text-align: center; font-size: 13px; color: var(--muted); }

/* Experiences stay separate from the software portfolio. */
.experience-jump { display: flex; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--gold); }
.experience-jump a:hover { text-decoration: underline; text-underline-offset: 5px; }
.experience-group { margin-top: 56px; scroll-margin-top: 110px; }
.experience-group > h2 { font-family: var(--font-display); font-size: 30px; margin-bottom: 32px; }
.experience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; }
.experience-record { min-width: 0; }
.experience-meta { color: var(--gold); font-size: 13px; margin: 22px 0 8px; }
.experience-record h3 { font-size: 22px; margin-bottom: 12px; }
.experience-text { color: #c4c8bd; font-size: 15px; line-height: 1.75; }

/* About page */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-intro p { color: #c4c8bd; font-size: 16.5px; }
.about-intro .text-link { margin-top: 10px; }
.about-intro > .photograph .photograph-link { aspect-ratio: 4 / 5; }
.about-intro > .photograph img { object-position: center; }
.about-jump { display: flex; flex-wrap: wrap; gap: 28px; padding: 24px 0; margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--gold); font-size: 14px; }
.about-jump a:hover { text-decoration: underline; text-underline-offset: 5px; }
.personal-chapter { margin-top: 64px; scroll-margin-top: 110px; }
.personal-chapter h2 { font-family: var(--font-display); font-size: 34px; margin-bottom: 12px; }
.personal-chapter > p { max-width: 740px; margin-bottom: 28px; color: #cbd2c6; }
.personal-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.personal-photo-grid.portraits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.personal-photo-grid.portraits .photograph-link { aspect-ratio: 3 / 4; }
.personal-photo-grid.everyday { max-width: 880px; }
.personal-photo-grid.everyday .photograph-link { aspect-ratio: 4 / 5; }
.personal-photo-grid .photograph-link > img { object-position: center; }
#early-experiments .photograph-link > img { object-position: center top; }
.personal-chapter .text-link { margin-top: 24px; }
.about-closing { display: flex; gap: 32px; padding-top: 32px; margin-top: 64px; border-top: 1px solid var(--line); }

/* Contact page */
.contact-page { min-height: calc(100vh - 295px); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 80px; margin-top: 72px; }
.contact-layout h2 { font-size: 20px; margin-bottom: 24px; }
.email-address { font-family: var(--font-display); font-size: 30px; color: var(--gold); overflow-wrap: anywhere; user-select: all; margin-bottom: 12px; }
.platform-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); transition: padding-left .25s ease; }
.platform-link:hover { padding-left: 8px; }
.platform-link:last-child { border-bottom: 1px solid var(--line); }
.platform-link h3 { margin-bottom: 4px; }
.platform-link p { color: var(--muted); font-size: 15px; }
.platform-link .icon { width: 20px; height: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 32px; display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }

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