:root {
  --cream: #fffbf5;
  --sand: #f8e7cc;
  --ink: #1e1712;
  --ink-2: #6b5e54;
  --ink-3: #9a8c80;
  --line: rgba(30, 23, 18, 0.12);
  --accent: #f5b700;
  --accent-ink: #1e1712;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 48px);
  --radius: 12px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.002em;
}
.display span { display: block; }
.accent { color: var(--accent); }
.h2 { font-size: clamp(44px, 5.6vw, 80px); }
.h3 { font-size: clamp(34px, 3.4vw, 48px); }
.h4 { font-size: 26px; line-height: 1; }

.kicker,
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 44px;
  height: 2px;
  background: var(--accent);
}

/* Buttons */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.pill:hover { transform: translateY(-2px); background: #ffc61a; }
.pill:focus-visible,
.link-arrow:focus-visible,
.film:focus-visible,
.nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.pill-sm { padding: 11px 20px; font-size: 15px; }

.link-arrow {
  display: inline-flex;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 16px; }

.ico-play {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  color: var(--cream);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  transition: height 0.3s ease;
}
.nav.solid {
  background: rgba(255, 251, 245, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav.solid .nav-in { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}
.brand-word {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-word b {
  font-weight: 400;
  margin-left: 6px;
  padding: 2px 6px 1px;
  background: var(--accent);
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a:not(.pill) {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
}
.nav-links a:not(.pill):hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg,
.foot-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  z-index: -2;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.13;
}
.hero .hero-bg { filter: none; opacity: 1; object-position: 62% 50%; }
.hero::after,
.foot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(22, 18, 15, 0.55) 0%, rgba(22, 18, 15, 0) 35%),
    linear-gradient(90deg, rgba(22, 18, 15, 0.82) 0%, rgba(22, 18, 15, 0.62) 50%, rgba(22, 18, 15, 0.3) 78%, rgba(22, 18, 15, 0.08) 100%);
}
.hero-in { padding-top: 140px; padding-bottom: 96px; }
.hero .kicker { margin-bottom: 28px; opacity: 0.92; }
.hero h1 { font-size: clamp(54px, 8.9vw, 128px); }
.hero-lead {
  max-width: 580px;
  margin-top: 40px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 251, 245, 0.88);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 36px;
  margin-top: 44px;
}
.fine {
  margin-top: 40px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(255, 251, 245, 0.62);
}

/* Sections */
.sec { padding: clamp(88px, 11vw, 140px) 0; }
.sec-lead {
  max-width: 600px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Film (video card) */
.film {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ece5da;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -28px rgba(30, 23, 18, 0.35);
  color: var(--ink);
  font: inherit;
}
.film img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 23, 18, 0.18);
  transition: background-color 0.3s ease;
}
.film:hover img { transform: scale(1.025); }
.film:hover::after { background: rgba(30, 23, 18, 0.08); }
.film-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 12px 40px rgba(30, 23, 18, 0.3);
  transition: transform 0.25s ease;
}
.film-play .ico-play { border-width: 12px 0 12px 19px; margin-left: 5px; }
.film:hover .film-play { transform: scale(1.08); }
.film-time {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(30, 23, 18, 0.82);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.film-xl { margin-top: 64px; }
.film-xl .film-play { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
.film-xl .film-play .ico-play { border-width: 17px 0 17px 27px; margin-left: 8px; }
.film-xl .film-time { top: calc(50% + 78px); bottom: auto; right: auto; left: 50%; transform: translateX(-50%); font-size: 15px; padding: 6px 14px; }
.film.playing { cursor: default; background: #000; }
.film.playing::after,
.film.playing .film-play,
.film.playing .film-time,
.film.playing img { display: none; }
.film video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.film-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.film.loading .film-status { display: grid; background: rgba(30, 23, 18, 0.4); }
.film.loading .film-status::before {
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(255, 251, 245, 0.45);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.film.failed .film-status { display: grid; background: rgba(30, 23, 18, 0.72); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Teams */
.sec-teams { padding-top: 0; }
.split-head {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 96px);
}
.split-note {
  max-width: 400px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.split-note b { color: var(--ink); }

.team {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.team + .team { margin-top: clamp(72px, 9vw, 120px); }
.team-flip { grid-template-columns: 1fr 1.35fr; }
.team-flip .film { order: 2; }
.team-text { max-width: 420px; }
.team-text p { color: var(--ink-2); line-height: 1.65; }
.num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.team .h3 { margin-bottom: 14px; }
.team-text .team-line {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}
.team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.team-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.team-meta dd { margin-top: 4px; font-size: 14px; font-weight: 600; }

/* Facts */
.sec-facts { border-top: 1px solid var(--line); }
.facts {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 7vw, 112px);
}
.facts-head .h2 { margin-bottom: 24px; }
.facts-head p:last-child { max-width: 340px; color: var(--ink-2); line-height: 1.65; }
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-content: start;
  padding-top: 8px;
}
.facts-grid dt {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.facts-grid dd { font-size: 15px; line-height: 1.6; }

/* Get started */
.sec-start { background: var(--sand); padding-bottom: 24px; }
.sec-start .eyebrow { color: #6b5540; }
.sec-start .sec-lead { color: #6b5540; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(48px, 6vw, 72px);
}
.step-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(30, 23, 18, 0.08), 0 24px 48px -30px rgba(30, 23, 18, 0.4);
  margin-bottom: 24px;
}
.step-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.term { background: var(--ink); color: var(--cream); display: flex; flex-direction: column; }
.term-bar { display: flex; gap: 7px; padding: 14px 16px 0; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 251, 245, 0.18); }
.term pre {
  margin: 0;
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.term .dim { color: rgba(255, 251, 245, 0.5); }
.term .ok { color: var(--accent); }
.step-n {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b5540;
}
.step .h4 { margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.6; color: #4d3f33; max-width: 320px; }

/* Footer */
.foot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--cream);
}
/* The footer grows out of the sand section above it (as on agege.life): same base colour, the picture and its
   shading fade in from the top. */
.foot { background: var(--sand); }
.foot .foot-bg,
.foot::after {
  -webkit-mask-image: url(media/fade-wave.svg), linear-gradient(#000, #000);
  mask-image: url(media/fade-wave.svg), linear-gradient(#000, #000);
  -webkit-mask-size: 300% 520px, 100% 100%;
  mask-size: 300% 520px, 100% 100%;
  -webkit-mask-position: 40% 0, 0 520px;
  mask-position: 40% 0, 0 520px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* Warms the top of the picture toward the sand, so dark clouds do not turn grey where they fade in. */
.foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  z-index: -1;
  background: linear-gradient(180deg, var(--sand) 0%, rgba(248, 231, 204, 0.7) 30%, rgba(248, 231, 204, 0.25) 62%, rgba(248, 231, 204, 0) 100%);
}
.foot .foot-bg { filter: none; opacity: 1; object-position: 50% 40%; }
.foot::after {
  background:
    linear-gradient(0deg, rgba(22, 18, 15, 0.9) 0%, rgba(22, 18, 15, 0.35) 38%, rgba(22, 18, 15, 0) 62%),
    linear-gradient(90deg, rgba(22, 18, 15, 0.55) 0%, rgba(22, 18, 15, 0.2) 45%, rgba(22, 18, 15, 0) 70%);
}
.foot-in { padding-top: clamp(260px, 30vw, 440px); padding-bottom: 40px; }
.foot-title { font-size: clamp(56px, 9vw, 132px); }
.foot .hero-cta { margin-top: 40px; }
.soon {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border: 1.5px solid rgba(255, 251, 245, 0.55);
  border-radius: 999px;
  color: var(--cream);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 251, 245, 0.14);
}
.foot-bar .brand-word { font-size: 22px; }
.foot-bar .brand-mark { width: 28px; height: 28px; font-size: 17px; border-radius: 7px; }
.foot-tag { font-size: 14px; color: rgba(255, 251, 245, 0.6); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot-links a { font-size: 14px; text-decoration: none; color: rgba(255, 251, 245, 0.8); }
.foot-links a:hover { color: var(--cream); }

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .kicker,
.js .hero h1 span,
.js .hero-lead,
.js .hero .hero-cta,
.js .hero .fine { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .hero h1 span:nth-child(1) { animation-delay: 0.08s; }
.js .hero h1 span:nth-child(2) { animation-delay: 0.16s; }
.js .hero h1 span:nth-child(3) { animation-delay: 0.24s; }
.js .hero-lead { animation-delay: 0.36s; }
.js .hero .hero-cta { animation-delay: 0.44s; }
.js .hero .fine { animation-delay: 0.52s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero * { animation: none !important; }
  .film img, .pill, .film-play { transition: none; }
  .film.loading .film-status::before { animation-duration: 2.4s; }
}

/* Responsive */
@media (max-width: 960px) {
  .split-head,
  .facts { grid-template-columns: 1fr; }
  .split-head { gap: 24px; }
  .team,
  .team-flip { grid-template-columns: 1fr; gap: 28px; }
  .team-flip .film { order: 0; }
  .team-text { max-width: 560px; }
  .steps { grid-template-columns: 1fr; max-width: 520px; gap: 48px; }
}

@media (max-width: 720px) {
  .nav-links a:not(.pill) { display: none; }
  .nav-in { height: 68px; }
  .brand-word { font-size: 22px; }
  .hero-in { padding-top: 112px; padding-bottom: 64px; }
  .hero h1 { font-size: 11.6vw; }
  .foot-title { font-size: 16vw; }
  .hero-lead { margin-top: 28px; }
  .hero-cta { margin-top: 32px; gap: 20px 28px; }
  .pill { padding: 16px 24px; font-size: 16px; }
  .soon { padding: 14px 22px; font-size: 16px; }
  .pill-sm { padding: 9px 16px; font-size: 14px; }
  .film-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .film-play .ico-play { border-width: 9px 0 9px 15px; margin-left: 4px; }
  .film-xl { margin-top: 40px; }
  .film-xl .film-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .film-xl .film-play .ico-play { border-width: 11px 0 11px 18px; margin-left: 5px; }
  .film-xl .film-time { top: 12px; left: auto; right: 12px; transform: none; font-size: 13px; }
  .film-time { top: 12px; right: 12px; }
  .facts-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-links { margin-left: 0; width: 100%; }
  .foot .foot-bg,
  .foot::after {
    -webkit-mask-size: 300% 280px, 100% 100%;
    mask-size: 300% 280px, 100% 100%;
    -webkit-mask-position: 40% 0, 0 280px;
    mask-position: 40% 0, 0 280px;
  }
  .foot::before { height: 300px; }
  .foot-in { padding-top: 320px; }
  .foot .foot-bg { object-position: 30% 50%; }
}
