/* =========================================================================
   REVERB SPACE — Design System
   Concept: "Reverb" — the concentric-ripple logo, alive and breathing.
   Calm, meditative, warm, quietly techie. Muted natural tones, soft
   gradients, generous stillness.
   ========================================================================= */

/* ---- Design tokens ----------------------------------------------------- */
:root {
  /* Warm naturals */
  --paper:      #f7f3ec;   /* page background, warm off-white */
  --paper-2:    #f1e9db;   /* raised surface, linen */
  --sand:       #e8ddc9;   /* deeper surface */
  --sand-line:  #ddd0b8;   /* hairline on paper */

  /* Ink (deep warm evergreen, calm + credible) */
  --ink:        #233029;   /* primary text */
  --ink-soft:   #4c574e;   /* secondary text */
  --ink-faint:  #6f786e;   /* tertiary / captions */

  /* Brand gold (the logo) */
  --gold:       #cb9a4e;   /* brand accent */
  --gold-warm:  #d8ab63;   /* lighter glow */
  --gold-deep:  #9a6c24;   /* text/links on paper (AA) */

  /* Supporting naturals */
  --sage:       #93a187;
  --sage-deep:  #6f7d64;
  --clay:       #bc7e5e;

  /* Dark "room at dusk" sections */
  --dark:       #1e2823;
  --dark-2:     #28332d;
  --dark-line:  rgba(243, 236, 221, 0.12);
  --cream:      #f1ebdd;   /* text on dark */
  --cream-soft: rgba(241, 235, 221, 0.72);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Spacing & rhythm */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Shadows — soft, warm, low */
  --shadow-sm: 0 1px 2px rgba(35, 48, 41, 0.05), 0 4px 14px rgba(35, 48, 41, 0.05);
  --shadow:    0 4px 10px rgba(35, 48, 41, 0.05), 0 22px 50px -28px rgba(35, 48, 41, 0.28);
  --shadow-gold: 0 22px 60px -30px rgba(203, 154, 78, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Atmospheric base: layered soft gradients + faint grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(216, 171, 99, 0.16), transparent 60%),
    radial-gradient(900px 720px at 8% 12%, rgba(147, 161, 135, 0.13), transparent 55%),
    radial-gradient(1200px 900px at 50% 116%, rgba(188, 126, 94, 0.10), transparent 60%),
    var(--paper);
}
/* Fine grain for tactile, paper-like texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: rgba(203, 154, 78, 0.28); color: var(--ink); }

/* ---- Typography -------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}
.h-display {
  font-size: clamp(2.7rem, 1.6rem + 5.4vw, 5.5rem);
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2, .h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); font-weight: 400; }
h3, .h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 500; letter-spacing: -0.006em; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

p { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

.lead {
  font-size: clamp(1.15rem, 1.02rem + 0.7vw, 1.45rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 380;
}

/* Mono eyebrow — the quiet "techie" signal */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow.is-light { color: var(--gold-warm); }
.eyebrow.is-centered { justify-content: center; }

/* ---- Layout primitives ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--container-narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.center { text-align: center; }
.measure { max-width: 60ch; }
.stack > * + * { margin-top: 1.15rem; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head p { margin-top: 1.1rem; color: var(--ink-soft); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              background-color 0.4s var(--ease), color 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #2a1e08; }
.btn--gold:hover { box-shadow: var(--shadow-gold); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--sand-line);
}
.btn--ghost:hover { background: rgba(35, 48, 41, 0.04); border-color: var(--ink); }

.btn--light { --btn-bg: var(--cream); --btn-fg: var(--dark); }
.btn--outline-light {
  --btn-bg: transparent; --btn-fg: var(--cream);
  border-color: var(--dark-line);
}
.btn--outline-light:hover { background: rgba(241, 235, 221, 0.06); border-color: var(--cream); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--gold-deep);
  border-bottom: 1px solid transparent;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.textlink:hover { gap: 0.7rem; border-color: currentColor; }

/* ---- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--sand-line); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(35, 48, 41, 0.05); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 2px auto 0;
  background: var(--gold); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-toggle { display: none; }

/* Compact nav on mid screens, then hamburger */
@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.5rem 0.6rem; font-size: 0.87rem; }
}
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    padding: 0.6rem; border-radius: 12px; border: 1px solid var(--sand-line);
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 76px 0 0; z-index: 90;
    background: var(--paper);
    padding: 1.5rem var(--gutter) 3rem;
    display: flex; flex-direction: column; gap: 0.25rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
    overflow-y: auto;
  }
  .mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-menu a {
    padding: 0.9rem 0.4rem; font-size: 1.15rem; font-family: var(--font-display);
    font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--sand-line);
  }
  .mobile-menu .btn { margin-top: 1.5rem; justify-content: center; }
}
.mobile-menu { display: none; }
@media (max-width: 940px) { .mobile-menu { display: flex; } }

