/* Two Worlds — home page (index.html). Loaded after base.css. */
* { min-width: 0; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 16px/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } a:hover { color: var(--oxide-light); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); }
.mono { font-family: var(--sans); font-size: 12px; letter-spacing: .02em; }
.mono-keep { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.label { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.serif { font-family: var(--serif); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
@keyframes pan { from { transform: scale(1.25) translate(4%, 2%); } to { transform: scale(1.25) translate(-4%, -2%); } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }
.rise { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; } .d1 { animation-delay: .15s; } .d2 { animation-delay: .45s; } .d3 { animation-delay: .75s; } .d4 { animation-delay: 1.05s; }
.rule-in { transform-origin: left; animation: rule 1.4s cubic-bezier(.6,0,.2,1) .3s both; }
.drift { animation: drift 18s ease-in-out infinite alternate; } .pan { animation: pan 24s ease-in-out infinite alternate; }
.fade { animation: fade .7s cubic-bezier(.2,.7,.2,1) both; }
.zoom-img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); } .card:hover .zoom-img { transform: scale(1.07); }
@media (prefers-reduced-motion: reduce) { .rise, .rule-in, .drift, .pan, .fade, .blink, .draw, .reel .slide { animation: none !important; } .zoom-img, .door { transition: none; } }

/* nav + masthead */
.nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; }
.brand { font-family: var(--serif); font-size: 22px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.nav-links a, .nav-links button { min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.nav-links button:hover { color: var(--oxide-light); }
.mast { position: relative; overflow: hidden; }
.mast > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%); mask-image: linear-gradient(100deg, transparent 15%, #000 70%); }
.mast::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, var(--ink) 0%, rgba(12,13,15,0) 22%, rgba(12,13,15,0) 45%, var(--ink) 100%); }
.mast header { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 104px; }
.mast .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; color: var(--mute); }
.mast .line { margin-top: 20px; height: 1px; background: #4C5157; }
h1 { margin: 40px 0 0; max-width: 1080px; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h1); line-height: .98; letter-spacing: -.03em; }
h1 span { display: block; }

