@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff") format("woff");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff") format("woff");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff") format("woff");
}

:root {
  --dw: 1512;
  --dh: 847;
  --bg: #02011c;
  --ink: #1e1f21;
  --pill-fill: #ffffff;
  --muted: #c9d0dc;
  --ghost-fill: rgba(14, 22, 48, 0.45);
  --ghost-stroke: rgba(210, 220, 240, 0.18);
  --dim-fill: rgba(28, 42, 74, 0.55);
  --dim-stroke: rgba(190, 205, 230, 0.16);
  --grid: rgba(70, 110, 160, 0.38);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: #e8eef6;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button, a { font-family: inherit; }

.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;
}

/* Fill the viewport. Design aspect is ~216:121, almost 16:9.
   Everything is positioned in design-space percentages so a
   16:9 window matches the reference frames. */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  user-select: none;
}

/* ----- atmosphere ----- */
.bg {
  position: absolute;
  inset: 0;
  background:
    /* left content lift */
    radial-gradient(80% 70% at 16% 45%, rgba(16, 52, 92, 0.62) 0%, rgba(16, 52, 92, 0) 58%),
    /* mid-left dusty haze toward the face */
    radial-gradient(50% 65% at 34% 62%, rgba(70, 110, 150, 0.20) 0%, rgba(70, 110, 150, 0) 70%),
    /* left-shoulder cyan dust */
    radial-gradient(48% 52% at 36% 88%, rgba(90, 150, 175, 0.32) 0%, rgba(70, 130, 160, 0) 68%),
    /* bottom-left lift */
    radial-gradient(60% 48% at 4% 100%, rgba(72, 80, 96, 0.48) 0%, rgba(72, 80, 96, 0) 65%),
    /* top-left navy */
    linear-gradient(180deg, #041c36 0%, #082443 38%, #07101f 72%, #2a303c 100%),
    /* left-to-right falloff into black-navy */
    linear-gradient(90deg, #082443 0%, #050e1c 38%, #010015 62%, #000010 100%);
  background-color: #01010f;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 40%, rgba(0,0,0,0) 38%, rgba(0,0,8,0.42) 100%),
    linear-gradient(90deg, rgba(0,4,16,0.18) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,8,0.72) 100%),
    linear-gradient(180deg, rgba(0,4,20,0.22) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,8,0.55) 100%);
}

.grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* verticals at 30.26% and 69.64%; horizontals at 10.09% and 92.74% */
  background:
    linear-gradient(to right,
      transparent calc(30.26% - 0.5px),
      var(--grid) calc(30.26% - 0.5px),
      var(--grid) calc(30.26% + 0.5px),
      transparent calc(30.26% + 0.5px),
      transparent calc(69.64% - 0.5px),
      var(--grid) calc(69.64% - 0.5px),
      var(--grid) calc(69.64% + 0.5px),
      transparent calc(69.64% + 0.5px)),
    linear-gradient(to bottom,
      transparent calc(10.09% - 0.5px),
      var(--grid) calc(10.09% - 0.5px),
      var(--grid) calc(10.09% + 0.5px),
      transparent calc(10.09% + 0.5px),
      transparent calc(92.74% - 0.5px),
      var(--grid) calc(92.74% - 0.5px),
      var(--grid) calc(92.74% + 0.5px),
      transparent calc(92.74% + 0.5px));
  opacity: 0.85;
}

.person {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 2;
}

#rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ----- top bar ----- */
.top {
  /* Children are absolutely positioned against .stage */
  position: static;
  z-index: 10;
}

.logo {
  position: absolute;
  z-index: 12;
  left: calc(216 / 3024 * 100%);
  top: calc(47 / 1694 * 100%);
  width: calc(70 / 3024 * 100%);
  height: auto;
  aspect-ratio: 70 / 69;
  display: block;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}
.nav .pill { pointer-events: auto; position: absolute; top: calc(45 / 1694 * 100%); height: calc(72 / 1694 * 100%); padding: 0; }
.nav .pill.on { left: calc(1299 / 3024 * 100%); width: calc(111 / 3024 * 100%); }
.nav .pill.dim:nth-of-type(2) { left: calc(1432 / 3024 * 100%); width: calc(127 / 3024 * 100%); }
.nav .pill.dim:nth-of-type(3) { left: calc(1587 / 3024 * 100%); width: calc(132 / 3024 * 100%); }

