/* =========================================================================
   Yakosoft Entertainment — yakosoft.com.tr
   Design notes: one accent (teal), deep graphite ground, thin rules and
   corner brackets borrowed from the game HUD. Restraint over glow.
   ========================================================================= */

:root {
  /* ground */
  --bg:        #070b0e;
  --bg-2:      #0a1014;
  --panel:     #0c1317;
  --panel-2:   #101a1f;
  --line:      #1a262c;
  --line-2:    #24343b;

  /* ink */
  --ink:       #e8f0f3;
  --ink-2:     #9fb2bb;
  --ink-3:     #6d8189;

  /* accent — sampled from the game's bezel teal */
  --teal:      #2fe8c0;
  --teal-2:    #17b9a0;
  --teal-dim:  rgba(47, 232, 192, .13);
  --teal-line: rgba(47, 232, 192, .28);

  /* rare second accent, used only for the key economy motif */
  --gold:      #f2c94c;

  --maxw:      1140px;
  --radius:    14px;
  --radius-sm: 9px;

  --fs-display: clamp(2.6rem, 7vw, 5.1rem);
  --fs-h2:      clamp(1.7rem, 3.4vw, 2.6rem);
  --fs-h3:      clamp(1.12rem, 1.7vw, 1.32rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The deck: a faint grid + one teal pool up top. This is the whole
   "futuristic" budget for the background — nothing else glows. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(47, 232, 192, .055), transparent 46%),
    radial-gradient(120% 70% at 50% -10%, rgba(47, 232, 192, .10), transparent 62%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(120, 190, 205, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 190, 205, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.42) 42%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.42) 42%, transparent 88%);
}

/* height:auto is load-bearing: the HTML width/height attributes map to
   presentational hints, and a height hint beats `aspect-ratio`, which would
   render every sized image at its intrinsic pixel height. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: rgba(47, 232, 192, .26); color: #fff; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- type ---------- */

h1, h2, h3, h4 {
  font-family: 'Exo 2', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -.012em;
  margin: 0 0 .55em;
  font-weight: 700;
}

.eyebrow {
  font-family: 'Exo 2', sans-serif;
  font-size: .745rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: .72rem;
  margin-bottom: 1.15rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--teal-line), transparent);
  max-width: 190px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }
.eyebrow--center::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--teal-line);
}

.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

section { padding-block: clamp(56px, 6.5vw, 92px); position: relative; }
section + section { border-top: 1px solid var(--line); }

.section-head { max-width: 66ch; margin-bottom: clamp(30px, 4vw, 54px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 14, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-head__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}
/* Both halves are cut from the studio's own logo art — the wordmark's
   typeface is not one of the site's webfonts, so it cannot be set as text. */
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { width: 124px; height: auto; flex: none; }
.site-foot .brand__mark { width: 34px; height: 34px; }
.site-foot .brand__word { width: 142px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  font-size: .875rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.045); text-decoration: none; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 6px;
  flex: none;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font: 600 .74rem/1 'Exo 2', sans-serif;
  letter-spacing: .1em;
  padding: 8px 11px;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.lang-switch button[aria-pressed="true"] { background: var(--teal-dim); color: var(--teal); }
.lang-switch button:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  width: 40px; height: 36px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%; translate: -50% 0;
  width: 17px; height: 1.5px;
  background: var(--ink-2);
  content: '';
  transition: transform .2s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -.75px; }
