/* City pages: Kyoto and New York. Shares the tokens of style.css. */

.city { --accent: var(--urushi); --accent-2: var(--gold); --soft: var(--sakura); --night: var(--sumi); background: var(--night); }
.city.kyoto { --accent: #E2452B; --accent-2: #C9D88A; --soft: #F2B8A0; --night: #0E0B22; }
.city.ny { --accent: #FFC94D; --accent-2: #FF9EC4; --soft: #9EB4FF; --night: #070A24; }

/* ---------- Arrival board ---------- */
.arrival { position: fixed; inset: 0; z-index: 200; background: radial-gradient(120% 90% at 50% 0%, #1B2160, #070A24 70%); display: grid; place-items: center; transition: transform 1.3s cubic-bezier(.77,0,.18,1); }
.arrival.lift { transform: translateY(-101%); }
.arrival.gone { display: none; }
.board { width: min(92vw, 980px); display: grid; gap: 22px; }
.board .row1 { display: flex; justify-content: space-between; align-items: center; color: var(--accent-2); }
.board .row1 .cap { color: inherit; }
.board .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; animation: beat 1.6s infinite; }
.flaps { display: flex; gap: clamp(4px, .8vw, 10px); justify-content: center; flex-wrap: nowrap; }
.flap { position: relative; width: clamp(38px, 8.4vw, 96px); aspect-ratio: 3 / 4.2; background: linear-gradient(180deg, #1A1F45 0 49.4%, #0A0D2A 49.6% 100%); border-radius: 6px; display: grid; place-items: center; font-family: var(--wide); font-weight: 700; font-size: clamp(22px, 5vw, 58px); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(255,246,236,.08), 0 10px 30px rgba(0,0,0,.4); }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
.flap.set { color: var(--accent); }
.board .row2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 1px solid var(--hair); padding-top: 18px; }
.board .row2 div { display: grid; gap: 4px; }
.board .row2 .cap { color: var(--smoke); }
.board .row2 b { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 2vw, 26px); }
.board .row2 .jp { font-family: var(--mincho); }
@media (max-width: 700px) { .board .row2 { grid-template-columns: 1fr 1fr; } }

/* leaving: a curtain drops before the next page */
.leave { position: fixed; inset: 0; z-index: 210; pointer-events: none; transform: translateY(-101%); transition: transform .8s cubic-bezier(.77,0,.18,1);
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,0) 10%, rgba(255,255,255,.06) 18%, rgba(0,0,0,.28) 28%, rgba(0,0,0,0) 38%, rgba(255,255,255,.06) 48%, rgba(0,0,0,.3) 58%, rgba(0,0,0,0) 68%, rgba(255,255,255,.06) 78%, rgba(0,0,0,.3) 88%, rgba(0,0,0,0)), linear-gradient(180deg, #B4200F, #E2361C 50%, #A31A0C); }
.leave.on { transform: none; }

/* ---------- City header ---------- */
.city header .back { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.c-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.c-hero .bg { position: absolute; inset: -6%; background-size: cover; background-position: center; transform: scale(1.1); will-change: transform; }
.c-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--night) 0%, rgba(14,11,34,0) 45%), linear-gradient(90deg, rgba(7,10,36,.75), rgba(7,10,36,0) 60%); }
.c-hero .in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(56px, 9vh, 110px); }
.c-hero .eyebrow { color: var(--accent-2); margin-bottom: 18px; }
.c-hero h1 { font-size: clamp(96px, 17vw, 300px); line-height: .82; letter-spacing: -.02em; }
.c-hero h1 .ch { display: inline-block; transform: translateY(105%); transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.c-hero h1 .mask { display: block; overflow: hidden; padding-bottom: .05em; }
.c-hero.live h1 .ch { transform: none; }
.c-hero .sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 2.6vw, 40px); color: var(--soft); margin-top: 8px; max-width: 30ch; opacity: 0; transform: translateY(20px); transition: opacity 1.2s .7s, transform 1.2s .7s cubic-bezier(.2,.7,.1,1); }
.c-hero.live .sub { opacity: 1; transform: none; }
.c-hero .meta { display: flex; gap: clamp(20px, 4vw, 56px); margin-top: 40px; flex-wrap: wrap; color: var(--smoke); opacity: 0; transition: opacity 1.2s 1s; }
.c-hero.live .meta { opacity: 1; }
.c-hero .meta div { display: grid; gap: 2px; }
.c-hero .meta b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--ivory); font-variant-numeric: tabular-nums; }
.c-hero .tate-big { position: absolute; z-index: 2; right: clamp(16px, 4vw, 64px); top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 800; font-size: clamp(64px, 9vw, 150px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,246,236,.75); letter-spacing: .1em; }
.c-hero .tate-big b { color: var(--accent); -webkit-text-stroke: 0; }
@media (max-width: 760px) { .c-hero .tate-big { font-size: 64px; top: 22%; } }

