/* ═══════════════════════════════════════════════════════════════════
   KONSEPT 9 — TAM FİLM · NashBroker 2026
   "Kaydır = film oynar." Konsept-8'in token ailesi, tam-film yorumu.
   Beyaz sis + tek kırmızı hat; sahne siyahı yalnız film sırasında.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --paper: #fbfbf9;
  --ink: #101214;
  --red: #ff0009;        /* logodan birebir (logo-red.png) */
  --red-block: #d40008;  /* tam-kırmızı zemin — beyaz metinle AA */
  --red-deep: #b30009;   /* hover + küçük punto kırmızı metin */
  --grey: #6a7076;
  --hair: rgba(16, 18, 20, .10);
  --rail: clamp(14px, 4.5vw, 68px);
  --gutter: clamp(14px, 3vw, 48px);
  --headerH: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-d: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-b: "Inter", "Segoe UI", Arial, sans-serif;
  --font-m: "IBM Plex Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: calc(var(--headerH) + 12px); }

body {
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.mono {
  font-family: var(--font-m);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-left: calc(var(--rail) + var(--gutter));
  padding-right: clamp(20px, 4.5vw, 68px);
}

.skip-link {
  position: fixed; top: -60px; left: var(--rail); z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1.2rem;
  font-family: var(--font-m); font-size: .75rem; letter-spacing: .1em;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* Section künye + kol (konsept-8 dili) */
.sec-head {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: clamp(1.8rem, 4vh, 3rem);
}
.sec-arm {
  position: absolute; right: 100%; top: 50%;
  width: var(--gutter); height: 2px;
  background: var(--red);
  transform-origin: left center;
}
.js .sec-head.in-view .sec-arm { animation: armIn .6s var(--ease) both; }
.js .sec-head:not(.in-view) .sec-arm { transform: scaleX(0); }
@keyframes armIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sec-tag { color: var(--red-deep); }

/* ═══ TİPOGRAFİ ═══ */
h1, h2, h3 { font-family: var(--font-d); }
h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
h1 em, .sec-title em { font-style: normal; color: var(--red); }
.sec-title {
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 18em;
}
.sec-lead {
  max-width: 34em;
  margin-top: 1.4rem;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--grey);
}

/* ═══ LİNK & BUTON ═══ */
.u-link {
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size 250ms var(--ease), color 250ms var(--ease);
}
.u-link:hover { background-size: 100% 2px; color: var(--red-deep); }
.u-link.big { font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-d); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; text-transform: uppercase;
  white-space: nowrap;
  padding: 1rem 1.7rem; border: none; cursor: pointer;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.btn .arr { transition: transform 250ms var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--red); color: #fff; }
.btn-red { background: var(--red-block); color: #fff; }
.btn-red:hover { background: var(--ink); }
.btn-portal {
  background: var(--red); color: #fff;
  padding: .6rem 1.1rem; font-size: .8rem;
}
.btn-portal:hover { background: var(--red-deep); }

/* ═══ HEADER — beyaz şerit ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 249, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  max-width: 1440px; margin-inline: auto;
  padding-left: calc(var(--rail) + var(--gutter));
  padding-right: clamp(20px, 4.5vw, 68px);
  height: var(--headerH);
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem);
}
.brand img { height: 24px; width: auto; }
.header-meta { color: var(--grey); white-space: nowrap; margin-left: auto; }
.header-inner .btn-portal { margin-left: 0; }

/* ═══ SEKANS 00 · GİRİŞ KARTI ═══ */
.intro {
  position: relative;
  min-height: calc(100svh - var(--headerH));
  display: flex; align-items: center;
  overflow: hidden;
}
.intro::after { /* alt kenarda sahneye inen koyuluk — filme bağlanır */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, rgba(16,18,20,0), rgba(16,18,20,.06));
  pointer-events: none;
}
.intro-inner {
  width: 100%;
  max-width: 1440px; margin-inline: auto;
  padding-left: calc(var(--rail) + var(--gutter));
  padding-right: clamp(20px, 4.5vw, 68px);
  padding-bottom: 6vh;
}
.intro-kicker { color: var(--red-deep); margin-bottom: 1.4rem; }
.intro-line {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--grey);
}
.intro-cue {
  display: flex; align-items: center; gap: .9rem;
  margin-top: clamp(2.2rem, 6vh, 4rem);
  color: var(--red-deep);
}
.cue-line {
  display: inline-block; width: 2px; height: 44px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red) 100%);
  transform-origin: top center;
}
.js .cue-line { animation: cueDrop 1.8s var(--ease) infinite; }
@keyframes cueDrop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Klaket zemin künyesi */
.frame-tag {
  position: absolute; z-index: 3;
  left: calc(var(--rail) + var(--gutter));
  bottom: 1.1rem;
  background: rgba(16, 18, 20, .55);
  color: #fff;
  padding: 6px 10px;
  backdrop-filter: blur(2px);
  font-size: .66rem;
  width: fit-content;
}

