/* =========================================================
   VYRA — CANLI  (alternatif site)
   Fikir: site bir gösteri gibi ilerler. Perde açılır, beş perde (Köken, Şimdi, Sahneler,
   Misyon, Vizyon) oynanır, perde kapanır. Arkadaki görüntü ziyaret anından tohumlanır;
   her ziyaretçi kendine ait, tekrarlanmayan bir kare görür ("hazır video yok").

   Renk — Sanzo Wada, "A Dictionary of Color Combinations":
     No. 344  Cinnamon Buff #fdc57e · Deep Lyons Blue #1c4286 · Aconite Violet #a36aa5 · Black #111314
     No. 232  Carmine #cc1236 (perde ve "canlı" sinyali) · Deep Indigo #051230
     Sulpher Yellow #f5ecc2 (metin)
   Renk teorisi:
     - Tiyatro ışığı: siyah sahne + tek sıcak "tungsten" spot (Cinnamon Buff). Kısıtlı palet,
       dikkati tek bir ışığa toplar.
     - Sıcak ana ışık ↔ soğuk dolgu (Deep Lyons Blue, Aconite Violet): tamamlayıcı kontrast.
     - Carmine yalnızca perde ve CANLI işaretinde: sahnenin "kırmızı ışığı".
     - Metin Sulpher Yellow / Black ≈ 17:1.
   Tipografi: Syne 800 = "abartılı" fikirler, Poiret One = şiirsel ses (logo fontu),
   JetBrains Mono = sahne teknik dili (perde, cue, GO).
   ========================================================= */

@font-face { font-family: "Poiret One"; src: url("../assets/fonts/PoiretOne-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --black: #111314;      /* Black (344) — sahne */
  --indigo: #051230;     /* Deep Indigo (232) */
  --buff: #fdc57e;       /* Cinnamon Buff (344) — tungsten spot */
  --lyons: #1c4286;      /* Deep Lyons Blue (344) */
  --aconite: #a36aa5;    /* Aconite Violet (344) */
  --carmine: #cc1236;    /* Carmine (232) — perde, canlı */
  --paper: #f5ecc2;      /* Sulpher Yellow — metin */
  --muted: rgba(245, 236, 194, .62);
  --line: rgba(245, 236, 194, .14);

  --big: "Syne", "Arial Black", system-ui, sans-serif;
  --poetic: "Poiret One", Georgia, serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: max(20px, 4.5vw);
  --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--black); color: var(--paper);
  font-family: var(--body); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--buff); color: var(--black); }
:focus-visible { outline: 1px solid var(--buff); outline-offset: 4px; }
em { font-style: normal; color: var(--buff); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.big { font-family: var(--big); font-weight: 800; letter-spacing: -.03em; }
.poetic { font-family: var(--poetic); font-weight: 400; }
.tnum { font-variant-numeric: tabular-nums; }

.logo-mark { display: block; width: 84px; aspect-ratio: 662 / 181; background: currentColor;
  -webkit-mask: url("../assets/vyra-logo.svg") center / contain no-repeat; mask: url("../assets/vyra-logo.svg") center / contain no-repeat; }
.lockup-mark { display: block; width: min(300px, 62vw); aspect-ratio: 662 / 262; background: currentColor;
  -webkit-mask: url("../assets/vyra-studio-lockup.svg") center / contain no-repeat; mask: url("../assets/vyra-studio-lockup.svg") center / contain no-repeat; }

/* ---------- Canlı görsel + doku ---------- */
.live { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; background: var(--black); }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }
main, .nav { position: relative; z-index: 2; }