/* ---------- Intro ---------- */
.c-intro { padding: clamp(110px, 14vw, 200px) 0 clamp(60px, 8vw, 120px); }
.c-intro .grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px; align-items: end; }
.c-intro .cap { color: var(--accent-2); grid-column: 1 / span 3; align-self: start; padding-top: 18px; }
.c-intro p.big { grid-column: 4 / span 9; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4vw, 64px); line-height: 1.1; }
.c-intro p.big em { color: var(--soft); }
.c-intro p.big .w { opacity: .16; transition: opacity .6s; }
.c-intro p.big .w.on { opacity: 1; }
@media (max-width: 860px) { .c-intro .cap, .c-intro p.big { grid-column: 1 / -1; } }

/* ---------- The walk: pinned horizontal journey ---------- */
.walk { position: relative; }
.walk .pin { position: relative; padding: 40px 0 80px; background: var(--walk-bg, var(--night)); transition: background .2s linear; }
.walk.pinned .pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 36px; }
.walk .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.walk .head h2 { font-size: clamp(44px, 5vw, 84px); line-height: .95; }
.walk .head h2 em { color: var(--soft); }
.walk .head .clock { font-family: var(--serif); font-size: clamp(40px, 4.6vw, 76px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.track { display: flex; gap: 48px; padding: 0 clamp(20px, 5vw, 72px); overflow-x: auto; scroll-snap-type: x mandatory; will-change: transform; }
.walk.pinned .track { overflow: visible; scroll-snap-type: none; padding-left: 30vw; padding-right: 20vw; }
.stop { flex: 0 0 min(80vw, calc(50vh * 1.25)); scroll-snap-align: start; display: grid; gap: 16px; }
.stop.tall { flex-basis: min(66vw, calc(50vh * .8)); }
.stop .ph { position: relative; height: min(50vh, 500px); overflow: hidden; }
.stop .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s cubic-bezier(.2,.7,.1,1); }
.stop.seen .ph img { transform: scale(1); }
.stop .ph .time { position: absolute; left: 18px; top: 16px; font-family: var(--wide); font-weight: 700; font-size: 10px; letter-spacing: .3em; background: rgba(7,10,36,.55); backdrop-filter: blur(6px); padding: 8px 12px; color: var(--ivory); }
.stop .cap-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; border-top: 1px solid var(--hair); padding-top: 14px; }
.stop h3 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1; }
.stop h3 small { display: block; font-family: var(--mincho); font-size: 15px; color: var(--accent-2); margin-top: 6px; letter-spacing: .1em; }
.stop p { color: var(--smoke); font-size: 15px; max-width: 42ch; }
.walk .bar { margin: 26px clamp(20px, 5vw, 72px) 0; height: 1px; background: var(--hair); position: relative; }
.walk .bar i { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 760px) { .stop .cap-row { grid-template-columns: 1fr; } }

