/* ============================================================
   PANDA STUDIO — Page CSS
   Shared base (variables, reset, nav, footer) lives in common.css
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");
@import url("https://fonts.cdnfonts.com/css/nexa");
:root {
  --ink: #000000;
  --paper: #ffffff;
  --line-soft: rgba(0, 0, 0, 0.12);
  --muted: rgba(0, 0, 0, 0.55);
  --muted-light: rgba(255, 255, 255, 0.55);
  --line-light: rgba(255, 255, 255, 0.18);
  --warm: #f5f0e8;
  --accent-warm: #e8ddd0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nexa", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Remove global header offset so hero fills from top of viewport */
body.tbps-studio-body {
  padding-top: 0 !important;
}

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(100%) contrast(1.05) brightness(0.65);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.08;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  /* vertical only — horizontal padding comes from the .container class */
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.25);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--paper);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
  }
}

.hero-live,
.hero-reel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-live .live-bars,
.hero-reel .live-bars {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 14px;
}

.hero-live .live-bars span,
.hero-reel .live-bars span {
  width: 2px;
  background: var(--paper);
  animation: bars 0.9s ease-in-out infinite;
}

.hero-live .live-bars span:nth-child(1),
.hero-reel .live-bars span:nth-child(1) {
  animation-delay: 0s;
  height: 60%;
}
.hero-live .live-bars span:nth-child(2),
.hero-reel .live-bars span:nth-child(2) {
  animation-delay: 0.15s;
  height: 90%;
}
.hero-live .live-bars span:nth-child(3),
.hero-reel .live-bars span:nth-child(3) {
  animation-delay: 0.3s;
  height: 40%;
}

@keyframes bars {
  0%,
  100% {
    transform: scaleY(0.6);
  }
  50% {
    transform: scaleY(1);
  }
}

.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(36px, 7vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff !important;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

.hero-title .ital {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.hero-title .accent-block {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  padding: 0 18px;
  font-style: italic;
  font-weight: 500;
  transform: rotate(-1.2deg);
  text-shadow: none;
}

.hero-center {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 480px;
}

.hero-desc strong {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--paper);
}

.hero-right-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-light:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--paper);
}

.stat {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 12px;
}

.stat-num {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.stat-num .ital {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.stat-lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--paper));
  animation: drop 2s ease-in-out infinite;
}

@keyframes drop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  margin-top: 72px;
  overflow: hidden;
  padding: 22px 0;
  background: var(--paper);
  position: relative;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(
      90deg,
      transparent 0%,
      #c0c0c0 15%,
      #333 50%,
      #c0c0c0 85%,
      transparent 100%
    )
    1;
  box-shadow:
    0 -6px 24px rgba(0, 0, 0, 0.07),
    0 6px 24px rgba(0, 0, 0, 0.1);
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, #fff, transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, #fff, transparent);
}

.marquee-track {
  display: flex;
  gap: 56px;
  animation: mscroll 36s linear infinite;
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-size: 22px;
  font-weight: 500;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}

