/* DSCPLND — the scroll is the thirty days. */
:root {
  --bg: #141311;
  --card: #1e1c19;
  --ink: #f2ecdf;
  --muted: #a0968a;
  --muted2: #6e675e;
  --gold: #d5a550;
  --gold-soft: #3b321d;
  --on-gold: #141311;
  --hair: rgba(255, 255, 255, 0.08);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:
    "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 5vw, 64px);
  --rail: 0px;
  --p: 0;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 17px/1.5 var(--sans);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* Type */
.ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.ln > span {
  display: inline-block;
}
.t {
  font: 400 clamp(40px, 7.2vw, 96px)/1 var(--serif);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.s {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 30ch;
  margin: 22px 0 0;
  line-height: 1.5;
}
.stamp {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--muted2);
  font-size: 14px;
  letter-spacing: 0.02em;
  margin: 0;
}
.stamp b {
  color: var(--gold);
  font-weight: 500;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px var(--pad);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.6s var(--out);
  pointer-events: none;
}
.nav.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 13px;
}
.brand img {
  border-radius: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 40px -16px rgba(213, 165, 80, 0.5);
  transition:
    transform 0.4s var(--out),
    box-shadow 0.4s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 22px 44px -14px rgba(213, 165, 80, 0.7);
}
.btn:active {
  transform: scale(0.985);
  transition-duration: 0.1s;
}
.btn svg {
  width: 18px;
  height: 18px;
  margin-top: -2px;
}
.btn-sm {
  height: 38px;
  padding: 0 16px 0 14px;
  font-size: 14px;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-sm svg {
  width: 14px;
  height: 14px;
}

/* Rail: the chain you are building */
.rail {
  position: fixed;
  left: clamp(14px, 2.6vw, 40px);
  top: 50%;
  transform: translate(-6px, -50%);
  z-index: 40;
  height: min(46vh, 420px);
  display: flex;
  opacity: 0;
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--out);
  pointer-events: none;
}
.rail.on {
  opacity: 1;
  transform: translate(0, -50%);
}
.rail-line {
  position: absolute;
  left: 6px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--hair);
}
.rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--gold);
  transition: height 0.7s var(--out);
}
.rail-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.rail-dots li {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2a2723;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition:
    background 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    transform 0.5s var(--out);
}
.rail-dots li.lit {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(213, 165, 80, 0.14);
}
.rail-dots li.hollow.lit {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.rail-dots li.now {
  transform: scale(1.35);
}
.rail-label {
  position: absolute;
  left: 26px;
  top: 0;
  transform: translateY(-50%);
  transition: top 0.6s var(--out);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}
.rail-label b {
  display: block;
  color: var(--gold);
  font-weight: 500;
}
@media (max-width: 720px) {
  .rail-label {
    display: none;
  }
  .rail {
    height: 38vh;
  }
  .rail-dots li {
    width: 9px;
    height: 9px;
  }
  .rail-line {
    left: 4px;
  }
}

/* Scenes */
.scene {
  position: relative;
  height: 170vh;
  height: 170svh;
}
.scene.hero {
  height: 150vh;
  height: 150svh;
}
.scene.miss {
  height: 160vh;
  height: 160svh;
}
.scene.thirty {
  height: 190vh;
  height: 190svh;
}
.pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 0 var(--pad) 0 calc(var(--pad) + clamp(28px, 4vw, 56px));
}
.pin::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
[data-tone="dawn"] .pin::before {
  background: radial-gradient(
    60% 50% at 18% 28%,
    rgba(213, 165, 80, 0.1),
    transparent 70%
  );
}
[data-tone="night"] .pin::before {
  background: radial-gradient(
    60% 50% at 80% 70%,
    rgba(213, 165, 80, 0.06),
    transparent 70%
  );
}
.scene.is-in .pin::before {
  opacity: 1;
}
.copy {
  position: relative;
  z-index: 2;
}

/* Line reveal: masked lines rise on enter, everything sinks away on exit */
.js .ln > span {
  transform: translate3d(0, 108%, 0);
  transition: transform 1s var(--out);
}
.js .ln:nth-child(2) > span {
  transition-delay: 90ms;
}
.js .ln:nth-child(3) > span {
  transition-delay: 180ms;
}
.js .s,
.js .stamp {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 0.8s var(--ease) 0.32s,
    transform 0.9s var(--out) 0.32s;
}
.js .is-in .ln > span,
.js .hero .ln > span {
  transform: none;
}
.js .is-in .s,
.js .is-in .stamp {
  opacity: 1;
  transform: none;
}

