:root {
  --ink: #103b3d;
  --ink-deep: #062f34;
  --muted: #5e7373;
  --line: rgba(16, 59, 61, .16);
  --paper: #f6f9f5;
  --white: #fff;
  --mint: #dcefeb;
  --sea: #159495;
  --lime: #b7db66;
  --sand: #efe8d6;
  --shell: min(100% - 56px, 1460px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink-deep);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus-visible { transform: translateY(0); }

.gallery-header {
  position: sticky;
  z-index: 40;
  top: 0;
  padding: 18px 0;
  background: rgba(246, 249, 245, .88);
  border-bottom: 1px solid rgba(16, 59, 61, .1);
  backdrop-filter: blur(18px);
}

.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; font-size: 21px; font-weight: 820; letter-spacing: -.055em; text-decoration: none; }
.brand svg { width: 33px; height: 33px; }
.brand svg > :first-child { fill: var(--sea); }
.brand-wave { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
.header-inner nav { display: flex; align-items: center; gap: 32px; }
.header-inner nav a { color: #345b5c; font-size: 12px; font-weight: 700; text-decoration: none; }
.header-inner nav a:hover, .header-inner nav a:focus-visible { color: var(--sea); }
.header-action { justify-self: end; padding: 12px 18px; color: var(--white); background: var(--ink-deep); border-radius: 999px; font-size: 11px; font-weight: 750; text-decoration: none; }

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .58fr);
  align-items: end;
  gap: clamp(50px, 9vw, 150px);
  padding-top: clamp(74px, 9vw, 130px);
  padding-bottom: clamp(58px, 7vw, 94px);
}

.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 27px; color: #087b7e; font-size: 9px; font-weight: 820; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.gallery-intro h1 { margin: 0; color: var(--ink-deep); font-size: clamp(48px, 6vw, 92px); font-weight: 560; letter-spacing: -.065em; line-height: .98; }
.gallery-intro h1 em { color: var(--sea); font-family: Georgia, serif; font-weight: 400; }
.intro-copy > p { margin: 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; }
.intro-meta { display: flex; gap: 34px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.intro-meta span { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 680; text-transform: uppercase; letter-spacing: .06em; }
.intro-meta strong { color: var(--ink); font-size: 15px; letter-spacing: -.02em; text-transform: none; }

.gallery-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(310px, .56fr);
  min-height: 650px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgba(12, 55, 57, .1);
}

