/* ─────────────────────────────────────────────────────────────
   PEKTORYA — landing styles
   ─────────────────────────────────────────────────────────── */

:root {
  --bg:         #0a0a0a;
  --bg-2:       #111111;
  --surface:    #161616;
  --line:       rgba(255,255,255,0.08);
  --line-strong:rgba(255,255,255,0.18);
  --text:       #f4f4f4;
  --muted:      #8a8a8a;
  --dim:        #5a5a5a;
  --accent:     #FFD400;   /* default — overridden by tweaks */
  --accent-ink: #0a0a0a;
  --type-scale: 1;
  --serif-display: "eurostile-extended", "Eurostile Extended", "Helvetica Neue", sans-serif;
  --sans-text:     "eurostile", "Eurostile", "Helvetica Neue", Arial, sans-serif;
  --mono:          "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1480px;
  --pad-x: clamp(24px, 5vw, 80px);
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans-text);
  font-size: calc(16px * var(--type-scale));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

img, svg, video { display: block; max-width: 100%; }

/* ── Utility ───────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { color: var(--accent); }

.title-xl,
.title-l,
.title-m {
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.title-xl { font-size: clamp(60px, 12vw, 200px); }
.title-l  { font-size: clamp(48px, 7vw, 112px); }
.title-m  { font-size: clamp(32px, 4.5vw, 64px); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.section {
  padding: clamp(80px, 11vw, 180px) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head .num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  mix-blend-mode: normal;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav .logo { height: 26px; width: auto; }
.nav .logo svg { height: 100%; width: auto; }
.nav-links {
  display: flex; gap: 36px; align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a { position: relative; padding: 6px 0; color: var(--text); opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex; gap: 10px; align-items: center;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color .25s, color .25s, background .25s;
}
.nav-cta--primary::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(255,212,0,0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(255,212,0,0);   }
  100% { box-shadow: 0 0 0 0   rgba(255,212,0,0);   }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta:first-child { display: none; }
}

/* ── Mobile nav toggle ──────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .25s;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle .bar {
  display: block;
  height: 1px;
  background: var(--text);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s;
}
.nav-toggle:hover .bar { background: var(--accent); }
.nav-toggle.is-open .bar:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle.is-open .bar:last-child  { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
}

/* ── Mobile menu overlay ─────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 88px var(--pad-x) 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

.mm-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}
.mm-link {
  display: block;
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(36px, 11vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  opacity: .65;
  transition: opacity .2s, color .2s;
}
.mm-link:hover { opacity: 1; color: var(--accent); }

.mm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mm-actions a {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  text-align: center;
  transition: border-color .25s, color .25s, background .25s;
}
.mm-actions a:hover { border-color: var(--accent); color: var(--accent); }
.mm-cta-primary {
  background: var(--accent);
  color: var(--accent-ink) !important;
  border-color: var(--accent) !important;
}
.mm-cta-primary:hover {
  background: transparent !important;
  color: var(--accent) !important;
}

.mm-foot {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ── Hero (shared shell) ───────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.hero .stage {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.hero .vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    radial-gradient(120% 70% at 50% 30%, transparent 40%, rgba(0,0,0,0.6) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
  z-index: 2;
}
.hero .overlay {
  position: absolute; inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(96px, 12vh, 140px) var(--pad-x) clamp(40px, 6vh, 64px);
}

/* Logo centrado en el hero */
.hero-logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 26vw, 380px);
  color: var(--text);
  opacity: 0.9;
  pointer-events: none;
  z-index: 4;
}
.hero-logo-center svg { width: 100%; height: auto; display: block; }
#hero-lottie { width: 100%; }

.hero .meta-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .meta-row .live {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text);
}
.hero .meta-row .live::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3838;
  box-shadow: 0 0 12px #ff3838;
  animation: pulse-red 1.2s ease-in-out infinite;
}
@keyframes pulse-red { 50% { opacity: 0.35; } }

.hero .ticks {
  display: flex; gap: 24px;
}
.hero .ticks span { color: var(--text); }
.hero .ticks .k { color: var(--muted); margin-right: 6px; }

