/* =========================================================================
   Bit7 Labs — Editorial design system
   Adapted from DESIGN.md (ElevenLabs-style editorial canvas)
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Colors — primary */
  --primary: #292524;
  --primary-active: #0c0a09;
  --ink: #0c0a09;
  --body: #4e4e4e;
  --body-strong: #292524;
  --muted: #777169;
  --muted-soft: #a8a29e;
  --hairline: #e7e5e4;
  --hairline-soft: #f0efed;
  --hairline-strong: #d6d3d1;
  --canvas: #f5f5f5;
  --canvas-soft: #fafafa;
  --canvas-deep: #0c0a09;
  --surface-card: #ffffff;
  --surface-strong: #f0efed;
  --surface-dark: #0c0a09;
  --surface-dark-elevated: #1c1917;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --on-dark-soft: #a8a29e;

  /* Atmospheric gradient stops */
  --gradient-mint: #a7e5d3;
  --gradient-peach: #f4c5a8;
  --gradient-lavender: #c8b8e0;
  --gradient-sky: #a8c8e8;
  --gradient-rose: #e8b8c4;

  /* Semantic */
  --semantic-error: #dc2626;
  --semantic-success: #16a34a;

  /* Type families */
  --font-display: 'Fraunces', 'EB Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-base: 16px;
  --space-md: 20px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 24px;
  --radius-pill: 9999px;
  --radius-full: 9999px;

  /* Container */
  --container-max: 1200px;
  --container-pad: 32px;

  /* Soft drop */
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.02), 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16px;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
hr { border: none; height: 1px; background: var(--hairline); margin: 0; }

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

/* ----- Japanese typography overrides --------------------------------------- */
body.lang-ja {
  font-family: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.04em;
}
body.lang-ja .t-display-mega,
body.lang-ja .t-display-xl,
body.lang-ja .t-display-lg,
body.lang-ja .t-display-md,
body.lang-ja .t-display-sm,
body.lang-ja .brand,
body.lang-ja .quote blockquote,
body.lang-ja .tier .price,
body.lang-ja .stat .num,
body.lang-ja .timeline .when,
body.lang-ja .principle h3,
body.lang-ja .figure-meta .name,
body.lang-ja .product-card h3 {
  font-family: 'Shippori Mincho', 'Noto Serif JP', 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  letter-spacing: 0;
}
body.lang-ja .t-display-mega { letter-spacing: -0.005em; }
body.lang-ja .t-eyebrow,
body.lang-ja .caption-uppercase,
body.lang-ja .badge-pill,
body.lang-ja .footer-col h5,
body.lang-ja .stat .label,
body.lang-ja .kicker {
  letter-spacing: 0.08em;
}
body.lang-ja .t-body-md,
body.lang-ja .t-body-sm,
body.lang-ja .hero-lede,
body.lang-ja .lede,
body.lang-ja p {
  letter-spacing: 0.03em;
  line-height: 1.75;
}