/* ---- The ripple (signature motif) -------------------------------------- */
.ripple {
  position: absolute;
  display: grid;
  place-items: center;
  pointer-events: none;
  aspect-ratio: 1;
}
.ripple span {
  grid-area: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--gold);
  width: 100%; height: 100%;
  opacity: 0;
  transform: scale(0.18);
  animation: ripple-out var(--rip-dur, 9s) var(--ease) infinite;
}
.ripple span:nth-child(2) { animation-delay: calc(var(--rip-dur, 9s) * 0.25); }
.ripple span:nth-child(3) { animation-delay: calc(var(--rip-dur, 9s) * 0.5); }
.ripple span:nth-child(4) { animation-delay: calc(var(--rip-dur, 9s) * 0.75); }
@keyframes ripple-out {
  0%   { opacity: 0;    transform: scale(0.18); }
  14%  { opacity: 0.5; }
  70%  { opacity: 0.06; }
  100% { opacity: 0;    transform: scale(1); }
}

/* Static breathing concentric rings — the "still center" */
.rings {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  animation: breathe 9s ease-in-out infinite;
}
.rings span {
  grid-area: 1 / 1;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  opacity: 0.55;
}
.rings span:nth-child(1) { width: 100%;  height: 100%; }
.rings span:nth-child(2) { width: 74%;   height: 74%; opacity: 0.7; }
.rings span:nth-child(3) { width: 48%;   height: 48%; opacity: 0.85; }
.rings span:nth-child(4) { width: 24%;   height: 24%; background: var(--gold); opacity: 0.95; border: none; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: var(--section-y); overflow: hidden; }
.hero-canvas {
  position: absolute;
  top: 50%; left: 50%;
  width: min(135vw, 1500px);
  transform: translate(-50%, -54%);
  z-index: -1;
  opacity: 0.42;
}
.hero-canvas .ripple { inset: 0; width: 100%; }
.hero-canvas .ripple span { border-color: var(--gold); }
.hero-inner { max-width: 880px; margin-inline: auto; text-align: center; }
.hero h1 { margin-top: 1.6rem; }
.hero .lead { margin-top: 1.7rem; margin-inline: auto; max-width: 44ch; }
.hero-actions {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
}
.hero-meta {
  margin-top: 3.2rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; justify-content: center;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---- Vision pull-quote ------------------------------------------------- */
.vision { text-align: center; }
.vision .pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.2rem + 2.8vw, 3.1rem);
  font-weight: 360;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  margin: 1.6rem auto 0;
}
.vision .pullquote em { color: var(--gold-deep); font-style: italic; }

/* ---- Feature grid ------------------------------------------------------ */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.18));
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(203, 154, 78, 0.12);
  color: var(--gold-deep);
  margin-bottom: 1.3rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .num {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--ink-faint); display: block; margin-bottom: 1rem;
}

/* Feature card spanning wide (first / featured) */
.card--wide { grid-column: span 2; display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 720px) { .card--wide { grid-template-columns: 1.1fr 1fr; } }
@media (max-width: 620px) { .card--wide { grid-column: span 1; } }

