/* VoiceSynth — Waveform Room */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Inter:wght@400;600&family=Schibsted+Grotesk:wght@500;700&display=swap');

:root {
  --booth: #111013;
  --charcoal: #201C22;
  --bone: #EFEBE6;
  --coral: #FF5D73;
  --grey: #8C8790;
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --space-section: clamp(5.5rem, 10vw, 8rem);
  --shadow-deep: 0 24px 64px rgba(17, 16, 19, 0.45);
  --transition: 0.35s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}
h1 { font-size: clamp(2.75rem, 5vw, 5.25rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; }
p { margin: 0 0 1.25rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: 0.5rem; }

/* Surface system */
.surface-booth { background-color: var(--booth); color: var(--bone); }
.surface-bone { background-color: var(--bone); color: var(--booth); }
.surface-charcoal { background-color: var(--charcoal); color: var(--bone); }
.surface-coral { background-color: var(--coral); color: var(--booth); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.hairline {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.25;
  margin: 0;
}

/* Grain overlay */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Waveform motif */
.waveform-line {
  display: block;
  width: 100%;
  height: 48px;
  overflow: visible;
}
.waveform-line path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.js .waveform-line path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.4s ease;
}
.js .waveform-line.is-drawn path { stroke-dashoffset: 0; }

.level-ticks {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 12px;
}
.level-ticks span {
  display: block;
  width: 2px;
  background: var(--coral);
  opacity: 0.6;
}
.level-ticks span:nth-child(1) { height: 4px; }
.level-ticks span:nth-child(2) { height: 8px; }
.level-ticks span:nth-child(3) { height: 6px; }
.level-ticks span:nth-child(4) { height: 10px; }
.level-ticks span:nth-child(5) { height: 5px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition), color var(--transition);
}
.site-header.is-transparent {
  background: transparent;
  color: var(--bone);
}
.site-header.is-sticky {
  background-color: var(--bone);
  color: var(--booth);
  box-shadow: 0 1px 0 rgba(17, 16, 19, 0.08), var(--shadow-deep);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, 92vw);
  margin-inline: auto;
  padding: 1.1rem 0;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--coral);
  color: var(--booth);
  font-size: 0.85rem;
  border-radius: 2px;
}
.site-header.is-transparent .logo-mark { background: var(--coral); }
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.main-nav a:hover { text-decoration: underline; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}
.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid currentColor;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 2px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background-color: var(--coral);
  color: var(--booth);
  border-color: var(--coral);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(255, 93, 115, 0.35);
}
.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-secondary:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Hero — THE BOOTH */
.hero-booth {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-booth__bg {
  position: absolute;
  inset: 0;
  background: url('/images/voicesynthai-01-hero-studio.jpg') center/cover no-repeat;
  z-index: 0;
}
.hero-booth__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,16,19,0.55) 0%, rgba(17,16,19,0.82) 55%, rgba(17,16,19,0.95) 100%);
  z-index: 1;
}
.hero-booth__glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: radial-gradient(ellipse at 30% 100%, rgba(255,93,115,0.18) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}
.hero-booth__topbar {
  position: relative;
  z-index: 3;
  padding-top: 7.5rem;
  padding-bottom: 1.25rem;
}
.hero-booth__topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}
.hero-booth__content {
  position: relative;
  z-index: 3;
  padding-bottom: 4rem;
  max-width: 640px;
}
.hero-booth__slogan em {
  font-style: normal;
  position: relative;
  display: inline;
}
.hero-booth__slogan em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 3px;
  background: var(--coral);
  transform-origin: left;
}
.js .hero-booth__slogan em::after {
  transform: scaleX(0);
  animation: underline-draw 1.2s ease 0.4s forwards;
}
@keyframes underline-draw { to { transform: scaleX(1); } }
.hero-booth__sub {
  max-width: 540px;
  opacity: 0.86;
  font-size: 1.1rem;
}
.hero-booth__trust {
  position: relative;
  z-index: 3;
  padding: 1rem 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--grey);
  border-top: 1px solid rgba(239,235,230,0.2);
}
.hero-booth__waveform {
  position: absolute;
  bottom: 3.5rem;
  left: 0;
  right: 0;
  z-index: 2;
  opacity: 0.5;
  pointer-events: none;
}