/* ----- Typography ------------------------------------------------------- */
.t-display-mega {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 84px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.t-display-xl {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.t-display-lg {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: -0.01em;
}
.t-display-sm {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
}
.t-title-md  { font-size: 20px; font-weight: 500; line-height: 1.35; }
.t-title-sm  { font-size: 18px; font-weight: 500; line-height: 1.44; letter-spacing: 0.18px; }
.t-body-md   { font-size: 16px; font-weight: 400; line-height: 1.55; letter-spacing: 0.16px; }
.t-body-strong { font-size: 16px; font-weight: 500; line-height: 1.55; letter-spacing: 0.16px; }
.t-body-sm   { font-size: 15px; font-weight: 400; line-height: 1.55; letter-spacing: 0.15px; }
.t-caption   { font-size: 14px; font-weight: 400; line-height: 1.5; }
.t-eyebrow {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ink   { color: var(--ink); }
.body  { color: var(--body); }
.muted { color: var(--muted); }

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

.section {
  padding-block: var(--space-section);
  position: relative;
}
.section-tight { padding-block: 64px; }

.divider { height: 1px; background: var(--hairline); }
.divider-soft { background: var(--hairline-soft); }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-xs   { gap: var(--space-xs); }
.gap-sm   { gap: var(--space-sm); }
.gap-base { gap: var(--space-base); }
.gap-md   { gap: var(--space-md); }
.gap-lg   { gap: var(--space-lg); }
.gap-xl   { gap: var(--space-xl); }
.gap-xxl  { gap: var(--space-xxl); }

.text-center { text-align: center; }
.max-prose { max-width: 60ch; }
.max-readable { max-width: 720px; }

/* ----- Top Navigation --------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 245, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  gap: var(--space-xl);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 30%, var(--gradient-peach), transparent 60%),
    radial-gradient(circle at 70% 70%, var(--gradient-lavender), transparent 65%),
    var(--ink);
  position: relative;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: opacity 160ms ease;
}
.nav-link:hover { opacity: 0.6; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}
.lang-toggle a:hover { color: var(--ink); }
.lang-toggle a.is-active {
  background: var(--ink);
  color: var(--on-primary);
}
.band-dark .lang-toggle { border-color: rgba(255,255,255,0.16); }
.band-dark .lang-toggle a { color: var(--on-dark-soft); }
.band-dark .lang-toggle a.is-active { background: var(--on-dark); color: var(--ink); }
@media (max-width: 880px) {
  .lang-toggle { display: none; }
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-active); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-tertiary {
  background: transparent;
  color: var(--ink);
  padding: 0;
  height: auto;
  border-radius: 0;
}
.btn-tertiary .btn-arrow { transition: transform 220ms ease; }
.btn-tertiary:hover .btn-arrow { transform: translateX(4px); }
.btn-on-dark {
  background: var(--on-dark);
  color: var(--ink);
}
.btn-on-dark:hover { background: #e7e5e4; }
.btn-outline-on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.24);
}
.btn-outline-on-dark:hover { border-color: var(--on-dark); }

/* ----- Badges & pills --------------------------------------------------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.badge-soft {
  background: transparent;
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
}
.badge-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ----- Atmospheric gradient orbs ---------------------------------------- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.orb--mint     { background: radial-gradient(circle at 50% 50%, var(--gradient-mint),     transparent 70%); }
.orb--peach    { background: radial-gradient(circle at 50% 50%, var(--gradient-peach),    transparent 70%); }
.orb--lavender { background: radial-gradient(circle at 50% 50%, var(--gradient-lavender), transparent 70%); }
.orb--sky      { background: radial-gradient(circle at 50% 50%, var(--gradient-sky),      transparent 70%); }
.orb--rose     { background: radial-gradient(circle at 50% 50%, var(--gradient-rose),     transparent 70%); }

@keyframes orb-drift-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb-drift-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-25px, 25px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}
.orb--drift-a { animation: orb-drift-a 18s ease-in-out infinite; }
.orb--drift-b { animation: orb-drift-b 22s ease-in-out infinite; }

/* ----- Hero band -------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--canvas);
  overflow: hidden;
  padding-block: 120px 96px;
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 32px; }
.hero h1 { margin: 0 0 28px 0; max-width: 13ch; }
.hero-lede { max-width: 56ch; color: var(--body); margin-bottom: 40px; font-size: 18px; line-height: 1.55; letter-spacing: 0.14px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero .orb-1 { width: 720px; height: 720px; right: -180px; top: -120px; }
.hero .orb-2 { width: 480px; height: 480px; left: -160px; bottom: -200px; }

/* ----- Eyebrow row ------------------------------------------------------ */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.eyebrow-row .tick { width: 18px; height: 1px; background: var(--muted); }

/* ----- Section header --------------------------------------------------- */
.section-head { margin-bottom: 64px; }
.section-head .eyebrow-row { margin-bottom: 24px; }
.section-head h2 { margin: 0 0 16px 0; max-width: 22ch; }
.section-head p { margin: 0; max-width: 56ch; color: var(--body); font-size: 18px; line-height: 1.55; }

/* ----- Cards ------------------------------------------------------------ */
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: box-shadow 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.card:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--hairline-strong);
}
.card-tight { padding: 24px; }
.card-flat { background: transparent; border: 1px solid var(--hairline); }

/* Feature card with icon */
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--ink);
}
.feature-card h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.feature-card p { margin: 0; color: var(--body); }

/* Gradient orb card */
.orb-card {
  position: relative;
  border-radius: var(--radius-xxl);
  padding: 56px 40px;
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.orb-card .orb {
  width: 480px; height: 480px;
  filter: blur(56px);
  opacity: 0.85;
}
.orb-card-content { position: relative; z-index: 2; }
.orb-card .orb-card-content h3 { margin: 0 0 12px 0; max-width: 22ch; }

/* Product card stack */
.product-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 240ms ease, transform 240ms ease;
}
.product-card:hover { box-shadow: var(--shadow-soft); }
.product-card .product-visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--hairline);
}
.product-card .product-visual .orb {
  width: 380px; height: 380px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}
