/* Bytecrafts – mobile-first, dark theme, Toronto */

:root {
  --bg: #050505;
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space: clamp(1.25rem, 4vw, 3rem);
  --max: 1400px;
  /* Safe areas for notched devices */
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  --safe-right: env(safe-area-inset-right, 0);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

/* Touch-friendly tap targets */
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ----- Header (mobile-first) ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(var(--space), var(--safe-top)) max(1rem, var(--safe-left)) max(var(--space), var(--safe-bottom)) max(1rem, var(--safe-right));
  padding-right: max(1rem, var(--safe-right));
  max-width: var(--max);
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  transition: background 0.4s ease;
}

.header.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.logo {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
}

.logo-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  display: inline-block;
}

/* Desktop nav – hidden on mobile */
.nav {
  display: none;
}

.nav a {
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.nav-link-active {
  color: var(--fg);
}

.header-meta {
  display: none;
}

/* Hamburger button – visible on mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle:hover {
  transform: scale(1.05);
}

.nav-toggle:active {
  transform: scale(0.98);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.3s ease,
    width 0.3s ease;
}

.nav-toggle-line--1 { transform: translateY(0) rotate(0); }
.nav-toggle-line--2 { opacity: 1; transform: scaleX(1); }
.nav-toggle-line--3 { transform: translateY(0) rotate(0); }

/* Hamburger → X morph when open (body.nav-open set by JS) */
body.nav-open .nav-toggle-line--1 {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-line--2 {
  opacity: 0;
  transform: scaleX(0);
}

body.nav-open .nav-toggle-line--3 {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop: show nav + meta, hide hamburger */
@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .header-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
    color: var(--muted);
  }

  .nav-toggle {
    display: none;
  }
}

/* ----- Nav overlay (mobile full-screen) ----- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.4s ease, opacity 0.4s ease;
}

.nav-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.nav-overlay-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    var(--bg) 0%,
    #0a0a0c 35%,
    #0d0d12 70%,
    rgba(10, 12, 20, 0.98) 100%
  );
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-overlay.is-open .nav-overlay-bg {
  opacity: 1;
  transform: scale(1);
}

.nav-overlay-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  min-height: 100dvh;
  padding: max(6rem, 20vh) 1.5rem max(4rem, 15vh);
  padding-top: max(6rem, calc(20vh + var(--safe-top)));
  padding-bottom: max(4rem, calc(15vh + var(--safe-bottom)));
}

.nav-overlay-link {
  display: block;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--muted);
  padding: 0.5rem 0;
  margin: 0.25rem 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(24px);
  opacity: 0;
}

.nav-overlay.is-open .nav-overlay-link {
  transform: translateY(0);
  opacity: 1;
}

.nav-overlay-link:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay-link:nth-child(2) { transition-delay: 0.16s; }
.nav-overlay-link:nth-child(3) { transition-delay: 0.22s; }

/* GSAP controls animation when available */
.nav-overlay.nav-anim-gsap .nav-overlay-link,
.nav-overlay.nav-anim-gsap .nav-overlay-meta {
  transition: none;
}

.nav-overlay-link:hover,
.nav-overlay-link:focus-visible,
.nav-overlay-link-active {
  color: var(--fg);
  transform: translateY(0) scale(1.02);
}

.nav-overlay-meta {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.nav-overlay.is-open .nav-overlay-meta {
  opacity: 1;
  transform: translateY(0);
}

/* Hide overlay on desktop – desktop nav used instead */
@media (min-width: 900px) {
  .nav-overlay {
    display: none;
  }
}

/* ----- Hero (home) ----- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space) * 2) max(1.25rem, var(--safe-left)) calc(var(--space) * 2) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
}

.hero-mark-inner {
  display: block;
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  opacity: 0.95;
}

.hero-cta {
  position: relative;
  display: inline-block;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  margin-top: 2rem;
}

.hero-cta-text {
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-text--hover {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.hero-cta:hover .hero-cta-text:first-child {
  transform: translateY(-100%);
}

.hero-cta:hover .hero-cta-text--hover {
  transform: translateY(0);
}

/* ----- Intro / Work ----- */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 8rem) max(1.25rem, var(--safe-left)) clamp(3rem, 12vw, 8rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
}

.headline {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 0 clamp(4rem, 10vw, 6rem);
}

.headline .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.15;
  margin-right: 0.2em;
}

