/* ==========================================================================
   Earcons — shared site styles
   Premium and quiet: pure white, deep crimson + royal blue, soft depth,
   red→blue gradients. Edit tokens here and every page follows.
   ========================================================================== */

:root {
  color-scheme: light;

  /* color */
  --bg: #ffffff;          /* page */
  --paper: #ffffff;       /* cards, pills */
  --ink: #0b0e24;         /* headings, primary text */
  --fg: var(--ink);
  --body: #3b3f56;        /* long-form copy */
  --muted: #6c7088;       /* captions, meta */
  --line: #e4e6ef;        /* hairlines */
  --wash: #f6f7fb;        /* faint fills */

  --red: #c8102e;         /* deep crimson */
  --blue: #1f3bd1;        /* royal blue */
  --navy: #0a1036;
  --accent: var(--red);

  /* supporting hues (category colours on /sounds) */
  --yellow: #d99a00;
  --pink: #c2185b;
  --purple: #5b2bc4;
  --sky: #0b7fc4;
  --orange: #d9530f;

  --tint-red: #fbe9ec;
  --tint-blue: #e8ecfd;
  --tint-yellow: #fdf4dc;

  /* gradients */
  --grad: linear-gradient(115deg, var(--red) 0%, #7a1fa2 50%, var(--blue) 100%);
  --grad-dark: radial-gradient(120% 140% at 100% 0%, #2a1250 0%, transparent 55%),
               radial-gradient(90% 120% at 0% 100%, #3a0c1f 0%, transparent 60%),
               var(--navy);

  /* shape + motion */
  --border: 1px solid var(--line);
  --shadow-sm: 0 1px 2px rgba(11, 14, 36, .06), 0 4px 12px -4px rgba(11, 14, 36, .10);
  --shadow: 0 1px 2px rgba(11, 14, 36, .05), 0 16px 40px -16px rgba(11, 14, 36, .22);
  --shadow-lg: 0 2px 4px rgba(11, 14, 36, .06), 0 28px 60px -20px rgba(11, 14, 36, .30);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bounce: var(--ease);

  /* layout */
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 64px);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); color: var(--fg); }
body {
  font: 17px/1.6 ui-sans-serif, -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  /* background comes from html; a body background would paint over the z-index:-1 glow */
  min-height: 100vh; display: flex; flex-direction: column;
  padding: 0 var(--gutter);
  position: relative; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* gradient text: <span class="grad">word</span> */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header / nav ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; width: 100%; max-width: var(--max); margin: 0 auto; }
/* Logo: ear mark (/images/earcons-logo.png) + lowercase sans wordmark */
.logo { font-weight: 700; letter-spacing: -0.02em; font-size: 22px; line-height: 1; text-decoration: none; display: flex; gap: 8px; align-items: center; color: var(--ink); }
.logo img { height: 36px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--body); transition: color .2s; }
.site-nav a:not(.btn):hover, .site-nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.site-nav .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent) top / 100% 1px no-repeat; width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; padding: 28px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- type ---------- */
h1, .display { font-size: clamp(46px, 8.6vw, 96px); font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
h1 .blue, .display .blue { color: var(--blue); }
h1 .red, .display .red { color: var(--red); }
h2.title { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); }
.lede { margin-top: 28px; max-width: 34em; color: var(--body); font-size: clamp(18px, 2vw, 21px); }
.prose { color: var(--body); font-size: clamp(17px, 1.8vw, 19px); max-width: 36em; }
.prose p + p { margin-top: 1em; }

/* gradient underline: <span class="squiggle">word<svg …><path …/></svg></span> */
.squiggle { position: relative; display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.squiggle svg { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .5s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn.primary { border-color: transparent; color: #fff; background: linear-gradient(115deg, var(--red), #7a1fa2, var(--blue), #7a1fa2, var(--red)); background-size: 300% 100%; background-position: 0 0; box-shadow: 0 10px 30px -10px rgba(122, 31, 162, .55); }
.btn.primary:hover { background-position: 50% 0; box-shadow: 0 14px 36px -10px rgba(31, 59, 209, .55); }
.site-nav .btn.primary { color: #fff; font-weight: 600; }
.btn svg { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- pills ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--wash); border: var(--border); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--body); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(200, 16, 46, .10); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.pills span { padding: 6px 12px; border-radius: 999px; background: var(--wash); border: var(--border); font-weight: 500; color: var(--body); }

/* ---------- cards ---------- */
.card { background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- page sections ---------- */
.page { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(32px, 7vh, 80px) 0 96px; }
.section { margin-top: clamp(96px, 14vw, 168px); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }

/* full-bleed band that escapes the centred column */
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: var(--gutter); padding-right: var(--gutter); }
.bleed > .inner { max-width: var(--max); margin: 0 auto; }

/* sound-wave canvas drawn by /waves.js: <canvas class="wave" data-wave="lines"></canvas>
   Put it inside an element with .has-wave so it layers behind that element's content. */
.has-wave { position: relative; isolation: isolate; }
.wave { position: absolute; z-index: -1; pointer-events: none; display: block; width: 100%; height: 100%; inset: 0; }
.wave.full { left: calc(50% - 50vw); right: auto; width: 100vw; }

/* hairline that fades out at both ends */
.fade-rule { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }

/* ---------- background glow ---------- */
.blobs { position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: -1; overflow: hidden; }
body > :not(.blobs) { position: relative; }
.blobs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .22; }
.blobs .b1 { width: 520px; height: 520px; right: -160px; top: -200px; background: var(--blue); }
.blobs .b2 { width: 380px; height: 380px; right: 18%; top: 120px; background: var(--red); opacity: .14; }
.blobs .b3, .blobs .b4, .blobs .b5 { display: none; }

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; row-gap: 14px; }
  .site-nav { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- reusable blocks ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* closing call to action */
/* full-bleed gradient that fades in from, and back out to, the white page */
.cta-band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: clamp(160px, 18vw, 240px) var(--gutter); color: #fff; position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(70% 90% at 80% 20%, rgba(255,255,255,.16), transparent 60%), var(--grad);
  text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent);
          mask-image: linear-gradient(transparent, #000 24%, #000 76%, transparent); }
.cta-band > :not(.wave) { position: relative; }
.cta-band h2, .cta-band p { margin-left: auto; margin-right: auto; }
.cta-band .actions { justify-content: center; }
.cta-band h2 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; max-width: 12em; }
.cta-band p { margin-top: 20px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 21px); max-width: 30em; }
.cta-band .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(6px); }
.cta-band .btn.primary { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }
.cta-band .btn:hover { transform: translateY(-1px); }
