/* ============================================
   SuRo Labs — Global Stylesheet
   ============================================ */

/* --- Terminal Loader --- */
@keyframes loaderBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hagrid-display {
  font-family: 'HagridText', 'Space Grotesk', sans-serif;
  font-size: clamp(6rem, 20vw, 14rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.terminal-text {
  font-family: 'Space Grotesk', monospace;
}

.cursor-blink {
  display: inline-block;
  width: 12px;
  height: 2px;
  background-color: var(--blue);
  box-shadow: 0 0 8px rgba(0, 34, 255, 0.3);
  margin-left: 4px;
  vertical-align: middle;
}

.scanline-overlay {
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 34, 255, 0.02) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

.glitch-tint {
  background: radial-gradient(circle at 50% 50%, rgba(0, 34, 255, 0.03) 0%, transparent 80%);
}

/* --- Font Faces --- */
@font-face {
  font-family: 'HagridText';
  src: url('/assets/fonts/HagridText.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'AboveTheBeyond';
  src: url('/assets/fonts/AboveTheBeyond.woff2') format('woff2');
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --white: #FFFFFF;
  --off-white: #F2F2F2;
  --black: #000000;
  --blue: #0022FF;
  --bg: #F0F2FF;
  --text: #000000;
  --text-muted: #666666;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 34, 255, 0.15);
  --navbar-bg: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(255, 255, 255, 0.6);
  --transition-speed: 0.4s;
}

.dark {
  --bg: #000000;
  --text: #FFFFFF;
  --text-muted: #999999;
  --glass-bg: rgba(0, 0, 0, 0.6);
  --glass-border: rgba(0, 34, 255, 0.25);
  --navbar-bg: rgba(0, 0, 0, 0.6);
  --card-bg: rgba(20, 20, 20, 0.7);
}

/* --- Global Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  overflow-x: hidden;
  cursor: none;
}

section {
  position: relative;
  z-index: 1;
}

/* --- Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.dark body::after {
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hovering {
  width: 48px;
  height: 48px;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
}

/* --- Canvas Background --- */
#blob-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* --- Navbar (floating pill) --- */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 860px;
  min-width: 600px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: background var(--transition-speed) ease,
    border var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.dark .navbar {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.dark .navbar.scrolled {
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: 'HagridText', system-ui;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 0.85rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--blue);
  transform: scale(1.05);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger — hidden on desktop */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

/* Mobile Nav Dropdown — hidden by default */
.mobile-nav-dropdown {
  display: none;
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: calc(100% - 32px);
  max-width: 400px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 12px 0;
  z-index: 999;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dark .mobile-nav-dropdown {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-dropdown.is-open {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: 'HagridText', system-ui;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 12px 24px;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--blue);
  background: rgba(0, 34, 255, 0.06);
}

/* --- Buttons --- */
.lets-talk-btn,
.cta-button {
  font-family: 'HagridText', system-ui;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.15s ease;
  display: inline-block;
  white-space: nowrap;
}

.lets-talk-btn {
  padding: 8px 24px;
  font-size: 0.9rem;
}

.cta-button {
  padding: 16px 48px;
  font-size: 1.25rem;
  font-weight: bold;
  border-width: 2px;
}

.lets-talk-btn:hover,
.cta-button:hover {
  background: var(--blue);
  color: #fff;
}

.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-speed) ease;
  color: var(--text);
}

/* --- Hero --- */
.hero-section {
  position: relative;
  margin: 0;
  padding: 0;
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#hero-canvas {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.scroll-dot {
  flex-shrink: 0;
  animation: arrowBounce 1.2s ease-in-out infinite;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.showreel-section {
  padding: 80px clamp(1rem, 6vw, 6rem);
}

.showreel-label {
  font-family: 'HagridText', system-ui;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text);
  opacity: 0.5;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.showreel-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
}

.showreel-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.scroll-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--text-muted);
}

@keyframes dotPulse {

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

  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

/* --- Pain Point --- */
.pain-section {
  position: relative;
  padding: 15vh clamp(1rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  overflow: hidden;
}

.pain-line {
  font-family: 'HagridText', system-ui;
  font-size: clamp(1.8rem, 5vw, 4rem);
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  transition: color var(--transition-speed) ease;
}

.pain-line--blue {
  color: var(--blue);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
}

.word-reveal {
  display: inline-block;
  opacity: 0.15;
}

/* --- Services --- */
.services-section {
  padding: 80px 40px 30px;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: 'HagridText', system-ui;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--text);
  opacity: 0.5;
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.section-label em {
  font-family: 'AboveTheBeyond', cursive;
  font-style: normal;
  color: var(--blue);
  opacity: 1;
  font-size: 1.3em;
}

/* ── Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

/* ── Default card — vertical portrait rectangle ── */
.service-card {
  border-radius: 20px;
  overflow: visible;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 2px solid var(--blue);
  box-shadow: 0 4px 24px rgba(0, 34, 255, 0.06);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}

html.dark .service-card {
  background: rgba(10, 10, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--blue);
  box-shadow: 0 4px 32px rgba(0, 34, 255, 0.12);
}

/* Hover — subtle scale only, no translateY */
.service-card:not(.is-expanded):hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 34, 255, 0.12);
}

/* ── Card image preview — portrait crop ── */
.card-preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  flex-shrink: 0;
}

