/* ============================================================
   hubertanimates — clean rebuild
   Layout/theme stylesheet. Loaded AFTER styles.css (which only
   provides the @font-face declarations + Framer editor junk).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:          #0d0d0d;
  --bg-elev:     #141414;
  --surface:     #161616;
  --surface-2:   #1c1c1c;
  --border:      rgba(244, 245, 242, 0.08);
  --border-strong: rgba(244, 245, 242, 0.16);

  --text:        #f4f5f2;
  --muted:       #9ca0ac;
  --faint:       #6b6e78;

  --accent:      #ffa41c;
  --accent-2:    #ff6b35;
  --accent-soft: rgba(255, 164, 28, 0.12);

  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", "Inter Variable", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1400px;
  --radius:    18px;
  --radius-sm: 12px;

  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html body {                 /* override Framer's white fallback */
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #0d0d0d; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--tight { padding-block: 64px; }

@keyframes eyebrow-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before,
.page-cs .tag:not(.tag--accent)::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF9900;
  box-shadow: 0 0 12px rgba(255,107,53,0.8);
  flex-shrink: 0;
  animation: eyebrow-pulse 2s ease-in-out infinite;
}

.page-cs .tag:not(.tag--accent) {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Eyebrow with dot inline (between text) instead of ::before */
.eyebrow--no-dot::before,
.hero__eyebrow--no-dot::before { display: none; }
.pulse-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF9900;
  box-shadow: 0 0 12px rgba(255,107,53,0.8);
  animation: eyebrow-pulse 2s ease-in-out infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Revert meta stat labels — grey, stacked, no dot */
.page-cs .cs-meta .tag { color: var(--faint); display: block; margin-bottom: 6px; }
.page-cs .cs-meta .tag::before { display: none; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 16px; }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.lead { color: var(--muted); font-size: 18px; margin-top: 16px; }
.lead strong { color: var(--accent); font-weight: 500; }

/* Centered section header (pricing, etc.) */
.section-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--accent);
  color: #1a1206;
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.25);
}
.btn--primary:hover { background: #ffb547; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--text); background: rgba(244,245,242,0.04); }

.btn--block { width: 100%; justify-content: center; }

/* Cream pills: nav "Contact me" + hero "View projects" */
.btn--cream, .btn--contact {
  background: #f4f5f2;
  color: #0d0d0d;
  border: 0;
  font-family: "Geist", var(--font-body);
  font-weight: 400;
}
.btn--cream:hover, .btn--contact:hover { background: #cfccc6; }
.btn--contact svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--contact {
  gap: 9px;
  padding: 9px 18px;
  border-radius: 64px;
  overflow: hidden;
  font-size: 15px;
}

/* Dark pill: hero "For studios" */
.btn--dark {
  background: #0d0d0d;
  color: #f4f5f2;
  border: 1px solid rgba(244, 245, 242, 0.16);
}
.btn--dark:hover { background: #262626; border-color: rgba(244, 245, 242, 0.28); }

/* Hero buttons: icon sizing + eye swap on the cream button */
.btn--cream svg, .btn--dark svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn--cream .eye-open { display: none; }
.btn--cream:hover .eye-closed { display: none; }
.btn--cream:hover .eye-open { display: inline-block; }

.text-link {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .18s ease;
}
.text-link:hover { gap: 10px; }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Geist", var(--font-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand span { color: var(--accent); }

.nav__links { display: flex; align-items: center; justify-self: center; gap: 40px; }
.nav__links a { color: var(--text); font-size: 16px; transition: opacity .15s ease; }
.nav__links a:hover { opacity: 0.6; }

.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: left;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 1180px;
}

.hero__sub {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  max-width: 58ch;
  margin-top: 28px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__playground { margin-top: 64px; }
.hero__playground .rive-placeholder { aspect-ratio: 16 / 8; }

/* ============================================================
   Rive placeholders
   ============================================================ */
.rive-placeholder {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(255,164,28,0.06), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 160px;
}
.rive-placeholder::after {           /* shimmer sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: rive-shimmer 2.4s linear infinite;
  pointer-events: none;
}
.rive-placeholder__label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rive-placeholder__label::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
@keyframes rive-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Rive canvas (live animations — mirrors sizing rules of .rive-placeholder) */
.rive-canvas { display: block; width: 100%; height: 100%; background: transparent; touch-action: pan-y !important; }
.case-card__media .rive-canvas { min-height: 460px; }
.cs-block .rive-canvas { aspect-ratio: 16 / 9; height: auto; }
.cs-block--tall .rive-canvas { aspect-ratio: 16 / 10; height: auto; }
.proj-card__media .rive-canvas { aspect-ratio: 16 / 11; height: auto; min-height: 0; }
@media (max-width: 767px) { .case-card__media .rive-canvas { min-height: 320px; } }

/* ============================================================
   Projects
   ============================================================ */
/* Split section header (heading left, mono tagline right) */
.section-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: none;
}
.section-tagline {
  font-family: var(--font-mono);
  color: var(--muted);
  text-align: right;
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
  flex-shrink: 0;
}

/* Featured case-study card (body left, animation right) */
.case-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 24px;
  transition: border-color .2s ease;
}
.case-card:hover { border-color: var(--border-strong); }
.case-card__media { min-height: 460px; }
.case-card__media .rive-placeholder { height: 100%; border: 0; border-radius: 0; }
.case-card__body { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; text-decoration: none; color: inherit; }
.case-card__tagrow { display: flex; align-items: center; gap: 12px; }
.case-card__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.case-card__body p { color: var(--muted); max-width: 42ch; }

.badge {
  background: #f4f5f2;
  color: #0d0d0d;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 500;
}

/* Concept grid */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Bordered "concept work" panels */
.concept-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 40px;
  margin-top: 24px;
}
.concept-panel__head { text-align: center; margin-bottom: 36px; }
.concept-panel__head .eyebrow { margin-bottom: 14px; }
.concept-panel__head .h2 { font-size: clamp(30px, 5vw, 60px); }

/* 6-column card grids with asymmetric spans */
.card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fintech-grid > :nth-child(-n+3) { grid-column: span 2; }   /* row 1: three equal */
.fintech-grid > :nth-child(4) { grid-column: span 2; }      /* row 2: narrow + wide */
.fintech-grid > :nth-child(5) { grid-column: span 4; }
.concept-grid > :nth-child(1) { grid-column: span 2; }      /* row 1: narrow + wide */
.concept-grid > :nth-child(2) { grid-column: span 4; }
.concept-grid > :nth-child(n+3) { grid-column: span 2; }    /* row 2: three equal */
.card-grid .proj-card__media .rive-placeholder { aspect-ratio: auto; height: 300px; }
.card-grid .proj-card__media .rive-canvas { aspect-ratio: auto; height: 300px; }
.concept-grid .proj-card__media .rive-canvas { height: 400px; }

.tag.tag--accent { color: var(--accent); }

.proj-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #121212;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.proj-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.proj-card__media { background: #0d0d0d; }
.proj-card__media .rive-placeholder { border: 0; border-radius: 0; aspect-ratio: 16 / 11; min-height: 0; }
.proj-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; background: #121212; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.proj-card__body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.proj-card__body p { color: var(--muted); font-size: 15px; }

/* Fintech feature cards (smaller, denser) */
.feature-block { margin-top: 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}
.feature-card .rive-placeholder { border: 0; border-radius: 0; aspect-ratio: 16 / 10; min-height: 0; }
.feature-card__body { padding: 18px 20px 22px; }
.feature-card__body h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.feature-card__body p { color: var(--muted); font-size: 14px; }
.feature-card--wide { grid-column: span 1; }

/* ============================================================
   Pricing
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(244, 245, 242, 0.012);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.price-card--standard { border-color: rgba(244, 245, 242, 0.55); }
.price-card--centerpiece { border-color: rgba(255, 164, 28, 0.55); }
.price-card--centerpiece .price-card__name { color: var(--accent); }

.price-card__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #f4f5f2;
  color: #0d0d0d;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.price-card__name {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 22px;
}
.price-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.price-card__desc { color: var(--muted); font-size: 16px; line-height: 1.5; }
.price-features { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 48px; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--muted); }
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.price-note {
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.8;
}
.price-note a { color: var(--accent); }

/* ============================================================
   For Studios
   ============================================================ */
.studios-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: stretch; }
.studios-intro { display: flex; flex-direction: column; }
.studios-intro .eyebrow { margin-bottom: 20px; }
.studios-intro h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.studios-intro p {
  font-family: var(--font-display);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 22px;
}

