/* Hallmark · Bloop landing · system: DESIGN.md (locked) · genre: atmospheric · shape: hero stage, outputs, steps, proof lanes, poster CTA · signature: the studio recording live, built in HTML with the brand's 3D characters */
/* Critique: one idea per screen, the product shown not described; lime stays a signal (speaker ring, karaoke word, CTA hover), red only for the recording pill; motion is transform/opacity, off under reduced motion. */
/* waive 24b: spacing follows DESIGN.md's own scale (6, 10, 16, 24 and the studio's 14), not a 4px grid. waive 29: glass is DESIGN.md's « Pill over media », over the sticky nav and the name tags only. */

@font-face { font-family: "Chubbo"; src: url("/fonts/chubbo-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --font-display: "Chubbo", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;

  --ink: #0b0b0b;
  --s1: #141414;
  --s2: #1c1c1c;
  --s3: #252525;
  --s4: #303030;
  --s5: #444444;
  --quiet: #8a8a8a;
  --muted: #aaaaaa;
  --text: #ededeb;
  --paper: #f1f1ef;
  --lime: #d3ff5c;
  --sage: #c4dfb6;
  --ice: #c7e4f1;
  --rec: #c8424a;
  --danger: #ff5a5a;
  --glass: rgb(11 11 11 / 0.62);
  --nav-bg: rgb(11 11 11 / 0.8);
  --shadow: rgb(0 0 0 / 0.55);

  --r-btn: 14px;
  --r-media: 18px;
  --r-poster: 22px;
  --r-block: 24px;
  --r-pill: 999px;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { overflow-x: clip; }

html { background: var(--ink); color-scheme: dark; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-synthesis: none;
  overflow-wrap: break-word;
  min-width: 0;
}

h3 { margin: 0; font-size: 19px; font-weight: 600; }

p { margin: 0; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; transition: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-btn);
  font: 500 15px/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: var(--lime); }

.btn-ink { background: var(--ink); color: var(--text); }
.btn-ink:hover { background: var(--s3); }

.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }

.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--s5); transition: text-decoration-color 160ms var(--ease); }
.link:hover { text-decoration-color: var(--lime); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--s2);
}

.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-actions { display: flex; align-items: center; gap: 22px; font-size: 15px; }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vh, 96px) 0 clamp(64px, 10vh, 120px); }

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { font-size: clamp(44px, 6.2vw, 82px); line-height: 1.02; }
.lede { margin-top: 24px; max-width: 30ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }
.note { font-size: 14px; color: var(--quiet); }

.hero-visual { position: relative; padding: 36px 0; }

/* The brand's 3D tiles drift around the studio. */
.float {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(0 18px 30px var(--shadow));
  animation: drift 9s ease-in-out infinite;
}
.float-a { width: 112px; bottom: -14px; left: -40px; rotate: -10deg; }
.float-b { width: 96px; top: -58px; right: -30px; rotate: 9deg; animation-delay: -3s; }
.float-c { width: 80px; bottom: 18%; right: -38px; rotate: 6deg; animation-delay: -6s; }

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- The studio (built, not a screenshot) ---------- */

.studio {
  position: relative;
  z-index: 1;
  background: var(--s1);
  border: 1px solid var(--s3);
  border-radius: var(--r-block);
  box-shadow: 0 40px 80px -30px var(--shadow);
  overflow: hidden;
}

.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--s3);
  font-size: 13px;
}

.studio-title { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pill-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--rec);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill-rec::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text);
  animation: breathe 1.6s ease-in-out infinite;
}

@keyframes breathe { 50% { opacity: 0.3; } }

.studio-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 14px; }

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--r-media);
  background: var(--s2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tile img { width: 64%; transform-origin: 50% 85%; }

/* Who speaks: a lime ring fades in, the face nods. The two alternate. */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--lime);
  border-radius: inherit;
  opacity: 0;
}
.tile-host::after { animation: speaking 8s steps(1) infinite; }
.tile-guest::after { animation: speaking 8s steps(1) -4s infinite; }
.tile-host img { animation: talk 8s ease-in-out infinite; }
.tile-guest img { animation: talk 8s ease-in-out -4s infinite; }

