/* Created by Dominate Media Group */
/* Simply Sofa, coming soon. One sofa held still, the room changes round it, one red ticket on a cord. */

@font-face { font-family: "Poppins"; src: url("fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0f1213;
  --ink-2: #171b1c;
  --chalk: #f3f4f2;
  --chalk-soft: #c9cfcc;
  --chalk-mute: #8e9794;
  --sale: #e3261c;
  --sale-deep: #b5160f;
  --ease-settle: cubic-bezier(0.2, 1.25, 0.4, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(18px, 3vw, 44px);
  --top-fg: var(--chalk);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--chalk);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[data-tone="light"] { --top-fg: var(--ink); }
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
p, h1 { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }

/* ---------- top bar ---------- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) 0;
  color: var(--top-fg);
  transition: color 0.5s ease;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: baseline; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.035em; text-decoration: none; line-height: 1; }
.logo__simply { font-weight: 300; }
.logo__sofa { font-weight: 600; position: relative; }
.logo__mark { position: absolute; left: 100%; top: 0.3em; width: 0.34em; height: 0.62em; overflow: visible; transform-origin: 0 20%; }
.logo__string { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.logo__card { fill: var(--sale); }
.logo:hover .logo__mark { animation: tag-swing 1.1s var(--ease-out); }
@keyframes tag-swing { 0% { transform: rotate(0); } 25% { transform: rotate(-16deg); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.top__note { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.top__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sale); box-shadow: 0 0 0 0 rgba(227, 38, 28, 0.6); animation: beacon 2.4s ease-out infinite; }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 rgba(227, 38, 28, 0.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(227, 38, 28, 0); } }

/* ---------- the stage ---------- */
.stage {
  position: relative;
  flex: 1;
  min-height: 440px;
  overflow: hidden;
  container-type: size;
  background: #2a211d;
  touch-action: pan-y;
  isolation: isolate;
}
.scene {
  --px: 0px; --py: 0px; --cut: 0%;
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100cqw, 200cqh);
  aspect-ratio: 2 / 1;
  container-type: size;
  transform: translate(calc(-50% + var(--px)), calc(-50% + var(--py))) scale(1.035);
  will-change: transform;
}
.room, .sofa, .room picture, .room img, .sofa img { position: absolute; inset: 0; width: 100%; height: 100%; }
.room img, .sofa img { object-fit: cover; }
.room { visibility: hidden; z-index: 1; }
.room.is-on { visibility: visible; }
.room.is-in { visibility: visible; z-index: 2; clip-path: inset(0 0 var(--cut) 0); }
.sofa { z-index: 4; pointer-events: none; }

/* the leading edge of the room as it comes down, like the bar of a roller blind */
.edge {
  position: absolute; left: 0; right: 0; z-index: 3;
  top: calc(100% - var(--cut));
  height: 3.2cqh;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(15, 18, 19, 0.5), rgba(15, 18, 19, 0.16) 30%, rgba(15, 18, 19, 0));
  pointer-events: none;
}
.edge::before { content: ""; position: absolute; left: 0; right: 0; top: -0.5cqh; height: 0.5cqh; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(15, 18, 19, 0.55)); }
.scene.is-wiping .edge { opacity: 1; }

