/* =========================================================
   COLETTO·STUDIOS — design system
   Token-driven. Tweaks panel updates these CSS vars live.
   ========================================================= */

/* ============== FONT: YAKIN ============== */
@font-face {
  font-family: 'Yakin';
  src: url('fonts/Yakin.otf') format('opentype'),
       url('fonts/Yakin.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* type */
  --f-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --f-body:    "DM Sans", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;
  --f-mark:    "Yakin", var(--f-display);

  /* surfaces — warm-leaning near-black */
  --bg:        oklch(0.135 0.012 295);
  --bg-2:      oklch(0.165 0.014 295);
  --bg-card:   oklch(0.18 0.015 295);
  --line:      oklch(1 0 0 / 0.08);
  --line-2:    oklch(1 0 0 / 0.16);
  --fg:        oklch(0.97 0.005 95);
  --fg-mute:   oklch(0.7 0.01 280);
  --fg-dim:    oklch(0.5 0.01 280);
  --fg-ink:    oklch(0.32 0.008 280);

  /* accents — monochrome */
  --accent:    oklch(0.84 0 0);        /* light gray (dark-mode visible) */
  --accent-2:  oklch(0.62 0 0);        /* mid gray */
  --amber:     oklch(0.78 0.16 70);    /* impostor uruguayo amber */
  --good:      oklch(0.78 0.18 145);

  /* geometry */
  --r:   14px;
  --r-s: 8px;
  --r-xl: 22px;

  /* effect dials (tweaks adjusts these) */
  --grain-opacity: 0.07;
  --scanline-opacity: 0.06;
  --vignette: 0.45;
}

html[data-theme="light"] {
  --bg:        oklch(0.985 0.004 90);
  --bg-2:      oklch(0.965 0.006 90);
  --bg-card:   oklch(0.99 0.003 90);
  --line:      oklch(0 0 0 / 0.08);
  --line-2:    oklch(0 0 0 / 0.18);
  --fg:        oklch(0.18 0.012 295);
  --fg-mute:   oklch(0.42 0.01 280);
  --fg-dim:    oklch(0.6 0.008 280);
  --fg-ink:    oklch(0.78 0.005 280);
  --accent:    oklch(0.14 0 0);        /* near-black (light-mode visible) */
  --accent-2:  oklch(0.44 0 0);        /* mid gray */
  --grain-opacity: 0.04;
  --scanline-opacity: 0.03;
  --vignette: 0.18;
}

html[data-lang="en"] .es { display: none !important; }
html[data-lang="es"] .en { display: none !important; }

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }

body.fx-off::before, body.fx-off::after { display: none; }

/* selection */
::selection { background: var(--accent); color: var(--bg); }

/* ============== CUSTOM CURSOR (disabled) ============== */
.cursor-dot, .cursor-ring { display: none; }

/* ============== LAYOUT ============== */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* ============== TICKER / MARQUEE ============== */
.marquee {
  --speed: 40s;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marq var(--speed) linear infinite;
  padding: 14px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
}
.marquee-track > span {
  padding: 0 2.5rem;
  display: inline-flex; align-items: center; gap: 0.8rem;
}
.marquee-track > span::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.75em;
}
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marq {
  to { transform: translateX(-50%); }
}

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav-right { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.brand {
  font-family: var(--f-mark);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}
.brand .dotmark { color: var(--accent); margin: 0 0.1em; }
.brand:hover .dotmark { animation: blinkDot 0.8s steps(2, end) infinite; }
@keyframes blinkDot { 50% { opacity: 0.2; } }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--good) 60%, transparent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--good) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in oklch, var(--good) 0%, transparent); }
}

.nav-links {
  display: flex; gap: 6px; list-style: none;
}
.nav-links a {
  display: inline-flex; align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-mute);
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-2); }

.icon-btn, .pill-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg-mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
  text-transform: uppercase;
}
.icon-btn { width: 34px; padding: 0; font-family: var(--f-body); font-size: 14px; }
.icon-btn:hover, .pill-btn:hover {
  color: var(--fg); border-color: var(--line-2); background: var(--bg-2);
}