/* Testimonial card */
.testimonial {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: border-color .2s ease;
}
.testimonial:hover { border-color: var(--border-strong); }
.testimonial > * { width: 100%; }
.testimonial .badge { width: auto; align-self: flex-start; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0;
}
.testimonial__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.testimonial__name { font-family: var(--font-mono); color: var(--muted); font-size: 15px; }
/* Meta row (guapa studio page quote) */
.testimonial__meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial__meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial__meta span { color: var(--muted); font-size: 14px; }

/* Featured full-width testimonial (guapa studio page) */
.testimonial--featured { display: block; padding: 48px; }
.testimonial__quotemark { font-family: var(--font-mono); font-size: 72px; line-height: 1; color: var(--accent); font-weight: 700; margin-bottom: 24px; }
.testimonial--featured blockquote { font-size: clamp(16px, 1.6vw, 22px); line-height: 1.55; max-width: none; margin-bottom: 0; }
.testimonial--featured .testimonial__meta { margin-top: 36px; gap: 16px; }
.testimonial--featured .testimonial__meta img { width: 52px; height: 52px; }
.testimonial--featured .testimonial__meta-text { display: flex; flex-direction: column; gap: 4px; }
.testimonial--featured .testimonial__meta-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text); }
.testimonial--featured .testimonial__meta-text span { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 170px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  min-height: 2.2em;
}
.step p { font-family: var(--font-mono); color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 26px; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.contact-card .tag { color: var(--accent); }
.contact-card__value { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; word-break: break-word; }
.contact-card p { color: var(--muted); font-size: 14px; }

.why {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 36px 40px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto 1fr 320px;
  gap: 40px;
  align-items: center;
}
.why__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.why h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.why p { color: var(--muted); }
.why__facts { display: flex; flex-direction: column; gap: 18px; }
.fact .tag { display: block; margin-bottom: 4px; }
.fact__value { font-family: var(--font-display); font-weight: 600; font-size: 18px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding-block: 80px 48px;
  margin-top: 0;
}
.footer__socials {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-bottom: 56px;
}
.footer__socials a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .15s ease;
}
.footer__socials a:hover { color: var(--accent); }
.footer__email {
  display: block;
  font-family: "Geist", var(--font-body);
  font-weight: 600;
  font-size: 90px;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 64px;
  transition: color .2s ease;
}
.footer__email:hover { color: var(--muted); }
.footer__brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
.footer__brand span { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Case study page (guapastudio)
   ============================================================ */
.cs-back { display: inline-flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.cs-back:hover { color: var(--text); }

.cs-hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(560px + var(--nav-h));
  padding-bottom: 64px;
  margin-top: calc(-1 * var(--nav-h));
}
.cs-hero-bg { position: absolute; top: var(--nav-h); left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% - var(--nav-h)); display: block; background: transparent; z-index: 0; opacity: 0.5; }
.cs-hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #0d0d0d 0%, transparent 10%),
    linear-gradient(to top,    #0d0d0d 0%, transparent 22%),
    linear-gradient(to right,  #0d0d0d 0%, transparent 10%),
    linear-gradient(to left,   #0d0d0d 0%, transparent 10%);
  z-index: 1;
  pointer-events: none;
}
.cs-hero-content { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 130px); }

.cs-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.cs-meta { display: grid; grid-template-columns: repeat(4, auto); gap: 48px; margin-top: 40px; }
.cs-meta .tag { display: block; margin-bottom: 6px; }
.cs-meta__value { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.cs-meta__value a { color: var(--accent); text-decoration: none; }

.cs-block { margin-top: 28px; }
.cs-block__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; max-width: 760px; }

/* Case study page — subheadings fill full container width, uniform 40px spacing */
.page-cs .section-head { max-width: none; margin-bottom: 40px; }
.page-cs .section-head .eyebrow { margin-bottom: 40px; }
.page-cs .section-head .h2 { margin-bottom: 40px; }
.page-cs .cs-block__head { max-width: none; gap: 40px; margin-bottom: 40px; }

/* 24px rounded frames on all animation canvases */
.page-cs .rive-canvas { border-radius: 24px; border: 1px solid var(--border); }
.page-cs .proj-card__media { border-radius: 24px; overflow: hidden; }
#rive-cs-mini-07 { transform: translateY(8px); }

/* Scroll-driven centerpiece */
.cs-scroll-wrapper { position: relative; height: 2700px; }
.cs-scroll-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
}
.cs-scroll-canvas {
  width: 100% !important;
  margin-inline: 0 !important;
  height: auto !important;
  aspect-ratio: 16 / 5.8 !important;
  border-radius: var(--radius);
}
.cs-block__head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.8vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.cs-block__head p { color: var(--muted); }
.cs-block .rive-placeholder { aspect-ratio: 16 / 9; }
.cs-block--tall .rive-placeholder { aspect-ratio: 16 / 10; }