/* ---------- Lessons ---------- */
.lessons { padding: clamp(110px, 14vw, 200px) 0; position: relative; overflow: hidden; }
.lessons .sec-head h2 em { color: var(--soft); }
.lesson { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 48px 0; border-top: 1px solid var(--hair); position: relative; }
.lesson:last-child { border-bottom: 1px solid var(--hair); }
.lesson .glyph { font-family: var(--mincho); font-weight: 800; font-size: clamp(110px, 14vw, 230px); line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--accent); transition: color .8s, transform 1s cubic-bezier(.2,.7,.1,1); }
.lesson .glyph.latin { font-family: var(--serif); font-weight: 300; font-style: italic; -webkit-text-stroke: 1px var(--accent); letter-spacing: -.02em; }
.lesson:hover .glyph { color: var(--accent); transform: translateX(14px); }
.lesson h3 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1; margin-bottom: 12px; }
.lesson h3 small { font-family: var(--wide); font-weight: 700; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-2); display: block; margin-bottom: 14px; }
.lesson p { color: var(--smoke); max-width: 52ch; }
.lesson .for { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ivory); }
.lesson .for::before { content: "For your brand: "; color: var(--soft); }
@media (max-width: 860px) { .lesson { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Full-bleed quote ---------- */
.c-quote { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.c-quote .bg { position: absolute; inset: -10% 0; background-size: cover; background-position: center; will-change: transform; }
.c-quote::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--night), rgba(7,10,36,.55) 30%, rgba(7,10,36,.55) 70%, var(--night)); }
.c-quote .wrap { position: relative; z-index: 2; }
.c-quote blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 92px); line-height: 1.05; max-width: 16ch; }
.c-quote blockquote em { color: var(--accent); }
.c-quote .who { margin-top: 30px; color: var(--accent-2); }

/* ---------- Next stop ---------- */
.next { position: relative; height: 92vh; min-height: 560px; overflow: hidden; display: block; text-decoration: none; }
.next .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2,.7,.1,1), filter 1s; filter: saturate(.75) brightness(.7); }
.next:hover .bg { transform: scale(1); filter: none; }
.next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,10,36,.9), rgba(7,10,36,.1) 60%); }
.next .in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(48px, 8vh, 96px); }
.next .cap { color: var(--accent-2); }
.next h2 { font-size: clamp(80px, 13vw, 230px); line-height: .85; margin-top: 12px; transition: letter-spacing 1s cubic-bezier(.2,.7,.1,1); }
.next:hover h2 { letter-spacing: .02em; }
.next .go { margin-top: 26px; }

/* ---------- Call to action ---------- */
.c-cta { padding: clamp(100px, 12vw, 170px) 0; text-align: center; }
.c-cta h2 { font-size: clamp(48px, 6.4vw, 108px); line-height: .95; max-width: 14ch; margin: 18px auto 34px; }
.c-cta h2 em { color: var(--soft); }
.c-cta .cap { color: var(--accent-2); }
.c-cta .btn { justify-content: center; }

.city footer .credits { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--smoke); line-height: 1.6; }

