/* Sunlit Media, coming soon page (Direction A: The invitation).
   Mobile first; desktop layout from 760px, the site's breakpoint.
   No inline styles anywhere, so the page runs under style-src 'self'. */

@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Mrs Saint Delafield"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/mrs-saint-delafield-latin-400-normal.woff2) format("woff2"); }

:root {
  --ivory: #fbfaf7;
  --frame: #ece8df;
  --paper: #fffefb;
  --navy: #093545;
  --slate: #3f5a63;
  --oxblood: #81140e;
  --amber: #d67d09;
  --rule: rgba(9, 53, 69, 0.25);
  --rule-link: rgba(9, 53, 69, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: Jost, system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: none; }
a { color: var(--navy); }
a:hover { color: var(--oxblood); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.d-only { display: none; }

/* ---------- Page frame (mobile) ---------- */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 28px; height: 28px; }
.wordmark { font-weight: 400; font-size: 12px; letter-spacing: 0.32em; line-height: 1.15; text-transform: uppercase; }

.content { display: flex; flex-direction: column; }
.kicker { margin: 24px 0 0; text-align: center; font-size: 11px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--oxblood); }
.headline { margin: 10px 0 0; font-weight: 300; text-align: center; }
.caps { display: block; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1.4; }
.script { display: block; margin-top: 6px; font-family: "Mrs Saint Delafield", cursive; font-weight: 400; font-size: 60px; line-height: 0.9; }
.lede { margin: 16px 0 0; text-align: center; font-size: 16px; line-height: 1.6; }