.photo-stage { position: relative; min-width: 0; min-height: 590px; overflow: hidden; background: #c9d7ce; }
.photo-stage::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 22, 25, .2), transparent 25%, transparent 66%, rgba(3, 22, 25, .26)); pointer-events: none; content: ""; }
.photo-stage > img { width: 100%; height: 100%; object-fit: cover; transition: opacity .42s var(--ease), transform .8s var(--ease); }
.photo-stage > img.changing { opacity: .18; transform: scale(1.015); }
.photo-topline { position: absolute; z-index: 3; top: 21px; left: 21px; display: flex; flex-wrap: wrap; gap: 7px; }
.photo-topline span { padding: 7px 9px; color: rgba(255, 255, 255, .84); background: rgba(5, 35, 37, .56); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; font-size: 6px; font-weight: 820; letter-spacing: .13em; backdrop-filter: blur(10px); }
.photo-index { position: absolute; z-index: 3; right: 24px; bottom: 22px; display: flex; align-items: baseline; gap: 4px; color: var(--white); text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.photo-index span { font-size: 35px; font-weight: 680; letter-spacing: -.06em; }
.photo-index small { font-size: 10px; font-weight: 750; }
.expand-button { position: absolute; z-index: 4; bottom: 22px; left: 22px; display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 0 13px; color: var(--white); background: rgba(5, 35, 37, .62); border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; cursor: pointer; backdrop-filter: blur(10px); }
.expand-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.expand-button span { font-size: 8px; font-weight: 760; }

.story-card { display: flex; flex-direction: column; padding: clamp(32px, 4vw, 60px); background: linear-gradient(160deg, #f9fbf8, #edf4ec); }
.story-heading > p { margin: 0 0 16px; color: var(--sea); font-size: 8px; font-weight: 820; letter-spacing: .16em; }
.story-heading h2 { margin: 0; color: var(--ink-deep); font-size: clamp(30px, 3vw, 46px); font-weight: 560; letter-spacing: -.055em; line-height: 1.03; }
.scene-description { margin: 29px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.scene-facts { margin: auto 0 30px; padding-top: 35px; }
.scene-facts > div { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.scene-facts > div:last-child { border-bottom: 1px solid var(--line); }
.scene-facts dt { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.scene-facts dd { margin: 0; color: var(--ink); font-size: 10px; font-weight: 750; text-align: right; }
.viewer-controls { display: grid; grid-template-columns: 41px 1fr 41px; gap: 8px; }
.viewer-controls button { display: flex; align-items: center; justify-content: center; min-height: 41px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color .25s, background .25s, transform .25s var(--ease); }
.viewer-controls button:hover, .viewer-controls button:focus-visible { color: var(--white); background: var(--ink-deep); transform: translateY(-2px); }
.viewer-controls button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.viewer-controls .play-button { gap: 8px; color: var(--white); background: var(--ink-deep); border-color: var(--ink-deep); }
.play-button svg { fill: currentColor; stroke: none !important; }
.play-button .pause-icon { display: none; }
.play-button[aria-pressed="true"] .play-icon { display: none; }
.play-button[aria-pressed="true"] .pause-icon { display: block; }
.play-button span { font-size: 9px; font-weight: 760; }
.scene-progress { height: 2px; margin-top: 23px; overflow: hidden; background: rgba(16, 59, 61, .1); border-radius: 5px; }
.scene-progress i { display: block; width: 10%; height: 100%; background: var(--sea); border-radius: inherit; transition: width .5s var(--ease); }
.keyboard-note { margin: 12px 0 0; color: rgba(16, 59, 61, .45); font-size: 7px; font-weight: 650; text-align: center; }

.sequence { padding-top: clamp(90px, 10vw, 150px); padding-bottom: clamp(95px, 11vw, 165px); }
.sequence-heading { display: grid; grid-template-columns: 1fr minmax(300px, .52fr); align-items: end; gap: 70px; margin-bottom: 45px; }
.sequence-heading h2 { margin: 0; color: var(--ink-deep); font-size: clamp(38px, 4.5vw, 66px); font-weight: 560; letter-spacing: -.055em; }
.sequence-heading > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.thumbnail-strip { display: grid; grid-template-columns: repeat(10, minmax(118px, 1fr)); gap: 9px; overflow-x: auto; padding: 4px 3px 14px; scrollbar-width: thin; scrollbar-color: rgba(16, 59, 61, .3) transparent; }
.thumbnail-strip button { min-width: 118px; padding: 5px 5px 10px; overflow: hidden; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 15px; cursor: pointer; text-align: left; transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease); }
.thumbnail-strip button:hover, .thumbnail-strip button:focus-visible { color: var(--ink); background: var(--white); transform: translateY(-3px); }
.thumbnail-strip button.active { color: var(--ink-deep); background: var(--white); border-color: rgba(21, 148, 149, .38); box-shadow: 0 10px 28px rgba(12, 55, 57, .07); }
.thumbnail-strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; filter: saturate(.78); transition: filter .25s; }
.thumbnail-strip button.active img, .thumbnail-strip button:hover img { filter: saturate(1); }
.thumbnail-strip button > span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 9px 4px 0; }
.thumbnail-strip b { color: var(--sea); font-size: 7px; }
.thumbnail-strip small { overflow: hidden; font-size: 7px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }

.concept-boundary {
  display: grid;
  grid-template-columns: .72fr 1fr .5fr;
  align-items: center;
  gap: clamp(38px, 7vw, 100px);
  margin-bottom: clamp(80px, 10vw, 140px);
  padding: clamp(42px, 6vw, 76px);
  color: var(--white);
  background: var(--ink-deep);
  border-radius: 32px;
}

.concept-boundary span { color: var(--lime); font-size: 7px; font-weight: 820; letter-spacing: .16em; }
.concept-boundary h2 { margin: 13px 0 0; font-size: clamp(30px, 3.5vw, 50px); font-weight: 560; letter-spacing: -.05em; line-height: 1.04; }
.concept-boundary p { margin: 0; color: rgba(255, 255, 255, .65); font-size: 13px; line-height: 1.75; }
.concept-boundary a { justify-self: end; color: var(--white); font-size: 11px; font-weight: 750; line-height: 1.5; text-align: right; text-decoration: none; }
.concept-boundary a span { display: inline; margin-left: 4px; color: var(--lime); font-size: inherit; letter-spacing: 0; transition: transform .2s; }

footer { padding: 41px 0 48px; background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: .7fr 1fr 1fr; align-items: end; gap: 35px; }
.footer-inner > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.footer-inner > div { display: flex; justify-content: flex-end; gap: 28px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.lightbox {
  width: min(96vw, 1760px);
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.lightbox::backdrop { background: rgba(2, 20, 23, .93); backdrop-filter: blur(14px); }
.lightbox figure { margin: 0; overflow: hidden; background: #0a292d; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; box-shadow: 0 30px 100px rgba(0, 0, 0, .5); }
.lightbox img { display: block; width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox figcaption { display: flex; align-items: center; gap: 18px; padding: 14px 18px; color: var(--white); }
.lightbox figcaption span { color: var(--lime); font-size: 9px; font-weight: 800; }
.lightbox figcaption strong { font-size: 11px; font-weight: 650; }
.lightbox > button { position: absolute; z-index: 3; top: -45px; right: 0; display: grid; width: 37px; height: 37px; padding: 0; place-items: center; color: var(--white); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; cursor: pointer; }
.lightbox > button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

@media (max-width: 1060px) {
  .gallery-intro { grid-template-columns: 1fr; align-items: start; }
  .intro-copy { max-width: 720px; }
  .gallery-viewer { grid-template-columns: 1fr; }
  .photo-stage { min-height: auto; aspect-ratio: 16 / 9; }
  .story-card { min-height: 460px; }
  .scene-facts { margin-top: 40px; }
  .thumbnail-strip { grid-template-columns: repeat(10, 155px); }
  .concept-boundary { grid-template-columns: 1fr 1fr; }
  .concept-boundary a { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1460px); }
  .gallery-header { padding: 13px 0; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-inner nav { display: none; }
  .header-action { padding: 11px 14px; font-size: 9px; }
  .gallery-intro { gap: 31px; padding-top: 65px; padding-bottom: 51px; }
  .gallery-intro h1 { font-size: clamp(43px, 13vw, 63px); }
  .intro-copy > p { font-size: 15px; }
  .intro-meta { gap: 22px; }
  .gallery-viewer { width: calc(100% - 16px); border-radius: 23px; }
  .photo-stage { aspect-ratio: 1.28 / 1; }
  .photo-stage > img { object-position: center; }
  .photo-topline { top: 12px; left: 12px; }
  .photo-topline span:nth-child(2) { display: none; }
  .expand-button { bottom: 12px; left: 12px; }
  .expand-button span { display: none; }
  .expand-button { width: 38px; padding: 0; justify-content: center; }
  .photo-index { right: 15px; bottom: 13px; }
  .photo-index span { font-size: 27px; }
  .story-card { min-height: 480px; padding: 31px 24px; }
  .story-heading h2 { font-size: 35px; }
  .scene-description { font-size: 13px; }
  .sequence { padding-top: 85px; padding-bottom: 95px; }
  .sequence-heading { grid-template-columns: 1fr; gap: 17px; margin-bottom: 29px; }
  .thumbnail-strip { width: calc(100vw - 14px); margin-left: 0; grid-template-columns: repeat(10, 142px); }
  .concept-boundary { grid-template-columns: 1fr; width: calc(100% - 18px); padding: 39px 28px; border-radius: 24px; }
  .concept-boundary a { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-inner > div { flex-direction: column; justify-content: flex-start; gap: 5px; }
  .lightbox { width: calc(100vw - 18px); }
  .lightbox figcaption { align-items: flex-start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
