/* ==========================================================================
   Storefront hero + footer — structured to the same geometry as the
   reference storefront: a width-container wrapper, a rounded ink block whose
   height derives from its own width and the window, footage drawn larger than
   the block, a two-column grid on desktop that keeps mobile reading order in
   the DOM, and a footer whose link block is sized in --fu (1/87 of the block).
   Loaded after public.css; only the hero and footer live here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Artboard scaling: from 1024px up the root font tracks the window (16px at
   1440, capped), so rem geometry keeps its proportions instead of reflowing.
   Media queries still read the initial 16px. The inline script in the layout
   refines 100vw to the real client width before first paint.
   -------------------------------------------------------------------------- */
@media (min-width: 64rem) {
  html[data-artboard] { font-size: min(calc(100vw / 90), 21.333px); }
}
html[data-artboard] { scroll-padding-top: 7rem; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.sf-hero-wrap { margin: .75rem 1.25rem 0; }
@media (min-width: 64rem) { .sf-hero-wrap { margin: 1.75rem 1.5rem 0; container-type: inline-size; } }

.sf-hero { position: relative; overflow: hidden; border-radius: 1.5rem; background: var(--s-ink); color: #fff; }
@media (min-width: 40rem) { .sf-hero { border-radius: 2rem; } }
@media (min-width: 64rem) {
  .sf-hero {
    --hh: max(36.5625rem, min(calc(100cqw * .6076), calc(100svh - 3.5rem)));
    --hg: clamp(2.5rem, calc(var(--hh) - 34.0625rem), 7.3rem);
    --ht: clamp(9.375rem, calc(var(--hh) - 24.6875rem - var(--hg)), 14.1875rem);
    height: var(--hh); border-radius: 2.5rem;
  }
}

/* Footage: poster paints at once, the loop plays over it. Drawn larger than
   the block on desktop so its edges never show. */
.sf-hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
@media (min-width: 64rem) {
  .sf-hero__media { inset: auto; top: -3.2%; left: -3.96%; width: 115.98%; height: 107.35%; max-width: none; }
}
.sf-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(12 16 35 / .95), rgb(12 16 35 / .6), rgb(12 16 35 / .2)); }
@media (min-width: 64rem) { .sf-hero__shade { background: rgb(12 16 35 / .635); } }
.sf-hero__sink { position: absolute; left: 0; right: 0; bottom: 0; height: 8rem; background: linear-gradient(to top, var(--s-ink), transparent); }
@media (min-width: 64rem) { .sf-hero__sink { height: 6.5rem; } }

.sf-hero__stage { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 34rem; }
@media (min-width: 64rem) { .sf-hero__stage { height: 100%; min-height: 0; } }

.sf-hero__grid {
  flex: 1; display: grid; grid-template-columns: 1fr; align-content: center; gap: 2rem;
  padding: 7rem 1.25rem 2rem;
}
@media (min-width: 40rem) { .sf-hero__grid { padding-inline: 2rem; } }
@media (min-width: 64rem) {
  .sf-hero__grid {
    grid-template-columns: 40rem 1fr; align-content: start; align-items: start; gap: 0;
    padding: var(--ht) 3.375rem 0;
  }
}

.sf-hero__title {
  margin: 0; font-family: var(--serif); font-size: 2.6rem; line-height: 1.25; font-weight: 700; color: #fff;
}
@media (min-width: 40rem) { .sf-hero__title { font-size: 3rem; } }
@media (min-width: 64rem) { .sf-hero__title { grid-column: 1; grid-row: 1; font-size: 3.25rem; line-height: 3.5625rem; font-weight: 400; } }
.sf-hero__title em { display: block; font-style: italic; color: var(--s-gold); }
@media (min-width: 64rem) { .sf-hero__title em { margin-top: .375rem; max-width: 33.75rem; font-weight: 700; } }

