/* Swedwatch exhibition. Editorial content and per-image settings live in exhibition-data.js. */
:root {
  color-scheme: dark;
  --cream: #f2ebe0;
  --orange: #dd7938;
  --white: #fff;
  --edge: clamp(24px, 4vw, 84px);
  --content-edge: clamp(36px, 5.7vw, 110px);
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  background: #073a42;
  color: var(--white);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, blockquote { margin: 0; }
body { min-width: 280px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
a { touch-action: manipulation; }
a:focus-visible { outline: 2px solid var(--cream); outline-offset: 6px; }
.scene:focus, main:focus { outline: none; }
::selection { background: var(--orange); color: #141e22; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; z-index: 100; top: 16px; left: 16px;
  padding: 14px 20px; background: #073a42; color: white;
}
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: max(27px, env(safe-area-inset-top)) var(--edge) 25px;
  pointer-events: none;
}
.site-header::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 -25px;
  background: linear-gradient(to bottom, rgb(0 16 20 / .3), transparent);
  pointer-events: none;
}
.brand, .header-links { pointer-events: auto; }
.brand { display: block; width: clamp(69px, 6.3vw, 116px); flex-shrink: 0; }
.brand-image { width: 100%; height: auto; }
.brand-white { filter: brightness(0) invert(1); }
.header-links { display: flex; gap: clamp(24px, 3vw, 58px); padding-top: 13px; }
.header-link {
  position: relative; font-size: clamp(13px, 1vw, 17px); line-height: 1.4;
  font-weight: 450; white-space: nowrap;
}
.header-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.header-link[aria-disabled="true"] { cursor: default; }
.header-link:not([aria-disabled]):hover::after { transform: scaleX(1); }
.scene { position: relative; isolation: isolate; background: #173e43; }
.scene-image {
  position: absolute; z-index: -3; inset: 0; width: 100%; max-width: none; height: 100%;
  object-fit: cover; object-position: var(--desktop-position, center);
}
.scene::after {
  content: ""; position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgb(0 10 14 / .76) 0%, rgb(0 10 14 / .12) 24%, transparent 46%),
    linear-gradient(90deg, rgb(0 12 16 / var(--shade)) 0%, rgb(0 12 16 / .08) 50%, rgb(0 12 16 / var(--shade)) 100%);
}
.scene-layer { position: relative; z-index: 1; min-width: 0; }

/* ENTRANCE — oversized type at left; testimony at right; five quiet thumbnails. */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(164px, 22vh, 250px) var(--edge) clamp(30px, 4.5vh, 52px);
  gap: clamp(32px, 3.5vh, 44px);
}
.hero .scene-image { filter: saturate(1.15); }
.hero::after {
  background: linear-gradient(0deg, rgb(0 63 67 / .77), transparent 40%),
    linear-gradient(90deg, rgb(0 48 52 / .42), rgb(0 32 35 / .03) 57%, rgb(0 39 45 / .21));
}
.hero-main {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(238px, 18vw, 345px);
  gap: 8vw; margin-left: 6vw; flex: 1; align-items: start;
}
.hero-copy { max-width: 650px; }
.location { margin-bottom: 18px; font-size: clamp(12px, 1vw, 17px); letter-spacing: .36em; line-height: 1.3; }
.exhibition-title { font-size: clamp(86px, 7.7vw, 132px); line-height: .82; font-weight: 800; letter-spacing: -.055em; }
.title-line { display: block; }
.subtitle { max-width: 650px; margin-top: 12px; font-size: clamp(32px, 3.2vw, 52px); line-height: 1.07; font-weight: 300; letter-spacing: -.025em; }
.subtitle-line { display: block; }
.hero-introduction { max-width: clamp(500px, 35vw, 620px); margin-top: 23px; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.48; font-weight: 350; }
.quotation-mark { display: block; height: .65em; font-family: Georgia, serif; font-size: clamp(72px, 6vw, 105px); line-height: 1; color: var(--orange); font-weight: 700; margin: -.05em 0 .17em -.04em; }
.quotation-text { font-size: clamp(28px, 2.55vw, 48px); font-weight: 620; line-height: 1.16; letter-spacing: -.025em; }
.testimony-long .quotation-text { font-size: clamp(22px, 1.85vw, 33px); line-height: 1.28; letter-spacing: -.015em; }
.attribution { margin-top: 23px; font-size: clamp(11px, .78vw, 14px); line-height: 1.5; font-weight: 450; letter-spacing: .07em; text-transform: uppercase; }
.testimony-context { max-width: 340px; margin-top: 10px; font-size: 11px; line-height: 1.5; font-weight: 400; color: rgb(255 255 255 / .8); }
.chapter-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(18px, 2vw, 38px); }
.chapter-tile { display: block; min-width: 0; }
.chapter-tile .navigation-image {
  width: 100%; height: auto; max-height: 140px; aspect-ratio: 2.03; object-fit: cover;
  transition: filter .35s ease, outline-color .25s ease;
  outline: 2px solid transparent; outline-offset: 3px;
}
.tile-number { display: block; margin: 9px 0 3px; font-size: clamp(18px, 1.4vw, 26px); line-height: 1; font-weight: 500; }
.tile-title { display: block; max-width: 250px; font-size: clamp(14px, 1.12vw, 21px); line-height: 1.18; font-weight: 450; }
.chapter-tile:hover .navigation-image, .chapter-tile:focus-visible .navigation-image { filter: brightness(1.12); outline-color: var(--orange); }

