/* =========================================================
   TİKSİNME™ — marka vitrini
   Renk ve fontlar :root içinde. Sahne sırası:
   krem → siyah → siyah (at-tak) → krem (anatomi) → gerçek ürün
   → turuncu şerit → krem (sözlük) → kum | siyah → turuncu → siyah
   ========================================================= */
:root {
  /* Marka paleti */
  --orange: #f2663a;
  --black: #080705;
  --cream: #f5f2ed;

  /* Türetilmiş tonlar */
  --orange-deep: #b4441d;               /* krem üstünde turuncu metin (AA) */
  --sand: #e9e2d6;                      /* ikinci açık zemin */
  --cream-soft: rgba(245, 242, 237, .64); /* siyah üstünde ikincil metin */
  --black-soft: rgba(8, 7, 5, .7);      /* açık/turuncu zeminde ikincil metin */

  /* Fontlar */
  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ritim */
  --pad-x: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left), env(safe-area-inset-right));
  --safe-top: env(safe-area-inset-top, 0px);
  --pad-y: clamp(80px, 14vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Ürün çizimi (sap + sünger başlık) */
  --handle: var(--black);
  --handle-groove: rgba(245, 242, 237, .4);
  --button: var(--orange);
  --head: var(--orange);
  --head-low: #c24a22;
  --hub: #ffffff;
  --hub-line: rgba(8, 7, 5, .22);
  --focus: var(--orange);
}

/* ---------- Logo: üç zemin, üç renk düzeni (resmi kullanım) ---------- */
.logo-cream  { --lg-fade: #c8c0b5; --lg-strong: var(--black); --lg-bar: var(--orange); }
.logo-black  { --lg-fade: #2a2520; --lg-strong: var(--cream); --lg-bar: var(--orange); }
.logo-orange { --lg-fade: rgba(255, 255, 255, .22); --lg-strong: #ffffff; --lg-bar: var(--black); }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Sayfa zemini = ekrandaki bölümün rengi (script.js --page-bg'yi günceller).
   Telefonun üst/alt çubukları bu rengi alır; site ekranı baştan sona sarar. */
html {
  --page-bg: var(--cream);
  --edge-top: var(--cream);
  --edge-bottom: var(--cream);
  -webkit-text-size-adjust: 100%; scrollbar-color: var(--orange) var(--black);
  background-color: var(--page-bg);
}
/* Kenar şeritleri: içerikle aynı renkte olduğu için görünmez,
   ama Safari çubukları bunlardan renk alır */
.edge {
  position: fixed; left: 0; right: 0; z-index: 90; pointer-events: none;
  height: max(env(safe-area-inset-top, 0px), 2px);
}
.edge-top { top: 0; background: var(--edge-top); }
.edge-bottom { bottom: 0; height: max(env(safe-area-inset-bottom, 0px), 2px); background: var(--edge-bottom); }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--black);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--orange);
  overflow-x: hidden;
}
::selection { background: var(--orange); color: var(--black); }
h1, h2, h3 { font-family: var(--f-display); margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: .95; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--black); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  /* Showroom açılışı: ürün adı ekranın ortasında, alt bilgi dibe yaslı */
  display: grid; grid-template-rows: 1fr auto auto 1fr auto;
  padding: calc(40px + var(--safe-top)) var(--pad-x) 28px;
  background: var(--cream);
}
.hero-kind {
  grid-row: 2; position: relative; z-index: 2; margin-bottom: 2.8rem;
  font: 700 clamp(1.3rem, 2.4vw, 2rem)/1.1 var(--f-display); letter-spacing: -.02em;
}
.hk-line { display: inline-block; }
.hk-punch { display: inline-block; position: relative; margin-left: .08em; color: var(--orange-deep); }
.hk-punch::after {
  content: ""; position: absolute; left: 0; right: .25em; bottom: -.12em; height: .1em;
  background: var(--orange); transform-origin: left; transform: scaleX(1);
}

