/* The Meeting Room: one long wall, side walls in flat shade, ceiling at the top, carpet at the bottom. */

.room {
  position: relative;
  padding-top: 0;
  background: linear-gradient(90deg,
    var(--side-l) 0, var(--side-l) var(--side),
    var(--wall) var(--side), var(--wall) calc(100% - var(--side)),
    var(--side-r) calc(100% - var(--side)), var(--side-r) 100%);
}
/* Room corners */
.room::before, .room::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--corner); pointer-events: none;
}
.room::before { left: calc(var(--side) - 1px); }
.room::after { right: calc(var(--side) - 1px); }

.scene { position: relative; }

/* ---------- 1. Projector (hero) ---------- */
.scene-projector {
  --ceil-h: clamp(96px, 17vh, 190px);
  --tarp-w: min(1000px, calc(88vw - 230px), calc((100svh - var(--ceil-h) - 170px) * 1.6));
  min-height: 100svh;
  padding-top: calc(var(--ceil-h) + 14px);
  display: flex; flex-direction: column; align-items: center;
}
.ceiling { position: absolute; top: 0; left: 0; width: 100%; height: var(--ceil-h); }
.lamp-flicker { animation: flicker 11s steps(1, end) infinite; }
@keyframes flicker {
  0%, 93% { opacity: 1; }
  93.5% { opacity: 0.55; }
  94% { opacity: 1; }
  94.6% { opacity: 0.7; }
  95.2%, 100% { opacity: 1; }
}
.light-pool {
  position: absolute; top: var(--ceil-h); left: var(--side); right: var(--side); height: 60vh;
  background: radial-gradient(ellipse 55% 100% at 50% 0, rgba(255, 255, 242, 0.5), rgba(255, 255, 242, 0) 72%);
  transform: translateY(var(--pool-y, 0));
  pointer-events: none;
}

/* Wall clock (Parañaque time) */
.wall-clock {
  position: absolute; top: calc(var(--ceil-h) + 26px); right: calc(var(--side) + 2.5vw);
  width: 66px; display: none; text-align: center;
}
.wall-clock svg { width: 66px; height: 66px; filter: drop-shadow(3px 4px 0 rgba(70, 60, 40, 0.16)); }
.clock-label { display: block; margin-top: 6px; font-family: var(--f-device); font-size: 0.68rem; line-height: 1.2; color: var(--ink-soft); }
@media (min-width: 1240px) { .wall-clock { display: block; } }