/* ═══ REVEAL (IntersectionObserver) ═══ */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 80ms; }
.js .reveal.d2 { transition-delay: 160ms; }
.js .reveal.d3 { transition-delay: 240ms; }

/* ═══════════════════════════════════════════════════════════════════
   FİLM — 8 BÖLÜM
   Varsayılan DOM = editoryal dizi (.film-strip); video hiç inmez.
   .film-live'da sticky sahne açılır (CSS sticky — JS pin YOK).
   Dış sarmalayıcı 8 × 120vh = 960vh (≤1000vh anayasa sınırı).
   ═══════════════════════════════════════════════════════════════════ */
.film { position: relative; }
.film .film-outer { display: none; }

.film.film-live .film-strip { display: none; }
.film.film-live .film-outer { display: block; height: 960vh; position: relative; }

.film-sentinels { position: absolute; inset: 0; pointer-events: none; }
.film-sentinel { position: absolute; left: 0; width: 1px; height: 12.5%; }
.film-sentinel[data-seg="0"] { top: 0; }
.film-sentinel[data-seg="1"] { top: 12.5%; }
.film-sentinel[data-seg="2"] { top: 25%; }
.film-sentinel[data-seg="3"] { top: 37.5%; }
.film-sentinel[data-seg="4"] { top: 50%; }
.film-sentinel[data-seg="5"] { top: 62.5%; }
.film-sentinel[data-seg="6"] { top: 75%; }
.film-sentinel[data-seg="7"] { top: 87.5%; }

.film-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.film-screen { position: absolute; inset: 0; }
.film-clip {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 200ms linear; /* bölümler arası çapraz geçiş */
}
.film-clip.on { opacity: 1; }

/* Bölüm yazıları: klaket künye + maske-reveal cümle */
.film-caps { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.film-cap {
  position: absolute;
  left: calc(var(--rail) + var(--gutter) + 18px);
  bottom: clamp(3.4rem, 9vh, 5.2rem);
  display: flex; flex-direction: column; gap: .35rem;
  max-width: min(34em, 72vw);
  opacity: 0;
  transition: opacity 200ms linear;
}
.film-cap.on { opacity: 1; }
.film-cap .mono {
  font-size: .66rem; color: rgba(255, 255, 255, .82);
  background: rgba(16, 18, 20, .62);
  padding: 5px 9px; width: fit-content;
  backdrop-filter: blur(2px);
}
.film-cap .cap-text {
  font-family: var(--font-d); font-weight: 800; font-stretch: 110%;
  font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.08;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 26px rgba(16, 18, 20, .5);
  background: rgba(16, 18, 20, .38);
  padding: .35em .5em; width: fit-content;
  backdrop-filter: blur(2px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .6s var(--ease);
}
.film-cap.on .cap-text { clip-path: inset(0 0 0 0); transition-delay: .12s; }
.cap-sub {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: .74rem; letter-spacing: .14em;
  color: rgba(255, 255, 255, .92);
  background: rgba(16, 18, 20, .62);
  padding: 6px 10px; width: fit-content;
  backdrop-filter: blur(2px);
}
.film-figcap .cap-sub { font-size: .66rem; margin-top: .3rem; }

/* Portal overlay kartları (B6/B7) — konsept-8 kart dili */
.portal-card {
  position: absolute; z-index: 5;
  right: clamp(20px, 5vw, 80px);
  bottom: clamp(3.4rem, 10vh, 6rem);
  width: min(340px, 82vw);
  background: var(--paper);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--red);
  box-shadow: 0 24px 70px rgba(16, 18, 20, .4);
  padding: 1.1rem 1.2rem 1.2rem;
  pointer-events: none;
  opacity: 0; transform: translateY(22px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.portal-card.on { opacity: 1; transform: none; }
.pc-head {
  display: flex; align-items: center; gap: .55rem;
  color: var(--grey); font-size: .62rem;
  padding-bottom: .7rem; margin-bottom: .8rem;
  border-bottom: 1px solid var(--hair);
}
.pc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 0, 9, .18);
}
.pc-title {
  font-family: var(--font-d); font-weight: 700; font-stretch: 108%;
  font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.01em;
}
.pc-rows { list-style: none; margin-top: .9rem; font-size: .64rem; }
.pc-rows li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-top: 1px dotted var(--hair);
}
.pc-rows .ok { color: var(--ink); }
.pc-rows .wait { color: var(--red-deep); }
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: 1rem; width: 100%;
  background: var(--red); color: #fff;
  font-family: var(--font-d); font-weight: 700; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .02em;
  padding: .85rem 1rem;
  transition: background-color 250ms var(--ease), transform 250ms var(--ease);
}
.pc-check {
  display: inline-block; opacity: 0; transform: scale(.4);
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.portal-card.approved .pc-btn { background: var(--red-deep); transform: scale(.985); }
.portal-card.approved .pc-check { opacity: 1; transform: scale(1); }
.pc-foot { color: var(--grey); font-size: .58rem; margin-top: .8rem; }

/* Fallback dizide statik kart */
.portal-card.static {
  position: static; opacity: 1; transform: none;
  margin: 1.2rem auto 0;
  box-shadow: 0 14px 44px rgba(16, 18, 20, .12);
}

/* Filmi atla */
.film-skip {
  position: absolute; z-index: 6;
  right: clamp(20px, 4.5vw, 68px);
  top: calc(var(--headerH) + 1.2rem);
  background: rgba(16, 18, 20, .62);
  color: #fff; border: 1px solid rgba(255, 255, 255, .35);
  padding: .55rem .95rem;
  cursor: pointer;
  backdrop-filter: blur(2px);
  font-size: .68rem;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease);
}
.film-skip:hover { background: var(--red); border-color: var(--red); }