/* Satırlar bulanıktan netleşerek yükselir → logo kurulur → "Nihayet." yukarıdan düşer, altı çizilir */
.js .hk-line { animation: hk-up .9s var(--ease) both; }
.js .hk-line:nth-of-type(2) { animation-delay: .18s; }
.js .hk-punch { animation: hk-punch .9s cubic-bezier(.2, 1.5, .4, 1) 2s both; }
.js .hk-punch::after { animation: hk-underline .6s var(--ease) 2.55s both; }
@keyframes hk-up { from { opacity: 0; transform: translateY(70%); filter: blur(6px); } }
@keyframes hk-punch {
  from { opacity: 0; transform: translateY(-.9em) rotate(-10deg) scale(1.7); }
  60% { opacity: 1; }
}
@keyframes hk-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.wordmark {
  grid-row: 3; position: relative; z-index: 2; margin: .2em 0 0 -.4%;
  line-height: 0;
}
.wordmark svg { display: block; width: min(100%, 1320px); height: auto; overflow: visible; }

/* Etkileşimli çizgi: --strike 1 = çizili (TİKSİNME), 0 = çizgi yok (TİKSİN) */
.wm-drag {
  --strike: 1;
  display: block; width: min(100%, 1320px);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  border-radius: 8px;
}
.wm-drag.is-dragging { cursor: grabbing; }
.wm-drag:focus-visible { outline-offset: 10px; }
.wm-tiksin { fill: color-mix(in srgb, var(--lg-fade) calc(var(--strike) * 100%), var(--lg-strong)); }
.wm-me { fill: var(--lg-strong); opacity: calc(.14 + .86 * var(--strike)); }
.wm-bar { fill: var(--lg-bar); transform-box: fill-box; transform-origin: left center; transform: scaleX(var(--strike)); }
.wm-knob {
  fill: var(--orange); stroke: var(--cream); stroke-width: 4;
  opacity: 0; transition: opacity .3s var(--ease);
}
.wm-drag:hover .wm-knob, .wm-drag:focus-visible .wm-knob,
.wm-drag.is-dragging .wm-knob, .wm-drag.is-hinting .wm-knob { opacity: 1; }
.wm-drag.is-hinting .wm-knob { animation: knob-pulse 1.4s var(--ease) 2; transform-box: fill-box; transform-origin: center; }
@keyframes knob-pulse { 50% { transform: scale(1.35); } }

/* Kelime oyununu söyleyen küçük satır: çizginin ucunda durur */
.wm-read {
  position: absolute; left: 0; bottom: 100%; margin-bottom: 10px;
  font: 600 clamp(.9rem, 1.4vw, 1.05rem)/1.3 var(--f-body); letter-spacing: 0;
  color: var(--black-soft); white-space: nowrap;
  transition: color .3s var(--ease);
}
.wm-read.is-raw { color: var(--orange-deep); }

.hero-foot {
  grid-row: 5; position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px;
  margin-top: clamp(24px, 4vw, 48px); padding-top: 20px; border-top: 2px solid var(--black);
}
.hero-lead { max-width: 34ch; font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.4; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.scroll-cue svg { transition: transform .4s var(--ease); }
.scroll-cue:hover svg { transform: translateY(4px); }

/* Açılış: TİKSİN siyah gelir → çizgi üstünü çizer → TİKSİN solar, ME öne çıkar */
.js .wm-tiksin { animation: tiksin-fade .9s var(--ease) 1.15s both; }
.js .wm-bar { animation: bar-strike .55s var(--ease) .6s both; }
.js .wm-me { animation: me-in .8s var(--ease) 1.2s both; }
/* Açılışta uç değerler açıkça yazılı: color-mix'e doğru ara renk hesaplanınca renk bozuluyordu */
@keyframes tiksin-fade { from { fill: var(--black); } to { fill: var(--lg-fade); } }
@keyframes bar-strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes me-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
/* Açılış bitince animasyonlar kalkar; renk ve çizgi artık --strike'tan gelir */
.wm-ready .wm-tiksin, .wm-ready .wm-bar, .wm-ready .wm-me { animation: none; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--black); color: var(--cream); padding: var(--pad-y) var(--pad-x); }
.manifesto-inner { max-width: 1200px; display: grid; gap: .5em; font-size: clamp(1.9rem, 5vw, 4.4rem); }
.m-line {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  opacity: .14; filter: blur(1.5px);
  transition: opacity .8s var(--ease), filter .8s var(--ease);
}
.m-line.is-lit, .no-js .m-line { opacity: 1; filter: none; }
.m-punch { color: var(--orange); font-size: 1.6em; font-weight: 800; margin-top: .3em; }