.hero .title-block {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.hero .title-block h1 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(36px, 5.5vw, 84px);
  line-height: 0.88;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.hero .title-block h1 .amp { color: var(--accent); font-style: italic; }

.hero .title-block .side {
  display: flex; flex-direction: column;
  gap: 14px;
  max-width: 280px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  padding-bottom: 12px;
}
.hero .title-block .side strong { color: var(--text); font-weight: 700; }

.hero .bottom-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  margin-top: clamp(24px, 4vh, 40px);
}
.hero .scroll-cue {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero .scroll-cue .line {
  width: 56px; height: 1px; background: var(--accent);
  position: relative; overflow: hidden;
}
.hero .scroll-cue .line::after {
  content: ""; position: absolute; inset: 0; left: -100%;
  background: linear-gradient(90deg, transparent, rgba(10,10,10,0.9), transparent);
  animation: sweep 2.4s ease-in-out infinite;
}
@keyframes sweep { to { left: 100%; } }

.hero .sound {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  transition: border-color .25s, color .25s;
}
.hero .sound:hover { border-color: var(--accent); color: var(--accent); }
.hero .sound .bars { display: inline-flex; gap: 2px; align-items: end; height: 12px; }
.hero .sound .bars i {
  display: block; width: 2px; background: currentColor;
  animation: bars 0.9s ease-in-out infinite;
}
.hero .sound .bars i:nth-child(1) { height: 60%; animation-delay: 0s; }
.hero .sound .bars i:nth-child(2) { height: 100%; animation-delay: .15s; }
.hero .sound .bars i:nth-child(3) { height: 40%; animation-delay: .3s; }
.hero .sound .bars i:nth-child(4) { height: 80%; animation-delay: .45s; }
@keyframes bars { 50% { height: 20%; } }

/* ── Reel / Video background ───────────────────────────────── */
.reel {
  position: absolute; inset: 0;
  background: #0a0a0a;
  overflow: hidden;
}
/* Vimeo fullscreen cover — sized by JS */
.vimeo-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #0a0a0a;
}
.vimeo-sizer {
  position: absolute;
}
.vimeo-sizer iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.reel .frame {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 30% 40%, rgba(255,212,0,0.10), transparent 60%),
    radial-gradient(50% 60% at 80% 70%, rgba(255,212,0,0.05), transparent 60%),
    linear-gradient(135deg, #121212 0%, #0a0a0a 50%, #161616 100%);
}
.reel .scan {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.025) 0px,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.reel .grain {
  position: absolute; inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
  mix-blend-mode: overlay;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  20%  { transform: translate(-6%,3%); }
  40%  { transform: translate(4%,-2%); }
  60%  { transform: translate(-2%,5%); }
  80%  { transform: translate(3%,1%); }
  100% { transform: translate(0,0); }
}
.reel .pan {
  position: absolute;
  top: 50%; left: 50%;
  width: 140%; height: 140%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg at 50% 50%,
    rgba(255,212,0,0.0) 0deg,
    rgba(255,212,0,0.08) 60deg,
    rgba(255,212,0,0.0) 120deg,
    rgba(255,255,255,0.04) 200deg,
    rgba(255,212,0,0.0) 360deg);
  animation: pan 28s linear infinite;
  filter: blur(60px);
}
@keyframes pan { to { transform: translate(-50%,-50%) rotate(360deg); } }

.reel .placeholder-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--dim);
  text-transform: uppercase;
}
.reel .placeholder-label .big {
  display: block;
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 7vw, 100px);
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.08);
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1;
}