.nav-toggle span::before { top: -5.5px; left: 0; translate: 0 0; }
.nav-toggle span::after  { top:  5.5px; left: 0; translate: 0 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; order: 3; }
  .lang-switch { order: 2; margin-left: 0; }
  .nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 14px;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; }
  .site-head__in { flex-wrap: wrap; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s var(--ease), background .18s, border-color .18s, color .18s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-2) 100%);
  color: #04100d;
  box-shadow: 0 0 0 1px rgba(47,232,192,.32), 0 10px 30px -14px rgba(47,232,192,.55);
}
.btn--primary:hover { filter: brightness(1.07); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover { border-color: var(--teal-line); color: var(--teal); }

.btn[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

.btn__sub {
  display: block;
  font-size: .62rem;
  letter-spacing: .12em;
  font-weight: 600;
  opacity: .72;
  text-transform: uppercase;
}
.btn--store { text-align: left; padding: 11px 22px; }
.btn--store span { display: block; }

/* ---------- corner-bracket card (the HUD motif) ---------- */

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.panel--bracket::before,
.panel--bracket::after {
  content: '';
  position: absolute;
  width: 15px; height: 15px;
  border: 1.5px solid var(--teal-line);
  pointer-events: none;
}
.panel--bracket::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: var(--radius) 0 0 0; }
.panel--bracket::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 var(--radius) 0; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(42px, 5.5vw, 74px) clamp(48px, 6vw, 80px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero__logo {
  width: min(470px, 100%);
  margin: 0 0 22px -6px;
  filter: drop-shadow(0 16px 40px rgba(47,232,192,.16));
}
.hero h1 {
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
  max-width: 19ch;
}
.hero p { max-width: 50ch; margin-bottom: 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}
.hero__stats div { padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line); }
.hero__stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__stats b {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1.1;
}
.hero__stats span {
  font-size: .715rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (max-width: 560px) {
  /* even columns beat flex wrapping, which stranded one stat on its
     own line with a dangling divider */
  .hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); }
  .hero__stats div { padding: 0 10px; margin: 0; }
  .hero__stats div:first-child { padding-left: 0; }
  .hero__stats b { font-size: 1.32rem; }
  .hero__stats span { font-size: .64rem; letter-spacing: .1em; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { margin-inline: auto; }
  .hero__text { text-align: center; }
  .hero h1, .hero p { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }
}

/* ---------- phone mockup ---------- */

.phone {
  position: relative;
  width: 100%;
  max-width: 292px;
  margin-inline: auto;
  aspect-ratio: 1 / 2;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, #2a3940 0%, #121b20 42%, #0a1114 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 34px 70px -30px rgba(0,0,0,.95),
    0 0 60px -26px rgba(47,232,192,.36);
}
.phone::after {           /* speaker pill */
  content: '';
  position: absolute;
  top: 19px; left: 50%;
  translate: -50% 0;
  width: 58px; height: 5px;
  border-radius: 99px;
  background: rgba(0,0,0,.72);
  z-index: 2;
}
.phone img,
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  background: #060a0c;
}

/* ---------- hero stage ----------
   The hero phone plays a caption-free gameplay loop (assets/video/binarycube-loop.mp4).
   Behind it: a canvas fed a 24x42 copy of the playing video, blown up and blurred, so the
   light around the phone is literally the game's light ("ambient mode"). A second phone
   with the home screen sits behind, and the game's value chips drift around the stage. */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 36px 0 28px;
  perspective: 1200px;
}
.stage__ambient {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118%;
  height: 112%;
  translate: -50% -50%;
  z-index: 0;
  filter: blur(46px) saturate(1.5);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  pointer-events: none;
}
.stage.is-lit .stage__ambient { opacity: .62; }

.phone--hero {
  position: relative;
  z-index: 2;
  max-width: 318px;
  aspect-ratio: auto;
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 2deg));
  transition: transform .5s var(--ease);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 44px 90px -34px rgba(0,0,0,.95),
    0 0 80px -24px rgba(47,232,192,.5);
}
.phone--side {
  position: absolute;
  z-index: 1;
  width: 62%;
  max-width: 214px;
  left: 2%;
  top: 16%;
  transform: rotate(-9deg) translateZ(-60px);
  opacity: .5;
  filter: saturate(.8) brightness(.8);
}
.screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #060a0c;
}
.screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.stage__toggle {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--teal-line);
  background: rgba(6, 12, 14, .6);
  color: var(--teal);
  cursor: pointer;
  opacity: .72;
  backdrop-filter: blur(4px);
  transition: opacity .2s var(--ease);
}
.stage__toggle:hover, .stage__toggle:focus-visible { opacity: 1; }
.stage__toggle svg { width: 16px; height: 16px; }
.stage__toggle .i-play { display: none; }
.stage__toggle[aria-pressed="true"] .i-play { display: block; }
.stage__toggle[aria-pressed="true"] .i-pause { display: none; }