/* Mini animations — outer cards sticky left/right */
.mini-scroll-zone { height: 900px; position: relative; }
.mini-cards-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.mini-cards-row > .proj-card { flex: 1; }
.mini-card-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* Centerpiece 03 — hero demo with copy overlay */
.cs-hero-demo {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.cs-demo-bg {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  border: 0 !important;
  aspect-ratio: unset !important;
}
.cs-demo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
  z-index: 2;
}
.cs-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(249, 88, 42, 0.15);
  border: 1px solid rgba(249, 88, 42, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-family: "Geist", var(--font-body);
  color: #FF6B1A;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}
.cs-demo-overlay h2 {
  font-family: "Geist", var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.cs-demo-overlay p {
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--text);
  line-height: 1.6;
}

.cs-process { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1099.98px) {
  .grid--3, .feature-grid, .cs-process { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .fintech-grid > *, .concept-grid > * { grid-column: span 1 !important; }
  .section-head--split { flex-wrap: wrap; }
  .case-card { grid-template-columns: 1fr; }
  .case-card__media { min-height: 320px; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .studios-top { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .why { grid-template-columns: auto 1fr; }
  .why__facts { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .section { padding-block: 64px; }
  /* Fix hamburger position: switch to flex so nav__cta stays on the right */
  .nav__inner { display: flex; justify-content: space-between; align-items: center; }
  .nav__links, .nav__cta .btn--contact { display: none; }
  .nav__toggle { display: inline-flex; }
  /* Scroll-driven centerpiece: full-screen portrait on mobile */
  .cs-scroll-sticky {
    top: 0;
    height: 100vh;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
  }
  .cs-scroll-sticky .cs-block__head { display: none; }
  .cs-scroll-canvas {
    width: 75vw !important;
    margin-inline: 0 !important;
    height: 75vh !important;
    aspect-ratio: unset !important;
    pointer-events: none;
    border-radius: 16px;
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav.is-open .nav__links a { padding: 14px 24px; }

  .case-card { grid-template-columns: 1fr; }
  .case-card__body { padding: 28px 24px; }
  .grid--3, .grid--2, .feature-grid, .steps, .cs-process { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .concept-panel { padding: 24px; }
  .section-tagline { text-align: left; margin-top: 4px; }
  .case-card__body { padding: 28px 24px; }
  .studios-top { grid-template-columns: 1fr; }
  .testimonial { grid-template-columns: 1fr; padding: 28px; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .footer__top { flex-direction: column; }
  .cs-demo-overlay { display: none; }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
/* Pre-hide all reveal targets before JS runs to prevent FOUC */
.hero__eyebrow,
.hero h1,
.hero__sub,
.hero__actions,
.cs-hero-content > *,
.section-head,
.concept-panel__head,
.case-card,
.proj-card,
.step,
.price-card,
.price-note,
.studios-intro,
.testimonial,
.contact-grid > *,
.why,
.cs-block,
.cs-meta {
  opacity: 0;
  transform: translateY(24px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__eyebrow, .hero h1, .hero__sub, .hero__actions,
  .cs-hero-content > *, .section-head, .concept-panel__head,
  .case-card, .proj-card, .step, .price-card, .price-note,
  .studios-intro, .testimonial, .contact-grid > *,
  .why, .cs-block, .cs-meta {
    opacity: 1; transform: none; transition: none;
  }
}