.sf-hero__lede { display: none; margin: 0; max-width: 32rem; font-size: .875rem; line-height: 1.5rem; color: rgb(255 255 255 / .85); }
@media (min-width: 64rem) {
  .sf-hero__lede { display: block; grid-column: 1; grid-row: 2; margin-top: var(--hg); max-width: 33.75rem; font-size: 1.125rem; line-height: 1.5rem; color: #fff; }
}

/* Explainer card: above the buttons on phones, its own column on desktop */
.sf-explainer { display: block; width: 100%; overflow: hidden; border-radius: .75rem; background: var(--s-gold); color: var(--s-ink); }
.sf-explainer:hover { color: var(--s-ink); }
@media (min-width: 64rem) {
  .sf-explainer {
    grid-column: 2; grid-row: 1 / span 3; justify-self: end;
    width: 24.4375rem; height: 20.5625rem; border-radius: 1.25rem;
    background: linear-gradient(to top, var(--s-gold), var(--s-glow));
  }
}
.sf-explainer__row { display: flex; align-items: center; gap: .75rem; padding: .375rem; }
@media (min-width: 64rem) { .sf-explainer__row { display: block; padding: .8125rem .75rem 0; } }
.sf-explainer__thumb { position: relative; display: block; width: 3.5rem; height: 3.5rem; flex: none; overflow: hidden; border-radius: .5rem; }
@media (min-width: 64rem) { .sf-explainer__thumb { width: 100%; height: 16.625rem; border-radius: .625rem; } }
.sf-explainer__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sf-explainer:hover .sf-explainer__thumb img { transform: scale(1.05); }
.sf-explainer__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sf-explainer__play span { display: flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #fff; }
@media (min-width: 64rem) { .sf-explainer__play span { width: 3rem; height: 3rem; } }
.sf-explainer__play svg { width: .625rem; height: .625rem; fill: var(--s-ink); stroke: none; }
@media (min-width: 64rem) { .sf-explainer__play svg { width: 1rem; height: 1rem; } }
.sf-explainer__cap {
  display: block; padding: .25rem .5rem .25rem 0;
  font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--s-ink);
}
@media (min-width: 64rem) { .sf-explainer__cap { padding: .8rem 0 0; text-align: center; font-size: .875rem; letter-spacing: .1em; } }

/* The explainer card is a real button when there is a video behind it */
button.sf-explainer { border: 0; text-align: left; cursor: pointer; font: inherit; }
button.sf-explainer:hover .sf-explainer__play span { transform: scale(1.12); }
.sf-explainer__play span { transition: transform .25s var(--ease); }

/* Video player overlay */
.player {
  position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center;
  padding: 1.25rem; background: rgb(3 7 30 / .82); backdrop-filter: blur(6px);
}
.player.is-open { display: flex; }
.player__box { position: relative; width: min(64rem, 100%); }
.player__box video { width: 100%; max-height: 80vh; border-radius: 1rem; background: #000; display: block; }
.player__close {
  position: absolute; top: -2.75rem; right: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgb(255 255 255 / .1); color: #fff; font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .2);
}
.player__close:hover { background: var(--s-gold); color: var(--s-ink); border-color: var(--s-gold); }

/* Calls to action: two separate buttons seated in a tray */
.sf-tray {
  display: grid; width: fit-content; grid-template-columns: 1fr 1fr; gap: .375rem;
  padding: .375rem; border-radius: .7rem; border: 1px solid rgb(255 255 255 / .25);
}
@media (min-width: 64rem) {
  .sf-tray {
    grid-column: 1; grid-row: 3; align-self: start; margin-top: 2.875rem;
    grid-template-columns: 11.125rem 11.5625rem; gap: .625rem; padding: .5rem;
    border: 0; border-radius: .625rem; background: var(--s-ink-4);
  }
}
.sf-btn {
  display: block; padding: .75rem 1rem; border-radius: .375rem; text-align: center; white-space: nowrap;
  font-size: .65rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: var(--s-shadow-btn); transition: opacity .2s, background-color .2s;
}
@media (min-width: 40rem) { .sf-btn { padding-inline: 1.5rem; letter-spacing: .15em; } }
@media (min-width: 64rem) {
  .sf-btn { display: flex; align-items: center; justify-content: center; height: 2.8125rem; padding: 0; border-radius: .3125rem; font-size: .875rem; letter-spacing: .1em; }
}
.sf-btn--gold { background: linear-gradient(135deg, var(--s-flame), var(--s-amber)); color: var(--s-ink); }
@media (min-width: 64rem) { .sf-btn--gold { background: linear-gradient(90deg, var(--s-gold), var(--s-amber)); } }
.sf-btn--gold:hover { opacity: .9; color: var(--s-ink); }
.sf-btn--peri { border: 1px solid rgb(236 184 45 / .6); background: var(--s-peri); color: #fff; }
@media (min-width: 64rem) { .sf-btn--peri { border-color: var(--s-gold); } }
.sf-btn--peri:hover { background: var(--s-peri-2); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .sf-hero__media[data-motion] { display: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

/* The bottom padding is the band the wordmark sits in: nothing else is laid
   out there, so the mark never lands on the links or the copyright line. */
.sf-footer {
  position: relative; overflow: hidden; margin: .75rem 1.25rem;
  padding: 4rem 6rem 1.5rem 1.25rem;
  border-radius: 1.5rem; background: var(--s-ink); color: #fff;
}
@media (min-width: 40rem) { .sf-footer { padding: 4rem 6.5rem 1.5rem 2rem; border-radius: 2rem; } }
@media (min-width: 64rem) { .sf-footer { margin-inline: 1.5rem; padding: 5rem 3.25rem 14rem; } }
.sf-footer { container-type: inline-size; }

.sf-footer__head { position: relative; z-index: 10; max-width: 48rem; margin-inline: auto; text-align: center; }
.sf-footer__eyebrow { margin: 0; font-size: .6rem; line-height: 1.25rem; letter-spacing: .3em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.sf-footer__title { margin: 0; font-family: var(--serif); font-size: 1.875rem; line-height: 1.2; font-weight: 700; color: var(--s-gold); }
@media (min-width: 40rem) { .sf-footer__title { font-size: 2.25rem; } }
.sf-footer__eyebrow + .sf-footer__title { margin-top: 1.5rem; }
.sf-footer__title em { font-style: italic; color: #fff; }
.sf-footer__intro { max-width: 36rem; margin: 1.25rem auto 0; font-size: .78rem; line-height: 1.5rem; color: rgb(255 255 255 / .85); }

.sf-footer__actions { margin-top: 2.25rem; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: .75rem; }
@media (min-width: 40rem) { .sf-footer__actions { flex-direction: row; flex-wrap: wrap; } }
.sf-footer__btn {
  padding: .875rem 1.5rem; border-radius: .375rem;
  font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  box-shadow: var(--s-shadow-btn); transition: opacity .2s, background-color .2s;
}
.sf-footer__btn--primary { background: linear-gradient(135deg, var(--s-flame), var(--s-amber)); color: var(--s-ink); }
.sf-footer__btn--primary:hover { opacity: .9; color: var(--s-ink); }
.sf-footer__btn--secondary { border: 1px solid rgb(173 179 211 / .3); background: var(--s-peri); color: #fff; }
.sf-footer__btn--secondary:hover { background: var(--s-peri-2); color: #fff; }

.sf-waitlist { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; }
@media (min-width: 40rem) { .sf-waitlist { flex-direction: row; } }
.sf-waitlist input {
  width: 100%; padding: .75rem 1rem; border-radius: .375rem;
  border: 1px solid var(--s-peri); background: var(--s-ink); color: #fff; font-size: .78rem;
}
@media (min-width: 40rem) { .sf-waitlist input { width: 16rem; } }
.sf-waitlist input::placeholder { color: rgb(173 179 211 / .7); }
.sf-waitlist input:focus { outline: none; border-color: var(--s-gold); box-shadow: none; }
.sf-waitlist button {
  padding: .75rem 1.5rem; border-radius: .375rem; background: linear-gradient(135deg, var(--s-flame), var(--s-amber));
  font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--s-ink);
  box-shadow: var(--s-shadow-btn); transition: opacity .2s;
}
.sf-waitlist button:hover { opacity: .9; }

.sf-footer__legal { max-width: 48rem; margin: 2.5rem auto 0; font-size: .7rem; line-height: 1.25rem; color: var(--s-slate); scroll-margin-top: 8rem; }

.sf-footer__rule { position: relative; z-index: 10; margin: 3rem 0 0; border: 0; border-top: 1px solid var(--s-ink-4); }

/* Link block. Phones: tagline over a two-column grid. Desktop: sized in --fu,
   one 87th of the block (content box plus its 3.25rem padding each side). */
.sf-footer {
  /* --fu is the footer's own unit; declared here too so the copyright line can
     use it outside the link grid. */
  --fu: 1rem;
}
@media (min-width: 64rem) { .sf-footer { --fu: min(calc((100cqw + 6.5rem) / 87), 21.333px); } }
.sf-footer__links {
  position: relative; z-index: 10; display: grid; grid-template-columns: 7.875rem 1fr; row-gap: 2.5rem;
  padding: 2.3rem 0 3rem;
}
@media (min-width: 64rem) {
  .sf-footer__links {
    --fu: min(calc((100cqw + 6.5rem) / 87), 21.333px);
    grid-template-columns: calc(var(--fu) * 20.36) calc(var(--fu) * 13.4) calc(var(--fu) * 13.5) calc(var(--fu) * 13.5) auto;
    gap: 0;
    padding: calc(var(--fu) * 4.45) 0 calc(var(--fu) * 2) calc(var(--fu) * 10.05 - 3.25rem);
  }
}
.sf-footer__tagline {
  grid-column: span 2; margin: 0 0 1.3rem; max-width: 17rem;
  font-family: var(--serif); font-size: 1.53rem; line-height: 1.7rem; font-weight: 500; color: var(--s-gold);
}
@media (min-width: 64rem) {
  .sf-footer__tagline { grid-column: span 1; margin: 0; max-width: calc(var(--fu) * 15.5); font-size: calc(var(--fu) * 1.25); line-height: calc(var(--fu) * 1.75); }
}
.sf-footer__col h2 { margin: 0; font-family: 'DM Sans', sans-serif; font-size: .7rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--s-rust); }
@media (min-width: 64rem) { .sf-footer__col h2 { font-size: calc(var(--fu) * .93); line-height: calc(var(--fu) * 1.25); } }
.sf-footer__col ul { list-style: none; margin: .125rem 0 0; padding: 0; line-height: 1.31rem; }
@media (min-width: 64rem) { .sf-footer__col ul { margin-top: calc(var(--fu) * .9); line-height: calc(var(--fu) * 1.1); } }
.sf-footer__col li { margin: 0; }
@media (min-width: 64rem) { .sf-footer__col li + li { margin-top: calc(var(--fu) * .375); } }
.sf-footer__col a { font-size: .72rem; color: var(--s-link); transition: color .2s; }
@media (min-width: 64rem) { .sf-footer__col a { font-size: calc(var(--fu) * .85); } }
.sf-footer__col a:hover { color: var(--s-gold); }
.sf-footer__col .desktop-only { display: none; }
@media (min-width: 64rem) { .sf-footer__col .desktop-only { display: list-item; } }

/* Sits in the flow, above the space the wordmark occupies. */
.sf-footer__copy { position: relative; z-index: 10; margin: 0; font-size: .68rem; color: var(--s-slate); }

/* Watermark: the platform name as a wordmark. Rotated up the right edge on
   phones, across the foot of the block on desktop. It is meant to read. */
/* The wordmark is set as text, not stretched to a fixed width: the size comes
   from the block's own width divided by the letter count, so any platform name
   spans the foot of the block with its letterforms intact. The block clips it,
   which is what gives the cropped edges. --mark-chars is set in the markup. */
.sf-footer__mark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif; font-weight: 700;
  letter-spacing: .015em; line-height: .78; white-space: nowrap;
  color: rgb(255 255 255 / .13);
  /* Phones: reads up the right-hand edge. */
  /* Phones: reads up the right-hand edge, clear of the link columns and the
     block's own rounded corner. */
  right: .5rem; bottom: 1.25rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  /* Sized like the laptop mark, not shrunk: the script below fits it to the
     gutter and the block's height. */
  font-size: min(calc(170cqw / (var(--mark-chars, 6) * .58)), 6.5rem);
}
@media (min-width: 64rem) {
  .sf-footer__mark {
    /* Laptop: inside the block, sitting on its own padding rather than
       running off the edges. */
    right: auto; left: 50%; bottom: .9rem;
    writing-mode: horizontal-tb; transform: translateX(-50%);
    font-size: min(calc(92cqw / (var(--mark-chars, 6) * .58)), 26rem);
  }
}

/* Phones: footer and breadcrumb links get a thumb-sized tap area */
@media (max-width: 40rem) {
  .sf-footer__col ul { line-height: 1.3; margin-top: .35rem; }
  .sf-footer__col a { display: inline-block; padding-block: .5rem; }
  .page-hero .crumbs a { display: inline-block; padding-block: .5rem; }
}
