/* brendanjowett.com homepage, "The Desk".
   Desktop: every item sits on a 1280x1290 board at its --x/--y with width --w and tilt --r,
   and desk.js scales the board to fit (--s). Below 1024px the board turns into a stacked list. */

:root {
  --desk: #ECEBE7;
  --ink: #151515;
  --ink-2: #3A3A3A;
  --muted: #5A5A5A;
  --paper: #FFFFFF;
  --accent: #FFE45C;
  --green: #15803D;
  --skool-blue: #1E4FF2;
  --launch-orange: #FF8A1F;
  --ig-gradient: linear-gradient(45deg, #C13584 0%, #833AB4 55%, #5851DB 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 14px 32px rgba(0, 0, 0, 0.12);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.08), 0 26px 50px rgba(0, 0, 0, 0.2);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--desk);
  background-image: radial-gradient(rgba(21, 21, 21, 0.14) 1px, transparent 1.3px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid #2F6BFF; outline-offset: 3px; }

.hand { font-family: var(--hand); }
.muted { color: var(--muted); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 84px;
}

.me-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 6px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}
.me-chip img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; }

.top-right { display: flex; align-items: center; gap: 14px; }

.btn-sponsor {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 700;
  transition: transform 0.15s ease;
}
.btn-sponsor:hover { transform: translateY(-1px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.3s ease, color 0.3s ease;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn .i-sound-on,
.icon-btn[aria-pressed="true"] .i-sound-off { display: none; }
.icon-btn[aria-pressed="true"] .i-sound-on { display: block; }
.lamp-rays { opacity: 0; transition: opacity 0.3s ease; }
.lamp-btn[aria-pressed="true"] { background: #FFD27A; color: #151515; box-shadow: 0 0 0 6px rgba(255, 210, 122, 0.18), 0 0 28px rgba(255, 196, 92, 0.55); }
.lamp-btn[aria-pressed="true"] .lamp-rays { opacity: 1; }

.drag-hint,
.tidy-btn { font-size: 22px; color: var(--ink-2); white-space: nowrap; }
.tidy-btn {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  font-family: var(--hand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.drag-hint[hidden], .tidy-btn[hidden] { display: none; }
.btn-sponsor .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }

/* ---------- The board ---------- */

.desk-wrap {
  position: relative;
  height: calc(1290px * var(--s, 1));
  margin-top: 8px;
}

.desk {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1280px;
  height: 1290px;
  transform: translateX(-50%) scale(var(--s, 1));
  transform-origin: top center;
}

/* --dx/--dy are how far a visitor has dragged an item (desk.js) */
.desk > .intro,
.desk > .pin,
.chips > .pin {
  position: absolute;
  left: calc(var(--x) + var(--dx, 0px));
  top: calc(var(--y) + var(--dy, 0px));
}

.chips { display: contents; }

.pin {
  width: var(--w, auto);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pin:hover,
.pin:focus-visible {
  z-index: 20;
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow: var(--shadow-lift);
}

/* Dragging (desktop board only; desk.js adds these classes) */
@media (min-width: 1100px) and (hover: hover) {
  .desk .pin { cursor: grab; }
}
.desk .pin.dragging {
  z-index: 50;
  cursor: grabbing;
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 34px 60px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
html.is-dragging, html.is-dragging * { cursor: grabbing !important; user-select: none; }
.desk.tidying .pin {
  transition: left 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.55s ease, box-shadow 0.25s ease;
}

/* Late-night sticky note (easter egg) */
.night-note {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 14px;
  background: #FFB8CF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 14px 26px rgba(0, 0, 0, 0.16);
  text-align: center;
}
.night-note p { font-size: 20px; font-weight: 700; line-height: 1.08; color: #151515; }
.night-note[hidden] { display: none; }

/* ---------- Intro ---------- */

.intro { z-index: 3; width: var(--w); text-align: center; }
.intro-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.intro-avatar-wrap { position: relative; display: block; width: 96px; margin: 0 auto; }
.intro-shades {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(-6px) rotate(-4deg);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.night .intro-shades { opacity: 1; transform: none; }
.intro-hey { margin-top: 8px; font-size: 30px; color: var(--ink-2); }
.intro h1 { font-size: 72px; font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; }
.intro-text { max-width: 460px; margin: 18px auto 0; font-size: 18px; color: var(--ink-2); }
.start-here {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  margin-top: 10px;
  font-size: 26px;
  font-weight: 700;
}

/* ---------- Sponsor notepad ---------- */

.notepad {
  z-index: 5;
  border-radius: 6px 6px 18px 18px;
  background: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 22px 44px rgba(0, 0, 0, 0.2);
  scroll-margin-top: 120px;
}
.notepad:hover,
.notepad:focus-within { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: var(--shadow-lift); }
.notepad.nudge { animation: nudge 0.7s ease; }

.np-binding {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 26px;
  padding: 0 18px;
  border-radius: 6px 6px 0 0;
  background: rgba(21, 21, 21, 0.1);
}
.np-binding span { width: 11px; height: 11px; border-radius: 999px; background: var(--desk); }

.np-body { padding: 20px 28px 22px; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.np-head h2 { font-size: 28px; font-weight: 700; line-height: 1; }
.np-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live { width: 8px; height: 8px; border-radius: 999px; background: var(--green); animation: pulse 1.8s infinite; }

.np-big { margin-top: 10px; font-size: 76px; font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; }
.np-sub { margin-top: 8px; font-size: 19px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.np-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1.5px solid rgba(21, 21, 21, 0.14); }
.np-split li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; padding: 10px 10px 0 0; }
.np-split li + li { padding-left: 12px; border-left: 1.5px solid rgba(21, 21, 21, 0.14); }
.np-split svg { grid-row: 1; }
.np-split-num { grid-row: 1; font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.np-split-name { grid-column: 1 / -1; margin-top: 4px; font-size: 13px; font-weight: 700; opacity: 0.7; }
.np-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.np-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); }

.copy-row { position: relative; margin-top: 22px; }

.tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--ink);
  transform: rotate(45deg);
}
.notepad:hover .tip,
.notepad:focus-within .tip,
.notepad.is-copied .tip,
.notepad.is-manual .tip { opacity: 1; transform: translateY(0); }

.copy-btn {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}
.copy-btn:hover { box-shadow: 0 0 0 3px var(--ink); }
.copy-btn:active { transform: scale(0.985); }
.copy-email { text-align: left; overflow-wrap: anywhere; user-select: all; }

.copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 15px;
  transition: background 0.2s ease;
}
.copy-pill .i-check { display: none; }
.is-copied .copy-pill { background: var(--green); }
.is-copied .copy-pill .i-copy { display: none; }
.is-copied .copy-pill .i-check { display: block; }

.np-mail {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Cards ---------- */

.card {
  display: block;
  padding: 12px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

/* height: auto overrides the img height attribute so aspect-ratio can crop YouTube's 4:3 letterbox bars */
.thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #DDDCD7; }

.vid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.vid-head .muted { font-weight: 500; }
.vid-label { display: inline-flex; align-items: center; gap: 8px; }
.vid-title { display: block; padding: 12px 4px 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.vid-meta { display: block; padding: 6px 4px 4px; font-size: 14px; color: var(--muted); }

.eyebrow {
  display: block;
  padding: 2px 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.vid-sm .vid-title { padding-top: 10px; font-size: 15px; }
.vid-sm .vid-meta { padding-top: 4px; font-size: 13px; }

/* Skool cards: the real Skool wordmark sits on a white tab so its navy "s" reads on any colour */
.sk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sk-logo { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 8px; background: #FFFFFF; }
.sk-logo img { width: 52px; height: auto; }

/* Free community: the blue of its Skool cover */
.community {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
  background: var(--skool-blue);
  color: #FFFFFF;
}
.sk-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.community .sk-row { padding: 2px 2px 0; }
.sk-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-title { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.card-text { font-size: 15px; }
.community .card-title,
.community .card-text { padding: 0 2px; }
.community .card-text { color: rgba(255, 255, 255, 0.9); }
.sk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin-top: 4px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--skool-blue);
  font-weight: 800;
}

/* Launchpad ticket: black and orange, like its classroom */
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  border-radius: 18px;
  background: #121212;
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 16px 32px rgba(0, 0, 0, 0.18);
}
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  right: 80px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--desk);
}
.ticket::before { top: -12px; }
.ticket::after { bottom: -12px; }
.ticket-main { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 18px 12px; }
.ticket-img { width: 100%; height: 88px; object-fit: cover; object-position: center top; border-radius: 10px; }
.ticket .sk-row { margin-top: 4px; }
.ticket-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--launch-orange); }
.ticket-title { font-size: 24px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.ticket-text { font-size: 14px; color: #CFCFCF; }
.ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 16px 8px;
  border-left: 2px dashed rgba(0, 0, 0, 0.35);
  border-radius: 0 18px 18px 0;
  background: var(--launch-orange);
  color: #151515;
}
.ticket-price { font-size: 30px; font-weight: 800; line-height: 1; }
.ticket-per { font-size: 13px; font-weight: 600; }
.ticket-join {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #151515;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

/* Template receipt */
.receipt {
  display: block;
  padding: 22px 22px 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
  font-family: var(--mono);
  font-size: 13px;
}
.r-title { display: block; text-align: center; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.r-sub { display: block; margin-top: 4px; text-align: center; color: var(--muted); }
.r-rule { display: block; margin: 12px 0 8px; border-top: 1px dashed #8A8A8A; }
.r-line { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; }
.r-total { font-weight: 500; }

/* Polaroid */
.polaroid { display: block; padding: 12px 12px 0; background: var(--paper); box-shadow: var(--shadow); }
.polaroid img { width: 100%; height: 256px; object-fit: cover; object-position: 6% 50%; }
.polaroid-cap { display: block; padding: 10px 0 14px; text-align: center; font-size: 25px; color: #2A2A2A; }
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: rotate(-4deg);
}

/* Personal Instagram follow card (a polaroid with a follow bar) */
.ig-follow img { height: 260px; object-position: 62% 55%; }
.ig-follow .polaroid-cap { padding: 8px 0 6px; }
.ig-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 14px;
  border-top: 1px dashed #D4D4D4;
}
.ig-who { display: flex; flex: 1; min-width: 0; flex-direction: column; line-height: 1.2; }
.ig-who strong { font-size: 15px; }
.ig-who span { font-size: 12px; color: var(--muted); }
.ig-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ig-gradient);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
}

/* Social chips, each in its platform's colour */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 7px;
  border-radius: 999px;
  background: var(--paper);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 22px rgba(0, 0, 0, 0.12);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.chip-ico {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-yt { background: #E0001B; }
.chip-x { background: #0F1419; }
.chip-ig { background: var(--ig-gradient); }
.chip-li { background: #0A66C2; }

/* ---------- Brands marquee ---------- */

.brands { padding: 4px 0 18px; }
.brands-title { margin-bottom: 10px; text-align: center; font-size: 24px; font-weight: 700; color: var(--ink-2); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
/* Two identical lists side by side; sliding the track by exactly half loops seamlessly. */
.marquee-track {
  --dur: 34s;
  display: flex;
  width: max-content;
  animation: marquee var(--dur) linear infinite;
  /* Start most of the way through a loop, so Anthropic (first in the list) opens in the middle
     of the strip instead of at the faded left edge. */
  animation-delay: calc(var(--dur) * -0.86);
}
.marquee-list { --k: 1; display: flex; align-items: center; flex-shrink: 0; }
.marquee-list > li { flex-shrink: 0; margin-right: calc(72px * var(--k)); }
/* Muted at rest; each logo takes its real colours on hover (black wordmarks go full ink,
   Hostinger purple via --brand, Replit's orange mark via --brand-accent). */
.brand {
  display: block;
  height: calc(var(--h) * var(--k));
  width: calc(var(--h) * var(--k) * var(--ar));
  color: #8E8C86;
  transition: color 0.2s ease;
}
.brand svg { display: block; width: 100%; height: 100%; }
.brand:hover,
.brand:focus-visible { color: var(--brand, var(--ink)); --accent-fill: var(--brand-accent, currentColor); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Latest uploads ---------- */

.uploads {
  margin-top: 16px;
  padding: 32px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.uploads-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.uploads-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.all-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.uploads-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.upload { display: flex; flex-direction: column; gap: 10px; }
.upload img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #DDDCD7; transition: transform 0.25s ease; }
.upload:hover img { transform: translateY(-3px); }
.upload-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.upload-meta { font-size: 14px; color: var(--muted); }

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

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--ink-2);
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Lights off (desk lamp) ----------
   Only the desk surface and the text that sits directly on it change; cards are physical
   objects, so they stay paper-coloured and just get lamp-lit. */

body { transition: background-color 0.4s ease; }
html.night { --desk: #1A1917; color-scheme: dark; }
html.night body { background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px); }
/* the lamp's pool of warm light, falling from the top right where the lamp switch is */
html.night body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 80% -8%, rgba(255, 196, 110, 0.22), rgba(255, 196, 110, 0.06) 45%, transparent 72%);
}
html.night .wrap { position: relative; z-index: 1; }
html.night .intro { color: #F6F1E8; }
html.night .intro-hey,
html.night .intro-text,
html.night .drag-hint,
html.night .tidy-btn { color: #D3CDC2; }
html.night .intro-avatar { border-color: #2A2825; }
html.night .me-chip,
html.night .icon-btn { background: #2A2825; color: #F1ECE3; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
html.night .lamp-btn[aria-pressed="true"] { background: #FFD27A; color: #151515; box-shadow: 0 0 0 6px rgba(255, 210, 122, 0.18), 0 0 28px rgba(255, 196, 92, 0.55); }
html.night .btn-sponsor { background: #F4EFE6; color: #151515; }
html.night .pin { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.55); }
html.night .ticket,
html.night .chip-x { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 18px 40px rgba(0, 0, 0, 0.55); }
html.night .vid,
html.night .receipt,
html.night .polaroid,
html.night .night-note { filter: brightness(0.9) sepia(0.12); }
html.night .uploads { background: #22201D; color: #F1ECE3; box-shadow: none; }
html.night .upload-meta { color: #A9A397; }
html.night .upload img { filter: brightness(0.92); }
html.night .foot { color: #B9B3A8; }
html.night .brands-title { color: #D3CDC2; }
html.night .brand { color: #8F897F; }
html.night .brand:hover,
html.night .brand:focus-visible { color: var(--brand, #F7F2EA); }

/* ---------- Motion ---------- */

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

@keyframes nudge {
  0%, 100% { transform: rotate(var(--r, 0deg)); }
  20% { transform: rotate(-4deg) scale(1.04); }
  45% { transform: rotate(2.5deg) scale(1.04); }
  70% { transform: rotate(-1deg) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin, .copy-btn, .tip, .upload img, .btn-sponsor { transition: none; }
  .pin:hover, .pin:focus-visible, .notepad:hover, .notepad:focus-within { transform: rotate(var(--r, 0deg)); }
  .live, .notepad.nudge { animation: none; }
  .intro-shades { transition: none; transform: none; }
  /* No sliding: show the one list, wrapped and centred */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; justify-content: center; }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list > li { margin: 0 24px; }
}

/* ---------- Phones, tablets and small landscape screens: the board becomes a list ---------- */

@media (max-width: 1099px) {
  .wrap { max-width: 600px; padding: 0 16px; }
  .top-right { gap: 8px; }
  .drag-hint, .tidy-btn { display: none !important; }

  .desk-wrap { height: auto; }
  .desk {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 8px 0 24px;
  }
  .desk > .intro,
  .desk > .pin,
  .chips > .pin { position: relative; left: auto; top: auto; }
  .pin { width: auto; transform: rotate(calc(var(--r, 0deg) * 0.25)); }

  .intro { width: auto; padding: 16px 0 0; }
  .intro h1 { font-size: clamp(44px, 12vw, 64px); }
  .notepad { transform: none; }
  .np-body { padding: 18px 20px 20px; }
  .np-big { font-size: clamp(48px, 14vw, 80px); white-space: nowrap; }
  .np-sub { font-size: 17px; }
  .copy-btn { font-size: 17px; padding-left: 14px; }

  .chips { display: flex; flex-wrap: wrap; gap: 12px; }

  .uploads { padding: 22px; }
  .uploads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }

  .brands { padding-bottom: 8px; }
  .brands-title { font-size: 23px; }
  .marquee-list { --k: 0.8; }
  .marquee-track { --dur: 26s; }
}

@media (max-width: 600px) {
  /* Uploads become a swipeable row instead of a long column */
  .uploads { padding: 22px 0 22px 22px; }
  .uploads-head { padding-right: 22px; }
  .uploads-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-right: 22px;
    scrollbar-width: none;
  }
  .uploads-grid::-webkit-scrollbar { display: none; }
  .upload { scroll-snap-align: start; }
}

@media (max-width: 480px) {
  .me-chip { padding-right: 6px; font-size: 0; gap: 0; }
  .btn-sponsor { white-space: nowrap; }
}

@media (max-width: 420px) {
  .top-right { gap: 6px; }
  .btn-sponsor { padding: 0 14px 0 12px; gap: 8px; }
  .np-head { flex-wrap: wrap; row-gap: 10px; }
  .np-head h2, .np-open { white-space: nowrap; }
  .uploads-head h2 { font-size: 22px; }
  .all-link { white-space: nowrap; }
  .copy-btn { flex-wrap: wrap; }
  .copy-pill { width: 100%; justify-content: center; }
}