.headline .word {
  display: inline-block;
}

/* ----- Featured project ----- */
.featured-project {
  border-top: 1px solid var(--border);
  padding-top: clamp(2rem, 6vw, 4rem);
}

.featured-project-link {
  display: block;
  transition: opacity 0.2s ease;
}

.featured-project-link:hover {
  opacity: 0.9;
}

.featured-project-image-wrap {
  aspect-ratio: 4 / 3;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
}

.featured-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-project-link:hover .featured-project-image {
  transform: scale(1.02);
}

.featured-project-info {
  max-width: 36rem;
}

.featured-project-role {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5em;
}

.featured-project-name {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.featured-project-name .char {
  display: inline-block;
}

.featured-project-tagline {
  display: block;
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 1rem;
}

.featured-project-cta {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.featured-project-link:hover .featured-project-cta {
  opacity: 0.8;
}

/* ----- Studio ----- */
.studio {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 8rem) max(1.25rem, var(--safe-left)) clamp(3rem, 12vw, 8rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  border-top: 1px solid var(--border);
}

.studio-inner {
  max-width: 50ch;
}

.studio-title {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.studio-copy {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.studio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 3rem);
}

.studio-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.studio-stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.studio-stat-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ----- Tech ----- */
.tech {
  max-width: 100%;
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.tech-title {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  padding: 0 max(1.25rem, var(--safe-left)) 0 max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.tech-strip-wrap {
  display: flex;
  width: max-content;
  animation: tech-marquee 30s linear infinite;
}

.tech-strip-wrap:hover {
  animation-play-state: paused;
}

.tech-strip {
  display: flex;
  gap: clamp(2rem, 6vw, 4rem);
  width: max-content;
  flex-shrink: 0;
}

.tech-item {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

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

/* ----- Contact (home) ----- */
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 12vw, 8rem) max(1.25rem, var(--safe-left)) clamp(3rem, 12vw, 8rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  border-top: 1px solid var(--border);
}

.contact-simple {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 36rem;
}

.contact-simple-heading {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0;
}

.contact-simple-email {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}

.contact-simple-email:hover {
  opacity: 0.8;
}

.contact-simple-cta {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.contact-simple-cta:hover {
  color: var(--fg);
  letter-spacing: 0.12em;
}

.contact-simple-social {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  transition: color 0.2s ease;
}

.contact-simple-social:hover {
  color: var(--fg);
}

/* ----- Footer ----- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-bottom: max(clamp(2rem, 5vw, 3rem), calc(2rem + var(--safe-bottom)));
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 2rem;
}

.footer-top {
  display: flex;
  gap: 1.5rem;
}

.footer-top a {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-top a:hover {
  color: var(--fg);
}

.footer-mid {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-mid span {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  color: var(--muted);
}

.footer-email {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--fg);
}

.footer-brand {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-name {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 500;
}

.footer-brand-tag {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  color: var(--muted);
}

.footer-year {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ----- Scroll progress ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
  z-index: 101;
  transform-origin: left;
  transform: scaleX(0);
}

/* ========== Services page ========== */
.page-services main {
  padding-top: 0;
}

.services-hero {
  min-height: min(85vh, 100dvh);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 14vw, 10rem) max(1.25rem, var(--safe-left)) clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  padding-top: max(clamp(5rem, 12vw, 7rem), calc(var(--safe-top) + 4rem));
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.services-hero-label {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.services-hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 0 1.5rem;
}

.services-hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.1;
  margin-right: 0.15em;
}

.services-hero-title .word {
  display: inline-block;
}

.services-hero-copy {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

.section-label {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

/* ----- Pricing ----- */
.pricing {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-left)) clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  border-bottom: 1px solid var(--border);
}

.pricing .section-label {
  padding: 0;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  perspective: 1400px;
  width: 100%;
}

.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translateY(0) scale(1) rotateX(0) rotateY(0);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.5s ease,
    box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0),
    0 4px 24px -8px rgba(0, 0, 0, 0.25);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

.pricing-card-featured {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 32px -8px rgba(0, 0, 0, 0.3);
}

.pricing-card-featured:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 28px 56px -12px rgba(0, 0, 0, 0.4),
    0 0 100px -16px rgba(255, 255, 255, 0.08);
}

.pricing-card-inner {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-card:hover .pricing-card-inner {
  transform: translateY(-2px);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  left: auto;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.pricing-tier {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.pricing-card-featured .pricing-tier {
  margin-top: 0.5rem;
}

.pricing-desc {
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.5rem;
  flex: 1;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pricing-note {
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  color: var(--muted);
  margin-left: 0.25rem;
}

.pricing-includes {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: clamp(0.875rem, 1.7vw, 0.9375rem);
  line-height: 1.6;
  color: var(--muted);
}

.pricing-includes li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}

.pricing-cta {
  position: relative;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: auto;
  padding: 0.75rem 0;
  color: var(--muted);
  background: none;
  border: none;
  transition: color 0.35s ease, letter-spacing 0.35s ease;
}

.pricing-cta::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-cta:hover {
  color: var(--fg);
  letter-spacing: 0.14em;
}

.pricing-cta:hover::after {
  width: 100%;
}

.pricing-disclaimer {
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* ----- Service detail (services page) ----- */
.service-detail-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-left)) clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  border-bottom: 1px solid var(--border);
}

.service-detail-list .section-label {
  padding: 0;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-number {
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.8;
}

.service-detail-content {
  max-width: 52ch;
}

.service-detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.service-detail-lead {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.5;
  color: var(--fg);
  margin: 0 0 1rem;
}

.service-detail-desc {
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.service-detail-list-inner {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  color: var(--muted);
  line-height: 1.6;
}

.service-detail-list-inner li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-detail-list-inner li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}

/* ----- Process ----- */
.process {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-left)) clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  border-bottom: 1px solid var(--border);
}

.process .section-label {
  padding: 0;
  margin-bottom: 1rem;
}

.process-intro {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 clamp(3rem, 6vw, 4rem);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: clamp(1.25rem, 4vw, 2rem) 0;
  border-bottom: 1px solid var(--border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--muted);
  opacity: 0.6;
  line-height: 1;
}

.process-step-title {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.process-step-desc {
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.process-step-duration {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}

.process-questionnaire {
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--border);
}

.process-questionnaire-title {
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  color: var(--fg);
}

.process-questionnaire-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  line-height: 1.65;
  color: var(--muted);
}

.process-questionnaire-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 1rem;
}

.process-questionnaire-list li:last-child {
  margin-bottom: 0;
}

.process-questionnaire-list strong {
  color: var(--fg);
  font-weight: 500;
}

/* ----- Services CTA ----- */
.services-cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) max(1.25rem, var(--safe-left)) clamp(4rem, 12vw, 8rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  text-align: left;
}