/* Sol kenar: kırmızı ilerleme şeridi + bölüm sayacı */
.film-meter {
  position: absolute; z-index: 5;
  left: var(--rail);
  top: calc(var(--headerH) + 1.6rem);
  bottom: 1.4rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .8rem;
  transform: translateX(-1px);
}
.film-vbar {
  flex: 1; width: 2px;
  background: rgba(255, 255, 255, .26);
  position: relative;
}
.film-vbar-fill {
  position: absolute; inset: 0;
  background: var(--red);
  transform-origin: top center; transform: scaleY(0);
  will-change: transform;
}
.film-chapter {
  background: rgba(16, 18, 20, .62);
  color: #fff; padding: 4px 8px;
  font-size: .66rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}

/* Editoryal fallback dizisi */
.film-strip { padding-top: clamp(4.5rem, 12vh, 8rem); }
.film-fig { position: relative; margin-top: clamp(1.6rem, 4vh, 2.6rem); overflow: hidden; }
.film-fig img { width: 100%; height: auto; }
.film-figcap {
  position: absolute; z-index: 3;
  left: calc(var(--rail) + var(--gutter));
  bottom: 1.1rem;
  display: flex; flex-direction: column; gap: .3rem;
  background: rgba(16, 18, 20, .62);
  color: #fff;
  padding: 10px 14px;
  backdrop-filter: blur(2px);
  max-width: min(30em, 78vw);
}
.film-figcap .mono { font-size: .66rem; color: rgba(255, 255, 255, .78); }
.film-figcap .cap-text {
  font-family: var(--font-d); font-weight: 700; font-stretch: 108%;
  font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ═══ MÜHÜR ANI — beyaz boşlukta kırmızı mühür ═══ */
.seal-moment {
  min-height: 92vh;
  background: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(1.6rem, 4vh, 2.6rem);
  padding: clamp(3rem, 8vh, 5rem) 1.2rem;
  overflow: hidden;
}
.stamp {
  position: relative;
  width: min(74vw, 380px);
  aspect-ratio: 1;
  border: 4px solid var(--red);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .7rem;
  text-align: center;
  color: var(--red);
  transform: rotate(-8deg);
  padding: 2rem;
}
.stamp::before {
  content: ""; position: absolute; inset: 9px;
  border: 1.5px dashed var(--red);
  border-radius: 50%;
}
.stamp-word {
  font-family: var(--font-d);
  font-weight: 800; font-stretch: 115%;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
  text-transform: uppercase;
}
.stamp-sub, .stamp-time { font-size: .6rem; color: var(--red-deep); }
.seal-line { color: var(--grey); }

.js .stamp { opacity: 0; }
.js .seal-moment.in .stamp { animation: stampIn .55s cubic-bezier(.2, 1.35, .35, 1) .1s both; }
@keyframes stampIn {
  0%   { opacity: 0; transform: rotate(4deg) scale(2.3); }
  62%  { opacity: 1; transform: rotate(-9.5deg) scale(.96); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}
.js .seal-moment.in .stamp::after { /* mühür vuruş halkası */
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 0, 9, .35);
  animation: stampRing .8s var(--ease) .38s both;
}
@keyframes stampRing {
  from { box-shadow: 0 0 0 0 rgba(255, 0, 9, .35); }
  to   { box-shadow: 0 0 0 34px rgba(255, 0, 9, 0); }
}
.js .seal-moment .seal-line { opacity: 0; transition: opacity .5s var(--ease) .55s; }
.js .seal-moment.in .seal-line { opacity: 1; }

/* ═══ KAPANIŞ ═══ */
.close {
  padding-top: clamp(4.5rem, 11vh, 7rem);
  padding-bottom: clamp(4.5rem, 11vh, 7rem);
  border-top: 1px solid var(--hair);
}
.close-lead { max-width: 34em; margin-top: 1.2rem; color: var(--grey); }
.close-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.close-grid {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: clamp(3rem, 7vh, 4.5rem);
}
.close-services h3, .close-contact h3 {
  color: var(--red-deep); font-size: .68rem; margin-bottom: 1rem;
}
.close-services ul { list-style: none; }
.close-services li { border-top: 1px solid var(--hair); }
.close-services li:last-child { border-bottom: 1px solid var(--hair); }
.close-services a {
  display: block; padding: .8rem .2rem;
  font-family: var(--font-d); font-weight: 700; font-stretch: 108%;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: -0.01em; text-transform: uppercase;
}
.info-block { border-top: 1px solid var(--hair); padding: 1.1rem 0 1.3rem; }
.info-label { color: var(--red-deep); font-size: .64rem; margin-bottom: .4rem; }
.close-hours { color: var(--grey); margin-top: 1.2rem; font-size: .64rem; }

/* ═══ MİNİ FOOTER ═══ */
.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, .82);
  padding: 2.2rem 0 2rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 2.5rem;
}
.footer-logo { display: inline-flex; padding: .55rem 0; }
.footer-logo img { height: 20px; width: auto; }
.footer-note {
  font-size: .76rem; color: rgba(255, 255, 255, .55);
  max-width: 34em; flex: 1 1 280px;
}
.footer-legal { color: rgba(255, 255, 255, .55); font-size: .66rem; }
.wa-link { display: inline-flex; align-items: center; gap: .5rem; }
.wa-icon { flex: 0 0 auto; }

