:root {
  --ink: #191716;
  --ink-2: #3b3835;
  --muted: #6d6b68;
  --subtle: #a3a09c;
  --line: rgb(25 23 22 / 0.07);
  --line-strong: rgb(25 23 22 / 0.11);
  --bar: #f4f4f3;
  --bar-hover: #ebebea;
  --live: #1f9d55;
  --font: "Onest", "Avenir Next", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-xs: 0 1px 2px rgb(25 23 22 / 0.05);
  --shadow-sm: 0 1px 2px rgb(25 23 22 / 0.04), 0 6px 16px -4px rgb(25 23 22 / 0.08);
  --sheet-radius: 1.25rem;
  --deck-max: 80rem;

  /* Outer radius = inner radius + padding, so the tray and cards stay concentric. */
  --well-pad: 0.5rem;
  --card-radius: 1.5rem;
  --well-radius: calc(var(--card-radius) + var(--well-pad));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgb(200 200 200) 1px, transparent 1.15px);
  background-size: 26px 26px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 100%);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  overflow: hidden;
  border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
  background-color: transparent;
}

.hero,
.deck,
.site-footer {
  position: relative;
  z-index: 1;
}

.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  z-index: 30;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: clamp(1.25rem, 3vh, 2rem) 1.25rem 0;
}

/* The mark's leading diamond reads as extra space, so the left inset is a touch tighter. */
.logo-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.125rem 0 1rem;
  line-height: 0;
  border-radius: 999px;
  background: #f2f3f3;
  transition: background-color 0.2s var(--ease-out);
}

.logo-link:hover {
  background: #e9eaea;
}

.logo {
  display: block;
  height: 1.375rem;
  width: auto;
}

/* Hero */

.hero {
  padding: clamp(2.75rem, 6vh, 4rem) 1.25rem 0;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.4375rem 0.875rem 0.4375rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-xs);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
}

.eyebrow-dot {
  position: relative;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--live);
}

.eyebrow-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--live);
  animation: live-pulse 2.4s var(--ease-out) infinite;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, min(8vw, 11vh), 6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  line-height: 1.55;
  text-wrap: balance;
}

/* Deck */

.deck {
  --card-h: clamp(30rem, 56vh, 40rem);
  --peek: 16rem;
  --deck-gap: 0.5rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  scroll-margin-top: 1.5rem;
}

.deck-well {
  max-width: var(--deck-max);
  margin: 0 auto;
  padding: var(--well-pad);
  border-radius: var(--well-radius);
  background: var(--bar);
  overflow: hidden;
}

/* The stage bleeds to the tray edge so the peeking card tucks under its rounded corner. */
.stage {
  position: relative;
  display: flex;
  gap: var(--deck-gap);
  margin-inline: calc(-1 * var(--well-pad));
  padding-inline: var(--well-pad);
  scroll-padding-inline: var(--well-pad);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  border-radius: var(--card-radius);
}

.stage::-webkit-scrollbar {
  display: none;
}

.stage:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(27rem, 1fr) minmax(0, var(--card-h));
  flex: 0 0 calc(100% - var(--peek));
  height: var(--card-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-radius: var(--card-radius);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 0% 0%, rgb(255 255 255 / 0.06), transparent 60%),
    var(--card-bg, #191716);
  color: #fff;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.06),
    inset 0 1px 0 rgb(255 255 255 / 0.08);
  pointer-events: none;
}

.card[data-bg="191716"] { --card-bg: #191716; }
.card[data-bg="4b000f"] { --card-bg: #4b000f; }
.card[data-bg="00473b"] { --card-bg: #00473b; }
.card[data-bg="003046"] { --card-bg: #003046; }

.model-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-width: 0;
  padding: 2.5rem;
}

.model-copy-main {
  min-width: 0;
  max-width: 34rem;
}

.model-kicker {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.model-index {
  display: inline-flex;
  align-items: center;
  height: 1.375rem;
  padding: 0 0.4375rem;
  border-radius: 0.4375rem;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  letter-spacing: 0.01em;
}

.model-title {
  margin: 1.5rem 0 0;
  font-size: clamp(1.75rem, 2.3vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-align: left;
  text-wrap: balance;
}

.model-title-lead {
  color: rgb(255 255 255 / 0.55);
}

.model-title-rest {
  color: #fff;
}

.model-desc {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 0.7);
  font-size: 1rem;
  letter-spacing: -0.012em;
  line-height: 1.5;
  text-wrap: pretty;
}

.model-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.model-stats dt {
  margin: 0 0 0.5rem;
  color: rgb(255 255 255 / 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.model-stats dd {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  margin: 0;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}

.model-author {
  gap: 0.5rem;
  white-space: nowrap;
}

.card .avatar {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgb(255 255 255 / 0.1);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16);
}

.model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.see-how {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 1.25rem;
  white-space: nowrap;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.16s var(--ease-out);
}

.see-how-icon {
  flex: none;
  transition: transform 0.3s var(--ease-out);
}

.see-how:hover {
  background: #efedea;
}

.see-how:hover .see-how-icon {
  transform: translateX(2px);
}

.see-how:active {
  transform: scale(0.97);
}

.model-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  list-style: none;
}

.model-scope li {
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.86);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.soon-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin: 1.5rem 0 0;
  min-height: 2.75rem;
  padding: 0 1.125rem 0 1rem;
  border-radius: 999px;
  background: transparent;
  color: rgb(255 255 255 / 0.78);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: default;
  user-select: none;
}

.soon-status-dot {
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.card button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.model-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
}

/* Feather the dot field into the card so it reads as part of the surface, not a box. */
.model-view {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--card-bg, #191716);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}

/* Deck controls */

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--deck-max);
  margin: 1rem auto 0;
}

.deck-dots {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.375rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--bar);
}

.deck-dot {
  position: relative;
  width: 0.375rem;
  height: 0.375rem;
  margin: 0 0.1875rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgb(25 23 22 / 0.22);
  cursor: pointer;
  transition: width 0.45s var(--ease-out), background-color 0.25s var(--ease-out);
}

.deck-dot::before {
  content: "";
  position: absolute;
  inset: -0.75rem -0.25rem;
}

.deck-dot:hover {
  background: rgb(25 23 22 / 0.4);
}

.deck-dot[aria-current="true"] {
  width: 1.375rem;
  background: var(--ink);
}

.deck-arrows {
  display: flex;
  gap: 0.5rem;
}

.deck-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bar);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    transform 0.16s var(--ease-out);
}

