/* ------------------------------------------------------------------ */
/* Three Diamonds Challenge: entry points                              */
/* ------------------------------------------------------------------ */
.tri { display: inline-block; width: 1.25em; height: 1.1em; vertical-align: -0.16em; }
.dia-btn { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 13px; border-radius: 999px; overflow: hidden; pointer-events: auto;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
  background: rgba(12, 11, 11, .62); border: 1px solid rgba(244, 240, 234, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, color .3s; }
.dia-btn .tri { color: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55)); }
.dia-btn:hover { border-color: rgba(255, 255, 255, .7); }
.dia-btn::after, .dia-fab::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 64%); transform: translateX(-120%); animation: diaSheen 4.8s ease-in-out infinite 1.5s; }
@keyframes diaSheen { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.dia-fab { display: none; position: fixed; z-index: 43; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); overflow: hidden;
  width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 999px; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  background: rgba(12, 11, 11, .78); border: 1px solid rgba(244, 240, 234, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.dia-open .dia-fab { display: none !important; }
.dia-fab .fl { display: none; }
body.photo .dia-fab { width: auto; padding: 0 16px 0 14px; }
body.photo .dia-fab .fl { display: inline; }
.dia-fab .tri { width: 20px; height: 18px; color: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .6)); }
.dtag { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 16px 10px 12px; border-radius: 2px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
  background: rgba(10, 9, 9, .5); border: 1px solid rgba(244, 240, 234, .34); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dtag .tri { color: #fff; }
.dtag span { color: var(--copper-2); }
.dtag:hover { border-color: rgba(255, 255, 255, .7); }
.p-text .dtag { color: var(--ink); background: transparent; border-color: rgba(18, 17, 18, .25); backdrop-filter: none; }
.p-text .dtag .tri { color: #1b1a1b; }
.p-text .dtag span { color: #a4602f; }
.p-spread.dark .p-text .dtag { color: var(--paper); border-color: rgba(244, 240, 234, .3); }
.p-spread.dark .p-text .dtag .tri { color: #fff; }

/* nav: one line at every width, simplifying as space runs out */
.dia-btn, #day, .brand b { white-space: nowrap; }
.navr > * { flex-shrink: 0; }
.dia-btn .s { display: none; }
@media (max-width: 1560px) { .brand > span { display: none; } }
@media (max-width: 1320px) { .dia-btn .l { display: none; } .dia-btn .s { display: inline; } .navr { gap: 14px; } }
@media (max-width: 1120px) { .brand b, .brand .sep { display: none; } }

/* photo-mode teaser */
.p-dia { position: relative; overflow: hidden; text-align: center; background: #0d0c0d; padding-top: clamp(100px, 16vh, 180px); padding-bottom: clamp(100px, 16vh, 180px); }
.p-dia::before { content: ''; position: absolute; inset: 0; background: radial-gradient(42% 40% at 50% 34%, rgba(201, 132, 82, .2), transparent 70%); pointer-events: none; }
.pd-in { position: relative; max-width: 980px; margin: 0 auto; }
.pd-emb { width: clamp(90px, 11vw, 150px); height: auto; color: #fff; filter: drop-shadow(0 0 22px rgba(255, 255, 255, .45)); margin-bottom: 30px; }
.p-dia .eyebrow { justify-content: center; }
.p-dia h2 { font-size: clamp(40px, 6.4vw, 108px); margin-bottom: 0; }
.p-dia p { margin: 22px auto 0; max-width: 54ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.65; color: var(--mute); }
.pd-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 44px auto 36px; background: rgba(244, 240, 234, .12); border: 1px solid rgba(244, 240, 234, .12); text-align: left; }
.pd-steps li { padding: 22px; background: #0d0c0d; font-size: 15px; font-weight: 600; }
.pd-steps b { display: block; margin-bottom: 8px; font-family: var(--display); font-stretch: 118%; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--copper-2); }
.pd-steps span { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--faint); }
@media (max-width: 820px), (max-aspect-ratio: 1/1) { .pd-steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* The overlay                                                         */
/* ------------------------------------------------------------------ */
#dia { position: fixed; inset: 0; z-index: 50; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #0d0c0d; color: var(--paper); visibility: hidden; outline: none; scrollbar-width: none; }
#dia::-webkit-scrollbar { display: none; }
#dia.on, #dia.moving { visibility: visible; }
.dhead { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px clamp(18px, 4vw, 56px); background: linear-gradient(180deg, rgba(13, 12, 13, .92), rgba(13, 12, 13, 0)); }
.dhead .t { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-stretch: 118%; font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.dhead .t .tri { color: #fff; width: 22px; height: 20px; }
.dclose { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(244, 240, 234, .3); background: rgba(13, 12, 13, .6); }
.dclose:hover { border-color: rgba(255, 255, 255, .7); }
.dclose b { font-size: 16px; line-height: 0; font-weight: 400; }
.dpad { padding-left: clamp(20px, 6vw, 96px); padding-right: clamp(20px, 6vw, 96px); }
.d-eye { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--copper-2); }
.d-eye::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.d-h { font-family: var(--display); font-stretch: 118%; font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; font-size: clamp(38px, 5.2vw, 88px); }
.d-h em { font-style: normal; color: var(--copper-2); }
.d-p { margin-top: 22px; max-width: 48ch; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.7; color: var(--mute); }
.d-p b { color: var(--paper); font-weight: 600; }
.dl { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.dl > span { display: block; }

/* hero */
.d-hero { position: relative; min-height: 100vh; min-height: 100svh; margin-top: -72px; display: grid; place-items: center; text-align: center; overflow: hidden; padding-top: 80px; padding-bottom: 80px; }
.d-hero::before { content: ''; position: absolute; inset: -20%; background: radial-gradient(40% 36% at 50% 42%, rgba(201, 132, 82, .2), transparent 70%), radial-gradient(60% 50% at 50% 46%, rgba(255, 255, 255, .06), transparent 70%); pointer-events: none; }
.d-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.d-hero .in { position: relative; z-index: 2; }
.d-emblem { width: min(46vw, 330px); height: auto; overflow: visible; margin: 0 auto 26px; display: block; }
.d-hero .d-h { font-size: clamp(42px, 7.4vw, 128px); }
.d-hero .d-p { margin: 24px auto 0; text-align: center; }
.d-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.d-cue span { position: relative; width: 1px; height: 38px; background: rgba(244, 240, 234, .16); overflow: hidden; }
.d-cue span::after { content: ''; position: absolute; inset: 0 0 60% 0; background: var(--copper); animation: drip 1.8s ease-in-out infinite; }

/* why */
.d-why { padding-top: clamp(100px, 16vh, 180px); padding-bottom: clamp(100px, 16vh, 180px); }
.d-why blockquote { font-family: var(--display); font-stretch: 118%; font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 80px); line-height: 1.0; max-width: 17ch; }
.d-why .w { opacity: .14; }
.d-why .w.em { color: var(--copper-2); }
.d-why .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(50px, 8vh, 90px); border-top: 1px solid rgba(244, 240, 234, .14); }
.d-why .cols div { padding-top: 22px; font-size: 15px; line-height: 1.65; color: var(--mute); }
.d-why .cols b { display: block; margin-bottom: 10px; font-family: var(--display); font-stretch: 118%; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--paper); }

/* how it works */
.d-how { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(90px, 14vh, 160px); background: linear-gradient(180deg, #0d0c0d, #151314 50%, #0d0c0d); }
.d-cards { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 7vh, 70px); }
.d-card { position: relative; padding: clamp(22px, 2.4vw, 36px); border: 1px solid rgba(244, 240, 234, .14); border-radius: 3px; background: rgba(255, 255, 255, .02); text-align: left; cursor: pointer; transition: border-color .3s, background .3s; }
.d-card:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .04); }
.d-card .n { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(54px, 6vw, 96px); line-height: .8; color: transparent; -webkit-text-stroke: 1.2px rgba(244, 240, 234, .55); }
.d-card .v { margin-top: 18px; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(26px, 2.6vw, 42px); letter-spacing: .04em; text-transform: uppercase; color: var(--copper-2); }
.d-card h4 { margin-top: 10px; font-size: 15px; font-weight: 600; }
.d-card p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--mute); }
.d-card .when { margin-top: 18px; font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.d-card .gem { position: absolute; top: 22px; right: 22px; width: 26px; height: 40px; }
.d-flow { display: flex; align-items: center; gap: 18px; margin-top: 34px; font-size: 14px; color: var(--mute); }
.d-flow .bar { position: relative; flex: 1; height: 1px; background: rgba(244, 240, 234, .16); overflow: hidden; }
.d-flow .bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--copper), #fff); transform-origin: 0 50%; transform: scaleX(0); }
.d-flow b { color: var(--paper); font-weight: 600; }
.d-flow .tri { color: #fff; width: 24px; height: 22px; }

/* the three parts */
.d-part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 6vw, 110px); min-height: 100vh; padding-top: clamp(90px, 12vh, 140px); padding-bottom: clamp(90px, 12vh, 140px); }
.d-part.rev .d-txt { order: 2; }
.d-part .d-h { font-size: clamp(34px, 3.7vw, 64px); }
.d-part .tagline { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.d-part .tagline span { padding: 7px 11px; border: 1px solid rgba(244, 240, 234, .16); border-radius: 2px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.d-vis { position: relative; display: grid; place-items: center; }

/* phone mock (part 1) */
.phone { position: relative; width: min(300px, 74vw); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px; background: #1b1a1b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px rgba(0, 0, 0, .6), 0 0 120px rgba(201, 132, 82, .12); }
.phone .scr { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: linear-gradient(180deg, #1e1a17, #121011); padding: 44px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 20px; background: #0b0a0b; z-index: 2; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ph-top b { font-family: var(--display); font-stretch: 112%; font-size: 15px; letter-spacing: .04em; color: var(--copper-2); }
.ph-timer { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ph-timer i { display: block; height: 100%; background: var(--copper); transform-origin: 0 50%; }
.ph-q small { display: block; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ph-q p { margin-top: 8px; font-family: var(--display); font-stretch: 105%; font-weight: 600; font-size: 19px; line-height: 1.2; }
.ph-opts { display: grid; gap: 9px; }
.ph-opts div { position: relative; overflow: hidden; padding: 13px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; font-weight: 500; }
.ph-opts .ok.hit { background: var(--copper); color: var(--ink); border-color: var(--copper); }
.ph-opts .rip { position: absolute; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); pointer-events: none; }
.ph-plus { position: absolute; right: 26px; top: 46%; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 28px; color: #fff; opacity: 0; text-shadow: 0 0 18px rgba(255, 255, 255, .5); }
.ph-board { margin-top: auto; display: grid; gap: 6px; }
.ph-board h5 { font-size: 9px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.ph-row { display: flex; justify-content: space-between; padding: 8px 11px; border-radius: 9px; background: rgba(255, 255, 255, .04); font-size: 12px; }
.ph-row.me { background: rgba(201, 132, 82, .22); color: #fff; }
.ph-row b { font-weight: 600; }

/* hunt map (part 2) */
.hunt { position: relative; width: min(520px, 88vw); }
.hunt svg { width: 100%; height: auto; display: block; border-radius: 4px; background: #191513; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.hunt .clues { position: absolute; right: -14px; top: 14px; display: grid; gap: 8px; }
.hunt .clue { display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 3px; background: rgba(13, 12, 13, .88); border: 1px solid rgba(244, 240, 234, .14); font-size: 12px; color: var(--mute); backdrop-filter: blur(4px); }
.hunt .clue i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid rgba(255, 255, 255, .5); flex: none; }
.hunt .clue.on { color: #fff; border-color: rgba(201, 132, 82, .7); }
.hunt .clue.on i { background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .8); }
.hunt .clue b { margin-left: auto; padding-left: 12px; color: var(--copper-2); font-weight: 600; }

/* EEG panel (part 3) */
.eeg { position: relative; width: min(560px, 90vw); padding: 22px 22px 18px; border-radius: 6px; background: #0b0f13; border: 1px solid rgba(95, 212, 255, .16); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(95, 212, 255, .06); }
.eeg .hd { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #9fb3c4; }
.eeg .hd b { display: inline-flex; align-items: center; gap: 8px; color: #5fd4ff; }
.eeg .hd b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fd4ff; box-shadow: 0 0 10px #5fd4ff; animation: eegPulse 1.2s ease-in-out infinite; }
@keyframes eegPulse { 50% { opacity: .25; } }
.eeg svg { width: 100%; height: auto; display: block; margin-top: 12px; }
.eeg .lg { display: flex; gap: 16px; margin-top: 8px; font-size: 11px; color: #9fb3c4; }
.eeg .lg span::before { content: ''; display: inline-block; width: 14px; height: 2px; margin-right: 7px; vertical-align: middle; background: currentColor; }
.eeg .win { position: absolute; right: 14px; top: 26%; padding: 7px 11px; border-radius: 3px; background: rgba(224, 160, 113, .16); border: 1px solid rgba(224, 160, 113, .7); color: #f2c39d; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; }

/* leaderboard */
.d-board { padding-top: clamp(90px, 13vh, 150px); padding-bottom: clamp(90px, 13vh, 150px); background: linear-gradient(180deg, #0d0c0d, #141213 50%, #0d0c0d); }
.lb { margin-top: clamp(36px, 6vh, 60px); max-width: 860px; }
.lb-h, .lb-r { display: grid; grid-template-columns: 54px minmax(0, 1fr) repeat(3, 72px) 92px 36px; align-items: center; gap: 10px; }
.lb-h { padding: 0 14px 10px; font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid rgba(244, 240, 234, .12); }
.lb-r { position: relative; padding: 13px 14px; border-bottom: 1px solid rgba(244, 240, 234, .07); font-size: 14px; color: var(--mute); }
.lb-r .rk { font-family: var(--display); font-stretch: 112%; font-weight: 700; color: var(--faint); }
.lb-r .tot { font-family: var(--display); font-stretch: 112%; font-weight: 700; color: var(--paper); text-align: right; }
.lb-r .pt { text-align: right; }
.lb-r .tri { width: 24px; height: 22px; color: #fff; opacity: 0; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .8)); }
.lb-r.top { color: var(--paper); background: linear-gradient(90deg, rgba(201, 132, 82, .14), transparent); }
.lb-r.top .rk { color: var(--copper-2); }

/* prize */
.d-prize { padding-top: clamp(90px, 13vh, 150px); padding-bottom: clamp(90px, 13vh, 150px); text-align: center; }
.d-prize .d-p { margin-left: auto; margin-right: auto; }
.d-prize .d-eye { justify-content: center; }
.jewels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 48px); max-width: 980px; margin: clamp(40px, 7vh, 70px) auto 0; }
.jewel svg { width: 100%; height: auto; overflow: visible; display: block; }
.jewel h5 { margin-top: 12px; font-family: var(--display); font-stretch: 118%; font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.jewel p { margin-top: 6px; font-size: 13px; color: var(--faint); }
.d-note { margin-top: 30px; font-size: 13px; color: var(--faint); }

/* what LUMI delivers */
.d-deliver { padding-top: clamp(90px, 13vh, 150px); padding-bottom: clamp(70px, 10vh, 120px); border-top: 1px solid rgba(244, 240, 234, .08); }
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(36px, 6vh, 60px); background: rgba(244, 240, 234, .1); border: 1px solid rgba(244, 240, 234, .1); }
.dgrid div { min-height: 150px; padding: 22px; background: #0d0c0d; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.dgrid i { font-style: normal; font-family: var(--display); font-stretch: 112%; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--copper-2); }
.dgrid b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.dgrid .lumi { justify-content: center; align-items: flex-start; background: #121011; }
.dgrid .lumi img { height: 34px; width: auto; }
.dgrid .lumi span { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }

/* end */
.d-end { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(100px, 14vh, 160px); text-align: center; }
.d-end .d-h { font-size: clamp(32px, 4.4vw, 72px); }
.d-end .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.d-end .row button { padding: 14px 20px; border-radius: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; border: 1px solid rgba(244, 240, 234, .22); }
.d-end .row button:hover { border-color: rgba(255, 255, 255, .7); }
.d-end .row .primary { background: var(--copper); border-color: var(--copper); color: var(--ink); }

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  /* phones: the challenge lives in the top bar as a round diamond button, nothing floats over the content */
  .navr .dia-btn { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .navr .dia-btn .l, .navr .dia-btn .s { display: none !important; }
  .navr .dia-btn .tri { width: 20px; height: 18px; }
  .dhead .t span { display: none; }
  .d-why .cols, .d-cards { grid-template-columns: 1fr; }
  .d-part { grid-template-columns: 1fr; min-height: 0; }
  .d-part.rev .d-txt { order: 0; }
  .hunt { width: 100%; }
  .hunt .clues { position: static; margin-top: 14px; }
  .hunt .clue { font-size: 11.5px; }
  .eeg .win { left: auto; right: 12px; top: 20%; font-size: 9.5px; letter-spacing: .1em; }
  .lb-h, .lb-r { grid-template-columns: 34px minmax(0, 1fr) 70px 28px; }
  .lb-h .p, .lb-r .pt { display: none; }
  .jewels { grid-template-columns: 1fr; max-width: 320px; }
  .dgrid { grid-template-columns: 1fr 1fr; }
  .dgrid div { min-height: 120px; padding: 16px; }
  .dgrid b { font-size: 14px; }
}

/* ------------------------------------------------------------------ */
/* Robustness: nothing floats over the photo story; widgets never wider than their column */
/* ------------------------------------------------------------------ */
body.photo #ctl { opacity: 0 !important; pointer-events: none !important; }
.hunt { width: min(520px, 100%); }
.eeg { width: min(560px, 100%); }
.phone { width: min(300px, 100%); }

/* Short landscape screens (a phone held sideways): compact chrome and copy */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .nav { padding: 10px 18px !important; }
  .brand { gap: 10px; }
  .brand .lumi { height: 20px; }
  .brand .mitsu { height: 24px; }
  .brand b, .brand > span, .brand .sep, #day { display: none !important; }
  .navr { gap: 10px; }
  .navr .dia-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .navr .dia-btn .l, .navr .dia-btn .s { display: none !important; }
  .mode span { padding: 8px 11px; letter-spacing: .14em; }
  .mode .l { display: none; } .mode .s { display: inline; }

  .sticky { align-items: flex-end !important; padding: 0 clamp(20px, 5vw, 60px) 86px !important; }
  .copy { max-width: 48vw; }
  .hero .copy { max-width: 58vw; }
  .eyebrow { margin-bottom: 10px; font-size: 9.5px; }
  h1 { font-size: 32px !important; }
  h2 { font-size: 26px !important; margin-bottom: 10px; }
  .copy p { font-size: 13px; line-height: 1.5; }
  .facts, .hint, .fine, .finale .dtag { display: none !important; }
  .dtag { margin-top: 12px; padding: 8px 12px 8px 10px; font-size: 9.5px; }
  .finale .sticky { align-items: flex-end !important; }
  .cta { margin-top: 14px; }
  .cta button { padding: 11px 16px; }
  .by { margin-top: 14px; }
  .by img { height: 24px; } .by img.m { height: 28px; }
  #ctl { left: 16px; bottom: 10px; transform: none; }
  #hud { right: 12px; bottom: 10px; top: auto; transform: scale(.6); transform-origin: 100% 100%; }
  #hud .strip { display: none; }

  .p-head { padding-bottom: 40px; }
  .p-head h1 { font-size: 40px; } .p-head h2 { font-size: 36px; }
  .p-head p { font-size: 14px; margin-top: 12px; }
  .p-cap { bottom: 12px; }
  .p-rail .stick { position: static; height: auto; display: block; padding: 70px 0; }
  .p-rail .track { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; transform: none !important; }
  .p-rail .intro, .p-rail .f { width: auto; }
  .p-day .num { font-size: 120px; } .p-day .in { padding: 70px 20px; }
  .p-fin .in { padding: 60px 20px; } .p-fin h2 { font-size: 34px; }
  .d-part { min-height: 0; }
}