/* ============== HERO ============== */
#hero {
  min-height: 100vh;
  padding: 120px 28px 100px;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url(img/hero-bg.jpg);
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(249, 248, 246, 0.48) 0%,
    rgba(249, 248, 246, 0.72) 55%,
    rgba(249, 248, 246, 0.96) 100%
  );
}
html[data-theme="dark"] .hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 30, 0.55) 0%,
    rgba(20, 17, 30, 0.78) 55%,
    rgba(20, 17, 30, 0.97) 100%
  );
}


.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--f-mark);
  font-weight: 400;
  font-size: clamp(28px, 6.5vw, 78px);  /* desktop: text column ~832px */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  animation: heroRow1In 0.9s cubic-bezier(.2,.7,.2,1) both;
}
/* mobile full-width — can scale up because lottie is stacked, not beside */
@media (max-width: 640px) {
  .wordmark { font-size: clamp(28px, 10.5vw, 50px); }
}
.wordmark .dotmark { color: var(--accent); margin: 0 0.03em; }
@keyframes heroRow1In {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* glitch on hover */
.wordmark:hover { animation: glitch1 0.4s steps(2) 1; }
@keyframes glitch1 {
  0%, 100% { transform: translate(0); }
  25% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--accent-2), -2px 0 var(--accent); }
  50% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--accent-2), 2px 0 var(--accent); }
}
@keyframes glitch2 {
  0%, 100% { transform: translate(0); }
  30% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 1px); }
}

/* live now-building chip */
.now-building {
  margin-top: 38px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  animation: heroRow1In 0.9s 0.4s cubic-bezier(.2,.7,.2,1) both;
}
.now-building:hover {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, var(--bg-2));
  color: var(--fg);
}
.now-building .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent);
  animation: pulse 1.6s ease-out infinite;
}
.now-building .now-label { color: var(--fg-dim); }
.now-building .now-arrow { color: var(--accent); font-weight: 700; }
.now-building .now-target { color: var(--fg); font-weight: 600; }

.hero-desc {
  margin-top: 28px;
  max-width: 580px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--fg-mute);
  text-wrap: pretty;
  animation: heroRow1In 0.9s 0.55s cubic-bezier(.2,.7,.2,1) both;
}

.hero-cta {
  margin-top: 38px;
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: heroRow1In 0.9s 0.7s cubic-bezier(.2,.7,.2,1) both;
}

/* ============== HERO TWO-COL (lottie) ============== */
.hero-row {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}
.hero-col-text { flex: 1; min-width: 0; }
.hero-col-lottie {
  width: clamp(160px, 22vw, 360px);
  aspect-ratio: 1;
  flex-shrink: 0;
  pointer-events: none;
  animation: heroRow1In 1.1s 0.3s cubic-bezier(.2,.7,.2,1) both;
}
.hero-lottie-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}
@media (max-width: 900px) {
  .hero-col-lottie { width: clamp(130px, 24vw, 240px); }
}
@media (max-width: 640px) {
  .hero-row { flex-direction: column; gap: 20px; align-items: flex-start; }
  .hero-col-lottie { width: clamp(120px, 48vw, 200px); order: -1; }
}
@media (max-width: 420px) {
  .hero-col-lottie { width: clamp(100px, 44vw, 160px); }
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s, color 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn.primary {
  background: var(--fg);
  color: var(--bg);
}
.btn.primary::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(.6,.05,.1,1);
  z-index: -1;
}
.btn.primary:hover { color: #fff; }
.btn.primary:hover::after { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn.ghost:hover { border-color: var(--fg); background: var(--bg-2); }

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.scroll-hint .bar {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--fg-dim), transparent);
  animation: drop 1.6s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============== SECTION CHROME ============== */
.section { padding: 100px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-tag::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 16px;
  text-wrap: balance;
}
.section-title .accent { color: var(--accent); font-style: italic; }
.section-hdr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 760px) {
  .section-hdr { grid-template-columns: 1fr; }
}