.marquee-track .ital {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.marquee-track .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes mscroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================
   WORK GRID (portfolio)
   ============================================================ */
.work {
  padding: 120px 0 60px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 24px;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-title .ital {
  font-style: italic;
  font-weight: 400;
}

.section-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* ── Shared card base (overridden below) ── */
.work-card {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.7;
}

.work-title {
  font-family: "Fraunces", serif;
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.work-title .ital {
  font-style: italic;
  font-weight: 400;
}

/* ── Card 1 — Brand Identity (dark, letterform) ── */
.card-brand {
  background: var(--ink);
  color: var(--paper);
}

.brand-letterform {
  position: absolute;
  bottom: -40px;
  right: -20px;
  font-family: "Fraunces", serif;
  font-size: 280px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.06em;
}

.brand-palette {
  position: absolute;
  top: 32px;
  right: 32px;
  display: flex;
  gap: 8px;
}

.brand-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── Card 2 — Web Design (white, browser mockup) ── */
.card-web {
  background: var(--warm);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

.web-mockup {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 72%;
  height: 72%;
  background: var(--paper);
  border-radius: 12px 0 0 0;
  overflow: hidden;
  box-shadow: -4px -4px 32px rgba(0, 0, 0, 0.12);
}

.web-mockup-bar {
  height: 28px;
  background: #f0f0f0;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.web-mockup-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0e0e0;
}

.web-mockup-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.web-mockup-body .line {
  height: 8px;
  background: #ebebeb;
  border-radius: 4px;
}

.web-mockup-body .line.short {
  width: 55%;
}
.web-mockup-body .line.med {
  width: 80%;
}
.web-mockup-body .line.block {
  height: 60px;
  background: #f5f5f5;
  margin-top: 4px;
}

/* ── Card 3 — Design System (wide, dark, token grid) ── */
.card-system {
  background: var(--ink);
  color: var(--paper);
}

.system-tokens {
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(4, 88px);
  grid-template-rows: repeat(2, 72px);
  gap: 10px;
}

.system-tokens div {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.45);
  gap: 6px;
}

.system-tokens div strong {
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.02em;
  font-style: italic;
}

.system-tokens .highlight {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ── Card 4 — E-commerce (white, product card) ── */
.card-ecom {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

.ecom-tag-big {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  font-family: "Fraunces", serif;
  font-size: clamp(70px, 9vw, 120px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ── Card 5 — Motion (dark, waveform) ── */
.card-motion {
  background: var(--ink);
  color: var(--paper);
}

.motion-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  overflow: hidden;
}

.motion-wave svg {
  width: 100%;
  height: 100%;
}

/* ── Card 6 — Art Direction (wide, white, split) ── */
.card-art {
  background: var(--warm);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.art-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  height: 100%;
  padding: 8px;
}

.art-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.art-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
}

.art-type-sample {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.08);
}

.art-type-sample em {
  font-style: italic;
  font-weight: 400;
}

/* ============================================================
   DISCIPLINES (capabilities)
   ============================================================ */
.disciplines {
  padding: 100px 0;
  background: #0a0a0a;
  color: var(--paper);
  border-radius: 32px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.disciplines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    black 50%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 100% 100% at 50% 0%,
    black 50%,
    transparent 100%
  );
}

.disciplines::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 45% at 100% 100%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 45% 35% at 0% 0%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.disciplines-inner {
  position: relative;
  z-index: 1;
  padding: 0 60px;
}

.disciplines-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}

.disciplines h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.disciplines h2 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}

.disciplines-intro {
  color: rgba(255, 255, 255, 0.6);
  font-size: 17px;
  line-height: 1.5;
  max-width: 440px;
}

.disciplines-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.discipline {
  padding: 36px 0;
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 60px 1fr 90px;
  gap: 24px;
  align-items: start;
  transition: padding-left 0.3s ease;
}

.discipline:hover {
  padding-left: 12px;
}

.discipline:hover .discipline-arrow {
  transform: translateX(8px);
  opacity: 1;
}

.discipline:nth-child(odd) {
  border-right: 1px solid var(--line-light);
  padding-right: 36px;
}

.discipline:nth-child(even) {
  padding-left: 36px;
}
.discipline:nth-child(even):hover {
  padding-left: 48px;
}

.discipline-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted-light);
  padding-top: 6px;
}

.discipline-body h3 {
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.discipline-body h3 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.8;
}

.discipline-body p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.55;
}

.discipline-arrow {
  font-family: "Fraunces", serif;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  transition:
    transform 0.3s,
    opacity 0.3s;
  padding-top: 4px;
  opacity: 0.6;
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.caps {
  padding: 100px 0;
  background: #0a0a0a;
  color: var(--paper);
  border-radius: 32px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.caps::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 40px
  );
  pointer-events: none;
}

.caps::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 75% at 100% 100%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 35%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 45% 60% at 0% 0%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 35%,
      transparent 65%
    );
  pointer-events: none;
}