/* value chips: the game's own tile palette (2 silver, 4 teal, 8 lime, 16 gold, 32 orange, 64 pink) */
.chips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-width: 46px;
  height: 46px;
  padding-inline: 8px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(160deg, #1b262c, #0b1216);
  border: 1.5px solid rgba(var(--c), .85);
  box-shadow: 0 0 22px -4px rgba(var(--c), .55), inset 0 0 12px -4px rgba(var(--c), .6);
  text-shadow: 0 0 10px rgba(var(--c), .9);
  animation: chip-float 7.5s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-16px) rotate(5deg); }
}
@media (max-width: 520px) {
  .phone--side { display: none; }
  .chip { min-width: 38px; height: 38px; font-size: .9rem; border-radius: 10px; }
  .phone--hero { max-width: 270px; }
}

/* ---------- hero floor: the board, receding ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -4%;
  height: 70%;
  z-index: -1;
  background-image:
    linear-gradient(to right,  rgba(47, 232, 192, .34) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(47, 232, 192, .34) 1.5px, transparent 1.5px);
  background-size: 72px 72px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.75) 40%, transparent 96%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.75) 40%, transparent 96%);
  animation: floor-scroll 6s linear infinite;
  pointer-events: none;
}
@keyframes floor-scroll { to { background-position: 0 72px; } }
.hero::after {           /* horizon glow where the floor meets the dark */
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 44%;
  height: 160px;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 50%, rgba(47, 232, 192, .10), transparent 70%);
  pointer-events: none;
}

/* ---------- feature grid ---------- */

/* Six cards: 3x2 on wide, 2x3 on tablet, stacked on phone. auto-fit gave a
   4+2 row at desktop width, which reads as a leftover row. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }
.feature { padding: 26px 24px 28px; }
.feature__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--teal-line);
  border-radius: 10px;
  background: var(--teal-dim);
  margin-bottom: 18px;
  color: var(--teal);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: var(--fs-h3); }
.feature p { margin: 0; font-size: .95rem; }

/* ---------- mechanics rows ---------- */

.mech {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.mech:last-child { border-bottom: 0; }
.mech__no {
  font-family: 'Exo 2', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--teal);
  padding-top: .3rem;
}
.mech h3 { font-size: 1.06rem; margin-bottom: .3em; }
.mech p { margin: 0; font-size: .95rem; max-width: 72ch; }