.product-card .product-body { padding: 24px 28px 28px; }
.product-card .product-eyebrow { color: var(--muted); margin-bottom: 6px; }
.product-card h3 { margin: 0 0 8px 0; font-size: 22px; font-weight: 500; }
.product-card p { margin: 0 0 20px 0; color: var(--body); }
.product-card .product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 14px;
  color: var(--muted);
}

/* Voice / row item */
.voice-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.voice-row:last-child { border-bottom: none; }
.voice-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.voice-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 60%);
  pointer-events: none;
}
.voice-row .meta { display: flex; flex-direction: column; gap: 2px; }
.voice-row .name { font-size: 15px; font-weight: 500; }
.voice-row .desc { font-size: 13px; color: var(--muted); }
.voice-row .tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
}
.voice-row .play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

/* Audio waveform (CSS only) */
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.waveform span {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 10%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 35%; animation-delay: 0.08s; }
.waveform span:nth-child(3) { height: 60%; animation-delay: 0.16s; }
.waveform span:nth-child(4) { height: 85%; animation-delay: 0.24s; }
.waveform span:nth-child(5) { height: 70%; animation-delay: 0.32s; }
.waveform span:nth-child(6) { height: 100%; animation-delay: 0.4s; }
.waveform span:nth-child(7) { height: 45%; animation-delay: 0.48s; }
.waveform span:nth-child(8) { height: 75%; animation-delay: 0.56s; }
.waveform span:nth-child(9) { height: 30%; animation-delay: 0.64s; }
.waveform span:nth-child(10) { height: 55%; animation-delay: 0.72s; }
.waveform span:nth-child(11) { height: 90%; animation-delay: 0.8s; }
.waveform span:nth-child(12) { height: 25%; animation-delay: 0.88s; }
.waveform span:nth-child(13) { height: 65%; animation-delay: 0.96s; }
.waveform span:nth-child(14) { height: 40%; animation-delay: 1.04s; }
.waveform span:nth-child(15) { height: 80%; animation-delay: 1.12s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}
.waveform.muted span { opacity: 0.6; }

/* Pricing tiers */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.tier h3 { margin: 0 0 6px 0; font-size: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tier .price { margin: 8px 0 4px; font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -0.02em; }
.tier .price-suffix { color: var(--muted); font-size: 14px; }
.tier p.lede { color: var(--body); margin: 16px 0 28px; min-height: 48px; }
.tier ul.features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.tier ul.features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--body-strong); line-height: 1.5; }
.tier ul.features li svg { flex-shrink: 0; margin-top: 4px; color: var(--ink); }
.tier .btn { margin-top: auto; }
.tier-featured {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-color: var(--surface-dark);
}
.tier-featured h3 { color: var(--on-dark-soft); }
.tier-featured .price-suffix { color: var(--on-dark-soft); }
.tier-featured p.lede { color: var(--on-dark-soft); }
.tier-featured ul.features li { color: var(--on-dark); }
.tier-featured ul.features li svg { color: var(--on-dark); }
.tier-featured .btn-primary { background: var(--on-dark); color: var(--ink); }
.tier-featured .btn-primary:hover { background: #e7e5e4; }

/* Form input */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); text-transform: uppercase; }
.input, .textarea, .select {
  appearance: none;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 48px;
  font-size: 15px;
  letter-spacing: 0.16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}
.textarea {
  height: auto;
  min-height: 144px;
  padding: 14px 16px;
  resize: vertical;
  font-family: var(--font-body);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.field-help { font-size: 13px; color: var(--muted); }

/* Quote / testimonial */
.quote {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quote .quote-mark {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.6;
  color: var(--muted-soft);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.quote-author { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--hairline-soft); }
.quote-author .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-strong);
  position: relative;
  overflow: hidden;
}
.quote-author .avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--gradient-peach), var(--gradient-rose));
  opacity: 0.8;
}
.quote-author .name  { font-size: 14px; font-weight: 500; }
.quote-author .role  { font-size: 13px; color: var(--muted); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats .stat {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
}
.stats .stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.stat .label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  position: relative;
  padding-block: 120px;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.cta-band-inner { position: relative; z-index: 2; text-align: center; }
.cta-band h2 { margin: 0 0 16px 0; }
.cta-band p { color: var(--body); margin: 0 auto 32px; max-width: 56ch; font-size: 18px; line-height: 1.55; }
.cta-band .orb-1 { width: 800px; height: 800px; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.5; }

/* Dark band */
.band-dark {
  background: var(--surface-dark);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.band-dark .body, .band-dark .muted { color: var(--on-dark-soft); }
.band-dark .section-head h2 { color: var(--on-dark); }
.band-dark .section-head p  { color: var(--on-dark-soft); }
.band-dark .eyebrow-row { color: var(--on-dark-soft); }
.band-dark .eyebrow-row .tick { background: var(--on-dark-soft); }

/* Footer */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding-block: 80px 48px;
  color: var(--body);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}
.footer-brand p { margin: 16px 0 24px; font-size: 14.5px; line-height: 1.6; max-width: 38ch; color: var(--body); }
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px 0;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--body); transition: color 160ms ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
}
.footer-meta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--ink); }