.caps-inner {
  position: relative;
  z-index: 1;
  padding: 0 60px;
}

.caps-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}

.caps h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff !important;
}

.caps h2 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.75;
}

.caps-intro {
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  max-width: 440px;
}

.caps-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.cap {
  padding: 36px 0;
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 60px 1fr 90px;
  gap: 24px;
  align-items: start;
  transition: padding-left 0.3s ease;
}

.cap:hover {
  padding-left: 12px;
}

.cap:hover .cap-arrow {
  transform: translateX(8px);
  opacity: 1;
}

.cap-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted-light);
  padding-top: 6px;
}

.cap-body h3 {
  font-family: "Fraunces", serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.cap-body h3 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.8;
}

.cap-body p {
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
}

.cap-arrow {
  font-family: "Fraunces", serif;
  font-size: 28px;
  color: #fff;
  text-align: right;
  transition:
    transform 0.3s,
    opacity 0.3s;
  padding-top: 4px;
  opacity: 0.6;
}

.portfolio-arrow {
  font-family: "Fraunces", serif;
  font-size: 12px;
  color: #fff;
  text-align: right;
  transition:
    transform 0.3s,
    opacity 0.3s;
  padding-top: 4px;
  opacity: 0.6;
  width: 12px;
  margin-top: -5px;
}

.cap:nth-child(odd) {
  border-right: 1px solid var(--line-light);
  padding-right: 36px;
}

.cap:nth-child(even) {
  padding-left: 36px;
}

.cap:nth-child(even):hover {
  padding-left: 48px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: 120px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.step {
  padding: 28px 0;
  border-top: 1px solid var(--ink);
}

.step-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 80px;
}

.step h4 {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step h4 .ital {
  font-style: italic;
  font-weight: 400;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: #0a0a0a;
  color: var(--paper);
  border-radius: 32px;
  padding: 80px 60px;
  margin: 60px 0 100px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 40px
  );
  pointer-events: none;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 75% at 100% 100%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 35%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 45% 60% at 0% 0%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.06) 35%,
      transparent 65%
    );
  pointer-events: none;
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  position: relative;
}

.cta h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(38px, 5.8vw, 82px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: #fff !important;
}

.cta h2 .ital {
  font-style: italic;
  font-weight: 400;
  opacity: 0.78;
}

.cta h2 u {
  text-decoration: none;
  border-bottom: 4px solid var(--paper);
  padding-bottom: 4px;
}

.cta-side p {
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Nexa", sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: none;
  transition: transform 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn .arr {
  transition: transform 0.2s;
}
.cta-btn:hover .arr {
  transform: translateX(4px);
}

/* ============================================================
   REVEAL ANIMATION  — desktop only.
   On mobile elements are always visible; JS is a progressive enhancement.
   ============================================================ */
@media (min-width: 901px) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.8s ease,
      transform 0.8s ease;
  }

  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet / large mobile (≤ 900px) ── */