/* Phone */
.phone {
  --w: min(330px, 26vw, calc((100svh - 140px) / 2.1));
  position: relative;
  z-index: 1;
  width: var(--w);
  margin: 0 0 0 auto;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.14);
  background: linear-gradient(
    145deg,
    #3a352e 0%,
    #17150f 22%,
    #0b0a09 60%,
    #2b2721 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 calc(var(--w) * 0.16) calc(var(--w) * 0.3) calc(var(--w) * -0.1)
      rgba(0, 0, 0, 0.85),
    0 0 120px -20px rgba(213, 165, 80, 0.12);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: calc(var(--w) * 0.011);
  background: #26231f;
}
.phone::before {
  right: calc(var(--w) * -0.009);
  top: 25%;
  height: 11%;
  border-radius: 0 3px 3px 0;
}
.phone::after {
  left: calc(var(--w) * -0.009);
  top: 19%;
  height: 6%;
  border-radius: 3px 0 0 3px;
  box-shadow: 0 calc(var(--w) * 0.17) 0 #26231f;
}
.screen {
  position: relative;
  aspect-ratio: 780 / 1690;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.11);
  background: var(--bg);
  transform: translateZ(0);
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.screen::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--w) * 0.028);
  width: calc(var(--w) * 0.28);
  height: calc(var(--w) * 0.082);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.05),
    transparent 32%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.js .phone {
  opacity: 0;
  transform: translate3d(0, 90px, 0) scale(0.94);
  transition:
    opacity 1s var(--ease) 0.1s,
    transform 1.5s var(--out) 0.1s;
}
.js .is-in .phone {
  opacity: 1;
  transform: none;
}
/* Scene 4: the focus phone is bigger and bleeds off the bottom */
.big .phone {
  --w: min(440px, 34vw);
  margin-bottom: calc(var(--w) * -0.9);
  align-self: end;
}
.big .pin {
  align-items: center;
}

/* Hero */
.hero .pin {
  display: block;
}
.hero-in {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--pad);
}
.hero-dot {
  width: 56px;
  height: 56px;
  margin-bottom: clamp(28px, 5vh, 56px);
  position: relative;
  will-change: transform;
}
.hero-dot i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 10px rgba(213, 165, 80, 0.1),
    0 0 60px 10px rgba(213, 165, 80, 0.18);
}
.hero-dot i::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid rgba(213, 165, 80, 0.35);
}
.hero-title {
  font: 400 clamp(46px, 9vw, 128px)/0.98 var(--serif);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.hero-sub {
  color: var(--muted);
  font: 400 clamp(20px, 2.4vw, 30px)/1.2 var(--serif);
  margin: 24px 0 0;
}
.hero .stamp {
  justify-content: center;
  margin-top: clamp(28px, 5vh, 48px);
  font-size: 15px;
}
.cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted2);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--gold), transparent);
  display: block;
}
.js .hero .pin > * {
  transition: none;
}
.js .hero .hero-title,
.js .hero .hero-sub,
.js .hero .stamp,
.js .hero .cue {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 1s var(--ease),
    transform 1.2s var(--out);
}
.js .hero .ln > span {
  transform: translate3d(0, 108%, 0);
}
.js.ready .hero .ln > span {
  transform: none;
}
.js.ready .hero .hero-title,
.js.ready .hero .hero-sub,
.js.ready .hero .stamp,
.js.ready .hero .cue {
  opacity: 1;
  transform: none;
}
.js.ready .hero .hero-sub {
  transition-delay: 0.5s;
}
.js.ready .hero .stamp {
  transition-delay: 0.8s;
}
.js.ready .hero .cue {
  transition-delay: 1.6s;
}
.js .hero-dot {
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.8s var(--ease),
    transform 1.2s var(--out);
}
.js.ready .hero-dot {
  opacity: 1;
  transform: none;
}
.ready .hero-dot i {
  animation: breathe 4.2s var(--ease) 1.2s infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
}
/* while the dot travels to the rail, text sinks */
.hero.is-out .hero-title,
.hero.is-out .hero-sub,
.hero.is-out .stamp,
.hero.is-out .cue {
  opacity: 0 !important;
  transform: translate3d(0, -20px, 0) !important;
  transition-delay: 0s !important;
}
.hero-dot.travel i {
  animation: none;
  box-shadow: none;
}
.hero-dot.travel i::after {
  opacity: 0;
}

/* Scene 3: live rest number */
@keyframes tick {
  0%,
  30% {
    background: var(--gold);
  }
  31%,
  100% {
    background: var(--muted2);
  }
}

