/* Brolly landing: a cassette J-card. Maroon card stock, cream ink,
   one phase colour flooding the playing track. */
:root {
  --maroon: #4b1424;
  --maroon-deep: #330b17;
  --maroon-line: rgba(246, 234, 216, 0.16);
  --cream: #f6ead8;
  --cream-ink: #e3cbb7;
  --ink: #2a0c15;
  --ink-soft: #6b3a44;
  --ink-line: rgba(42, 12, 21, 0.16);
  --yellow: #f2b13c;
  --red: #d2343f;
  --privacy: #6e5a8a;

  /* phase status colours (PhaseMascot.swift statusColor) */
  --storm: #7c74d6;
  --dawn: #5bbf8a;
  --peak: #f2b13c;
  --dusk: #9a86c4;
  --thunder: #e0654e;
  /* timeline colours (Phase.swift timelineColor) */
  --tl-storm: #b0554f;
  --tl-dawn: #7fa789;
  --tl-peak: #c98a58;
  --tl-dusk: #bfa062;
  --tl-thunder: #8b74a6;

  --flood: var(--storm);

  --display: "Anton", "Oswald", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --hand: "Gochi Hand", "Caveat", cursive;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--maroon);
  color: var(--cream);
  font: 500 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
main a, .site-head a, .foot a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--yellow); color: var(--ink); }
:where(main, .site-head, .foot) :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 48px; z-index: 10; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* ---------- site header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  height: 64px; padding: 0 var(--gutter);
  background: var(--maroon);
  border-bottom: 1px solid var(--maroon-line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 400 26px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }

.sound {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  background: transparent; color: var(--cream);
  border: 1px solid rgba(246, 234, 216, 0.4);
  font: 700 14px/1 var(--body); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.sound:hover { border-color: var(--cream); }
.sound svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .waves { transition: opacity .3s var(--ease); opacity: 0; }
.sound .mute { transition: opacity .3s var(--ease); }
.sound[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.sound[aria-pressed="true"] .waves { opacity: 1; }
.sound[aria-pressed="true"] .mute { opacity: 0; }
.sound.is-playing .waves { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.badge { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .35s var(--ease), opacity .2s; }
.badge img { height: 48px; width: auto; }
.badge:hover { transform: translateY(-2px); }
.badge--head img { height: 40px; }
.badge--big img { height: 60px; }

/* ---------- J-card hero ---------- */
.jcard {
  display: grid;
  grid-template-columns: minmax(0, 640px) 52px minmax(0, 1fr);
  border-bottom: 1px solid var(--maroon-line);
}
.front { display: flex; flex-direction: column; background: var(--maroon); min-width: 0; }
.cover { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--maroon-deep); }
.cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s var(--ease);
}
.cover img.is-on { opacity: 1; }
.front__body { padding: 28px clamp(20px, 3.4vw, 56px) 32px; }
h1 {
  font: 400 clamp(42px, 4.2vw, 62px)/0.95 var(--display);
  text-transform: uppercase; letter-spacing: 0;
  color: var(--cream);
}
.tagline {
  display: block; margin-top: 12px;
  font: 400 clamp(28px, 2.4vw, 36px)/1 var(--hand);
  color: var(--yellow); text-transform: none; transform: rotate(-2deg); transform-origin: left;
}
.lede { margin-top: 16px; max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--cream-ink); }
.cta-row { display: flex; align-items: center; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.cta-note { font-size: 14px; line-height: 1.45; color: var(--cream-ink); }

.spine {
  display: flex; align-items: center; justify-content: space-between;
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 28px 0;
  background: var(--flood); color: var(--ink);
  border-left: 1px dashed rgba(42, 12, 21, .35); border-right: 1px dashed rgba(42, 12, 21, .35);
  font: 400 16px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color .6s var(--ease);
}

.flap { display: flex; flex-direction: column; padding: 28px clamp(20px, 3.4vw, 56px) 24px; background: var(--cream); color: var(--ink); min-width: 0; }
.flap__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font: 400 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  padding-bottom: 12px; border-bottom: 2px solid var(--ink);
}
.flap__head span { font: 700 13px/1 var(--body); letter-spacing: 0.06em; color: var(--ink-soft); text-transform: none; }
.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  width: 100%; padding: 10px 10px; margin: 0;
  background: none; border: 0; border-bottom: 1px solid var(--ink-line);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.track::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--flood); clip-path: inset(0 100% 0 0);
  transition: clip-path .55s var(--ease);
}
.track:hover::before { clip-path: inset(0 calc(100% - 6px) 0 0); }
.track[aria-pressed="true"]::before { clip-path: inset(0 0 0 0); }
.track .code { font: 800 13px/1 var(--body); font-variant-numeric: tabular-nums; }
.track .name { font: 400 28px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.track .range { display: block; margin-top: 4px; font: 700 12.5px/1.2 var(--body); letter-spacing: 0.02em; }
.track .wx { font: 400 20px/1.1 var(--hand); text-align: right; max-width: 19ch; }

.deck { margin-top: auto; padding-top: 22px; }
.reels { display: flex; align-items: center; gap: 12px; }
.reel { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.reel .pack { fill: rgba(42, 12, 21, .12); stroke-width: 1.5; }
.reels.is-spinning .reel { animation: spin 1.1s linear infinite; }
.reels.is-playing .reel { animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.counter {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 6px;
  background: var(--ink); color: var(--yellow);
  font: 800 17px/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: 0.1em;
}
.scrub-label { display: block; margin-top: 14px; font: 400 20px/1.2 var(--hand); color: var(--ink-soft); }
.scrub { width: 100%; margin: 6px 0 0; -webkit-appearance: none; appearance: none; background: transparent; height: 36px; cursor: grab; }
.scrub:active { cursor: grabbing; }
.scrub::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: var(--scale); }
.scrub::-moz-range-track { height: 10px; border-radius: 5px; background: var(--scale); }
.scrub::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--ink); box-shadow: 0 3px 8px rgba(42, 12, 21, .35);
}
.scrub::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink); }
.flap { --scale: linear-gradient(to right, var(--tl-storm) 0 16.7%, var(--tl-dawn) 16.7% 46.3%, var(--tl-peak) 46.3% 57.4%, var(--tl-dusk) 57.4% 79.6%, var(--tl-thunder) 79.6%); }