/* two doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 24px; padding-bottom: 40px; }
.door { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); text-align: left; color: inherit; font: inherit; padding: 0; cursor: pointer; transition: transform .5s cubic-bezier(.2,.7,.2,1), border-color .5s ease; }
.door:hover { transform: translateY(-6px); border-color: #4C5157; color: inherit; }
.door .pic { height: 280px; overflow: hidden; }
/* Music door reel: the score covers take turns, slow crossfade */
.reel { position: relative; } .reel .slide { position: absolute; inset: 0; overflow: hidden; } .reel img { position: absolute; inset: 0; }
.reel .slide + .slide { animation: reel 35s ease-in-out infinite; } .reel .slide + .slide + .slide { animation-delay: -28s; } .reel .slide + .slide + .slide + .slide { animation-delay: -21s; } .reel .slide + .slide + .slide + .slide + .slide { animation-delay: -14s; }
.reel .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #F1EEE7; line-height: 1.15; }
.reel .cap-darial, .reel .cap-gegham, .reel .cap-kosciuszko, .reel .cap-marnovo { font-family: var(--serif); font-size: 22px; } .reel .cap-gegham, .reel .cap-kosciuszko, .reel .cap-marnovo { font-style: italic; } .reel .cap-k { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.reel .cap-forlop { font-family: Arial, 'Liberation Sans', Helvetica, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
@keyframes reel { 0%, 16% { opacity: 0; } 20%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } } .door .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.door .txt { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.door .k { color: var(--oxide-light); }
.door .h { font-family: var(--serif); font-size: 40px; line-height: 1.05; }
.door .s { color: var(--soft); }

/* pinned switch */
#music, #travel { scroll-margin-top: 72px; }
.bar { position: sticky; top: 0; z-index: 20; background: rgba(12,13,15,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bar .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.bar .now { color: var(--mute); }
.switch { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 300px); padding: 4px; border: 1px solid #4C5157; border-radius: 999px; }
.switch .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--paper); transition: transform .55s cubic-bezier(.6,0,.2,1); }
[data-side="travel"] .switch .thumb { transform: translateX(100%); }
.switch button { position: relative; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--paper); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: color .4s ease; }
.switch button[aria-pressed="true"] { color: var(--ink); }

/* section heads */
.sec { padding-top: 128px; padding-bottom: 136px; }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.sec-top > div { display: flex; flex-direction: column; gap: 16px; }
.sec-top p { margin: 0; flex: 0 1 360px; font-size: 17px; }
h2.music { margin: 0; font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(72px, 11vw, 168px); line-height: .85; letter-spacing: -.04em; }
h2.travel { margin: 0; font-weight: 600; font-size: clamp(72px, 11vw, 168px); line-height: .85; letter-spacing: -.05em; text-transform: uppercase; }

/* music programme */
#music .sec-top p { color: var(--mute); }
.prog-head { margin-top: 72px; display: flex; justify-content: space-between; color: var(--mute); }
.prog-rule { margin-top: 12px; height: 1px; background: var(--paper); }
.prog { list-style: none; margin: 0; padding: 0; }
.prog li { border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 24px; padding: 30px 0; transition: background-color .6s ease; }
.prog li.lit { background: rgba(79,193,182,.08); }
.prog .n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--mute-2); padding-top: 6px; }
.prog .row1 { display: flex; align-items: baseline; gap: 16px; }
.prog .t { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; font-style: italic; }
.prog .dots { flex: 1 1 40px; min-width: 24px; border-bottom: 1px dotted #4C5157; transform: translateY(-6px); }
.prog .y { font-family: var(--sans); font-size: 13px; color: var(--soft); }
.prog .row2 { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; }
.prog .ab { flex: 1 1 480px; color: var(--mute); max-width: 64ch; }
.prog .ln { display: flex; gap: 20px; font-size: 14px; color: var(--indigo-light); opacity: .55; transition: opacity .5s ease; }
.prog li:hover .ln, .prog li:focus-within .ln, .prog li.lit .ln { opacity: 1; }
.prog .ln a { padding: 10px 0; }

/* travel spread (paper) */
.paper { background: var(--paper); color: #111214; }
.paper a:hover { color: var(--oxide); }
#travel .sec-top p { color: var(--ink-soft); }
.k-red { color: var(--oxide); }
.next { margin-top: 72px; display: flex; flex-wrap: wrap; background: var(--paper-2); }
.next .pic { flex: 7 1 520px; height: 560px; overflow: hidden; display: block; } .next .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next .body { flex: 5 1 360px; padding: 48px 44px; display: flex; flex-direction: column; gap: 16px; }
.next h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.next p { margin: 0; font-size: var(--fs-lead); color: var(--ink-soft); }
.blink { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--oxide); margin-right: 10px; animation: blink 2.4s ease-in-out infinite; }
.stops { margin-top: 12px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 16px; }
.stops svg { grid-row: 1 / span 5; } .draw { stroke-dasharray: 520; animation: draw 2.6s cubic-bezier(.6,0,.2,1) .6s both; }
.stops span { height: 57px; } .stops span:last-child { height: 30px; }
.btn { align-self: flex-start; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; background: #111214; color: var(--paper); font-size: 15px; font-weight: 500; border: 0; cursor: pointer; }
.paper .btn:hover { color: var(--paper); background: var(--rule); }
.next .btn { margin-top: auto; }
.list-head { margin-top: 96px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; border-bottom: 1px solid #111214; padding-bottom: 12px; }
.list-head h3 { margin: 0; font-weight: 500; font-size: 13px; letter-spacing: .02em; }
.list-head a { font-size: 12px; }
.places { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 24px; }
.places a { display: flex; flex-direction: column; gap: 12px; }
.places .pic { aspect-ratio: 4 / 5; overflow: hidden; background: #DDD7CB; } .places .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.places .c { font-size: 11px; letter-spacing: .14em; color: #5E625F; }
.places .p { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.places .x { font-size: 15px; color: var(--ink-soft); }
.atlas-card { margin-top: 96px; position: relative; display: block; height: 320px; overflow: hidden; background: #121417; color: var(--paper); }
.atlas-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atlas-card .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,15,.92) 0%, rgba(12,13,15,.55) 45%, rgba(12,13,15,0) 75%); }
.atlas-card .in { position: relative; height: 100%; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; max-width: 560px; }
.atlas-card .k { color: var(--indigo-light); }
.atlas-card .h { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.paper .atlas-card:hover { color: var(--paper); }

.side-note-wrap { flex: 0 1 360px; display: flex; flex-direction: column; gap: 20px; }
.side-note-wrap p { flex: none; margin: 0; font-size: 17px; color: var(--ink-soft); }
.upnext { align-self: flex-start; display: inline-flex; flex-direction: column; gap: 4px; padding: 10px 14px; border: 1px solid #CFC8BA; font-size: 14px; }
.upnext .mono { font-size: 12px; }

/* travel: map first */
.map-wrap { margin-top: 64px; } .travel-sec .sec-top { margin-top: 0; }
.travel-sec .list-head { margin-top: 72px; }

/* essay entry with a rolling carousel on hover */
.essay { margin-top: 28px; display: flex; flex-wrap: wrap; background: var(--paper-2); }
.roll { flex: 7 1 520px; position: relative; height: 520px; overflow: hidden; display: block; background: #DDD7CB; }
.roll img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 4s ease; }
.roll img.on { opacity: 1; transform: none; }
.roll-dots { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; gap: 4px; opacity: 0; transition: opacity .4s ease; }
.roll-dots i { flex: 1; height: 2px; background: rgba(255,255,255,.35); } .roll-dots i.on { background: #fff; }
.roll-cap { position: absolute; left: 16px; bottom: 16px; padding: 4px 8px; background: rgba(12,13,15,.7); color: var(--paper); font-size: 12px; opacity: 0; transition: opacity .4s ease; }
.roll.playing .roll-dots, .roll.playing .roll-cap { opacity: 1; }
.essay .body { flex: 5 1 360px; padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; }
.essay h3 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.02em; }
.essay p { margin: 0; font-size: 17px; color: var(--ink-soft); }
.essay .stopline { line-height: 1.9; color: #5E625F; }
.essay .btn { margin-top: auto; }
/* stacked (phones, narrow windows): a shorter landscape photo so the title and button show on the same screen */
@media (max-width: 900px) { .roll { flex-basis: 100%; height: auto; aspect-ratio: 3 / 2; } .essay .body { padding: 28px 24px 32px; } }
@media (prefers-reduced-motion: reduce) { .roll img { transition: none; } }

/* also on this site: the other side, with the places and works that link the two */
.also-band { padding-top: 112px; padding-bottom: 112px; }
.also-travel { background: var(--paper); color: #111214; }
.also-music { background: var(--ink); border-top: 1px solid var(--rule); }
.also-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center; }
.also-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.also-txt h2 { margin: 0; }
.also-txt p { margin: 0; max-width: 44ch; font-size: var(--fs-lead); line-height: 1.55; }
.also-travel .also-txt p { color: var(--ink-soft); }
.also .go, .also-txt .go { margin-top: 8px; min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; gap: 10px; border: 0; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.also-travel .go { background: #111214; color: var(--paper); } .also-music .go { background: var(--paper); color: var(--ink); }
.also-lead { display: block; color: inherit; }
.also-lead .pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #DDD7CB; }
.also-lead .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.also-lead .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; font-size: 15px; }
.also-lead .more { display: inline-flex; align-items: center; gap: 8px; }
.also .big-t, .also-band .big-t { font-weight: 600; font-size: clamp(44px, 5vw, 72px); line-height: .9; letter-spacing: -.05em; text-transform: uppercase; }
.also .big-m, .also-band .big-m { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(48px, 5.4vw, 80px); line-height: .9; letter-spacing: -.04em; }
.x-head { margin: 88px 0 0; padding-bottom: 12px; border-bottom: 1px solid currentColor; }
.also-music .x-head { border-color: var(--rule); color: var(--mute); }
.x-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px 24px; }
.x-card { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.x-pic { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; background: #DDD7CB; }
.x-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.x-card:hover .x-pic img { transform: scale(1.05); }
.x-k { color: var(--oxide); } .also-music .x-k { color: var(--oxide-light); }
.x-t { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.x-s { font-size: 15px; color: var(--ink-soft); } .also-music .x-s { color: var(--mute); }
.x-more { margin-top: 2px; color: var(--oxide); } .also-music .x-more { color: var(--oxide-light); }
.also-travel a:hover { color: var(--oxide); }
@media (max-width: 800px) { .also-top { grid-template-columns: minmax(0, 1fr); } .also-band { padding-top: 72px; padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { .x-pic img { transition: none; } }
[hidden] { display: none !important; }

/* footer */
footer { padding-top: 96px; padding-bottom: 48px; border-top: 1px solid var(--rule); }
footer .me { margin: 0; max-width: 820px; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -.02em; }
footer .fine { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--mute); }
.ink-soft { color: var(--ink-soft); } .mute { color: var(--mute); } .k-light { color: var(--oxide-light); }

/* Desktop: the landing view (nav + hero) fits one screen. No scroll snapping: the page scrolls freely. */
@media (min-width: 900px) and (min-height: 620px) {
  body > .nav { min-height: 80px; padding-top: 18px; padding-bottom: 18px; }
  .hero { height: calc(100svh - 80px); min-height: 540px; display: flex; flex-direction: column; }
  .hero .mast { flex: none; }
  .hero .mast header { padding-top: clamp(12px, 3vh, 40px); padding-bottom: clamp(20px, 4.5vh, 52px); }
  .hero h1 { margin-top: clamp(14px, 2.6vh, 30px); font-size: clamp(44px, min(6.4vw, 9.5vh), 104px); }
  .hero .doors { flex: 1 1 auto; min-height: 0; padding-bottom: clamp(16px, 3vh, 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
  .hero .door { min-height: 0; overflow: hidden; }
  .hero .door .pic { position: relative; flex: 1 1 auto; height: auto; min-height: 110px; }
  .hero .door .pic img { position: absolute; inset: 0; }
  .hero .door .txt { flex: none; padding: 18px 28px 22px; gap: 6px; }
  .hero .door .h { font-size: clamp(28px, 4vh, 40px); }
  #music .sec { padding-top: 88px; }
}
