@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root { color-scheme: light; --ink: #101d2c; --blue: #0066b3; --muted: #596773; --line: #cfd5da; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f2f4f6; font-family: Manrope, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.gallery-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 30; background: var(--ink); color: white; padding: 14px; }
.skip-link:focus { top: 16px; }
.gallery-brand { background: white; border-bottom: 1px solid var(--line); text-align: center; padding: 14px 24px; }
.gallery-brand a { display: inline-block; }
.gallery-brand img { display: block; width: min(360px, 80vw); height: auto; }
.gallery-nav { background: #fff; border-bottom: 1px solid var(--line); }
.gallery-nav .wrap { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 13px; font-weight: 800; color: #0066b3; }
.nav-context { font-size: 12px; font-weight: 700; color: var(--muted); }
.gallery-intro { background: white; padding: 62px 0 42px; }
.eyebrow { color: #0066b3; font-size: 12px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.intro-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
h1 { max-width: 840px; margin: 14px 0 20px; font-size: clamp(36px, 4.8vw, 58px); line-height: 1.1; letter-spacing: -2.5px; }
.intro-copy { max-width: 720px; font-size: 16px; line-height: 1.8; color: var(--muted); margin: 0; }
.gallery-total { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 0 24px 8px; border-left: 1px solid var(--line); }
.gallery-total strong { font-size: 56px; font-weight: 500; letter-spacing: -3px; line-height: 1.1; }
.gallery-total span { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-top: 9px; }
.phase-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.phase-nav a { padding: 10px 15px; border: 1px solid var(--line); border-radius: 24px; font-size: 12px; font-weight: 800; background: #f5f9fb; }
.phase-nav a:hover { border-color: #6db7d7; background: #edf5fa; }
.gallery-content { padding: 34px 0 60px; }
.gallery-hint { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 23px; }
.gallery-hint h2 { font-size: 19px; margin: 0; letter-spacing: -.4px; }
.gallery-hint p { color: var(--muted); font-size: 12px; margin: 0; }
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.stage-card { margin: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; scroll-margin-top: 25px; }
.stage-image { display: block; border: 0; padding: 0; width: 100%; background: #e4edf1; position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.stage-image:focus-visible { outline-offset: -5px; }
.stage-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.stage-image:hover img { transform: scale(1.025); }
.image-number { position: absolute; left: 18px; top: 18px; background: #101d2cee; color: white; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.image-expand { position: absolute; bottom: 16px; right: 16px; padding: 8px 12px; border-radius: 20px; background: #ffffffec; color: var(--ink); font-size: 11px; font-weight: 800; }
.stage-caption { padding: 24px 26px 27px; }
.stage-phase { font-size: 10px; font-weight: 800; color: #0066b3; text-transform: uppercase; letter-spacing: .11em; }
.stage-caption h3 { font-size: 21px; letter-spacing: -.6px; line-height: 1.3; margin: 9px 0 12px; }
.stage-caption p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }
.stage-detail { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e6edf2; font-size: 12px; line-height: 1.7; color: #42627b; }
.stage-detail b { font-weight: 800; color: var(--ink); }
.code-note { padding: 28px 30px; margin-top: 36px; border: 1px solid #d5e5ee; border-radius: 16px; background: #eaf3f8; }
.code-note h2 { font-size: 18px; margin: 0 0 12px; }
.code-note p { font-size: 13px; line-height: 1.85; margin: 0; color: #4c6479; max-width: 1000px; }
.code-note details { margin-top: 15px; font-size: 13px; }
.code-note summary { width: fit-content; cursor: pointer; font-weight: 800; padding: 5px 0; }
.code-note ul { padding-left: 20px; line-height: 1.9; color: #4c6479; }
.code-note a { text-decoration: underline; text-underline-offset: 3px; color: #0066b3; }
.gallery-footer { border-top: 1px solid var(--line); background: white; padding: 28px 0; }
.gallery-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.gallery-footer p { font-size: 12px; color: var(--muted); margin: 0; }
.lightbox { width: min(1280px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 30px 100px #0006; }
.lightbox::backdrop { background: #031326ec; }
.lightbox-inner { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.lightbox-counter { font-size: 13px; font-weight: 800; }
.lightbox-close, .lightbox-arrow { border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 13px; font-weight: 800; min-height: 42px; padding: 10px 16px; }
.lightbox-close:hover, .lightbox-arrow:hover:enabled { background: #eaf5fa; }
.lightbox-arrow:disabled { opacity: .35; cursor: default; }
.lightbox-image { display: block; width: 100%; min-height: 0; flex: 1 1 auto; max-height: 64dvh; object-fit: contain; background: #071b2b; }
.lightbox-bottom { flex-shrink: 0; padding: 18px 22px 20px; overflow-y: auto; }
.lightbox-bottom h2 { font-size: 21px; margin: 0 0 7px; letter-spacing: -.5px; }
.lightbox-bottom p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.lightbox-navigation { display: flex; gap: 8px; align-items: center; }
@media(max-width: 650px) {
 .wrap { width: calc(100% - 34px); }
 .gallery-brand { padding: 8px 20px; }
 .gallery-nav .wrap { min-height: 56px; }
 .nav-context { display: none; }
 .gallery-intro { padding: 36px 0 28px; }
 h1 { font-size: 38px; letter-spacing: -1.7px; }
 .intro-copy { font-size: 14px; }
 .intro-row { display: block; }
 .gallery-total { display: none; }
 .phase-nav { gap: 7px; padding-top: 23px; }
 .phase-nav a { font-size: 11px; padding: 9px 12px; }
 .gallery-content { padding-top: 25px; }
 .gallery-hint { display: block; }
 .gallery-hint p { margin-top: 8px; }
 .stage-grid { grid-template-columns: 1fr; gap: 24px; }
 .stage-caption { padding: 22px; }
 .stage-caption h3 { font-size: 21px; }
 .code-note { padding: 23px; }
 .gallery-footer .wrap { display: block; }
 .gallery-footer p { margin-top: 10px; }
 .lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
 .lightbox-inner { max-height: calc(100dvh - 16px); }
 .lightbox-toolbar { padding: 10px; gap: 6px; }
 .lightbox-counter { font-size: 11px; }
 .lightbox-close, .lightbox-arrow { padding: 10px 11px; font-size: 11px; min-height: 42px; }
 .lightbox-navigation { gap: 5px; }
 .lightbox-bottom { padding: 18px; }
 .lightbox-bottom h2 { font-size: 20px; }
 .lightbox-image { max-height: 57dvh; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.stage-caption h3 a { color: inherit; text-decoration: underline; text-decoration-color: #a5cbe0; text-underline-offset: 5px; }
.stage-gallery-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 20px; padding: 11px 17px; border-radius: 9px; background: #101d2c; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.stage-gallery-link:hover { background: #004d88; }
.stage-gallery-link:focus-visible,.stage-caption h3 a:focus-visible { outline: 3px solid #099bd8; outline-offset: 4px; }