.deck-arrow:hover {
  background: var(--bar-hover);
}

.deck-arrow:active {
  transform: scale(0.94);
}

.deck-arrow:disabled {
  background: var(--bar);
  color: rgb(25 23 22 / 0.25);
  cursor: default;
  transform: none;
}

/* About */

.about {
  padding: clamp(5rem, 12vh, 8rem) clamp(1rem, 3vw, 2.5rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem 1.25rem;
  max-width: var(--deck-max);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}

.about-kicker {
  margin: 0 0 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.about-intro h2 {
  margin: 0;
  max-width: 22rem;
  font-size: clamp(2.125rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.about-summary {
  max-width: 26rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: -0.012em;
  line-height: 1.5;
}

.about-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.about-steps li {
  position: relative;
  padding-left: 2.25rem;
}

.about-steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
}

.about-steps h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.about-steps p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: -0.012em;
  line-height: 1.5;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}

.about-cta:hover {
  background: #2c2927;
}

.about-cta:active {
  transform: scale(0.97);
}

.about-note {
  margin: 0.875rem 0 0;
  color: var(--subtle);
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

/* Footer */

.site-footer {
  --footer-bg: #fff;
  --footer-dot: #d6d3cf;
  --footer-grid: rgb(200 200 200);
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(5rem, 12vh, 8rem);
  background: var(--footer-bg);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  max-width: calc(var(--deck-max) + 2 * clamp(1rem, 3vw, 2.5rem));
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 2.5rem) clamp(1rem, 3vw, 2.5rem);
}

/* Placeholder size until footer-mark.js snaps the height to whole grid rows. */
.footer-mark {
  width: 100%;
  aspect-ratio: 284 / 53;
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

.footer-base p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.footer-nav a:hover {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Entrance */

.logo-link,
.eyebrow,
h1,
.lede {
  animation: rise 0.9s var(--ease-out) both;
}

h1 {
  animation-delay: 0.06s;
}

.lede {
  animation-delay: 0.12s;
}

.deck {
  animation: rise-plain 1s var(--ease-out) 0.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }
}

@keyframes rise-plain {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes live-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Tablet */

@media (max-width: 1079px) and (min-width: 761px) {
  .deck {
    --card-h: clamp(28rem, 52vh, 34rem);
    --peek: 3rem;
  }

  .model-copy {
    padding: 2rem;
  }

  .model-title {
    font-size: 1.625rem;
  }
}

/* Mobile */

@media (max-width: 760px) {
  :root {
    --sheet-radius: 1rem;
    --well-pad: 0.375rem;
    --card-radius: 1.25rem;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .eyebrow {
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .lede {
    margin-top: 1.125rem;
    font-size: 1.0625rem;
  }

  .deck {
    --peek: 1.75rem;
    margin-top: 2.25rem;
    padding: 0 1rem;
  }

  .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }

  .model-frame {
    order: -1;
    aspect-ratio: 1.25;
  }

  .model-copy {
    gap: 1.5rem;
    padding: 0.25rem 1.25rem 1.25rem;
  }

  .model-title {
    margin-top: 1rem;
    font-size: 1.5rem;
  }

  .model-desc {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
  }

  .model-stats {
    gap: 0.75rem 1.5rem;
    padding-top: 1rem;
  }

  .model-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }

  .see-how {
    min-height: 2.75rem;
    padding: 0 1rem;
    font-size: 0.875rem;
  }

  .deck-controls {
    margin-top: 0.75rem;
  }

  .about {
    padding-top: 3.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-intro h2 {
    max-width: 18rem;
  }

  .footer-mark {
    aspect-ratio: auto;
    height: 14rem;
  }

  .footer-base {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .stage {
    scroll-behavior: auto;
  }
}
