/* FIT — brand tokens from the Catch branding manual */
:root {
  --blue: #3291ff;
  --navy: #0d3063;
  --white: #ffffff;
  --black: #000000;        /* only for the App Store badge, which people know in black */
  --navy-deep: #071d40;    /* navy pushed darker, for small text on brand blue */

  /* Shiny steel: replaces black everywhere */
  --steel-hi: #f4f6f9;
  --steel-1: #dfe4ea;
  --steel-2: #b7c1cc;
  --steel-3: #8593a3;
  --steel-4: #4f5b69;
  --steel-5: #2a333e;
  --steel-shine: linear-gradient(115deg, var(--steel-2) 0%, var(--steel-hi) 22%, var(--steel-1) 40%, var(--steel-2) 58%, var(--steel-hi) 78%, var(--steel-2) 100%);
  --steel-dark: linear-gradient(160deg, var(--steel-5) 0%, #3a4450 38%, var(--steel-4) 50%, #3a4450 62%, var(--steel-5) 100%);
  --ice: #d6e7ff;          /* light tint of brand blue, for quiet surfaces */
  --ink-soft: #3a4a66;     /* secondary text on white */
  --line: rgba(13, 48, 99, .14);

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --step-4: clamp(4rem, 2rem + 9vw, 10.5rem);

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.compete :focus-visible { outline-color: var(--blue); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Logo: traced from the brand manual, recolored via currentColor mask */
.logo {
  display: inline-block;
  aspect-ratio: 949 / 760;
  height: 30px;
  background: currentColor;
  -webkit-mask: url("assets/logo.svg") center / contain no-repeat;
          mask: url("assets/logo.svg") center / contain no-repeat;
}

/* Type */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 68%;
  line-height: .88;
  letter-spacing: 0;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-stretch: 72%;
  font-size: var(--step-3);
  line-height: .95;
  max-width: 14ch;
  text-transform: uppercase;
}
.lede { font-size: var(--step-1); max-width: 46ch; margin-top: 20px; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--steel-4); }
.btn-blue { background: var(--blue); color: var(--navy-deep); }
.btn-blue:hover { background: var(--navy); color: var(--white); }

.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); color: var(--white);
  padding: 10px 22px 10px 16px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--steel-3);
  transition: transform .15s;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: start; }
.store small { font-size: .72rem; }
.store b { font-size: 1.2rem; font-weight: 600; font-family: "Archivo", sans-serif; }

/* Nav */
.nav-wrap { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 820px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 999px;
  padding: 7px 7px 7px 22px;
  box-shadow: 0 10px 30px -12px rgba(13, 48, 99, .35);
}
.nav-logo { color: var(--blue); display: flex; padding: 4px 0; }
.nav-links { display: flex; gap: 2px; margin-inline-start: auto; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: var(--ice); }

