/* Two Worlds — photo essay pages (armenia-2015, georgia-2015, …).
   Loaded after base.css. A page sets --native-font (local script), --map-ratio and, if the map is zoomed, the .stage box. */
/* VOICE: a travel magazine feature — quiet, photographic, generous air.
   IDEA: the printed photo essay: full-bleed opener, display title cut into the photo, numbered plates.
   PICTURE: Shaun's photographs, never cropped; the dot map as the one drawn figure.
   COLOUR/TYPE: ink ground, paper type, Japanese indigo and oxide as the only accents; Newsreader, Inter Tight, Plex Mono.
   LAYOUT: one calm column up to 1240px; plates alternate wide, offset and paired. */
* { min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--paper); } a:hover { color: var(--oxide-light); }
.serif { font-family: var(--serif); }
.mono { font-family: var(--sans); font-size: 12px; letter-spacing: .02em; }
.mono-keep { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--oxide-light); transform-origin: 0 50%; transform: scaleX(0); z-index: 20; }
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--serif); font-size: 22px; text-decoration: none; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px; }
.nav-links a { padding: 12px 14px; text-decoration: none; color: rgba(241,238,231,.85); font-family: var(--sans); font-size: 12px; letter-spacing: .02em; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.nav-links a[aria-current] { color: var(--paper); background: rgba(33,54,79,.85); border-radius: 999px; text-shadow: none; }
.opener { position: relative; }
.opener::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(to bottom, rgba(11,11,12,.55), rgba(11,11,12,0)); pointer-events: none; z-index: 1; }
.cover { display: block; width: 100%; height: min(92vh, calc(56.25vw + 120px)); min-height: 420px; object-fit: cover; object-position: 50% 62%; }
.opener::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to bottom, rgba(11,11,12,0), rgba(11,11,12,.9)); pointer-events: none; }
.title { position: relative; z-index: 2; margin-top: clamp(-200px, -15vw, -90px); }
.kicker { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--paper); }
.kicker .accent { color: var(--oxide-light); }
.opener + .title .kicker, .title h1, .title .native { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
h1 { margin: 14px 0 0; font-family: var(--serif); font-weight: 200; font-size: clamp(64px, 13vw, 196px); line-height: .86; letter-spacing: -0.035em; }
h1 em { font-style: italic; font-weight: 200; }
.title .native { margin: 10px 0 0; font-family: var(--native-font); font-weight: 300; font-size: clamp(20px, 2.4vw, 30px); color: var(--mute); letter-spacing: .02em; }
.plate-head .native { font-family: var(--native-font); font-weight: 300; font-size: clamp(15px, 1.5vw, 19px); color: #CFCAC0; margin-top: 6px; }
.city .hy, .pin-label .hy { display: block; font-family: var(--native-font); font-size: .92em; opacity: .8; }
.city.up { transform: translate(-50%, calc(-100% - 8px)); text-align: center; }
.sea.edge-l { transform: translate(0, -50%); } .sea.edge-r { left: auto; transform: translate(0, -50%); }
.city.edge-b { top: auto; transform: translate(-50%, 0); }
@media (max-width: 700px) { .city.minor { display: none; } .city { font-size: 12px; } .country { font-size: 11px; } .pin { width: 12px; height: 12px; margin: -6px 0 0 -6px; } .pin-label { font-size: 11px; padding: 3px 8px; } }
.subtitle { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(30px, 4.6vw, 64px); line-height: 1; color: #D8D4CC; }
.facts .span { grid-column: 1 / -1; }
.deck { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 64px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.deck p { margin: 0; }
.standfirst { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; color: #E6E2DA; max-width: 30ch; }
.standfirst::first-letter { font-size: 3.1em; float: left; line-height: .78; margin: 4px 10px 0 0; font-weight: 200; color: var(--oxide-light); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; align-content: start; }
.facts dt { font-family: var(--sans); font-size: 11px; letter-spacing: .02em; color: var(--mute); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; }
.route { padding-top: clamp(80px, 10vw, 140px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.sec-head .mono { color: var(--mute); }
.map-card.tall { max-width: 600px; margin-inline: auto; }
.map-card { background: #121417; border: 1px solid var(--line); color: var(--soft); padding: clamp(12px, 2.5vw, 32px); }
.map { position: relative; width: 100%; aspect-ratio: var(--map-ratio, 2240 / 1536); overflow: hidden; }
/* .stage: draw the full plate larger and frame part of it (set its size on the page) */
.stage { position: absolute; inset: 0; }
.map > img, .map > svg, .stage > img, .stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the essay's own country: neighbours' dots dimmed, its own drawn again at full strength */
.stage > img { opacity: .38; }
.home-land { filter: brightness(1.6); }
.country.home { color: var(--paper); font-weight: 500; }
@keyframes march { to { stroke-dashoffset: -34; } }
.march { animation: march 1.8s linear infinite; }
.lbl { position: absolute; white-space: nowrap; pointer-events: none; font-family: var(--sans); text-shadow: 0 0 3px #121417, 0 0 8px #121417, 0 0 14px #121417; }
.country { transform: translate(-50%, -50%); font-size: clamp(12px, 1.3vw, 15px); letter-spacing: .04em; color: #8A8F96; }
.sea { transform: translate(-50%, -50%); text-align: center; line-height: 1.05; font-family: var(--serif); font-style: italic; font-size: clamp(14px, 1.7vw, 20px); color: #7D848C; }
.dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--paper); }
.dot.ctx { background: #121417; border: 1.5px solid var(--indigo-light); }
.city { font-size: clamp(13px, 1.5vw, 16px); line-height: 1.25; color: var(--paper); transform: translate(12px, -50%); }
.city.left { transform: translate(calc(-100% - 12px), -50%); }
.city.ctx { color: var(--mute); }
.pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--oxide-light); box-shadow: 0 0 0 clamp(4px, 0.8vw, 9px) rgba(79,193,182,.25); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,193,182,.4); } 100% { box-shadow: 0 0 0 20px rgba(79,193,182,0); } }
.pin::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: pulse 2.2s ease-out 3; }
.pin-label { transform: translate(18px, -150%); padding: 4px 11px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: clamp(11px, 1.2vw, 13px); }
.map-note { margin: 14px 0 0; font-family: var(--sans); font-size: 11px; line-height: 1.6; color: var(--mute); }
.plate { padding-top: clamp(96px, 12vw, 170px); }
.plate-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; align-items: end; margin-bottom: 24px; padding-top: 22px; border-top: 1px solid var(--rule); }
.plate-head .num { grid-row: span 3; font-family: var(--serif); font-style: italic; font-weight: 200; font-size: clamp(56px, 7vw, 96px); line-height: .8; color: var(--oxide-light); }
.plate-head .place h2 { margin: 0; font: inherit; letter-spacing: inherit; }
.plate-head .place { display: flex; gap: 16px; align-items: baseline; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.01em; }
.plate-head .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--mute); }
.plate img { display: block; width: 100%; height: auto; }
.plate .lead-photo img { width: auto; max-width: 100%; max-height: 88vh; margin: 0 auto; }
.plate .rest { margin-top: clamp(28px, 4vw, 56px); }
.pair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 1.4vw, 18px); align-items: start; }
/* feature: edge to edge */
.plate.feature { max-width: none; padding-left: 0; padding-right: 0; }
.plate.feature > .plate-head, .plate.feature > .line { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: clamp(18px, 4vw, 40px); padding-right: clamp(18px, 4vw, 40px); }
.plate.feature > .plate-head { border-top: 0; }
.plate.feature > .line { max-width: 1240px; font-size: clamp(22px, 2.6vw, 34px); }
.plate.feature > .line span { display: block; }
/* inset: narrow photo, caption as a pull quote above */
.plate.inset .line { order: -1; margin: 0 auto 32px; max-width: 760px; text-align: center; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; }
.plate.inset .photos { max-width: 760px; margin: 0 auto; }
.plate.inset { display: flex; flex-direction: column; }
.plate.inset .plate-head { order: -2; }
/* carousel */
.carousel { position: relative; }
.carousel .track { margin-right: calc(50% - 50vw); padding-right: clamp(18px, 4vw, 40px); }
.track { display: flex; gap: clamp(10px, 1.4vw, 18px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.track::-webkit-scrollbar { display: none; }
.track figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.track img { height: clamp(260px, 58vh, 640px); width: auto; max-width: 88vw; object-fit: contain; }
.c-ctrl[hidden] { display: none; }
.c-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.c-ctrl .count { color: var(--mute); }
.c-btns { display: flex; gap: 8px; }
.c-btns button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #3A3A3E; background: transparent; color: var(--paper); font-size: 18px; cursor: pointer; }
.c-btns button:hover { border-color: var(--paper); }
.c-btns button:disabled { opacity: .3; cursor: default; }
.line { margin: 18px 0 0; max-width: none; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.4; color: #D8D4CC; }
.line:empty { display: none; }
.plate.pair .photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 1.4vw, 18px); align-items: start; }
.plate.offset .body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(24px, 4vw, 56px); align-items: end; }
.plate.offset .line { margin: 0; font-size: clamp(22px, 2.3vw, 30px); }
.plate.offset.flip .body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.plate.offset.flip .line { order: 2; }
@media (max-width: 700px) { .plate.offset .body, .plate.offset.flip .body { grid-template-columns: minmax(0, 1fr); } .plate.offset .line { order: 2; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .march, .pin::after { animation: none; } .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.score-wrap { padding-top: clamp(110px, 14vw, 190px); }
.score { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; padding: clamp(28px, 4vw, 52px); background: var(--indigo); }
@media (max-width: 640px) { .score { grid-template-columns: minmax(0, 1fr); } }
.score .label { margin: 0; color: #C9D3E0; }
.score h3 { margin: 14px 0 10px; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -0.01em; }
.score h3 a { text-decoration: none; }
.score p { margin: 0; color: #C9D3E0; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--paper); color: #111214; text-decoration: none; font-family: var(--sans); font-size: 12px; letter-spacing: .02em; white-space: nowrap; justify-self: start; }
.btn:hover { background: #fff; color: var(--oxide); }
.leg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 72px; padding-bottom: 96px; }
.leg div:last-child { text-align: right; }
.leg .mono { color: var(--mute); font-size: 11px; }
.leg .serif { display: block; margin-top: 8px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 300; color: #8A8780; }
.fine { border-top: 1px solid var(--rule); padding-top: 24px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute); }
.stopdot { cursor: pointer; z-index: 2; transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.stopdot::before { content: ''; position: absolute; inset: -18px; border-radius: 50%; }
.dot.stopdot:hover, .dot.stopdot:focus-visible { background: var(--oxide-light); }
.dot.stopdot.on { background: var(--oxide-light); }
.pin.stopdot.on { box-shadow: 0 0 0 14px rgba(79,193,182,.28); }
.dot.capital { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; background: radial-gradient(circle, var(--paper) 30%, #121417 34%); border: 2px solid var(--paper); }
.dot.capital.on, .dot.capital:hover, .dot.capital:focus-visible { background: radial-gradient(circle, var(--oxide-light) 30%, #121417 34%); border-color: var(--oxide-light); }
.city.cap { font-size: clamp(15px, 1.8vw, 19px); font-weight: 500; color: var(--paper); }
.city.cap .k { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .02em; color: #8A8F96; }
.plate { scroll-margin-top: -40px; }
.to-map { margin-left: auto; align-self: start; padding: 10px 0; color: var(--mute); text-decoration: none; }
.to-map:hover { color: var(--oxide-light); }
/* stop guide that follows the reader */
.rail { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 15; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(17,18,20,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 24px rgba(0,0,0,.35); transform: translate(-50%, 140%); transition: transform .45s cubic-bezier(.2,.7,.2,1); max-width: calc(100vw - 20px); }
.rail.show { transform: translate(-50%, 0); }
.rail .nb { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; border: 0; background: transparent; color: var(--paper); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rail .nb:hover { background: rgba(241,238,231,.08); }
.rail .nb:disabled { opacity: .25; cursor: default; background: transparent; }
.rail .nb:focus-visible, .rail .top-btn:focus-visible { outline: 2px solid var(--oxide-light); outline-offset: 2px; }
.rail .now { display: flex; flex-direction: column; justify-content: center; min-width: 0; width: clamp(92px, 26vw, 150px); padding: 0 4px; line-height: 1.15; }
.rail .now b { font-family: var(--serif); font-weight: 400; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .now small { font-family: var(--native-font); font-size: 12px; color: #8A8780; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rail .mini { position: relative; width: 64px; height: 56px; flex: 0 0 auto; }
.rail .mini svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.rail .mini a { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; display: flex; align-items: center; justify-content: center; }
.rail .mini i { width: 6px; height: 6px; border-radius: 50%; background: rgba(241,238,231,.5); transition: background-color .25s ease; }
.rail .mini a.cap i { width: 9px; height: 9px; background: radial-gradient(circle, rgba(241,238,231,.85) 32%, transparent 36%); border: 1.5px solid rgba(241,238,231,.85); }
.rail .mini a.on i { background: var(--oxide-light); }
.rail .mini a.cap.on i { background: radial-gradient(circle, var(--oxide-light) 32%, transparent 36%); border-color: var(--oxide-light); }
.rail .mini a:hover i { background: var(--paper); }
.rail .top-btn { height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(241,238,231,.25); background: transparent; color: var(--paper); cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; letter-spacing: .02em; }
.rail .top-btn:hover { border-color: var(--paper); }
@media (max-width: 420px) { .rail { gap: 2px; padding: 4px 6px; } .rail .nb { width: 40px; } .rail .mini { width: 54px; height: 48px; } .rail .now { width: 92px; } .rail .top-btn { padding: 0 11px; } }
/* feedback */
.feedback { padding-top: 40px; padding-bottom: 72px; }
.fb { border-top: 1px solid var(--rule); padding-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; }
@media (max-width: 760px) { .fb { grid-template-columns: minmax(0, 1fr); } }
.fb h2 { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.fb .intro { margin: 14px 0 0; color: #CFCAC0; max-width: 34ch; }
.fb form { display: grid; gap: 18px; }
.fb fieldset { border: 0; margin: 0; padding: 0; }
.fb legend, .fb label { display: block; margin-bottom: 10px; font-family: var(--sans); font-size: 11px; letter-spacing: .02em; color: var(--mute); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font: inherit; letter-spacing: normal; text-transform: none; color: var(--paper); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #3A3A3E; border-radius: 999px; font-size: 14px; cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.chips input:checked + span { background: var(--paper); color: #111214; border-color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--oxide-light); outline-offset: 2px; }
.fb textarea, .fb input[type=email] { width: 100%; padding: 14px 16px; border: 1px solid #3A3A3E; border-radius: 4px; background: #121214; color: var(--paper); font: 16px/1.5 var(--sans); }
.fb textarea { min-height: 120px; resize: vertical; }
.fb textarea:focus, .fb input[type=email]:focus { outline: none; border-color: var(--oxide-light); }
.fb .send { justify-self: start; border: 0; cursor: pointer; }
.fb .status { margin: 0; min-height: 1.5em; color: #CFCAC0; text-transform: none; letter-spacing: .02em; }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; padding-bottom: 40px; }
.more a { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.more a:hover { border-color: #4A4A50; background: #121214; color: var(--paper); }
.more .mono { color: var(--mute); font-size: 11px; }
.more .serif { font-size: 24px; font-weight: 300; }
.context { margin-top: 72px; margin-bottom: 8px; max-width: 760px; border-top: 1px solid #3A3E43; border-bottom: 1px solid #3A3E43; padding-top: 28px; padding-bottom: 28px; }
.context .mono { margin: 0 0 8px; font-size: 12px; color: var(--indigo-light); }
.context h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.context p:not(.mono) { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 64ch; }
.soon { font-size: .6em; color: var(--mute); white-space: nowrap; }
/* score card: the work's cover, when it has one (written by tools/build.py) */
.score:has(.score-cover) { grid-template-columns: auto minmax(0, 1fr) auto; }
.score-cover { display: block; width: clamp(96px, 12vw, 150px); box-shadow: 0 16px 32px rgba(0,0,0,.4); }
.score-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .score:has(.score-cover) { grid-template-columns: minmax(0, 1fr); } .score-cover { width: 120px; } }
