/* ==========================================================================
   AWOOGA — The Voice
   --------------------------------------------------------------------------
   The page for the horn she's named after. Scoped to .vo-* so it can never
   collide with another page's styles. Leans on the shared design tokens from
   style.css (navy / cream / brass / wood) — no new colors invented here.
   ========================================================================== */

/* ---------- Hero: the lanyard ------------------------------------------- */
.vo-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 78% -25%, rgba(227, 195, 90, 0.2), transparent 58%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800) 70%, var(--navy-700));
  color: var(--cream);
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(3rem, 6vw, 4.6rem);
}
.vo-hero__grid {
  display: grid; grid-template-columns: 1fr minmax(240px, 340px);
  gap: clamp(1.6rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 860px) {
  .vo-hero__grid { grid-template-columns: 1fr; }
}
.vo-hero .eyebrow { color: var(--brass-lt); }
.vo-hero h1 { color: var(--cream); font-size: clamp(2.2rem, 6vw, 3.7rem); margin-bottom: 0.5rem; }
.vo-hero h1 em { font-style: italic; color: var(--brass-lt); }
.vo-hero .lead { color: rgba(247, 241, 227, 0.88); max-width: 54ch; }

/* Sound-wave rings behind the horn, gently breathing until she's sounded,
   then punched out hard on each blast (.is-blasting). */
.vo-rings { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vo-rings span {
  position: absolute; top: 50%; right: 14%;
  width: 120px; height: 120px; margin: -60px -60px 0 0;
  border: 1px solid rgba(227, 195, 90, 0.4); border-radius: 50%;
  opacity: 0; transform: scale(0.4);
}
@media (prefers-reduced-motion: no-preference) {
  .vo-rings span { animation: vo-ring 4.5s var(--ease) infinite; animation-delay: calc(var(--r) * 1.5s); }
  .vo-hero.is-blasting .vo-rings span { animation-duration: 1.4s; animation-delay: calc(var(--r) * 0.28s); }
}
@keyframes vo-ring {
  0%   { opacity: 0;    transform: scale(0.35); }
  18%  { opacity: 0.55; }
  100% { opacity: 0;    transform: scale(3.4); }
}

/* The pull-cord. Grab the toggle and drag it down (or press Enter/Space). */
.vo-pull { display: flex; flex-direction: column; align-items: center; justify-self: center; }
.vo-pull__horn {
  width: clamp(120px, 26vw, 168px); height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.45));
  transform-origin: 80% 50%;
}
.vo-hero.is-blasting .vo-pull__horn { animation: vo-horn-shake 0.55s var(--ease) 2; }
@keyframes vo-horn-shake {
  0%, 100% { transform: rotate(0) translateX(0); }
  25% { transform: rotate(-2.2deg) translateX(-3px); }
  60% { transform: rotate(2deg) translateX(3px); }
}
@media (prefers-reduced-motion: reduce) { .vo-hero.is-blasting .vo-pull__horn { animation: none; } }