/* ---- Steps ------------------------------------------------------------- */
.steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em;
  color: var(--gold-deep);
  padding-bottom: 0.6rem;
}
.step::after {
  content: ""; position: absolute; top: 0.35rem; left: 3.2rem; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--sand-line), transparent);
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Split / alternating sections -------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split.is-reverse > :first-child { order: 2; } }
.split-visual {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(216,171,99,0.18), transparent 55%),
    linear-gradient(160deg, var(--paper-2), var(--sand));
  border: 1px solid var(--sand-line);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.split-visual .rings { width: 62%; }

/* List with ripple bullets */
.feat-list { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
.feat-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start; }
.feat-list .dot {
  margin-top: 0.5rem; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--gold); position: relative; flex-shrink: 0;
}
.feat-list .dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold);
}
.feat-list strong { display: block; margin-bottom: 0.1rem; }
.feat-list span.t { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Dark section ("room at dusk") ------------------------------------- */
.dark-section {
  position: relative;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.dark-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(203,154,78,0.16), transparent 60%),
    radial-gradient(800px 700px at 10% 100%, rgba(147,161,135,0.10), transparent 55%);
}
.dark-section > * { position: relative; z-index: 1; }
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--cream); }
.dark-section p { color: var(--cream-soft); }
.dark-section .ripple-deco {
  position: absolute; width: 60%; aspect-ratio: 1; top: 50%; right: -10%;
  transform: translateY(-50%); z-index: 0; opacity: 0.5;
}
.dark-section .ripple-deco .ripple { inset: 0; width: 100%; }
.dark-section .ripple-deco .ripple span { border-color: var(--gold-warm); }