@keyframes speaking { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes talk {
  0%, 50%, 100% { transform: translateY(0) scale(1); }
  6%, 18%, 30%, 42% { transform: translateY(-3px) scale(1.02); }
  12%, 24%, 36% { transform: translateY(0) scale(1); }
}

.tile figcaption { position: absolute; left: 10px; bottom: 10px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 9px; background: var(--glass); backdrop-filter: blur(8px); font-size: 13px; font-weight: 500; }

.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.tile .bars { position: absolute; top: 12px; right: 12px; padding: 6px 7px; border-radius: 8px; background: var(--glass); height: auto; }
.bars i { width: 3px; border-radius: 1px; background: var(--s5); }
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 8px; }
.bars i:nth-child(3) { height: 12px; }
.bars.is-good i { background: var(--sage); }

.studio-dock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 16px;
}
.dock-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--s3); color: var(--text); }
.dock-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock-stop, .dock-star { padding: 9px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.dock-stop { margin-left: 6px; background: var(--text); color: var(--ink); }
.dock-star { background: var(--s3); color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */

section h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; max-width: 22ch; }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 18px; }

.outputs, .guests, .safe { padding: clamp(72px, 11vh, 128px) 0; border-top: 1px solid var(--s2); }

/* Three outputs, not three equal cards: the clip tall on the left, the post and the podcast stacked. */
.outputs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: 48px;
}

.out {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: var(--s1);
  border: 1px solid var(--s3);
  border-radius: var(--r-block);
}
.out-clip { grid-row: span 2; }
.out-text p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.phone {
  position: relative;
  align-self: center;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  border-radius: var(--r-poster);
  background: var(--s2);
  border: 1px solid var(--s3);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.phone img { width: 78%; margin-top: -30%; }

.subs {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 18%;
  text-align: center;
  font: 800 21px/1.15 var(--font-body);
  text-transform: uppercase;
}
.subs span { display: inline-block; opacity: 0.35; animation: karaoke 6s steps(1) infinite; }
.subs span.hot { color: var(--lime); }
.subs span:nth-child(1) { animation-delay: 0s; }
.subs span:nth-child(2) { animation-delay: 0.35s; }
.subs span:nth-child(3) { animation-delay: 0.7s; }
.subs span:nth-child(4) { animation-delay: 1.05s; }
.subs span:nth-child(5) { animation-delay: 1.4s; }
.subs span:nth-child(6) { animation-delay: 2s; }
.subs span:nth-child(7) { animation-delay: 2.35s; }
.subs span:nth-child(8) { animation-delay: 2.7s; }

@keyframes karaoke { 0% { opacity: 1; } 75% { opacity: 0.35; } }

.clip-score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.post { padding: 18px; background: var(--s2); border-radius: var(--r-media); font-size: 15px; line-height: 1.5; }
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 14px; }
.post-head small { color: var(--quiet); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 700; }
.post-line + .post-line { margin-top: 10px; }

.player { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--s2); border-radius: var(--r-media); }
.player img { width: 52px; flex: none; }
.time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.wave { flex: 1; display: flex; align-items: center; gap: 4px; height: 44px; }
.wave i { flex: 1; height: 100%; border-radius: 3px; background: var(--ice); transform-origin: center; animation: wave 1.6s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -0.4s; }
.wave i:nth-child(3n + 1) { animation-delay: -0.9s; }
.wave i:nth-child(4n) { animation-duration: 1.2s; }
.wave i:nth-child(5n) { animation-duration: 2s; }

@keyframes wave { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(0.9); } }