.today { margin-top: 12px; padding: 16px 18px 18px; border-radius: 14px; background: var(--ink); color: var(--cream); }
.status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--cream-ink); }
.status b { color: var(--cream); font-weight: 800; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--flood); flex: none; transition: background-color .4s; }
.today h3 { margin-top: 12px; font: 800 11.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.today p { margin-top: 6px; font-size: 15px; line-height: 1.45; }
.today .do { font-weight: 800; font-size: 16px; }
.today .sub { color: var(--cream-ink); margin-top: 2px; }

.jcard[data-phase="dawn"] { --flood: var(--dawn); }
.jcard[data-phase="peak"] { --flood: var(--peak); }
.jcard[data-phase="dusk"] { --flood: var(--dusk); }
.jcard[data-phase="thunder"] { --flood: var(--thunder); }

/* ---------- liner notes: the insert ---------- */
.liner { padding: clamp(72px, 8vw, 128px) var(--gutter); background: var(--maroon-deep); }
.liner__head { max-width: 1280px; margin: 0 auto 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.liner__head h2, .bside__head h2, .private h2, .close h2 {
  font: 400 clamp(38px, 4.4vw, 68px)/0.98 var(--display); text-transform: uppercase;
}
.liner__head p { max-width: 46ch; color: var(--cream-ink); font-size: 18px; }
.insert {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  background: var(--cream); color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75), 0 2px 0 rgba(0, 0, 0, .2);
}
.panel { position: relative; padding: 30px clamp(20px, 2.4vw, 36px) 32px; min-width: 0; }
.panel h3 { font: 400 30px/1 var(--display); text-transform: uppercase; }
.panel p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; max-width: 46ch; }
.panel .hand { font: 400 21px/1.35 var(--hand); color: var(--ink); margin-top: 12px; }
.panel--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.notes h3 + p { margin-top: 10px; }
.notes .hand + h3, .notes p + h3 { margin-top: 34px; padding-top: 28px; border-top: 1px dashed rgba(42, 12, 21, .3); }
.phones { position: relative; min-height: 600px; }
.phone { position: absolute; margin: 0; width: 220px; }
.phone img { width: 100%; border-radius: 26px; box-shadow: 0 22px 40px -20px rgba(42, 12, 21, .6); }
.phone figcaption { margin-top: 10px; text-align: center; }
.phone--a { left: 0; top: 0; transform: rotate(-4deg); display: flex; flex-direction: column-reverse; }
.phone--a figcaption { margin: 0 0 10px; }
.phone--b { right: -8px; top: 110px; transform: rotate(5deg); z-index: 2; }
.stack { display: flex; flex-direction: column; border-left: 1px dashed rgba(42, 12, 21, .3); position: relative; }
.stack::before, .stack::after { content: ""; position: absolute; left: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--maroon-deep); }
.stack::before { top: -6px; }
.stack::after { bottom: -6px; }
.stack .panel + .panel { border-top: 1px dashed rgba(42, 12, 21, .3); }
.panel--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.push-cap { text-align: right; }