/* ---------- Home page: two city portals ---------- */
.cities { display: flex; height: 92vh; min-height: 560px; border-block: 1px solid var(--hair); }
.portal { position: relative; flex: 1; overflow: hidden; text-decoration: none; transition: flex 1s cubic-bezier(.2,.7,.1,1); display: block; }
.portal + .portal { border-left: 1px solid var(--hair); }
.cities:hover .portal { flex: .8; }
.cities .portal:hover { flex: 1.5; }
.portal .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); filter: saturate(.7) brightness(.62); transition: transform 1.6s cubic-bezier(.2,.7,.1,1), filter .8s; }
.portal:hover .bg { transform: scale(1); filter: saturate(1.05) brightness(.85); }
.portal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,16,48,.92), rgba(12,16,48,0) 60%); }
.portal .in { position: absolute; z-index: 2; left: clamp(20px, 3vw, 48px); right: clamp(20px, 3vw, 48px); bottom: clamp(28px, 6vh, 64px); }
.portal .cap { color: var(--gold); }
.portal h3 { font-size: clamp(60px, 8vw, 140px); line-height: .85; margin: 10px 0 8px; }
.portal h3 span { font-family: var(--mincho); font-weight: 800; font-size: .32em; color: var(--urushi-text); margin-left: .3em; vertical-align: .9em; }
.portal p { color: var(--smoke); max-width: 34ch; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.portal:hover p, .portal:focus-visible p { opacity: 1; transform: none; }
.portal .clock { position: absolute; z-index: 2; top: clamp(20px, 4vh, 40px); right: clamp(20px, 3vw, 48px); font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.portal .clock small { display: block; text-align: right; font-family: var(--wide); font-size: 9px; letter-spacing: .26em; color: var(--smoke); }
.cities-head { padding: clamp(100px, 12vw, 170px) 0 48px; }
@media (max-width: 760px) { .cities { flex-direction: column; height: auto; } .portal { height: 70vh; } .portal + .portal { border-left: 0; border-top: 1px solid var(--hair); } .portal p { opacity: 1; transform: none; } .cities:hover .portal, .cities .portal:hover { flex: 1; } }

@media (prefers-reduced-motion: reduce) {
  .arrival { display: none; }
  .c-hero h1 .ch { transform: none; }
  .c-hero .sub, .c-hero .meta { opacity: 1; transform: none; }
  .stop .ph img { transform: none; }
  .c-intro p.big .w { opacity: 1; }
}

footer .col a { text-decoration: none; transition: color .3s; }
footer .col a:hover { color: var(--ivory); }
footer .wrap.credits { display: block; }

/* ---------- Film (New York) ---------- */
.film { padding: clamp(60px, 8vw, 120px) 0 clamp(110px, 14vw, 200px); position: relative; overflow: hidden; }
.film::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 75% 50%, rgba(226,54,28,.22), transparent 70%), radial-gradient(40% 40% at 20% 30%, rgba(158,180,255,.12), transparent 70%); pointer-events: none; }
.film-grid { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.film-text .cap { color: var(--accent); }
.film-text h2 { font-size: clamp(56px, 7vw, 120px); line-height: .92; margin: 18px 0 22px; }
.film-text h2 em { color: var(--accent-2); }
.film-text .lead { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.35; color: var(--ivory); max-width: 34ch; }
.chapters { list-style: none; margin: 36px 0 26px; border-top: 1px solid var(--hair); }
.chapters li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); cursor: pointer; color: var(--smoke); position: relative; transition: color .3s, padding .4s; }
.chapters li b { font-family: var(--wide); font-weight: 700; font-size: 10px; letter-spacing: .2em; color: var(--smoke); }
.chapters li span { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.chapters li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--accent); transition: width .5s; }
.chapters li:hover { color: var(--ivory); }
.chapters li.on { color: var(--ivory); padding-left: 12px; }
.chapters li.on b { color: var(--accent); }
.chapters li.on::before { width: 100%; }
.film-text .note { color: var(--smoke); font-style: italic; font-family: var(--serif); font-size: 19px; }
.screen { justify-self: center; display: grid; gap: 14px; justify-items: center; }
.screen-frame { position: relative; height: min(82vh, 860px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255,246,236,.14), 0 40px 120px rgba(0,0,0,.6), 0 0 90px rgba(226,54,28,.25); transform: perspective(1400px) rotateY(-6deg); transition: transform 1.2s cubic-bezier(.2,.7,.1,1); }
.screen:hover .screen-frame { transform: perspective(1400px) rotateY(0deg); }
.screen-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-ui { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(7,10,36,.45); backdrop-filter: blur(10px); border-radius: 999px; opacity: 0; transition: opacity .4s; }
.screen:hover .screen-ui, .screen-ui:focus-within { opacity: 1; }
.sbtn { background: none; border: 1px solid rgba(255,246,236,.4); color: var(--ivory); border-radius: 999px; padding: 6px 14px; font-family: var(--wide); font-weight: 700; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.sbtn:hover { background: var(--ivory); color: var(--sumi); }
.sbar { height: 2px; background: rgba(255,246,236,.25); position: relative; border-radius: 2px; overflow: hidden; }
.sbar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.screen-cap { color: var(--smoke); }
@media (hover: none) { .screen-ui { opacity: 1; } }
@media (max-width: 900px) { .film-grid { grid-template-columns: 1fr; } .screen-frame { height: auto; width: min(100%, 420px); transform: none; } }