/* ---------- Guests ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--s3);
  position: relative;
}
/* A lime line runs across the four steps when they come into view. */
.steps::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--lime);
  transform-origin: left;
  transform: scaleX(1);
}
.js .steps:not(.is-in)::before { transform: scaleX(0); }
.js .steps.is-in::before { transition: transform 1.6s var(--ease) 0.2s; }

.steps li { padding: 26px 20px 0 0; font-size: 18px; font-weight: 500; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--s3); }
.step-n { display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: 34px; color: var(--quiet); }

/* ---------- Proof lanes ---------- */

.safe-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.safe-copy p { margin-top: 20px; color: var(--muted); max-width: 46ch; }

.lanes { display: grid; gap: 14px; padding: 24px; background: var(--s1); border: 1px solid var(--s3); border-radius: var(--r-block); }
.lane { display: grid; grid-template-columns: 128px minmax(0, 1fr) 44px; gap: 14px; align-items: center; font-size: 14px; }
.lane-name { color: var(--muted); }
.lane-track { position: relative; height: 26px; border-radius: 8px; background: var(--s2); overflow: hidden; }

/* The call stutters: segments blink out. */
.lane-call { display: flex; gap: 3px; padding: 6px; }
.lane-call i { flex: 1; border-radius: 3px; background: var(--muted); animation: stutter 3.2s steps(1) infinite; }
.lane-call i:nth-child(3) { animation-delay: -0.8s; }
.lane-call i:nth-child(4) { animation-delay: -0.8s; }
.lane-call i:nth-child(6) { animation-delay: -2s; }
.lane-call i:nth-child(1), .lane-call i:nth-child(2), .lane-call i:nth-child(5), .lane-call i:nth-child(7), .lane-call i:nth-child(8) { animation: none; }
@keyframes stutter { 0% { opacity: 1; } 40% { opacity: 0.12; } 70% { opacity: 1; } }

.bars.is-flaky i { background: var(--s5); }
.bars.is-flaky i:nth-child(1) { background: var(--danger); animation: flaky 3.2s steps(1) infinite; }
@keyframes flaky { 0% { opacity: 1; } 70% { opacity: 0.4; } }

/* The recording never breaks: one lime bar fills. */
.lane-rec b { position: absolute; inset: 6px; border-radius: 3px; background: var(--lime); transform-origin: left; animation: fill 3.2s var(--ease) infinite; }
@keyframes fill { 0% { transform: scaleX(0.08); } 85%, 100% { transform: scaleX(1); } }
.lane-ok { color: var(--sage); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Final ---------- */

.final { padding: 0 0 clamp(72px, 11vh, 128px); }

.poster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--r-poster);
  background: var(--lime);
  color: var(--ink);
}
.poster h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 14ch; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--s2); padding: 32px 0 40px; font-size: 14px; color: var(--quiet); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; transition: color 160ms var(--ease); }
.foot a:hover { color: var(--text); }
.copy { margin-left: auto; }

/* ---------- Reveal (only with JS: without it everything is simply there) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero .reveal:nth-child(2) { transition-delay: 90ms; }
.js .hero .reveal:nth-child(3) { transition-delay: 180ms; }
.js .outputs-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.js .outputs-grid .reveal:nth-child(3) { transition-delay: 200ms; }

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  .hero-in, .safe-in { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 620px; }
  .outputs-grid { grid-template-columns: minmax(0, 1fr); }
  .out-clip { grid-row: auto; }
  .float-c { display: none; }
}

@media (max-width: 640px) {
  .nav-actions .link { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .lane { grid-template-columns: 96px minmax(0, 1fr) 40px; }
  .float-a { width: 80px; left: -10px; bottom: -20px; }
  .float-b { width: 72px; right: -6px; }
  .studio-dock .dock-star { display: none; }
  .copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .steps:not(.is-in)::before { transform: none; }
  .subs span { opacity: 1; }
  .tile-host::after { opacity: 1; }
}
