@font-face {
  font-family: "Archivo ExtraCondensed";
  src: url("assets/archivo-extracondensed-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Funnel Sans";
  src: url("assets/funnel-sans.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0310;
  --text: #f9f0ff;
  --muted: #959099;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: "Funnel Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 280px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
}

body {
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--bg);
  background: #f4da3a;
}

.coming-soon {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg);
}

.spectrum-rule {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(96deg,
    #fe6900 0%, #f4da3a 10%, #9edecd 20%, #1b6ce9 30%, #841382 40%, #fe6900 50%,
    #f4da3a 60%, #9edecd 70%, #1b6ce9 80%, #841382 90%, #fe6900 100%);
  background-size: 200% 100%;
  animation: spectrum-travel 6s linear infinite;
}

.eyebrow {
  position: absolute;
  z-index: 7;
  top: 12.35%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .714286em;
  min-height: 35px;
  padding: 0;
  color: transparent;
  font-size: 14.7875px;
  font-weight: 600;
  font-variation-settings: "wght" 600;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.eyebrow > span:not(.eyebrow-tail),
.eyebrow-tail > span {
  /* Funnel Sans: cap top .275em, baseline .95em at line-height 1.15. */
  background: linear-gradient(180deg, #f9f0ff .275em, #959099 .95em);
  background-clip: text;
  -webkit-background-clip: text;
}

.eyebrow > img {
  display: block;
  width: 1.602138em;
  height: 1.428571em;
  flex: none;
}

.eyebrow-tail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 9.357143em;
  flex: none;
}

.eyebrow-tail img {
  display: block;
  width: .914286em;
  height: .413072em;
  flex: none;
}

.headline {
  position: absolute;
  z-index: 8;
  top: 20.52%;
  left: 50%;
  display: grid;
  gap: clamp(18px, 3.7vh, 30px);
  width: min(615px, calc(100% - 48px));
  margin: 0;
  color: transparent;
  font-family: "Archivo ExtraCondensed", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(3rem, 4.59vw, 4.128rem);
  font-weight: 700;
  line-height: .68;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.headline-line {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .12em;
  overflow: visible;
}

.mobile-break { display: none; }

.word-mask {
  display: inline-block;
  overflow: hidden;
  line-height: 1;
  margin: -.18em -.01em -.22em;
  padding: .18em .01em .22em;
}

.word {
  display: inline-block;
  /* Match Figma CAP_HEIGHT: Archivo's visible capitals occupy .148–.834em.
     Keep the full line box so accents and the word reveal remain unclipped. */
  background: linear-gradient(180deg, #f9f0ff .148em, #1b0c21 .834em);
  background-clip: text;
  -webkit-background-clip: text;
  /* Figma: .5px centered stroke at 66.048px; scale with responsive type. */
  -webkit-text-stroke: .007570253em #2e1f35;
  font-synthesis: none;
}

.notebook {
  position: absolute;
  z-index: 5;
  top: 27.16%;
  left: 50%;
  width: min(848px, 58.89vw);
  aspect-ratio: 848 / 477;
  margin: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.notebook img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact {
  position: absolute;
  z-index: 9;
  top: 76.54%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 200px;
  height: 50px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transform: translateX(-50%);
}

.contact-frame {
  position: absolute;
  inset: -.6px;
  width: 201.2px;
  height: 51.2px;
  pointer-events: none;
}

.contact > *:not(.contact-frame) { position: relative; }

.contact-roll {
  display: block;
  height: 1.25em;
  overflow: hidden;
  line-height: 1.25;
}

.contact-roll i {
  display: block;
  font-style: normal;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.contact:hover .contact-roll i,
.contact:focus-visible .contact-roll i { transform: translateY(-100%); }

.contact-icon {
  display: block;
  width: 19.2px;
  height: 19.2px;
  flex: none;
  overflow: visible;
}

.contact-arrow {
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}

.contact-arrow--next { transform: translate(-13px, 13px); }
.contact:hover .contact-arrow:first-of-type,
.contact:focus-visible .contact-arrow:first-of-type { transform: translate(13px, -13px); }
.contact:hover .contact-arrow--next,
.contact:focus-visible .contact-arrow--next { transform: translate(0, 0); }

.contact:focus-visible {
  outline: 2px solid #9edecd;
  outline-offset: 7px;
}

.footer-wordmark {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: -30px;
  width: min(1170px, 81.25vw);
  height: auto;
  margin: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.footer-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.reveal-veil {
  position: absolute;
  z-index: 99;
  inset: 0;
  background: #0d0310;
  pointer-events: none;
  opacity: 0;
}

html.motion-armed .reveal-veil { opacity: 1; }

html.motion-armed .eyebrow,
html.motion-armed .contact,
html.motion-armed .footer-wordmark {
  opacity: 0;
}

html.motion-armed .word {
  opacity: 0;
  transform: translateY(118%);
  will-change: transform, opacity;
}

html.motion-armed.is-ready .reveal-veil {
  animation: veil-out 1.64s .08s cubic-bezier(.22, 1, .36, 1) forwards;
}

html.motion-armed.is-ready .eyebrow {
  animation: fade-in .68s .76s var(--ease) forwards;
}

html.motion-armed.is-ready .word {
  animation: word-up 1s calc(1.08s + var(--index) * .2s) cubic-bezier(.22, 1, .36, 1) forwards;
}

html.motion-armed.is-ready .contact {
  animation: fade-in .68s 3.36s var(--ease) forwards;
}

html.motion-armed.is-ready .footer-wordmark {
  animation: fade-in .72s 3.76s var(--ease) forwards;
}

@keyframes veil-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes prism {
  0% { stop-color: #fe6900; }
  20% { stop-color: #f4da3a; }
  40% { stop-color: #9edecd; }
  60% { stop-color: #1b6ce9; }
  80% { stop-color: #841382; }
  100% { stop-color: #fe6900; }
}

@keyframes spectrum-travel {
  to { background-position: 100% 0; }
}

.contact-frame stop[class^="p"] { animation: prism 6s linear infinite; }
.contact-frame stop.p1 { animation-delay: -1.2s; }
.contact-frame stop.p2 { animation-delay: -2.4s; }
.contact-frame stop.p3 { animation-delay: -3.6s; }
.contact-frame stop.p4 { animation-delay: -4.8s; }

@keyframes word-up {
  from { opacity: 0; transform: translateY(118%); }
  to { opacity: 1; transform: translateY(0); }
}

/* A shared spacing rhythm keeps the introduction, visible image and action together. */
.hero-composition {
  --space: clamp(24px, 3.4svh, 32px);
  --notebook-width: min(920px, 88vw, 100svh);
  --notebook-gap: clamp(64px, 9svh, 88px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 5svh, 64px) 24px;
}
.hero-composition > .eyebrow,
.hero-composition > .headline,
.hero-composition > .notebook,
.hero-composition > .contact {
  position: relative;
  top: auto;
  left: auto;
  bottom: auto;
  transform: none;
  flex: none;
}
.headline {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: calc(var(--space) * .5);
  margin-bottom: -.2em;
  font-size: clamp(40px, min(4.9vw, 8.3svh), 76px);
  line-height: 1;
}
.headline-line {
  min-width: 0;
  column-gap: .16em;
}
.notebook {
  /* Frame the visible laptop, excluding the empty upper area of the source. */
  width: var(--notebook-width);
  height: auto;
  aspect-ratio: 100 / 34;
  /* Equal optical gaps at the lid and base, excluding the image padding. */
  margin-top: calc(var(--notebook-gap) - var(--notebook-width) * .0225);
  overflow: hidden;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 78%, transparent);
}
.notebook img {
  position: absolute;
  width: 100%;
  height: auto;
  top: -38.235%;
  left: .45%;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.contact { margin-top: calc(var(--notebook-gap) - var(--notebook-width) * .0872); }
body { overflow-x: hidden; overflow-y: auto; }
.coming-soon { height: auto; min-height: 100svh; }
.footer-wordmark { bottom: -30px; }

@media (max-width: 760px) {
  .spectrum-rule { height: 4px; }
  .hero-composition {
    --space: clamp(24px, 3.8svh, 32px);
    --notebook-width: min(610px, 124vw, 83svh);
    padding: 40px 16px;
  }
  .eyebrow { min-height: 32.5px; font-size: clamp(10px, 3.25vw, 12.675px); }
  .headline {
    font-size: clamp(29px, min(11.2vw, 6.4svh), 57px);
    line-height: 1;
    margin-top: calc(var(--space) * .5);
    white-space: normal;
  }
  .headline-line { column-gap: .16em; row-gap: 0; flex-wrap: wrap; }
  .mobile-break { display: block; flex: 0 0 100%; height: 0; }
  .contact { font-size: 13px; }
  .footer-wordmark { bottom: -3px; width: 112vw; }
}
@media (max-height: 500px) and (min-width: 761px) {
  .hero-composition {
    --notebook-width: 440px;
    --notebook-gap: 40px;
    padding-block: 24px;
  }
  .headline { font-size: 36px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-veil { display: none; }
  .eyebrow,
  .contact,
  .footer-wordmark,
  .word { opacity: 1 !important; animation: none !important; }
  .word { transform: none !important; }
  .contact-arrow,
  .contact-roll i { transition: none; }
  .contact-frame stop[class^="p"] { animation: none; }
  .spectrum-rule { animation: none; }
}