/* ============== MANIFESTO ============== */
#manifesto {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.mf {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.3s ease;
}
.mf:last-child { border-right: none; }
.mf:hover { background: var(--bg-2); }
.mf-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}
.mf-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.mf-desc {
  color: var(--fg-mute);
  font-size: 14px;
  line-height: 1.6;
}
@media (max-width: 960px) {
  .manifesto-grid { grid-template-columns: repeat(2, 1fr); }
  .mf:nth-child(2) { border-right: none; }
  .mf:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .manifesto-grid { grid-template-columns: 1fr; }
  .mf { border-right: none; border-bottom: 1px solid var(--line); }
  .mf:last-child { border-bottom: none; }
}

/* ============== PROJECTS ============== */
.filter-tabs {
  display: inline-flex; gap: 4px;
  padding: 5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.filter-tab {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-mute);
  text-transform: uppercase;
  transition: all 0.2s;
}
.filter-tab:hover { color: var(--fg); }
.filter-tab.active {
  background: var(--fg);
  color: var(--bg);
}

.project-list { display: flex; flex-direction: column; }

/* Big feature card */
a.project-card { color: inherit; }
.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--line);
  position: relative;
  cursor: pointer;
}
.project-card::after {
  /* animated underline accent on hover */
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(.2,.7,.2,1);
  z-index: 1;
}
.project-card:hover::after { width: 100%; }
.project-card.rev { grid-template-columns: 0.95fr 1.05fr; }
.project-card.rev .phones { order: 2; }
.project-card.rev .project-info { order: 1; }
.project-card.hidden, .project-row.hidden { display: none; }

.phones {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 18px; position: relative;
  perspective: 1200px;
}
.ph {
  width: clamp(160px, 22vw, 210px);
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  overflow: hidden;
  border: 1.5px solid color-mix(in oklch, var(--fg) 18%, transparent);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    inset 0 0 0 4px rgba(0,0,0,0.35);
  background: #0a0a14;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
}
.ph::after {
  /* phone notch */
  content: "";
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 12px;
  background: #000; border-radius: 999px;
  z-index: 2;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.phones .ph:nth-child(1) { transform: rotate(-4deg) translateY(8px); z-index: 2; }
.phones .ph:nth-child(2) { transform: rotate(3deg) translateY(-4px); z-index: 1; }
.project-card:hover .phones .ph:nth-child(1) { transform: rotate(-5.5deg) translateY(0) translateX(-6px); }
.project-card:hover .phones .ph:nth-child(2) { transform: rotate(4.5deg) translateY(-10px) translateX(6px); }

.project-info { max-width: 520px; }
.proj-cat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.proj-cat::before {
  content: ""; width: 16px; height: 1px; background: currentColor;
}
.proj-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}
.project-card:hover .proj-title {
  animation: chroma 0.5s steps(2) 1;
}
@keyframes chroma {
  0%, 100% { text-shadow: none; }
  25% { text-shadow: 2px 0 var(--accent-2), -2px 0 var(--accent); }
  50% { text-shadow: -3px 0 var(--accent-2), 3px 0 var(--accent); }
  75% { text-shadow: 1px 0 var(--accent-2), -1px 0 var(--accent); }
}

.proj-desc {
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 480px;
  text-wrap: pretty;
}
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.proj-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  background: var(--bg-2);
}
/* fake-link pill inside the clickable card */
.proj-link {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.proj-link::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.35s cubic-bezier(.6,.05,.1,1);
  z-index: 0;
}
.proj-link > * { position: relative; z-index: 1; }
.project-card:hover .proj-link { color: #fff; border-color: var(--accent); }
.project-card:hover .proj-link::before { transform: translateY(0); }
.project-card:hover .proj-link.amber { color: #1a1208; }
.proj-link.amber::before { background: var(--amber); }

/* Compact project row */
.project-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding 0.2s;
}
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-row:hover { padding-left: 14px; padding-right: 14px; }
a.project-row:hover .row-arrow { color: var(--accent); transform: translateX(6px); }

.row-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 22px;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.project-row:hover .row-icon { background: color-mix(in oklch, var(--accent) 14%, var(--bg-2)); border-color: var(--accent); }
.row-body { min-width: 0; }
.row-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.row-label.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--good) 60%, transparent);
  animation: pulse 1.6s ease-out infinite;
}
.row-label.soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
}
.row-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.row-desc {
  font-size: 14px;
  color: var(--fg-mute);
  line-height: 1.55;
  max-width: 560px;
}
.row-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.row-arrow {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--fg-mute);
  transition: color 0.2s, transform 0.25s, border-color 0.2s;
}

