/* ============================================================
   BLEEP INDUSTRIES — page structure modeled on midlife.engineering
   product (BLP/X) styled with the ELZN/AUDIO brand system:
   editorial brutalism, paper surfaces, ink borders, signal red,
   zero border-radius, hard offset shadows, no fake knobs
   ============================================================ */

:root {
  --bg: #ebebeb;
  --ink: #141414;
  --ink-faint: #c9cacc;
  --gray: #8a8a8a;
  --accent: #ff611a;

  /* ELZN/AUDIO design tokens (device only) */
  --e-red: #ff3b1f;
  --e-ink: #0a0a0a;
  --e-soft: #44423e;
  --e-paper: #f5f3ed;
  --e-canvas: #ebe9e4;
  --e-shadow: #d8d4cc;

  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "Fragment Mono", monospace;
  --font-grotesk: "Space Grotesk", sans-serif;
  --font-jet: "JetBrains Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  body, a, button { cursor: none; }
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--font-mono); }

/* ============ CUSTOM CURSOR (orange circle) ============ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 300;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.25s;
  opacity: 0.95;
}
.cursor.is-hover { width: 68px; height: 68px; opacity: 0.85; }
.cursor.is-down { width: 32px; height: 32px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ============ FIXED CHROME ============ */
.chrome { position: fixed; z-index: 200; }

.chrome-logo { top: 30px; left: 32px; }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--accent);
  overflow: hidden;
}
.logo-mark svg {
  width: 26px;
  height: 26px;
  transition: transform 0.3s cubic-bezier(.3,1.4,.4,1);
}
.chrome-logo:hover .logo-mark svg { transform: translateX(3px) scale(1.08); }

.chrome-tagline {
  top: 30px;
  left: 59%;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.chrome-menu {
  top: 34px; right: 32px;
  width: 40px; height: 40px;
  border: none;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
}
.chrome-menu span {
  width: 3.5px; height: 3.5px;
  border-radius: 50%;
  background: var(--ink);
}

.chrome-harmony { bottom: 26px; left: 32px; font-size: 0.95rem; font-weight: 600; }
.chrome-credit  { bottom: 26px; right: 32px; font-size: 0.95rem; font-weight: 600; }
.chrome-credit a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ GIANT TYPE ============ */
.giant {
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: -0.045em;
  line-height: 0.86;
  color: var(--ink);
  user-select: none;
}

.giant-line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.giant-line .char { display: inline-block; transform: translateY(115%); }

.giant-overflow { font-size: 36vw; white-space: nowrap; margin-left: -0.03em; }
.giant-fit      { font-size: 16.2vw; white-space: nowrap; margin-left: -0.02em; }

/* ============ SCENES ============ */
.scene { position: relative; }

.scene-hero {
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.giant-hero { transform: translateY(0.05em); width: 100%; }

.scene-intro {
  min-height: 160vh;
  display: flex;
  align-items: center;
  padding: 0 0 0 4vw;
}

.intro-text {
  max-width: 48vw;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.scene-solo { height: 130vh; }

/* word-fill scroll reveal */
.fill-text .w { color: var(--ink-faint); }
.fill-text em { font-style: normal; }

/* ============ SCIENCE SECTION ============ */
.section-science { position: relative; padding-top: 46vh; }

.giant-heading {
  font-size: 15vw;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  text-transform: lowercase;
  margin-bottom: 18vh;
  will-change: transform;
}
.giant-heading span { display: inline-block; }

.benefit {
  max-width: 800px;
  margin: 0 auto 55vh;
  padding: 0 4vw;
}

.statement {
  font-size: clamp(1.5rem, 2.35vw, 2.05rem);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 4.5rem;
}

.benefit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.bcol-label {
  color: var(--gray);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}
.bcol p { font-size: 1rem; color: var(--ink); }

/* ============ SPECS SECTION ============ */
.section-specs { position: relative; padding: 6vh 0 30vh; }

.spec-list {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4vw;
  border-top: 1px solid #d2d2d0;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 2rem;
  padding: 2.4rem 0.6rem;
  border-bottom: 1px solid #d2d2d0;
  transition: padding-left 0.3s;
}
.spec-row:hover { padding-left: 1.6rem; }

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.spec-value { display: flex; align-items: baseline; gap: 0.7rem; justify-self: center; }
.spec-num {
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.spec-row:hover .spec-num { color: var(--accent); }
.spec-value i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gray);
}

.spec-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  text-align: right;
}

/* ============ REVIEWS ============ */
.section-reviews { height: 320vh; position: relative; }

.reviews-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 12vh;
}

