/* Gece Yarısı Gözlemevi — night-train graphics in a sky-tone ramp. */

:root {
  /* sky-tone ramp: each stop's ground is set by the Sun's depth at that stop */
  --z1: #34436e;   /* sunset */
  --z2: #26335c;   /* civil twilight */
  --z3: #1b2547;   /* nautical twilight */
  --z4: #121a36;   /* astronomical darkness begins */
  --z5: #0c1227;   /* full dark */
  --z6: #0a0f21;   /* midnight */
  --z7: #2b3562;   /* dawn */
  --z8: #efe4cf;   /* day */

  --fg: #efe6d2;
  --fg-dim: #c3cbe8;
  --cream: #f1e8d4;
  --cream-2: #e4d6b8;
  --ink: #1a1d2b;
  --ink-2: #444a5e;
  --red: #b3301a;
  --red-live: #e5603f;
  --amber: #ffb547;
  --amber-dim: #a87a33;
  --board: #0b0c10;
  --frame: #060912;
  --brass: #9c7a4c;
  --rule: rgba(239, 230, 210, 0.22);

  --display: 'Big Shoulders', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --text: 'Literata', Georgia, 'Times New Roman', serif;
  --dots: 'Doto', 'Big Shoulders', ui-monospace, monospace;

  --gut: clamp(1rem, 3.2vw, 3rem);
  --head-h: 3.6rem;
  --bar-h: 1.6rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  scrollbar-color: #3b4672 #0a0f21;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--bar-h) + 1rem); }
html:not(.anim) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--z6);
  color: var(--fg);
  font: 400 1.0625rem/1.62 var(--text);
  font-optical-sizing: auto;
  caret-color: var(--red-live);
  overflow-x: clip;
}
::selection { background: var(--amber); color: var(--board); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.zone-8 :focus-visible { outline-color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: -0.005em; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); text-transform: uppercase; margin-bottom: 1.4rem; }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0 0 1rem; max-width: 64ch; text-wrap: pretty; }
strong { font-weight: 650; }
.hint { color: var(--fg-dim); font-style: italic; font-size: 0.97rem; }
.fineprint { color: var(--fg-dim); font-size: 0.86rem; line-height: 1.5; max-width: 70ch; }
.zone-8 .fineprint, .zone-8 .hint { color: var(--ink-2); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--cream); color: var(--ink); padding: 0.6rem 1rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.skip:focus { top: 0.6rem; }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(8, 11, 24, 0.94); border-bottom: 1px solid rgba(239, 230, 210, 0.12); }
.mast-row { display: flex; align-items: center; gap: 1.2rem; height: var(--head-h); padding: 0 var(--gut); }
.wordmark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); font-size: 1.32rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.wordmark svg { width: 2.4rem; height: 1.45rem; overflow: visible; }
.wordmark svg path { stroke: var(--fg); stroke-width: 1.6; fill: none; }
.wordmark svg circle { fill: var(--fg); }
.wordmark svg circle:first-of-type { fill: var(--red-live); }
.mast-nav { display: flex; gap: 1.1rem; margin-left: auto; }
.mast-nav a { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.98rem; text-decoration: none; color: var(--fg-dim); padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.mast-nav a:hover, .mast-nav a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--red-live); }
.mast-tools { display: flex; align-items: center; gap: 0.7rem; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; }
.lang button, .tool { background: none; border: 0; cursor: pointer; font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; padding: 0.3rem 0.7rem; color: var(--fg-dim); }
.lang button[aria-pressed="true"] { background: var(--fg); color: var(--board); }
.tool { border: 1px solid var(--rule); border-radius: 999px; display: inline-flex; align-items: center; gap: 0.45rem; }
.tool::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1.5px solid currentColor; }
.tool[aria-pressed="true"] { color: var(--fg); }
.tool[aria-pressed="true"]::before { background: var(--red-live); border-color: var(--red-live); }
.mast-cta { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; background: var(--cream); color: var(--red); padding: 0.42rem 1rem; border-radius: 4px; white-space: nowrap; }
.mast-cta:hover { background: #fff6e2; }

.nightbar { display: flex; align-items: center; gap: 0.8rem; height: var(--bar-h); padding: 0 var(--gut); font-family: var(--display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.nb-track { position: relative; flex: 1; height: 0.5rem; }
.nb-svg { width: 100%; height: 100%; border-radius: 2px; overflow: hidden; }
.nb-cursor { position: absolute; left: 0; top: -0.3rem; width: 2px; height: 1.1rem; background: var(--fg); transform: translateX(0); will-change: transform; }
.nb-time { position: absolute; left: 0.4rem; top: -0.12rem; font-size: 0.8rem; color: var(--fg); background: rgba(8, 11, 24, 0.94); padding: 0 0.25rem; }
.nb-date, .nb-ends { white-space: nowrap; }
.nb-cursor.flip .nb-time { left: auto; right: 0.4rem; }
html:not(.anim) .nb-cursor { display: none; }

/* ---------- zones (the sky-tone ramp) ---------- */
.zone-1 { background: var(--z1); }
.zone-2 { background: linear-gradient(var(--z1), var(--z2) 50vh); }
.zone-3 { background: linear-gradient(var(--z2), var(--z3) 60vh); }
.zone-4 { background: linear-gradient(var(--z3), var(--z4) 60vh); }
.zone-5 { background: var(--z5); }
#tur.zone-5 { background: linear-gradient(var(--z4), var(--z5) 60vh); }
.zone-6 { background: var(--z6); }
#mevsim.zone-6 { background: linear-gradient(var(--z5), var(--z6) 60vh); }
.zone-7 { background: linear-gradient(var(--z6), var(--z7) 120vh); }
.zone-8 { background: var(--z8); color: var(--ink); }
#bilet.zone-8 { background: linear-gradient(var(--z7), #c98f72 22vh, #e9c9a6 44vh, var(--z8) 70vh); }
#bilet .sect-inner { padding-top: 34vh; }

.sect { position: relative; padding: clamp(5rem, 11vh, 9rem) 0 clamp(4rem, 9vh, 7rem); }
.sect-inner { max-width: 84rem; margin: 0 auto; padding: 0 var(--gut); }
.sect-head p { color: var(--fg); }
.zone-8 .sect-head p { color: var(--ink); }
.wide-head { max-width: 62rem; margin-bottom: 2.5rem; }

/* ---------- windows ---------- */
.window { position: relative; overflow: hidden; border-radius: 36px; background: #070b1a radial-gradient(120% 90% at 50% 120%, #1d2a52 0%, #0a1024 55%, #060914 100%); box-shadow: 0 0 0 1px var(--brass), 0 0 0 12px var(--frame), 0 0 0 13px rgba(156, 122, 76, 0.5), 0 28px 70px rgba(0, 0, 0, 0.45); isolation: isolate; }
.sky-host { position: absolute; inset: 0; }
.sky-host canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.win-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: inherit; }
.blind { position: absolute; inset: 0; z-index: 6; border-radius: inherit; background: var(--z2); box-shadow: inset 0 -1.2rem 0 #1b2547; }
.blind::after { content: ""; position: absolute; left: 50%; bottom: 0.35rem; width: 4.5rem; height: 0.5rem; margin-left: -2.25rem; border-radius: 0.25rem; background: var(--cream); }
.window-shade { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55); border-radius: inherit; }
.win-readout { position: absolute; left: 1.4rem; top: 1rem; z-index: 3; margin: 0; max-width: calc(100% - 2.8rem); font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.86rem; color: var(--fg); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9); font-variant-numeric: tabular-nums; }
.win-label { position: absolute; z-index: 2; left: 0; top: 0; pointer-events: none; font-family: var(--display); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); text-shadow: 0 1px 4px #000; white-space: nowrap; will-change: transform; }
.win-label.cardinal { font-size: 0.8rem; color: var(--fg-dim); }
.win-label.aim { color: var(--amber); font-size: 1.05rem; }
.win-label.planet { color: #ffd9a0; }

.compass { position: absolute; top: 0.7rem; right: 1rem; z-index: 3; display: flex; gap: 0.2rem; }
.compass button { background: rgba(6, 9, 18, 0.7); border: 1px solid rgba(239, 230, 210, 0.25); color: var(--fg); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; padding: 0.28rem 0.6rem; cursor: pointer; border-radius: 999px; }
.compass button[aria-pressed="true"] { background: var(--fg); color: var(--board); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 1.4rem 0 7rem; min-height: calc(100svh - var(--head-h) - var(--bar-h)); }
.hero-window { margin: 0 2.5vw; height: max(32rem, calc(100svh - var(--head-h) - var(--bar-h) - 7.5rem)); }
.hero-copy { position: absolute; z-index: 3; left: clamp(1.4rem, 3.4vw, 3.6rem); bottom: clamp(1.4rem, 4vh, 3rem); max-width: min(52%, 46rem); }
.hero-copy h1 { font-size: clamp(2.6rem, 5vw, 5rem); text-transform: uppercase; line-height: 0.9; margin-bottom: 1.1rem; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.hero-copy p { font-size: clamp(1rem, 1.2vw, 1.15rem); max-width: 54ch; color: var(--fg); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); margin: 0; }
.hero-ticket { position: absolute; z-index: 5; right: 5vw; bottom: 2.2rem; width: min(30rem, 92vw); transform: rotate(-1.6deg); }
.scroll-cue { position: absolute; left: 2.5vw; bottom: 2.2rem; margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.88rem; color: var(--fg-dim); padding-left: 2.6rem; }
.scroll-cue::before { content: ""; position: absolute; left: 0; top: 50%; width: 2rem; height: 1px; background: currentColor; }

/* ---------- the ticket ---------- */
.ticket { --stub: 7.2rem; display: grid; grid-template-columns: var(--stub) 1fr; background: var(--cream); color: var(--ink); border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
  -webkit-mask: radial-gradient(circle 0.7rem at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 0.7rem at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 0.7rem at var(--stub) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 0.7rem at var(--stub) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.ticket-stub { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 1.2rem 0.6rem; border-right: 2px dotted rgba(26, 29, 43, 0.45); background: var(--cream-2); border-radius: 10px 0 0 10px; }
.stub-label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; color: var(--ink-2); }
.stub-no { font-family: var(--display); font-weight: 600; letter-spacing: 0.08em; font-size: 0.78rem; color: var(--ink-2); writing-mode: vertical-rl; transform: rotate(180deg); font-variant-numeric: tabular-nums; }
.stub-big { font-family: var(--display); font-size: 3.2rem; font-weight: 800; line-height: 1; }
.stepper { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.stepper button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.stepper button:hover { background: var(--ink); color: var(--cream); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; color: var(--ink); }
.seat-out { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-main { padding: 1.1rem 1.3rem 1.2rem; min-width: 0; }
.ticket-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); font-size: 0.95rem; margin: 0 0 0.1rem; }
.ticket-date { font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1; margin: 0 0 0.7rem; }
.ticket-times { margin: 0 0 0.6rem; display: grid; gap: 0.18rem; }
.ticket-times div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(26, 29, 43, 0.14); padding: 0.16rem 0; }
.ticket-times dt { font-size: 0.92rem; color: var(--ink-2); }
.ticket-times dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.12rem; font-variant-numeric: tabular-nums; text-align: right; }
.ticket-nav { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0.2rem 0 0.8rem; }
.word-btn { background: none; border: 0; padding: 0.25rem 0; cursor: pointer; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; color: inherit; border-bottom: 1.5px solid currentColor; }
.word-btn:hover { color: var(--red-live); }
.ticket .word-btn:hover, .zone-8 .word-btn:hover { color: var(--red); }
.punch-cta { position: relative; display: block; text-align: center; text-decoration: none; background: var(--red); color: #fff7ea; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.7rem 1rem 0.7rem 2.4rem; border-radius: 6px; border: 0; cursor: pointer; width: 100%; }
.punch-cta::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 0.8rem; height: 0.8rem; margin-top: -0.4rem; border-radius: 50%; background: var(--cream); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5); }
.punch-cta:hover { background: #9c2914; }
.ticket-alt { display: block; margin-top: 0.6rem; font-size: 0.92rem; color: var(--ink); }

.punch-btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--cream); color: var(--ink); border: 0; border-radius: 6px; padding: 0.6rem 1.1rem; cursor: pointer; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; }
.punch-btn::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--ink); }
.punch-btn[aria-pressed="true"]::before { background: var(--red); border-color: var(--red); }