/* ---------- Açılış perdesi ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.curtain__half { position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 46px, rgba(255,255,255,.05) 46px 48px, transparent 48px 92px),
    linear-gradient(180deg, #a50f2c, var(--carmine) 30%, #8e0c26); }
.curtain__half--l { left: 0; box-shadow: inset -40px 0 60px rgba(0,0,0,.45); }
.curtain__half--r { right: 0; box-shadow: inset 40px 0 60px rgba(0,0,0,.45); }
.curtain__text { position: absolute; left: 0; right: 0; bottom: 12vh; text-align: center; color: var(--paper); }

/* ---------- Menü ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 28px;
  padding-block: calc(18px + env(safe-area-inset-top, 0px)) 18px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  background: linear-gradient(to bottom, rgba(17,19,20,.75), rgba(17,19,20,0));
}
.nav__brand { color: var(--paper); }
.nav__live { margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.nav__live #clock { font-variant-numeric: tabular-nums; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--carmine); box-shadow: 0 0 0 0 rgba(204,18,54,.7); animation: rec 1.6s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(204,18,54,.7); } 70% { box-shadow: 0 0 0 10px rgba(204,18,54,0); } 100% { box-shadow: 0 0 0 0 rgba(204,18,54,0); } }
.nav__acts { justify-self: center; display: flex; gap: 6px; }
.nav__acts a { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 999px; color: var(--muted); transition: color .3s, background .3s; }
.nav__acts a .nav__label { font-size: 13px; }
.nav__acts a:hover, .nav__acts a.is-on { color: var(--black); background: var(--buff); }
.nav__cta { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--paper); color: var(--black); }

/* ---------- Ortak perde düzeni ---------- */
.act { position: relative; padding-block: 18vh;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.eyebrow, .act__label { margin: 0 0 28px; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.act__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--buff); box-shadow: 0 0 18px var(--buff); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: inline-block; }

/* Giriş */
.act--hero { min-height: 100svh; display: grid; align-content: end; padding-block: 140px 44px; }
.hero__title { margin: 0; line-height: .92; }
.hero__title .big { font-size: clamp(52px, 11vw, 196px); }
.hero__title .poetic { font-size: clamp(44px, 8.4vw, 150px); color: var(--buff); }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.stamp { margin: 0; max-width: 46ch; color: var(--muted); font-size: 15px; }
.stamp strong { color: var(--paper); font-weight: 500; }
.cue-link { color: var(--paper); display: inline-flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Perde I */
.act--origin { min-height: 120vh; display: grid; align-content: center; gap: 8vh; background: linear-gradient(to bottom, transparent, rgba(17,19,20,.6) 25%, rgba(17,19,20,.6) 75%, transparent); }
.origin__head { margin: 0; display: grid; line-height: 1; }
.origin__head .poetic { font-size: clamp(34px, 5.2vw, 88px); }
.abartili { font-size: clamp(54px, 11vw, 220px); text-transform: uppercase; line-height: .9; color: var(--buff); transform-origin: left center; white-space: nowrap; }
.origin__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 1100px; margin-left: auto; }
.origin__body p { margin: 0; font-size: clamp(17px, 1.4vw, 21px); color: var(--paper); }

/* Perde II */
.act--now { min-height: 140vh; display: grid; align-content: space-between; }
.now__statement { margin: 0; font-family: var(--poetic); font-size: clamp(38px, 6.2vw, 112px); line-height: 1.05; max-width: 16ch; text-wrap: balance; }
.now__statement .w { opacity: .12; }
.now__inputs { display: grid; gap: 22px; max-width: 760px; margin-left: auto; padding: 28px; border-radius: 18px;
  background: rgba(17,19,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.now__hint { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--big); font-weight: 600; font-size: clamp(20px, 2.2vw, 30px); padding: 10px 22px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(253,197,126,.45); color: var(--paper); transition: background .3s, color .3s, transform .3s var(--ease); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--buff); color: var(--black); border-color: var(--buff); }
.now__note { margin: 0; color: var(--muted); }

/* Perde III */
.act--stages { background: var(--black); }
.stages__lead { margin: 0 0 4vh; font-family: var(--poetic); font-size: clamp(26px, 3vw, 46px); max-width: 30ch; color: var(--muted); }
.program { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: .45em; row-gap: 0;
  font-family: var(--big); font-weight: 800; font-size: clamp(44px, 8.4vw, 150px); line-height: 1; letter-spacing: -.03em; }
.program li { cursor: default; color: rgba(245,236,194,.18); transition: color .35s, text-shadow .35s; }
.program li:not(:last-child) span::after { content: ","; }
.program li:hover, .program li.is-lit { color: var(--paper); text-shadow: 0 0 40px rgba(253,197,126,.45); }
.with { margin-top: 10vh; display: grid; gap: 6px; max-width: 900px; margin-left: auto; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.3; font-family: var(--poetic); }
.with p { margin: 0; }
.with__end { font-family: var(--big); font-weight: 800; color: var(--buff); font-size: 1.4em; margin-top: 10px !important; }

