/* ═══════════════════════════════════════════════════════════
   COHORT — main.css
   ═══════════════════════════════════════════════════════════ */

/* ─── LOCAL FONTS ─────────────────────────────────────────── */
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../ppneuemontreal-book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../ppneuemontreal-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../ppneuemontreal-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../ppneuemontreal-thin.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../ppneuemontreal-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'centold';
  src: url('../centuryoldstyle/CENTOLD.woff') format('woff'),
       url('../centuryoldstyle/CENTOLD.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'centold';
  src: url('../centuryoldstyle/CENTOLDI.woff') format('woff'),
       url('../centuryoldstyle/CENTOLDI.ttf') format('truetype');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:                #090909;
  --bg-glow:           rgba(17,17,17,1);
  --fg:                #F0EDE8;
  --muted:             rgba(240, 237, 232, 0.45);
  --border:            rgba(255, 255, 255, 0.09);
  --blue:              #1C34F5;
  --accent:            #1C34F5;   /* time-of-day highlight (night = brand blue) */
  --bub-recv-bg:       #26262B;   /* received bubble — subtle iMessage grey (night) */
  --bub-recv-fg:       #ECE9E3;
  --font:              'centold', 'centold Fallback', ui-serif, Georgia, serif;
  --font-ui:           'PP Neue Montreal', system-ui, -apple-system, sans-serif;
  --w:                 200;
  --grain-op:          0.035;
  --lamp-glow:         transparent;
  --lamp-shadow:       none;
  --chip-bg:           rgba(255, 255, 255, 0.07);
  --chip-ring:         rgba(255, 255, 255, 0.12);
  --chip-hover-bg:     rgba(255, 255, 255, 0.96);
  --chip-hover-fg:     #0d0d0d;
  --input-bg:          rgba(255, 255, 255, 0.05);
  --input-bg-focus:    rgba(255, 255, 255, 0.08);
  --input-border-focus:rgba(255, 255, 255, 0.28);
  --placeholder:       rgba(240, 237, 232, 0.38);
  --fine-color:        rgba(240, 237, 232, 0.38);
}

/* ── MORNING (5 am – 10 am): warm peach ── */
html[data-vibe="morning"] {
  --bg:                #E0C0A0;
  --bg-glow:           rgba(210,160,100,0.5);
  --fg:                #2A1508;
  --muted:             rgba(42, 21, 8, 0.42);
  --border:            rgba(42, 21, 8, 0.10);
  --grain-op:          0.06;
  --accent:            #C2410C;   /* morning — warm terracotta */
  --bub-recv-bg:       #FBF5EC;   /* received bubble — light grey on the light morning vibe */
  --bub-recv-fg:       #2A1508;
  --lamp-glow:         #FFE8A0;
  --lamp-shadow:       0 0 28px rgba(255,220,100,0.55), 0 0 60px rgba(255,180,50,0.28);
  --chip-bg:           rgba(0, 0, 0, 0.06);
  --chip-ring:         rgba(42, 21, 8, 0.14);
  --chip-hover-bg:     rgba(42, 21, 8, 0.88);
  --chip-hover-fg:     #F0EDE8;
  --input-bg:          rgba(0, 0, 0, 0.05);
  --input-bg-focus:    rgba(0, 0, 0, 0.09);
  --input-border-focus:rgba(42, 21, 8, 0.28);
  --placeholder:       rgba(42, 21, 8, 0.32);
  --fine-color:        rgba(42, 21, 8, 0.38);
}

/* ── DAY (10 am – 5 pm): cool linen ── */
html[data-vibe="day"] {
  --bg:                #EDE8DC;
  --bg-glow:           rgba(220,214,200,0.4);
  --fg:                #1A1A14;
  --muted:             rgba(26, 26, 20, 0.42);
  --border:            rgba(26, 26, 20, 0.10);
  --grain-op:          0.04;
  --accent:            #2D5BE3;   /* day — crisp blue */
  --bub-recv-bg:       #FCFBF6;   /* received bubble — light grey on the light day vibe */
  --bub-recv-fg:       #1A1A14;
  --lamp-glow:         #FFFAE8;
  --lamp-shadow:       0 0 22px rgba(255,250,200,0.5), 0 0 50px rgba(240,220,120,0.22);
  --chip-bg:           rgba(0, 0, 0, 0.06);
  --chip-ring:         rgba(26, 26, 20, 0.14);
  --chip-hover-bg:     rgba(26, 26, 20, 0.88);
  --chip-hover-fg:     #F0EDE8;
  --input-bg:          rgba(0, 0, 0, 0.05);
  --input-bg-focus:    rgba(0, 0, 0, 0.09);
  --input-border-focus:rgba(26, 26, 20, 0.28);
  --placeholder:       rgba(26, 26, 20, 0.32);
  --fine-color:        rgba(26, 26, 20, 0.38);
}