/* PHOTOGRAPHIC CHAPTERS — all copy is on the photograph, in normal flow. */
.photo-scene { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.scene-caption {
  min-height: inherit; display: flex; flex: 1; flex-direction: column;
  padding: clamp(160px, 24vh, 260px) var(--content-edge) 28px;
}
.scene-content {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(60px, 12vw, 250px); align-items: start;
  padding-bottom: clamp(70px, 10vh, 130px);
}
.chapter-introduction { max-width: var(--intro-width, 690px); }
.chapter-number { color: var(--orange); font-size: clamp(14px, 1.05vw, 20px); font-weight: 650; margin-bottom: 12px; }
.chapter-title { max-width: 12em; font-size: clamp(36px, 3.95vw, 75px); line-height: 1.03; letter-spacing: -.035em; font-weight: 720; text-wrap: balance; }
.chapter-description { max-width: 520px; margin-top: 26px; font-size: clamp(16px, 1.18vw, 22px); line-height: 1.48; font-weight: 400; }
.scene-content > .testimony, .scene-content > .caption-feature { grid-column: 2; width: 100%; max-width: 490px; justify-self: end; }
.scene-content > .testimony { padding-top: 8px; }
.photo-scene:not(.chapter-opening) .scene-content { padding-top: 1vh; }
.photo-scene:not(.chapter-opening)[data-text-position="left"] .scene-content > :last-child { grid-column: 1; justify-self: start; }
.photo-scene:not(.chapter-opening) .testimony { max-width: 510px; }
.photo-scene:not(.chapter-opening) .testimony-long { max-width: 550px; }
.photo-scene:not(.chapter-opening)[data-text-position="left"] .scene-content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12vw; }
.photo-scene[data-intro-position="lower"] .chapter-introduction { padding-top: clamp(75px, 12vh, 150px); }
.caption-label { margin-bottom: 20px; text-transform: uppercase; font-size: 12px; line-height: 1.5; letter-spacing: .15em; }
.caption-text { font-size: clamp(24px, 2.1vw, 39px); line-height: 1.3; font-weight: 550; letter-spacing: -.018em; }
.perspective-title { max-width: 500px; font-size: clamp(32px, 3vw, 56px); line-height: 1.1; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
.scene-bottom { margin-top: auto; }
.photo-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 12px; }
.photo-caption { max-width: 720px; font-size: 11px; line-height: 1.5; color: rgb(255 255 255 / .85); }
.photo-credit { flex-shrink: 0; font-size: 10px; line-height: 1.6; letter-spacing: .02em; color: rgb(255 255 255 / .78); }
.photo-meta.caption-already-shown { justify-content: flex-end; }
.photo-progress { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 0 0 14px; }
.progress-dots { display: flex; align-items: center; }
.progress-dot { display: grid; place-items: center; width: 29px; height: 40px; }
.progress-dot::before { content: ""; width: 10px; height: 10px; border: 1px solid rgb(255 255 255 / .72); border-radius: 50%; transition: border-color .2s, background .2s; }
.progress-dot[aria-current="true"]::before { border: 2px solid var(--orange); background: var(--orange); box-shadow: inset 0 0 0 2px #173e43; }
.progress-dot:hover::before { border-color: var(--orange); }
.progress-count { font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.chapter-controls { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.chapter-adjacent { display: flex; align-items: center; gap: 15px; min-height: 50px; max-width: 42%; }
.chapter-adjacent.chapter-next { margin-left: auto; text-align: right; }
.chapter-arrow { flex-shrink: 0; font-size: 35px; font-weight: 300; line-height: 1; transition: transform .25s ease; }
.chapter-adjacent .navigation-image { width: clamp(65px, 7vw, 125px); height: auto; aspect-ratio: 1.52; object-fit: cover; flex-shrink: 0; }
.chapter-direction { display: block; font-size: 10px; font-weight: 500; line-height: 1.6; text-transform: uppercase; }
.chapter-adjacent-title { display: block; max-width: 230px; font-size: clamp(12px, .95vw, 17px); line-height: 1.15; font-weight: 550; }
.chapter-previous:hover .chapter-arrow { transform: translateX(-4px); }
.chapter-next:hover .chapter-arrow { transform: translateX(4px); }
.colophon { max-width: 800px; margin-top: 32px; font-size: 10px; line-height: 1.6; color: rgb(255 255 255 / .7); }
.colophon p + p { margin-top: 4px; }
.enhanced .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.enhanced .is-visible .reveal { opacity: 1; transform: none; }
.no-script { padding: 160px var(--edge); max-width: 700px; line-height: 1.6; }

/* TABLETS / SMALL DESKTOPS */
@media (max-width: 1100px) {
  .hero-main { margin-left: 3vw; gap: 6vw; grid-template-columns: minmax(0, 1fr) 240px; }
  .hero-introduction { max-width: 460px; }
  .exhibition-title { font-size: clamp(78px, 9vw, 105px); }
  .scene-content { gap: 6vw; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .chapter-title { font-size: clamp(34px, 4.4vw, 48px); }
  .chapter-description { font-size: 16px; }
  .quotation-text { font-size: 30px; }
  .testimony-long .quotation-text { font-size: 23px; }
  .scene-caption { padding-top: 170px; }
  .chapter-adjacent { gap: 10px; }
}

/* PHONES — a photographic canvas with content that can grow, never clipped. */
@media (max-width: 700px) {
  :root { --edge: 23px; --content-edge: 25px; }
  .site-header { padding: max(20px, env(safe-area-inset-top)) var(--edge) 17px; }
  .brand { width: 65px; }
  .header-links { gap: 20px; padding-top: 7px; }
  .header-link { min-height: 44px; display: flex; align-items: flex-start; font-size: 12px; }
  .scene-image { object-position: var(--mobile-position, center); }
  .hero {
    min-height: 100svh;
    padding: 142px 0 max(28px, env(safe-area-inset-bottom)); gap: 38px;
  }
  .hero::after {
    background: linear-gradient(0deg, rgb(0 42 48 / .88), rgb(0 32 35 / .35) 55%, rgb(0 30 35 / .2)),
      linear-gradient(90deg, rgb(0 35 40 / .28), transparent);
  }
  .hero-main { display: block; margin-left: 0; padding: 0 var(--edge); }
  .hero-copy { max-width: 510px; }
  .location { font-size: 11px; margin-bottom: 17px; letter-spacing: .3em; }
  .exhibition-title { font-size: clamp(72px, 19.7vw, 132px); }
  .subtitle { max-width: 440px; margin-top: 15px; font-size: clamp(29px, 7.7vw, 47px); line-height: 1.08; }
  .hero-introduction { max-width: 460px; margin-top: 21px; font-size: 15px; line-height: 1.5; }
  .chapter-strip {
    display: flex; gap: 19px; overflow-x: auto; overscroll-behavior-x: contain;
    padding: 5px var(--edge) 14px; scrollbar-width: thin; scrollbar-color: var(--orange) transparent;
    scroll-padding-inline: var(--edge); scroll-snap-type: x proximity;
  }
  .chapter-tile { flex: 0 0 166px; scroll-snap-align: start; }
  .tile-number { margin-top: 10px; font-size: 19px; }
  .tile-title { font-size: 13px; line-height: 1.25; }
  .photo-scene { min-height: 100svh; }
  .scene-caption { padding: 142px var(--content-edge) max(25px, env(safe-area-inset-bottom)); }
  .scene-content, .photo-scene:not(.chapter-opening)[data-text-position="left"] .scene-content {
    display: flex; flex-direction: column; gap: 43px; padding: 0 0 55px;
  }
  .chapter-opening .scene-content { min-height: 56svh; }
  .chapter-number { font-size: 13px; margin-bottom: 10px; }
  .chapter-title { max-width: 500px; font-size: clamp(33px, 8.9vw, 48px); line-height: 1.05; }
  .chapter-description { margin-top: 20px; max-width: 450px; font-size: 15px; line-height: 1.5; }
  .scene-content > .testimony, .scene-content > .caption-feature { width: 100%; max-width: 470px; align-self: flex-end; }
  .quotation-text { font-size: clamp(26px, 7.2vw, 37px); line-height: 1.2; }
  .testimony-long .quotation-text { font-size: clamp(21px, 5.6vw, 29px); line-height: 1.3; }
  .quotation-mark { font-size: 65px; height: .65em; }
  .attribution { font-size: 10px; margin-top: 19px; }
  .testimony-context { font-size: 10px; max-width: 300px; }
  .photo-scene:not(.chapter-opening) .scene-content { min-height: 56svh; padding-top: 5svh; }
  .photo-scene[data-mobile-text="bottom"] .scene-content { padding-top: var(--mobile-text-offset, 40svh); }
  .photo-scene[data-intro-position="lower"] .chapter-introduction { padding-top: 0; }
  .photo-scene::after {
    background: linear-gradient(0deg, rgb(0 10 14 / .88), rgb(0 10 14 / var(--shade)) 70%, rgb(0 10 14 / .15)),
      linear-gradient(90deg, rgb(0 10 14 / .1), transparent);
  }
  .caption-label { font-size: 10px; margin-bottom: 16px; }
  .caption-text { font-size: clamp(23px, 6.2vw, 31px); line-height: 1.35; }
  .perspective-title { font-size: 33px; }
  .photo-meta { display: block; margin-bottom: 14px; }
  .photo-caption { font-size: 10px; line-height: 1.5; max-width: 100%; }
  .photo-credit { margin-top: 10px; font-size: 9px; }
  .photo-progress { margin-bottom: 17px; gap: 12px; }
  .progress-dot { width: 44px; height: 44px; }
  .progress-count { font-size: 11px; }
  .chapter-controls { gap: 18px; align-items: flex-start; }
  .chapter-adjacent { width: 47%; max-width: 47%; gap: 7px; align-items: flex-start; }
  .chapter-adjacent .navigation-image { display: none; }
  .chapter-arrow { font-size: 25px; line-height: 1.4; }
  .chapter-direction { font-size: 9px; line-height: 1.7; }
  .chapter-adjacent-title { font-size: 11px; line-height: 1.25; }
  .colophon { font-size: 9px; margin-top: 28px; }
}

@media (min-width: 701px) and (max-height: 720px) {
  .hero { padding-top: 145px; gap: 35px; }
  .hero-main { margin-left: 3vw; }
  .exhibition-title { font-size: clamp(76px, 7.5vw, 108px); }
  .subtitle { font-size: clamp(30px, 2.8vw, 43px); }
  .hero-introduction { font-size: 16px; }
  .chapter-tile .navigation-image { aspect-ratio: 2.5; }
  .scene-caption { padding-top: 150px; }
}
@media (max-width: 350px) {
  :root { --edge: 18px; --content-edge: 20px; }
  .brand { width: 58px; }
  .header-links { gap: 14px; }
  .header-link { font-size: 11px; }
  .hero { padding-top: 126px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .enhanced .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .chapter-controls, .photo-progress, .chapter-strip, .skip-link { display: none; }
  .scene { break-inside: avoid; print-color-adjust: exact; }
  .enhanced .reveal { opacity: 1; transform: none; }
}
