/* =========================================================
   Audire LLC · "software that listens"
   Palette : midnight concert hall · warm ivory · brass
   Type    : Fraunces (display) · IBM Plex Sans (body) ·
             IBM Plex Mono (labels + process line)
   ========================================================= */

:root {
  --midnight:      #0B0E16;
  --raised:        #121826;
  --ivory:         #ECE6D7;
  --muted:         #8B8778;
  --brass:         #C9A45C;
  --brass-bright:  #E6C57E;
  --line:          rgba(236, 230, 215, 0.10);
  --line-strong:   rgba(236, 230, 215, 0.18);

  --maxw: 1080px;
  --pad: clamp(1.25rem, 5vw, 3rem);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--midnight);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Shared type devices ---------- */
.eyebrow,
.section__eyebrow,
.process__line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 22, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ivory);
}
.wordmark__glyph {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.15);
  flex: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.95rem;
}
.nav__links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ivory); }
.nav__ext { color: var(--brass) !important; }
.nav__ext:hover { color: var(--brass-bright) !important; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3rem, 7vw, 5rem);
}
.hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(900px, 120%);
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(201, 164, 92, 0.14), transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 1.4rem 0 0;
}

.lead {
  max-width: 46ch;
  margin: 1.6rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ivory);
}
.lead em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--brass-bright);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease,
              color 0.2s ease, border-color 0.2s ease;
}
.btn--primary {
  background: var(--brass);
  color: var(--midnight);
  font-weight: 500;
}
.btn--primary:hover {
  background: var(--brass-bright);
  transform: translateY(-2px);
}
.btn--ghost {
  color: var(--ivory);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }

.hero__note {
  margin-top: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- Signature: the level meter ---------- */
.meter {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 76px;
  margin-top: 3rem;
}
.meter span {
  flex: none;
  width: 5px;
  height: 100%;
  background: linear-gradient(to top, var(--brass), var(--brass-bright));
  transform-origin: bottom;
  transform: scaleY(0.2);
  border-radius: 1px;
  opacity: 0.9;
  animation: listen 1.9s ease-in-out infinite;
}
/* organic, staggered heights + timing */
.meter span:nth-child(1)  { animation-delay: -0.2s;  animation-duration: 2.1s; }
.meter span:nth-child(2)  { animation-delay: -1.1s;  animation-duration: 1.7s; }
.meter span:nth-child(3)  { animation-delay: -0.5s;  animation-duration: 2.4s; }
.meter span:nth-child(4)  { animation-delay: -1.6s;  animation-duration: 1.5s; }
.meter span:nth-child(5)  { animation-delay: -0.9s;  animation-duration: 2.2s; }
.meter span:nth-child(6)  { animation-delay: -0.3s;  animation-duration: 1.8s; }
.meter span:nth-child(7)  { animation-delay: -1.3s;  animation-duration: 2.6s; }
.meter span:nth-child(8)  { animation-delay: -0.7s;  animation-duration: 1.6s; }
.meter span:nth-child(9)  { animation-delay: -1.9s;  animation-duration: 2.0s; }
.meter span:nth-child(10) { animation-delay: -0.4s;  animation-duration: 2.3s; }
.meter span:nth-child(11) { animation-delay: -1.2s;  animation-duration: 1.7s; }
.meter span:nth-child(12) { animation-delay: -0.6s;  animation-duration: 2.5s; }
.meter span:nth-child(13) { animation-delay: -1.5s;  animation-duration: 1.9s; }
.meter span:nth-child(14) { animation-delay: -0.8s;  animation-duration: 2.1s; }

@keyframes listen {
  0%, 100% { transform: scaleY(0.18); opacity: 0.55; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* =========================================================
   PROCESS LINE
   ========================================================= */
.process {
  border-block: 1px solid var(--line);
  padding-block: 1.4rem;
}
.process__line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.process__line span { color: var(--brass); margin-inline: 0.55rem; }
.process__line strong { color: var(--ivory); font-weight: 500; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--alt {
  background: var(--raised);
  border-block: 1px solid var(--line);
}

.section__eyebrow { display: block; margin-bottom: 1.6rem; }

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
}

/* Mission: two-column label / body */
.section__grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.section__grid .section__eyebrow { margin-bottom: 0; padding-top: 0.5rem; }
.section__body p {
  max-width: 60ch;
  margin: 0 0 1.2rem;
  color: var(--ivory);
}
.section__body p:last-child { margin-bottom: 0; }
.section__title--wide { max-width: 18ch; }

/* =========================================================
   PRODUCTS
   ========================================================= */
.product {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.product:hover { border-color: rgba(201, 164, 92, 0.4); transform: translateY(-3px); }
.product--soon { opacity: 0.82; }
.product--soon:hover { transform: none; }

.product__head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}
.product__mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brass);
  letter-spacing: -0.08em;
  flex: none;
}
.product__mark--soon {
  font-size: 2rem;
  color: var(--muted);
  letter-spacing: 0;
}
.product__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0;
}
.product__tag {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.product__desc {
  max-width: 62ch;
  margin: 0 0 1.3rem;
  color: var(--ivory);
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { color: var(--brass-bright); border-color: var(--brass-bright); }

/* =========================================================
   CAPABILITIES
   ========================================================= */
.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 0.5rem;
}
.cap { border-top: 1px solid var(--line-strong); padding-top: 1.3rem; }
.cap__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}
.cap p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: center; }
.contact .section__eyebrow { margin-bottom: 1.2rem; }
.contact__lead {
  max-width: 42ch;
  margin: 0 auto 2.2rem;
  color: var(--muted);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.footer__inner { display: grid; gap: 1rem; }
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.footer__tag { margin: 0; max-width: 48ch; color: var(--muted); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.footer__links a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--brass); }
.footer__fine {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(139, 135, 120, 0.7);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 720px) {
  .nav__links { gap: 0.9rem; font-size: 0.85rem; }
  .nav__links a:not(.nav__ext) { display: none; }
  .section__grid { grid-template-columns: 1fr; }
  .section__grid .section__eyebrow { padding-top: 0; }
  .caps { grid-template-columns: 1fr; }
  .meter { height: 60px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  /* freeze the meter in a pleasing static shape */
  .meter span { transform: scaleY(0.55); opacity: 0.9; }
  .meter span:nth-child(2n) { transform: scaleY(0.85); }
  .meter span:nth-child(3n) { transform: scaleY(0.35); }
}