/* ---- Testimonials ------------------------------------------------------ */
.quotes { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.quote .mark { font-family: var(--font-display); font-size: 2.4rem; line-height: 0.5; color: var(--gold); display: block; height: 1rem; }
.quote p { margin-top: 1rem; font-size: 1.02rem; color: var(--ink); font-style: italic; line-height: 1.6; }
.quote .who { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

/* Big single feature quote */
.bigquote { text-align: center; max-width: 30ch; margin-inline: auto; }
.bigquote p {
  font-family: var(--font-display); font-weight: 360;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem); line-height: 1.22;
  letter-spacing: -0.012em; color: var(--ink); font-style: italic;
}

/* ---- Feedback engine / radar (ported from aurora, recoloured) ---------- */
.engine { background: var(--paper-2); border-top: 1px solid var(--sand-line); border-bottom: 1px solid var(--sand-line); }
.engine-grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
@media (min-width: 860px) { .engine-grid { grid-template-columns: 1.05fr 0.95fr; } }
.engine-copy h2 { margin-top: 1.1rem; margin-bottom: 1rem; }
.engine-copy h2 em { color: var(--gold-deep); font-style: italic; }
.engine-copy p { color: var(--ink-soft); }
.engine-note { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1.2rem; }
.legend { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.lg { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; padding: 0.4rem 0.8rem; border-radius: 100px; border: 1px solid var(--sand-line); background: rgba(255,255,255,0.45); color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.5rem; }
.lg b { color: var(--gold-deep); font-weight: 600; }
.lg i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.radar-wrap { position: relative; display: grid; place-items: center; }
.radar-wrap svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.radar-poly { opacity: 0; transform: scale(0.2); transform-origin: center; transition: transform 1.1s var(--ease), opacity 0.8s var(--ease); }
.radar-wrap.in .radar-poly { opacity: 1; transform: scale(1); }
.radar-dot { opacity: 0; transition: opacity 0.5s var(--ease); }
.radar-wrap.in .radar-dot { opacity: 1; }
.radar-axis { stroke: var(--sand-line); stroke-width: 1; }
.radar-web { stroke: var(--sand-line); fill: none; stroke-width: 1; opacity: 0.7; }
.radar-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; fill: var(--ink-faint); text-transform: uppercase; }

/* Founder quote on dark ground */
.dark-section .bigquote p { color: var(--cream); }

/* Light variant of the mailing-list signup (for light CTA bands).
   A raised white-ish fill + soft shadow so the field stands out from the paper. */
.signup--light input {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--sand-line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.signup--light input::placeholder { color: var(--ink-faint); }
.signup--light input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(203, 154, 78, 0.14);
}

/* Spam honeypot — hidden from users, tempting to bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- Pricing ----------------------------------------------------------- */
.price-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card {
  position: relative;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.price-card.is-featured { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.price-badge {
  position: absolute; top: 1.3rem; right: 1.3rem;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #2a1e08; background: var(--gold); padding: 0.3rem 0.7rem; border-radius: 100px;
}
.price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.3rem; }
.price-amt { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); font-weight: 400; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.price-unit { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.price-term { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.price-card .muted { flex: 1; font-size: 0.97rem; }
.price-card .btn { margin-top: 0.7rem; align-self: flex-start; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 1.4rem auto 0; }
.cta-band p { max-width: 48ch; margin: 1.2rem auto 0; }
.cta-band .hero-actions { margin-top: 2.2rem; }

/* Mailing-list inline form */
.signup {
  margin: 2.2rem auto 0; max-width: 460px;
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.signup input {
  flex: 1 1 220px; min-width: 0;
  padding: 0.95rem 1.2rem; border-radius: 100px;
  background: rgba(241,235,221,0.07);
  border: 1px solid var(--dark-line); color: var(--cream);
  font: inherit; font-size: 0.95rem;
}
.signup input::placeholder { color: rgba(241,235,221,0.5); }
.signup input:focus { outline: none; border-color: var(--gold); background: rgba(241,235,221,0.1); }

/* ---- Forms (light) ----------------------------------------------------- */
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-soft); margin-bottom: 0.45rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--sand-line);
  font: inherit; font-size: 0.98rem; color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(203,154,78,0.14);
}
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* ---- FAQ accordion ----------------------------------------------------- */
.faq { border-top: 1px solid var(--sand-line); }
.faq-item { border-bottom: 1px solid var(--sand-line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.5rem 0.25rem;
  font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 500; color: var(--ink);
}
.faq-q .pm { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: var(--gold-deep); transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq-q .pm::before { width: 16px; height: 2px; }
.faq-q .pm::after  { width: 2px; height: 16px; }
.faq-item.is-open .faq-q .pm::after { transform: translate(-50%,-50%) scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height 0.45s var(--ease); }
.faq-a-inner { padding: 0 0.25rem 1.6rem; color: var(--ink-soft); max-width: 64ch; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ---- Team -------------------------------------------------------------- */
.team-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-lead { grid-template-columns: repeat(2, 1fr); } }
.member {
  background: rgba(255,255,255,0.34);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.member .avatar {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  background: radial-gradient(circle at 35% 30%, var(--gold-warm), var(--gold) 70%);
  color: #2a1e08; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
}
.member h3 { font-size: 1.3rem; }
.member .role {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-deep); margin: 0.4rem 0 1rem;
}
.member p { color: var(--ink-soft); font-size: 0.97rem; }
.member ul { color: var(--ink-soft); font-size: 0.97rem; padding-left: 1.1rem; }
.member ul li { margin-bottom: 0.3rem; }

/* Smaller advisor chips */
.advisors { display: grid; gap: 1rem; }
@media (min-width: 620px) { .advisors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .advisors { grid-template-columns: repeat(3, 1fr); } }
.advisor {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.3); border: 1px solid var(--sand-line);
}
.advisor .a-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: rgba(203,154,78,0.14);
  color: var(--gold-deep); font-family: var(--font-display); font-weight: 500;
}
.advisor strong { display: block; font-size: 1rem; }
.advisor span { font-size: 0.82rem; color: var(--ink-faint); }

/* ---- Page hero (inner pages) ------------------------------------------- */
.page-hero { position: relative; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 1.3rem; }
.page-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); font-weight: 380; }
.page-hero .lead { margin-top: 1.4rem; max-width: 56ch; }
.page-hero .ripple-corner {
  position: absolute; top: -30%; right: -8%; width: 40%; aspect-ratio: 1; opacity: 0.3; z-index: -1;
}
.page-hero .ripple-corner .ripple { inset: 0; width: 100%; }

