/* Pyjamas Studio, coming-soon page. Tokens, fonts and buttons match the main site (site/css/styles.css). */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100%; font-display: swap;
  src: url("../assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #050607;
  --panel: #153019;
  --accent: #A6FF1A;
  --accent-hover: #5FD34A;
  --ink: #F0FFE3;
  --ink-80: rgba(240, 255, 227, .8);
  --ink-65: rgba(240, 255, 227, .65);
  --ink-14: rgba(240, 255, 227, .14);

  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* film grain, same as the main site: fixed and click-through so it never repaints on scroll */
.grain {
  position: fixed; inset: -10%; z-index: 3; pointer-events: none;
  opacity: .065;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* ---------- one full screen: hero, bottom strip ---------- */
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}
/* wall of finished ads behind the text: six slightly tilted columns drifting in opposite directions */
.wall {
  --wall-gap: clamp(10px, 1.2vw, 18px);
  position: absolute; inset: -12% -6%; z-index: -2;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--wall-gap);
  transform: rotate(-4deg);
  opacity: .62;
  pointer-events: none;
}
.wall__track {
  display: flex; flex-direction: column; gap: var(--wall-gap);
  padding-bottom: var(--wall-gap); /* one full gap per item, so the -50% loop lands exactly on the copy */
}
.wall__col:nth-child(2) .wall__track { margin-top: -18%; }
.wall__col:nth-child(3) .wall__track { margin-top: -6%; }
.wall__col:nth-child(4) .wall__track { margin-top: -30%; }
.wall__col:nth-child(5) .wall__track { margin-top: -12%; }
.wall__col:nth-child(6) .wall__track { margin-top: -24%; }
.wall img {
  display: block; width: 100%; height: auto;
  border-radius: 6px;
  background: var(--panel);
}
.screen__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, .7) 0%, rgba(5, 6, 7, .1) 22%, rgba(5, 6, 7, .35) 55%, rgba(5, 6, 7, .95) 100%),
    linear-gradient(90deg, rgba(5, 6, 7, .9) 0%, rgba(5, 6, 7, .6) 42%, rgba(5, 6, 7, .05) 78%);
}


.hero {
  align-self: end;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(1.1rem, 2.6vh, 1.8rem);
  padding: clamp(32px, 6vh, 72px) var(--gutter) clamp(40px, 8vh, 96px);
}
/* your logo file as supplied (on black, 1024 square). The frame trims the empty black margin
   so the mark lines up with the text, and "lighten" lets the black melt into the page. */
.hero__logo {
  --logo-h: clamp(120px, 17vh, 170px);
  width: calc(var(--logo-h) * .8533); /* visible area 640 x 750 of the 1024 file */
  height: var(--logo-h);
  overflow: hidden;
  margin-bottom: clamp(.2rem, 1vh, .8rem);
}
.hero__logo img {
  display: block;
  width: calc(var(--logo-h) * 1.3653);
  height: auto;
  margin: calc(var(--logo-h) * -.168) 0 0 calc(var(--logo-h) * -.2667);
  mix-blend-mode: lighten;
}
.hero__label {
  margin: 0;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 7.2rem);
  line-height: .9;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__lead {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.45;
  color: var(--ink-80);
  max-width: 36ch;
  text-wrap: pretty;
}

/* the offer's condition, right under the button so the "up to" claim is qualified where it is made */
.hero__terms {
  margin: calc(clamp(1.1rem, 2.6vh, 1.8rem) * -.45) 0 0;
  max-width: 44ch;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--ink-65);
}

/* button: the main site's primary pill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  padding: 1.3em 2.3em; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; line-height: 1;
  background: var(--accent); color: var(--bg);
  transition: background-color .25s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(.98); }
@media (hover: hover) {
  .btn:hover { background: var(--accent-hover); }
}

.foot {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 32px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--ink-14);
  font-size: .8125rem;
  color: var(--ink-65);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot a { text-decoration: none; color: var(--ink-80); transition: color .25s var(--ease); }
@media (hover: hover) {
  .foot a:hover { color: var(--accent); }
}
.foot__copy { margin: 0; }
.foot__note { grid-column: 1 / -1; margin: 0; max-width: 90ch; font-size: .72rem; line-height: 1.45; color: var(--ink-65); }

/* phones: text full width, bottom strip stacks */
@media (max-width: 767px) {
  .wall { grid-template-columns: repeat(3, 1fr); inset: -8% -14%; }
  .wall__col:nth-child(n + 4) { display: none; }
  .screen__veil {
    background: linear-gradient(180deg, rgba(5, 6, 7, .65) 0%, rgba(5, 6, 7, .2) 14%, rgba(5, 6, 7, .85) 30%, rgba(5, 6, 7, .97) 100%);
  }
  .hero { padding-bottom: 32px; }
  .hero__logo { --logo-h: 112px; }
  .hero__title { font-size: min(9vw, 2.6rem); } /* keeps the headline on two lines */
  .btn { font-size: .82rem; padding: 1.25em 2em; }
  .foot { grid-template-columns: 1fr; justify-items: start; padding-top: 18px; padding-bottom: 22px; }
}

/* load-in: label, headline, line and button rise in reading order.
   Hidden only when the script is running (html.js) and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .js .rise {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--i, 0) * 120ms);
  }
  .js.is-ready .rise { opacity: 1; transform: none; }
}

/* the drift only runs once the script has doubled each column (seamless loop) and motion is welcome */
@keyframes wall-up   { from { transform: translate3d(0, 0, 0); }    to { transform: translate3d(0, -50%, 0); } }
@keyframes wall-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .wall.is-looping .wall__track { animation: wall-up 90s linear infinite; will-change: transform; }
  .wall.is-looping .wall__col:nth-child(even) .wall__track { animation-name: wall-down; animation-duration: 110s; }
  .wall.is-looping .wall__col:nth-child(3) .wall__track,
  .wall.is-looping .wall__col:nth-child(5) .wall__track { animation-duration: 75s; }
}
