/* QUASI — one stylesheet for every page, in the Graphite palette. */

:root {
  --bg: #0f1012;
  --surface: #17181b;
  --surface-2: #1f2024;
  --text: #ecebe7;
  --muted: #9a978f;
  --line: #2a2b30;
  --accent: #ff7a3d;
  --on-accent: #111111;
  --shot-bg: #0b0c0e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

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

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* ---- header ------------------------------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-weight: 800; letter-spacing: .18em; font-size: 15px; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--text); }

/* ---- type -------------------------------------------------------------------------------------- */
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 700; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

/* ---- buttons ----------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 6px; font-weight: 650; font-size: 14px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px; background: var(--surface-2); color: var(--muted);
}
.tag.go { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }

/* ---- home: hero + product list ----------------------------------------------------------------- */
.hero { padding: 72px 0 40px; }
.hero h1 { max-width: 820px; }
.hero .lead { margin-top: 18px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 28px; }
.filters button {
  height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 13px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.products { display: grid; gap: 20px; padding-bottom: 80px; }
.product {
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 32px;
  text-decoration: none; transition: border-color .2s, transform .2s;
}
.product:hover { border-color: var(--accent); transform: translateY(-2px); }
.product .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.product h2 { margin-bottom: 6px; }
.product .kind { color: var(--accent); font-weight: 650; font-size: 15px; margin-bottom: 14px; }
.product p { color: var(--muted); margin: 0 0 22px; }
.product .more { font-weight: 700; font-size: 14px; }
.product .more::after { content: " \2192"; }
.shot { background: var(--shot-bg); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shot img { width: 100%; height: auto; }
.shot.tall img { max-height: 420px; width: auto; }

/* ---- product page ------------------------------------------------------------------------------ */
.p-hero { padding: 56px 0 36px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.p-hero .kind { color: var(--accent); font-weight: 650; margin: 10px 0 16px; }
.p-hero .btns { margin-top: 26px; }
.p-hero .formats { margin-top: 18px; font-size: 13px; color: var(--muted); }

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { margin-bottom: 10px; }
.section > .wrap > .lead { margin-bottom: 30px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.feature { background: var(--surface); padding: 26px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery .shot { aspect-ratio: auto; }

/* sounds */
.sounds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sound {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
}
.sound button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
}
.sound button svg { width: 16px; height: 16px; fill: currentColor; }
.sound .name { font-weight: 650; font-size: 15px; }
.sound .what { font-size: 13px; color: var(--muted); }
.sound .bar { grid-column: 2 / 4; height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-top: -4px; }
.sound .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.sound .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sound.missing { opacity: .5; }

/* specs */
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 32%; color: var(--muted); font-weight: 600; }

/* downloads */
.dl { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 760px; }

/* about + support on home */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* ---- footer ------------------------------------------------------------------------------------ */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .cols { display: flex; gap: 40px; flex-wrap: wrap; }
.foot .cols div { display: grid; gap: 6px; }
.foot strong { color: var(--text); font-size: 12px; letter-spacing: .12em; }

/* ---- narrow screens ---------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .product, .p-hero, .split { grid-template-columns: 1fr; gap: 24px; }
  .product { padding: 20px; }
  .features { grid-template-columns: 1fr; }
  .sounds, .gallery { grid-template-columns: 1fr; }
  }

/* a section's title straight above its grid / table */
.section .wrap > h2 { margin-bottom: 24px; }
.section .wrap > h2 + .lead { margin-top: -12px; }

/* full-size pictures */
.shot img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 32px;
  background: rgba(5, 6, 8, 0.92); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox .lb-close {
  position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.22); }
body.lb-on { overflow: hidden; }
@media (max-width: 860px) { .lightbox { padding: 12px; } }

/* video: a 16:9 frame; a placeholder until there is a video, then YouTube only after a click */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--shot-bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon, .video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font: inherit; font-size: 15px; }
.video-play { width: 100%; border: 0; background: transparent; cursor: pointer; color: var(--text); }
.video-soon svg, .video-play svg { width: 64px; height: 64px; padding: 20px 18px 20px 22px; border-radius: 50%; box-sizing: border-box; fill: currentColor; border: 1px solid var(--line); background: var(--surface); }
.video-play svg { fill: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.video-play:hover svg { transform: scale(1.06); }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.15) 60%); }
.video:has(iframe)::after { display: none; }
.video-soon, .video-play { z-index: 1; }
.video-soon { color: var(--text); text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.video iframe { z-index: 2; }