/* ── EVENING (5 pm – 9 pm): warm amber dark ── */
html[data-vibe="evening"] {
  --bg:                #1C0A02;
  --bg-glow:           rgba(90,38,6,0.7);
  --fg:                #F0C87A;
  --muted:             rgba(240,200,122,0.42);
  --border:            rgba(240,200,122,0.12);
  --grain-op:          0.055;
  --accent:            #D2560A;   /* evening — amber-orange */
  --bub-recv-bg:       #2E1D12;   /* received bubble — warm dark on the evening vibe */
  --bub-recv-fg:       #F2E2C8;
  --lamp-glow:         #FF9A3C;
  --lamp-shadow:       0 0 30px rgba(255,120,30,0.6), 0 0 70px rgba(255,80,0,0.28);
  --chip-bg:           rgba(240, 200, 122, 0.08);
  --chip-ring:         rgba(240, 200, 122, 0.16);
  --chip-hover-bg:     rgba(240, 200, 122, 0.92);
  --chip-hover-fg:     #1C0A02;
  --input-bg:          rgba(240, 200, 122, 0.06);
  --input-bg-focus:    rgba(240, 200, 122, 0.10);
  --input-border-focus:rgba(240, 200, 122, 0.35);
  --placeholder:       rgba(240, 200, 122, 0.35);
  --fine-color:        rgba(240, 200, 122, 0.38);
}

/* ── NIGHT (9 pm – 5 am): current dark ── */
/* html[data-vibe="night"] inherits :root defaults — no overrides needed */

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 85% 55% at 50% -5%, var(--bg-glow) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font);
  font-weight: 200;
  font-size: clamp(1.25rem, 0.95rem + 1.5vw, 1.875rem);
  line-height: 1.55;
  min-height: 100svh;
  overflow-x: hidden;
  transition: background-color 1.1s cubic-bezier(0.16,1,0.3,1),
              color            1.1s cubic-bezier(0.16,1,0.3,1);
}

/* ─── SELECTION + FOCUS ───────────────────────────────────── */
::selection {
  background: var(--blue);
  color: #fff;
}

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

/* ─── GRAIN ───────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--grain-op, 0.035);
  transition: opacity 1.1s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 1s steps(2) infinite;
}

@keyframes grain {
  0%   { background-position: 0 0; }
  33%  { background-position: 40px 20px; }
  66%  { background-position: -20px 50px; }
  100% { background-position: 20px -20px; }
}

/* ─── PAGE ────────────────────────────────────────────────── */
.page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem) clamp(7rem, 15vw, 12rem);
  padding-bottom: max(clamp(7rem, 15vw, 12rem), calc(clamp(7rem, 15vw, 12rem) + env(safe-area-inset-bottom, 0px)));
}

/* ─── HEADER ──────────────────────────────────────────────── */
.site-head {
  margin-bottom: clamp(5.5rem, 12vh, 9rem);
}

/* ─── GREETING WORDMARK ───────────────────────────────────── */
.wordmark {
  font-size: inherit;
  font-weight: var(--w);
  font-style: italic;
  letter-spacing: normal;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.wordmark:hover {
  color: var(--muted);
}

/* ─── DOCUMENT ────────────────────────────────────────────── */
.doc {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3.4vw, 2.6rem);
}

.doc p {
  /* smarter line breaking: avoids orphans + stray punctuation */
  text-wrap: pretty;
  hanging-punctuation: first allow-end;
}

/* ─── ENTRANCE — content arrives in sequence (pure CSS, so it
   always ends visible even if JS / the CDN never loads) ───── */