/* ----- Decorative bits -------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

.list-clean { display: flex; flex-direction: column; }
.list-clean li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.list-clean li:last-child { border-bottom: none; }
.list-clean li .label { font-size: 15px; }
.list-clean li .value { font-size: 14px; color: var(--muted); font-feature-settings: 'tnum'; }

/* Article-style two-column body */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

/* Numbered principle */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.principle {
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.principle:last-child { border-right: none; }
.principle .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 32px;
  display: inline-block;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}
.principle p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.6; }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.timeline .item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.timeline .item:last-child { border-bottom: none; }
.timeline .when { font-family: var(--font-display); font-weight: 300; font-size: 22px; color: var(--ink); }
.timeline .item-body h4 { margin: 0 0 6px 0; font-size: 17px; font-weight: 500; }
.timeline .item-body p  { margin: 0; color: var(--body); font-size: 15px; }

/* Spec block */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.spec-grid .spec {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-grid .spec:nth-child(odd)  { padding-right: 32px; border-right: 1px solid var(--hairline); }
.spec-grid .spec:nth-child(even) { padding-left: 32px; }
.spec .label { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.spec .value { color: var(--ink); font-size: 15px; line-height: 1.5; }

/* Embodied figure (SVG) */
.figure-frame {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xxl);
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figure-frame .orb {
  width: 420px; height: 420px;
  filter: blur(60px);
  opacity: 0.85;
  z-index: 0;
}
.figure-frame svg { position: relative; z-index: 1; }
.figure-frame .figure-meta {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.figure-frame .figure-meta .name { font-family: var(--font-display); font-weight: 300; font-size: 22px; }
.figure-frame .figure-meta .sub  { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Tag chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--ink);
}
.chip-active { background: var(--ink); color: var(--on-primary); border-color: var(--ink); }

/* Map / locations */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ----- Page layouts ----------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: 96px 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.page-hero .orb-1 { width: 540px; height: 540px; right: -120px; top: -160px; }
.page-hero h1 { margin: 24px 0 24px 0; max-width: 16ch; }
.page-hero .lede { color: var(--body); max-width: 60ch; font-size: 18px; line-height: 1.55; }

/* ----- Animated entrance ------------------------------------------------ */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rise-2 { animation-delay: 100ms; }
.rise-3 { animation-delay: 200ms; }
.rise-4 { animation-delay: 300ms; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); row-gap: 48px; }
  .article-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 880px) {
  :root { --space-section: 72px; --container-pad: 24px; }
  .grid-3, .grid-4, .pricing { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat { border-right: none; border-bottom: 1px solid var(--hairline); }
  .stats .stat:nth-child(2n) { border-right: none; }
  .stats .stat:nth-child(2n + 1) { border-right: 1px solid var(--hairline); }
  .stats .stat:nth-last-child(-n+2) { border-bottom: none; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { border-right: none; padding-right: 0; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid .spec:nth-child(odd) { padding-right: 0; border-right: none; }
  .spec-grid .spec:nth-child(even) { padding-left: 0; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-block: 80px 64px; }
  .location-grid { grid-template-columns: 1fr; }
  .timeline .item { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote blockquote { font-size: 22px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats .stat { border-right: none; border-bottom: 1px solid var(--hairline); }
  .stats .stat:last-child { border-bottom: none; }
  .card { padding: 24px; }
  .orb-card { padding: 36px 24px; }
  .tier { padding: 28px 24px; }
  .quote { padding: 28px 24px; }
}

/* Mobile drawer (toggled via JS on body) */
body.nav-open .nav-drawer {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer {
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--canvas);
  z-index: 49;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
  padding: 32px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--hairline);
  overflow-y: auto;
}
.nav-drawer a {
  display: block;
  padding: 14px 0;
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 300;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.nav-drawer .btn { margin-top: 24px; align-self: flex-start; }
@media (min-width: 881px) {
  .nav-drawer { display: none; }
}