.services-cta-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.services-cta-headline .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.1;
  margin-right: 0.2em;
}

.services-cta-headline .word {
  display: inline-block;
}

.services-cta-copy {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 2rem;
}

.services-cta-link {
  position: relative;
  display: inline-block;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}

.services-cta-link-text {
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-cta-link-text--hover {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(100%);
}

.services-cta-link:hover .services-cta-link-text:first-child {
  transform: translateY(-100%);
}

.services-cta-link:hover .services-cta-link-text--hover {
  transform: translateY(0);
}

/* ========== Contact page ========== */
.page-contact main {
  padding-top: 0;
}

.contact-hero {
  min-height: min(75vh, 100dvh);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 14vw, 10rem) max(1.25rem, var(--safe-left)) clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
  padding-top: max(clamp(5rem, 12vw, 7rem), calc(var(--safe-top) + 4rem));
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.contact-hero-label {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.contact-hero-title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 0 1.5rem;
}

.contact-hero-title .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.1;
  margin-right: 0.15em;
}

.contact-hero-title .word {
  display: inline-block;
}

.contact-hero-copy {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}

.contact-page-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-left)) clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-right));
  padding-left: max(1.25rem, var(--safe-left));
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Contact form card: pops out so it's clearly the contact form */
.contact-form-card {
  max-width: 32rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.contact-form-card-inner {
  /* spacing handled by children */
}

.contact-form-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--fg);
}