/* ---------- Film strip with viewfinder (mobile) ---------- */
.strip { margin: 20px -24px 0; }
.strip-track { position: relative; height: 395px; overflow: hidden; contain: paint; isolation: isolate; }
.frame {
  position: absolute; top: 0; left: 0; width: 280px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.frame.snap { transition: none; }
.frame-no { height: 16px; line-height: 16px; font-size: 10px; font-weight: 400; letter-spacing: 0.2em; color: var(--slate); }
.frame-box { position: relative; width: 280px; height: 373px; overflow: hidden; background: var(--frame); }
.frame-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.frame-veil { position: absolute; inset: 0; background: var(--ivory); opacity: 0.5; transition: opacity 0.9s ease-in-out; }
.vf { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease-in-out; }
.frame.is-center .frame-veil { opacity: 0.06; }
.frame.is-center .vf { opacity: 1; }
.vf i { position: absolute; width: 20px; height: 20px; border: 0 solid var(--paper); }
.vf i:nth-child(1) { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(2) { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf i:nth-child(3) { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(4) { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.no-js .frame { left: 50%; margin-left: -140px; }
.no-js .frame:not(:first-child) { display: none; }
.no-js .frame:first-child .frame-veil { opacity: 0.06; }
.no-js .frame:first-child .vf { opacity: 1; }

.strip-cap { margin: 8px 24px 0; height: 44px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); }
.cap-label, .cap-count { font-size: 10px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate); }
.cap-count { letter-spacing: 0.2em; }
.cap-right { display: flex; align-items: center; gap: 6px; }

.ctl {
  min-width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: transparent; color: var(--navy);
  font: inherit; cursor: pointer;
}
.ctl svg { fill: currentColor; }
.ctl .i-play { display: none; }
.ctl.is-paused .i-play { display: block; }
.ctl.is-paused .i-pause { display: none; }
.no-js .ctl, .no-js .cap-count { display: none; }

/* ---------- Countdown ---------- */
.countdown { margin-top: 26px; }
.cd-title { margin: 0; text-align: center; font-size: 18px; font-weight: 300; line-height: 1.3; }
.cd-title strong { font-weight: 400; }
.cd-units { margin-top: 14px; display: flex; justify-content: center; gap: 36px; }
.unit { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.digits { display: flex; font-size: 44px; line-height: 1; }
.dg { position: relative; display: inline-block; width: 0.6em; text-align: center; }
.dg-old { position: absolute; left: 0; right: 0; top: 0; opacity: 0; will-change: opacity, filter; }
.dg-new { display: inline-block; will-change: opacity, filter; }
.unit-label { font-size: 10px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); }

/* Focus pull: digits rack out of focus and sharpen in. Blur and fade only, never scale. */
@keyframes fpInA { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes fpInB { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: blur(0); } }
@keyframes fpOutA { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(10px); } }
@keyframes fpOutB { from { opacity: 1; filter: blur(0); } to { opacity: 0; filter: blur(10px); } }
.inA { animation: fpInA 0.7s var(--ease) both; }
.inB { animation: fpInB 0.7s var(--ease) both; }
.outA { animation: fpOutA 0.5s ease-out both; }
.outB { animation: fpOutB 0.5s ease-out both; }

/* Seconds: a 3D focus-ring drum turning past a fixed index. */
.drum {
  position: relative; margin: 12px auto 0; width: min(342px, 100%); height: 46px;
  overflow: hidden; perspective: 800px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.drum-wheel { position: absolute; left: 50%; top: 10px; width: 0; height: 0; transform-style: preserve-3d; transition: transform 0.6s var(--ease); }
.drum-wheel.snap { transition: none; }
.tick { position: absolute; left: -0.5px; top: 0; width: 1px; height: 8px; background: rgba(9, 53, 69, 0.4); backface-visibility: hidden; }
.tick.major { height: 14px; background: rgba(9, 53, 69, 0.75); }
.tick-label { position: absolute; left: -10px; top: 21px; width: 20px; text-align: center; font-size: 10px; line-height: 1; color: var(--slate); backface-visibility: hidden; }
.drum-index { position: absolute; left: 50%; top: 2px; width: 1px; height: 26px; margin-left: -1px; background: var(--oxblood); }
.drum-cap { position: absolute; left: 50%; top: 2px; width: 5px; height: 5px; margin-left: -3px; background: var(--oxblood); }
.drum-label { margin: 4px 0 0; text-align: center; font-size: 10px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); }
.no-js .cd-units, .no-js .drum, .no-js .drum-label { display: none; }

/* ---------- Launch state ---------- */
.opened { margin-top: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.opened h2 { margin: 0; font-family: "Mrs Saint Delafield", cursive; font-weight: 400; font-size: 66px; line-height: 0.9; }
.opened p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; }

/* ---------- Buttons and call to action ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}
.btn svg { flex: none; }
.btn-solid { width: 100%; margin-top: 18px; background: var(--navy); color: var(--ivory); }
.btn-solid:hover { background: var(--oxblood); color: var(--ivory); }

.cta { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.xmas { margin: 0; text-align: center; font-family: "Mrs Saint Delafield", cursive; font-weight: 400; font-size: 36px; line-height: 0.9; color: var(--oxblood); }
.xmas span { position: relative; display: inline-block; padding: 0 16px; }
.spark { position: absolute; fill: var(--amber); animation: twinkle 2.4s ease-in-out infinite; }
.s1 { left: 0; top: -4px; width: 9px; height: 9px; }
.s2 { right: 6px; top: -9px; width: 7px; height: 7px; animation-delay: 0.8s; }
.s3 { right: -3px; bottom: 6px; width: 8px; height: 8px; animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.btn-wa { width: 100%; background: var(--navy); color: var(--ivory); }
.btn-wa:hover { background: var(--oxblood); color: var(--ivory); }
/* After launch, Enter the site is the one solid button. */
.launched .btn-wa { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.launched .btn-wa:hover { background: var(--navy); color: var(--ivory); }
.email { margin-top: 2px; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--rule-link); padding-bottom: 3px; }

/* ---------- Footer ---------- */
.foot { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.socials { display: flex; gap: 24px; font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.socials a { text-decoration: none; }
.legal { margin: 0; font-size: 10px; color: var(--slate); }

/* ---------- Desktop photograph (hidden on mobile) ---------- */
.hero { display: none; }

/* ---------- Load reveal ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js .rv { animation: rise 1s var(--ease) both; }
.js .d1 { animation-delay: 0.12s; }
.js .d2 { animation-delay: 0.24s; }
.js .d3 { animation-delay: 0.36s; }
.js .d4 { animation-delay: 0.48s; }

/* ---------- Photo crops ---------- */
.frame-box .p1 { object-position: 80% 50%; }
.frame-box .p2 { object-position: 50% 45%; }
.frame-box .p3 { object-position: 50% 30%; }
.frame-box .p4 { object-position: 60% 50%; }
.frame-box .p5 { object-position: 45% 50%; }
.frame-box .p6 { object-position: 50% 40%; }
.frame-box .p7 { object-position: 50% 35%; }
.frame-box .p8 { object-position: 50% 40%; }
.frame-box .p9 { object-position: 30% 40%; }
.frame-box .p10 { object-position: 50% 30%; }
.frame-box .p11 { object-position: 50% 45%; }
.frame-box .p12 { object-position: 50% 50%; }

/* =================== Desktop =================== */
@media (min-width: 760px) {
  .page { display: block; padding: 0; }
  .d-only { display: inline; }

  .brand { position: absolute; top: 40px; left: 80px; z-index: 3; gap: 14px; }
  .brand img { width: 32px; height: 32px; }
  .wordmark { font-size: 14px; }

  .content {
    position: relative; z-index: 2;
    width: 680px; min-height: 100vh;
    padding: 104px 0 100px 80px;
    justify-content: center;
  }
  .kicker { margin: 0 0 20px; width: 440px; font-size: 12px; }
  .headline { margin: 0; text-align: left; }
  .caps { font-size: 22px; }
  .script { font-size: 84px; }
  .lede { margin: 20px 0 0; width: 440px; font-size: 17px; line-height: 1.7; }
  .strip { display: none; }

  .countdown { margin-top: 28px; width: 440px; }
  .cd-title { font-size: 22px; }
  .cd-units { margin-top: 18px; gap: 44px; }
  .unit { gap: 8px; }
  .digits { font-size: 52px; }
  .unit-label { font-size: 11px; }
  .drum {
    width: 440px; perspective: 900px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  }
  .drum-label { font-size: 11px; }

  .opened { width: 440px; margin-top: 28px; }
  .opened h2 { font-size: 72px; }
  .opened p { font-size: 17px; line-height: 1.7; }
  .btn-solid { width: auto; padding: 0 40px; font-size: 12px; letter-spacing: 0.24em; }

  .cta { margin-top: 22px; width: 440px; gap: 14px; }
  .xmas { font-size: 44px; }
  .xmas span { padding: 0 20px; }
  .s1 { width: 11px; height: 11px; }
  .s2 { right: 8px; top: -10px; width: 8px; height: 8px; }
  .s3 { right: -4px; bottom: 8px; width: 9px; height: 9px; }
  .btn-wa { width: auto; font-size: 12px; letter-spacing: 0.24em; }
  .btn-wa svg { display: none; }
  .email { margin-top: 4px; }

  .foot { position: absolute; left: 80px; bottom: 36px; z-index: 2; width: 440px; margin: 0; gap: 10px; }
  .legal { font-size: 11px; }

  .hero {
    display: block; position: fixed; top: 0; right: 0; bottom: 0; left: max(518px, 36vw);
    margin: 0; overflow: hidden; background: var(--frame); z-index: 1;
    contain: paint; isolation: isolate;
  }
  .hero-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: saturate(0.85);
    opacity: 0; transition: opacity 0.9s ease-in-out;
  }
  .hero-img.is-on { opacity: 1; }
  .hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, #fbfaf7 0%, rgba(251, 250, 247, 0.62) 30%, rgba(251, 250, 247, 0.22) 100%); }
  .launched .hero-veil { background: linear-gradient(90deg, rgba(251, 250, 247, 0.92) 0%, rgba(251, 250, 247, 0.3) 40%, rgba(251, 250, 247, 0.3) 100%); }
  .hero-cap { position: absolute; right: 40px; bottom: 40px; display: flex; align-items: stretch; gap: 8px; }
  .hero-label { display: flex; align-items: center; background: var(--paper); padding: 0 14px; font-size: 10px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate); }
  .hero-cap .ctl { padding: 0 14px; border: 1px solid var(--rule); background: var(--paper); font-size: 10px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; transition: background-color 0.3s, color 0.3s; }
  .hero-cap .ctl:hover { background: var(--navy); color: var(--ivory); }

  .hero-img.p1 { object-position: 62% 50%; }
  .hero-img.p2 { object-position: 50% 45%; }
  .hero-img.p3 { object-position: 50% 30%; }
  .hero-img.p4 { object-position: 58% 50%; }
  .hero-img.p5 { object-position: 50% 50%; }
  .hero-img.p6 { object-position: 50% 40%; }
  .hero-img.p7 { object-position: 50% 35%; }
  .hero-img.p8 { object-position: 50% 40%; }
  .hero-img.p9 { object-position: 35% 40%; }
  .hero-img.p10 { object-position: 50% 30%; }
  .hero-img.p11 { object-position: 50% 45%; }
  .hero-img.p12 { object-position: 50% 50%; }
}

/* Short desktop windows: let the page scroll, keep the photograph fixed. */
@media (min-width: 760px) and (max-height: 860px) {
  .content { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv, .inA, .inB, .spark { animation: none; }
  .outA, .outB { animation: none; opacity: 0; }
  .frame, .frame-veil, .vf, .drum-wheel, .hero-img { transition: none; }
}