/* the words on the wall, behind the sofa */
.wall {
  --wx: 0px; --wy: 0px;
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 8.6cqh;
  transform: translate(calc(-50% + var(--wx)), var(--wy));
  white-space: nowrap;
  font-weight: 300;
  font-size: 11.5cqw;
  line-height: 1;
  letter-spacing: -0.065em;
  pointer-events: none;
  user-select: none;
}
.wall__w { display: inline-block; overflow: hidden; padding: 0 0.06em 0.42em; margin: 0 -0.06em -0.42em; vertical-align: top; }
.wall__w i { display: inline-block; font-style: normal; }
.room[data-tone="dark"] .wall { color: #f6f4ee; opacity: 0.94; text-shadow: 0 0.012em 0.05em rgba(0, 0, 0, 0.35); }
.room[data-tone="light"] .wall { color: #14181a; opacity: 0.9; mix-blend-mode: multiply; }

.shade { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(to bottom, rgba(15, 18, 19, 0.34), rgba(15, 18, 19, 0) 22%), linear-gradient(to top, rgba(15, 18, 19, 0.5), rgba(15, 18, 19, 0) 26%); transition: opacity 0.6s ease; }
body[data-tone="light"] .shade { opacity: 0.45; }

/* ---------- the cord and the ticket ---------- */
.rope { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 8; pointer-events: none; overflow: visible; }
.rope path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rope__under { stroke: rgba(15, 18, 19, 0.16); stroke-width: 5; transform: translate(1.5px, 2px); }
.rope__cord { stroke: var(--sale); stroke-width: 3.2; }

.ticket {
  --tw: 124px;
  position: absolute; left: 0; top: 0; z-index: 9;
  width: var(--tw);
  aspect-ratio: 25 / 37;
  padding: 0; border: 0; background: none;
  transform-origin: 50% 13.5%;
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  will-change: transform;
  visibility: hidden;
}
.ticket.is-live { visibility: visible; }
.ticket.is-held { cursor: grabbing; }
.ticket__card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 8% 15%;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%, rgba(0, 0, 0, 0.12)),
    var(--sale);
  /* swing ticket: clipped shoulders and a punched eyelet */
  clip-path: polygon(26% 0, 74% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
  -webkit-mask: radial-gradient(circle at 50% 13.5%, transparent 0 6.2%, #000 6.6%);
  mask: radial-gradient(circle at 50% 13.5%, transparent 0 6.2%, #000 6.6%);
  border-radius: 0 0 9px 9px;
  transition: transform 0.25s var(--ease-settle);
}
.ticket { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.34)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.ticket__big { font-weight: 600; font-size: calc(var(--tw) * 0.36); line-height: 0.95; letter-spacing: -0.055em; }
.ticket__small { margin-top: 5%; font-weight: 500; font-size: calc(var(--tw) * 0.108); line-height: 1.15; letter-spacing: -0.01em; }
.ticket:hover .ticket__card { transform: scale(1.03); }
.ticket.is-held .ticket__card { transform: scale(0.97); }
.ticket:focus-visible { outline: none; }
.ticket:focus-visible .ticket__card { box-shadow: inset 0 0 0 3px #fff; }
/* a ring that breathes on the ticket until somebody touches it */
.ticket::after { content: ""; position: absolute; left: 50%; top: 58%; width: 150%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.75); transform: translate(-50%, -50%) scale(0.4); opacity: 0; pointer-events: none; }
.ticket.is-asking::after { animation: ask 2.6s ease-out infinite; }
@keyframes ask { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } 18% { opacity: 0.85; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ---------- room name and dots ---------- */
.note {
  position: absolute; z-index: 10;
  left: var(--gutter); bottom: 22px;
  display: flex; align-items: center; gap: 14px;
  padding: 9px 12px 9px 16px;
  border-radius: 999px;
  background: rgba(15, 18, 19, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--chalk);
}
.note__name { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; min-width: 8.2em; }
.note__dots { display: flex; gap: 2px; }
.note__dot { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; border-radius: 50%; }
.note__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: rgba(243, 244, 242, 0.42); transition: transform 0.35s var(--ease-settle), background 0.3s ease; }
.note__dot:hover::before { background: rgba(243, 244, 242, 0.8); }
.note__dot.is-on::before { background: var(--sale); transform: scale(1.5); }
.note__dot:focus-visible { outline: 2px solid var(--chalk); outline-offset: -3px; }

/* ---------- the band ---------- */
.band {
  position: relative; z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px var(--gutter);
  align-items: end;
  padding: 30px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 20px);
  background: var(--ink);
}
.band__title { text-wrap: balance; font-weight: 300; font-size: clamp(30px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -0.05em; }
.band__line { margin-top: 10px; color: var(--chalk-soft); font-size: clamp(15px, 1.15vw, 18px); letter-spacing: -0.01em; }
.band__talk { justify-self: end; text-align: right; }
.band__ask { font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; letter-spacing: -0.015em; }
.band__ways { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.way {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 9px;
  height: 50px; padding: 0 18px 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(243, 244, 242, 0.26);
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.45s var(--ease-settle);
}
.way svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.way:hover { background: rgba(243, 244, 242, 0.1); border-color: rgba(243, 244, 242, 0.6); }
.way--main { background: var(--chalk); border-color: var(--chalk); color: var(--ink); }
.way--main svg { fill: #128c4b; }
.way--main:hover { background: #fff; border-color: #fff; }
.way:active { transform: translate(var(--mx), var(--my)) scale(0.96); }
.way:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }
/* roll over a kind of sofa in the line and its picture pops up and follows the pointer */
.band__line { max-width: 34em; line-height: 1.55; }
.pop { padding: 0; border: 0; background: none; color: var(--chalk); font-weight: 500; cursor: pointer; background-image: linear-gradient(var(--sale), var(--sale)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 2px; padding-bottom: 2px; transition: background-size 0.35s var(--ease-out), color 0.3s ease; -webkit-tap-highlight-color: transparent; }
.pop:hover, .pop.is-on { color: #fff; background-size: 100% 100%; }
.pop-word { color: var(--chalk); font-weight: 500; }
.pop:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; }
.popcard { position: fixed; left: 0; top: 0; z-index: 60; width: clamp(190px, 17vw, 270px); aspect-ratio: 4 / 5; pointer-events: none; will-change: transform; }
.popcard__in { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; background: var(--ink-2); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.7), 0 6px 14px rgba(0, 0, 0, 0.35); opacity: 0; transform: scale(0.55) rotate(-5deg); transform-origin: 20% 100%; transition: transform 0.5s var(--ease-settle), opacity 0.22s ease; }
.popcard.is-on .popcard__in { opacity: 1; transform: none; }
.popcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.popcard img.is-prev { visibility: visible; z-index: 1; }
.popcard img.is-cur { visibility: visible; z-index: 2; animation: pop-in 0.55s var(--ease-out) both; }
@keyframes pop-in { from { clip-path: inset(100% 0 0 0); scale: 1.18; } to { clip-path: inset(0 0 0 0); scale: 1; } }
.popcard__tag { position: absolute; z-index: 3; left: -10px; bottom: 16px; padding: 6px 12px 6px 14px; background: var(--sale); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; border-radius: 0 4px 4px 0; clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); opacity: 0; transform: translateX(-10px); transition: opacity 0.25s ease 0.12s, transform 0.45s var(--ease-settle) 0.12s; }
.popcard.is-on .popcard__tag { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .popcard img.is-cur { animation: none; } }

/* phone and email sit under a row of little sofa cushions until you roll over or tap */
.peek { cursor: pointer; }
.peek__box { display: grid; align-items: center; min-width: var(--peek-w, 9em); }
.peek__box > * { grid-area: 1 / 1; }
.peek__text { opacity: 0; transform: translateY(7px); transition: opacity 0.3s ease, transform 0.45s var(--ease-settle); font-variant-numeric: tabular-nums; }
.peek__row { display: flex; gap: 3px; align-items: center; }
.cush {
  flex: 1 1 0; max-width: 13px; height: 13px; border-radius: 4px;
  background: radial-gradient(circle at 50% 50%, #123d27 0 1.3px, transparent 1.7px), linear-gradient(160deg, #4f9a70, #23633f 60%, #184a2e);
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.55s var(--ease-settle), opacity 0.3s ease;
  transition-delay: calc(var(--i) * 16ms);
}
.peek:hover .cush { transform: translateY(-2px); }
.peek.is-open .peek__text { opacity: 1; transform: none; transition-delay: 0.12s; }
.peek.is-open .cush { opacity: 0; transform: translate(calc(var(--r) * 9px), -22px) rotate(calc(var(--r) * 40deg)) scale(0.7); transition: transform 0.5s var(--ease-out), opacity 0.35s ease 0.08s; transition-delay: calc(var(--i) * 16ms); }

.band__legal { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(243, 244, 242, 0.13); color: var(--chalk-mute); font-size: 13px; letter-spacing: -0.005em; }

/* ---------- the opening, in CSS so it needs no script ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .scene { animation: settle-in 2.2s var(--ease-out) both; }
  .js .wall__w i { animation: rise 1.15s var(--ease-out) 0.25s both; }
  .js .wall__w + .wall__w i { animation-delay: 0.4s; }
  .js .top > *, .js .band > *, .js .note { animation: lift 0.9s var(--ease-out) 0.5s both; }
  .js .band > :nth-child(2) { animation-delay: 0.62s; }
  .js .band > :nth-child(3) { animation-delay: 0.74s; }
  .js .note { animation-delay: 0.9s; }
}
@keyframes settle-in { from { scale: 1.09; filter: brightness(0.55); } to { scale: 1; filter: brightness(1); } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes lift { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* ---------- phones, and anything taller than it is wide ---------- */
@media (max-width: 820px), (max-aspect-ratio: 4/5) {
  .stage { flex: none; min-height: 0; container-type: inline-size; background: #2a211d; }
  .scene { position: relative; left: auto; top: auto; width: 100%; aspect-ratio: 1440 / 1704; transform: none; }
  .wall { left: 5.5cqw; top: auto; bottom: 39.5%; transform: translate(var(--wx), var(--wy)); font-size: 23.6cqw; line-height: 0.86; white-space: normal; }
  .wall__w { display: block; width: max-content; }
  .edge { height: 16px; }
  .edge::before { top: -3px; height: 3px; }
  .ticket { --tw: 84px; }
  .rope__cord { stroke-width: 2.6; }
  .note { left: 14px; bottom: 12px; padding: 6px 8px 6px 14px; gap: 8px; }
  .note__name { font-size: 13px; min-width: 7.6em; }
  .shade { background: linear-gradient(to bottom, rgba(15, 18, 19, 0.3), rgba(15, 18, 19, 0) 20%), linear-gradient(to top, var(--ink), rgba(15, 18, 19, 0) 15%); }
  body[data-tone="light"] .shade { opacity: 1; background: linear-gradient(to top, var(--ink), rgba(15, 18, 19, 0) 15%); }

  .band { flex: 1; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 20px; padding-top: 22px; }
  .band__title { font-size: clamp(31px, 9.2vw, 46px); }
  .popcard { width: 46vw; max-width: 210px; }
  .band__line { font-size: 15.5px; }
  .band__talk { justify-self: stretch; text-align: left; }
  .band__ways { justify-content: stretch; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  .way { justify-content: center; min-width: 0; height: 50px; padding: 0 10px; font-size: 15px; }
  .way:last-child { grid-column: 1 / -1; }
  .peek__box { min-width: 0; width: var(--peek-w, 9em); max-width: 100%; }
  .way--main { grid-column: 1 / -1; height: 54px; font-size: 16px; }
  .band__legal { margin-top: auto; font-size: 12.5px; }
  .top { padding-top: calc(env(safe-area-inset-top, 0px) + 16px); }
  .top__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .top__note::before, .ticket.is-asking::after { animation: none; }
}