.site-head,
.doc > * {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.site-head        { animation-delay: 0.10s; }
.doc > *:nth-child(1) { animation-delay: 0.24s; }
.doc > *:nth-child(2) { animation-delay: 0.36s; }
.doc > *:nth-child(3) { animation-delay: 0.48s; }
.doc > *:nth-child(4) { animation-delay: 0.60s; }
.doc > *:nth-child(5) { animation-delay: 0.72s; }
.doc > *:nth-child(6) { animation-delay: 0.84s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.doc strong,
.doc b { font-weight: var(--w); }

/* ─── CHIPS — glassmorphic pill ───────────────────────────── */
.chip {
  display: inline;
  background: var(--chip-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--chip-ring);
  border: none;
  border-radius: 100px;
  padding: 0 0.34em 1px;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  /* tighter than the body's 1.55 so the pill hugs its text instead of filling
     the whole line box — this is what stops stacked pills from touching */
  line-height: 1.28;
  color: var(--fg);
  cursor: pointer;
  vertical-align: baseline;
  white-space: normal;
  text-align: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;

  transition:
    background      0.2s ease,
    box-shadow      0.2s ease,
    color           0.18s ease,
    backdrop-filter 0.2s ease,
    padding         0.22s ease;
}

.chip:hover:not(.open) {
  background: var(--chip-hover-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: var(--chip-hover-fg);
}

.chip.open {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: none;
  padding-left:  0.04em;
  padding-right: 0.04em;
  color: var(--fg);
  font-weight: var(--w);
  cursor: pointer;
}

.chip.open:hover {
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.18em;
}

/* ─── COHORT CHIP — pill with logo, blue on hover ────────── */
.chip[data-for="x-cohort"] {
  display: inline-flex;
  align-items: center;
  vertical-align: baseline;
  position: relative;
}

/* invisible hit-catcher: keeps the original footprint hoverable so the
   pill shrinking to fit "Cohort" never pulls its edge out from under the
   cursor (which caused an enter/leave flicker loop) */
.chip[data-for="x-cohort"]::before {
  content: "";
  position: absolute;
  top: -0.25em;
  bottom: -0.25em;
  left: -0.4em;
  right: -1.7em;
}

.chip[data-for="x-cohort"]:hover:not(.open) {
  background: var(--blue);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: #ffffff;
}

.cohort-word {
  white-space: nowrap;
}

/* margin (not flex-gap) so JS can collapse it and the pill shrinks to fit */
.cohort-inline-logo {
  height: 0.82em;
  width:  0.82em;
  margin-right: 0.3em;
  border-radius: 24%;
  object-fit: cover;
  flex-shrink: 0;
}

/* "the noise" inline text — RGB-split glitch that settles to stillness */
.noise-text {
  font-weight: var(--w);
  cursor: default;
}

.noise-text.glitching {
  animation: noiseGlitch 0.45s steps(2) 1;
}

@keyframes noiseGlitch {
  0%   { text-shadow: -2px 0 #ff3b3b, 2px 0 var(--blue); transform: translateX(0);    }
  25%  { text-shadow:  2px 0 #ff3b3b, -2px 0 var(--blue); transform: translateX(1px);  }
  50%  { text-shadow: -1px 0 #00e5ff, 1px 0 #ff6bff;      transform: translateX(-1px); }
  75%  { text-shadow:  1px 0 #ff3b3b, -1px 0 var(--blue); transform: translateX(0.5px);}
  100% { text-shadow: none;                               transform: translateX(0);    }
}

/* "has your back" — friendly shoulder nudge */
.has-back {
  display: inline-block;
  cursor: default;
  will-change: transform;
  transition: color 0.2s ease;
}

.has-back:hover {
  color: rgba(240, 237, 232, 0.82);
}

/* full stop shown only while "overwhelming" is collapsed */
.chip[data-for="x-overwhelm"].open ~ .ovr-dot { display: none; }

/* "…connect with the right people" only shows while opportunities is collapsed
   (when open, the reveal already covers people — avoids repetition) */
.chip[data-for="x-opportunities"].open ~ .opp-tail { display: none; }

/* ─── SCATTER LINE — the fragmented stack of student life ──── */
.scatter-line .sw {
  position: relative;
  display: inline-block;
  cursor: default;
  /* settles in slightly offset + rotated → a gentle "scattered" arrival */
  animation: swIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--d, 0) * 0.07s + 0.15s);
  /* theme-coloured underline grows on hover (blends with the vibe) */
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s ease;
}
.scatter-line .sw:hover { background-size: 100% 1px; }

@keyframes swIn {
  from { opacity: 0; transform: translateY(13px) rotate(-2.5deg); }
  to   { opacity: 1; transform: none; }
}

/* the emoji that pops above each word */
.scatter-line .se {
  position: absolute;
  left: 50%;
  bottom: 100%;
  margin-bottom: 3px;
  transform: translateX(-50%);
  opacity: 0;
  font-size: 0.78em;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.2s ease;
  -webkit-text-fill-color: initial;   /* keep emoji full-colour even inside tinted text */
}
.scatter-line .sw:hover .se { opacity: 1; }

/* themed entrance per word — character without distortion */
.sw[data-fx="tick"]:hover   .se { animation: fxTick   0.6s ease both; }
.sw[data-fx="mail"]:hover   .se { animation: fxMail   0.5s cubic-bezier(0.2,1.4,0.4,1) both; }
.sw[data-fx="ticket"]:hover .se { animation: fxTicket 0.5s cubic-bezier(0.2,1.6,0.4,1) both; }
.sw[data-fx="bubble"]:hover .se { animation: fxBubble 0.55s cubic-bezier(0.2,1.7,0.4,1) both; }
.sw[data-fx="flip"]:hover   .se { animation: fxFlip   0.6s ease both; }
.sw[data-fx="dates"]:hover  .se { animation: fxFlip   0.6s ease both; }
.sw[data-fx="toss"]:hover   .se { animation: fxToss   0.6s cubic-bezier(0.2,1.3,0.4,1) both; }

@keyframes fxTick {
  0%   { transform: translateX(-50%) scale(0.4) rotate(0deg); }
  35%  { transform: translateX(-50%) scale(1.05) rotate(-14deg); }
  60%  { transform: translateX(-50%) scale(1) rotate(11deg); }
  80%  { transform: translateX(-50%) scale(1) rotate(-5deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0deg); }
}
@keyframes fxMail {
  0%   { transform: translateX(-50%) translateY(8px) scale(0.5); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes fxTicket {
  0%   { transform: translateX(-50%) scale(0.3) rotate(-12deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0deg); }
}
@keyframes fxBubble {
  0%   { transform: translateX(-50%) scale(0); }
  70%  { transform: translateX(-50%) scale(1.18); }
  100% { transform: translateX(-50%) scale(1); }
}
@keyframes fxFlip {
  0%   { transform: translateX(-50%) rotateY(90deg) scale(0.7); }
  100% { transform: translateX(-50%) rotateY(0deg) scale(1); }
}
@keyframes fxToss {
  0%   { transform: translateX(-50%) translateY(6px) rotate(-25deg) scale(0.5); }
  60%  { transform: translateX(-50%) translateY(-3px) rotate(8deg) scale(1.05); }
  100% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1); }
}

/* Events — a ticket slides in beside the word, vertically centred on the line */
.sw[data-fx="ticket"] .tkt {
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.9em;
  line-height: 1;
  text-align: center;
  vertical-align: middle;            /* centre it against the text */
  transform: translateX(-4px) rotate(-14deg);
  transition: opacity 0.25s ease,
              transform 0.4s cubic-bezier(0.2, 1.5, 0.4, 1),
              width 0.32s ease,
              margin 0.32s ease;
  -webkit-text-fill-color: initial;
}
.sw[data-fx="ticket"]:hover .tkt {
  width: 1.35em;                     /* wide enough so the emoji never clips */
  margin-left: 0.14em;
  opacity: 1;
  transform: translateX(0) rotate(0);
}

/* "friends and roommates" — a warm, celebratory hover */
.happy {
  cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s ease;
}
.happy:hover, .happy:focus-visible { background-size: 100% 1px; outline: none; }

/* ─── STICKY-NOTE STORM + FLOATING EMOJI OVERLAYS ─────────── */
#stickies-overlay,
#emoji-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 996;
  overflow: hidden;
}

.sticky {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  padding: 13px 14px 18px;
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.12;
  color: #1b1b1b;
  border-radius: 2px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: 50% 0%;
}

.floatie {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 26px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* floating date chips (Calendars hover) */
.date-chip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 11px;
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1b1b1b;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.date-chip::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
}

/* ─── INLINE REVEAL ───────────────────────────────────────── */
.ix {
  display: none;
  font-weight: var(--w);
  font-style: normal;
  color: var(--fg);
}

/* ─── "BEST" PARTY WORD ───────────────────────────────────── */
#best-word.party {
  background-image: linear-gradient(
    90deg,
    #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #FF6BFF, #FFB347, #FF6B6B
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: partyShift 0.9s linear infinite;
}

@keyframes partyShift {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}

/* ─── iMESSAGE MOBILE HINT ────────────────────────────────── */
@keyframes imsgHint {
  0%, 100% { opacity: 1; }
  40%       { opacity: 0.55; }
}

.imsg.hint { animation: imsgHint 1.1s ease 2.8s 2; }

/* ─── iMESSAGE PILL ───────────────────────────────────────── */
.imsg {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 11px 11px 3px 11px;
  padding: 0 0.5em 1px;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  vertical-align: baseline;
  overflow: hidden;
  white-space: nowrap;
  cursor: default;
  transition: background-color 1.1s cubic-bezier(0.16,1,0.3,1),
              color            1.1s cubic-bezier(0.16,1,0.3,1),
              box-shadow       1.1s cubic-bezier(0.16,1,0.3,1);
}

/* Morning + evening: glass chip treatment — tonal, not attention-grabbing */
html[data-vibe="morning"] .imsg,
html[data-vibe="evening"] .imsg {
  background: var(--chip-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--chip-ring);
  color: var(--fg);
}

.imsg-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

/* ─── LOGO HOVER ─────────────────────────────────────────── */
.logo-hover {
  position: fixed;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  opacity: 0;
  pointer-events: none;
  z-index: 997;
  will-change: transform, opacity;
  /* drop-shadow follows the logo's transparency — no rectangular card behind it */
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  object-fit: contain;
}

/* ─── APP ICON OVERLAY ────────────────────────────────────── */
#icons-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
}

.app-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}

/* ─── AVATARS ("the right people" fan) ────────────────────── */
#avatars-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 997;
}

.avatar-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;       /* uniform circle regardless of source aspect */
  border: none;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}