@media (max-width: 900px) {
  .project-card, .project-card.rev { grid-template-columns: 1fr; gap: 50px; }
  .project-card.rev .phones { order: -1; }
  .project-card.rev .project-info { order: 0; }
  .phones { justify-content: flex-start; }
  .project-row { grid-template-columns: auto 1fr auto; gap: 14px; }
  .row-meta { display: none; }
}

/* ============== STUDIO ============== */
#studio { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.founder-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.founder-role {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.founder-bio { font-size: 15.5px; color: var(--fg-mute); line-height: 1.75; max-width: 520px; }
.founder-bio p + p { margin-top: 14px; }

.studio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.sc {
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.sc:hover { border-color: var(--accent); transform: translateY(-3px); }
.sc-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
}
.sc-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  margin: 28px 0 8px;
  letter-spacing: -0.015em;
}
.sc-desc { font-size: 13.5px; color: var(--fg-mute); line-height: 1.55; }
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; gap: 50px; }
  .studio-cards { grid-template-columns: 1fr; }
}

/* ============== CLOSING CTA ============== */
#closing {
  padding: 140px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
#closing .glow {
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 60%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.closing-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}
.closing-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(50px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 36px;
  position: relative;
  text-wrap: balance;
}
.closing-title em {
  font-style: italic;
  color: var(--accent);
}
.closing-cta {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.closing-cta::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(.6,.05,.1,1);
  z-index: 0;
}
.closing-cta > * { position: relative; z-index: 1; }
.closing-cta:hover { color: #fff; }
.closing-cta:hover::after { transform: translateY(0); }

/* ============== FOOTER ============== */
footer {
  padding: 60px 28px 30px;
  position: relative;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
}
.f-brand {
  font-family: var(--f-mark);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.f-brand .dotmark { color: var(--accent); }
.f-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.f-col a {
  font-size: 14px;
  color: var(--fg);
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.f-col a:hover { color: var(--accent); }
.f-col a .arr { transition: transform 0.2s; opacity: 0; }
.f-col a:hover .arr { transform: translateX(2px); opacity: 1; }

.footer-base {
  max-width: 1240px; margin: 70px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  text-transform: uppercase;
}
.footer-base a { transition: color 0.2s; }
.footer-base a:hover { color: var(--fg); }
.footer-base .priv { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* =========================================================
   PROJECT PAGES
   ========================================================= */

.pp-hero {
  min-height: 100vh;
  padding: 130px 28px 60px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin: 0 auto;
}
.pp-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 30% 40%, color-mix(in oklch, var(--accent) 26%, transparent), transparent 65%),
    radial-gradient(50% 50% at 80% 80%, color-mix(in oklch, var(--accent-2) 18%, transparent), transparent 60%);
  filter: blur(20px);
}
.pp-hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
  opacity: 0.45;
}
.pp-hero-content { position: relative; z-index: 1; }
.pp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.pp-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.pp-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(54px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.pp-title .accent { color: var(--accent); font-style: italic; }
.pp-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--fg-mute);
  max-width: 540px;
  margin-bottom: 28px;
  text-wrap: pretty;
}
.pp-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px;
}
.pp-meta .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg);
}
.pp-meta .chip.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.pp-meta .chip.soon::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}
.pp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pp-phones {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  perspective: 1400px;
}
.pp-phones .ph {
  width: clamp(180px, 24vw, 250px);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  overflow: hidden;
  border: 1.5px solid color-mix(in oklch, var(--fg) 18%, transparent);
  box-shadow:
    0 40px 90px rgba(0,0,0,0.55),
    inset 0 0 0 4px rgba(0,0,0,0.35);
  background: #0a0a14;
  position: relative;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.pp-phones .ph::after {
  content: "";
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 13px;
  background: #000; border-radius: 999px;
  z-index: 2;
}
.pp-phones .ph img { width: 100%; height: 100%; object-fit: cover; }
.pp-phones .ph:nth-child(1) { transform: rotate(-5deg) translateY(10px); z-index: 2; }
.pp-phones .ph:nth-child(2) { transform: rotate(4deg)  translateY(-18px); z-index: 1; }
.pp-phones:hover .ph:nth-child(1) { transform: rotate(-7deg) translateY(0) translateX(-10px); }
.pp-phones:hover .ph:nth-child(2) { transform: rotate(6deg)  translateY(-28px) translateX(10px); }

.pp-about {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.pp-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pp-about h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.pp-about h2 em { color: var(--accent); font-style: italic; }
.pp-about p {
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.pp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.pp-feat {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  transition: background 0.25s, transform 0.25s;
}
.pp-feat:hover { background: color-mix(in oklch, var(--accent) 8%, var(--bg-card)); }
.pp-feat-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 16px;
}
.pp-feat-t {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.pp-feat-d {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg-mute);
}

.pp-launch {
  padding: 140px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pp-launch .glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 60% at 50% 60%, color-mix(in oklch, var(--accent) 28%, transparent), transparent 70%);
  filter: blur(20px);
}
.pp-launch-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}
.pp-launch-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(54px, 11vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  position: relative;
  text-wrap: balance;
  margin-bottom: 18px;
}
.pp-launch-title em { color: var(--accent); font-style: italic; }
.pp-launch-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-mute);
  max-width: 540px;
  margin: 0 auto 38px;
  line-height: 1.65;
  position: relative;
  text-wrap: pretty;
}
.pp-launch-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }

