/* ==========================================================================
   Boom Games — studio site styles
   Warm paper, black ink and the four colours of the BOOM tiles.
   ========================================================================== */

:root {
  --bg: #f3efe6;
  --bg-2: #ebe5d8;
  --surface: #fffdf8;
  --ink: #15120f;
  --ink-2: #4b453e;
  --ink-3: #847c72;
  --line: rgba(21, 18, 15, 0.12);
  --line-strong: rgba(21, 18, 15, 0.24);

  --night: #15120f;
  --night-2: #211d19;
  --night-3: #2e2924;
  --on-night: #f3efe6;
  --on-night-2: #b5ab9f;
  --line-night: rgba(243, 239, 230, 0.14);

  /* Brand colours, sampled from the Boom Games logo. */
  --red: #ff4038;
  --red-deep: #d03028;
  --yellow: #ffd028;
  --yellow-deep: #c8a820;
  --blue: #4040c8;
  --blue-deep: #282890;
  --green: #08e880;
  --green-deep: #08c068;
  --orange: #ff7840;
  --orange-deep: #c86030;
  --gray: #404850;
  --gray-deep: #282830;
  /* Darker green for text and small marks on light paper. */
  --green-ink: #078a4e;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-logo: "Arco", "Arial Rounded MT Bold", "Helvetica Rounded", Arial, sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;

  --shadow: 0 1px 0 rgba(21, 18, 15, 0.05), 0 14px 34px -18px rgba(21, 18, 15, 0.35);
  --shadow-lift: 0 2px 0 rgba(21, 18, 15, 0.05), 0 28px 60px -24px rgba(21, 18, 15, 0.45);

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

/* ARCO: the typeface of the Boom Games logo (Latin only, so it is used for the logo letters, not copy). */
@font-face {
  font-family: "Arco";
  src: url("../assets/fonts/arco.woff2") format("woff2");
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--paper-2 { background: var(--bg-2); }
.section--night { background: var(--night); color: var(--on-night); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8.4vw, 8.4rem); letter-spacing: -0.04em; line-height: 0.92; }
h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); letter-spacing: -0.035em; line-height: 0.96; }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }

/* Accent words sit on a coloured tile. */
h1 em, h2 em, .mark {
  font-style: normal;
  position: relative;
  z-index: 0;
  white-space: nowrap;
}
h1 em::before, h2 em::before, .mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.12em -0.12em 0.02em;
  border-radius: 0.14em;
  background: var(--accent, var(--yellow));
  transform: rotate(-1.5deg);
}
.section--night h2 em, .page-hero h1 em, .cta-band h2 em { color: var(--ink); }
/* Dotted capitals (İ) need a little more headroom on the tile. */
:lang(tr) h1 em::before, :lang(tr) h2 em::before { inset-block-start: -0.02em; }
.accent-red { --accent: var(--red); }
.accent-blue { --accent: var(--blue); }
.accent-green { --accent: var(--green); }
.accent-red, .accent-blue { color: #fff !important; }
.accent-green { color: var(--ink) !important; }

p { text-wrap: pretty; }
.lede {
  font-size: clamp(1.12rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.section--night .lede { color: var(--on-night-2); }
.muted { color: var(--ink-3); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section--night .eyebrow { color: var(--on-night-2); }
.eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--red);
  transform: rotate(-8deg);
}
.eyebrow--yellow::before { background: var(--yellow); }
.eyebrow--blue::before { background: var(--blue); }
.eyebrow--green::before { background: var(--green); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head h2 + .lede { margin-top: 26px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
}
.section-head--split .lede { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 19px; height: 19px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

.btn--red { --btn-bg: var(--red); --btn-fg: #fff; }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--light { --btn-bg: var(--bg); --btn-fg: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { background: rgba(127, 110, 90, 0.1); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.btn--sm svg { width: 16px; height: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease-out);
}
.link-arrow:hover { background-size: 0% 1.5px; background-position: 100% 100%; }
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Brand mark ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.brand__logo {
  display: block;
  height: 56px;
  width: auto;
  transition: transform 0.35s var(--ease-spring);
}
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.04); }
/* Two versions in the header: colour on paper, white "GAMES" over dark photos. */
.site-header .brand__logo--white { display: none; }
.site-header--overlay:not(.is-stuck) .brand__logo--color { display: none; }
.site-header--overlay:not(.is-stuck) .brand__logo--white { display: block; }
.menu-open .site-header--overlay .brand__logo--color { display: block; }
.menu-open .site-header--overlay .brand__logo--white { display: none; }
.footer-brand .brand__logo { height: 84px; }

/* Letters set in ARCO with the logo's 3D edge. */
.arco { font-family: var(--font-logo); font-weight: 400; letter-spacing: 0; }
.c-red { color: var(--red); --deep: var(--red-deep); }
.c-yellow { color: var(--yellow); --deep: var(--yellow-deep); }
.c-blue { color: var(--blue); --deep: var(--blue-deep); }
.c-green { color: var(--green); --deep: var(--green-deep); }
.c-orange { color: var(--orange); --deep: var(--orange-deep); }
.c-gray { color: var(--gray); --deep: var(--gray-deep); }
.arco .c-red, .arco .c-yellow, .arco .c-blue, .arco .c-green, .arco .c-orange, .arco .c-gray,
.arco-edge { text-shadow: 0 0.05em 0 var(--deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header.is-stuck {
  background: rgba(243, 239, 230, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* Over a dark photo the header starts transparent with light text. */
.site-header--overlay { position: fixed; left: 0; right: 0; color: #fff; }
.site-header--overlay.is-stuck { color: var(--ink); }
.site-header--overlay:not(.is-stuck) .site-header__cta { --btn-bg: var(--bg); --btn-fg: var(--ink); }
.menu-open .site-header--overlay .site-header__cta { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-header .brand { margin-right: auto; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.nav__link:hover { background: rgba(127, 110, 90, 0.14); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}

.site-header__lang { display: flex; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px currentColor;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-switch__item {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s, background-color 0.2s;
}
a.lang-switch__item:hover { opacity: 1; background: rgba(127, 110, 90, 0.18); }
.lang-switch__item.is-current { opacity: 1; background: currentColor; }
/* The current code sits on a currentColor pill, so its text takes the background colour. */
.lang-switch__item.is-current > span { color: var(--bg); }
.site-header--overlay:not(.is-stuck) .lang-switch__item.is-current > span { color: var(--ink); }
.menu-open .site-header--overlay .lang-switch__item.is-current > span { color: var(--bg); }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
}
.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.mobile-menu__links { display: grid; margin-bottom: 32px; }
.mobile-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.mobile-menu__links a[aria-current="page"] { color: var(--red); }
.mobile-menu .btn { width: 100%; }
.mobile-menu__foot { margin-top: auto; padding-top: 28px; color: var(--ink-2); font-size: 0.95rem; }
.menu-open { overflow: hidden; }
.menu-open .site-header { color: var(--ink); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------- Studio hero (home) ---------- */
.studio-hero {
  position: relative;
  min-height: max(680px, calc(100svh - var(--header-h)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.studio-hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(32px, 7vh, 88px);
  pointer-events: none;
}
/* The copy sits over the tile field: only its links and buttons take the pointer. */
.studio-hero__content * { pointer-events: none; }
.studio-hero__content a,
.studio-hero__content a *,
.studio-hero__content button { pointer-events: auto; }
.studio-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.studio-hero h1 { max-width: 8.6ch; font-size: clamp(3rem, 6.6vw, 6.6rem); }
/* Turkish words run longer: keep "İyi hissettiren" on one line. */
:lang(tr) .studio-hero h1 { max-width: 15.5ch; font-size: clamp(2.6rem, 5.2vw, 5.4rem); }
.studio-hero__lede {
  margin-top: clamp(24px, 4vh, 36px);
  max-width: 38ch;
  font-size: clamp(1.1rem, 1.45vw, 1.3rem);
  color: var(--ink-2);
}
.studio-hero .btn-row { margin-top: 30px; }
.studio-hero .hero-meta { margin-top: 34px; }

.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out);
}
.news-pill:hover { transform: translateY(-2px); }
.news-pill__tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-pill svg { width: 16px; height: 16px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.hero-meta span:first-child::before { display: none; }

/* Tile playground */
.studio-hero { --S: clamp(66px, 9.2vw, 148px); --F: var(--S); }
.tile-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px) 46%;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.tile-field.is-live { cursor: grab; }
.tile-field.is-dragging { cursor: grabbing; }
/* Resting layout (also the no-JS / reduced-motion view): the logo, BOOM! over GAMES. */
.ltr-row { display: flex; align-items: flex-end; gap: calc(var(--S) * 0.06); }
.ltr-row--small { margin-top: calc(var(--S) * 0.1); }
/* Toy alphabet blocks: cream for BOOM! with the letters in logo colours,
   charcoal for GAMES with white letters (as in the white logo). */
.blk {
  --s: var(--S);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * 0.18);
  background: #fffdf6;
  box-shadow:
    inset 0 calc(var(--s) * -0.06) 0 rgba(120, 96, 60, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(21, 18, 15, 0.08),
    0 calc(var(--s) * 0.07) calc(var(--s) * 0.14) -0.02em rgba(21, 18, 15, 0.3);
  transform: rotate(var(--r, 0deg));
  will-change: transform;
}
.blk { --fill: 0.8; }
/* The "!" gets an upright block: narrow and tall. */
.blk--tall { width: calc(var(--s) * 0.52); --fill: 0.84; }
.blk--dark {
  --s: calc(var(--S) * 0.62);
  background: var(--gray);
  box-shadow:
    inset 0 calc(var(--s) * -0.07) 0 var(--gray-deep),
    inset 0 2px 0 rgba(255, 255, 255, 0.14),
    0 calc(var(--s) * 0.07) calc(var(--s) * 0.14) -0.02em rgba(21, 18, 15, 0.35);
}
.c-white { color: #fff; --deep: rgba(0, 0, 0, 0.28); }
.blk .ltr {
  display: block;
  font-size: calc(var(--s) * 0.66);
  line-height: 0.8;
  /* Optical centring: lift the glyph a touch above the block's bottom edge. */
  margin-top: calc(var(--s) * -0.05);
}
.blk .ltr svg { display: block; overflow: visible; }
.tile-field.is-fitted .blk .ltr { line-height: 0; text-shadow: none; margin-top: 0; }
.blk.is-popped { animation: pop 0.45s var(--ease-spring); }
@keyframes pop { 50% { filter: brightness(1.12); } }
/* Hide the resting layout until the physics either takes over or gives up.
   The animation is a safety net in case the script never runs. */
.js .tile-field:not(.is-ready) .blk { opacity: 0; animation: tiles-fallback 0s 3.5s forwards; }
@keyframes tiles-fallback { to { opacity: 1; } }

.tile-hint {
  position: absolute;
  right: var(--gutter);
  top: clamp(32px, 7vh, 88px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}
.tile-hint button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.tile-hint button:hover { transform: translateY(-1px); background: #fff; }
.tile-hint svg { width: 15px; height: 15px; }

/* ---------- Manifesto ---------- */
.manifesto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 22ch;
}
.manifesto .w { transition: color 0.35s; }
.js .manifesto[data-words] .w { color: rgba(243, 239, 230, 0.2); }
.js .manifesto[data-words] .w.is-lit { color: var(--on-night); }
.manifesto .mark, .js .manifesto[data-words] .mark .w { color: var(--ink); }
.manifesto .mark::before { inset: 0.08em -0.1em -0.02em; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--line-night);
}
.fact-cell {
  padding: 28px 24px 0 0;
}
.fact-cell + .fact-cell { padding-left: 24px; border-left: 1px solid var(--line-night); }
.fact-cell b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.fact-cell span { display: block; margin-top: 12px; color: var(--on-night-2); }

/* ---------- Projects ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--night);
  color: var(--on-night);
  box-shadow: var(--shadow-lift);
}
.project__media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--night-2);
}
.project__media img,
.project__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity 0.6s;
}
.project__media video { opacity: 0; }
.project.is-playing .project__media video { opacity: 1; }
.project:hover .project__media img,
.project:hover .project__media video { transform: scale(1.03); }
.project__logo {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  width: min(300px, 55%);
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
}
.project__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4vw, 56px);
}
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-night);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-night-2);
}
.tag--live { color: var(--on-night); }
.tag--live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(47, 158, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 158, 91, 0); }
}
.project__body h3 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.project__body p { color: var(--on-night-2); }
.project__body .btn-row { margin-top: auto; padding-top: 12px; }
.project__note { font-size: 0.92rem; color: var(--on-night-2); }

/* Archive wall */
.archive {
  margin-top: clamp(64px, 8vw, 110px);
}
.archive__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}
.archive__head h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.035em; }
.archive__head p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.icon-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.icon-wall li { position: relative; }
.icon-wall img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--bg-2);
  box-shadow: 0 10px 22px -14px rgba(21, 18, 15, 0.55);
  transition: transform 0.35s var(--ease-spring);
}
.icon-wall li:hover img { transform: translateY(-6px) rotate(var(--tilt, -4deg)) scale(1.04); }
.icon-wall li:nth-child(even) { --tilt: 4deg; }
.icon-wall span {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-2);
  text-align: center;
}
.archive__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }

/* ---------- Principles ---------- */
.principles { border-top: 1px solid var(--line-strong); }
.principle {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px clamp(24px, 4vw, 64px);
  align-items: baseline;
  padding-block: clamp(28px, 3.6vw, 44px);
  border-bottom: 1px solid var(--line-strong);
}
.principle__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-3);
}
.principle h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.principle p { color: var(--ink-2); font-size: 1.08rem; }
.principle__dot {
  display: inline-block;
  width: 0.5em; height: 0.5em;
  margin-left: 0.18em;
  border-radius: 0.12em;
  background: var(--c, var(--red));
  transform: rotate(-8deg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-grid h2 { font-size: clamp(2.8rem, 7vw, 6.2rem); }
.contact-grid .lede { margin-top: 24px; }
.email-big {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
}
.email-big a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  letter-spacing: -0.04em;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s var(--ease-out);
  word-break: break-word;
}
.email-big a:hover { background-size: 100% 3px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(127, 110, 90, 0.12);
  color: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.copy-btn:hover { background: rgba(127, 110, 90, 0.22); }
.copy-btn svg { width: 16px; height: 16px; }
.section--night .copy-btn { background: rgba(255, 255, 255, 0.1); }
.section--night .copy-btn:hover { background: rgba(255, 255, 255, 0.18); }
.copy-btn--ink { background: var(--ink); color: var(--bg); }
.copy-btn--ink:hover { background: #000; }
.copy-btn.is-copied { background: var(--green) !important; color: #fff; }

.contact-list { display: grid; border-top: 1px solid var(--line-strong); }
.section--night .contact-list { border-color: var(--line-night); }
.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: padding 0.3s var(--ease-out);
}
.section--night .contact-item { border-color: var(--line-night); }
a.contact-item:hover { padding-left: 8px; }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c, var(--red));
  color: #fff;
}
.contact-item:nth-child(2) { --c: var(--blue); }
.contact-item:nth-child(3) { --c: var(--green); }
.contact-item:nth-child(4) { --c: var(--yellow); }
.contact-item:nth-child(4) .contact-item__icon { color: var(--ink); }
.contact-item__icon svg { width: 21px; height: 21px; }
.contact-item strong { display: block; font-weight: 600; font-size: 1.05rem; }
.contact-item span span { display: block; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.section--night .contact-item span span { color: var(--on-night-2); }
.contact-item > svg { width: 18px; height: 18px; opacity: 0.5; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
a.contact-item:hover > svg { transform: translateX(4px); opacity: 1; }

/* Istanbul clock card */
.city-card {
  position: relative;
  padding: clamp(28px, 3.6vw, 44px);
  border-radius: var(--radius-l);
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
  isolation: isolate;
}
.city-card::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  z-index: -1;
  width: 220px; height: 220px;
  border-radius: 46px;
  background: var(--red);
  opacity: 0.9;
  transform: rotate(14deg);
}
.city-card__time {
  display: block;
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.city-card__time small { font-size: 0.4em; letter-spacing: -0.02em; color: var(--on-night-2); }
.city-card address { font-style: normal; color: var(--on-night-2); margin-top: 22px; line-height: 1.6; max-width: 26ch; }
.city-card .link-arrow { margin-top: 22px; color: var(--on-night); }

/* Istanbul local time pill (contact section) */
.local-time {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--night);
  color: var(--on-night-2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.local-time b { color: var(--on-night); font-weight: 600; font-variant-numeric: tabular-nums; }
.local-time__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(8, 232, 128, 0.6); animation: lt-pulse 2.4s infinite; }
@keyframes lt-pulse { 0% { box-shadow: 0 0 0 0 rgba(8, 232, 128, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(8, 232, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(8, 232, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .local-time__dot { animation: none; } }

/* Contact form */
.contact-side { display: grid; gap: 28px; }
.contact-form {
  display: grid;
  gap: 26px;
  padding-top: 6px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.contact-form__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.contact-form__sub { color: var(--ink-2); margin-top: -14px; max-width: 42ch; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cf-field { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.cf-field > label, .cf-field > legend {
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cf-field > legend { margin-bottom: 10px; }
.cf-field input:not([type="checkbox"]):not([type="radio"]), .cf-field textarea {
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.15rem;
  transition: border-color 0.2s;
}
.cf-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.cf-field textarea::placeholder { color: var(--ink-3); }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.cf-field.has-error input:not([type="checkbox"]), .cf-field.has-error textarea { border-bottom-color: var(--red); }

/* Topic chips */
.cf-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-chip { position: relative; cursor: pointer; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease-out), color 0.2s;
}
.cf-chip span::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--c);
  transform: rotate(-8deg);
  transition: background-color 0.2s;
}
.cf-chip:hover span { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.cf-chip input:checked + span { background: var(--c); box-shadow: none; color: #fff; }
.cf-chip input:checked + span::before { background: rgba(255, 255, 255, 0.85); }
.cf-chip[style*="--yellow"] input:checked + span, .cf-chip[style*="--green"] input:checked + span { color: var(--ink); }
.cf-chip[style*="--yellow"] input:checked + span::before, .cf-chip[style*="--green"] input:checked + span::before { background: var(--ink); }
.cf-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Consent */
.cf-check label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.92rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.cf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-box { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line-strong); display: grid; place-items: center; transition: background-color 0.2s, box-shadow 0.2s; }
.cf-check input:checked + .cf-box { background: var(--ink); box-shadow: none; }
.cf-check input:checked + .cf-box::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.cf-check input:focus-visible + .cf-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.cf-check.has-error .cf-box { box-shadow: inset 0 0 0 2px var(--red); }
.cf-check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.cf-error { display: none; font-size: 0.84rem; color: var(--red-deep); }
.cf-field.has-error .cf-error { display: block; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.cf-status:empty { display: none; }
.cf-status { font-weight: 600; color: var(--green-ink); }
.cf-status.is-error { color: var(--red-deep); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: 32px;
  background: var(--night);
  color: var(--on-night);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand p { margin-top: 18px; max-width: 34ch; color: var(--on-night-2); }
.footer-col h2 {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night-2);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-col address { font-style: normal; color: var(--on-night-2); line-height: 1.6; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-night);
  transition: transform 0.25s var(--ease-spring), background-color 0.2s, color 0.2s;
}
.socials a:hover { transform: translateY(-3px); background: var(--on-night); color: var(--ink); }
.socials svg { width: 19px; height: 19px; }
.footer-giant {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: clamp(56px, 7vw, 96px);
  font-size: min(24vw, 340px);
  line-height: 0.8;
  user-select: none;
}
.footer-giant span { display: inline-block; margin-inline: -0.035em; transition: transform 0.6s var(--ease-spring); }
.footer-giant span:nth-child(1) { transform: rotate(-6deg); }
.footer-giant span:nth-child(2) { transform: rotate(3deg) translateY(2%); }
.footer-giant span:nth-child(3) { transform: rotate(-2deg); }
.footer-giant span:nth-child(4) { transform: rotate(3deg); }
.footer-giant span:nth-child(5) { transform: rotate(14deg) translateY(-4%); }
.footer-giant:hover span:nth-child(1) { transform: rotate(-12deg) translateY(-8%); }
.footer-giant:hover span:nth-child(2) { transform: rotate(9deg) translateY(-12%); }
.footer-giant:hover span:nth-child(3) { transform: rotate(-8deg) translateY(-6%); }
.footer-giant:hover span:nth-child(4) { transform: rotate(8deg) translateY(-12%); }
.footer-giant:hover span:nth-child(5) { transform: rotate(24deg) translateY(-18%); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line-night);
  font-size: 0.9rem;
  color: var(--on-night-2);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--on-night); }
.footer-bottom__links { display: inline-flex; align-items: center; gap: 18px; }
.footer-bottom .lang-switch__item.is-current > span { color: var(--ink); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 86vh, 860px);
  color: #fff;
  background: var(--night);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img,
.page-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 12, 9, 0.55) 0%, rgba(15, 12, 9, 0) 26%),
    linear-gradient(0deg, rgba(15, 12, 9, 0.92) 0%, rgba(15, 12, 9, 0.4) 52%, rgba(15, 12, 9, 0.1) 100%);
}
.page-hero__content { padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(48px, 8vh, 96px); }
.page-hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 7.4vw, 7.2rem); }
.page-hero .lede { color: rgba(255, 255, 255, 0.86); margin-top: 24px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero .btn--ghost { color: #fff; }
.page-hero:not(.page-hero--simple) .btn:not(.btn--ghost), .cta-band .btn:not(.btn--ghost):not(.btn--light) { --btn-bg: var(--red); --btn-fg: #fff; }
.page-hero .eyebrow { color: rgba(255, 255, 255, 0.82); }

.page-hero--simple {
  min-height: 0;
  color: var(--ink);
  background: transparent;
}
.page-hero--simple .page-hero__content { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-hero--simple .lede { color: var(--ink-2); }
.page-hero--simple .eyebrow { color: var(--ink-2); }
.page-hero--simple h1 em { color: var(--ink); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status--dark { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}
.meta-row span { display: inline-flex; align-items: center; gap: 7px; }
.meta-row svg { width: 17px; height: 17px; }

/* Studio page hero: type only, with resting tiles */
.type-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 9vw, 128px);
  padding-bottom: clamp(56px, 8vw, 112px);
}
.type-hero h1 { font-size: clamp(3.6rem, 13vw, 13rem); letter-spacing: -0.045em; line-height: 0.85; max-width: none; }
/* Turkish headline ("Biz Boom'uz.") is longer; keep it clear of the BOOM! tiles on wide screens */
:lang(tr) .type-hero h1 { font-size: clamp(3.6rem, 11.5vw, 10rem); }
.type-hero .lede { margin-top: clamp(28px, 4vw, 44px); }
.type-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.type-hero__tiles { display: flex; gap: 10px; padding-bottom: 12px; }
.type-hero__tiles { gap: 0; font-size: clamp(80px, 11vw, 180px); line-height: 0.8; }
.type-hero__tiles span { display: inline-block; margin-inline: -0.03em; transform: rotate(var(--r, 0deg)); transition: transform 0.4s var(--ease-spring); }
.type-hero__tiles span:hover { transform: rotate(0deg) translateY(-0.08em); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.stat { padding: 26px 22px 0 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line-strong); }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 12px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Feature rows with video ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature-row__media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--night-2);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 16 / 9;
}
.feature-row__media video,
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row p { color: var(--ink-2); }
.section--night .feature-row p { color: var(--on-night-2); }

/* ---------- Cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.feature-card {
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 22px;
  border-radius: 13px;
  background: var(--c, var(--red));
  color: #fff;
}
.feature-card:nth-child(4n + 2) { --c: var(--yellow); }
.feature-card:nth-child(4n + 2) .feature-card__icon { color: var(--ink); }
.feature-card:nth-child(4n + 3) { --c: var(--blue); }
.feature-card:nth-child(4n + 4) { --c: var(--green); }
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-2); font-size: 1rem; }

.skills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.skill {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line-night);
}
.skill__key {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
}
.skill:nth-child(2) .skill__key { background: var(--blue); color: #fff; }
.skill:nth-child(3) .skill__key { background: var(--green); color: #fff; }
.skill:nth-child(4) .skill__key { background: var(--red); color: #fff; }
.skill__key svg { width: 24px; height: 24px; }
.skill h3 { font-size: 1.25rem; margin-bottom: 8px; }
.skill p { font-size: 0.98rem; color: var(--on-night-2); }

.comfort {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.comfort li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500;
}
.comfort svg { width: 21px; height: 21px; flex: none; color: var(--green); }

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.spec-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.spec-card h3 { margin-bottom: 18px; }
.spec-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.spec-list dt { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.spec-list dd { font-weight: 500; }

.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs li { padding: 7px 12px; border-radius: 999px; background: var(--bg-2); font-weight: 500; font-size: 0.92rem; }

.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 999px;
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315120f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.faq details > div { padding: 0 24px 22px; color: var(--ink-2); }

.steam-widget { width: 100%; max-width: 646px; height: 190px; border: 0; border-radius: var(--radius); background: #1b2838; }

.cta-band { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; background: var(--night); }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(15, 12, 9, 0.74); }
.cta-band h2 { max-width: 16ch; margin-inline: auto; }
.cta-band .lede { margin: 22px auto 0; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-row { justify-content: center; margin-top: 34px; }
.cta-band .btn--ghost { color: #fff; }

/* Gallery */
.grid-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.grid-gallery figure:first-child { grid-column: 1 / -1; }
.grid-gallery figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--ink-2); }
.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
  cursor: zoom-in;
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.shot:hover img { transform: scale(1.04); }

/* ---------- Timeline ---------- */
.studio-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.studio-split .lede + .lede { margin-top: 18px; }
.studio-split__sticky { position: sticky; top: calc(var(--header-h) + 32px); }

.timeline { display: grid; border-top: 1px solid var(--line-strong); }
.timeline__item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
}
.timeline__year { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); padding-top: 6px; }
.timeline__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.timeline__text { margin-top: 8px; color: var(--ink-2); }

/* ---------- Values (night) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.value {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-l);
  background: var(--night-2);
  box-shadow: inset 0 0 0 1px var(--line-night);
}
.value__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 28px;
  border-radius: 15px;
  background: var(--c, var(--red));
  color: #fff;
}
.value:nth-child(2) { --c: var(--blue); }
.value:nth-child(3) { --c: var(--green); }
.value__icon svg { width: 28px; height: 28px; }
.value h3 { margin-bottom: 12px; font-size: 1.55rem; }
.value p { color: var(--on-night-2); }

/* ---------- Press ---------- */
.press-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.press-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.press-toc h2 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.press-toc ol { display: grid; gap: 2px; padding: 0; list-style: none; counter-reset: toc; }
.press-toc ol a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  counter-increment: toc;
}
.press-toc ol a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.85em; color: var(--ink-3); padding-top: 1px; }
.press-toc ol a:hover, .press-toc ol a.is-active { background: var(--bg-2); }
.press-toc .btn { width: 100%; margin-top: 18px; }

.press-block { padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-strong); }
.press-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.press-block h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 24px; }
.press-block h3 { font-size: 1.25rem; margin: 28px 0 10px; }
.press-block p + p { margin-top: 14px; }
.press-block ul.bullets { padding-left: 1.2em; display: grid; gap: 8px; }
.press-block ul.bullets li::marker { color: var(--red); }