/* Cards & grids */
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  padding: 2rem;
  border-radius: 2px;
  position: relative;
  box-shadow: var(--shadow-deep);
}
.card--float { transform: translateY(0); transition: transform var(--transition); }
.card--float:hover { transform: translateY(-4px); }
.card__numeral {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 5rem);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}

.photo-frame {
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-frame--wide img { aspect-ratio: 16/10; }

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 3rem 0;
}
.metric__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--coral);
  font-weight: 500;
  display: block;
}
.metric__label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.stages { counter-reset: stage; }
.stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(239,235,230,0.12);
}
.stage__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--coral);
  letter-spacing: 0.12em;
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--grey);
  border-radius: 2px;
  background: #fff;
  color: var(--booth);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.form-hint {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 0.35rem;
}
.form-hint.is-error { color: #c41e3a; }
.form-hint.is-valid { color: #2d6a4f; }
.checkbox-group {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.checkbox-group input { width: auto; margin-top: 0.25rem; }
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding: var(--space-section) 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 3rem;
}
.footer-grid h3 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 500;
}
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.65rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-disclaimer {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
  padding-top: 2rem;
  border-top: 1px solid rgba(239,235,230,0.15);
}
.footer-meta {
  margin-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.7;
  font-family: var(--font-mono);
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero__lead { max-width: 640px; font-size: 1.15rem; opacity: 0.9; }

/* Work / project cards */
.project-card {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 3rem;
}
.project-card:nth-child(even) .project-card__media { order: 2; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

/* FAQ */
.faq-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(17,16,19,0.12);
}
.surface-booth .faq-item,
.surface-charcoal .faq-item { border-color: rgba(239,235,230,0.15); }
.faq-item h3 { margin-bottom: 0.75rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 1.5rem;
  box-shadow: 0 -8px 32px rgba(17,16,19,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  width: min(1160px, 92vw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner__text { flex: 1; min-width: 260px; font-size: 0.9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookie-banner__actions .btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; }

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(17,16,19,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-modal.is-open { display: flex; }
.cookie-modal__panel {
  width: min(520px, 100%);
  padding: 2rem;
  border-radius: 2px;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(17,16,19,0.1);
}

/* Reveal animations */
.js .reveal {
  opacity: 1;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

/* Legal prose */
.legal-prose h2 { margin-top: 2.5rem; }
.legal-prose h2:first-child { margin-top: 0; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: var(--space-section) 0;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 520px; margin-inline: auto  auto; opacity: 0.9; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: none; }
  .js .hero-booth__slogan em::after { animation: none; transform: scaleX(1); }
  .js .waveform-line path { stroke-dashoffset: 0; transition: none; }
  .hero-booth__bg { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Ken burns — subtle, disabled under reduced motion above */
@media (prefers-reduced-motion: no-preference) {
  .hero-booth__bg {
    animation: ken-burns 24s ease-in-out infinite alternate;
  }
  @keyframes ken-burns {
    from { transform: scale(1); }
    to { transform: scale(1.04); }
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .main-nav { gap: 0.75rem; }
  .main-nav ul { gap: 1rem; }
  .main-nav a { font-size: 0.875rem; }
  .header-cta { padding: 0.65rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .site-header.is-sticky .main-nav,
  .site-header.is-transparent .main-nav {
    background: var(--bone);
    color: var(--booth);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.25rem; }
  .header-cta { margin-top: 1rem; }
  .hero-booth { min-height: 82vh; }
  .metrics-row { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-card__media { order: 0; }
}

@media (max-width: 600px) {
  .hero-booth__topbar-inner { flex-direction: column; align-items: flex-start; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; text-align: center; }
}