.rail-seal {
  color: #22c55e; font-size: .66rem;
  display: flex; align-items: center; gap: .6rem;
}
.seal-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}

/* ═══ EMNİYET KEMERİ: mobil + reduced-motion'da film asla açılmaz ═══ */
@media (max-width: 768px) {
  .film.film-live .film-outer { display: none; }
  .film.film-live .film-strip { display: block; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
  :root { --headerH: 56px; }
  .header-meta { display: none; }
  .header-inner .btn-portal { margin-left: auto; }
  .close-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --rail: 10px; --gutter: 14px; }
  .btn { padding: .9rem 1.3rem; font-size: .85rem; }
  .btn-portal { padding: .55rem .8rem; font-size: .7rem; }
  .brand img { height: 20px; }
  .film-figcap .cap-text { font-size: .95rem; }
  .portal-card.static { width: calc(100% - 2 * (var(--rail) + var(--gutter))); }
}

/* ═══ REDUCED MOTION — anayasa maddesi ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .sec-head:not(.in-view) .sec-arm { transform: scaleX(1); }
  .js .stamp { opacity: 1; }
  .js .seal-moment .seal-line { opacity: 1; }
  .js .cue-line { animation: none; }
  .film.film-live .film-outer { display: none; }
  .film.film-live .film-strip { display: block; }
}