.actions {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}
.actions .pill { pointer-events: auto; position: absolute; top: calc(45 / 1694 * 100%); height: calc(72 / 1694 * 100%); padding: 0; }
.actions .ghost { left: calc(2238 / 3024 * 100%); width: calc(280 / 3024 * 100%); }
.actions .on { left: calc(2530 / 3024 * 100%); width: calc(264 / 3024 * 100%); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: calc(14 / 1512 * 100vw);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.pill.on {
  background: var(--pill-fill);
  color: var(--ink);
  border-color: var(--pill-fill);
}
.pill.dim {
  background: var(--dim-fill);
  color: #e4eaf4;
  border-color: var(--dim-stroke);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pill.ghost {
  background: var(--ghost-fill);
  color: #e6edf7;
  border-color: var(--ghost-stroke);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 calc(26 / 1512 * 100vw);
}

.pill.on:hover { background: #f3f4f7; }
.pill.dim:hover,
.pill.ghost:hover {
  background: rgba(48, 66, 104, 0.72);
  border-color: rgba(220, 230, 250, 0.28);
}
.pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ----- typography plates (desktop) ----- */
.type-left,
.type-stats {
  display: block;
  pointer-events: none;
}

.copy-left {
  position: absolute;
  z-index: 8;
  left: calc(160 / 3024 * 100%);
  top: calc(480 / 1694 * 100%);
  width: calc(760 / 3024 * 100%);
  height: auto;
}
.copy-left .type-left {
  width: 100%;
  height: auto;
}

.copy-stats {
  position: absolute;
  z-index: 8;
  left: calc(2480 / 3024 * 100%);
  top: calc(520 / 1694 * 100%);
  width: calc(420 / 3024 * 100%);
  height: auto;
}
.copy-stats .type-stats {
  width: 100%;
  height: auto;
}

.cta {
  position: absolute;
  z-index: 11;
  left: calc(217 / 3024 * 100%);
  top: calc(1118 / 1694 * 100%);
  width: calc(264 / 3024 * 100%);
  height: calc(73 / 1694 * 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: calc(15 / 1512 * 100vw);
  letter-spacing: 0.005em;
  transition: background-color 160ms ease, transform 160ms ease;
}
.cta:hover { background: #f3f4f7; }
.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.mobile-copy { display: none; }

/* ----- grain overlay: on top of everything ----- */
.grain {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: url("assets/grain.png") repeat;
  background-size: 256px 256px;
  opacity: 0.42;
  mix-blend-mode: overlay;
}

/* ============================================================
   Narrow / mobile: keep the same atmosphere, restack type.
   ============================================================ */
@media (max-width: 800px) {
  .nav { display: none; }

  .logo {
    left: 20px;
    top: calc(14px + env(safe-area-inset-top, 0px));
    width: 32px;
    height: 32px;
  }

  .actions { inset: auto; right: 16px; top: calc(12px + env(safe-area-inset-top, 0px)); width: auto; height: 36px; }
  .actions .pill { position: static; font-size: 12px; padding: 0 14px; height: 36px; width: auto; }
  .actions .ghost { display: none; }

  .copy-left,
  .copy-stats,
  .cta { display: none; }

  .mobile-copy {
    display: block;
    position: absolute;
    z-index: 9;
    left: 20px;
    right: 20px;
    top: calc(68px + env(safe-area-inset-top, 0px));
    bottom: 16px;
    overflow: hidden;
    pointer-events: none;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 32, 58, 0.55);
    border: 1px solid rgba(200, 214, 235, 0.16);
    border-radius: 999px;
    padding: 3px 10px 3px 3px;
    margin-bottom: 18px;
  }
  .eyebrow .new {
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
  }
  .eyebrow-text {
    color: #d5deea;
    font-size: 12.5px;
    font-weight: 400;
    padding-right: 4px;
  }

  .m-headline {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-weight: 500;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.12;
    letter-spacing: 0.01em;
    color: #dce6f2;
    margin-bottom: 14px;
  }
  .m-headline .meets {
    color: #8ea0b8;
    font-style: normal;
    font-weight: 400;
  }
  .m-body {
    max-width: 22em;
    color: #9aa8bb;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    margin-bottom: 22px;
  }
  .m-cta {
    position: static;
    width: auto;
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    pointer-events: auto;
    display: inline-flex;
  }
  .m-stats {
    list-style: none;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .m-stats strong {
    display: block;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 28px;
    font-weight: 500;
    color: #dce6f2;
  }
  .m-stats span {
    display: block;
    color: #8b97a8;
    font-size: 13px;
    line-height: 1.3;
    margin-top: 2px;
  }

  /* Keep the face visible in the lower/right half */
  .person { object-fit: cover; object-position: 62% 40%; }
  .bg {
    background:
      radial-gradient(80% 60% at 60% 40%, rgba(18, 58, 102, 0.35) 0%, rgba(18, 58, 102, 0) 70%),
      radial-gradient(60% 50% at 30% 90%, rgba(70, 130, 160, 0.22) 0%, rgba(70, 130, 160, 0) 70%),
      linear-gradient(160deg, #05213d 0%, #071428 45%, #01001c 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill, .cta { transition: none; }
}

@media (min-width: 801px) and (max-aspect-ratio: 4/3) {
  /* Tall desktop windows: don't let type get overly stretched. */
}