/* ─── FOUNDER NAME TRIGGERS ───────────────────────────────── */
.founder {
  font-style: italic;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  /* underline grows in the current theme colour, so it blends with the vibe */
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.28s ease;
}
.founder:hover,
.founder:focus-visible {
  background-size: 100% 1px;
  outline: none;
}

/* ─── FOUNDER CARDS — gentle Vision-Pro edge tilt ─────────── */
#founders-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 997;
}

/* wrapper — GSAP positions this (slide in, follow the name, show/hide) */
.founder-card {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.founder-card.lit {
  pointer-events: auto;   /* let the cursor reach the card to tilt it */
}

/* inner — vanilla-tilt drives the 3D tilt; preserve-3d gives the layers depth */
.founder-tilt {
  position: relative;
  width: 140px;
  transform-style: preserve-3d;   /* lets the caption float forward in 3D */
  will-change: transform;
  cursor: pointer;
}

/* the clipped photo — sits at the back plane */
.founder-media {
  border-radius: 16px;
  overflow: hidden;
  background: #161616;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.62);
  transform: translateZ(0);
}

.founder-tilt img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;            /* square — same width & height */
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

/* the caption floats toward the viewer → real parallax depth as it tilts */
.founder-tilt figcaption {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  padding: 22px 11px 9px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-ui, system-ui, sans-serif);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  transform: translateZ(40px);
}
.founder-tilt figcaption b {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.founder-tilt figcaption span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* ─── FOUNDER INLINE AVATARS — desktop + mobile ─────────────── */
.founder-avatar-inline {
  display: block;      /* flex item inside inline-flex .founder — align-items: center handles centering */
  width: 1.55em;
  height: 1.55em;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 0.3em;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.38);
  /* start state: shifted outward, invisible — Seyi from left, Saleena from right */
  opacity: 0;
  transform: translateX(-28px) scale(0.5);
  transition: opacity 0.54s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.54s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}