/* ---------- board ---------- */
.split-board { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem 4rem; align-items: start; }
.board-wrap { min-width: 0; overflow-x: auto; background: var(--board); border-radius: 14px; padding: 1.2rem 1.4rem 1.4rem; box-shadow: 0 0 0 1px #20232c, 0 20px 50px rgba(0, 0, 0, 0.4); }
.board { width: 100%; border-collapse: collapse; font-family: var(--dots); font-weight: 700; color: var(--amber); text-transform: uppercase; }
.board caption { text-align: left; font-family: var(--display); font-weight: 700; letter-spacing: 0.1em; color: var(--fg-dim); font-size: 0.92rem; padding-bottom: 0.8rem; caption-side: top; }
.board th, .board td { text-align: left; padding: 0.42rem 0.6rem 0.42rem 0; border-bottom: 1px solid #1d1f27; font-weight: 700; vertical-align: baseline; }
.board thead th { font-family: var(--display); color: var(--fg-dim); font-size: 0.82rem; letter-spacing: 0.1em; font-weight: 600; }
.board tbody th { font-size: 0.98rem; letter-spacing: 0; }
.board tbody td:first-child { font-size: 1.4rem; white-space: nowrap; }
.board tbody td:last-child { color: #f1c27d; font-size: 0.84rem; }
.board tr.board-best th, .board tr.board-best td { color: #fff1d0; }
.axis-fig { grid-column: 1 / -1; margin: 1rem 0 0; }
.axis { width: 100%; height: auto; overflow: visible; }
.axis text { font-family: var(--display); font-weight: 600; fill: var(--fg-dim); font-size: 13px; letter-spacing: 0.04em; }
.axis-fig figcaption { color: var(--fg-dim); font-size: 0.9rem; margin-top: 0.6rem; max-width: 80ch; }
.split-board .fineprint { grid-column: 1 / -1; }

/* ---------- side window sections ---------- */
.split-window { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.side-window { position: sticky; top: calc(var(--head-h) + var(--bar-h) + 2rem); height: min(78vh, 46rem); }
.sect-body { min-width: 0; padding-top: 1rem; }
.route { list-style: none; margin: 1.8rem 0 2rem; padding: 0 0 0 1.8rem; position: relative; }
.route::before { content: ""; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0.5rem; width: 3px; background: var(--fg); border-radius: 2px; }
.route li { position: relative; display: grid; gap: 0.1rem; padding: 0 0 1.3rem; }
.route li::before { content: ""; position: absolute; left: -1.75rem; top: 0.3rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--z3); border: 3px solid var(--fg); }
.route-time { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.2rem; }
.route-stop { color: var(--fg); }
.red-demo { margin: 0 0 2rem; }
.red-demo .hint { margin-top: 0.7rem; }

/* ---------- pinned stages ---------- */
.pin-stage { position: relative; }
.sehir-stage, .safak-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; align-items: center; padding: 0 var(--gut); max-width: 100rem; margin: 0 auto; }
.wide-window { height: min(80vh, 50rem); }
.anim .sehir-stage, .anim .safak-stage, .anim .tur-stage { height: calc(100vh - var(--head-h) - var(--bar-h)); }
.anim .sehir-stage .wide-window, .anim .safak-stage .wide-window { height: calc(100vh - var(--head-h) - var(--bar-h) - 4rem); }
.sehir-panel, .safak-panel { min-width: 0; }
.range-label { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1.4rem; }
.range-label output { font-size: 3.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.range { width: 100%; margin: 0.6rem 0 0.2rem; accent-color: var(--red-live); }
.range { -webkit-appearance: none; appearance: none; height: 2.2rem; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #f0a35a, var(--fg-dim) 40%, #2f3a66); border-radius: 2px; }
.range::-moz-range-track { height: 4px; background: linear-gradient(90deg, #f0a35a, var(--fg-dim) 40%, #2f3a66); border-radius: 2px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.5rem; height: 1.5rem; margin-top: -0.6rem; border-radius: 50%; background: var(--cream); border: 4px solid var(--red-live); }
.range::-moz-range-thumb { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--cream); border: 4px solid var(--red-live); }
.range-ends { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--fg-dim); margin-bottom: 1rem; }
.bortle-read { font-size: 1.05rem; min-height: 3.2em; }
.bortle-read b { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.25rem; }
.bortle-table { margin: 4rem 0 0; border-collapse: collapse; width: 100%; max-width: 46rem; font-variant-numeric: tabular-nums; }
.bortle-table caption { text-align: left; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 0.8rem; color: var(--fg); }
.bortle-table th, .bortle-table td { text-align: left; padding: 0.42rem 1rem 0.42rem 0; border-bottom: 1px solid var(--rule); }
.bortle-table thead th { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--fg-dim); }
.bortle-table tbody th { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.bortle-table tr.on th, .bortle-table tr.on td { color: var(--amber); }

/* tour */
.tur-intro { margin-bottom: 2.5rem; }
.tur-stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 2.5rem; align-items: center; padding: 0 var(--gut); max-width: 100rem; margin: 0 auto; }
.tour-window { height: min(82vh, 52rem); }
.anim .tour-window { height: calc(100vh - var(--head-h) - var(--bar-h) - 4rem); }
.tour-stops { list-style: none; margin: 0; padding: 0 0 0 1.8rem; position: relative; counter-reset: stop; }
.tour-stops::before { content: ""; position: absolute; left: 0.45rem; top: 0.6rem; bottom: 0.6rem; width: 3px; background: var(--rule); }
.tour-stops li { position: relative; padding: 0.35rem 0 0.75rem; }
.tour-stops li::before { content: ""; position: absolute; left: -1.75rem; top: 0.62rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--z5); border: 3px solid var(--fg-dim); }
.tour-stops li.on::before { background: var(--red-live); border-color: var(--red-live); }
.tour-stops h3 { font-size: clamp(1.2rem, 1.6vw, 1.55rem); }
.tour-stops .desig { font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); font-size: 0.9rem; margin: 0.15rem 0 0.3rem; }
.tour-stops .cap { margin: 0; font-size: 0.98rem; }
.anim .tour-stops li:not(.on) .cap, .anim .tour-stops li:not(.on) .desig { display: none; }
.tour-stops .stop-btn { all: unset; cursor: pointer; display: block; }
.tour-stops .stop-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.tour-empty { color: var(--fg-dim); }

/* planisphere */
.harita-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 0.6fr); gap: 3rem; align-items: start; }
.plani-wrap { min-width: 0; display: flex; justify-content: center; }
.plani { position: relative; width: min(100%, 40rem); aspect-ratio: 1; max-width: 100%; border-radius: 50%; touch-action: none; cursor: grab; }
.plani:active { cursor: grabbing; }
.plani canvas { width: 100%; height: 100%; }
.plani:focus-visible { outline-offset: 6px; border-radius: 50%; }
.plani-tip { position: absolute; left: 0; top: 0; margin: 0; pointer-events: none; background: var(--board); color: var(--amber); font-family: var(--display); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.9rem; padding: 0.2rem 0.5rem; border-radius: 4px; white-space: nowrap; }
.plani-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; margin-top: 1.6rem; }
.plani-controls .word-btn { grid-column: 1 / -1; justify-self: start; }
.field { display: grid; gap: 0.3rem; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; min-width: 0; }
.field input, .field textarea { font: 400 1.05rem/1.3 var(--text); text-transform: none; letter-spacing: 0; color: var(--fg); background: rgba(239, 230, 210, 0.06); border: 0; border-bottom: 2px solid var(--fg-dim); border-radius: 4px 4px 0 0; padding: 0.55rem 0.6rem; width: 100%; min-width: 0; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--amber); outline: none; background: rgba(239, 230, 210, 0.1); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.field input::-webkit-calendar-picker-indicator { filter: invert(0.9); cursor: pointer; }
.check { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.9rem; }
.check input, .checklist input { -webkit-appearance: none; appearance: none; width: 1.25rem; height: 1.25rem; margin: 0; border: 2px solid currentColor; border-radius: 3px; display: grid; place-items: center; cursor: pointer; flex: none; }
.check input::after, .checklist input::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: transparent; }
.check input:checked { background: var(--fg); border-color: var(--fg); }
.check input:checked::after { background: var(--z5); }
.plani-list { min-width: 0; }
.plani-list h3 { margin-bottom: 0.5rem; }
.plani-when { font-family: var(--display); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--amber); font-size: 0.95rem; }
#planiUp { list-style: none; margin: 0; padding: 0; columns: 1; }
#planiUp li { display: flex; justify-content: space-between; gap: 0.8rem; border-bottom: 1px solid var(--rule); padding: 0.3rem 0; font-size: 0.95rem; }
#planiUp li span:last-child { font-family: var(--display); font-weight: 600; color: var(--fg-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* calendar */
.takvim-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; }
.legend { display: grid; gap: 0.5rem; margin: 1.4rem 0; }
.legend div { display: flex; align-items: center; gap: 0.7rem; }
.legend dt { display: flex; } .legend dd { margin: 0; font-size: 0.95rem; }
.lg { display: inline-block; }
.lg-bar { width: 2rem; height: 0.4rem; background: var(--amber); border-radius: 2px; }
.lg-punch { width: 1rem; height: 1rem; border-radius: 50%; background: var(--z5); box-shadow: 0 0 0 3px var(--cream); }
.cal { background: var(--cream); color: var(--ink); border-radius: 12px; padding: 1.2rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); min-width: 0; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.cal-month { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; }
.cal-wd { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--ink-2); text-align: center; padding-bottom: 0.2rem; }
.cal-day { position: relative; display: grid; justify-items: center; gap: 0.2rem; padding: 0.4rem 0.1rem 0.45rem; border: 1px solid rgba(26, 29, 43, 0.14); border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; min-width: 0; }
.cal-day:hover { border-color: var(--ink); }
.cal-day .dn { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cal-day svg { width: 1.45rem; height: 1.45rem; }
.cal-day .dark { width: 80%; height: 0.32rem; background: rgba(26, 29, 43, 0.12); border-radius: 2px; overflow: hidden; }
.cal-day .dark i { display: block; height: 100%; background: #b97a17; border-radius: 2px; }
.cal-day[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cal-day[aria-pressed="true"] .dark { background: rgba(241, 232, 212, 0.2); }
.cal-day[aria-pressed="true"] .dark i { background: var(--amber); }
.cal-day[aria-pressed="true"]::after { content: ""; position: absolute; top: 0.3rem; right: 0.3rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--cream); }
.cal-day.today .dn { text-decoration: underline; text-underline-offset: 0.18em; }
.cal-day.past { opacity: 0.5; }
.cal-read { margin: 1rem 0 0; font-size: 1rem; max-width: none; }
.cal-read b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; }

/* seasons */
.mevsim-intro { margin-bottom: 3rem; }
.mevsim-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; max-width: 84rem; margin: 0 auto; padding: 0 var(--gut); }
.season { min-width: 0; display: grid; gap: 1.2rem; align-content: start; }
.season-sky { width: 100%; height: auto; aspect-ratio: 560 / 380; border-radius: 22px; background: #060914; box-shadow: 0 0 0 1px var(--brass), 0 0 0 9px var(--frame); }
.season-text p { font-size: 1rem; }
.season-look span:first-child { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); }
.season-meteor { color: var(--fg-dim); font-size: 0.93rem; }
@media (min-width: 900px) {
  .anim .mevsim-track-wrap { height: calc(100vh - var(--head-h) - var(--bar-h)); display: flex; align-items: center; overflow: hidden; }
  .anim .mevsim-track { display: flex; gap: 14vw; width: max-content; max-width: none; padding: 0 6vw; margin: 0; will-change: transform; }
  .anim .season { width: min(70vw, 64rem); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2.4rem; }
}