/* Perde IV — İşler */
.act--works { background: var(--black); }
.works__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 6vh; }
.works__head { margin: 0; font-family: var(--big); font-weight: 800; font-size: clamp(40px, 6.4vw, 112px); line-height: .95; letter-spacing: -.03em; }
.works__lede { margin: 0; max-width: 40ch; color: var(--muted); }
.viewer { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); grid-template-areas: "monitor reel" "info reel"; gap: 28px 36px; }
.monitor { grid-area: monitor; position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.monitor:focus-visible { outline: 2px solid var(--buff); outline-offset: 4px; }
.monitor__gl, .monitor__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.monitor__hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px;
  color: var(--paper); background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); pointer-events: none; }
.hud__rec { display: inline-flex; align-items: center; gap: 8px; }
.monitor__badge { position: absolute; left: 16px; bottom: 64px; padding: 5px 10px; border-radius: 999px; font-size: 10px;
  background: rgba(17,19,20,.65); color: var(--muted); border: 1px solid var(--line); }
.monitor__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent); }
.ctrl { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid rgba(245,236,194,.35); background: rgba(17,19,20,.5);
  color: var(--paper); font-size: 14px; display: grid; place-items: center; transition: background .25s, color .25s; }
.ctrl:hover { background: var(--buff); color: var(--black); border-color: var(--buff); }
.scrub { flex: 1 1 auto; min-width: 0; accent-color: var(--buff); height: 4px; cursor: pointer; }

.reel { grid-area: reel; list-style: none; margin: 0; padding: 0; display: grid; align-content: start; border-top: 1px solid var(--line); }
.reel__item { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 4px;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; color: var(--muted); transition: color .3s, background .3s, padding .4s var(--ease); }
.reel__no { grid-row: span 2; padding-top: 6px; }
.reel__title { font-family: var(--big); font-weight: 600; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.1; color: rgba(245,236,194,.55); transition: color .3s; }
.reel__meta { font-size: 11px; }
.reel__item:hover { color: var(--paper); padding-left: 12px; }
.reel__item:hover .reel__title { color: var(--paper); }
.reel__item[aria-pressed="true"] { color: var(--paper); background: linear-gradient(90deg, rgba(253,197,126,.12), transparent); padding-left: 12px; }
.reel__item[aria-pressed="true"] .reel__title { color: var(--buff); }
.reel__item[aria-pressed="true"] .reel__no { color: var(--buff); }