[data-founder="saleena"] .founder-avatar-inline {
  transform: translateX(28px) scale(0.5);
}

.founder-avatar-inline.founder-av-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.founder-avatar-inline img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-user-drag: none;
  user-select: none;
}

/* ─── JOIN LINE ───────────────────────────────────────────── */
.join-line { margin-top: 1rem; }

/* ─── FLIP COUNTER ────────────────────────────────────────── */

/* font-size anchors all inner em values to one consistent reference */
.flip-counter {
  font-size: 0.92em;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  background: var(--chip-bg);
  border: 1px solid var(--chip-ring);
  border-radius: 6px;
  overflow: hidden;
  vertical-align: middle;
  position: relative;
  top: -0.06em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.flip-counter:hover {
  background: var(--chip-hover-bg);
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.flip-counter:hover .flip-strip span { color: var(--chip-hover-fg); }

.flip-digit {
  width:  0.68em;      /* em relative to .flip-counter font-size */
  height: 1.28em;
  background: transparent;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flip-digit:last-child { border-right: none; }

/* center fold — 1 px line, NO inset coverage */
.flip-digit::after {
  content: '';
  position: absolute;
  left:   0;
  right:  0;
  top:    calc(50% - 0.5px);
  height: 1px;
  background: currentColor;
  opacity: 0.15;
  z-index: 2;
  pointer-events: none;
}

.flip-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  z-index: 1;
}

.flip-strip span {
  height: 1.28em;               /* must match .flip-digit height */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 1em;               /* = flip-counter font-size */
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  letter-spacing: 0;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
  transition: color 0.18s ease;
}

/* iOS: prevent auto-zoom on input focus (inputs < 16px trigger zoom) */
.campus-in {
  font-size: max(16px, 1em);
}
.email-in {
  font-size: max(16px, 0.92rem);
}

/* ─── CAMPUS INPUT — inline prose style ──────────────────── */
.campus-wrap {
  display: inline-flex;
  align-items: baseline;
  padding: 0;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--muted);
  border-radius: 0;
  vertical-align: baseline;
  font-family: var(--font);
  font-size: inherit;
  font-style: italic;
  line-height: inherit;
  white-space: nowrap;
  cursor: text;
  position: relative;
  transition: border-color 0.25s ease;
}

.campus-wrap:hover       { border-bottom-color: var(--fg); }
.campus-wrap:focus-within {
  border-bottom-color: var(--fg);
  outline: none;
}

/* founder-campus easter egg — glassmorphic card */
.campus-wink {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px) scale(0.95);
  transform-origin: top center;
  font-family: var(--font-ui);
  font-style: normal;
  pointer-events: none;
  opacity: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(22px) saturate(200%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--fg);
  padding: 6px 12px 6px 6px;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

/* evening: warm amber glass */
html[data-vibe="evening"] .campus-wink {
  background: rgba(240, 180, 80, 0.13);
  border-color: rgba(240, 200, 122, 0.28);
  box-shadow: 0 8px 32px rgba(10, 3, 0, 0.45),
              inset 0 1px 0 rgba(255, 220, 120, 0.35);
}
html[data-vibe="evening"] .campus-wink::before {
  background: linear-gradient(110deg, transparent, rgba(255, 220, 120, 0.38) 50%, transparent);
}

/* morning: warm peach glass */
html[data-vibe="morning"] .campus-wink {
  background: rgba(42, 21, 8, 0.07);
  border-color: rgba(42, 21, 8, 0.13);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
              inset 0 1px 0 rgba(255, 240, 200, 0.55);
}
html[data-vibe="morning"] .campus-wink::before {
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.44) 50%, transparent);
}

