/* Brite9 Audio — brand palette from the Brite9 sheet.
   accent #5CC5FF, icon fills #318BAF, header & fill #1A1A1A, borders #AFAFAF, alt background #FFFFF3.
   The site is dark: neutrals sit around the header fill, the cream alt background is the text colour. */

@font-face {
  font-family: "Bagnard";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bagnard-latin-400-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #111111;
  --panel: #1A1A1A;
  --raised: #262626;
  --line: #343434;
  --fg: #FFFFF3;
  --mute: #A6A6A0;
  --brite: #5CC5FF;
  --brite-hover: #7ED1FF;
  --deep: #318BAF;
  --warn: #E06C5B;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --display: "Bagnard", Georgia, serif;
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 1;
}
strong, b { font-weight: 500; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brite); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--brite); color: var(--ink); padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Type */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
p { margin: 0; }
.label {
  font-family: var(--mono);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 6px; border: 0;
  font-size: 15px; font-weight: 500; cursor: pointer;
  background: var(--raised); color: var(--fg);
  transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}
.btn:hover { background: var(--line); }
.btn:disabled { opacity: 0.4; pointer-events: none; }
.btn-primary { background: var(--brite); color: var(--ink); }
.btn-primary:hover { background: var(--brite-hover); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--raised); }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--mute); text-decoration: underline; text-underline-offset: 3px;
}
.linklike:hover { color: var(--fg); }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  max-width: 1200px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: flex-end; gap: 5px; text-decoration: none; color: var(--fg); opacity: 0.92; }
.brand:hover { opacity: 1; }
.brand img { height: 34px; width: auto; }
.brand-suffix { font-family: var(--mono); font-weight: 300; font-size: 15px; line-height: 1; margin-bottom: 2px; }

/* Hero */
main { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.hero {
  position: relative;
  padding: clamp(56px, 12vh, 140px) 0 clamp(48px, 8vh, 96px);
  max-width: 820px;
}
.hero .label { margin-bottom: 22px; }
.hero h1 { margin-bottom: 28px; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: var(--measure); color: rgba(255, 255, 243, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.hero-note { font-size: 14px; color: var(--mute); }

.hero-glow {
  position: absolute; right: -120px; top: -40px; z-index: -1;
  width: 520px; height: 520px; opacity: 0.12; pointer-events: none;
  filter: blur(0.5px);
}
.hero-glow img { width: 100%; height: 100%; color: var(--fg); }
@media (max-width: 900px) { .hero-glow { right: -220px; opacity: 0.08; } }

/* Product cards */
.products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
  margin: 24px 0 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.card .label { margin-bottom: 18px; }
.card h2 { margin-bottom: 14px; }
.card p:not(.label) { color: rgba(255, 255, 243, 0.78); }

/* Principles */
.principles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px;
  margin: 72px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.principles .label { margin-bottom: 10px; color: var(--brite); }
.principles p:not(.label) { font-size: 15px; color: var(--mute); }

/* Novem wordmark sign-off */
.novem-mark { display: flex; justify-content: center; padding: 96px 0 64px; }
.novem-mark img { width: min(260px, 50vw); height: auto; color: var(--fg); opacity: 0.55; }

/* Footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  max-width: 1200px; margin: 0 auto; padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--mute);
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: rise 180ms ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  background: transparent; border: 0; border-radius: 6px; font-size: 26px; line-height: 1; cursor: pointer; color: var(--mute);
}
.modal-close:hover { background: var(--raised); color: var(--fg); }
.modal-panel .label { margin-bottom: 12px; }
.modal-panel h2 { margin-bottom: 8px; }
.modal-intro { color: var(--mute); font-size: 15px; margin-bottom: 24px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-weight: 300; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.field input, .field textarea {
  width: 100%; background: var(--ink); color: var(--fg);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 12px; font: inherit; font-size: 15px;
  transition: border-color 150ms ease;
}
.field input { height: 44px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--deep); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--warn); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { color: var(--warn); font-size: 14px; margin: -4px 0 16px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.done h2 { margin-bottom: 8px; }