/* ── Hero variant: TYPE-LED ────────────────────────────────── */
body[data-hero="type"] .hero {
  background: var(--bg);
  height: auto;
  min-height: 100vh;
}
body[data-hero="type"] .reel { display: none; }
body[data-hero="type"] .vignette { display: none; }
body[data-hero="type"] .overlay {
  position: relative;
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(60px, 10vh, 120px);
  grid-template-rows: auto 1fr auto;
}
body[data-hero="type"] .hero .title-block {
  grid-template-columns: 1fr;
  align-items: start;
}
body[data-hero="type"] .hero .title-block h1 {
  font-size: clamp(64px, 16vw, 280px);
  line-height: 0.84;
}
body[data-hero="type"] .hero .title-block .side {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 96px);
  padding-bottom: 0;
}
body[data-hero="type"] .hero .title-block .side > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
body[data-hero="type"] .hero .title-block .side strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
@media (max-width: 880px) {
  body[data-hero="type"] .hero .title-block .side {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Hero variant: GRID + FEATURED ─────────────────────────── */
body[data-hero="grid"] .hero { height: auto; }
body[data-hero="grid"] .reel { display: none; }
body[data-hero="grid"] .vignette { display: none; }
body[data-hero="grid"] .overlay {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 32px;
  padding-top: clamp(130px, 16vh, 180px);
  padding-bottom: clamp(40px, 6vh, 64px);
  min-height: 100vh;
}
body[data-hero="grid"] .hero .meta-row { grid-column: 1 / -1; }
body[data-hero="grid"] .hero .title-block {
  grid-column: 1; grid-row: 2;
  grid-template-columns: 1fr;
  align-self: end;
}
body[data-hero="grid"] .hero .title-block h1 {
  font-size: clamp(48px, 8vw, 132px);
}
body[data-hero="grid"] .hero .grid-thumbs {
  grid-column: 2; grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: end;
}
body[data-hero="grid"] .hero .bottom-row { grid-column: 1 / -1; }
@media (max-width: 880px) {
  body[data-hero="grid"] .overlay { grid-template-columns: 1fr; }
  body[data-hero="grid"] .hero .title-block,
  body[data-hero="grid"] .hero .grid-thumbs { grid-column: 1; }
  body[data-hero="grid"] .hero .grid-thumbs { grid-row: 3; }
}
.hero .grid-thumbs { display: none; }
body[data-hero="grid"] .hero .grid-thumbs { display: grid; }
.mini-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s;
}
.mini-card:hover { border-color: var(--accent); }
.mini-card .placeholder-fill {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.03) 0 8px,
      transparent 8px 16px),
    linear-gradient(135deg, #1a1a1a, #0d0d0d);
}
.mini-card .mc-label {
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text);
}
.mini-card .mc-label .cat { color: var(--accent); }

/* ── Section: Studio / Manifesto ───────────────────────────── */
.studio {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.studio .lead {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(32px, 5vw, 80px);
}
.studio .lead .label-col .num { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent); }
.studio .lead .label-col h2 { font-family: var(--serif-display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(40px, 6vw, 88px); line-height: 0.9; letter-spacing: -0.015em; margin: 0; }
.studio .lead p {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
  max-width: 70ch;
}
.studio .lead p + p { margin-top: 1em; }
.studio .lead p .hl { color: var(--accent); }

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.services .svc {
  padding: 32px 24px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.services .svc:last-child { border-right: 0; }
.services .svc .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.services .svc h3 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0;
}
.services .svc p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.services .svc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.services .svc .tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 2px;
}
@media (max-width: 980px) { .services { grid-template-columns: repeat(2, 1fr); }
  .services .svc:nth-child(2) { border-right: 0; }
  .services .svc:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .services { grid-template-columns: 1fr; }
  .services .svc { border-right: 0; border-bottom: 1px solid var(--line); text-align: center; align-items: center; }
  .services .svc:last-child { border-bottom: 0; }
  .services .svc .tags { justify-content: center; }
}

/* ── Section: Work / Demos ─────────────────────────────────── */
.work { border-top: 1px solid var(--line); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2vw, 32px) clamp(20px, 2vw, 28px);
}
.demo {
  position: relative;
  grid-column: span 6;
  cursor: pointer;
  display: block;
}
.demo--wide { grid-column: span 12; }
.demo--third { grid-column: span 4; }

@media (max-width: 880px) {
  .demo, .demo--third { grid-column: span 12; }
}

.demo .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s, transform .5s cubic-bezier(.2,.7,.2,1);
}
.demo--wide .thumb { aspect-ratio: 21 / 9; }
.demo:hover .thumb { border-color: var(--accent); }
.demo:hover .thumb .placeholder-fill { transform: scale(1.04); }

.demo .placeholder-fill {
  position: absolute; inset: 0;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.025) 0 12px,
      transparent 12px 24px),
    radial-gradient(80% 60% at 50% 40%, #1d1d1d, #0a0a0a);
}
.demo .placeholder-fill::after {
  /* a couple of subtle tonal stripes to fake a frame */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55) 100%);
}
/* Brand wordmark as the poster, sitting just above the centered play button.
   Lives inside .placeholder-fill so it's auto-removed when the video plays. */
