.project-page {
  --text: #efeee9;
  --muted: #9a9c9f;
  --line: #2b2d30;
  --accent: #f69a58;
  --accent-2: #ffb787;
  background: #101113;
  -webkit-font-smoothing: antialiased;
}
.project-page [hidden] { display: none !important; }
.project-page a { color: inherit; }
.project-page button { font: inherit; }
.project-wrap { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.project-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.identity-mark { font-size: 28px; font-weight: 750; letter-spacing: -2px; }
.identity-mark > span { color: var(--accent); }
.identity strong { display: block; font-size: 14px; font-weight: 600; }
.identity small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; letter-spacing: .03em; }
.back-link { display: flex; gap: 10px; text-decoration: none; font-size: 13px; color: var(--muted) !important; }
.back-link:hover, .project-footer a:hover { color: var(--accent) !important; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 14px; z-index: 10; background: #232527; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.project-intro { padding-top: 64px; }
.project-kicker { display: flex; align-items: center; gap: 12px; font: 11px/1.5 Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: #c7c7c6; flex-wrap: wrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.project-status { color: var(--accent-2); border: 1px solid #6a4f3d; padding: 5px 9px; font-size: 10px; letter-spacing: .06em; }
.kicker-slash { margin-inline: 6px; color: #606266; }
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; margin-top: 28px; }
.project-intro h1 { margin: 0; max-width: 800px; font-size: clamp(40px, 5.5vw, 76px); font-weight: 550; line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; text-wrap: balance; }
.intro-summary { padding-bottom: 4px; }
.intro-summary > p { max-width: 39ch; color: #b7b8ba; font-size: 16px; line-height: 1.8; margin: 0 0 24px; }
.text-link { display: inline-flex; align-items: center; gap: 28px; font-size: 13px; text-decoration: none; border-bottom: 1px solid #52504b; padding-bottom: 8px; }
.text-link:hover { border-color: var(--accent); color: var(--accent); }
.text-link > span { color: var(--accent); font-size: 20px; line-height: 1; }
.project-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 42px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font: 10px/1.5 Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 9px; }
.project-facts dd { margin: 0; font-size: 13px; line-height: 1.5; }
.project-cover { margin: 0; }
.cover-frame { aspect-ratio: 16/8; position: relative; overflow: hidden; background: #1b1e20; }
.cover-frame > img { display: block; height: 100%; width: 100%; object-fit: cover; }
.cover-frame.is-placeholder > img { opacity: .9; }
.cover-topline { position: absolute; top: 24px; left: 28px; right: 28px; display: flex; justify-content: space-between; font: 10px Consolas, monospace; letter-spacing: .14em; color: #b9bbbd; text-shadow: 0 1px 8px #000; pointer-events: none; }
.cover-placeholder { position: absolute; bottom: 24px; left: 28px; display: flex; align-items: center; gap: 14px; font-size: 13px; padding: 14px 18px; background: #101113dc; border: 1px solid #50504c; backdrop-filter: blur(10px); }
.cover-placeholder small { display: block; color: #a8aaa9; font-size: 10px; margin-top: 5px; }
.viewfinder { width: 22px; height: 18px; border: 1px solid var(--accent); position: relative; }
.viewfinder::after { content: "+"; position: absolute; inset: 0; text-align: center; line-height: 15px; color: var(--accent); }
.project-cover > figcaption { display: flex; justify-content: space-between; align-items: start; gap: 16px; color: var(--muted); font: 10px/1.7 Consolas, monospace; letter-spacing: .05em; padding-top: 13px; }
.project-cover > figcaption span:last-child { white-space: nowrap; }
.project-section-nav { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 18px; border-block: 1px solid var(--line); padding-block: 20px; margin-top: 44px; }
.project-section-nav a { font-size: 12px; text-decoration: none; }
.project-section-nav a > span { color: var(--accent); font: 10px Consolas, monospace; padding-right: 8px; }
.project-section-nav a:hover { color: var(--accent); }
.story-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 100px; padding-block: 76px; scroll-margin-top: 24px; }
.section-index { display: block; color: var(--accent); font: 10px/1.6 Consolas, monospace; letter-spacing: .1em; }
.section-heading h2, .next-project h2 { margin: 18px 0 0; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.15; letter-spacing: -.04em; font-weight: 500; }
.section-heading > p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 28ch; margin: 24px 0 0; }
.prose p { margin: 0 0 20px; color: #b0b2b4; font-size: 15px; line-height: 1.95; max-width: 65ch; }
.prose p:first-child { color: var(--text); font-size: 19px; line-height: 1.7; }
.toolbox { margin-top: 32px; }
.toolbox h3 { font-size: 11px; font-weight: 400; color: var(--muted); margin-bottom: 13px; }
.tool-tags { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tags li { padding: 7px 11px; border: 1px solid #3b3d40; font-size: 11px; color: #d2d2d0; }
.contribution-section { border-top: 1px solid var(--line); }
.contribution-item { display: grid; grid-template-columns: 28px 1fr; gap: 18px; border-bottom: 1px solid var(--line); padding: 25px 0; }
.contribution-item:first-child { padding-top: 0; }
.contribution-item > span { font: 11px/1.8 Consolas, monospace; color: #777b7e; }
.contribution-item h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.contribution-item p { color: #a8aaad; font-size: 13px; line-height: 1.85; margin: 0; }
.case-study-section { border-top: 1px solid var(--line); }
.case-study-section .section-heading h2 { font-size: clamp(28px, 3vw, 38px); overflow-wrap: anywhere; }
.case-study-body, .case-study-prose { min-width: 0; }
.case-study-prose p { color: #b0b2b4; font-size: 15px; line-height: 1.95; margin: 0 0 20px; overflow-wrap: anywhere; }
.case-study-prose p:last-child { margin-bottom: 0; }
.technical-focus { margin-top: 24px; padding: 14px 18px; border-left: 2px solid var(--accent); background: #f69a5808; }
.technical-focus strong { display: block; color: var(--accent-2); font: 10px/1.6 Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.technical-focus p { margin: 8px 0 0; color: #c2c3c3; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.case-study-subsection + .case-study-subsection { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 36px; }
.case-study-subsection h3 { margin: 0 0 20px; color: var(--text); font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.4; overflow-wrap: anywhere; }
.case-study-prose:empty { display: none; }
.case-study-body > .section-media { margin-bottom: 32px; }
.section-media { display: grid; gap: 24px; margin-top: 28px; }
.section-media-item { margin: 0; min-width: 0; }
.section-media-button { display: block; position: relative; width: 100%; padding: 0; border: 1px solid var(--line); background: #181b1e; cursor: zoom-in; color: var(--text); }
.section-media-button:hover { border-color: #7b6656; }
.section-media-button img { display: block; width: 100%; height: auto; max-height: 650px; object-fit: contain; }
.section-media-item video { display: block; width: 100%; max-height: 650px; background: #080a0c; border: 1px solid var(--line); }
.section-media-item figcaption { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 10px; }
.media-type-badge { position: absolute; top: 12px; left: 12px; background: #101113dc; border: 1px solid #ffffff30; padding: 5px 8px; font: 10px Consolas, monospace; letter-spacing: .08em; }
.section-media-item .media-error { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.media-error a { text-underline-offset: 4px; }
.gallery-section { padding-block: 50px 48px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.gallery-heading > p { color: var(--muted); font-size: 12px; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-image-wrap { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #1b1e20; }
button.gallery-image-wrap { display: block; padding: 0; border: 0; cursor: zoom-in; color: var(--text); }
.gallery-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-image-wrap:hover img { transform: scale(1.025); }
.gallery-item:nth-child(even) .gallery-image-wrap.is-placeholder img { filter: grayscale(1); transform: scale(1.1); }
.image-expand { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center; background: #101113b3; border: 1px solid #ffffff30; }
.gallery-placeholder-label { position: absolute; bottom: 14px; left: 14px; background: #101113dc; padding: 7px 10px; font: 10px Consolas, monospace; color: #c2c4c5; }
.gallery-item figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 13px; font-size: 11px; color: #b0b1b1; line-height: 1.7; }
.gallery-item figcaption > span { font: 10px Consolas, monospace; color: var(--accent); }
.video-section { padding-bottom: 48px; }
.video-section h2 { font-size: 28px; font-weight: 500; }
.video-section video { display: block; width: 100%; max-height: 680px; background: #070809; }
.project-endnotes { display: flex; align-items: start; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.project-endnotes > p { margin: 0; max-width: 70ch; color: var(--muted); font-size: 11px; line-height: 1.8; }
.external-links { display: flex; flex-wrap: wrap; gap: 16px; }
.external-links a { font-size: 12px; text-underline-offset: 5px; white-space: nowrap; }
.external-links a:hover { color: var(--accent); }
.next-project { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 0 48px; border-top: 1px solid var(--line); text-decoration: none; }
.next-project h2 { font-size: clamp(28px, 4vw, 48px); margin-top: 12px; }
.next-project p { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.next-arrow { font-size: 60px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.next-project:hover .next-arrow { transform: translate(4px, -4px); }
.next-project:hover h2 { color: var(--accent-2); }
.project-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 26px 32px; color: #8d9093; font-size: 10px; }
.project-footer a { text-decoration: none; }
.not-found { min-height: 65vh; padding-top: 100px; }
.not-found h1 { margin-top: 24px; font-weight: 500; }
.not-found p { color: var(--muted); margin-bottom: 36px; }
.gallery-dialog { width: min(1360px, 94vw); max-width: 94vw; max-height: 94vh; padding: 20px; border: 1px solid #3f4246; background: #111315; color: var(--text); }
.gallery-dialog::backdrop { background: #000e; backdrop-filter: blur(8px); }
.lightbox-toolbar, .lightbox-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.gallery-dialog button { background: transparent; border: 1px solid #3f4246; color: var(--text); cursor: pointer; padding: 9px 13px; }
.gallery-dialog button:hover { border-color: var(--accent); }
.gallery-dialog figure { margin: 18px 0; }
.gallery-dialog figure img { display: block; margin: auto; max-width: 100%; max-height: 65vh; object-fit: contain; }
.gallery-dialog figcaption { text-align: center; margin-top: 12px; color: #b0b2b4; font-size: 12px; }
@media (min-width: 1600px) { .project-intro { padding-top: 80px; } }
@media (max-width: 900px) {
  .project-wrap { width: calc(100% - 48px); }
  .intro-grid { gap: 36px; grid-template-columns: 1.2fr 1fr; }
  .project-intro h1 { font-size: 48px; }
  .intro-summary > p { font-size: 14px; }
  .story-section { gap: 48px; grid-template-columns: 1fr 1.4fr; }
}
@media (max-width: 640px) {
  .project-wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 80px; gap: 16px; }
  .identity { gap: 12px; }
  .identity small { font-size: 9px; }
  .back-link { font-size: 11px; gap: 6px; }
  .project-intro { padding-top: 38px; }
  .project-kicker { font-size: 9px; gap: 8px; }
  .kicker-slash { margin-inline: 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 22px; }
  .project-intro h1 { font-size: clamp(36px, 10vw, 56px); }
  .intro-summary > p { max-width: 48ch; margin-bottom: 18px; }
  .project-facts { grid-template-columns: 1fr 1fr; row-gap: 22px; margin-top: 28px; }
  .cover-frame { aspect-ratio: 4/3; }
  .cover-topline { top: 16px; left: 16px; right: 16px; font-size: 8px; }
  .cover-placeholder { left: 12px; bottom: 12px; padding: 10px 12px; gap: 10px; font-size: 11px; }
  .cover-placeholder small { font-size: 9px; }
  .project-cover > figcaption { font-size: 8px; }
  .project-section-nav { gap: 18px; justify-content: space-between; margin-top: 28px; padding-block: 18px; }
  .project-section-nav a { font-size: 10px; }
  .project-section-nav a > span { display: block; padding: 0 0 6px; }
  .story-section { grid-template-columns: 1fr; gap: 30px; padding-block: 44px; }
  .section-heading h2 { margin-top: 12px; font-size: 34px; }
  .section-heading h2 br { display: none; }
  .section-heading > p { max-width: 38ch; margin-top: 16px; }
  .prose p:first-child { font-size: 18px; }
  .prose p { font-size: 14px; }
  .case-study-prose p { font-size: 14px; }
  .case-study-subsection h3 { font-size: 21px; }
  .case-study-section .section-heading h2 { font-size: 30px; }
  .section-media { margin-top: 22px; gap: 20px; }
  .gallery-section { padding-top: 40px; }
  .gallery-heading { display: block; }
  .gallery-heading > p { margin-top: 16px; }
  .detail-gallery { grid-template-columns: 1fr; gap: 28px; }
  .project-endnotes { display: block; margin-bottom: 40px; }
  .external-links { margin-top: 20px; }
  .next-project { padding-block: 32px; }
  .next-arrow { font-size: 44px; }
  .project-footer { gap: 16px; font-size: 9px; }
  .project-footer > span:nth-child(2) { display: none; }
  .gallery-dialog { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-image-wrap img, .next-arrow { transition: none; }
}
