@font-face { font-family: 'DM Serif Display'; src: url('assets/fonts/DMSerif-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'DM Serif Display'; font-style: italic; src: url('assets/fonts/DMSerif-Italic.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 400; src: url('assets/fonts/Poppins-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Poppins'; font-weight: 500; src: url('assets/fonts/Poppins-Medium.ttf') format('truetype'); font-display: swap; }

:root { --ink: #2B2623; --paper: #F6EFE6; --ease: cubic-bezier(.7, 0, .2, 1); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Poppins', system-ui, sans-serif; font-size: 18px; line-height: 1.55; transition: background-color .9s var(--ease), color .9s var(--ease); }
body.night { color: var(--paper); --ink: #F6EFE6; }
a { color: inherit; }

.bar { position: fixed; inset: 0 0 auto 0; z-index: 5; display: flex; justify-content: space-between; align-items: baseline; padding: 22px clamp(20px, 6vw, 90px); pointer-events: none; }
.bar > * { pointer-events: auto; }
.mark { font-weight: 500; letter-spacing: .34em; font-size: 14px; text-decoration: none; }
.clock { font-family: 'DM Serif Display', serif; font-size: 22px; font-variant-numeric: tabular-nums; }

.scene { min-height: 100vh; min-height: 100svh; padding: 110px clamp(20px, 6vw, 90px) 70px; display: flex; flex-direction: column; justify-content: center; }
.rule { height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease), background-color .9s var(--ease); margin-bottom: 22px; }
.moment { margin: 0 0 6px; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; opacity: .65; }
.time { font-family: 'DM Serif Display', serif; font-size: clamp(110px, 30vw, 420px); line-height: .86; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0 0 26px -.03em; }
.time.title { font-size: clamp(64px, 13.5vw, 210px); line-height: .95; font-weight: 400; }
h2 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.04; margin: 0 0 14px; }
.line { max-width: 34em; margin: 0 0 26px; font-size: clamp(17px, 1.5vw, 21px); }
.buy { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; }
.btn { font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 2px no-repeat; padding-bottom: 5px; transition: background-size .45s var(--ease); }
.btn:hover, .btn:focus-visible { background-size: 100% 100%; color: var(--paper); outline: none; }
body.night .btn:hover, body.night .btn:focus-visible { color: #2B2623; }
.btn.off { background: none; opacity: .6; cursor: default; }
.note, .soon { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.bridge { font-family: 'DM Serif Display', serif; font-style: italic; font-size: clamp(20px, 2.2vw, 30px); margin: clamp(40px, 9vh, 110px) 0 0; opacity: .8; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.shot { width: 100%; height: auto; display: block; }
.foot { margin: 70px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.foot a { opacity: .7; }

/* Every reveal is caused by the rule: it draws first, then the time drops out of it, then the words follow. */
.scene .time { clip-path: inset(0 0 100% 0); transform: translateY(-14%); transition: clip-path 1s var(--ease) .45s, transform 1s var(--ease) .45s; }
.scene .moment, .scene h2, .scene .line, .scene .buy, .scene .shot, .scene .bridge, .scene .foot { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
.scene.in .rule { transform: scaleX(1); }
.scene.in .time { clip-path: inset(0 0 -10% 0); transform: none; }
.scene.in .moment { opacity: .65; transform: none; transition-delay: .35s; }
.scene.in h2 { opacity: 1; transform: none; transition-delay: 1.05s; }
.scene.in .line { opacity: 1; transform: none; transition-delay: 1.2s; }
.scene.in .buy { opacity: 1; transform: none; transition-delay: 1.35s; }
.scene.in .shot { opacity: 1; transform: none; transition-delay: 1.3s; }
.scene.in .bridge { opacity: .8; transform: none; transition-delay: 1.9s; }
.scene.in .foot { opacity: 1; transform: none; transition-delay: 1.6s; }

.legal { max-width: 46em; margin: 0 auto; padding: 120px clamp(20px, 6vw, 90px) 90px; }
.legal h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(40px, 6vw, 72px); margin: 0 0 30px; }
.legal h2 { font-size: clamp(26px, 3vw, 36px); margin: 56px 0 12px; }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .scene { padding-top: 90px; }
}