.push {
  margin-top: 16px;
  display: grid; grid-template-columns: 36px 1fr; gap: 10px;
  padding: 12px 14px; border-radius: 20px;
  background: #fff; border: 1px solid var(--ink-line);
  box-shadow: 0 14px 30px -16px rgba(42, 12, 21, .45);
}
.push img { width: 36px; height: 36px; border-radius: 8px; }
.push p { margin: 0; max-width: none; }
.push__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.push__meta b { color: var(--ink); }
.panel .push__title { font-weight: 800; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.panel .push__body { font-size: 14px; line-height: 1.4; color: var(--ink); }
.toggle {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; padding: 4px 0; font: 800 17px/1.2 var(--body); color: var(--ink); cursor: pointer; text-align: left;
}
.toggle__knob { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(42, 12, 21, .28); transition: background-color .3s var(--ease); }
.toggle__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.toggle[aria-checked="true"] .toggle__knob { background: var(--maroon); }
.toggle[aria-checked="true"] .toggle__knob::after { transform: translateX(18px); }
.week { display: flex; gap: 5px; }
.week span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: var(--cream); font-weight: 800; font-size: 11px; transition: opacity .3s var(--ease); }
.week .change { background: var(--ink); color: var(--yellow); }
.week.is-quiet span:not(.change) { opacity: .16; }
.treats { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.treats li { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--ink-line); font-size: 13.5px; font-weight: 700; }
.drop-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-weight: 800; font-size: 16px; }
.drop { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); flex: none; }
.drop svg { width: 18px; height: 24px; fill: var(--red); }