.pp-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: color 0.2s, gap 0.2s;
}
.pp-back:hover { color: var(--fg); gap: 14px; }

@media (max-width: 960px) {
  .pp-hero { grid-template-columns: 1fr; gap: 50px; padding: 110px 18px 40px; }
  .pp-phones { order: 2; }
  .pp-hero-content { order: 1; }
  .pp-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .pp-features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pp-features { grid-template-columns: 1fr; }
  .pp-launch { padding: 90px 18px; }
  .pp-phones .ph { width: clamp(140px, 38vw, 180px); border-radius: 28px; }
}

/* ============== SCREENSAVER ============== */
.screensaver {
  position: fixed; inset: 0;
  background: #000;
  z-index: 9500;
  display: none;
  cursor: pointer;
}
.screensaver.on { display: block; }
.screensaver .dvd {
  position: absolute;
  font-family: var(--f-mark);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 64px);
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
  user-select: none;
}
.screensaver .dvd .dotmark { color: var(--accent-2); }

/* ============== KONAMI BANNER ============== */
.konami-flash {
  position: fixed; inset: 0;
  background: var(--accent);
  mix-blend-mode: hard-light;
  opacity: 0; pointer-events: none;
  z-index: 9100;
  animation: konamiFlash 1.4s ease-out 1;
}
@keyframes konamiFlash {
  0% { opacity: 0; }
  20% { opacity: 0.5; }
  100% { opacity: 0; }
}