.work-info { grid-area: info; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 36px; align-items: start; }
.work-info__meta { margin: 0; grid-column: 1 / -1; color: var(--muted); }
.work-info__title { margin: 0; font-family: var(--big); font-weight: 800; font-size: clamp(28px, 3vw, 48px); line-height: 1; letter-spacing: -.02em; }
.work-info__desc { margin: 0; grid-column: 1; color: var(--paper); max-width: 46ch; }
.work-info__inputs { grid-column: 2; grid-row: 2 / span 2; display: grid; gap: 10px; }
.work-info__label { margin: 0; color: var(--muted); font-size: 11px; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-chip { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: transparent; border: 1px solid rgba(253,197,126,.4); color: var(--paper); transition: background .3s, color .3s; }
.mini-chip[aria-pressed="true"] { background: var(--buff); color: var(--black); border-color: var(--buff); }
.monitor:fullscreen { border-radius: 0; aspect-ratio: auto; }
.monitor [hidden] { display: none; }

/* Perde V */
.act--mission { background: linear-gradient(180deg, var(--black), var(--indigo)); }
.mission__head { margin: 0; font-family: var(--big); font-weight: 800; font-size: clamp(38px, 6vw, 104px); line-height: .98; letter-spacing: -.03em; max-width: 14ch; }
.mission__lede { margin: 4vh 0 10vh; max-width: 52ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.cues { border-top: 1px solid var(--line); }
.cues__head, .cue { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: baseline; }
.cues__head { padding: 14px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.cue { padding: 30px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .4s, background .4s; position: relative; }
.cue__no { font-size: 14px; color: var(--muted); }
.cue__name { font-family: var(--big); font-weight: 600; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; color: rgba(245,236,194,.4); transition: color .4s; }
.cue.is-live { color: var(--paper); }
.cue.is-live .cue__name { color: var(--paper); }
.cue.is-live .cue__no { color: var(--buff); }
.cue.is-live::before { content: ""; position: absolute; left: -16px; top: 0; bottom: 0; width: 3px; background: var(--buff); box-shadow: 0 0 20px var(--buff); }
.cue--go .cue__no { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--carmine); color: var(--carmine); }
.cue--go.is-live .cue__no { background: var(--carmine); color: var(--paper); box-shadow: 0 0 30px rgba(204,18,54,.6); }

/* Perde VI */
.act--vision { min-height: 130vh; display: grid; align-content: center; gap: 14vh; }
.vision__text { margin: 0; font-family: var(--poetic); font-weight: 400; font-size: clamp(36px, 6vw, 104px); line-height: 1.04; }
.unsigned { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.unsigned__q { margin: 0; font-family: var(--big); font-weight: 800; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -.02em; max-width: 20ch; line-height: 1.05; }
.unsigned__sign { width: min(260px, 50vw); color: var(--paper); opacity: 0; }

/* Kapı */
.act--door { background: var(--black); padding-bottom: 14vh; }
.door__head { margin: 0; font-family: var(--big); font-weight: 800; font-size: clamp(42px, 7.6vw, 140px); line-height: .95; letter-spacing: -.035em; max-width: 13ch; }
.door__lede { margin: 5vh 0; max-width: 50ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); }
.door__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.btn { font-family: var(--big); font-weight: 600; font-size: clamp(20px, 2vw, 28px); padding: 16px 30px; border-radius: 999px;
  background: var(--buff); color: var(--black); transition: transform .3s var(--ease), box-shadow .3s; overflow-wrap: anywhere; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(253,197,126,.25); }
.door__social { display: inline-flex; gap: 20px; color: var(--muted); }
.door__social a:hover { color: var(--paper); }

/* Kapanış perdesi */
.finale { height: 120vh; position: relative; z-index: 3; }
.finale__curtain { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.finale__half { position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 46px, rgba(255,255,255,.05) 46px 48px, transparent 48px 92px),
    linear-gradient(180deg, #a50f2c, var(--carmine) 30%, #8e0c26); }
.finale__half--l { left: 0; box-shadow: inset -40px 0 60px rgba(0,0,0,.45); }   /* başlangıç konumunu GSAP verir */
.finale__half--r { right: 0; box-shadow: inset 40px 0 60px rgba(0,0,0,.45); }
.finale__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; color: var(--paper); opacity: 0; padding: 0 20px; }
.finale__center .mono { color: rgba(245,236,194,.8); }
.finale__ig { color: var(--paper) !important; padding: 10px 18px; border: 1px solid rgba(245,236,194,.4); border-radius: 999px; transition: background .3s, color .3s; }
.finale__ig:hover { background: var(--paper); color: var(--carmine) !important; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 14px; }
  .nav__acts { display: none; }
  .nav__live { justify-self: start; }
  .origin__body { grid-template-columns: minmax(0, 1fr); }
  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-areas: "monitor" "info" "reel"; }
  .work-info { grid-template-columns: minmax(0, 1fr); }
  .work-info__desc, .work-info__inputs { grid-column: 1; grid-row: auto; }
  .monitor { aspect-ratio: 4 / 5; }
  .monitor__badge { bottom: 60px; left: 12px; }
  .now__inputs { padding: 20px; }
  .cues__head { display: none; }
  .cue { grid-template-columns: 64px minmax(0, 1fr); row-gap: 8px; }
  .cue > span:last-child { grid-column: 2; }
  .cue.is-live::before { left: -10px; }
}
@media (max-width: 520px) {
  .nav__cta { display: none; }
}

/* ---------- Azaltılmış hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .dot { animation: none; }
  .now__statement .w { opacity: 1; }
  .unsigned__sign { opacity: 1; }
  .curtain { display: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