.vo-pull__rope { position: relative; width: 6px; }
.vo-pull__line {
  display: block; width: 4px; margin: 0 auto;
  height: var(--rope, 74px);
  background: repeating-linear-gradient(180deg, #d8c9a6 0 7px, #b8a680 7px 14px);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: height 0.35s var(--ease);
}
.vo-pull.is-dragging .vo-pull__line { transition: none; }
.vo-pull__grip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.1rem; width: 92px; height: 92px; margin-top: -2px;
  border: 0; border-radius: 50%; cursor: grab; touch-action: none;
  -webkit-user-select: none; user-select: none;
  background: radial-gradient(circle at 34% 28%, #e9cf78, var(--brass) 58%, #9d7c17);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  color: var(--navy-900);
  font-family: var(--font-sans); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 0.62rem; line-height: 1.2; text-align: center;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.vo-pull__grip:hover { transform: translateY(2px); }
.vo-pull__grip:active, .vo-pull.is-dragging .vo-pull__grip { cursor: grabbing; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), inset 0 3px 8px rgba(110, 84, 12, 0.5); }
.vo-pull__grip:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.vo-pull__grip svg { width: 26px; height: 26px; }
.vo-pull__hint { margin: 0.9rem 0 0; font-size: 0.78rem; color: rgba(247, 241, 227, 0.6); text-align: center; }

/* ---------- The two voices ---------------------------------------------- */
.vo-voices {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(1.6rem, 4vw, 2.4rem);
}
.vo-voice {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.vo-voice.is-playing { border-color: var(--brass); box-shadow: 0 16px 40px rgba(201, 162, 39, 0.28); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .vo-voice.is-playing { transform: none; } }
.vo-voice__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.vo-voice__name { margin: 0; font-size: 1.35rem; }
.vo-voice__tag {
  flex: none; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--wood-dk);
  padding: 0.25rem 0.55rem; border: 1px solid rgba(181, 130, 79, 0.45);
  border-radius: 999px; background: var(--cream-2);
}
.vo-voice__desc { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.vo-scope {
  display: block; width: 100%; height: 92px;
  background: var(--navy-900); border-radius: var(--radius-sm);
}
.vo-voice__play {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%; padding: 0.85rem 1.2rem; border: 2px solid var(--navy-900);
  border-radius: 999px; background: var(--navy-900); color: var(--cream);
  font-weight: 700; font-size: 1rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.vo-voice__play:hover { background: var(--brass); border-color: var(--brass); color: var(--navy-900); transform: translateY(-2px); }
.vo-voice__play:focus-visible { outline: 3px solid var(--brass-lt); outline-offset: 3px; }
.vo-voice.is-playing .vo-voice__play { background: var(--brass); border-color: var(--brass); color: var(--navy-900); }
.vo-voice__play svg { width: 19px; height: 19px; }
@media (prefers-reduced-motion: reduce) { .vo-voice__play:hover { transform: none; } }
.vo-voice__spec { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.82rem; color: var(--text-soft); }
.vo-voice__spec b { color: var(--navy-800); font-weight: 700; }

.vo-both {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem;
  margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: var(--cream-2); border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: var(--radius);
}
.vo-both p { margin: 0; flex: 1 1 260px; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Decibel ladder ---------------------------------------------- */
.vo-ladder {
  display: grid; grid-template-columns: 1fr; gap: 0.35rem;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
}
.vo-rung {
  display: grid; grid-template-columns: 4.2rem 1fr auto; align-items: center;
  gap: 0.9rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm);
}
.vo-rung__db {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--navy-800); text-align: right; font-variant-numeric: tabular-nums;
}
.vo-rung__bar { position: relative; height: 26px; border-radius: 999px; background: rgba(12, 32, 52, 0.07); overflow: hidden; }
.vo-rung__fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-600), var(--navy-800));
  transition: width 1.1s var(--ease);
}
.vo-ladder.is-shown .vo-rung__fill { width: var(--w, 0%); }
@media (prefers-reduced-motion: reduce) { .vo-rung__fill { transition: none; } }
.vo-rung__label { font-size: 0.9rem; color: var(--text-soft); white-space: nowrap; }
/* Her rung: brass, heavier, and banded to say "we're estimating". */
.vo-rung--her { background: var(--cream-2); box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.5); }
.vo-rung--her .vo-rung__db { color: var(--wood-dk); }
.vo-rung--her .vo-rung__label { color: var(--navy-900); font-weight: 700; }
.vo-rung--her .vo-rung__fill {
  background:
    repeating-linear-gradient(115deg, var(--brass) 0 10px, var(--brass-lt) 10px 20px);
}
.vo-ladder__note { margin: 1.2rem 0 0; font-size: 0.85rem; color: var(--text-soft); max-width: 62ch; }