/* The rig: roller case, tarp, and the two big buttons */
.rig {
  position: relative;
  display: grid;
  grid-template-columns: 88px var(--tarp-w) 88px;
  grid-template-areas: ". case ." "prev tarp next";
  column-gap: 24px;
  align-items: center;
  transform: translateY(var(--rig-y, 0));
}
.rig-case {
  grid-area: case; position: relative; z-index: 2;
  height: 26px; margin: 0 -14px;
  background: linear-gradient(180deg, #f0eee7 0 34%, var(--plastic) 34% 72%, #cfcbbf 72% 100%);
  border-radius: 13px 13px 6px 6px;
  box-shadow: 5px 6px 0 rgba(70, 60, 40, 0.14);
}
.rig-bracket { position: absolute; top: -12px; width: 18px; height: 14px; background: #a9a497; }
.rig-bracket-l { left: 8%; }
.rig-bracket-r { right: 8%; }

.tarp-wrap, .tarp { grid-area: tarp; }
.tarp {
  position: relative; z-index: 1;
  align-self: start;
  padding: 10px 10px 0;
  background: var(--screen);
  box-shadow: 12px 14px 0 rgba(70, 60, 40, 0.13);
  animation: unroll 0.75s cubic-bezier(0.25, 0.8, 0.3, 1) both;
  touch-action: pan-y;
}
@keyframes unroll {
  from { clip-path: inset(0 -60px 100% -40px); transform: translateY(-14px); }
  to { clip-path: inset(-40px -60px -60px -40px); transform: none; }
}
.tarp-image {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 6px solid #2b2b2a;
  background: var(--paper);
  overflow: hidden;
}
.hotspot {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 255, 250, 0.16), rgba(255, 255, 250, 0) 70%);
  box-shadow: inset 0 0 60px rgba(70, 60, 40, 0.14);
}
.tarp-bar {
  position: relative; height: 34px;
  background: linear-gradient(180deg, var(--screen) 0 52%, #d4d0c4 52% 72%, #bdb8ab 72% 100%);
}
.tarp-pull {
  position: absolute; left: 50%; top: 100%; width: 34px; height: 14px; margin-left: -17px;
  border: 4px solid #8d887b; border-top: 0; border-radius: 0 0 17px 17px;
}

/* Big buttons */
.deck-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 88px; height: 88px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--plastic);
  color: var(--ink);
  font-weight: 700; font-size: 0.85rem;
  box-shadow: inset 0 -7px 0 var(--plastic-dark), 0 5px 0 #8f8a7c, 6px 10px 0 rgba(70, 60, 40, 0.12);
}
.deck-btn svg { width: 30px; height: 30px; }
.deck-btn:hover { background: #ecE9df; }
.deck-btn:active { transform: translateY(3px); box-shadow: inset 0 -4px 0 var(--plastic-dark), 0 2px 0 #8f8a7c; }
.deck-prev { grid-area: prev; }
.deck-next { grid-area: next; }

.deck-hint { margin: 30px 0 28px; font-family: var(--f-device); font-size: 0.78rem; color: var(--ink-soft); }

/* Slides (sized to the screen with container units) */
.deck { position: absolute; inset: 0; container-type: size; outline-offset: -6px; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 4.5cqh 6cqw 3.5cqh;
  font-size: min(3cqw, 4.9cqh);
  line-height: 1.25;
  color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateX(2.5%);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.slide.from-left { transform: translateX(-2.5%); transition: none; }
.slide.from-right { transform: translateX(2.5%); transition: none; }
.slide.exit-left { transform: translateX(-2.5%); }
.slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}
.slide-bar { height: 0.32em; margin-bottom: 0.4em; background: linear-gradient(90deg, var(--red) 0 7%, var(--accent) 7% 100%); }
.slide-body { align-self: center; min-height: 0; }
.slide-foot {
  display: flex; justify-content: space-between; gap: 1em;
  padding-top: 0.5em; border-top: 1px solid #d6d2c6;
  font-family: var(--f-device); font-size: 0.52em; color: var(--ink-soft);
}
.slide p, .slide h1, .slide h2, .slide ul { margin: 0; }

.s-kicker { font-size: 1.15em; font-weight: 700; color: var(--accent); }
.s-title { font-size: 3.3em; line-height: 1; margin: 0.12em 0 0.18em !important; letter-spacing: -0.01em; }
.s-subtitle { font-size: 1.55em; font-weight: 700; }
.s-line { margin-top: 0.3em !important; color: var(--ink-soft); }
.s-badge {
  display: inline-flex; align-items: center; gap: 0.45em;
  margin-top: 0.9em !important; padding: 0.2em 0.75em 0.25em;
  border: 0.12em solid var(--go); color: var(--go); font-weight: 700;
}
.s-dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--go); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.s-value { font-size: 6.2em; line-height: 0.92; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.s-unit { font-size: 1.9em; font-weight: 700; margin-top: 0.1em !important; }
.s-text { font-size: 1.15em; max-width: 26em; margin-top: 0.45em !important; color: var(--ink-soft); }

.s-heading { font-size: 1.7em; line-height: 1.1; margin-bottom: 0.7em !important; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3em; }
.s-grid-value { display: block; font-size: 2.1em; font-weight: 700; line-height: 1; color: var(--accent); margin-bottom: 0.25em; }
.s-grid-text { font-size: 0.82em; color: var(--ink-soft); }

.s-list { list-style: none; padding: 0; }
.s-list li { position: relative; padding-left: 1.1em; margin: 0.3em 0; font-size: 1.05em; }
.s-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.45em; height: 0.45em; background: var(--red); }
.s-note { margin-top: 0.8em !important; font-size: 0.85em; color: var(--ink-soft); }

.s-big { font-size: 3.6em; line-height: 1; margin-bottom: 0.2em !important; }
.s-actions { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 0.8em; }
.s-action {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.45em 0.8em; min-height: 44px;
  border: 0.1em solid var(--ink); background: #fff; color: var(--ink);
  font-family: var(--f-slide); font-size: 0.9em; font-weight: 700; text-decoration: none;
  box-shadow: 0.15em 0.18em 0 var(--ink);
}
.s-action:hover { background: #fff6e6; }
.s-action-main { background: var(--accent); color: #fff; }
.s-action-main:hover { background: #26475a; }

@container (orientation: portrait) {
  .slide { font-size: 5.6cqw; padding: 5cqh 7cqw 3.5cqh; }
  .s-title { font-size: 2.3em; }
  .s-subtitle { font-size: 1.3em; }
  .s-value { font-size: 4.6em; }
  .s-unit { font-size: 1.5em; }
  .s-text { font-size: 1.05em; }
  .s-heading { font-size: 1.4em; margin-bottom: 0.5em !important; }
  .s-grid { grid-template-columns: 1fr; gap: 0.75em; }
  .s-grid-value { display: inline; font-size: 1.35em; margin-right: 0.3em; }
  .s-grid-text { font-size: 0.85em; }
  .s-list li { font-size: 0.92em; margin: 0.25em 0; }
  .s-note { font-size: 0.78em; }
  .s-big { font-size: 2.5em; }
  .s-actions { flex-direction: column; align-items: stretch; }
  .s-action { justify-content: center; font-size: 0.85em; }
  .slide-foot { font-size: 0.6em; }
}

@media (max-width: 760px) {
  .scene-projector { --ceil-h: clamp(84px, 13vh, 120px); --tarp-w: calc(100vw - 32px); }
  .rig {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "case case" "tarp tarp" "prev next";
    column-gap: 12px; row-gap: 0;
    width: var(--tarp-w);
  }
  .rig-case { margin: 0 -6px; }
  .tarp-image { aspect-ratio: 4 / 5; border-width: 4px; }
  .tarp { padding: 6px 6px 0; box-shadow: 6px 8px 0 rgba(70, 60, 40, 0.13); }
  .tarp-bar { height: 26px; }
  .deck-btn {
    flex-direction: row; gap: 8px;
    width: auto; height: 56px; margin-top: 26px;
    border-radius: 10px; font-size: 1rem;
  }
  .deck-btn svg { width: 22px; height: 22px; }
  .deck-hint { margin: 16px 0 24px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .tarp-image { aspect-ratio: 1 / 1; }
}

/* ---------- Last scene: the door ---------- */
.scene-adjourn {
  --floor-h: clamp(150px, 30vh, 300px);
  min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: center; gap: 7vw;
  padding: 72px calc(var(--side) + 16px) calc(var(--floor-h) + 10px);
}
/* Baseboard on the back wall */
.scene-adjourn::after {
  content: ""; position: absolute; left: var(--side); right: var(--side); bottom: var(--floor-h);
  height: 12px; background: #b0a58c; border-top: 2px solid #c6bba2;
}
.door-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.exit-sign {
  padding: 3px 12px; border: 3px solid var(--plastic);
  background: #2f7d4f; color: #eef8f0;
  font-family: var(--f-device); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.22em;
  box-shadow: 0 0 12px rgba(47, 125, 79, 0.3);
}
.door { width: auto; height: min(52vh, 440px); aspect-ratio: 200 / 420; margin-bottom: 2px; filter: drop-shadow(5px 0 0 rgba(70, 60, 40, 0.12)); }

.notice {
  position: relative; align-self: center;
  width: min(100%, 31rem);
  margin-bottom: 4vh;
  padding: 30px 28px 24px;
  background: #faf8f2;
  box-shadow: 7px 9px 0 rgba(70, 60, 40, 0.16);
  transform: rotate(-0.6deg);
}
.tape { position: absolute; top: -10px; width: 74px; height: 22px; background: rgba(226, 214, 172, 0.9); }
.tape-l { left: -14px; transform: rotate(-24deg); }
.tape-r { right: -14px; transform: rotate(22deg); }
.notice h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.1; }
.notice-text { margin: 0 0 18px; color: var(--ink-soft); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 8px; }
.contact-btn {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  padding: 9px 14px; border: 2px solid var(--ink); background: #fff; text-decoration: none;
  box-shadow: 3px 4px 0 var(--ink);
}
.contact-btn:hover { background: #fff6e6; }
.contact-k { font-family: var(--f-device); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.contact-v { font-weight: 700; overflow-wrap: anywhere; }
.copy-btn {
  padding: 0 14px; min-height: 44px; border: 2px solid var(--ink); background: transparent; font-weight: 700;
  box-shadow: 3px 4px 0 var(--ink);
}
.copy-btn:hover { background: #fff6e6; }
.scribble { margin: 16px 0 0; font-family: var(--f-hand); font-size: 1.2rem; color: var(--accent); transform: rotate(-1.5deg); }
.scribble a { text-decoration-style: wavy; text-underline-offset: 4px; }

.wall-sign {
  position: absolute; right: calc(var(--side) + 2.5vw); top: 30%;
  display: none;
  margin: 0; max-width: 11rem; padding: 8px 12px;
  background: #ecebe4; border: 2px solid #9d998e;
  font-size: 0.8rem; line-height: 1.3; color: var(--ink-soft);
}
@media (min-width: 1280px) { .wall-sign { display: block; } }
.outlet {
  position: absolute; right: calc(var(--side) + 15rem); bottom: calc(var(--floor-h) + 30px);
  width: 22px; height: 32px; border-radius: 3px; background: #ecebe4; border: 1px solid #b6b1a4;
}
.outlet::before, .outlet::after { content: ""; position: absolute; left: 6px; width: 8px; height: 3px; background: #6f6c65; }
.outlet::before { top: 9px; }
.outlet::after { top: 19px; }

.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--floor-h);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 16px 18px;
  clip-path: polygon(var(--side) 0, calc(100% - var(--side)) 0, 100% 100%, 0 100%);
  background-color: var(--carpet);
  background-image:
    radial-gradient(var(--carpet-dark) 1px, transparent 1.6px),
    radial-gradient(var(--carpet-light) 1px, transparent 1.6px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
}
.plant {
  position: absolute; right: calc(var(--side) + 2vw); bottom: calc(var(--floor-h) - 34px); z-index: 2;
  width: auto; height: clamp(120px, 24vh, 230px); aspect-ratio: 120 / 200;
}
.colophon {
  margin: 0; max-width: 40rem; padding: 8px 14px;
  background: rgba(250, 248, 242, 0.92);
  font-size: 0.8rem; line-height: 1.4; color: var(--ink-soft); text-align: center;
}

@media (max-width: 900px) {
  .door-col, .outlet { display: none; }
  .scene-adjourn { align-items: center; }
  .notice { margin-bottom: 0; }
}
@media (max-width: 520px) {
  .notice { padding: 26px 18px 20px; }
  .plant { right: 4px; height: 110px; }
}
