/* David Dubé · rhythmic cutlist, playful poster.
   Palette from the original site: blue #449BE5, red #E54444, yellow #FFDE6D.
   One dark ink is used on every bright ground (it clears 4.5:1 on all three). */

:root {
  --blue:   #449be5;
  --red:    #e54444;
  --yellow: #ffde6d;
  --paper:  #fff8ea;
  --ink:    #0e1120;
  --ink-2:  #2a2f45;

  --sc-canvas: var(--paper);
  --sc-surface: #fff1d4;
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-2);
  --sc-accent: var(--red);
  --sc-accent-ink: var(--ink);
  --sc-font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --sc-font-text: "Outfit", system-ui, sans-serif;

  --bar-h: 64px;
  --r: 18px;
  --shadow: 0 10px 24px -8px rgba(14, 17, 32, 0.35), 0 2px 4px rgba(14, 17, 32, 0.12);
}

html { scroll-padding-top: var(--bar-h); }
body { font-size: 1.08rem; }
::selection { background: var(--yellow); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.cut--ink :focus-visible { outline-color: var(--yellow); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.2rem/1 var(--sc-font-text);
  padding: .85rem 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 14px -6px rgba(229, 68, 68, 0.8); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--lg { font-size: 1.25rem; padding: 1.05rem 1.8rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--red:hover { background: #d63636; transform: translateY(-2px); }
  .btn--ink:hover { background: #20253d; transform: translateY(-2px); }
}
.link { font-weight: 700; color: var(--ink); }

/* ---------- the loud bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 0 clamp(.75rem, 3vw, 2rem);
  background: var(--ink); color: var(--paper);
}
.bar__mark { min-width: max-content; white-space: nowrap; display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1.15rem/1 var(--sc-font-display); letter-spacing: -0.01em; }
.bar__mark img { width: 40px; height: 40px; }
.bar__watch { justify-self: center; display: flex; align-items: baseline; gap: .7rem; }
.bar__label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.bar__time { font: 800 1.6rem/1 var(--sc-font-display); min-width: 3.2ch; color: #fff; }
.bar__time.is-done { color: var(--yellow); }
.bar__badge {
  font: 700 .85rem/1 var(--sc-font-text); color: var(--ink); background: var(--paper);
  border: 0; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; align-self: center;
  display: inline-flex; gap: .45rem; align-items: center;
}
.bar__badge[hidden], .read[hidden], .form__err[hidden] { display: none; }
.bar__badge i { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.bar__nav { display: flex; align-items: center; gap: 1.4rem; }
.bar__nav a:not(.btn) { color: var(--paper); text-decoration: none; font-weight: 600; }
.bar__nav a:not(.btn):hover { color: var(--yellow); }
.bar__nav .btn { font-size: 1.2rem; padding: .7rem 1.2rem; }
.bar__fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow) 50%, var(--red));
  transform-origin: 0 50%; transform: scaleX(var(--watch, 0));
}
@media (max-width: 400px) { .bar { gap: .6rem; } .bar__badge { display: none !important; } }
@media (max-width: 900px) {
  .bar__nav a:not(.btn) { display: none; }
  .bar__label { display: none; }
  .bar__mark { gap: .4rem; font-size: 1rem; }
  .bar__mark img { width: 32px; height: 32px; }
  .bar__time { font-size: 1.3rem; }
  .bar__badge { font-size: 0; gap: 0; padding: .45rem; }
  .bar__badge i { width: .8rem; height: .8rem; }
  .bar__nav .btn { font-size: 1.2rem; padding: .6rem 1rem; }
}

/* ---------- the read card (the peak) ---------- */
.read {
  position: fixed; z-index: 49; top: calc(var(--bar-h) + 1rem); left: 50%;
  width: min(560px, calc(100vw - 2rem));
  background: var(--paper); color: var(--ink);
  border-radius: 22px; padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -24px) scale(0.95); opacity: 0;
  transition: transform 420ms var(--sc-ease-out), opacity 300ms var(--sc-ease-out);
  pointer-events: none;
}
.read.is-open { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.read__kicker { margin: 0 0 .5rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; color: var(--ink-2); }
.read__type { margin: 0 0 .6rem; display: flex; align-items: center; gap: .7rem; font: 800 clamp(2rem, 6vw, 2.8rem)/1 var(--sc-font-display); letter-spacing: -0.02em; }
.read__chip { width: 1.1em; height: 1.1em; border-radius: 50%; flex: none; box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.read__line { margin: 0 0 .8rem; font-size: 1.12rem; }
.read__facts { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--sc-surface); font-size: .98rem; }
.read__fine { margin: 0; font-size: .82rem; color: var(--ink-2); }
.read__close { position: absolute; top: .6rem; right: .7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.read__close:hover { background: var(--sc-surface); }
@media (prefers-reduced-motion: reduce) { .read { transition: opacity 200ms linear; transform: translate(-50%, 0); } }

/* ---------- cuts: each one a hard ground ---------- */
.cut {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 6vw, 5rem);
  color: var(--ink);
}
.cut--paper  { background: var(--paper); }
.cut--yellow { background: var(--yellow); }
.cut--blue   { background: var(--blue); }
.cut--red    { background: var(--red); }
.cut--ink    { background: var(--ink); color: var(--paper); }
.cut > * { max-width: 78rem; margin-inline: auto; min-width: 0; }

.h2 {
  font: 800 var(--sc-t-3xl)/0.98 var(--sc-font-display);
  letter-spacing: -0.035em; text-wrap: balance; margin: 0 0 1.2rem;
}
p { text-wrap: pretty; }

/* 1 hero */
.hero {
  min-height: 100svh; padding-top: calc(var(--bar-h) + 2rem); padding-bottom: 0;
  display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: stretch; gap: 1rem;
}
.hero__copy { padding-bottom: 4rem; align-self: center; position: relative; z-index: 1; }
.hero__h1 {
  font: 800 clamp(3.2rem, 1.6rem + 6.4vw, 7.2rem)/0.92 var(--sc-font-display);
  letter-spacing: -0.045em; margin: 0 0 1.4rem; text-wrap: balance;
}
.hero__h1 span { display: inline-block; }
.hero__h1 .hl { background: var(--yellow); padding: 0 .12em; border-radius: .12em; transform: rotate(-1.5deg); }
.hero__sub { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); max-width: 34ch; margin: 0 0 2rem; color: var(--ink-2); }
/* Fill the full height of the first screen and crop toward David,
   rather than shrinking the whole wide photo to fit half the width. */
.hero__img {
  align-self: end; width: 100%;
  height: calc(100svh - var(--bar-h) - 1.5rem);
  object-fit: cover; object-position: 77% 0;
  mix-blend-mode: multiply;
  /* Run off the right edge of the screen and soften the left crop line. */
  width: calc(100% + clamp(1.25rem, 6vw, 5rem));
  margin-right: calc(-1 * clamp(1.25rem, 6vw, 5rem));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__h1 span { animation: pop 700ms var(--sc-ease-out) both; }
  .hero__h1 span:nth-child(2) { animation-delay: 90ms; }
  .hero__h1 span:nth-child(3) { animation-delay: 180ms; }
  .hero__h1 span:nth-child(4) { animation-delay: 300ms; }
  .hero__sub, .hero .btn { animation: rise 700ms var(--sc-ease-out) 420ms both; }
  .hero__img { animation: rise 900ms var(--sc-ease-out) 150ms both; }
}
@keyframes pop { from { opacity: 0; transform: translateY(.4em) scale(.96); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__copy { padding-bottom: 0; }
  .hero__img { height: 62svh; object-position: 76% 0; -webkit-mask-image: none; mask-image: none; }
}

/* 2 stage */
.stage { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.stage__fig { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.stage__quote { font: 800 var(--sc-t-2xl)/1.02 var(--sc-font-display); letter-spacing: -0.03em; margin: 0 0 1rem; }
.stage__cap { font-size: 1.15rem; font-weight: 500; margin: 0; }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } }

/* 3 clients */
.clients { text-align: left; }
.logos { list-style: none; padding: 0; margin: 2rem auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.logos li { display: grid; place-items: center; height: 84px; }
.logos img { max-height: 70px; width: auto; mix-blend-mode: multiply; }
.clients__also { font-size: 1.2rem; font-weight: 500; max-width: 46ch; margin-left: 0; }
@media (max-width: 860px) { .logos { grid-template-columns: repeat(3, 1fr); } }

/* 4 numbers */
.nums { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: end; }
.nums__big { display: flex; align-items: baseline; gap: .6rem; }
.nums__n { font: 800 clamp(9rem, 4rem + 22vw, 22rem)/0.8 var(--sc-font-display); letter-spacing: -0.06em; }
.nums__unit { font: 800 var(--sc-t-2xl)/1 var(--sc-font-display); letter-spacing: -0.03em; }
.nums__line { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; max-width: 30ch; margin: 0 0 1rem; }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr; } }

/* 5 eps */
.eps { display: grid; gap: 2.5rem; }
.eps__logo { margin: 0; max-width: 720px; }
.eps__copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.eps__copy .h2 { grid-column: 1 / -1; color: var(--yellow); }
.eps__copy p { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.7; letter-spacing: .005em; color: #e9e4d8; }
.eps__quiz { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-top: 2rem; border-top: 2px solid rgba(255, 248, 234, .15); }
.eps__quiz-h { margin: 0; font: 800 var(--sc-t-xl)/1.1 var(--sc-font-display); letter-spacing: -0.02em; color: var(--paper); }
@media (max-width: 760px) { .eps__copy { grid-template-columns: 1fr; } }

/* 6 topics */
.topics__list { list-style: none; padding: 0; margin: 1.5rem auto 2rem; border-top: 3px solid var(--ink); }
.topics__list li {
  display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline;
  padding: .9rem 0; border-bottom: 2px solid rgba(14, 17, 32, .2);
  font: 700 clamp(1.2rem, 1rem + 1.1vw, 1.9rem)/1.15 var(--sc-font-display); letter-spacing: -0.015em;
}
.tag { font: 600 .78rem/1 var(--sc-font-text); letter-spacing: .12em; text-transform: uppercase; }
.topics__note { font-size: 1.2rem; font-weight: 500; margin-left: 0; }
@media (max-width: 640px) { .topics__list li { grid-template-columns: 1fr; gap: .3rem; } }

/* 7-9 voices */
.voice__q { margin: 0; }
.voice__q p { font: 700 clamp(1.4rem, 1rem + 1.6vw, 2.4rem)/1.18 var(--sc-font-display); letter-spacing: -0.02em; margin: 0 0 1.2rem; max-width: 30ch; }
.voice__q--wide p { max-width: 38ch; }
.voice__q footer { font-weight: 700; font-size: 1.1rem; }
.voice--big { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: center; }
.voice__fig { margin: 0; font: 800 clamp(8rem, 3rem + 20vw, 19rem)/0.8 var(--sc-font-display); letter-spacing: -0.06em; color: var(--yellow); text-shadow: 0 8px 0 rgba(14,17,32,.18); }
.voice--photo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.voice__photo { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) { .voice--big, .voice--photo { grid-template-columns: 1fr; } }

/* 10 book */
.book { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book__img { filter: drop-shadow(0 24px 30px rgba(14,17,32,.35)); transform: rotate(calc((var(--sc-p, .5) - .5) * -18deg)); will-change: transform; }
.book__sub { font: 700 1.4rem/1.2 var(--sc-font-display); margin: -.6rem 0 1rem; }
.book__copy p { font-size: 1.15rem; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .book__img { transform: rotate(-4deg); } }
@media (max-width: 700px) { .book { grid-template-columns: 1fr; } .book__img { max-width: 240px; } }

/* 11 programs */
.progs__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(1rem, 2.5vw, 2rem); margin-top: 1.5rem; }
.prog { background: #fff; border-radius: var(--r); padding: 0 0 1.3rem; overflow: hidden; box-shadow: var(--shadow); }
.prog img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.prog h3, .coach h3 { font: 800 1.5rem/1.1 var(--sc-font-display); letter-spacing: -0.02em; margin: 1rem 1.2rem .4rem; }
.prog p { margin: 0 1.2rem .8rem; color: var(--ink-2); }
.prog .link { margin: 0 1.2rem; }
.prog--lead { grid-row: span 2; }
.prog--lead h3 { font-size: 2rem; }
.coach { grid-column: 2 / span 2; background: var(--yellow); border-radius: var(--r); padding: .4rem 0 1.3rem; }
.coach ul { margin: 0 1.2rem 1rem; padding-left: 1.1rem; }
.coach li { margin-bottom: .4rem; }
.coach .link { margin: 0 1.2rem; }
@media (max-width: 900px) { .progs__grid { grid-template-columns: 1fr 1fr; } .prog--lead { grid-row: auto; grid-column: 1 / -1; } .coach { grid-column: 1 / -1; } }
@media (max-width: 560px) { .progs__grid { grid-template-columns: 1fr; } }

/* 12 about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; padding-bottom: 0; }
.about__copy { padding-bottom: clamp(3rem, 7vw, 6rem); }
.about__copy p { font-size: 1.18rem; font-weight: 500; max-width: 40ch; }
.about__motto { font: 800 var(--sc-t-xl)/1 var(--sc-font-display) !important; letter-spacing: -0.02em; color: var(--yellow); text-shadow: 0 2px 0 rgba(14,17,32,.35); }
.about__img { width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } .about__copy { padding-bottom: 1.5rem; } .about__img { width: min(100%, 420px); max-width: 420px; margin-inline: auto; justify-self: center; -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); } }

/* 13 time's up */
.timesup { min-height: 120svh; display: grid; place-items: center; text-align: center; }
.timesup__ghost {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); margin: 0;
  font: 800 clamp(10rem, 30vw, 34rem)/1 var(--sc-font-display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px rgba(255, 222, 109, .28);
}
.timesup__line { position: relative; font: 800 var(--sc-t-3xl)/1 var(--sc-font-display); letter-spacing: -0.03em; color: var(--yellow); margin: 0; align-self: end; padding-bottom: 12svh; }

/* 14 close */
.close { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: 2rem; }
.close__h { font: 800 clamp(4rem, 2rem + 8vw, 9rem)/0.86 var(--sc-font-display); letter-spacing: -0.05em; margin: 0 0 1.2rem; }
.close__read { font-size: 1.3rem; font-weight: 500; max-width: 32ch; }
.close__read b { font-weight: 800; }
.form { display: grid; gap: .9rem; background: var(--paper); padding: 1.6rem; border-radius: 22px; box-shadow: var(--shadow); }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 2px solid rgba(14,17,32,.18); border-radius: 12px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(68,155,229,.3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .btn { justify-self: start; margin-top: .3rem; }
.form__err { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: #fde3e3; color: #7a1414; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; margin-top: 1rem; border-top: 2px solid rgba(14,17,32,.2); font-size: .95rem; font-weight: 500; }
.foot__social { display: flex; gap: 1.2rem; }
@media (max-width: 860px) { .close { grid-template-columns: 1fr; } .form__row { grid-template-columns: 1fr; } }
