/* ── Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Brand Fonts (self-hosted) ─────────────────────────── */
@font-face {
  font-family: 'Degular Display';
  src: url('../assets/fonts/DegularDisplay-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Degular Mono';
  src: url('../assets/fonts/DegularMono-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Helvetica Neue';
  src: url('../assets/fonts/HelveticaNeueLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ─────────────────────────────────────────── */
:root {
  /* ── Palette ── */
  --bg:          #0a0a0a;
  --bg-card:     #111111;
  --bg-hover:    #161616;
  --border:      rgba(255,255,255,0.07);
  --border-md:   rgba(255,255,255,0.13);
  --text:        #FFFFFF;
  --text-muted:  rgba(255,255,255,0.72);
  --text-dim:    rgba(255,255,255,0.35);
  --ivory:       #F3F0EB;
  --ivory-dim:   rgba(243,240,235,0.5);
  --pistachio:   #7A825D;
  --cream:       #F3F0EB;
  --cream-dim:   rgba(243,240,235,0.5);
  /* ── Fonts ── */
  --font-disp:   'Bebas Neue', sans-serif;
  --font-mono:   'Degular Mono', 'Courier New', monospace;
  --font-body:   'Inter', 'Helvetica Neue', Helvetica, sans-serif;
  --nav-h:     70px;
  --max-w:     1380px;
  --pad:       clamp(20px, 4vw, 60px);
  --gutter:    var(--pad);   /* horizontal page gutter (project pages) */
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-left {
  display: flex; gap: 32px; align-items: center;
}
.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-right {
  margin-left: auto; display: flex; gap: 32px; align-items: center;
}
.nav-logo a {
  font-family: 'Degular Display', var(--font-body);
  font-size: 26px; font-weight: 600; font-style: normal;
  letter-spacing: -0.01em; color: var(--text); line-height: 1;
}
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-link {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--cream); transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--cream); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(237,232,213,0.25);
  padding: 8px 18px;
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: rgba(237,232,213,0.09);
  border-color: rgba(237,232,213,0.5);
  color: var(--cream);
}

/* Mobile toggle */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px; margin-left: auto;
}
.nav-burger span {
  display: block; width: 24px; height: 1.5px; background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999; padding: 40px var(--pad);
  flex-direction: column; gap: 28px;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .divider { border-top: 1px solid var(--border); }

/* ── Page wrapper ──────────────────────────────────────── */
.page { padding-top: var(--nav-h); min-height: 100vh; }

.page-label {
  text-align: center; padding: 56px var(--pad) 0;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Sections ──────────────────────────────────────────── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px var(--pad);
}
.section-full { padding: 100px var(--pad); }

/* ── Ticker ────────────────────────────────────────────── */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 14px 0;
}
.ticker {
  display: flex; gap: 56px;
  width: max-content;
  animation: tickerRun 28s linear infinite;
}
.ticker-item {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap;
}
@keyframes tickerRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center;
  text-align: center;
  padding: 60px var(--pad) 80px;
}
.hero-eye {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(76px, 11.5vw, 152px);
  line-height: 0.91; text-transform: uppercase;
  max-width: 1100px;
}
/* "Storytelling" is ~0.8% wider than "with a Flare." at any size;
   nudge it horizontally so both lines share identical edges. */
.hero-title-fit {
  display: inline-block;
  transform: scaleX(0.991);
  transform-origin: center;
}
.hero-bottom {
  margin-top: 48px; width: 100%;
  display: flex; align-items: flex-end;
  justify-content: center; gap: 40px;
  flex-wrap: wrap;
}
.hero-desc {
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7; color: var(--text-muted);
  max-width: 440px; text-align: center;
}
.hero-actions { display: flex; gap: 14px; flex-shrink: 0; justify-content: center; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 13px 26px;
  border: 1px solid var(--border-md);
  background: transparent; color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
}
.btn-solid {
  background: var(--cream); color: var(--bg);
  border-color: var(--cream);
}
.btn-solid:hover { background: rgba(237,232,213,0.88); }

/* ── Work grid ─────────────────────────────────────────── */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
}
.work-item {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden; background: var(--bg-card); display: block;
}
.work-item-bg {
  position: absolute; inset: 0; z-index: 0;
  transition: transform 0.5s ease;
}
.work-item:hover .work-item-bg { transform: scale(1.04); }
/* Video preview — plays on hover, sits above bg image */
.work-item-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.45s ease;
  pointer-events: none;
}
.work-item:hover .work-item-video { opacity: 1; }
.work-item-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
}
.work-item:hover .work-item-overlay { opacity: 1; }
.work-item-name {
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.work-item-tag {
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted); margin-top: 4px;
}