/* programme timetable */
.program-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
.tag-example { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--board); background: var(--amber); padding: 0.15rem 0.6rem; border-radius: 3px; font-size: 0.9rem; }
.sect-head .tag-example { color: var(--board); }
.price-line { margin: 1.5rem 0 0; display: grid; gap: 0.3rem; max-width: 26rem; }
.price-line div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule); padding: 0.35rem 0; gap: 1rem; }
.price-line dt { color: var(--fg-dim); } .price-line dd { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.timetable { list-style: none; margin: 0; padding: 0; position: relative; }
.timetable::before { content: ""; position: absolute; left: 6.15rem; top: 0.8rem; bottom: 0.8rem; width: 3px; background: var(--fg); border-radius: 2px; }
.timetable li { display: grid; grid-template-columns: 5rem 1fr; gap: 2.4rem; padding: 0 0 1.8rem; position: relative; }
.timetable li::before { content: ""; position: absolute; left: 5.75rem; top: 0.45rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--z6); border: 3px solid var(--fg); }
.timetable li.now::before { background: var(--red-live); border-color: var(--red-live); }
.tt-time { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; text-align: right; }
.timetable h3 { margin-bottom: 0.35rem; }
.timetable p { margin: 0; font-size: 1rem; }

/* telescope targets */
.targets { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.target { display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 15rem) auto; gap: 1.6rem; align-items: center; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.target .t-id { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; }
.target h3 { margin-bottom: 0.3rem; }
.target p { margin: 0; font-size: 0.98rem; }
.target .t-when { font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; font-size: 0.98rem; text-transform: uppercase; color: var(--amber); font-variant-numeric: tabular-nums; }
.target .t-when.no { color: var(--fg-dim); }
.wish-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1.5px solid var(--fg-dim); color: var(--fg); border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.88rem; white-space: nowrap; }
.wish-btn::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid currentColor; }
.wish-btn[aria-pressed="true"] { border-color: var(--cream); background: var(--cream); color: var(--ink); }
.wish-btn[aria-pressed="true"]::before { background: var(--red); border-color: var(--red); }