/* day: cool linen glass */
html[data-vibe="day"] .campus-wink {
  background: rgba(26, 26, 20, 0.06);
  border-color: rgba(26, 26, 20, 0.11);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09),
              inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
html[data-vibe="day"] .campus-wink::before {
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.44) 50%, transparent);
}

/* glass sheen — sweeps left → right */
.campus-wink::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 0;
  width: 42%;
  height: 120%;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.30) 50%,
    transparent
  );
  transform: translateX(-130%) skewX(-8deg);
  pointer-events: none;
}

/* fires once on appear */
.campus-wrap.wink .campus-wink {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.campus-wrap.wink .campus-wink::before {
  animation: winkShine 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.22s both;
}

/* re-fires on hover */
.campus-wrap.wink .campus-wink:hover::before {
  animation: winkShine 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes winkShine {
  from { transform: translateX(-130%) skewX(-8deg); }
  to   { transform: translateX(360%)  skewX(-8deg); }
}

.campus-wink-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.campus-wink-name {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.campus-in {
  background: none;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  width: 13ch;
  min-width: 3ch;
  padding: 0;
  caret-color: var(--fg);
}

.campus-in::placeholder {
  color: var(--muted);
  font-style: italic;
}

/* ─── FORM ────────────────────────────────────────────────── */
.form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 0.85rem;
}

.email-in {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg);
  padding: 0.9rem 1.5rem;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1;
  width: clamp(230px, 55%, 330px);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 1.1s ease;
}

.email-in::placeholder { color: var(--placeholder); }
.email-in:focus {
  border-color: var(--input-border-focus);
  background: var(--input-bg-focus);
}

.email-in.input-error {
  border-color: rgba(230, 60, 60, 0.65);
  background: rgba(230, 60, 60, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.submit-btn {
  position: relative;
  overflow: hidden;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover  { background: #ffffff; }
.submit-btn:active { transform: scale(0.98); }

.btn-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a8f5e;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn.done .btn-done  { opacity: 1; }
.submit-btn.done .btn-label { opacity: 0; }

.form-status {
  min-height: 1.2em;
  margin-top: 0.65rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  color: var(--fine-color);
  opacity: 0.95;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.form-status.is-success {
  color: #1a8f5e;
}

.form-status.is-error {
  color: #d14f4f;
}

/* ─── FINE PRINT ──────────────────────────────────────────── */
.fine {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--fine-color);
  margin-top: 0.2rem;
  transition: color 1.1s ease;
}

/* ─── CLOSING SECTION — the social layer ─────────────────── */
/* vibe-following; flows straight on from the waitlist into a centred phone */
.closer {
  position: relative;
  padding: clamp(5rem, 11vw, 10rem) clamp(1rem, 4vw, 3rem) 0;
  text-align: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.closer-title {
  font-family: var(--font);          /* centold */
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 auto clamp(1.5rem, 3.5vw, 3rem);
  transition: color 1.1s ease;
}

/* phone centred — hand image naturally falls left, nudge right so screen is centred */
.closer-stage {
  position: relative;
  display: flex;
  justify-content: center;
}

.closer-phone-wrap {
  flex-shrink: 0;
  width: clamp(460px, 50vw, 740px);
  transform: translateX(13%);
  perspective: 900px;
}

.closer-phone {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
}


/* ─── AMBIENT CANVAS ──────────────────────────────────────── */
#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;          /* above bg, below everything else */
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ─── SOUND HINT ──────────────────────────────────────────── */
#sound-hint {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, color 1.1s ease;
  white-space: nowrap;
}

#sound-hint.visible { opacity: 0.35; }

/* ─── VIBE SWITCHER ───────────────────────────────────────── */
#vibe-wrap {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  z-index: 900;
  display: flex;
  flex-direction: row;
  align-items: center;    /* time sits beside the mid-point of the lamp/cord */
  pointer-events: none;
  animation: rise 1s cubic-bezier(0.16,1,0.3,1) 0.5s both;
}

/* ── Controls column ── */
#vibe-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  padding-bottom: 14px;
  position: relative;
}

/* ── Time button ── */
.vibe-btn {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px 8px 14px;
  font-family: 'Menlo', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.5;
  transition: opacity 0.2s ease, color 1.1s ease;
  white-space: nowrap;
}

.vibe-btn:hover { opacity: 1; }

#vibe-clock   { font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
#vibe-label   { letter-spacing: 0.13em; opacity: 0.7; }

.vibe-chevron {
  opacity: 0.55;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.vibe-btn[aria-expanded="true"] .vibe-chevron { transform: rotate(180deg); }

/* ── Particles option (lives inside dropdown) ── */
.vibe-menu-divider {
  height: 1px;
  background: var(--bg);
  opacity: 0.14;
  margin: 6px 14px;
}

.particles-opt {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.particles-opt[aria-pressed="false"] {
  opacity: 0.4;
}

.particles-opt-label {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.particles-opt-state {
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.particles-opt[aria-pressed="true"] .particles-opt-state { opacity: 1; }

/* ── Dropdown ── */
.vibe-menu {
  pointer-events: all;
  position: absolute;
  top: calc(100% - 10px);
  right: 0;
  background: var(--fg);
  color: var(--bg);
  border-radius: 12px;
  padding: 10px 0 8px;
  min-width: 178px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  transform-origin: top right;
  animation: menuIn 0.22s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes menuIn {
  from { opacity: 0; transform: scale(0.94) translateY(-6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.vibe-menu-hdr {
  display: block;
  font-family: 'Menlo', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.36;
  padding: 0 18px 10px;
}

.vibe-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  font-family: 'Menlo', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bg);
  text-align: left;
  transition: opacity 0.15s ease;
}

.vibe-opt:hover                      { opacity: 0.5; }
.vibe-opt[aria-selected="true"]::after { content: '✓'; font-size: 0.68rem; }

/* ── Physics lamp ── */
#lamp-mount {
  pointer-events: all;
  flex-shrink: 0;
  padding-right: 18px;
}

#lamp-physics {
  display: block;
  width: 68px;
  height: 165px;
  color: var(--fg);
  transition: color 1.1s ease;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: visible;
}

#lamp-physics:active { cursor: grabbing; }

/* Bulb: off by default — only lights up when html.lamp-on is set */
#lp-bulb {
  fill: transparent;
  transition: fill 0.45s ease, filter 0.45s ease;
}

/* Light cone: off by default */
#lp-cone { transition: opacity 0.45s ease; }

/* ── LAMP ON — toggled by JS click ── */
html.lamp-on #lp-bulb                     { fill: var(--lamp-glow); }

/* Night gets a dim warm glow even though --lamp-glow is transparent */
html.lamp-on[data-vibe="night"] #lp-bulb {
  fill: #FFE0A0;
  filter: drop-shadow(0 0 5px rgba(255,220,120,0.7)) drop-shadow(0 0 14px rgba(255,180,60,0.35));
}

html.lamp-on[data-vibe="morning"] #lp-bulb,
html.lamp-on[data-vibe="day"]     #lp-bulb,
html.lamp-on[data-vibe="evening"] #lp-bulb {
  filter: drop-shadow(0 0 6px var(--lamp-glow)) drop-shadow(0 0 18px var(--lamp-glow));
}

html.lamp-on[data-vibe="morning"] #lp-cone { opacity: 0.7 !important; }
html.lamp-on[data-vibe="day"]     #lp-cone { opacity: 0.5 !important; }
html.lamp-on[data-vibe="evening"] #lp-cone { opacity: 0.9 !important; }
html.lamp-on[data-vibe="night"]   #lp-cone { opacity: 0.35 !important; }

/* Ball hover ring */
#lp-ball-ring { transition: opacity 0.25s ease; }

#lamp-physics:hover #lp-ball-ring { opacity: 0.45; }

/* JS drives positions every frame — no CSS transitions */
#lp-cord, #lp-ball, #lp-shade-group, #lp-ball-ring { transition: none; }

/* ─── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .grain  { animation: none; }
  .page   { animation: none; }
  /* Zero delays + instant visibility — no waiting for content */
  .site-head,
  .doc > * {
    animation: none;
    animation-delay: 0s !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .chip   { transition: none; backdrop-filter: none; }
  .imsg   { transition: none; }
  .imsg.hint { animation: none; }
  #best-word.party { animation: none; }
  .app-icon        { display: none; }
  .logo-hover      { display: none; }
  .avatar-node     { display: none; }
  .founder-card    { display: none; }
  #stickies-overlay, #emoji-overlay { display: none; }
  .noise-text.glitching { animation: none; }
  .scatter-line .sw { animation: none; }
  .scatter-line .sw:hover .se { animation: none; transform: translateX(-50%); }
  .ix {
    display: inline !important;
    opacity: 1 !important;
  }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */

/* ── 760px: phone wrap tightens as viewport shrinks ── */
@media (max-width: 760px) {
  .closer-phone-wrap {
    width: clamp(320px, 82vw, 520px);
    transform: translateX(7%);
  }
}

/* ── 640px: medium phone territory ── */
@media (max-width: 640px) {
  .page {
    padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 3rem) clamp(3.5rem, 8vw, 6rem);
  }
  .site-head { margin-bottom: clamp(3rem, 8vh, 5.5rem); }
  .closer-title { font-size: clamp(1.5rem, 7vw, 2.4rem); }
  .closer-phone-wrap {
    width: min(86vw, 420px);
    transform: translateX(5%);
  }
}

/* ── 560px: stacked form ── */
@media (max-width: 560px) {
  .form { flex-direction: column; align-items: stretch; }
  .email-in { width: 100%; }
  .submit-btn { text-align: center; }
  .form-status { text-align: center; }
  .imsg { width: auto; }
  .campus-wrap { font-size: inherit; }
  .join-line { font-size: 0.95em; }
  .campus-wink { max-width: calc(100vw - 2.5rem); }
}

/* ── 480px: small phone ── */
@media (max-width: 480px) {
  .vibe-btn { padding: 12px 10px 8px 14px; font-size: 0.65rem; }
  .doc { gap: clamp(1.4rem, 3vw, 1.8rem); }
  #lamp-mount {
    padding-right: 8px;         /* tighter on mobile */
  }
  #lamp-physics {
    width: 50px;
    height: 122px;
  }
  .closer-phone-wrap {
    width: min(94vw, 380px);
    /* hand sits bottom-left of the image, phone screen center ≈ 43% of image width.
       shift right ~8% of wrapper to land the screen at visual centre of the viewport */
    transform: translateX(8%);
  }
}

/* ── 380px: very small phone ── */
@media (max-width: 380px) {
  .page { padding: 2.5rem 1rem 3rem; }
  .closer-phone-wrap { width: 95vw; transform: translateX(8%); }
  .flip-counter { font-size: 0.82em; }
  .closer-title { font-size: 1.4rem; }
}