/* ---------- The rule card ------------------------------------------------ */
.vo-rule {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(1.4rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
@media (max-width: 780px) { .vo-rule { grid-template-columns: 1fr; } }
.vo-rule h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.vo-rule p { color: var(--text-soft); margin-bottom: 0.8rem; }
.vo-rule p:last-child { margin-bottom: 0; }
.vo-rule__table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.vo-rule__table caption {
  caption-side: top; text-align: left; padding-bottom: 0.5rem;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--wood-dk);
}
.vo-rule__table th, .vo-rule__table td { padding: 0.5rem 0.4rem; text-align: left; border-bottom: 1px solid var(--line); }
.vo-rule__table th { font-weight: 700; color: var(--navy-800); font-size: 0.78rem; }
.vo-rule__table td { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.vo-rule__table tr.is-her td { color: var(--navy-900); font-weight: 700; background: var(--cream-2); }

/* ---------- Etymology timeline ------------------------------------------- */
.vo-time { list-style: none; margin: clamp(1.6rem, 4vw, 2.4rem) 0 0; padding: 0; position: relative; }
.vo-time::before {
  content: ""; position: absolute; left: 6.6rem; top: 0.6rem; bottom: 0.6rem;
  width: 2px; background: linear-gradient(180deg, transparent, var(--brass) 12%, var(--brass) 88%, transparent);
}
@media (max-width: 640px) { .vo-time::before { left: 0.35rem; } }
.vo-time li {
  display: grid; grid-template-columns: 6rem 1fr; gap: 1.8rem;
  padding: 0 0 1.6rem; position: relative;
}
@media (max-width: 640px) {
  .vo-time li { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 1.7rem; }
}
.vo-time__year {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
  color: var(--wood-dk); text-align: right; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) { .vo-time__year { text-align: left; } }
.vo-time__dot {
  position: absolute; left: 6.6rem; top: 0.62rem;
  width: 11px; height: 11px; margin-left: -4.5px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 4px var(--bg);
}
@media (max-width: 640px) { .vo-time__dot { left: 0.35rem; } }
.vo-time__body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.vo-time__body p { margin: 0; color: var(--text-soft); font-size: 0.94rem; }

/* ---------- How a klaxon works ------------------------------------------- */
.vo-mech {
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem); align-items: center;
}
@media (max-width: 820px) { .vo-mech { grid-template-columns: 1fr; } }
.vo-mech__stage {
  background: var(--navy-900); border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 1.6rem); box-shadow: var(--shadow);
}
.vo-mech__stage svg { width: 100%; height: auto; display: block; }
.vo-mech__steps { list-style: none; margin: 0; padding: 0; counter-reset: mech; }
.vo-mech__steps li {
  counter-increment: mech; display: grid; grid-template-columns: 2.1rem 1fr;
  gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.vo-mech__steps li:last-child { border-bottom: 0; }
.vo-mech__steps li::before {
  content: counter(mech); display: flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--cream-2); border: 1px solid rgba(201, 162, 39, 0.5);
  font-family: var(--font-display); font-weight: 700; color: var(--wood-dk); font-size: 0.95rem;
}
.vo-mech__steps h3 { font-size: 1rem; margin-bottom: 0.1rem; }
.vo-mech__steps p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
/* Spin the rotor + wobble the diaphragm only while she's actually sounding. */
.vo-mech__stage .mech-rotor { transform-origin: 118px 96px; }
.vo-mech__stage.is-running .mech-rotor { animation: vo-spin 0.45s linear infinite; }
.vo-mech__stage.is-running .mech-dia { animation: vo-wobble 0.09s ease-in-out infinite; }
.vo-mech__stage.is-running .mech-wave { animation: vo-emit 0.9s ease-out infinite; }
.vo-mech__stage .mech-wave { opacity: 0; transform-origin: 262px 96px; }
@keyframes vo-spin { to { transform: rotate(360deg); } }
@keyframes vo-wobble { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(2.4px); } }
@keyframes vo-emit { 0% { opacity: 0.85; transform: scale(0.55); } 100% { opacity: 0; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) {
  .vo-mech__stage.is-running .mech-rotor,
  .vo-mech__stage.is-running .mech-dia,
  .vo-mech__stage.is-running .mech-wave { animation: none; }
}
.vo-mech__try {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  background: var(--brass); border: 0; color: var(--navy-900); font-weight: 700;
}
.vo-mech__try:hover { background: var(--brass-lt); }
.vo-mech__try:focus-visible { outline: 3px solid var(--navy-800); outline-offset: 3px; }

/* ---------- Sound-signal cross-link -------------------------------------- */
.vo-speak {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-top: clamp(1.4rem, 3.5vw, 2rem);
}
.vo-speak__card {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: rgba(247, 241, 227, 0.06); border: 1px solid rgba(247, 241, 227, 0.18);
  color: var(--cream);
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.vo-speak__card:hover { background: rgba(247, 241, 227, 0.11); border-color: var(--brass); transform: translateY(-3px); }
.vo-speak__card:focus-visible { outline: 3px solid var(--brass-lt); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .vo-speak__card:hover { transform: none; } }
.vo-speak__card h3 { color: var(--cream); font-size: 1.1rem; margin-bottom: 0.1rem; }
.vo-speak__card p { margin: 0; font-size: 0.9rem; color: rgba(247, 241, 227, 0.72); }
.vo-speak__card span { margin-top: 0.4rem; font-size: 0.82rem; font-weight: 700; color: var(--brass-lt); }

/* ---------- "Where to next" cards ----------------------------------------
   Same pattern every content page uses (see about.css); repeated here so the
   page stands alone without depending on another page's stylesheet. */
.next-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.next-link { padding: 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.next-link h3 { font-size: 1.15rem; margin: 0; }
.next-link p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }
.next-link .xcard__arrow { color: var(--red); font-weight: 700; font-size: 0.9rem; margin-top: 0.6rem; }