/* ---------- B side ---------- */
.bside { padding: clamp(72px, 8vw, 128px) 0 clamp(96px, 9vw, 150px); background: var(--maroon); }
.bside__head { padding: 0 var(--gutter); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 80px; align-items: end; }
.bside__head p { max-width: 46ch; color: var(--cream-ink); font-size: 18px; }
.listen {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px; border: 1px solid var(--yellow);
  background: transparent; color: var(--yellow); font: 800 15px/1 var(--body); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.listen svg { width: 20px; height: 20px; fill: currentColor; }
.listen[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.shots {
  margin-top: 56px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px);
}
.shots figure { margin: 0; min-width: 0; }
.shots figure:nth-child(even) { transform: translateY(44px); }
.shots img { width: 100%; border-radius: 20px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.shots figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--maroon-line); font: 400 21px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.shots figcaption span { font: 800 13px/1 var(--body); color: var(--yellow); }

/* ---------- privacy ---------- */
.private { position: relative; padding: clamp(80px, 9vw, 140px) var(--gutter); background: var(--privacy); color: #fff; overflow: hidden; }
.private__inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.private h2 { max-width: 16ch; }
.nolist { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid #fff; max-width: 1040px; }
.nolist li { display: grid; gap: 10px; padding: 18px 18px 20px 0; font: 400 clamp(24px, 2.4vw, 36px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.nolist li + li { padding-left: 18px; border-left: 1px dashed rgba(255, 255, 255, .45); }
.nolist span { font: 800 13px/1 var(--body); }
.private p { margin-top: 32px; max-width: 54ch; font-size: 18px; }
.private .mascot { position: absolute; right: clamp(16px, 6vw, 120px); bottom: 0; width: clamp(150px, 17vw, 260px); z-index: 0; }

/* ---------- close ---------- */
.close { display: grid; justify-items: center; text-align: center; padding: clamp(72px, 8vw, 128px) var(--gutter); background: var(--maroon-deep); }
.close .mascot { width: clamp(220px, 24vw, 340px); }
.close h2 { margin-top: 28px; max-width: 15ch; }
.close .badge { margin-top: 36px; }
.disclaimer { margin-top: 44px; max-width: 62ch; font-size: 14px; line-height: 1.55; color: var(--cream-ink); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px var(--gutter) 36px; background: var(--maroon-deep); border-top: 1px dashed var(--maroon-line); font-size: 15px; color: var(--cream-ink); }
.foot__brand { font: 400 20px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--cream); margin-right: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .jcard { grid-template-columns: minmax(0, 1.05fr) 52px minmax(340px, 0.95fr); }
}
@media (max-width: 1100px) {
  .insert { grid-template-columns: 1fr; }
  .stack { border-left: 0; border-top: 1px dashed rgba(42, 12, 21, .3); }
  .stack::before { top: -6px; left: -6px; }
  .stack::after { top: -6px; bottom: auto; left: auto; right: -6px; }
  .shots { grid-template-columns: repeat(5, 240px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 50px; scrollbar-width: thin; }
  .shots figure { scroll-snap-align: start; }
  .nolist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nolist li:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .jcard { grid-template-columns: 1fr; }
  .spine { writing-mode: horizontal-tb; transform: none; padding: 10px 16px; border: 0; font-size: 13px; }
  .flap { padding: 24px 16px; }
  .front__body { padding: 24px 16px 32px; }
  .liner__head, .bside__head { grid-template-columns: 1fr; }
  .private .mascot { display: none; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .cover { width: 640px; max-width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-head { gap: 10px; height: 60px; padding: 0 16px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 22px; }
  .sound { padding: 0 10px; }
  .sound .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .badge--head img { height: 36px; }
  h1 { font-size: clamp(38px, 11vw, 48px); }
  .tagline { font-size: 28px; }
  .track { padding: 7px 6px; gap: 2px 10px; grid-template-columns: 26px minmax(0, 1fr) auto; }
  .flap { padding: 20px 16px 24px; }
  .deck { padding-top: 16px; }
  .scrub-label { margin-top: 10px; }
  #t-hint { display: none; }
  .track .name { font-size: 24px; }
  .track .wx { display: none; }
  .today .status { font-size: 13.5px; }
  .liner { padding: 64px 16px; }
  .panel { padding: 26px 18px 28px; }
  .panel--wide { grid-template-columns: 1fr; }
  .phones { min-height: 0; display: flex; justify-content: center; gap: 0; padding: 8px 0 4px; }
  .phone { position: relative; width: 45%; }
  .phone--a { left: auto; top: 0; }
  .phone--b { right: auto; top: 44px; margin-left: 3%; }
  .phone--a { z-index: 1; }
  .phone--b { z-index: 3; }
  .phone--b figcaption { text-align: right; position: relative; z-index: 4; }
  .front__body { padding-top: 20px; }
  .cta-row { margin-top: 18px; }
  .bside__head { padding: 0 16px; }
  .shots { grid-template-columns: repeat(5, 68%); padding: 0 16px 8px; gap: 14px; }
  .shots figure:nth-child(even) { transform: none; }
  .private { padding: 72px 16px; }
  .nolist { grid-template-columns: 1fr; }
  .nolist li, .nolist li + li, .nolist li:nth-child(4) { grid-template-columns: 34px 1fr; align-items: baseline; padding: 14px 0; border-left: 0; border-bottom: 1px dashed rgba(255, 255, 255, .45); }
  .close { padding: 72px 16px; }
  .badge--big img { height: 54px; }
  .foot { padding: 24px 16px 32px; flex-direction: column; align-items: flex-start; }
}

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