.card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:not(.is-expanded):hover .card-preview img {
  transform: scale(1.04);
}

/* ── Card text area ── */
.card-meta {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-number {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.card-title {
  font-family: 'HagridText', system-ui;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.card-tagline {
  font-size: 13px;
  color: var(--text);
  opacity: 0.55;
  margin: 0;
  line-height: 1.5;
}

.card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0;
  justify-content: flex-start;
}

/* ── Expanded content — hidden by default ── */
.card-expanded-content {
  display: none;
  padding: 0 20px 24px;
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-features li {
  font-size: 14px;
  color: var(--text);
  opacity: 0.75;
  padding-left: 20px;
  position: relative;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ── Close button — sits top-right of card, ABOVE card edge ── */
.card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 34, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

html.dark .card-close {
  background: rgba(20, 20, 20, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-close:hover {
  background: var(--blue);
  color: white;
  transform: scale(1.1);
}

/* ════════════════════════════════════
   EXPANDED STATE — teleport to top
   ════════════════════════════════════ */

/* When grid has an expanded card, expanded card goes to row 1, full width */
.service-card.is-expanded {
  grid-row: 1;
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 500px;
  height: auto;
  cursor: default;
}

.service-card.is-expanded .card-preview {
  width: 42%;
  min-width: 42%;
  aspect-ratio: unset;
  height: auto;
  align-self: stretch;
  border-radius: 18px 0 0 18px;
  flex-shrink: 0;
}

.service-card.is-expanded .card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.service-card.is-expanded .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 40px;
}

.service-card.is-expanded .card-meta {
  padding: 0;
  gap: 10px;
}

.service-card.is-expanded .card-title {
  font-size: clamp(24px, 3vw, 40px);
}

.service-card.is-expanded .card-tagline {
  font-size: 15px;
  opacity: 0.65;
  margin-bottom: 16px;
}

.service-card.is-expanded .card-expanded-content {
  display: block;
  padding: 0;
}

/* Pill becomes normal card in grid when something is expanded */
.services-grid.has-expanded .service-card--pill {
  grid-column: span 1;
  grid-row: unset;
}

/* ── Pill card — default (full width) ── */
.service-card--pill {
  grid-column: 1 / -1;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  height: auto;
  min-height: 100px;
}

.card-preview--pill {
  display: none;
}

/* When pill becomes a card (grid has-expanded), show its image */
.services-grid.has-expanded .service-card--pill {
  flex-direction: column;
  height: auto;
}

.services-grid.has-expanded .card-preview--pill {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 18px 18px 0 0;
}

/* Pill default horizontal layout */
.service-card--pill .card-meta {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  flex: 1;
}

.service-card--pill .card-meta .card-number {
  font-size: 13px;
  flex-shrink: 0;
}

.service-card--pill .card-meta .card-title {
  font-size: clamp(16px, 2vw, 22px);
  white-space: nowrap;
}

/* When pill is in card mode, stack vertically */
.services-grid.has-expanded .service-card--pill .card-meta {
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 12px;
  gap: 5px;
}

.services-grid.has-expanded .service-card--pill .card-meta .card-title {
  white-space: normal;
  font-size: clamp(16px, 1.8vw, 22px);
}

.script-accent {
  font-family: 'AboveTheBeyond', cursive;
  font-style: normal;
  color: var(--blue);
  font-size: 1.15em;
}

.pill-cta-wrap {
  padding: 0 32px 0 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.services-grid.has-expanded .pill-cta-wrap {
  padding: 0 20px 20px;
}

.pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  font-family: 'HagridText', system-ui;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}

.pill-cta:hover {
  opacity: 0.85;
  transform: translateX(4px);
}


/* ── Services Mobile ── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.is-expanded {
    grid-column: span 1;
    flex-direction: column;
    height: auto;
  }

  .service-card.is-expanded .card-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 18px 18px 0 0;
  }

  .service-card--pill {
    flex-direction: column;
  }

  .service-card--pill .card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .pill-cta-wrap {
    padding: 0 20px 20px;
  }
}

/* --- About & Ethos --- */
.about-section {
  position: relative;
  padding: 4vh clamp(1rem, 4vw, 4rem);
  overflow: hidden;
}

.founders-img {
  width: 90vw;
  max-width: 1200px;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
}

.about-headline {
  font-family: 'HagridText', system-ui;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  text-align: center;
  max-width: 900px;
  margin: 4rem auto 4rem;
  line-height: 1.3;
  transition: color var(--transition-speed) ease;
  position: relative;
  z-index: 2;
}

.about-body {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--transition-speed) ease;
}

.founder-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 6rem auto;
}

.founder-row--reverse {
  flex-direction: row-reverse;
}

.founder-img-wrap {
  flex: 0 0 40%;
  max-width: 40vw;
}

.founder-img-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
}

.founder-quote {
  flex: 1;
  font-family: 'HagridText', system-ui;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  transition: color var(--transition-speed) ease;
}

.founder-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-style: normal;
  color: var(--text-muted);
  transition: color var(--transition-speed) ease;
}

/* Ethos */
.ethos-section {
  padding: 8vh clamp(1rem, 4vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

.ethos-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 3rem;
  transition: color var(--transition-speed) ease;
}

.ethos-value {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
  cursor: default;
  transition: color 0.3s ease;
}

.ethos-value:hover {
  color: var(--blue);
}

.ethos-value h3 {
  font-family: 'HagridText', system-ui;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.ethos-value h3 span {
  color: var(--text-muted);
  font-size: 1rem;
  font-family: 'Inter', system-ui;
}

.ethos-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0;
}

.ethos-value:hover .ethos-desc {
  max-height: 60px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* --- CTA --- */
.cta-section {
  position: relative;
  padding: 20vh clamp(1rem, 4vw, 4rem);
  text-align: center;
  overflow: hidden;
}

.cta-headline {
  font-family: 'HagridText', system-ui;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  transition: color var(--transition-speed) ease;
}

.cta-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  transition: color var(--transition-speed) ease;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-links a {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 9999;
  transition: color var(--transition-speed) ease;
}


/* --- Reveal Animations --- */
f.reveal-section {
  filter: blur(4px);
  opacity: 0;
  transform: translateY(40px);
}

/* --- Responsive --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .custom-cursor,
  .cursor-dot {
    display: none;
  }

  body {
    cursor: auto;
  }
}

@media (max-width: 768px) {

  /* Cursor off on touch */
  .custom-cursor,
  .cursor-dot {
    display: none;
  }

  body {
    cursor: auto;
  }

  /* ── NAVBAR ── */
  .navbar {
    min-width: unset;
    width: calc(100% - 32px);
    padding: 10px 16px;
    gap: 0;
  }

  .nav-links {
    display: none;
  }

  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* hidden — no links, no overflow */
  .lets-talk-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
  }

  /* ── PAIN ── */
  .pain-section {
    padding: 10vh 1.5rem;
    min-height: 60vh;
  }

  /* ── SERVICES ── */
  .services-section {
    padding: 60px 16px 80px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.is-expanded {
    grid-column: span 1;
    flex-direction: column;
    height: auto;
  }

  .service-card.is-expanded .card-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 18px 18px 0 0;
  }

  .service-card.is-expanded .card-meta {
    padding: 20px 16px 12px;
  }

  .service-card.is-expanded .card-expanded-content {
    padding: 0 16px 20px;
  }

  .service-card--pill {
    flex-direction: column;
  }

  .service-card--pill .card-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .pill-cta-wrap {
    padding: 0 20px 20px;
  }

  /* ── ABOUT ── */
  .about-section {
    padding: 8vh 1.5rem;
  }

  .founders-img {
    width: 100%;
    border-radius: 16px;
  }

  .about-headline {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin: 2.5rem auto 1.5rem;
  }

  .about-body {
    font-size: 1rem;
  }

  .founder-row,
  .founder-row--reverse {
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem auto;
  }

  .founder-img-wrap {
    flex: unset;
    max-width: 80vw;
  }

  .founder-quote {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  /* ── ETHOS ── */
  .ethos-section {
    padding: 6vh 1.5rem;
  }

  /* ── CTA ── */
  .cta-section {
    padding: 12vh 1.5rem;
  }

  .cta-headline {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .cta-sub {
    font-size: 1rem;
  }

  .cta-button {
    padding: 14px 36px;
    font-size: 1.1rem;
  }

  .social-links {
    gap: 1.2rem;
  }
}