/* ---------- At-tak sahnesi ---------- */
.scene { background: var(--black); color: var(--cream); position: relative; }
.js .scene { height: 420svh; }
.scene-sticky {
  min-height: 100svh;
  display: grid; align-items: center; gap: 24px;
  padding: 40px var(--pad-x);
}
.js .scene-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.scene-title { font-size: clamp(2.6rem, 6.5vw, 6rem); margin-bottom: clamp(20px, 4vw, 48px); }
.scene-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; max-width: 30rem; }
.s-step {
  counter-increment: step; position: relative; padding-left: 52px;
  opacity: .3; transition: opacity .5s var(--ease);
}
.s-step::before {
  content: counter(step); position: absolute; left: 0; top: .1em;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid currentColor; font: 700 .95rem/1 var(--f-display);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.s-step h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .25em; }
.s-step p { color: var(--cream-soft); max-width: 36ch; }
.s-step.is-active { opacity: 1; }
.s-step.is-active::before { background: var(--orange); border-color: var(--orange); color: var(--black); }
.scene-progress { margin-top: 32px; height: 3px; max-width: 30rem; background: rgba(245, 242, 237, .14); }
.scene-progress i { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }

.scene-stage { display: grid; place-items: center; min-height: 0; }
.scene-svg {
  height: min(48svh, 820px); width: auto; overflow: visible;
  --handle: var(--cream); --handle-groove: rgba(8, 7, 5, .25); --hub: var(--cream); --hub-line: transparent;
}
.old-head { --head: #8c8378; --head-low: #6e665c; }
.new-head { --head: var(--orange); --head-low: #c24a22; }
.bin-rim { fill: #3a342d; }
.bin-body { fill: #24201b; stroke: rgba(245, 242, 237, .14); stroke-width: 2; }
.grip-ring { opacity: 0; transition: opacity .4s var(--ease); }
.phase-0 .grip-ring { opacity: 1; }
.phase-0 .grip-ring rect { animation: grip-pulse 1.8s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes grip-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.click-burst line { stroke: var(--orange); stroke-width: 6; stroke-linecap: round; opacity: 0; }
.click-word { fill: var(--orange); font: 800 46px/1 var(--f-display); letter-spacing: -.02em; opacity: 0; }
.is-clicked .click-burst line { animation: burst .7s var(--ease) both; }
.is-clicked .click-word { animation: word-pop 1s var(--ease) both; }
@keyframes burst { 0% { opacity: 1; stroke-dasharray: 0 40; } 60% { opacity: 1; stroke-dasharray: 40 0; } 100% { opacity: 0; } }
@keyframes word-pop { 0% { opacity: 0; transform: translateY(16px); } 30% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Anatomi ---------- */
.anatomy { padding: var(--pad-y) var(--pad-x); background: var(--cream); }
.anatomy-title { font-size: clamp(2.8rem, 7vw, 6rem); margin-bottom: clamp(40px, 6vw, 80px); }
.anatomy-grid { position: relative; }
.anatomy-svg { display: block; width: min(100%, 420px); height: auto; margin: 0 auto; overflow: visible; }
.leader line { stroke: var(--black); stroke-width: 1.5; }
.leader circle { fill: var(--orange); stroke: var(--black); stroke-width: 2; }
.gap-arrow { stroke: var(--orange-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.anatomy-notes { margin: 40px 0 0; display: grid; gap: 28px; }
.note dt { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--f-display); letter-spacing: -.03em; margin-bottom: .3em; }
.note dd { margin: 0; color: var(--black-soft); max-width: 24ch; font-size: 1.1rem; }

/* ---------- Tasarım masası (illüstrasyon) ---------- */
.real { padding: 0 var(--pad-x) var(--pad-y); background: var(--cream); }
.real-title { font-size: clamp(2.8rem, 7vw, 6rem); margin-bottom: clamp(32px, 5vw, 64px); }
.desk { margin: 0; background: var(--sand); border-radius: 24px; padding: clamp(16px, 4vw, 56px) clamp(8px, 3vw, 48px) clamp(20px, 3vw, 36px); }
.desk-svg { display: block; width: 100%; height: auto; }
.desk figcaption { margin: clamp(16px, 2vw, 24px) clamp(8px, 1vw, 8px) 0; max-width: 52ch; font-size: 1.05rem; color: var(--black-soft); }
.desk figcaption strong { color: var(--black); font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.02em; margin-right: .3em; }
.desk-note { display: block; margin-top: 6px; font-size: .85rem; }

/* İmleç sırayla üstten görünüşü, başlığı ve sapı seçer (9 sn döngü) */
.sel { opacity: 0; }
.sel-a { opacity: 1; }
.js .sel-a { animation: sel-a 9s steps(1, end) infinite; }
.js .sel-b { animation: sel-b 9s steps(1, end) infinite; }
.js .sel-c { animation: sel-c 9s steps(1, end) infinite; }
@keyframes sel-a { 0%, 30% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes sel-b { 0%, 33% { opacity: 0; } 34%, 63% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes sel-c { 0%, 66% { opacity: 0; } 67%, 97% { opacity: 1; } 98%, 100% { opacity: 0; } }
.cursor { transform: translate(872px, 392px); }
.js .cursor { animation: cursor-move 9s var(--ease) infinite; }
@keyframes cursor-move {
  0%, 26% { transform: translate(872px, 392px); }
  33%, 59% { transform: translate(538px, 562px); }
  66%, 92% { transform: translate(482px, 300px); }
  100% { transform: translate(872px, 392px); }
}
.cad-draw { stroke-dashoffset: 0; }
.js .cad-draw { animation: cad-draw 9s var(--ease) infinite; }
@keyframes cad-draw { 0% { stroke-dashoffset: 742; } 25%, 100% { stroke-dashoffset: 0; } }

/* ---------- Şerit ---------- */
.ticker { background: var(--orange); overflow: hidden; padding: 22px 0; border-block: 2px solid var(--black); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: .6em; padding-right: .6em;
  font: 700 clamp(1.5rem, 3.4vw, 2.8rem)/1 var(--f-display); letter-spacing: -.025em; white-space: nowrap;
}
.ticker span::after { content: ""; width: .32em; height: .32em; border-radius: 50%; background: var(--black); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sözlük ---------- */
.lexicon { display: grid; gap: clamp(48px, 7vw, 96px); padding: var(--pad-y) var(--pad-x); background: var(--cream); }
.entry { border-top: 2px solid var(--black); padding-top: 24px; }
.entry-word { font-size: clamp(3.2rem, 8vw, 6rem); }
.entry-word::first-letter { color: var(--orange-deep); }
.entry-pron { font-style: italic; color: var(--black-soft); margin: 10px 0 20px; font-size: 1.1rem; }
.entry-defs { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; font-size: 1.15rem; max-width: 52ch; }
.entry-defs li::marker { font-weight: 700; color: var(--orange-deep); }
.entry-defs em { color: var(--black-soft); }

/* ---------- Nerede ---------- */
.where { display: grid; }
.where-panel { display: flex; flex-direction: column; gap: 22px; padding: var(--pad-y) var(--pad-x) clamp(32px, 5vw, 64px); }
.where-panel h2 { font-size: clamp(3.2rem, 8vw, 6rem); }
.where-panel > p { max-width: 38ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; }
.where-home { background: var(--sand); }
.where-home > p { color: var(--black-soft); }
.where-biz { background: var(--black); color: var(--cream); }
.where-biz > p { color: var(--cream-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; color: var(--orange); text-decoration: none; align-self: flex-start; }
.link-arrow svg { transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.where-art { display: block; width: 100%; height: auto; margin-top: auto; border-radius: 16px; }
.where-biz .where-art { box-shadow: 0 0 0 1px rgba(245, 242, 237, .08); }

/* ---------- Final ---------- */
.finale { position: relative; overflow: hidden; background: var(--orange); padding: var(--pad-y) var(--pad-x); --focus: var(--black); }
.finale > :not(.finale-brush) { position: relative; z-index: 1; }
.finale-logo { display: block; width: min(64vw, 420px); height: auto; margin-bottom: clamp(32px, 5vw, 56px); }
.finale-title { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: clamp(32px, 5vw, 56px); }
.finale-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.finale-brush {
  position: absolute; right: clamp(-120px, -4vw, -20px); bottom: -10%;
  height: 115%; width: auto; transform: rotate(-28deg);
  --head: var(--cream); --head-low: #d9d2c6; --hub: var(--black); --hub-line: transparent;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 1.05rem/1 var(--f-body); text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-black { background: var(--black); color: var(--cream); }
.btn-black:hover { background: var(--cream); color: var(--black); }

/* ---------- İmza ---------- */
.signature {
  display: inline-flex; align-items: baseline; gap: 12px;
  text-decoration: none; color: var(--cream-soft);
}
.sig-label { font-size: .78rem; letter-spacing: .08em; }
.sig-name {
  font: 400 clamp(2.2rem, 4vw, 2.8rem)/1 "Mrs Saint Delafield", cursive;
  color: var(--orange); letter-spacing: 0;
  padding: 0 .2em; transform: rotate(-4deg); display: inline-block;
}
/* Footer göründüğünde imza soldan sağa "atılır" */
.js .sig-name { clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1) .2s; }
.js .signature.is-signed .sig-name { clip-path: inset(-20% -5% -20% 0); }
.signature:hover .sig-name { color: var(--cream); }

/* ---------- Footer ---------- */
.footer {
  background: var(--black); color: var(--cream-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 36px var(--pad-x) calc(36px + env(safe-area-inset-bottom, 0px)); font-size: .92rem;
}
.footer-logo svg { display: block; height: 30px; width: auto; }

/* ---------- Geniş ekran ---------- */
@media (min-width: 760px) {
  .where { grid-template-columns: 1fr 1fr; }
  .lexicon { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .scene-sticky { grid-template-columns: 1fr 1fr; gap: 48px; }
  .scene-svg { height: min(84svh, 820px); }

  .anatomy-notes { margin: 0; display: block; }
  .note { position: absolute; width: 15rem; }
  .note-a { top: calc(19.7% - 1.2em); right: calc(50% + 236px); text-align: right; }
  .note-a dd { margin-left: auto; }
  .note-b { top: calc(71.7% - 1.2em); left: calc(50% + 236px); }
  .note-c { top: calc(89.5% - 1.2em); right: calc(50% + 236px); text-align: right; }
  .note-c dd { margin-left: auto; }
}
@media (max-width: 959px) {
  .leader { display: none; }
  .scene-stage { order: -1; }
  .scene-title { font-size: clamp(2.2rem, 9vw, 3rem); margin-bottom: 16px; }
  .scene-steps { gap: 12px; }
  .s-step p { font-size: .95rem; }
}
@media (max-width: 759px) {
  .finale-brush { opacity: .22; height: 90%; }
}

/* ---------- Azaltılmış hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .scene { height: auto; }
  .js .scene-sticky { position: static; height: auto; overflow: visible; }
  .s-step { opacity: 1; }
  .m-line { opacity: 1; filter: none; }
  .old-head, .bin { display: none; }
  .new-head { opacity: 1; }
}