/* Scene 4: the focus view, rendered live */
.focus-ui {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 calc(var(--w) * 0.06);
  font-family: var(--sans);
}
.focus-ui p {
  margin: 0;
}
.f-state {
  color: #e0693f;
  font-size: calc(var(--w) * 0.038);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: calc(var(--w) * 0.08) !important;
}
.f-big {
  color: #e0693f;
  font-size: calc(var(--w) * 0.36);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.f-sub {
  color: var(--muted);
  font-size: calc(var(--w) * 0.06);
  margin-top: calc(var(--w) * 0.02) !important;
}
.f-ex {
  color: var(--ink);
  font-size: calc(var(--w) * 0.075);
  font-weight: 600;
  margin-top: calc(var(--w) * 0.22) !important;
  line-height: 1.15;
}
.f-meta {
  color: var(--muted);
  font-size: calc(var(--w) * 0.045);
  margin-top: calc(var(--w) * 0.03) !important;
}

/* Scene 5: the trend draws itself */
.trend {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 30vh;
  width: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.trend path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

/* Scene 6: the miss */
.miss .pin {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
}
.miss-in {
  max-width: 820px;
}
.miss-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  margin: 0 auto 36px;
  box-shadow: inset 0 0 0 2px var(--gold);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--out);
}
.is-in .miss-dot {
  opacity: 1;
  transform: none;
}
.miss .t2 {
  font: 400 clamp(40px, 7.2vw, 96px)/1 var(--serif);
  color: var(--gold);
  margin: 0.1em 0 0;
  letter-spacing: -0.015em;
}
.js .miss .t2 .ln > span {
  transition-delay: 1.1s;
}
.miss .s {
  margin-inline: auto;
  transition-delay: 1.9s !important;
}

/* Scene 8: thirty dots */
.thirty .pin {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
}
.thirty-in {
  width: min(100%, 980px);
}
.month {
  list-style: none;
  margin: 0 auto clamp(36px, 6vh, 64px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  width: min(100%, 820px);
}
.month li {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #262320;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.75);
  transition:
    background 0.35s var(--ease),
    transform 0.45s var(--out),
    box-shadow 0.35s var(--ease);
}
.month li.lit {
  background: var(--gold);
  transform: none;
  box-shadow: 0 0 18px -4px rgba(213, 165, 80, 0.6);
}
.month li.gap.lit {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--gold);
}
@media (max-width: 720px) {
  .month {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

/* End */
.end {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--pad) 96px;
}
.end::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 40% at 50% 30%,
    rgba(213, 165, 80, 0.12),
    transparent 70%
  );
}
.end > * {
  position: relative;
}
.icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}
.name {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
}
.tag {
  margin: 6px 0 0;
  color: var(--muted);
}
.say {
  font: 400 clamp(56px, 9vw, 120px)/1 var(--serif);
  letter-spacing: -0.02em;
  margin: clamp(28px, 5vh, 48px) 0 32px;
}
.meta {
  color: var(--muted2);
  font-size: 14px;
  margin: 18px 0 0;
}
.end-stamp {
  justify-content: center;
  margin-top: clamp(48px, 8vh, 80px);
  font-size: 15px;
}
.arrives {
  color: var(--ink);
  font: 400 clamp(22px, 2.6vw, 32px)/1.2 var(--serif);
  margin: 10px 0 0;
}
.nots {
  list-style: none;
  padding: 0;
  margin: clamp(56px, 9vh, 96px) 0 0;
  color: var(--muted2);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  padding: 0 var(--pad) 40px;
  color: var(--muted2);
  font-size: 13px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}

/* Phone-width layout: text above, phone below */
@media (max-width: 860px) {
  .pin {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0;
    padding: 14vh var(--pad) 0 calc(var(--pad) + 22px);
  }
  .pin::before {
    opacity: 0;
  }
  .copy {
    padding-top: 0;
  }
  .phone {
    --w: min(56vw, calc((100svh - 360px) / 2.1));
    margin: 28px auto 0;
  }
  .big .phone {
    --w: min(70vw, 320px);
    margin-bottom: -40vh;
  }
  .t {
    font-size: clamp(38px, 11vw, 64px);
  }
  .trend {
    height: 22vh;
    top: 70%;
  }
  .hero-title {
    font-size: clamp(44px, 12.5vw, 72px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .ln > span,
  .js .s,
  .js .stamp,
  .js .phone,
  .js .pin > *,
  .js .hero .hero-title,
  .js .hero .hero-sub,
  .js .hero .stamp,
  .js .hero .cue,
  .js .hero-dot,
  .miss-dot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero.is-out .hero-title,
  .hero.is-out .hero-sub,
  .hero.is-out .stamp {
    opacity: 1 !important;
    transform: none !important;
  }
  .trend path {
    stroke-dashoffset: 0 !important;
  }
  .month li {
    transform: none !important;
  }
  .nav,
  .rail {
    transition: none;
  }
}