.reviews-heading {
  position: absolute;
  top: 6vh;
  left: 0;
  margin: 0;
}

.review-row {
  display: flex;
  gap: 2.5vw;
  padding-left: 6vw;
  width: max-content;
  will-change: transform;
}

.review {
  width: clamp(300px, 30vw, 430px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-dots { display: flex; gap: 5px; }
.review-dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #d4d4d4;
}
.review-dots i.on { background: var(--accent); }

.review-score { font-weight: 700; font-size: 1.05rem; }
.review-score em { font-style: normal; color: var(--gray); font-size: 0.85rem; margin-left: 3px; }

.review blockquote {
  font-size: clamp(1.25rem, 1.75vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray);
  font-weight: 600;
}

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #d8d8d8;
  color: #777;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ============ RETURN SCENE ============ */
.scene-return {
  height: 160vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.giant-return { width: 100%; text-align: center; transform: translateY(-9vh); }
.giant-return .giant-fit { font-size: 26vw; }
.return-note {
  margin-top: 38vh;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gray);
}

/* ============ FOOTER SCENE ============ */
.scene-footer {
  height: 120vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.giant-footer { transform: translateY(0.05em); width: 100%; }

/* ============================================================
   THE PLUGIN — BLP/X  (ELZN/AUDIO brand system)
   hard edges · clear states · zero radius · no blur
   ============================================================ */
.device-wrap {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 100;
  will-change: transform;
}

.device {
  position: relative;
  width: min(1060px, 92vw);
  background: var(--e-paper);
  border: 2px solid var(--e-ink);
  /* extruded metal case: solid side faces instead of a flat shadow */
  box-shadow:
    0 10px 0 #d3cdc0,
    0 12px 0 var(--e-ink),
    6px 10px 0 #d3cdc0,
    8px 12px 0 var(--e-ink),
    22px 34px 0 var(--e-shadow);
  font-family: var(--font-jet);
  color: var(--e-ink);
}

/* case screws */
.screw {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--e-ink);
  background: var(--e-paper);
  z-index: 5;
}
.screw::after {
  content: "";
  position: absolute;
  left: 50%; top: 1px;
  width: 1.5px; height: calc(100% - 2px);
  margin-left: -0.75px;
  background: var(--e-ink);
  transform: rotate(45deg);
}
.screw-tl { top: 10px; left: 12px; }
.screw-tr { top: 10px; right: 12px; }
.screw-bl { bottom: 8px; left: 12px; }
.screw-br { bottom: 8px; right: 12px; }

/* ---- header strip ---- */
.e-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 34px;
  border-bottom: 1.5px solid var(--e-ink);
}
.e-wordmark {
  font-family: var(--font-grotesk);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}
.e-product {
  font-family: var(--font-grotesk);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.e-wordmark i, .e-product i {
  font-style: normal;
  color: var(--e-red);
}
.e-meta {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--e-soft);
}

