* { box-sizing: border-box; }
:root {
  /* Gill Sans — the app's typeface. Exact on Apple devices (system font,
     Light/Bold per the iOS app); graceful humanist-sans fallback elsewhere. */
  --font: "Gill Sans", "Gill Sans MT", "GillSans", "Seravek", "Segoe UI", "Optima", "Helvetica Neue", Arial, sans-serif;
}
html, body { margin: 0; background: #000; }
html { overscroll-behavior-y: none; }
body {
  font-family: var(--font);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
/* scroll runway — the scene is fixed, the page scrolls */
.runway { height: 1100vh; }
canvas.scene {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
/* cinematic vignette */
.vignette {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 75% at 50% 46%, transparent 55%, rgba(0,0,0,.62) 100%);
}
/* film grain */
.grain {
  position: fixed; inset: -60px; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 25% { transform: translate(-18px,12px); }
  50% { transform: translate(12px,-16px); } 75% { transform: translate(-10px,-8px); }
  100% { transform: translate(0,0); }
}
/* header */
header.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) clamp(20px, 4vw, 44px) 18px;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  pointer-events: none;
}
header.hd.on { opacity: 1; transform: none; pointer-events: auto; }
.hd-brand {
  font-size: 19px; font-weight: 700; letter-spacing: .01em;
  color: rgba(255,255,255,.92);
}
.hd-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 1px;
  padding: 3px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(0,0,0,.2); backdrop-filter: blur(6px);
}
.lang-switch button {
  min-width: 32px; height: 28px; padding: 0 8px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255,255,255,.46);
  font: 600 10px/1 var(--font); letter-spacing: .08em; cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.lang-switch button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: #fff; }