/* Hero */
.hero {
  background: linear-gradient(var(--blue) 0 calc(100% - 170px), var(--white) calc(100% - 170px));
  padding: 150px var(--gutter) 0;
  text-align: center;
  color: var(--white);
}
.hero-copy { max-width: 980px; margin: 0 auto; }
.hero h1 { font-size: var(--step-4); }
.hero-sub { max-width: 40ch; margin: 26px auto 0; font-size: var(--step-1); color: var(--navy-deep); font-weight: 500; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.text-link { color: var(--navy-deep); font-weight: 600; text-underline-offset: 4px; }
.text-link:hover { color: var(--white); }

.stage { position: relative; max-width: 900px; height: 600px; margin: 60px auto 0; }
.phone {
  position: absolute; left: 50%; top: 0; translate: -50% 0;
  width: 290px; height: 590px; border-radius: 46px; background: var(--steel-shine);
  padding: 11px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 0 0 4px var(--steel-3), 0 40px 80px -30px rgba(13, 48, 99, .6);
}
.phone-notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: var(--navy-deep); z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 36px; background: var(--white); overflow: hidden; color: var(--navy); text-align: start; }
.screen .app-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen-head { background: var(--navy); color: var(--white); padding: 58px 18px 16px; display: flex; align-items: center; justify-content: space-between; }
.screen-title { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 75%; font-size: 1.5rem; }
.pill-mini { font-size: .75rem; background: var(--blue); color: var(--navy-deep); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.screen-tabbar { position: absolute; inset: auto 0 0; height: 64px; display: flex; align-items: center; justify-content: space-around; border-top: 1px solid var(--line); background: var(--white); }
.screen-tabbar span { width: 26px; height: 6px; border-radius: 4px; background: var(--ice); }
.screen-tabbar .plus { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; font-size: 1.6rem; line-height: 1; translate: 0 -10px; }

/* Leaderboard rows (phone + main board) */
.board { padding: 10px 12px; display: grid; gap: 6px; position: relative; }
.row {
  display: grid; grid-template-columns: 20px 34px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 14px; background: var(--white);
}
.row.me { background: var(--ice); }
.row .rank { font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.row .who { min-width: 0; }
.row .who b { display: block; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .bar { display: block; height: 5px; border-radius: 4px; background: var(--ice); margin-top: 5px; overflow: hidden; }
.row.me .bar { background: var(--white); }
.row .bar i { display: block; height: 100%; width: var(--p); background: var(--blue); border-radius: inherit; transition: width .5s ease; }
.row .val { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--white); flex: none; }
.a1 { background: var(--navy); } .a2 { background: var(--blue); color: var(--navy-deep); } .a3 { background: #5f8fd6; } .a4 { background: var(--steel-shine); color: var(--navy-deep); } .a5 { background: #8db8ff; color: var(--navy-deep); }

/* Floating cards around the phone */
.float {
  position: absolute; background: var(--white); color: var(--navy); border-radius: 20px;
  padding: 14px 16px; box-shadow: 0 24px 50px -24px rgba(13, 48, 99, .55);
  display: flex; align-items: center; gap: 12px; text-align: start;
}
.float small { display: block; font-size: .8rem; color: var(--ink-soft); }
.float b { font-weight: 600; }
.f-label { font-size: .8rem; color: var(--ink-soft); }
.f-strain { left: 2%; top: 70px; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; background: var(--navy); color: var(--white); }
.f-strain .f-label { color: var(--ice); }
.f-big { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 70%; font-style: italic; font-size: 3rem; line-height: 1; }
.f-big small { font-size: 1.4rem; display: inline; color: inherit; }
.ring { position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; }
.ring circle { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 5; }
.ring .val { stroke: var(--blue); stroke-dasharray: 79 100; transform: rotate(-90deg); transform-origin: center; stroke-linecap: round; }
.f-strain { min-width: 170px; }
.f-client { right: 0; top: 120px; max-width: 260px; }
.f-order { left: 6%; bottom: 120px; flex-direction: column; align-items: flex-start; gap: 2px; border-inline-start: 5px solid var(--blue); }
.f-follow { right: 5%; bottom: 190px; }
.stack { display: flex; }
.stack .avatar { width: 28px; height: 28px; font-size: .7rem; border: 2px solid var(--white); }
.stack .avatar + .avatar { margin-inline-start: -10px; }

/* Mission */
.mission { padding: 120px 0 40px; }
.mission-text {
  margin-top: 36px; max-width: 30ch;
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem); line-height: 1.18; font-weight: 600;
  letter-spacing: -.01em; color: var(--navy);
}
/* Words light up from steel to navy as the section scrolls by (see main.js) */
.mission-text .w { color: var(--steel-2); transition: color .35s ease; }
.mission-text .w.lit { color: var(--navy); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 72px; }
.pillars li { padding-top: 22px; border-top: 3px solid var(--steel-2); }
.pillars h3 { font-size: var(--step-1); font-weight: 700; }
.pillars p { margin-top: 6px; color: var(--ink-soft); max-width: 34ch; }

/* Explore */
.explore { padding: 110px 0 110px; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.cats li { border-top: 3px solid var(--blue); padding-top: 22px; }
.cats svg { width: 52px; height: 52px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.cats h3 { font-size: var(--step-1); font-weight: 700; }
.cats p { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; }

/* Compete (dark steel) */
.compete { background: var(--steel-dark); color: var(--white); padding: 120px 0; }
.compete .lede { color: #c4d3ea; }
.compete-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ticks { margin-top: 32px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-inline-start: 34px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .25em; width: 20px; height: 20px;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.5 4.5L17 5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10.5l4.5 4.5L17 5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.board-card { background: var(--navy); border-radius: 28px; padding: 18px; }
.board-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.board-tabs button {
  flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ice);
  font: 600 .95rem/1 var(--body); cursor: pointer; padding: 0 12px;
}
.board-tabs button[aria-selected="true"] { background: var(--blue); color: var(--navy-deep); }
.board-tabs button:hover:not([aria-selected="true"]) { color: var(--white); background: rgba(255,255,255,.08); }
.board-lg { padding: 14px 0 4px; gap: 8px; }
.board-lg .row { background: rgba(255,255,255,.06); color: var(--white); padding: 12px 14px; }
.board-lg .row.me { background: var(--white); color: var(--navy); }
.board-lg .avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.board-lg .row .bar { background: rgba(255,255,255,.12); }
.board-lg .row.me .bar { background: var(--ice); }
.board-note { font-size: .82rem; color: #9fb3d6; margin-top: 10px; padding-inline-start: 4px; }

/* Trainers (navy) */
.trainers { background: var(--navy); color: var(--white); padding: 120px 0; }
.trainers .lede { color: #c4d3ea; }
.trainers-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.coach-panel { background: var(--white); color: var(--navy); border-radius: 28px; padding: 24px; }
.coach-head { display: flex; align-items: baseline; justify-content: space-between; }
.coach-count { font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 70%; font-style: italic; font-size: 3.2rem; line-height: 1; }
.coach-count small { font-size: 1.4rem; color: var(--ink-soft); }
.cap { height: 8px; border-radius: 6px; background: var(--ice); margin: 14px 0 18px; overflow: hidden; }
.cap span { display: block; width: var(--w); height: 100%; background: var(--blue); border-radius: inherit; }
.coach-list { display: grid; gap: 4px; }
.coach-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.coach-list b { display: block; font-weight: 600; }
.coach-list small { color: var(--ink-soft); font-size: .85rem; }
.tag { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--ice); color: var(--navy); }
.tag.due { background: var(--blue); color: var(--navy-deep); }
.feats { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.feats dt { font-weight: 700; font-size: 1.1rem; }
.feats dd { color: #c4d3ea; margin-top: 4px; font-size: .98rem; }

/* Steps */
.start { padding: 120px 0; background: var(--ice); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; counter-reset: none; }
.steps li { position: relative; }
.num { font-family: "Archivo", sans-serif; font-style: italic; font-weight: 900; font-stretch: 62%; font-size: 7rem; line-height: .8; color: var(--blue); display: block; margin-bottom: 14px; }
.steps h3 { font-size: var(--step-1); font-weight: 700; }
.steps p { margin-top: 6px; color: var(--ink-soft); max-width: 32ch; }

/* Download (blue) */
.download { background: var(--blue); color: var(--white); padding: 120px 0 130px; text-align: center; overflow: hidden; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.logo-xl { height: clamp(150px, 26vw, 300px); color: var(--white); }
.download-line { font-size: var(--step-3); color: var(--navy); margin-top: 28px; }

/* Contact */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ig-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  background: var(--ice); padding: 32px; border-radius: 28px; text-decoration: none;
}
.ig-card svg { width: 52px; height: 52px; fill: none; stroke: var(--blue); stroke-width: 2; }
.ig-card .dot { fill: var(--blue); stroke: none; }
.ig-handle { font-family: "Archivo", sans-serif; font-style: italic; font-weight: 800; font-stretch: 70%; font-size: var(--step-3); line-height: 1; direction: ltr; }
.ig-card .btn { min-height: 50px; padding: 0 28px; }
.ig-card:hover .btn { background: var(--steel-4); }

/* Footer */
.footer { background: var(--steel-shine); color: var(--navy); padding: 40px 0; border-top: 1px solid rgba(255,255,255,.8); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo-sm { height: 34px; color: var(--navy); }
.footer p { color: var(--steel-5); }
.footer nav { display: flex; gap: 20px; margin-inline-start: auto; }
.footer nav a { text-underline-offset: 4px; }
.footer nav { flex-wrap: wrap; }
.footer .footer-legal { width: 100%; margin-inline-start: 0; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; }
.footer .copy { width: 100%; font-size: .85rem; color: var(--steel-4); }

/* Load moment: the hero leaderboard settles into place (see main.js) */
.row.enter { opacity: 0; translate: 0 12px; }
.row { transition: translate .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease; }

/* Scrolling text bands */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: "Archivo", sans-serif; font-style: italic; font-weight: 900; font-stretch: 68%;
  text-transform: uppercase; line-height: 1; padding: 0 .45em;
}
.marquee-steel {
  background: var(--steel-shine); color: var(--navy);
  border-block: 1px solid rgba(255,255,255,.85); padding: 18px 0;
  box-shadow: inset 0 -1px 0 var(--steel-2);
}
.marquee-steel span { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); padding: 0 .55em; }
.marquee-steel span:nth-child(2n) { color: var(--blue); }
.marquee-big { margin: 36px 0 44px; }
.marquee-big .marquee-track { animation-duration: 22s; animation-direction: reverse; }
.marquee-big span {
  font-size: clamp(5rem, 2rem + 12vw, 12rem); padding: 0 .35em;
  color: transparent; -webkit-text-stroke: 2px var(--white);
}
.marquee-big span:nth-child(2n) { color: var(--white); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Responsive */
@media (max-width: 980px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .compete-grid, .trainers-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .trainers-grid .coach-panel { order: 2; }
  .f-follow, .f-order { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-inline-start: auto; }
  .hero { padding-top: 120px; background: linear-gradient(var(--blue) 0 calc(100% - 120px), var(--white) calc(100% - 120px)); }
  .stage { height: 520px; }
  .phone { width: 250px; height: 510px; border-radius: 40px; }
  .screen { border-radius: 30px; }
  .f-strain { left: -4px; top: 40px; min-width: 0; padding: 12px 14px; }
  .f-big { font-size: 2.2rem; }
  .ring { display: none; }
  .f-client { right: -4px; top: auto; bottom: 150px; max-width: 200px; padding: 10px 12px; }
  .f-client .avatar { display: none; }
  .cats, .steps, .feats, .pillars { grid-template-columns: 1fr; }
  .mission { padding: 84px 0 20px; }
  .explore, .compete, .trainers, .start, .download, .contact { padding: 84px 0; }
  .num { font-size: 5rem; }
  .ig-card { padding: 24px; }
  .footer nav { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .marquee { white-space: normal; }
}

/* A row flashes when its number goes up */
.row.bump .val { animation: bump .8s ease; }
@keyframes bump { 0% { color: var(--blue); transform: scale(1.25); } 100% { transform: none; } }
.row .val { display: inline-block; }

/* ---------- Opening scene: a phone, a tap on FIT, and into the site ---------- */
body.intro-on { overflow: hidden; }
/* Hide the page for the first paint, until the scene is in place */
body.intro-pending > :not(script) { visibility: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, #0a1a33 0%, var(--black) 62%);
}
.intro-stage { position: relative; z-index: 1; width: min(1080px, 94vw); height: min(640px, 84svh); }
.intro-words { position: absolute; inset: 50% 0 auto; translate: 0 -50%; white-space: nowrap; pointer-events: none; }
.intro-words .marquee-track { animation-duration: 36s; }
.intro-words span {
  font-family: "Archivo", sans-serif; font-style: italic; font-weight: 900; font-stretch: 68%;
  text-transform: uppercase; line-height: 1; padding: 0 .3em;
  font-size: clamp(6rem, 3rem + 14vw, 15rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16);
}
.intro-words span:nth-child(2n) { -webkit-text-stroke-color: rgba(50, 145, 255, .35); }
.intro-words span { -webkit-text-stroke-color: rgba(255, 255, 255, .1); }

.intro-phone {
  position: absolute; z-index: 2; right: 4%; bottom: 0;
  height: 86%; aspect-ratio: 290 / 590;
  padding: 11px; border-radius: 46px;
  background: var(--steel-shine);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 0 0 4px var(--steel-3), 0 50px 90px -30px rgba(7, 29, 64, .9);
  animation: intro-rise .8s .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes intro-rise { from { opacity: 0; transform: translateY(70px) scale(.92); } }

.intro-screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(circle at 18% 12%, rgba(141, 184, 255, .9) 0, transparent 42%),
    radial-gradient(circle at 90% 85%, var(--navy) 0, transparent 55%),
    linear-gradient(160deg, #2d7ce8, var(--navy));
  color: var(--white);
}
.hs-status { display: flex; align-items: center; justify-content: space-between; padding: 5.5cqw 9cqw 0; font: 600 4.6cqw/1 "Archivo", sans-serif; }
.hs-island { width: 30cqw; height: 9cqw; border-radius: 99px; background: var(--navy-deep); }
.hs-bat { width: 8.5cqw; height: 4.2cqw; border-radius: 1.4cqw; border: 1.5px solid rgba(255,255,255,.9); background: linear-gradient(90deg, var(--white) 70%, transparent 70%) content-box; padding: 1px; }
.hs-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 6cqw; padding: 13cqw 5cqw 0; justify-items: center; }
.hs-app { display: flex; flex-direction: column; align-items: center; gap: 2.2cqw; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.hs-app, .hs-dock .hs-icon { animation: pop .45s cubic-bezier(.2,.9,.3,1.3) both; animation-delay: var(--d, 0ms); }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.hs-icon {
  display: grid; place-items: center;
  width: 16cqw; aspect-ratio: 1; border-radius: 24%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 10px -4px rgba(7,29,64,.5);
}
.hs-name { display: block; width: 10cqw; height: 1.6cqw; border-radius: 4px; background: rgba(255,255,255,.45); }
.t0 { background: var(--steel-shine); }
.t1 { background: linear-gradient(160deg, var(--ice), #a9c9f7); }
.t2 { background: linear-gradient(160deg, #7aa6e6, #4c7cc4); }
.t3 { background: linear-gradient(160deg, var(--steel-3), var(--steel-4)); }
.t4 { background: linear-gradient(160deg, #b3d1ff, #6f9fe8); }
.t5 { background: linear-gradient(160deg, #24508f, var(--navy)); }
.hs-fit { cursor: pointer; }
.hs-fit .hs-icon { background: linear-gradient(170deg, #5aa3ff, #2f78e8); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 0 rgba(255,255,255,.7), 0 6px 14px -4px rgba(7,29,64,.6); animation: glow 1.6s ease-out 1.4s 2; }
.hs-fit .logo { height: 46%; color: var(--white); }
.hs-fit .hs-name { width: auto; height: auto; background: none; font: 600 3.6cqw/1 "Archivo", sans-serif; }
@keyframes glow { to { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 4cqw rgba(255,255,255,0), 0 6px 14px -4px rgba(7,29,64,.6); } }
.hs-dock {
  position: absolute; inset: auto 4cqw 4cqw; padding: 3.5cqw;
  display: flex; justify-content: space-around; border-radius: 9cqw;
  background: rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.finger {
  position: absolute; left: 0; top: 0; z-index: 4; opacity: 0; pointer-events: none;
  width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw; border-radius: 50%;
  background: rgba(255,255,255,.5); border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(7,29,64,.35);
}
.launch { position: absolute; z-index: 3; display: grid; place-items: center; background: var(--blue); overflow: hidden; }
.launch .logo { height: 17cqw; color: var(--white); opacity: 0; }

.intro-caption {
  position: absolute; inset: auto 0 3.5svh; z-index: 1; text-align: center; color: var(--white);
  font-family: "Archivo", sans-serif; font-style: italic; font-weight: 900; font-stretch: 70%;
  text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); line-height: 1;
  animation: intro-rise .8s 1.4s cubic-bezier(.2,.8,.2,1) both;
}
.intro-skip {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2;
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.35);
  font: 600 .95rem/1 var(--body);
}
.intro-skip:hover { background: rgba(255,255,255,.22); }
.intro :focus-visible { outline-color: var(--blue); }
.intro-out .intro-words, .intro-out .intro-caption, .intro-out .intro-skip { transition: opacity .3s; opacity: 0; }

/* MacBook: the lid swings open, then the display plays a fit logo show */
.mac { position: absolute; left: 0; bottom: 6%; width: 70%; perspective: 1600px; animation: intro-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.mac-lid {
  position: relative; aspect-ratio: 16 / 10.3; padding: 2.2% 2.2% 3%;
  border-radius: 18px 18px 6px 6px; background: var(--black);
  box-shadow: inset 0 0 0 1.5px #3a434e, 0 0 0 1px #1c232c, 0 30px 80px -20px rgba(50, 145, 255, .35);
  transform-origin: 50% 100%;
  animation: lid-open 1.3s .25s cubic-bezier(.3,.6,.2,1) both;
}
@keyframes lid-open {
  from { transform: rotateX(-88deg); }
  70% { transform: rotateX(4deg); }
  to { transform: rotateX(0); }
}
.mac-cam { position: absolute; top: 1%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1c2a3a; }
.mac-display { position: relative; height: 100%; border-radius: 6px; overflow: hidden; background: var(--black); container-type: inline-size; }
.mac-wall {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, #6fb0ff 0, transparent 45%), radial-gradient(circle at 80% 90%, var(--navy) 0, transparent 60%), var(--blue);
  clip-path: circle(0% at 50% 50%);
  animation: wall-in .9s 1.3s cubic-bezier(.6,0,.2,1) forwards;
}
@keyframes wall-in { to { clip-path: circle(75% at 50% 50%); } }
.mac-logo {
  position: absolute; left: 50%; top: 44%; height: 30cqw; translate: -50% -50%;
  color: var(--white); opacity: 0;
  animation: logo-slam .7s 1.9s cubic-bezier(.2,.9,.25,1.2) forwards, logo-float 3s 2.8s ease-in-out infinite;
}
@keyframes logo-slam {
  from { opacity: 0; transform: translateX(-60cqw) skewX(-25deg) scaleX(1.4); filter: blur(6px); }
  60% { opacity: 1; transform: translateX(3cqw) skewX(8deg) scaleX(.95); filter: blur(0); }
  to { opacity: 1; transform: none; }
}
@keyframes logo-float { 50% { transform: translateY(-1.2cqw); } }
.mac-streak {
  position: absolute; left: 0; height: 1.6cqw; border-radius: 99px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9));
  animation: streak .8s cubic-bezier(.2,.8,.2,1) forwards;
}
.s1 { top: 36%; width: 34cqw; animation-delay: 1.85s; }
.s2 { top: 45%; width: 24cqw; animation-delay: 1.95s; }
.s3 { top: 54%; width: 30cqw; animation-delay: 2.05s; }
@keyframes streak {
  from { opacity: 0; transform: translateX(-40cqw); }
  40% { opacity: 1; }
  to { opacity: 0; transform: translateX(30cqw); }
}
.mac-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: shine 2.4s 2.6s ease-in-out infinite;
}
@keyframes shine { 0%, 30% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
.mac-tag {
  position: absolute; inset: auto 0 15%; text-align: center; color: var(--white);
  font-family: "Archivo", sans-serif; font-style: italic; font-weight: 900; font-stretch: 70%;
  text-transform: uppercase; font-size: 5cqw; line-height: 1;
}
.mac-tag span { display: inline-block; opacity: 0; animation: tag-in .5s cubic-bezier(.2,.8,.2,1) forwards; }
.mac-tag span:first-child { animation-delay: 2.45s; }
.mac-tag span:last-child { animation-delay: 2.7s; color: var(--navy); }
@keyframes tag-in { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
.mac-base {
  position: relative; height: 0; padding-bottom: 3.4%; margin: 0 -6%;
  border-radius: 2px 2px 14px 14px / 2px 2px 100% 100%;
  background: var(--steel-shine);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 30px -10px rgba(0,0,0,.8);
}
.mac-base span { position: absolute; top: 0; left: 50%; width: 16%; height: 40%; translate: -50% 0; border-radius: 0 0 8px 8px; background: var(--steel-3); }

/* Replay: runs the opening scene again */
.replay {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--steel-shine); color: var(--navy); border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 10px 24px -10px rgba(7, 29, 64, .55);
  font: 600 .9rem/1 var(--body);
}
.replay svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.replay:hover svg { transform: rotate(-200deg); transition: transform .5s ease; }
.replay[hidden] { display: none; }
body.intro-on .replay { display: none; }

@media (max-width: 720px) {
  .intro-stage { height: min(700px, 80svh); }
  .mac { width: 100%; left: 0; top: 4%; bottom: auto; }
  .intro-phone { height: 64%; right: 2%; }
  .intro-caption { bottom: 2.5svh; }
}

/* The page arrives right after the scene: headline first, then the rest */
.hero-in .hero h1 { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-in .hero-sub { animation: rise .8s .12s cubic-bezier(.2,.8,.2,1) both; }
.hero-in .hero-actions { animation: rise .8s .22s cubic-bezier(.2,.8,.2,1) both; }
.hero-in .stage { animation: rise 1s .3s cubic-bezier(.2,.8,.2,1) both; }
.hero-in .nav { animation: rise .7s .1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(46px); } }
