/* VARIO PINS – coming soon. Zemin videonun stüdyo fonundan örneklendi (üst ~#DFDFDF, alt ~#EBEBEB). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --studio-top: #dfdfe0;
  --studio-mid: #e5e5e6;
  --studio-bottom: #ebebec;
  --ink: #2b2f33;
  --ink-soft: #535a61;
  --blue: #077abd;
  --hair: rgba(43, 47, 51, 0.18);
  --glass: rgba(236, 236, 237, 0.7);
  --pad: clamp(18px, 3.2vw, 56px);
  /* masaüstü video: genişlik görünür alanın en çok %80'i. Üst kenar logonun altında (keskin kenarlı video logoya değmesin),
     alt kenar başlık bloğunun üstünde kalacak kadar; yükseklik sınırı genişliği belirler (16:9) */
  --logo-h: clamp(20px, 1.9vw, 30px);
  --film-top: calc(var(--pad) * 0.8 + var(--logo-h) + 18px);
  --note-h: calc(clamp(2rem, min(3.7vw, 6.4vh), 4.3rem) * 1.05 + clamp(0.95rem, min(1.2vw, 2vh), 1.25rem) * 1.4 + 0.55rem);
  --film-w: min(80vw, calc((100vh - var(--film-top) - var(--note-h) - var(--pad) * 0.95 - 22px) * 16 / 9));
  --film-radius: 18px;
  --film-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--studio-mid); }
body {
  margin: 0;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--studio-top) 0%, var(--studio-mid) 55%, var(--studio-bottom) 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- masaüstü / yatay ---------- */
.stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }

.bar {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--pad) * 0.8) var(--pad);
}
.brand { display: block; line-height: 0; }
.brand img { height: var(--logo-h); width: auto; }

.langs { display: flex; align-items: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.langs a { position: relative; padding: 6px 12px; color: var(--ink-soft); text-decoration: none; transition: color 0.2s ease; }
.langs a + a::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; border-left: 1px solid var(--hair); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--blue); }
.langs a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 1px; background: var(--blue);
}

.screen {
  position: absolute;
  z-index: 1;
  top: var(--film-top);
  left: 50%;
  width: var(--film-w);
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  /* keskin kenar, yuvarlatılmış köşe, çok yumuşak gölge */
  border-radius: var(--film-radius);
  box-shadow: var(--film-shadow);
  background: var(--studio-mid);
  overflow: hidden;
  isolation: isolate;                  /* Safari: dönüşümlü kutuda video köşesi de kırpılsın */
}
/* video kutudan her yönde 1 px taşar, kutu kırpar: WebKit'te ondalıklı boyutta kenarda açık renkli kıl çizgi kalmaz.
   Kaynak 16:9, kutu 16:9: "cover" en çok ~1 px kırpar */
.film {
  position: absolute;
  inset: -1px;
  display: block;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  background: var(--studio-mid);
  border-radius: var(--film-radius);
}

/* hoparlör: metinsiz, videonun sağ alt köşesinde. Sessizken hafifçe belirgin (mavi + yumuşak nabız), sesliyken sade */
.speaker {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink-soft);
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.speaker[hidden] { display: none; }
.speaker:hover { opacity: 1; }
.speaker svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.speaker .cone { fill: currentColor; stroke: none; }
.speaker .mute { display: none; }
.speaker.is-muted { opacity: 1; color: var(--blue); border-color: rgba(7, 122, 189, 0.5); }
.speaker.is-muted .wave { display: none; }
.speaker.is-muted .mute { display: inline; }
.speaker.is-muted::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(7, 122, 189, 0.45);
  animation: nudge 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes nudge { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

.note {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  bottom: calc(var(--pad) * 0.95);
  max-width: min(60rem, 70vw);
}
h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2rem, min(3.7vw, 6.4vh), 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.sub {
  margin: 0.55rem 0 0;
  font-size: clamp(0.95rem, min(1.2vw, 2vh), 1.25rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.foot {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  bottom: calc(var(--pad) * 0.95);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(43, 47, 51, 0.62);
}

/* tek sahneli giriş: metin bir kez, yumuşakça belirir. Yalnız JS çalışan tarayıcıda (scripting: enabled);
   JS kapalıysa ya da tarayıcı bu sorguyu tanımıyorsa içerik animasyonsuz, doğrudan görünür */
@media (scripting: enabled) {
  .bar, .note { animation: enter 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .note { animation-delay: 0.3s; }
}
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- dikey ekran: menü, hemen altında video (16 px kenar), altında başlık/alt satır, en altta altbilgi ---------- */
@media (orientation: portrait) {
  :root { --film-radius: 12px; --film-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); }
  .stage { height: auto; min-height: 100svh; overflow: visible; display: flex; flex-direction: column; }
  .bar { position: static; padding: 12px 16px 10px; }
  .brand img { height: 20px; }
  .langs { margin-right: -10px; }
  .langs a { padding: 10px 10px; }
  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 4svh, 40px);
    padding: 6px 16px clamp(20px, 4svh, 40px);
  }
  .screen { position: relative; top: auto; left: auto; width: 100%; transform: none; }
  .speaker { right: 12px; bottom: 12px; width: 40px; height: 40px; }
  .note { position: static; max-width: none; padding: 0; }
  h1 { font-size: clamp(2.1rem, 10.5vw, 3.6rem); line-height: 1.04; }
  .sub { font-size: clamp(1.05rem, 4.6vw, 1.35rem); margin-top: 0.7rem; }
  .foot { position: static; padding: 0 16px max(20px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .bar, .note { animation: none; }
  .speaker.is-muted::after { animation: none; opacity: 0; }
  .langs a, .speaker { transition: none; }
}