.mech-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
}
@media (max-width: 880px) { .mech-split { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */

/* Six 1:2 shots. Fixed column counts, not auto-fit: auto-fit lands on five
   columns at this max-width and strands the sixth on its own row. */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
/* two columns all the way down — one 1:2 shot at full phone width is ~750px tall */
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .28s var(--ease), border-color .28s;
}
.shot:hover { transform: translateY(-5px); border-color: var(--teal-line); }
.shot img { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; }
.shot figcaption {
  font-size: .73rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}

/* ---------- trailer ----------
   Local files, one per site language (assets/video/binarycube-trailer-{en,tr}.mp4);
   site.js swaps the source when the language changes. preload="none": nothing is fetched
   until the play button is pressed. */

.trailer .hero__cta { margin-top: 26px; }
.trailer__note { font-size: .82rem; color: var(--ink-3); max-width: 46ch; margin: 18px 0 0; }

.phone--video { aspect-ratio: auto; max-width: 330px; }
.vplay {
  position: absolute;
  left: 50%;
  bottom: 13%;
  translate: -50% 0;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--teal-line);
  border-radius: 50%;
  background: rgba(6, 12, 14, .62);
  color: var(--teal);
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(47, 232, 192, .07), 0 0 44px -6px rgba(47, 232, 192, .55);
  backdrop-filter: blur(4px);
  transition: transform .18s var(--ease), background .18s var(--ease);
  animation: vplay-pulse 2.4s ease-in-out infinite;
}
.vplay svg { width: 34px; height: 34px; margin-left: 4px; }
.vplay:hover { transform: scale(1.06); background: rgba(6, 12, 14, .78); }
.vplay:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
@keyframes vplay-pulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(47, 232, 192, .07), 0 0 44px -6px rgba(47, 232, 192, .55); }
  50%      { box-shadow: 0 0 0 16px rgba(47, 232, 192, .03), 0 0 60px -4px rgba(47, 232, 192, .7); }
}
.trailer__screen.is-playing .vplay { display: none; }
@media (max-width: 880px) {
  .trailer { text-align: center; }
  .trailer .eyebrow { justify-content: center; }
  .trailer .eyebrow::after { flex: 0 0 30px; }
  .trailer .lead, .trailer__note { margin-inline: auto; }
  .trailer .hero__cta { justify-content: center; }
}

.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;
}

/* ---------- studio / about ---------- */

.studio {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(26px, 5vw, 56px);
  align-items: center;
}
.studio img { width: 100%; max-width: 190px; }
@media (max-width: 720px) {
  .studio { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .studio img { max-width: 140px; }
  .studio .lead { margin-inline: auto; }
}

/* ---------- contact ---------- */

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  padding: clamp(26px, 4vw, 42px);
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: .34em; }
.contact-card p { margin: 0; font-size: .93rem; }
.mail {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -.01em;
  word-break: break-all;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 42px 34px;
  background: rgba(4, 7, 9, .55);
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-bottom: 30px;
}
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr; gap: 26px; } }
.foot__grid h4 {
  font-size: .73rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1em;
  font-weight: 600;
}
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__links a { color: var(--ink-2); font-size: .9rem; }
.foot__links a:hover { color: var(--teal); }
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-3);
}

/* ---------- legal pages ---------- */

.legal-head {
  padding-block: clamp(46px, 6vw, 76px) clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.legal-head h1 { font-size: clamp(1.95rem, 4.4vw, 3rem); margin-bottom: .3em; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legal {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 62px) clamp(56px, 8vw, 96px);
}
/* min-width:0 is load-bearing: a grid item defaults to min-width:auto, so the
   520px min-width of the tables inflated the whole column and overflowed the
   page sideways instead of letting .table-wrap scroll on its own. */
.legal > * { min-width: 0; }
@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static !important; max-height: none !important; }
}

.toc {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  font-size: .875rem;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.toc h2 {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1em;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; counter-reset: toc; }
.toc a { color: var(--ink-2); display: block; }
.toc a:hover { color: var(--teal); text-decoration: none; }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: 1.28rem;
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.prose > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.02rem; margin-top: 1.9em; color: var(--ink); }
.prose p, .prose li { font-size: .97rem; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: .5em; }
.prose li::marker { color: var(--teal-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: .86em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: .1em .42em;
  border-radius: 5px;
  color: var(--teal);
}

.callout {
  border: 1px solid var(--teal-line);
  background: var(--teal-dim);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 1.6em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn {
  border-color: rgba(242, 201, 76, .3);
  background: rgba(242, 201, 76, .08);
}

.table-wrap { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: 'Exo 2', sans-serif;
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--panel-2);
  font-weight: 600;
}
tr:last-child td { border-bottom: 0; }

/* ---------- language toggling ---------- */

/* Only ever HIDE the wrong language — never re-declare display on the visible
   one, or every [data-lang] grid/flex container would collapse to a block. */
html[lang="tr"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="tr"] { display: none !important; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--teal);
  color: #04100d;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 16px; }