@media (max-width: 900px) {
  .container {
    padding: 0 24px;
  }

  /* Hero */
  .hero-content {
    padding-top: 80px;
    padding-bottom: 36px;
  }
  .hero-top {
    gap: 12px;
  }
  .hero-eyebrow {
    font-size: 10px;
    padding: 6px 12px;
    letter-spacing: 0.8px;
  }
  .hero-reel {
    font-size: 10px;
    letter-spacing: 0.8px;
  }
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-desc {
    font-size: 15px;
    max-width: 100%;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-light,
  .btn-ghost {
    justify-content: center;
    text-align: center;
  }
  .scroll-cue {
    display: none;
  }

  /* Work */
  .work {
    padding: 80px 0 40px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .work-card.wide {
    grid-column: span 1;
  }
  .work-card-inner {
    padding: 24px;
  }

  /* Capabilities */
  .caps {
    margin: 32px 0;
    border-radius: 20px;
    padding: 64px 0;
  }
  .caps-inner {
    padding: 0 28px;
  }
  .caps-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
  .caps-intro {
    font-size: 15px;
    max-width: 100%;
  }
  .caps-list {
    grid-template-columns: 1fr;
  }
  .cap,
  .cap:nth-child(odd),
  .cap:nth-child(even) {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
  .cap:nth-child(even):hover {
    padding-left: 12px;
  }

  /* Process */
  .process {
    padding: 80px 0;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 40px;
  }
  .step-num {
    margin-bottom: 48px;
  }

  /* CTA */
  .cta {
    padding: 48px 32px;
    margin: 32px 0 60px;
    border-radius: 24px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Deploy card */
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  .deploy-right {
    display: none;
  }

  /* Unused legacy selectors kept for safety */
  .art-layout {
    grid-template-columns: 1fr;
  }
  .system-tokens {
    display: none;
  }
}

/* ── Phone (≤ 540px) ── */
@media (max-width: 540px) {
  .container {
    padding: 0 20px;
  }

  .marquee-track {
    animation-duration: 18s;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 100svh;
  }
  .hero-content {
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .hero-top {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .hero-eyebrow {
    font-size: 9px;
    padding: 5px 10px;
    gap: 6px;
  }
  .hero-reel {
    font-size: 9px;
    white-space: nowrap;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat-num {
    font-size: 18px;
  }
  .stat-lbl {
    font-size: 9px;
  }

  /* Work */
  .work {
    padding: 60px 0 32px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .work-card {
    border-radius: 14px;
  }
  .work-card-inner {
    padding: 18px;
  }
  .work-title {
    font-size: clamp(18px, 4.5vw, 28px);
  }

  /* Capabilities */
  .caps {
    padding: 48px 0;
    margin: 20px 0;
    border-radius: 16px;
  }
  .caps-inner {
    padding: 0 20px;
  }
  .caps-head {
    margin-bottom: 28px;
  }
  .cap {
    padding: 24px 0;
    grid-template-columns: 40px 1fr 32px;
    gap: 10px;
  }
  .cap-body h3 {
    font-size: 20px;
    margin-bottom: 6px;
  }
  .cap-num {
    font-size: 11px;
  }
  .cap-arrow {
    font-size: 18px;
  }

  /* Process */
  .process {
    padding: 60px 0;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .step {
    padding: 20px 0;
  }
  .step-num {
    margin-bottom: 32px;
  }
  .step h4 {
    font-size: 20px;
  }

  /* CTA */
  .cta {
    padding: 40px 20px;
    margin: 20px 0 48px;
    border-radius: 16px;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-btn {
    width: 100%;
    justify-content: center;
  }

  /* Card decorations — scale down to prevent overflow */
  .mokoia-rings {
    width: 280px;
    height: 280px;
    right: -60px;
  }
  .verdant-grid {
    grid-template-columns: repeat(3, 44px);
    gap: 8px;
    right: -30px;
  }
  .solis-sun {
    width: 240px;
    height: 240px;
    top: -80px;
    right: -80px;
  }
  .solis-bars {
    height: 64px;
    right: 18px;
    bottom: 18px;
  }
  .florence-mark {
    width: 130px;
    height: 130px;
    right: 16px;
  }
}

/* Dark cards — force white text regardless of Astra heading overrides */
.card-mokoia .work-title,
.card-mokoia .work-tag,
.card-atelier .work-title,
.card-atelier .work-tag {
  color: #fff !important;
}

/* Light cards — force dark text */
.card-verdant .work-title,
.card-verdant .work-tag,
.card-solis .work-title,
.card-solis .work-tag,
.card-florence .work-title,
.card-florence .work-tag,
.card-deploy .work-title,
.card-deploy .work-tag {
  color: var(--ink) !important;
}

/* Card 1 — Mokoia (dark, concentric rings) */
.card-mokoia {
  background: var(--ink);
  color: var(--paper);
}

.mokoia-rings {
  position: absolute;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
}

.mokoia-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: ripple 5s ease-out infinite;
}

.mokoia-rings span:nth-child(2) {
  animation-delay: 1.2s;
}

.mokoia-rings span:nth-child(3) {
  animation-delay: 2.4s;
}

.mokoia-rings span:nth-child(4) {
  animation-delay: 3.6s;
}

@keyframes ripple {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Card 2 — Verdant (white w/ grid) */
.card-verdant {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

.verdant-grid {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 12px;
}

.verdant-grid div {
  aspect-ratio: 1;
  background: var(--ink);
  border-radius: 8px;
}

.verdant-grid div:nth-child(2) {
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

.verdant-grid div:nth-child(5) {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.verdant-grid div:nth-child(7) {
  background: var(--paper);
  border: 1.5px solid var(--ink);
}

.verdant-grid div:nth-child(9) {
  background: var(--ink);
  border-radius: 50%;
}

/* Card 3 — Atelier (wide, outlined giant type) */
.card-atelier {
  background: var(--ink);
  color: var(--paper);
}

.atelier-type {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Fraunces", serif;
  font-size: clamp(80px, 13vw, 240px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  pointer-events: none;
}

.atelier-type-fill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Fraunces", serif;
  font-size: clamp(80px, 13vw, 240px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--paper);
  white-space: nowrap;
  pointer-events: none;
  clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

/* Card 4 — Solis (white, big black circle) */
.card-solis {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

.solis-sun {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: var(--ink);
  border-radius: 50%;
}

.solis-bars {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: end;
  gap: 8px;
  height: 100px;
}

.solis-bars div {
  width: 14px;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
}

/* Card 5 — Florence (white, custom SVG mark) */
.card-florence {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

.florence-mark {
  position: absolute;
  top: 50%;
  right: 32px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
}

.florence-mark svg {
  width: 100%;
  height: 100%;
}

/* Card 6 — Deploy (wide, terminal) */
.card-deploy {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

.deploy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  height: 100%;
  padding: 8px;
}

.deploy-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deploy-right {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
}

.deploy-right .cmt {
  color: rgba(255, 255, 255, 0.45);
}

.deploy-right .ok,
.deploy-right .warn {
  color: var(--paper);
  font-weight: 600;
}

.deploy-right .cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--paper);
  animation: blink 1s steps(2) infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
/* ── end of file ── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

a.work-card {
  text-decoration: none;
  color: inherit;
}

.work-card:hover {
  transform: translateY(-6px);
}

.work-card.wide {
  grid-column: span 2;
}

/* Screenshot area — full width, top of card */
.work-screenshot {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.browser-chrome {
  background: #f0f0f0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  flex-shrink: 0;
  z-index: 2;
}

.browser-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  display: inline-block;
  flex-shrink: 0;
}

.browser-url {
  flex: 1;
  margin-left: 8px;
  padding: 2px 10px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
  line-height: 1.4;
  text-align: center;
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.work-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* Text content — below screenshot */
.work-card-inner {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.work-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
}

.work-title {
  font-family: "Fraunces", serif;
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.work-title .ital {
  font-style: italic;
  font-weight: 400;
}

/* Make work cards link-friendly */
a.work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* Footer meta on work cards (URL + ext arrow) */
.work-meta {
  margin-top: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.65;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    opacity 0.2s,
    gap 0.2s;
}
.work-card:hover .work-meta {
  opacity: 1;
  gap: 12px;
}
.work-meta .ext {
  font-family: "Nexa", sans-serif;
  font-size: 14px;
}

/* All cards — uniform dark style with gradient border */
.card-humber,
.card-barrie {
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(255, 255, 255, 0.12) 100%
      )
      border-box;
  border: 1px solid transparent;
  color: var(--paper);
}

.card-humber .work-tag,
.card-barrie .work-tag,
.card-humber .work-title,
.card-barrie .work-title,
.card-humber .work-meta,
.card-barrie .work-meta {
  color: var(--paper);
}

.card-humber .work-title .ital,
.card-barrie .work-title .ital {
  opacity: 0.78;
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .work-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 540px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