.fact-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fact { padding: 16px 18px; border-radius: var(--radius-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.fact dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { margin-top: 5px; font-weight: 500; }
.fact a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.asset { position: relative; border-radius: var(--radius-s); overflow: hidden; background: var(--night-2); }
.asset .shot { border-radius: 0; }
.asset img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.asset a {
  position: absolute;
  inset: auto 8px 8px auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 12, 9, 0.8);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.asset:hover a, .asset a:focus-visible { opacity: 1; transform: none; }
.asset a svg { width: 14px; height: 14px; }
.logo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.logo-tile {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.logo-tile--dark { background: var(--night); color: var(--on-night); }
.logo-tile__img { width: min(260px, 80%); height: auto; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 52px 0 16px; letter-spacing: -0.035em; }
.prose p, .prose ul { margin-bottom: 16px; color: var(--ink-2); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--blue-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; word-break: break-word; }
.prose strong { color: var(--ink); font-weight: 600; }
.partner-list { display: grid; gap: 10px; padding: 0 !important; list-style: none; }
.partner-list li { padding: 16px 18px; border-radius: var(--radius-s); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin: 0 !important; }
.partner-list strong { display: block; margin-bottom: 4px; }
.note { padding: 18px 20px; border-radius: var(--radius-s); background: var(--surface); box-shadow: inset 4px 0 0 var(--yellow), inset 0 0 0 1px var(--line); color: var(--ink-2); margin-bottom: 24px; }

/* ---------- Modal / lightbox ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(10, 8, 6, 0.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0s 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease-out); }
.modal__frame { position: relative; width: min(1280px, 100%); transform: scale(0.96); transition: transform 0.4s var(--ease-out); }
.modal.is-open .modal__frame { transform: none; }
.modal__frame video,
.modal__frame img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); background: #000; }
.modal__caption { margin-top: 14px; text-align: center; color: var(--on-night-2); }
.modal__close, .modal__prev, .modal__next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 0.2s;
}
.modal__close:hover, .modal__prev:hover, .modal__next:hover { background: rgba(255, 255, 255, 0.24); }
.modal__close { top: 16px; right: 16px; z-index: 2; }
.modal__prev { left: 16px; top: 50%; margin-top: -24px; z-index: 2; }
.modal__next { right: 16px; top: 50%; margin-top: -24px; z-index: 2; }
.modal svg { width: 22px; height: 22px; }
.modal__fallback { margin-top: 14px; text-align: center; color: var(--on-night-2); }
.modal__fallback a { color: var(--yellow); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost__boxes { display: flex; justify-content: center; margin-bottom: 36px; font-size: clamp(110px, 20vw, 220px); line-height: 0.8; }
.lost__boxes span { display: inline-block; margin-inline: -0.02em; }
.lost__boxes span:nth-child(1) { transform: rotate(-8deg); }
.lost__boxes span:nth-child(2) { transform: rotate(5deg) translateY(6%); }
.lost__boxes span:nth-child(3) { transform: rotate(-4deg); }
.lost h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.lost .lede { margin: 20px auto 34px; }
.lost .btn-row { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press-layout { grid-template-columns: 1fr; }
  .press-toc { position: static; }
  .project { grid-template-columns: 1fr; }
  .project__media { min-height: 0; aspect-ratio: 16 / 9; }
  .principle { grid-template-columns: 80px minmax(0, 1fr); }
  .principle p { grid-column: 2; }
}

@media (max-width: 900px) {
  .tile-field { padding-left: var(--gutter); align-items: center; }
  .feature-row,
  .studio-split,
  .contact-grid,
  .section-head--split,
  .type-hero__grid { grid-template-columns: 1fr; }
  .studio-split__sticky { position: static; }
  .stats, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3), .fact-cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3), .fact-cell:nth-child(n + 3) { margin-top: 28px; }
  .values, .feature-grid { grid-template-columns: 1fr; }
  .comfort { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  :root { --header-h: 66px; }
  .brand__logo { height: 40px; }
  .studio-hero { min-height: max(720px, calc(100svh - var(--header-h))); }
  .studio-hero__content { padding-bottom: calc(var(--S) * 3.3 + 70px); }
  .tile-hint { top: auto; bottom: 14px; }
  .tile-hint > span { display: none; }
  .studio-hero .hero-meta { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .comfort { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .grid-gallery { grid-template-columns: 1fr; }
  .fact-table { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .asset a { opacity: 1; transform: none; }
  .logo-tiles { grid-template-columns: 1fr; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .principle { grid-template-columns: 1fr; gap: 10px; }
  .principle p { grid-column: auto; }
  .icon-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .icon-wall span { display: none; }
  .modal__prev, .modal__next { top: auto; bottom: -64px; margin-top: 0; }
  .modal__prev { left: calc(50% - 58px); }
  .modal__next { right: calc(50% - 58px); }
  .contact-item { grid-template-columns: 40px 1fr 18px; gap: 14px; }
  .contact-item__icon { width: 40px; height: 40px; }
  .type-hero__tiles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js .manifesto[data-words] .w { color: var(--on-night); }
}

@media print {
  .site-header, .mobile-menu, .modal, .footer-giant, .tile-field, .tile-hint { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