.hd-cta {
  font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-indent: .22em;
  text-transform: uppercase; text-decoration: none;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: 10px 18px;
  backdrop-filter: blur(6px);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.hd-cta:hover { background: #fff; color: #000; border-color: #fff; }
/* hero wordmark under the mark */
.hero {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: clamp(96px, 15vh, 210px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; transition: opacity 1.6s ease;
  pointer-events: none; will-change: opacity, transform;
  text-align: center;
}
.hero-word {
  font-size: clamp(26px, 6.5vw, 40px); font-weight: 700;
  letter-spacing: .01em;
  color: rgba(255,255,255,.96);
}
.hero-rule {
  width: 44px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.4), transparent);
}
.hero-sub {
  font-size: 10.5px; font-weight: 400; letter-spacing: .34em; text-indent: .34em;
  text-transform: none; color: rgba(255,255,255,.4);
}
/* ===== SCENE 3 — the dark map, scrubbed by scroll ===== */
.map3 {
  position: fixed; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; will-change: opacity;
  pointer-events: none;
  background: #000;
}
/* colored signal lights rising off the map */
.fx3 { position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0; }
/* scene-3 UI: annotation pin + post peek */
.s3ui { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
/* annotation pin (avatar + tail) */
.annPin {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -100%) scale(0.6);
  opacity: 0; will-change: transform, opacity;
}
.annAvatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #7b5cff, #4aa8ff);
  border: 2.5px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 19px;
}
.annTail {
  width: 12px; height: 12px; margin: -6px auto 0; rotate: 45deg;
  background: #fff; border-radius: 0 0 3px 0;
}
.annPulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(123,92,255,.55);
  animation: annpulse 2.2s ease-out infinite;
}
@keyframes annpulse {
  0% { transform: scale(.7); opacity: .7; }
  100% { transform: scale(1.9); opacity: 0; }
}
/* post peek card — recreated from the iOS map peek sheet */
.peek {
  position: absolute; left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom));
  width: min(430px, 92vw);
  transform: translate(-50%, 40px);
  opacity: 0; will-change: transform, opacity;
  background: rgba(26,26,26,.72);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 30px 16px 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  color: #fff;
}
.peekAvatar {
  position: absolute; top: -30px; left: 22px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #7b5cff, #4aa8ff);
  border: 4px solid #1a1a1a;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 24px;
}
.peekHead { display: flex; align-items: baseline; gap: 10px; }
.peekName { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.96); letter-spacing: .01em; }
.peekTime { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.6); }
.peekBody { margin: 7px 0 12px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.88); }
.peekDiv { height: 1px; background: rgba(255,255,255,.08); margin: 0 -16px; }
.peekActions { display: flex; gap: 26px; padding-top: 12px; }
.pa { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; }
.pa svg { width: 17px; height: 17px; fill: currentColor; }
.pa .n { font-variant-numeric: tabular-nums; min-width: 1.4em; }
.pa.on-like { color: #4a9bff; }
.pa.on-reply { color: #b184ff; }
.pa .n.pop { animation: numpop .32s ease; }
@keyframes numpop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
/* little reaction bubbles rising into the peek */
.rx { position: absolute; left: 30px; bottom: 40px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  opacity: 0; will-change: transform, opacity; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
/* ===== SCENE 2 — a band rises to the middle, carrying the words ===== */
.s2band {
  position: fixed; left: 0; right: 0; top: 50%; z-index: 5;
  height: clamp(66px, 12vw, 116px);   /* just a little taller than the text */
  background: #e8e2d4;              /* off-white / warm cream, not pure white */
  overflow: hidden;                 /* words are masked by the band edges */
  transform: translateY(-50%) translateY(110vh);   /* fully below the fold on load */
  will-change: transform;
  pointer-events: none;
  box-shadow: 0 -24px 50px rgba(0,0,0,.32), 0 24px 50px rgba(0,0,0,.32);
}
.s2-line {
  position: absolute; left: 0; right: 0; top: 50%;
  padding: 0 5vw;
  font-weight: 700; color: #14140f;
  text-transform: uppercase;
  letter-spacing: 0.015em; line-height: 1;
  font-size: clamp(22px, 5.6vw, 58px);
  text-align: center;
  opacity: 0; will-change: opacity, transform;
  transform: translateY(-50%);
}
/* Only the changing word occupies this measured slot. */
.s2-line .swap {
  position: relative; display: inline-block;
  width: var(--swap-width, 4em); height: 1em;
  overflow: visible; vertical-align: baseline;
}
/* Give the absolute word slot a real text baseline. Without this strut,
   flex alignment uses the slot's bottom edge and lifts the word glyphs. */
.s2-line .swap::after {
  content: "M"; visibility: hidden;
  line-height: 1;
}
.s2-line .swap > span {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  will-change: opacity, transform;
}
/* English keeps "Leave a" fixed; changing words grow to the right.
   Turkish keeps "bırak" fixed; changing words end at the same right edge. */
.s2-line .swap.align-end > span { left: auto; right: 0; }
.s2-phrase { display: inline-flex; align-items: baseline; justify-content: center; }
.s2-static { white-space: pre; }
/* ===== END — CTA (store routing / email) + footer ===== */
.end {
  position: fixed; inset: 0; z-index: 7;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; padding: 0 24px calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 42%, rgba(6,6,10,.6), rgba(0,0,0,.9));
  opacity: 0; pointer-events: none; will-change: opacity;
}
.end-inner { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.end-logo {
  display: block;
  width: clamp(112px, 19vw, 152px);
  height: auto;
  margin-bottom: 2px;
  overflow: visible;
}
.end-logo-dot {
  opacity: 0;
  transform: scale(.55);
  transform-box: fill-box;
  transform-origin: center;
}
.end.logo-visible .end-logo-dot {
  animation: end-logo-dot-in var(--dot-duration, .26s) cubic-bezier(.333333, 0, .666667, 1) calc(var(--i) * 45ms) forwards;
}
.end.logo-visible .end-logo {
  animation: end-logo-breathe .38s ease-in-out 1.28s both;
}
@keyframes end-logo-dot-in {
  from { opacity: 0; transform: scale(.55); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes end-logo-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .82; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .end-logo-dot { opacity: 1; transform: none; }
  .end.logo-visible .end-logo-dot,
  .end.logo-visible .end-logo { animation: none; }
}
.end-word { font-size: clamp(40px, 12vw, 84px); font-weight: 700; letter-spacing: .01em; color: #fff; }
.end-tag {
  margin: 0; font-size: clamp(14px, 3.6vw, 18px); font-weight: 400;
  color: rgba(255,255,255,.55);
  text-transform: none; font-variant-caps: normal;
  font-family: var(--font);
}
.stores { display: none; gap: 12px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; text-decoration: none;
  background: #fff; color: #000; font-size: 15px; font-weight: 500;
  transition: transform .2s ease, opacity .2s ease;
}
.store-btn:active { transform: scale(.97); }
.emailbox { display: none; width: min(420px, 100%); margin-top: 8px; flex-direction: column; gap: 10px; }
.email-row { display: flex; gap: 8px; }
.emailbox input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-size: 16px; font-family: var(--font);
  outline: none; transition: border-color .2s ease;
}
.emailbox input:focus { border-color: rgba(255,255,255,.4); }
.emailbox input::placeholder { color: rgba(255,255,255,.4); }
.emailbox button {
  height: 50px; padding: 0 22px; border: 0; border-radius: 12px;
  background: #fff; color: #000; font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer; white-space: nowrap; transition: transform .2s ease, opacity .2s ease;
}
.emailbox button:disabled { opacity: .5; }
.email-hint { font-size: 12.5px; color: rgba(255,255,255,.4); }
.email-msg { font-size: 13.5px; min-height: 1.2em; color: rgba(255,255,255,.7); }
.email-msg.ok { color: #7fd4a0; }
.email-msg.err { color: #ff8080; }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 18px; padding-top: 22px; width: 100%;
  font-size: 12.5px; color: rgba(255,255,255,.42);
}
.foot a { color: rgba(255,255,255,.55); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot button { border: 0; padding: 0; background: none; color: rgba(255,255,255,.55); font: inherit; cursor: pointer; }
.foot button:hover { color: #fff; }
.foot .foot-brand { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.7); }
.foot .dot { opacity: .4; }
/* scroll cue */
.cue {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.cue.on { opacity: 1; }
.cue .label {
  font-size: 10px; letter-spacing: .38em; text-indent: .38em;
  text-transform: uppercase; color: rgba(255,255,255,.42);
}
.cue .line {
  width: 1px; height: 34px; overflow: hidden; position: relative;
  background: rgba(255,255,255,.12);
}
.cue .line::after {
  content: ""; position: absolute; left: 0; top: 110%;
  width: 100%; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,.85), transparent);
  animation: drip 2.2s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes drip { 0% { top: 110%; } 60%, 100% { top: -50%; } }
@media (prefers-reduced-motion: reduce) {
  .grain, .cue .line::after { animation: none; }
}
.consent-panel { position: fixed; z-index: 50; inset: auto 16px 16px; max-width: 620px; margin: auto; padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(12,12,16,.96); box-shadow: 0 16px 60px rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1.45; }
.consent-panel[hidden], .consent-details[hidden] { display: none; }
.consent-panel h2 { margin: 0 0 8px; font-size: 18px; }
.consent-panel p { margin: 0; color: rgba(255,255,255,.68); }
.consent-panel a { color: #fff; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.consent-actions button { min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: transparent; color: #fff; font: 600 13px var(--font); cursor: pointer; }
.consent-actions .primary { background: #fff; color: #000; border-color: #fff; }
.consent-details { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.consent-choice { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 9px 0; }
.consent-choice strong { display: block; }
.consent-choice small { color: rgba(255,255,255,.55); }
.consent-choice input { width: 20px; height: 20px; accent-color: #fff; }

[data-i18n]:not(.i18n-no-transition),
[data-i18n-html],
[data-i18n-placeholder] {
  transition: opacity .16s ease, transform .16s ease;
}
html.i18n-changing [data-i18n]:not(.i18n-no-transition),
html.i18n-changing [data-i18n-html],
html.i18n-changing [data-i18n-placeholder] {
  opacity: 0;
  transform: translateY(2px);
}
@media (prefers-reduced-motion: reduce) {
  [data-i18n]:not(.i18n-no-transition),
  [data-i18n-html],
  [data-i18n-placeholder] {
    transition: none;
  }
}