/* Work item gradient placeholders */
.g1  { background: linear-gradient(140deg,#1c1410,#0f0c0a); }
.g2  { background: linear-gradient(140deg,#101418,#0a0c0f); }
.g3  { background: linear-gradient(140deg,#151015,#0e0a0e); }
.g4  { background: linear-gradient(140deg,#0f1510,#0a0e0a); }
.g5  { background: linear-gradient(140deg,#18120e,#100c0a); }
.g6  { background: linear-gradient(140deg,#0d1218,#0a0d10); }
.g7  { background: linear-gradient(140deg,#16100e,#100c0a); }
.g8  { background: linear-gradient(140deg,#101616,#0a0f0f); }
.g9  { background: linear-gradient(140deg,#14141a,#0d0d12); }
.g10 { background: linear-gradient(140deg,#1a1410,#110d0a); }
.g11 { background: linear-gradient(140deg,#121216,#0d0d10); }
.g12 { background: linear-gradient(140deg,#0e1614,#0a100e); }

/* ── Services grid ─────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg); padding: 52px 44px;
  transition: background 0.25s;
}
.service-card:hover {
  background: var(--bg-hover);
  border-left: 2px solid var(--cream-dim);
}
.service-num {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--text-dim); margin-bottom: 28px;
}
.service-name {
  font-family: var(--font-disp);
  font-size: clamp(30px, 3vw, 44px); text-transform: uppercase;
  line-height: 1; margin-bottom: 18px;
}
.service-desc {
  font-size: 14px; line-height: 1.78;
  color: var(--text-muted); max-width: 360px;
}
.service-tags {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px;
}
.service-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border);
  padding: 5px 10px;
}

/* ── Stats row ─────────────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.stat-box { background: var(--bg); padding: 52px 44px; }
.stat-num {
  font-family: var(--font-disp);
  font-size: clamp(60px, 6vw, 84px); line-height: 1;
}
.stat-label {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 10px;
}

/* ── Founder section ───────────────────────────────────── */
.founder-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 80px; align-items: start;
}
.founder-img {
  aspect-ratio: 3/4; background: var(--bg-card);
  position: relative; overflow: hidden;
}
.founder-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-img-ph {
  width: 100%; height: 100%;
  background: linear-gradient(160deg,#181818,#0f0f0f);
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
}
.founder-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.founder-name {
  font-family: var(--font-disp);
  font-size: clamp(52px, 5.5vw, 76px);
  text-transform: uppercase; line-height: 0.94;
  margin-bottom: 6px;
}
.founder-title {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 44px;
}
.founder-bio {
  font-size: 15.5px; line-height: 1.82; color: var(--text-muted);
}
.founder-bio p + p { margin-top: 18px; }

/* ── Values list ───────────────────────────────────────── */
.values-list { margin-top: 56px; }
.value-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.value-row:first-child { border-top: 1px solid var(--border); }
.value-key {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.value-val {
  font-size: 14px; line-height: 1.75; color: var(--text-muted);
}

/* ── Why choose strip ──────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.why-card {
  background: var(--bg); padding: 48px 36px;
}
.why-icon {
  font-size: 22px; margin-bottom: 20px; color: var(--pistachio);
}
.why-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.why-desc {
  font-size: 13.5px; line-height: 1.78; color: var(--text-muted);
}

/* ── CTA strip ─────────────────────────────────────────── */
.cta-strip {
  padding: 130px var(--pad);
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-strip-title {
  font-family: var(--font-disp);
  font-size: clamp(68px, 10vw, 128px);
  text-transform: uppercase; line-height: 0.91;
  margin-bottom: 44px;
}

/* ── Contact ───────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: start;
  padding: 80px var(--pad);
  max-width: var(--max-w); margin: 0 auto;
}
.contact-info-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 24px;
}
.contact-info-label {
  font-family: var(--font-mono); font-style: italic;
}
.contact-info-title {
  font-family: var(--font-disp);
  font-size: clamp(56px, 7vw, 90px);
  text-transform: uppercase; line-height: 0.92;
  margin-bottom: 36px;
}
.contact-info-desc {
  font-size: 14.5px; line-height: 1.75; color: var(--text-muted);
  max-width: 380px; margin-bottom: 48px;
}
.contact-detail {
  margin-bottom: 20px;
}
.contact-detail-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 4px;
}
.contact-detail-val {
  font-size: 14px; color: var(--text-muted);
}
.form-group { margin-bottom: 36px; }
.form-label {
  display: block; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 12px 0; font-family: var(--font-body);
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ivory);
}
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: #111; }
.form-textarea { resize: none; min-height: 110px; line-height: 1.65; }
.form-submit {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bg);
  background: var(--cream); border: none;
  padding: 15px 32px; transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.86; }

/* ── Section header ────────────────────────────────────── */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
  margin-bottom: 48px;
}
.section-header-title {
  font-family: var(--font-disp);
  font-size: clamp(48px, 6vw, 80px);
  text-transform: uppercase; line-height: 0.93;
}
.section-intro {
  font-size: 14px; line-height: 1.75;
  color: var(--text-muted); max-width: 420px;
  text-align: right; flex-shrink: 0;
}

/* ── Process ───────────────────────────────────────────── */
.process-list { counter-reset: step; }
.process-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px; padding: 40px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.process-item:first-child { border-top: 1px solid var(--border); }
.process-step {
  font-family: var(--font-disp);
  font-size: 48px; color: var(--text-dim); line-height: 1; padding-top: 4px;
}
.process-step::before { content: counter(step, decimal-leading-zero); }
.process-body {}
.process-name {
  font-family: var(--font-disp); font-size: 32px;
  text-transform: uppercase; margin-bottom: 12px;
}
.process-desc {
  font-size: 14px; line-height: 1.75; color: var(--text-muted);
  max-width: 560px;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px var(--pad);
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 18px;
}
.footer-logo a { display: inline-block; }
.footer-logo img { height: 28px; width: auto; display: block; }
.footer-copy {
  font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.1em;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* Back to top */
.back-top {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 18px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  transition: color 0.2s;
}
.back-top:hover { color: var(--text); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-left, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .nav-center { position: static; transform: none; }
  .nav { justify-content: space-between; }

  .work-grid       { grid-template-columns: repeat(2,1fr); }
  .services-grid   { grid-template-columns: 1fr; }
  .stats-row       { grid-template-columns: 1fr 1fr; }
  .why-grid        { grid-template-columns: 1fr; }
  .founder-grid    { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout  { grid-template-columns: 1fr; }
  .section-header  { flex-direction: column; align-items: flex-start; }
  .section-intro   { text-align: left; }
  .hero-bottom     { flex-direction: column; align-items: flex-start; }
  .value-row       { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  .work-grid   { grid-template-columns: 1fr; }
  .stats-row   { grid-template-columns: 1fr 1fr !important; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ────────────────────────────────────────────────────────
   MOBILE APP EXPERIENCE  ≤ 768px
   ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav var — project pages pad <main> with var(--nav-h) */
  :root { --nav-h: 50px; }

  /* ── Nav — slim, logo left, tabs right ── */
  .nav {
    height: 50px;
    justify-content: space-between;
    padding: 0 20px;
  }
  .nav-logo img { height: 20px; }
  .nav-left, .nav-right { display: none !important; }
  .nav-burger { display: none !important; }
  .nav-mobile { display: none !important; }
  .nav-center { position: static; transform: none; }

  /* ── Mobile Nav Tabs (top right, injected by JS) ── */
  .nav-mobile-tabs {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .nav-mobile-tab {
    font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
  }
  .nav-mobile-tab.active { color: var(--cream); }

  /* ── Page offset for slim nav ── */
  .page { padding-top: 50px; }

  /* ── Hero — full height, centered ── */
  .hero {
    min-height: calc(100dvh - 50px);
    padding: 20px 24px 36px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    align-items: center; text-align: center;
  }
  .hero-eye {
    font-size: 9px; letter-spacing: 0.2em;
    margin-bottom: 0; opacity: 0.4;
  }
  .hero-title {
    font-size: clamp(72px, 20vw, 96px);
    line-height: 0.88; margin: 0;
  }
  .hero-bottom { flex-direction: column; gap: 18px; align-items: center; width: 100%; }
  .hero-desc {
    font-size: 13.5px; line-height: 1.6;
    margin-bottom: 0; max-width: 100%;
    color: rgba(255,255,255,0.52);
    text-align: center;
  }
  .hero-actions {
    display: flex; flex-direction: column; gap: 9px; width: 100%;
  }
  .hero-actions .btn,
  .hero-actions .btn-solid {
    width: 100%; text-align: center;
    padding: 15px 24px;
    font-size: 10.5px; letter-spacing: 0.16em;
  }

  /* ── Clients strip — horizontal scroll ── */
  .clients-strip { padding: 28px 0; }
  .clients-label { padding: 0 24px; margin-bottom: 12px; }
  .clients-row {
    overflow: hidden; padding: 0;
    scrollbar-width: none;
  }
  .clients-row::-webkit-scrollbar { display: none; }
  .client-name { white-space: nowrap; font-size: 11px; flex-shrink: 0; }
  .client-sep { flex-shrink: 0; padding: 0 8px; color: rgba(255,255,255,0.14); }

  /* ── Work grid — HOME swipe (index.html only, .work-grid-swipe) ── */
  .work-grid-swipe {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    scrollbar-width: none;
  }
  .work-grid-swipe::-webkit-scrollbar { display: none; }
  .work-grid-swipe .work-item {
    flex: 0 0 76vw !important;
    max-width: 76vw !important;
    width: 76vw !important;
    aspect-ratio: 4 / 5 !important;
    scroll-snap-align: start;
  }
  .work-grid-swipe .work-item .work-item-overlay { opacity: 1; }

  /* ── Work grid — WORK PAGE vertical 1-col list ── */
  .work-grid:not(.work-grid-swipe) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow-x: visible !important;
    scroll-snap-type: none !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  .work-grid:not(.work-grid-swipe) .work-item {
    flex: unset !important;
    max-width: unset !important;
    width: auto !important;
    aspect-ratio: 4 / 5 !important;
    scroll-snap-align: unset !important;
  }
  .work-grid:not(.work-grid-swipe) .work-item .work-item-overlay { opacity: 1; }
  .work-item-name { font-size: 16px; }
  .work-item-tag  { font-size: 10px; }


  /* ── Global section rhythm ── */
  .section,
  section {
    padding-left: 28px !important;
    padding-right: 28px !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  /* Override aggressive inline padding on index sections */
  section[style],
  .section[style] {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .section-header-title {
    font-size: clamp(44px, 12vw, 60px) !important;
    margin-bottom: 16px;
  }
  .section-intro {
    font-size: 14px !important;
    line-height: 1.65;
    margin-top: 16px;
  }

  /* ── Work section — swipe cards start with left padding ── */
  .work-grid-swipe {
    padding: 0 0 32px 28px !important;
  }
  /* Section header above work grid */
  .section > .section-header {
    padding: 0;
  }

  /* ── Community teaser — generous stacking ── */
  .community-teaser {
    grid-template-columns: 1fr !important;
  }
  .community-teaser-left {
    padding: 60px 28px 48px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .community-teaser-right {
    padding: 48px 28px 64px !important;
  }
  .community-title {
    font-size: clamp(48px, 13vw, 64px) !important;
    margin-bottom: 0;
  }
  .community-body {
    font-size: 14px !important;
    line-height: 1.7;
    margin-top: 24px;
    margin-bottom: 32px !important;
  }
  .community-perks li { font-size: 13px; padding: 14px 0; }

  /* ── Stats 2-col ── */
  .stats-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .stat-box  { padding: 40px 28px; }
  .stat-num  { font-size: clamp(52px, 13vw, 68px) !important; }
  .stat-label { font-size: 11px; margin-top: 8px; }

  /* ── CTA strip ── */
  .cta-strip {
    padding: 80px 28px !important;
  }
  .cta-strip-title { font-size: clamp(52px, 14vw, 72px) !important; }
  .cta-strip .btn { width: 100%; text-align: center; margin-top: 8px; }

  /* ── Page label ── */
  .page-label { padding-left: 28px; padding-right: 28px; }

  /* ── Footer ── */
  footer {
    flex-direction: column; text-align: center;
    gap: 26px; padding: 64px 28px 48px;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 22px;
    max-width: 320px;
  }
}

/* ── Page transitions ──────────────────────────────────── */
/* Fade the page in on load and out on internal navigation.
   Driven by js/main.js (adds .is-leaving on nav). Animation is
   purely opacity, so fixed nav/bottom-nav positioning is unaffected. */
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: flare-page-in 0.42s ease both;
  }
  body.is-leaving {
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: none;
  }
}

@keyframes flare-page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Next project (project pages) ──────────────────────── */
/* Injected by js/main.js as the last child of <main> on each
   project page, driven by the PROJECTS order array. */
.next-project {
  position: relative;
  display: block;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  background: var(--bg-card);
  isolation: isolate;
}
.next-project-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: grayscale(0.2);
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.6s ease;
  z-index: -1;
}
.next-project:hover .next-project-bg { opacity: 0.42; transform: scale(1); }
.next-project-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 120px) var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.next-project-label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pistachio);
}
.next-project-name {
  font-family: var(--font-disp);
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.25s ease;
}
.next-project:hover .next-project-name { color: var(--ivory, #F3F0EB); }
.next-project-tag {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.next-project-arrow {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.next-project:hover .next-project-arrow { transform: translateX(6px); color: var(--text); }

/* ── UI/UX polish (ui-ux-pro-max skill) ────────────────── */
/* Brand-preserving refinements: keeps dark + Bebas + pistachio.
   Addresses skill priorities: a11y focus, touch, motion-safety. */

/* P1 Accessibility — visible keyboard focus (previously missing).
   Only shows for keyboard nav, never on mouse click. */
:focus-visible {
  outline: 2px solid var(--pistachio);
  outline-offset: 3px;
}
.btn:focus-visible,
.work-item:focus-visible { outline-offset: 4px; }
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible { outline-offset: 4px; }

/* P2 Touch & interaction — remove 300ms tap delay, predictable taps */
a, button, .filter-btn, .work-item, [role="button"] {
  touch-action: manipulation;
}

/* Brand text-selection colour */
::selection { background: var(--pistachio); color: #0a0a0a; }

/* P2 Touch targets — min 44px on touch viewports */
@media (max-width: 768px) {
  .filter-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* P1/P7 Motion-safety — honour prefers-reduced-motion site-wide.
   (scroll-behavior:smooth is set globally on <html>.) */
@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;
    scroll-behavior: auto !important;
  }
}

/* ── Motion & animation (cinematic polish) ─────────────── */
/* All durations 150–450ms; neutralised by the reduced-motion
   block above. Image-zoom-on-hover already lives in .work-item-bg. */

/* Top scroll-progress bar (injected by main.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  width: 0; background: var(--pistachio);
  z-index: 1200; pointer-events: none;
  transition: width 0.1s linear;
}

/* Work card — lift on hover (pairs with existing bg zoom) */
.work-item {
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.work-item:hover { transform: translateY(-6px); }

/* Buttons — subtle lift micro-interaction */
.btn {
  transition: background 0.2s, border-color 0.2s, transform 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.nav-cta {
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s ease;
}
.nav-cta:hover { transform: translateY(-2px); }

/* Staggered reveal for grid children (main.js adds .in) */
.stagger-item {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease,
              transform 0.6s cubic-bezier(0.22, 0.7, 0.25, 1);
}
.stagger-item.in { opacity: 1; transform: none; }

/* Don't lift cards on touch viewports (no hover, avoids snap jank) */
@media (max-width: 768px) {
  .work-item:hover { transform: none; }
}

/* Hover lift must beat the revealed .stagger-item.in transform */
.work-item.stagger-item:hover { transform: translateY(-6px); }
@media (max-width: 768px) {
  .work-item.stagger-item:hover { transform: none; }
}

/* ── Mobile: reveal-from-side on scroll ────────────────── */
/* On phones, scroll-revealed sections slide in horizontally
   (alternating sides via .from-left, set in main.js) instead of
   fading straight up. body{overflow-x:hidden} prevents h-scroll;
   .work-grid is excluded — it's a horizontal scroller on mobile.
   Uses :not(.visible) to win over the inline per-page .fade-in. */
@media (max-width: 768px) {
  .fade-in:not(.visible):not(.work-grid) {
    transform: translateX(48px);
  }
  .fade-in.from-left:not(.visible):not(.work-grid) {
    transform: translateX(-48px);
  }
}

/* ── Project pages — spacing & flow (ui-ux-pro-max) ────── */
/* Centralised overrides for the per-page inline .project-* rules.
   Scoped under `main` so specificity (0,1,1) beats the inline
   (0,1,0) rules without editing all 7 project files. Goal:
   generous whitespace + clear, even vertical rhythm. */

main .project-back {
  padding: clamp(28px, 4vw, 46px) var(--gutter) 0;
  letter-spacing: 0.2em;
}

/* Hero — more air above the title, calmer lead-in to the media */
main .project-hero {
  max-width: 840px;
  padding: clamp(84px, 11vw, 156px) var(--gutter) clamp(44px, 6vw, 76px);
}
main .project-tag   { margin-bottom: clamp(22px, 2.6vw, 32px); }
main .project-title { margin-bottom: clamp(28px, 4vw, 46px); line-height: 0.9; }
main .project-desc  {
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.85;
  max-width: 620px;
  padding-bottom: 0;
}

/* Media — much larger breathing room top/bottom, capped width
   on huge screens so it reads as a composed gallery, not a wall */
main .project-media {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 150px) var(--gutter) clamp(96px, 11vw, 176px);
}
main .project-media-row {
  gap: clamp(14px, 1.8vw, 26px);
  margin-bottom: clamp(14px, 1.8vw, 26px);
}
main .project-media-full  { margin-bottom: clamp(14px, 1.8vw, 26px); }
main .project-cover-full  { margin-bottom: clamp(14px, 1.8vw, 26px); }
/* even rhythm: trailing gap comes from section padding, not the item */
main .project-media > *:last-child,
main .project-media-full:last-child { margin-bottom: 0; }

/* A touch more separation before the "Next Project" band */
main .next-project { margin-top: clamp(64px, 10vw, 128px); }

/* ── BTS video — taller 4:5 crop on mobile only ────────── */
/* Inline style sets 16/9; !important overrides it ≤768px. */
@media (max-width: 768px) {
  .bts-video {
    aspect-ratio: 4 / 5 !important;
  }
}