/* luggage */
.bagaj-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.luggage-tag { position: relative; background: var(--cream); color: var(--ink); border-radius: 14px 14px 14px 14px; padding: 3.2rem 2rem 1.6rem; transform: rotate(1.2deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  -webkit-mask: radial-gradient(circle 0.85rem at 50% 1.5rem, #0000 98%, #000); mask: radial-gradient(circle 0.85rem at 50% 1.5rem, #0000 98%, #000); }
.tag-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); text-align: center; margin: 0 auto 1rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { border-bottom: 1px solid rgba(26, 29, 43, 0.14); }
.checklist label { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.6rem 0; cursor: pointer; font-size: 1rem; }
.checklist input { margin-top: 0.15rem; color: var(--ink); }
.checklist input:checked { background: var(--ink); }
.checklist input:checked::after { background: var(--cream); }
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.tag-count { margin: 1rem 0 0; text-align: right; font-family: var(--display); font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }

/* rules */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 3rem; }
.rules li { border-top: 3px solid var(--fg); padding-top: 1rem; }
.rules h3 { margin-bottom: 0.6rem; }
.rules p { font-size: 1rem; margin: 0; }

/* dawn */
.dawn-list { display: grid; gap: 0.2rem; margin: 1.4rem 0; max-width: 26rem; }
.dawn-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding: 0.35rem 0; }
.dawn-list dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.dawn-planets { color: var(--fg); }