.toast {
  position: fixed;
  bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 9200;
  pointer-events: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============== REVEAL ON SCROLL ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============== TWEAKS PANEL ============== */
#tweaks {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 320px;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 18px;
  z-index: 9300;
  display: none;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  font-family: var(--f-body);
  color: var(--fg);
}
#tweaks.on { display: block; }
#tweaks h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: center;
}
#tweaks h3 .close { cursor: pointer; color: var(--fg-mute); font-size: 18px; }
.tw-group { padding: 12px 0; border-top: 1px solid var(--line); }
.tw-group:first-of-type { border-top: none; padding-top: 0; }
.tw-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.tw-swatches { display: flex; gap: 8px; }
.tw-sw {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.2s;
}
.tw-sw:hover { transform: scale(1.08); }
.tw-sw.on { border-color: var(--fg); }
.tw-segmented {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tw-seg {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tw-seg.on { background: var(--fg); color: var(--bg); }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tw-toggle {
  width: 36px; height: 20px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  position: relative; cursor: pointer;
  transition: background 0.2s;
}
.tw-toggle::after {
  content: ""; position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--fg-mute);
  transition: transform 0.2s, background 0.2s;
}
.tw-toggle.on { background: var(--accent); border-color: var(--accent); }
.tw-toggle.on::after { transform: translateX(16px); background: #fff; }

/* ============== ACCESSIBILITY ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body::before { animation: none; }
}

/* small screens — tighten */
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; padding: 12px 18px; gap: 12px; }
  .nav-links { display: none; }
  .status { display: none; }
  #hero { padding: 130px 18px 70px; }
  .hero-strip { top: 78px; height: 36px; }
  .hero-strip-track { font-size: 11px; }
  .hero-strip-track > span { padding: 0 1.3rem; }
  .hero-sparkle-wrap { top: 18%; right: 4%; }
  .hero-sparkle-wrap.small { display: none; }
  .now-building { font-size: 10.5px; padding: 8px 14px; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
  .now-building .now-target { font-size: 11px; }
  .hero-desc { font-size: 15px; }
  .hero-cta .btn { height: 46px; padding: 0 18px; font-size: 13px; }
  .section { padding: 70px 0; }
  .wrap { padding: 0 18px; }
  .section-title { font-size: clamp(28px, 8vw, 48px); }
  .filter-tabs { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .section-hdr { gap: 18px; margin-bottom: 36px; }
  .project-card, .project-card.rev { gap: 36px; padding: 50px 0; }
  .phones { gap: 12px; }
  .ph { width: clamp(120px, 38vw, 170px); border-radius: 24px; }
  .proj-title { font-size: clamp(30px, 9vw, 48px); }
  .proj-desc { font-size: 15px; }
  .row-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 11px; }
  .row-title { font-size: 18px; }
  .row-desc { font-size: 13px; }
  .row-arrow { width: 36px; height: 36px; }
  .marquee-track { font-size: 11px; padding: 12px 0; }
  .marquee-track > span { padding: 0 1.5rem; }
  #closing { padding: 90px 18px; }
  .closing-title { font-size: clamp(42px, 12vw, 90px); }
  .closing-cta { height: 54px; font-size: 14px; padding: 0 22px; }
  footer { padding: 50px 18px 24px; }
  .footer-inner { gap: 28px; }
  .f-brand { font-size: clamp(40px, 12vw, 80px); }
  .footer-base { font-size: 10px; margin-top: 50px; }
  .priv { gap: 12px; }
}
@media (max-width: 400px) {
  .nav { padding: 10px 14px; }
  .brand { font-size: 11px; }
  .pill-btn, .icon-btn { height: 30px; font-size: 10px; }
  .icon-btn { width: 30px; }
}

/* ============== INSTAGRAM HIGHLIGHT ============== */
.ig-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 12%, var(--bg-2));
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  color: var(--accent) !important;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}
.ig-link:hover {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.ig-link .arr { opacity: 1 !important; transform: none !important; }

/* ============== MOBILE — comprehensive fixes ============== */
/* prevent any horizontal overflow */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
.wrap { overflow-x: hidden; }

@media (max-width: 760px) {
  /* hero */
  #hero { padding: 120px 18px 70px; min-height: 100svh; }
  .hero-content { width: 100%; }
  .wordmark { max-width: 100%; overflow: visible; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-cta .btn { width: 100%; max-width: 360px; justify-content: center; }
  .hero-desc { max-width: 100%; }
  .now-building { max-width: 100%; }

  /* manifesto */
  .mf { padding: 24px 18px; }
  .mf-title { font-size: 20px; }

  /* project cards */
  .project-card, .project-card.rev { padding: 40px 0; }
  .phones { overflow: visible; }
  .proj-tags { gap: 5px; }

  /* project rows */
  .row-desc { max-width: 100%; font-size: 13px; }

  /* closing */
  .closing-cta { width: 100%; max-width: 360px; justify-content: center; }

  /* footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .f-brand { font-size: clamp(32px, 10vw, 70px); line-height: 1; }
  .footer-base { flex-direction: column; gap: 10px; }
  .priv { flex-direction: column; gap: 8px; }

  /* project pages hero */
  .pp-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pp-cta .btn { width: 100%; max-width: 360px; justify-content: center; }
  .pp-launch-cta { flex-direction: column; align-items: center; gap: 10px; }
  .pp-launch-cta .btn { width: 100%; max-width: 360px; justify-content: center; }
}

@media (max-width: 480px) {
  /* wordmark tighter on very small screens */
  .hero-strip { top: 72px; height: 32px; }
  .hero-strip-track { font-size: 10.5px; letter-spacing: 0.14em; }

  /* sections */
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(26px, 7.5vw, 40px); }
  .section-hdr { margin-bottom: 28px; }
  .filter-tabs { padding: 4px; gap: 2px; }
  .filter-tab { height: 30px; padding: 0 12px; font-size: 10px; }

  /* project cards */
  .ph { width: clamp(110px, 36vw, 155px); border-radius: 22px; }
  .proj-title { font-size: clamp(28px, 9vw, 44px); }
  .proj-desc { font-size: 14px; }

  /* project rows */
  .row-title { font-size: 16px; }
  .row-desc { font-size: 12.5px; }
  .row-icon { width: 40px; height: 40px; font-size: 16px; border-radius: 10px; }

  /* closing */
  .closing-title { font-size: clamp(34px, 11vw, 70px); }
  .closing-cta { max-width: 100%; }

  /* footer */
  .f-brand { font-size: clamp(26px, 9vw, 50px); }

  /* project pages */
  .pp-title { font-size: clamp(40px, 13vw, 80px); }
  .pp-phones .ph { width: clamp(120px, 34vw, 155px); border-radius: 26px; }
  .pp-cta .btn, .pp-launch-cta .btn { max-width: 100%; }
  .pp-about h2 { font-size: clamp(28px, 7vw, 48px); }
  .pp-launch-title { font-size: clamp(46px, 14vw, 120px); }
  .pp-launch { padding: 80px 18px; }
}

@media (max-width: 380px) {
  .f-brand { font-size: clamp(22px, 8.5vw, 44px); }
  .brand { font-size: 10px; letter-spacing: 0.04em; }
}

/* ==========================================================
   ACCESSIBILITY PANEL
   ========================================================== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--r-s) var(--r-s);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
  outline: none;
}
.skip-link:focus { top: 0; }

#a11y-panel {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9000;
  font-family: var(--f-body);
}
#a11y-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--fg-mute);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--f-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#a11y-btn:hover,
#a11y-btn[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
#a11y-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#a11y-menu {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 1rem 1.1rem;
  min-width: 215px;
  box-shadow: 0 8px 32px oklch(0 0 0 / 0.45);
}
#a11y-menu.visible { display: flex; }
.a11y-heading {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
}
.a11y-row { display: flex; gap: 0.4rem; }
.a11y-fs {
  flex: 1;
  padding: 0.3rem 0;
  border-radius: var(--r-s);
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg-mute);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.a11y-fs:hover { border-color: var(--accent); color: var(--accent); }
.a11y-fs.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.a11y-fs:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a11y-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-mute);
}
.a11y-switch {
  flex-shrink: 0;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.a11y-switch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: var(--fg-dim);
  transition: transform 0.2s, background 0.2s;
}
.a11y-switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.a11y-switch[aria-checked="true"]::after {
  transform: translateY(-50%) translateX(1.05rem);
  background: #fff;
}
.a11y-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Font size overrides */
html[data-fontsize="large"] { font-size: 112%; }
html[data-fontsize="xl"]    { font-size: 126%; }

/* High contrast */
html[data-contrast="high"] {
  --fg:      oklch(1 0 0);
  --fg-mute: oklch(0.88 0 0);
  --fg-dim:  oklch(0.75 0 0);
  --bg:      oklch(0.02 0 0);
  --bg-2:    oklch(0.07 0 0);
  --bg-card: oklch(0.1 0 0);
  --line:    oklch(1 0 0 / 0.2);
  --line-2:  oklch(1 0 0 / 0.38);
  --accent:  oklch(0.78 0.26 308);
}

/* Reduce motion */
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