/* Pills / tabs (students-faculty) */
.pills { display: inline-flex; gap: 0.4rem; padding: 0.35rem; border-radius: 100px;
  background: var(--paper-2); border: 1px solid var(--sand-line); }
.pills a, .pills button {
  padding: 0.6rem 1.3rem; border-radius: 100px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pills .is-active { background: var(--ink); color: var(--paper); }

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--dark);
  color: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% 0%, rgba(203,154,78,0.14), transparent 60%);
}
.footer-inner { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem); display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 30px; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 30ch; font-size: 0.95rem; }
.footer-col h4 { color: var(--cream); font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { color: var(--cream-soft); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-contact a { display: block; }
.footer-bottom {
  position: relative; border-top: 1px solid var(--dark-line);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: rgba(241,235,221,0.5);
}
.footer-bottom .mono { font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ---- Scroll reveal ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Hero load animation */
.load-up { opacity: 0; transform: translateY(22px); animation: load-up 1s var(--ease) forwards; }
.load-up[data-delay="1"] { animation-delay: 0.1s; }
.load-up[data-delay="2"] { animation-delay: 0.22s; }
.load-up[data-delay="3"] { animation-delay: 0.34s; }
.load-up[data-delay="4"] { animation-delay: 0.46s; }
.load-up[data-delay="5"] { animation-delay: 0.58s; }
@keyframes load-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .load-up { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .ripple span, .rings, .btn, .card { animation: none !important; }
  .echo-field i { animation: none !important; }
}

/* =========================================================================
   Hero live-session demo — the "simulated app" in the header.
   Concept ported from the Aurora variant, restyled to the Reverb tokens:
   sage = the simulated client, gold = the counselor / brand voice.
   ========================================================================= */

/* Two-column hero when the demo is present.
   Extra bottom padding keeps the content clear of the waveform strip. */
.hero--demo { padding-bottom: clamp(5.5rem, 11vw, 9rem); }
.hero--demo .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero--demo .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); }
}
.hero--demo .hero-copy { text-align: left; }
.hero--demo .h-display { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.2rem); }
.hero--demo .lead { margin-inline: 0; max-width: 42ch; }
.hero--demo .hero-actions,
.hero--demo .hero-meta { justify-content: flex-start; }
.hero--demo .hero-meta { margin-top: 2.4rem; }

/* Hero echo rings + waveform — ported from hybrid's hero, recoloured gold + sage */
.hero .echo-field {
  position: absolute;
  top: 42%; right: -8%;
  transform: translateY(-50%);
  width: min(50vw, 760px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
}
.echo-field i {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: hero-echo 7.5s var(--ease) infinite;
}
.echo-field i:nth-child(2) { animation-delay: 1.5s; }
.echo-field i:nth-child(3) { animation-delay: 3s;   border-color: var(--sage-deep); }
.echo-field i:nth-child(4) { animation-delay: 4.5s; }
.echo-field i:nth-child(5) { animation-delay: 6s;   border-color: var(--sage-deep); }
/* opacity curve mirrors the site's signature .ripple so the rings read on warm paper */
@keyframes hero-echo {
  0%   { transform: scale(0.18); opacity: 0; }
  14%  { opacity: 0.5; }
  70%  { opacity: 0.08; }
  100% { transform: scale(1); opacity: 0; }
}

/* Sits between the hero and the next section, centred on the seam:
   the negative top/bottom margins pull half the strip into each section
   while adding zero net height to the page flow. */
.wave-strip {
  position: relative;
  height: 120px;
  margin: -60px 0;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}
.wave-strip canvas { width: 100%; height: 100%; display: block; }

@media (max-width: 959px) {
  .hero .echo-field { right: -32%; width: 100vw; opacity: 0.7; }
}

.hero-demo { position: relative; width: 100%; }
@media (max-width: 959px) {
  .hero-demo { max-width: 480px; margin-inline: auto; }
}

/* Live demo embedded in the hero slot (Demo:ShowOnHome on). Mirrors the .demo card's
   frame — rounded, bordered, soft gold shadow — so the real app reads as the same
   "device" the self-playing animation used to occupy. */
.hero-demo-embed {
  position: relative;
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    var(--shadow),
    0 30px 60px -34px rgba(203,154,78,0.4);
}
.hero-demo-embed iframe {
  display: block;
  width: 100%;
  height: clamp(460px, 65vh, 620px);
  border: 0;
}
@media (max-width: 959px) {
  .hero-demo-embed iframe { height: clamp(440px, 76vh, 600px); }
}

.demo {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.26));
  border: 1px solid var(--sand-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    var(--shadow),
    0 30px 60px -34px rgba(203,154,78,0.4);
}