.demo .placeholder-fill .brand-mark {
  position: absolute;
  left: 50%; top: 34%;
  transform: translate(-50%, -50%);
  width: min(46%, 230px);
  aspect-ratio: 711.87 / 156.32;
  background: url("assets/pektorya-logo-white.svg") center / contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity .25s;
}
.demo--wide .placeholder-fill .brand-mark { top: 31%; width: min(28%, 280px); }
.demo:hover .placeholder-fill .brand-mark { opacity: 0.7; }
.demo .corner-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10,10,10,0.7);
  border: 1px solid rgba(255,212,0,0.35);
  padding: 5px 9px;
  backdrop-filter: blur(4px);
}
.demo .runtime {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text);
  background: rgba(10,10,10,0.7);
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
}
.demo .play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  background: rgba(10,10,10,0.55);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, transform .35s;
}
.demo:hover .play { background: var(--accent); border-color: var(--accent); transform: translate(-50%,-50%) scale(1.06); }
.demo .play svg { width: 22px; height: 22px; }
.demo .play svg path { fill: var(--text); transition: fill .25s; }
.demo:hover .play svg path { fill: var(--accent-ink); }

.demo .meta {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 2px 0;
  align-items: baseline;
}
.demo .meta h3 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: -0.005em;
  line-height: 1;
  margin: 0;
}
.demo .meta .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}
.demo .meta .right .client { color: var(--text); }

/* ── Section: Clients ──────────────────────────────────────── */
.clients {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
}
.clients-inner { max-width: var(--maxw); margin: 0 auto; }
/* Logo marquee — two rows, opposite directions */
.logos-marquee {
  position: relative;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  --marquee-h: clamp(96px, 11vw, 140px);
  --marquee-speed-a: 60s;
  --marquee-speed-b: 75s;
}
.logos-marquee::before,
.logos-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 6vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.logos-marquee::before { left: 0;  background: linear-gradient(to right, var(--bg-2) 0%, transparent 100%); }
.logos-marquee::after  { right: 0; background: linear-gradient(to left,  var(--bg-2) 0%, transparent 100%); }

.marquee-row {
  display: flex;
  width: max-content;
  height: var(--marquee-h);
  border-bottom: 1px solid var(--line);
  animation: marquee var(--marquee-speed-a) linear infinite;
}
.marquee-row + .marquee-row {
  animation: marquee-rev var(--marquee-speed-b) linear infinite;
  border-bottom: 0;
}
.logos-marquee:hover .marquee-row { animation-play-state: paused; }

.marquee-row .client-cell {
  flex: 0 0 auto;
  width: clamp(160px, 16vw, 240px);
  height: var(--marquee-h);
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 22px 28px;
  position: relative;
  transition: background .3s;
}
.marquee-row .client-cell:hover { background: rgba(255,212,0,0.04); }