/* ---- ELZN buttons ---- */
.ebtn {
  font-family: var(--font-jet);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  background: var(--e-paper);
  color: var(--e-ink);
  border: 1.5px solid var(--e-ink);
  border-radius: 0;
  padding: 7px 10px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ebtn:hover { background: #e9e6de; }
.ebtn:active { transform: translate(1px, 1px); }
.ebtn.on {
  background: var(--e-ink);
  color: var(--e-paper);
  box-shadow: inset 0 3px 0 var(--e-red);
}
.ebtn.e-primary {
  background: var(--e-red);
  color: var(--e-paper);
  border-color: var(--e-ink);
}
.ebtn.e-primary:hover { background: #e33012; }
.ebtn.e-primary.playing {
  background: var(--e-ink);
  box-shadow: inset 0 3px 0 var(--e-red);
}

/* ---- row A : io / display / sliders ---- */
.e-rowA {
  display: flex;
  align-items: stretch;
  border-bottom: 1.5px solid var(--e-ink);
}

.e-io {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-right: 1.5px solid var(--e-ink);
  justify-content: space-between;
}

.meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  padding: 4px;
  border: 1.5px solid var(--e-ink);
}
.meter i {
  flex: 1;
  height: 10%;
  background: var(--e-ink);
  transition: height 0.1s ease-out;
}
.meter i.peak { background: var(--e-red); }

.e-power, #autoplay { justify-content: center; }
.device:not(.off) .e-power {
  background: var(--e-ink);
  color: var(--e-paper);
  box-shadow: inset 0 3px 0 var(--e-red);
}

.e-display {
  flex: 1.15;
  position: relative;
  background: var(--e-ink);
  border-right: 1.5px solid var(--e-ink);
  min-height: 168px;
  overflow: hidden;
  /* recessed hardware bezel */
  border-top: 7px solid #262420;
  border-bottom: 7px solid #262420;
  box-shadow: inset 3px 0 0 #262420, inset -3px 0 0 #262420;
}
.lcd {
  width: 100%;
  height: 100%;
  padding: 14px 16px;
  font-family: var(--font-jet);
  font-size: 0.7rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--e-paper);
  white-space: pre-wrap;
  overflow: hidden;
}
.lcd .lc { color: var(--e-red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lcd-viz {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  gap: 3px;
  padding: 14px 16px;
  background: var(--e-ink);
}
.lcd-viz i {
  flex: 1;
  height: 10%;
  background: var(--e-paper);
  transition: height 0.12s ease-out;
}
.lcd-viz.on { display: flex; }

.e-sliders {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
}

.sgroup { display: flex; flex-direction: column; gap: 5px; }

.srow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.slabel {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--e-soft);
}
.sval {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--e-ink);
}

.eslider {
  position: relative;
  height: 18px;
  border: 1.5px solid var(--e-ink);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 9px,
    rgba(10, 10, 10, 0.16) 9px, rgba(10, 10, 10, 0.16) 10px
  );
  touch-action: none;
}
.eslider .fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  background: var(--e-ink);
}
.eslider .handle {
  position: absolute;
  top: -1.5px; bottom: -1.5px;
  left: 50%;
  width: 5px;
  background: var(--e-red);
  border: 1px solid var(--e-ink);
}

/* ---- row B / row D : button groups ---- */
.e-rowB, .e-rowD {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1.5px solid var(--e-ink);
}

.e-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.e-glabel {
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--e-soft);
  margin-right: 6px;
}

.rec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--e-red);
  display: inline-block;
}
#record.recording .rec-dot { animation: blink 0.8s steps(1) infinite; }

/* ---- row C : 16 step cells ---- */
.e-rowC {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  border-bottom: 1.5px solid var(--e-ink);
}

.step {
  aspect-ratio: 1.15;
  border: none;
  border-right: 1px solid var(--e-ink);
  background: var(--e-paper);
  font-family: var(--font-jet);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--e-soft);
  border-radius: 0;
  transition: background 0.1s, color 0.1s, box-shadow 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step:last-child { border-right: none; }