.contact-form-teaser {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.contact-form-email-link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.contact-form-email-link:hover {
  opacity: 0.85;
}

.contact-success-msg {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.contact-field {
  width: 100%;
  margin-bottom: 1.5rem;
}

.contact-field-full {
  width: 100%;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-input {
  width: 100%;
  padding: 0.75rem 0 0.5rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.3s ease, color 0.3s ease;
  appearance: none;
}

.contact-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.contact-input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.contact-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.contact-textarea {
  min-height: 120px;
  resize: vertical;
  padding-bottom: 0.5rem;
}

.contact-submit {
  margin-top: 0.5rem;
  position: relative;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: color 0.35s ease, letter-spacing 0.35s ease;
}

.contact-submit::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-submit:hover {
  color: var(--fg);
  letter-spacing: 0.14em;
}

.contact-submit:hover::after {
  width: 100%;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-info-block {
  padding-top: 0.25rem;
}

.contact-info-title {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.contact-info-item {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  margin: 0 0 0.75rem;
  color: var(--fg);
}

.contact-info-email {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.contact-info-email:hover {
  opacity: 0.8;
}

.contact-info-location {
  color: var(--muted);
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.contact-social-link {
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.contact-social-link:hover {
  color: var(--fg);
}

/* ----- Responsive: mobile-first enhancements ----- */

/* Slightly wider hero on small tablets */
@media (min-width: 480px) {
  .featured-project-image-wrap {
    aspect-ratio: 16 / 10;
  }

  .pricing-grid {
    gap: 1.5rem;
  }
}

/* Tablets & small laptops */
@media (min-width: 600px) {
  .services-hero,
  .contact-hero {
    padding-left: max(1.5rem, var(--safe-left));
    padding-right: max(1.5rem, var(--safe-right));
  }

  .footer-mid {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Desktop: multi-column layouts */
@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .pricing-card-featured {
    order: 0;
  }

  .service-detail {
    grid-template-columns: auto 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .service-detail-number {
    position: sticky;
    top: calc(var(--space) + 2rem);
  }

  .process-step {
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .contact-field {
    width: calc(50% - 0.75rem);
  }

  .contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
  }
}

/* Full desktop */
@media (min-width: 900px) {
  .header {
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }

  .footer {
    grid-template-columns: auto 1fr auto;
    align-items: end;
  }

  .footer-brand {
    text-align: right;
    align-items: flex-end;
  }

  .contact-page-content {
    grid-template-columns: 1fr auto;
    gap: clamp(3rem, 8vw, 6rem);
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }
}

/* Wide screens: 3-col pricing — equal columns, no blank gap */
@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    align-items: stretch;
  }

  .featured-project-image-wrap {
    aspect-ratio: 21 / 9;
  }

  .services-hero {
    min-height: 85vh;
  }

  .contact-hero {
    min-height: 75vh;
  }
}

/* Large screens: polish */
@media (min-width: 1280px) {
  .intro,
  .studio,
  .contact,
  .pricing,
  .service-detail-list,
  .process,
  .services-cta {
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }
}

/* ================================================================
   HOME v2 — hero, work, studio
   ================================================================ */

/* Shared tag label */
.tag-label {
  display: inline-block;
  font-size: clamp(0.6875rem, 1.4vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Hero v2 ---- */
.hv2 {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    max(5.5rem, calc(4rem + var(--safe-top)))
    max(1.25rem, var(--safe-right))
    max(2.5rem, calc(2rem + var(--safe-bottom)))
    max(1.25rem, var(--safe-left));
  max-width: var(--max);
  margin: 0 auto;
}

/* Eyebrow row */
.hv2-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hv2-eyebrow-item {
  font-size: clamp(0.6875rem, 1.4vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Center: big title + ghost mark */
.hv2-body {
  position: relative;
  display: flex;
  align-items: center;
}

.hv2-title {
  font-size: clamp(3.75rem, 11.5vw, 10.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  position: relative;
  z-index: 1;
}

.hv2-line {
  display: block;
  overflow: hidden;
}

.hv2-word {
  display: block;
}

.hv2-mark {
  position: absolute;
  right: -0.05em;
  font-size: clamp(5rem, 22vw, 20rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* Bottom row */
.hv2-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hv2-sub {
  font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 32ch;
  margin: 0;
}

.hv2-cta {
  position: relative;
  display: inline-block;
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  height: 1.4em;
  flex-shrink: 0;
}

.hv2-cta-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hv2-cta:hover .hv2-cta-inner {
  transform: translateY(-50%);
}

.hv2-cta-inner span {
  display: block;
  line-height: 1.4;
}

/* ---- Work v2 ---- */
.wv2 {
  border-top: 1px solid var(--border);
}

.wv2-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) max(1.25rem, var(--safe-left));
  padding-right: max(1.25rem, var(--safe-right));
}

.wv2-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.wv2-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.wv2-card {
  display: block;
  transition: opacity 0.25s ease;
}

.wv2-card:hover {
  opacity: 0.88;
}

.wv2-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.wv2-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wv2-card:hover .wv2-card-img {
  transform: scale(1.03);
}

.wv2-card-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wv2-card-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.wv2-card-name {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.wv2-card-role {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.wv2-card-right {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wv2-card-tagline {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}

.wv2-card-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .wv2-card-img-wrap {
    aspect-ratio: 21 / 9;
  }
}

@media (min-width: 768px) {
  .wv2-card-info {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
  }

  .wv2-card-left {
    flex: 1;
  }

  .wv2-card-right {
    flex: 0 0 38%;
    align-items: flex-end;
    text-align: right;
  }

  .wv2-card-tagline {
    max-width: 36ch;
  }
}

/* ---- Studio v2 ---- */
.sv2 {
  border-top: 1px solid var(--border);
}

.sv2-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-left)) clamp(5rem, 14vw, 9rem);
  padding-right: max(1.25rem, var(--safe-right));
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
}

.sv2-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sv2-copy {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: var(--fg);
  max-width: 54ch;
  margin: 0;
}

.sv2-right {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 4rem);
}

.sv2-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sv2-stat-value {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sv2-stat-label {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

@media (min-width: 768px) {
  .sv2-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(4rem, 10vw, 8rem);
  }

  .sv2-left {
    flex: 1;
    min-width: 0;
  }

  .sv2-right {
    flex-direction: column;
    flex: 0 0 auto;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: flex-end;
    text-align: right;
  }

  .sv2-stat {
    align-items: flex-end;
  }
}

/* Wide screen padding */
@media (min-width: 1280px) {
  .hv2,
  .wv2-inner,
  .sv2-inner {
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }
}

/* ================================================================
   FOOTER — legal links
   ================================================================ */

.footer-legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.footer-legal a {
  font-size: clamp(0.75rem, 1.4vw, 0.8125rem);
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a[aria-current="page"] {
  color: var(--fg);
}

/* ================================================================
   LEGAL PAGES — privacy.html, terms.html
   ================================================================ */

.page-legal main {
  padding-top: 0;
}

.legal-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: max(clamp(5rem, 12vw, 7rem), calc(var(--safe-top) + 4rem)) max(1.25rem, var(--safe-left)) clamp(3rem, 8vw, 5rem);
  padding-right: max(1.25rem, var(--safe-right));
  border-bottom: 1px solid var(--border);
}

.legal-hero-label {
  font-size: clamp(0.6875rem, 1.4vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.legal-hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

.legal-hero-meta {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--muted);
  margin: 0;
}

.legal-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) max(1.25rem, var(--safe-left)) clamp(4rem, 10vw, 7rem);
  padding-right: max(1.25rem, var(--safe-right));
}

.legal-content {
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-heading {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}

.legal-block p {
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.legal-block a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.legal-block a:hover {
  opacity: 0.75;
}

.legal-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-block ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  line-height: 1.6;
  color: var(--muted);
}

.legal-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}

@media (min-width: 1280px) {
  .legal-hero,
  .legal-body {
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }
}

/* ---- FAQ section (SEO / GEO) ---- */
.faq-section {
  border-top: 1px solid var(--border);
}

.faq-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 10vw, 6rem) max(1.25rem, var(--safe-left)) clamp(5rem, 14vw, 9rem);
  padding-right: max(1.25rem, var(--safe-right));
}

.faq-section .section-label {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.faq-item {
  max-width: 54ch;
}

.faq-q {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.faq-a {
  font-size: clamp(0.9375rem, 1.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.faq-a a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.faq-a a:hover {
  color: var(--muted);
}

@media (min-width: 1280px) {
  .faq-inner {
    padding-left: clamp(1.5rem, 5vw, 4rem);
    padding-right: clamp(1.5rem, 5vw, 4rem);
  }
}
