/* Shared page / project styles. No external font, script or stylesheet requests. */
:root {
  color-scheme: dark;
  --page: #151a1d;
  --surface: #1b2125;
  --nav: #0e1316;
  --ink: #f2f1ed;
  --muted: #bec3c6;
  --amber: #e9b779;
  --line: #343a3e;
  --content: 1120px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 6px; }
img { display: block; max-width: 100%; }
.container { width: min(var(--content), calc(100% - 80px)); margin-inline: auto; }
.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: absolute; z-index: 10; top: 12px; left: 12px; padding: 10px 18px; background: var(--ink); color: var(--nav); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #24282b url('/assets/level-design-header.webp') center top / cover no-repeat; }
.identity { min-height: 328px; display: flex; align-items: center; }
.identity-link { display: inline-flex; align-items: center; gap: 22px; }
.monogram { flex: 0 0 auto; width: 112px; height: 112px; }
.identity-copy { display: grid; gap: 4px; }
.name { color: var(--amber); font-size: clamp(34px, 4.3vw, 58px); letter-spacing: -1.5px; font-weight: 700; line-height: 1.14; }
.role { color: var(--ink); font-size: 19px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; }
.main-nav { background: var(--nav); border-top: 1px solid #ffffff08; border-bottom: 1px solid var(--line); }
.nav-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.main-nav a { min-height: 76px; display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 17px; transition: color 150ms, background 150ms; }
.main-nav a:hover { color: var(--amber); background: #ffffff03; }
.external-arrow { color: var(--amber); font-size: 15px; }
.work-heading { text-align: center; padding: 53px 0 38px; }
.eyebrow { color: var(--amber); font-size: 11px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 2px; }
h1 { font-size: clamp(25px, 2.7vw, 34px); line-height: 1.25; letter-spacing: -.6px; font-weight: 600; }
.projects { display: grid; gap: 40px; padding-bottom: 64px; }
.project { scroll-margin-top: 24px; border: 1px solid var(--line); background: var(--surface); }
.project-media { position: relative; aspect-ratio: 1000 / 468; background: #000; overflow: hidden; }
.project-media > img, .project-media > video, .project-media > iframe, .motion-preview > img { width: 100%; height: 100%; object-fit: contain; border: 0; }
.project-caption { padding: 27px 30px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; min-height: 172px; }
.project-category { color: var(--amber); font-size: 10px; line-height: 1.5; letter-spacing: 1.65px; text-transform: uppercase; font-weight: 700; margin-bottom: 7px; }
h2 { font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -.35px; text-wrap: balance; }
.project-description { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 660px; line-height: 1.65; }
.project-link { align-self: end; display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; color: var(--amber); border-bottom: 1px solid #856747; padding: 9px 0; white-space: nowrap; font-size: 14px; font-weight: 600; }
.project-link:hover { color: #ffdbad; border-color: #ffdbad; }
.motion-preview { position: absolute; inset: 0; pointer-events: none; }
.motion-preview summary { pointer-events: auto; list-style: none; position: absolute; z-index: 2; right: 18px; bottom: 18px; padding: 8px 13px; color: var(--ink); background: #101619ed; border: 1px solid #bec3c670; cursor: pointer; font-size: 12px; line-height: 1.6; }
.motion-preview summary::-webkit-details-marker { display: none; }
.motion-preview summary:hover { border-color: var(--amber); color: var(--amber); }
.motion-preview summary span > span { margin-right: 5px; }
.motion-preview .stop-label { display: none; }
.motion-preview[open] .play-label { display: none; }
.motion-preview[open] .stop-label { display: inline; }
.site-footer { background: var(--nav); border-top: 1px solid var(--line); padding-top: 38px; }
.footer-contact { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 36px; }
.email { display: inline-block; margin-top: 10px; font-size: clamp(18px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -.3px; overflow-wrap: anywhere; }
.email > span { margin-left: 8px; color: var(--amber); }
.email:hover, .social-links a:hover { color: var(--amber); }
.resume-link { display: inline-flex; gap: 18px; align-items: center; border: 1px solid #69523c; padding: 11px 18px; font-size: 14px; color: var(--amber); white-space: nowrap; }
.resume-link:hover { border-color: var(--amber); background: #e9b77908; }
.file-type { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 86px; color: var(--muted); font-size: 12px; }
.footer-bottom p > span { margin: 0 8px; color: #787f83; }
.social-links { display: flex; gap: 16px; flex-wrap: wrap; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); }
.social-links svg { display: block; width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .identity { min-height: 250px; }
  .identity-link { gap: 14px; }
  .monogram { width: 82px; height: 82px; }
  .name { font-size: 36px; letter-spacing: -1px; }
  .role { font-size: 15px; letter-spacing: 1.5px; }
  .main-nav a { min-height: 64px; font-size: 15px; gap: 5px; }
  .project-caption { grid-template-columns: 1fr; align-items: start; gap: 17px; padding: 23px 24px 25px; min-height: 0; }
  h2 { font-size: 25px; }
  .project-link { justify-self: start; }
  .footer-contact { align-items: flex-start; flex-direction: column; gap: 22px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 23px; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .site-header { background-size: auto 230px; background-position: 59% 0; }
  .identity { min-height: 230px; }
  .identity-link { gap: 9px; padding-block: 18px; }
  .monogram { width: 65px; height: 65px; }
  .name { font-size: clamp(26px, 8.1vw, 35px); letter-spacing: -1px; }
  .role { font-size: 12px; letter-spacing: 1.5px; margin-top: 2px; }
  .nav-inner { width: 100%; grid-template-columns: 1fr 1.25fr .8fr; }
  .main-nav a { min-height: 60px; font-size: 13px; }
  .main-nav .external-arrow { font-size: 12px; }
  .work-heading { padding: 36px 0 27px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.6px; }
  h1 { font-size: 26px; max-width: 310px; margin-inline: auto; }
  .projects { gap: 28px; padding-bottom: 40px; }
  .project-caption { padding: 20px; gap: 13px; }
  h2 { font-size: 24px; }
  .project-description { font-size: 14px; margin-top: 9px; }
  .project-link { font-size: 13px; }
  .motion-preview summary { right: 10px; bottom: 10px; padding: 5px 9px; font-size: 11px; }
  .site-footer { padding-top: 30px; }
  .email { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .main-nav, .motion-preview, .skip-link { display: none; }
  .project { break-inside: avoid; }
}

/* Shared inner-page layout. The reviewed homepage rules above stay intact. */
.main-nav a[aria-current="page"] { color: var(--amber); }
.detail-page { padding-top: 30px; padding-bottom: 64px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); line-height: 1.7; }
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs > span[aria-hidden] { color: #747d82; }
.breadcrumbs > span[aria-current] { color: var(--ink); }
.page-intro { padding: 32px 0 30px; max-width: 940px; }
.page-intro h1 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; line-height: 1.17; letter-spacing: -1px; text-wrap: balance; }
.page-summary { color: var(--muted); font-size: 18px; line-height: 1.65; margin-top: 18px; max-width: 800px; }
.category-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding-bottom: 0; }
.category-projects .project { display: flex; flex-direction: column; }
.category-projects .project-media { flex-shrink: 0; }
.category-projects .project-caption { display: flex; flex: 1; flex-direction: column; min-height: 208px; gap: 16px; }
.category-projects .project-link { align-self: flex-start; margin-top: auto; }
.category-projects h2 { font-size: 25px; }
.project-media > a { display: block; width: 100%; height: 100%; }
.project-media > a img { width: 100%; height: 100%; object-fit: contain; }
.project-media > a:focus-visible { outline-offset: -5px; }
.project-overview { display: grid; gap: 30px; }
.detail-hero { background: #0b0e10; border: 1px solid var(--line); }
.detail-hero img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.detail-hero .detail-media { margin: 0; }
.intro-copy { max-width: 860px; font-size: 17px; color: var(--muted); }
.intro-copy p + p { margin-top: 18px; }
.project-facts { margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts > div { padding: 20px 24px 20px 0; }
.project-facts dt { font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--amber); margin-bottom: 7px; font-weight: 700; }
.project-facts dd { margin: 0; color: var(--ink); font-size: 14px; }
.detail-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.section-nav { border: 1px solid var(--line); padding: 20px 24px; margin-top: 36px; background: var(--nav); }
.section-nav > p { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--amber); }
.section-nav ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 7px 24px; flex-wrap: wrap; }
.section-nav a { display: inline-block; font-size: 13px; padding-block: 6px; color: var(--muted); }
.section-nav a:hover { color: var(--amber); }
.content-section { padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-copy { max-width: 860px; margin-bottom: 26px; }
.section-copy h2 { font-size: 29px; margin-bottom: 16px; }
.section-copy p, .section-copy li, .credits p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.section-copy p + p, .credits p + p { margin-top: 14px; }
.section-copy ul { padding-left: 23px; margin-block: 18px 0; }
.section-copy li + li { margin-top: 8px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-media { min-width: 0; margin: 0; }
.detail-media-frame { position: relative; background: #0b0e10; }
.media-grid .detail-media-frame { aspect-ratio: 16 / 9; }
.detail-media-frame > img, .detail-media-frame > video, .gallery-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-image { position: relative; }
.gallery-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-image:focus-visible { outline-offset: -4px; }
.zoom-hint { position: absolute; right: 9px; top: 9px; width: 28px; height: 28px; text-align: center; line-height: 28px; background: #0b0e10d9; color: var(--ink); font-size: 17px; border: 1px solid #ffffff25; }
.gallery-image:hover .zoom-hint { color: var(--amber); border-color: var(--amber); }
.detail-media figcaption, .video-embed figcaption { font-size: 12px; line-height: 1.65; color: var(--muted); padding: 10px 0 0; overflow-wrap: anywhere; }
.gallery-more { margin-top: 22px; }
.gallery-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border: 1px solid var(--line); color: var(--amber); font-size: 13px; cursor: pointer; list-style: none; }
.gallery-more > summary::-webkit-details-marker { display: none; }
.gallery-more[open] > summary { margin-bottom: 24px; }
.gallery-more[open] > summary > span { transform: rotate(45deg); }
.video-embed { margin-top: 28px; }
.video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #0b0e10; }
.video-embed figcaption a { color: var(--amber); }
.credits h2 { margin-bottom: 16px; }
.project-return { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--amber); font-size: 14px; }
.project-return a { padding-block: 10px; }
.about-page .project-overview { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); align-items: start; gap: 40px; }
.about-page .detail-hero img { max-height: none; }
.about-page .detail-hero { border: 0; }
.about-page .project-facts { grid-template-columns: 1fr; }
.viewer-open { overflow: hidden; }
.image-viewer { color: var(--ink); background: var(--nav); border: 1px solid var(--line); width: min(1180px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 18px 22px; margin: auto; }
.image-viewer[open] { display: flex; flex-direction: column; gap: 12px; }
.image-viewer::backdrop { background: #000d; }
.image-viewer > img { width: 100%; height: min(66vh, 800px); min-height: 0; object-fit: contain; background: #000; }
.viewer-toolbar, .viewer-navigation { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.viewer-count, .viewer-caption { color: var(--muted); font-size: 13px; line-height: 1.5; }
.viewer-caption { max-height: 3em; overflow: auto; }
.image-viewer button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.image-viewer button:hover { border-color: var(--amber); color: var(--amber); }
.image-viewer button:disabled { opacity: .45; cursor: default; }
button:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
@media (max-width: 760px) {
  .detail-page { padding-top: 24px; padding-bottom: 40px; }
  .page-intro { padding: 26px 0; }
  .page-intro h1 { max-width: none; margin-inline: 0; font-size: 34px; }
  .category-projects { grid-template-columns: 1fr; }
  .category-projects .project-caption { min-height: 0; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-facts > div { padding-block: 17px; }
  .section-nav { padding: 18px 20px; }
  .content-section { margin-top: 34px; padding-top: 34px; }
  .about-page .project-overview { grid-template-columns: 1fr; gap: 24px; }
  .about-page .detail-hero { max-width: 240px; }
  .media-grid { gap: 18px; }
  .section-copy h2 { font-size: 26px; }
  .image-viewer { width: calc(100vw - 20px); padding: 14px; max-height: calc(100dvh - 20px); }
  .image-viewer > img { height: min(57vh, 550px); }
}
@media (max-width: 480px) {
  .page-intro h1 { font-size: 31px; }
  .page-summary, .intro-copy { font-size: 16px; }
  .section-copy p, .section-copy li { font-size: 15px; }
  .media-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts > div { padding: 13px 0; }
  .project-facts > div + div { border-top: 1px solid var(--line); }
  .section-nav ul { display: grid; gap: 5px; }
  .project-return { flex-wrap: wrap; gap: 10px; }
}