.step:hover { background: #e9e6de; }
.step.active {
  background: var(--e-ink);
  color: var(--e-paper);
  box-shadow: inset 0 3px 0 var(--e-red);
}
.step.current {
  background: var(--e-red);
  color: var(--e-paper);
  box-shadow: none;
}

/* ---- row E : ambience matrix ---- */
.e-rowE {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  border-bottom: 1.5px solid var(--e-ink);
}
.amb {
  border: none;
  border-right: 1px solid var(--e-ink);
  border-radius: 0;
  background: var(--e-paper);
  font-family: var(--font-jet);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: var(--e-soft);
  padding: 10px 0;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.amb:last-child { border-right: none; }
.amb:hover { background: #e9e6de; }
.amb.on {
  background: var(--e-ink);
  color: var(--e-paper);
  box-shadow: inset 0 3px 0 var(--e-red);
}

/* ---- hardware edge : speaker + jacks ---- */
.e-ports {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 18px;
  border-bottom: 1.5px solid var(--e-ink);
}

.spk-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 340px;
}
.spk {
  flex: 1;
  height: 24px;
  border: 1.5px solid var(--e-ink);
  background-image: radial-gradient(circle, var(--e-ink) 1.6px, transparent 1.9px);
  background-size: 7px 7px;
  background-position: 3px 3px;
}

.ports {
  display: flex;
  align-items: center;
  gap: 20px;
}
.port {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: var(--e-soft);
}
.jack {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--e-ink);
  background: var(--e-paper);
  position: relative;
  display: inline-block;
}
.jack::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--e-ink);
}
.usb {
  width: 18px; height: 9px;
  border: 1.5px solid var(--e-ink);
  border-radius: 4px;
  background: var(--e-paper);
  display: inline-block;
}

/* ---- meta strip ---- */
.e-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 34px;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: var(--e-soft);
}

/* device disabled state */
.device.off .ebtn:not(.e-power),
.device.off .step,
.device.off .amb,
.device.off .eslider { opacity: 0.55; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .chrome-tagline { left: auto; right: 90px; text-align: right; font-size: 0.85rem; }

  .device-wrap {
    position: relative;
    left: 0; top: 0;
    transform: none !important;
    display: flex;
    justify-content: center;
    padding: 16vh 4vw 0;
    z-index: 10;
  }

  .device { box-shadow: 8px 8px 0 var(--e-shadow); }

  .e-head { flex-wrap: wrap; }
  .e-meta { display: none; }

  .e-rowA { flex-direction: column; }
  .e-io {
    flex-direction: row;
    border-right: none;
    border-bottom: 1.5px solid var(--e-ink);
    align-items: center;
  }
  .meter { height: 34px; width: 90px; }
  .e-display { border-right: none; border-bottom: 1.5px solid var(--e-ink); min-height: 130px; }

  .e-rowB, .e-rowD { flex-direction: column; align-items: flex-start; gap: 10px; }
  .e-rowC, .e-rowE { grid-template-columns: repeat(8, 1fr); }
  .step:nth-child(8), .amb:nth-child(8) { border-right: none; }
  .step:nth-child(-n+8) { border-bottom: 1px solid var(--e-ink); }
  .amb:nth-child(-n+8) { border-bottom: 1px solid var(--e-ink); }

  .e-foot { flex-direction: column; gap: 4px; }
  .e-ports { flex-direction: column; align-items: stretch; gap: 10px; }
  .spk-wrap { max-width: none; }
  .ports { flex-wrap: wrap; gap: 12px; }

  .scene-hero { height: auto; padding-top: 8vh; }
  .scene-intro { min-height: auto; padding: 18vh 6vw; }
  .intro-text { max-width: none; }
  .scene-solo { display: none; }

  .section-science { padding-top: 10vh; }
  .benefit { margin-bottom: 22vh; }
  .benefit-cols { grid-template-columns: 1fr; gap: 2rem; }

  .section-specs { padding-bottom: 14vh; }
  .spec-row { grid-template-columns: 1fr auto; }
  .spec-note { grid-column: 1 / -1; text-align: left; }

  .section-reviews { height: auto; }
  .reviews-pin {
    position: static;
    height: auto;
    overflow-x: auto;
    padding: 4vh 0 8vh;
  }
  .reviews-heading { position: static; margin-bottom: 6vh; }
  .review-row { padding: 0 6vw; }

  .scene-return { height: auto; padding: 10vh 0 4vh; }
  .return-note { margin-top: 4vh; }

  .scene-footer { height: auto; padding-top: 14vh; }
}