.demo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--sand-line);
  background: rgba(241,233,219,0.5);
}
.demo-who { display: flex; align-items: center; gap: 0.7rem; }
.demo-orb {
  width: 40px; height: 40px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 34% 28%, var(--sage), var(--sage-deep) 78%);
  box-shadow: 0 0 0 1px rgba(147,161,135,0.4), 0 6px 16px rgba(111,125,100,0.35);
}
.demo-orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.demo-orb::before, .demo-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(147,161,135,0.55);
}
.demo-orb.is-speaking::before { animation: demo-orb-ping 1.6s var(--ease) infinite; }
.demo-orb.is-speaking::after  { animation: demo-orb-ping 1.6s var(--ease) infinite 0.8s; }
@keyframes demo-orb-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
.demo-who .meta b { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; display: block; line-height: 1.2; }
.demo-who .meta span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.demo-rec { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); }
.demo-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); animation: demo-blink 1.4s infinite; }
@keyframes demo-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.demo-body { padding: 1.3rem 1.15rem 0.9rem; min-height: 290px; display: flex; flex-direction: column; gap: 0.85rem; position: relative; }
.demo-msg { max-width: 90%; opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.demo-msg.show { opacity: 1; transform: none; }
.demo-msg .tag { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.35rem; display: block; }
.demo-msg.client .tag { color: var(--sage-deep); }
.demo-msg.you { align-self: flex-end; text-align: right; }
.demo-msg.you .tag { color: var(--gold-deep); }
.demo-bubble { display: inline-block; padding: 0.7rem 0.95rem; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; text-align: left; border: 1px solid transparent; }
.demo-msg.client .demo-bubble { background: rgba(147,161,135,0.14); border-color: rgba(147,161,135,0.28); border-top-left-radius: 5px; color: var(--ink); }
.demo-msg.you .demo-bubble { background: rgba(203,154,78,0.14); border-color: rgba(203,154,78,0.3); border-top-right-radius: 5px; color: var(--ink); }
.demo-caret { display: inline-block; width: 7px; height: 1.05em; vertical-align: text-bottom; background: var(--ink-faint); margin-left: 1px; animation: demo-blink 1s steps(1) infinite; }

.demo-input { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1.1rem; border-top: 1px solid var(--sand-line); background: rgba(241,233,219,0.6); transition: opacity 0.4s var(--ease); }
.demo-mic { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold); box-shadow: 0 4px 12px rgba(203,154,78,0.4); }
.demo-mic svg { width: 16px; height: 16px; stroke: #2a1e08; fill: none; stroke-width: 1.8; }
.demo-wave { flex: 1; height: 26px; }
.demo-wave canvas { width: 100%; height: 100%; display: block; }
.demo-mode { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

.demo-feedback {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(247,243,236,0.82), var(--paper-2) 32%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: 1.3rem; display: flex; flex-direction: column; gap: 0.8rem;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.demo-feedback.show { opacity: 1; visibility: visible; transform: none; }
.demo-fb-top { display: flex; align-items: center; justify-content: space-between; }
.demo-fb-lab { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); }
.demo-fb-score { font-family: var(--font-display); font-weight: 500; font-size: 2.4rem; line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.demo-fb-score sup { font-size: 0.9rem; color: var(--ink-faint); font-weight: 400; }
.demo-fb-bars { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.1rem; }
.demo-fb-row { display: grid; grid-template-columns: 84px 1fr 26px; align-items: center; gap: 0.55rem; }
.demo-fb-row .fl { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); }
.demo-fb-track { height: 6px; border-radius: 100px; background: var(--sand); overflow: hidden; }
.demo-fb-fill { height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-warm)); transition: width 1.1s var(--ease); }
.demo-fb-row .fv { font-family: var(--font-mono); font-size: 0.64rem; color: var(--gold-deep); text-align: right; }
.demo-fb-note { font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); border-left: 2px solid var(--gold); padding-left: 0.7rem; margin-top: 0.1rem; }
.demo-fb-note b { color: var(--gold-deep); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .demo-orb.is-speaking::before, .demo-orb.is-speaking::after, .demo-rec i, .demo-caret { animation: none !important; }
}