.marquee-row .client-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.62;
  transition: filter .35s ease, opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.marquee-row .client-cell:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-row { animation: none; }
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.metric {
  padding: 28px 0;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.metric:last-child { border-right: 0; }
.metric .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.metric .v {
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.metric .v .unit { color: var(--accent); }
@media (max-width: 720px) { .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ── Section: Contact ──────────────────────────────────────── */
.contact { border-top: 1px solid var(--line); background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.contact-lhs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-lhs-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-lhs h2 {
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.015em;
  margin: 0;
  align-self: start;
  text-align: center;
}
.contact-lhs h2 .accent { color: var(--accent); }

.contact-cards { display: grid; gap: 12px; margin-top: 0; }
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--line);
  transition: border-color .25s, background .25s;
}
.contact-card:hover { border-color: var(--accent); background: rgba(255,212,0,0.03); }
.contact-card .ico {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.contact-card:hover .ico { border-color: var(--accent); }
.contact-card .ico svg { width: 16px; height: 16px; }
.contact-card .ico svg path,
.contact-card .ico svg circle { stroke: var(--text); }
.contact-card:hover .ico svg path,
.contact-card:hover .ico svg circle { stroke: var(--accent); }
.contact-card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card .value { font-family: var(--serif-display); font-weight: 900; font-style: italic; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.005em; text-transform: uppercase; }
.contact-card .arrow {
  font-family: var(--mono); font-size: 16px;
  transition: transform .3s;
}
.contact-card:hover .arrow { transform: translateX(4px); color: var(--accent); }

.contact-hours {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-hours strong { color: var(--text); font-weight: 400; }

/* Form */
.form-shell { border: 1px solid var(--line); padding: clamp(28px, 3vw, 48px); background: var(--surface); }
.form-shell .form-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.form-shell .form-eyebrow .id { color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-row.single { grid-template-columns: 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field {
  position: relative;
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--line-strong);
  padding-top: 18px;
  padding-bottom: 8px;
  transition: border-color .25s;
}
.field:focus-within { border-color: var(--accent); }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  transition: color .25s;
}
.field:focus-within label { color: var(--accent); }
.field label .req { color: var(--accent); }
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0; outline: 0;
  color: var(--text);
  font-family: var(--sans-text);
  font-size: 16px;
  padding: 6px 0;
  resize: none;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); }
.field textarea { min-height: 120px; line-height: 1.5; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23FFD400' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}
.field select option { background: var(--surface); color: var(--text); }

/* Project type — segmented choice */
.field--segmented { border-bottom: 0; padding-bottom: 0; }
.seg {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px;
}
.seg label {
  margin: 0;
  cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
  border-radius: 2px;
  transition: border-color .2s, background .2s, color .2s;
}
.seg input[type="radio"] { display: none; }
.seg input[type="radio"]:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg label:hover { border-color: var(--accent); color: var(--accent); }
.seg input[type="radio"]:checked + label:hover { color: var(--accent-ink); }

.form-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.form-foot .note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); max-width: 40ch; }
.submit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid var(--accent);
  position: relative;
  transition: background .25s, color .25s, padding .25s;
}
.submit:hover { background: transparent; color: var(--accent); padding-right: 36px; }
.submit .arrow { display: inline-block; transition: transform .25s; }
.submit:hover .arrow { transform: translateX(6px); }

.form-ok {
  border: 1px solid var(--accent);
  background: rgba(255,212,0,0.06);
  padding: 24px;
  margin-top: 20px;
  display: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.form-ok.show { display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--pad-x) 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}
.footer .lockup { max-width: 280px; }
.footer .lockup svg { width: 100%; height: auto; opacity: 0.85; }
.footer .meta {
  display: flex; justify-content: flex-end; gap: 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  flex-wrap: wrap;
}
.footer .meta a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 720px) {
  .footer { grid-template-columns: 1fr; }
  .footer .meta { justify-content: flex-start; }
}

/* ── Hide tweaks-only chrome when off-mode ─────────────────── */
.tweaks-hidden { display: none !important; }

/* ── Mobile adjustments ─────────────────────────────────────── */

/* ≤ 720 px — smartphones + small tablets */
@media (max-width: 720px) {
  /* Hero: stack title + hide side metadata column */
  .hero .title-block {
    grid-template-columns: 1fr;
  }
  .hero .title-block .side {
    display: none;
  }

  /* Wide demo card: 21/9 is too flat on mobile */
  .demo--wide .thumb {
    aspect-ratio: 16 / 9;
  }

  /* Studio lead: single column */
  .studio .lead {
    grid-template-columns: 1fr;
  }

  /* Center studio content when stacked */
  .studio .lead .label-col { text-align: center; }
  .studio .lead > div { text-align: center; }
  .studio .lead p { max-width: none; }
}

/* ≤ 480 px — compact smartphones */
@media (max-width: 480px) {
  /* Hero: hide ticks row to prevent overflow on narrow screens */
  .hero .ticks {
    display: none;
  }

  /* Hero center logo: scale down for narrow viewports */
  .hero-logo-center {
    width: clamp(140px, 48vw, 200px);
  }

  /* Nav: reduce horizontal padding */
  .nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Sections: tighten vertical padding a bit */
  .section {
    padding-top: clamp(56px, 10vw, 80px);
    padding-bottom: clamp(56px, 10vw, 80px);
  }
}