/* ticket office */
.gise-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 4rem; align-items: start; }
.gise { min-width: 0; display: grid; gap: 1.2rem; }
.gise .field { color: var(--ink); }
.gise .field input, .gise .field textarea { color: var(--ink); background: rgba(26, 29, 43, 0.05); border-bottom-color: var(--ink-2); }
.gise .field input:focus, .gise .field textarea:focus { border-bottom-color: var(--red); background: rgba(26, 29, 43, 0.08); }
.gise .field input:focus-visible, .gise .field textarea:focus-visible { outline-color: var(--red); }
.gise .field input::-webkit-calendar-picker-indicator { filter: none; }
.field-row { display: grid; gap: 0.5rem 1.4rem; }
.field-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field-info { margin: 0; font-size: 0.95rem; color: var(--ink); }
.field-hint { font-family: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.86rem; color: var(--ink-2); }
.field-label { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.stepper.big { flex-direction: row; gap: 0.9rem; justify-content: flex-start; }
.wish { margin: 0; font-size: 0.98rem; }
.wish .chip { display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--ink); color: var(--cream); font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; font-size: 0.85rem; text-transform: uppercase; }
.err { font-family: var(--text); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.88rem; color: var(--red); min-height: 1.2em; }
.form-hint { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.punch-cta.big { font-size: 1.45rem; padding: 0.9rem 1rem 0.9rem 2.6rem; max-width: 30rem; }
.punch-cta.big::before { background: var(--z8); }
.form-status { margin: 0; color: var(--red); font-weight: 500; min-height: 1.4em; }
.out-ticket { grid-column: 2; transform: rotate(-0.8deg); box-shadow: 0 18px 40px rgba(26, 29, 43, 0.28); outline: 1px solid rgba(26, 29, 43, 0.15); }
.out-text { white-space: pre-wrap; font: 500 0.95rem/1.55 var(--text); margin: 0.4rem 0 1rem; overflow-wrap: anywhere; }
.out-ticket .punch-btn { background: var(--ink); color: var(--cream); }
.out-ticket .punch-btn::before { border-color: var(--cream); }
.copy-status { margin: 0.6rem 0 0; font-size: 0.92rem; min-height: 1.3em; }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
.faq details { border-bottom: 1px solid rgba(26, 29, 43, 0.2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2.6rem 1.05rem 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.1; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 1.1rem; height: 2.5px; background: var(--red); transition: transform 0.25s var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: 0 0 1.2rem; max-width: 62ch; }

/* footer */
.foot { padding: 4rem 0 3rem; border-top: 1px solid rgba(26, 29, 43, 0.18); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot p { font-size: 0.95rem; }
.foot-brand { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.6rem !important; margin-bottom: 0.6rem; }
.foot-brand b { font-weight: 800; }

/* red light */
.red-filter { position: fixed; inset: 0; z-index: 100; pointer-events: none; background: #ff1e00; mix-blend-mode: multiply; opacity: 0; transition: opacity 0.4s var(--ease-out); }
html.red .red-filter { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .mast-nav { display: none; }
  .mast-tools { margin-left: auto; }
  .harita-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .harita-grid .sect-head { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --head-h: 3.3rem; }
  .split-board, .split-window, .takvim-grid, .program-grid, .bagaj-grid, .gise-grid, .faq-grid, .harita-grid, .sehir-stage, .safak-stage, .tur-stage { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .side-window { position: relative; top: auto; height: 56vh; }
  .hero { padding-bottom: 2rem; }
  .hero-window { height: 74svh; min-height: 30rem; margin: 0 0.8rem; }
  .hero-copy { max-width: none; right: 1.2rem; }
  .hero-ticket { position: relative; right: auto; bottom: auto; margin: -2.2rem auto 0; transform: rotate(-1deg); }
  .scroll-cue { position: relative; left: auto; bottom: auto; margin: 1.6rem var(--gut) 0; }
  .wide-window, .tour-window { height: 62vh; }
  .anim .sehir-stage, .anim .safak-stage, .anim .tur-stage { height: auto; }
  .anim .sehir-stage .wide-window, .anim .safak-stage .wide-window, .anim .tour-window { height: 62vh; }
  .anim .tur-stage .tour-window { position: sticky; top: calc(var(--head-h) + var(--bar-h) + 0.6rem); z-index: 2; height: 46vh; }
  .anim .tour-stops li:not(.on) .cap, .anim .tour-stops li:not(.on) .desig { display: block; }
  .tour-stops li { padding-bottom: 1.4rem; }
  .target { grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.6rem 1rem; }
  .target .t-when, .target .wish-btn { grid-column: 2; justify-self: start; }
  .rules { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .out-ticket { grid-column: 1; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .mevsim-track { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wordmark { font-size: 0.92rem; letter-spacing: 0.01em; } .wordmark svg { display: none; }
  .mast-row { gap: 0.6rem; }
  .mast-tools { gap: 0.35rem; }
  .tool { font-size: 0; padding: 0.45rem; } .tool::before { width: 0.7rem; height: 0.7rem; }
  .mast-cta { padding: 0.36rem 0.5rem; font-size: 0.82rem; letter-spacing: 0.03em; }
  .mast-row { padding: 0 max(0.75rem, env(safe-area-inset-left, 0px)); }
  .lang button { padding: 0.26rem 0.42rem; font-size: 0.8rem; }
  .nightbar { gap: 0.5rem; font-size: 0.78rem; } .nb-ends { display: none; }
  .hero-copy { left: 1.1rem; bottom: 3.4rem; }
  .win-readout { font-size: 0.74rem; left: 1rem; top: 0.8rem; }
  .hero-copy p { display: none; }
  .compass { right: auto; left: 1rem; top: 3.3rem; }
  .ticket { --stub: 5.6rem; }
  .ticket-date { font-size: 1.4rem; }
  .board tbody td:first-child { font-size: 1.15rem; }
  .board tbody th { font-size: 0.95rem; }
  .board tbody td:last-child { font-size: 0.82rem; }
  .board-wrap { padding: 1rem; }
  .timetable::before { left: 4.6rem; }
  .timetable li { grid-template-columns: 3.6rem 1fr; gap: 2rem; }
  .timetable li::before { left: 4.2rem; }
  .tt-time { font-size: 1.25rem; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .field-row.two { grid-template-columns: minmax(0, 1fr); }
  .plani-controls { grid-template-columns: minmax(0, 1fr); }
  .cal { padding: 0.8rem 0.6rem; }
  .cal-day svg { width: 1.1rem; height: 1.1rem; }
  .cal-day .dn { font-size: 0.95rem; }
  .cal-month { font-size: 1.25rem; }
  .cal-head .word-btn { font-size: 0.82rem; }
  .luggage-tag { padding: 3rem 1.2rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