/* ---- Utilities --------------------------------------------------------- */
.divider { height: 1px; background: var(--sand-line); border: 0; margin: 0; }
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.maxw-prose { max-width: 65ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Form submitting / sent states (mailing-list, contact, demo) -------- */
/* On submit the button becomes the site's signature motif — a "reverb" sonar:
   concentric rings pulsing outward from a still source. On success the form
   resolves into a confirmation (signup rows fold away). Driven by main.js
   toggling .is-submitting / .is-sent and injecting .btn-reverb / .note-reverb. */

/* The in-button sonar (adopts the button's text colour via currentColor) */
.btn-reverb {
  position: relative;
  width: 1.2em; height: 1.2em;
  display: inline-grid; place-items: center;
  flex: none;
}
.btn-reverb::after {                      /* the still source point */
  content: ""; width: 0.32em; height: 0.32em;
  border-radius: 50%; background: currentColor;
}
.btn-reverb i {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  transform: scale(0.2);
  animation: btn-reverb-out 1.5s var(--ease) infinite;
}
.btn-reverb i:nth-child(2) { animation-delay: 0.5s; }
.btn-reverb i:nth-child(3) { animation-delay: 1s; }
@keyframes btn-reverb-out {
  0%   { opacity: 0;    transform: scale(0.2); }
  18%  { opacity: 0.85; }
  100% { opacity: 0;    transform: scale(1); }
}
.btn-sending { letter-spacing: 0.01em; }

button[aria-busy="true"] { cursor: progress; justify-content: center; }
button[aria-busy="true"]:hover { transform: none; box-shadow: var(--shadow); }

/* In-flight: gently fade the editable fields so focus moves to the button */
form.is-submitting input:not([type="hidden"]),
form.is-submitting textarea,
form.is-submitting select {
  opacity: 0.5;
  transition: opacity 0.4s var(--ease);
}

/* Resolved (inline signup row only): fade the controls out and fold the whole
   row away (max-height / margin / opacity are animated inline by main.js from
   the measured height). Contact/demo forms keep their fields in place and just
   disable them + reveal the note, so they're intentionally not faded here. */
form.is-sent.signup input:not([type="hidden"]),
form.is-sent.signup button {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
form.is-sent.signup { overflow: hidden; }

/* The confirmation note rises in; success prefixes a one-shot reverb + check. */
.form-note { transition: color 0.3s var(--ease); }
.form-note.is-shown { animation: note-rise 0.6s var(--ease) both; }
@keyframes note-rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.note-reverb {
  position: relative;
  display: inline-grid; place-items: center;
  width: 1.35em; height: 1.35em;
  margin-right: 0.55em;
  vertical-align: -0.3em;
}
.note-reverb::after {                     /* the check at the centre */
  content: "\2713"; font-size: 0.82em; line-height: 1;
}
.note-reverb i {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  transform: scale(0.3);
  animation: note-reverb-out 1.1s var(--ease) both;
}
.note-reverb i:nth-child(2) { animation-delay: 0.18s; }
@keyframes note-reverb-out {
  0%   { opacity: 0.8; transform: scale(0.3); }
  100% { opacity: 0;   transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-reverb i, .note-reverb i { animation: none; }
  .btn-reverb i { opacity: 0.5; transform: scale(0.72); }
  .note-reverb i { opacity: 0; }
  .form-note.is-shown { animation: none; }
  form.is-sent input, form.is-sent textarea, form.is-sent select,
  form.is-sent button, form.is-sent.signup { transition: none; }
}
