/* The installed Text face has slightly wider advances than Figma's SF Pro variable face. */
@font-face {
  font-family: "Chapter SF Pro";
  src: local("SFProText-Regular");
  font-weight: 400;
  size-adjust: 99.5%;
}
:root {
  color-scheme: dark;
  --ink: #f4f4f1;
  --secondary: rgb(244 244 241 / 60%);
  --surface: #111;
  --rule: rgb(255 255 255 / 10%);
  --system-type: "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --system-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display-type: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(32px, 5vw, 80px);
}
* { box-sizing: border-box; }
html {
  background: #000;
  color: var(--ink);
  font-family: var(--system-type);
  -webkit-text-size-adjust: 100%;
}
body { margin: 0; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
:where(a, summary):focus-visible { outline: 2px solid #00ffff; outline-offset: 4px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 3; top: 12px; left: 12px; padding: 12px; background: var(--ink); color: #000; }

.hero {
  display: grid;
  grid-template-areas: "hero";
  justify-items: center;
  align-items: start;
  padding: clamp(96px, 7.32vw, 120px) 0 clamp(48px, 3.42vw, 56px);
  text-align: center;
  font-family: var(--display-type);
}
.hero-copy, .hero-art { grid-area: hero; }
.hero-copy { z-index: 1; width: min(385px, calc(100% - 64px)); }
.hero h1, .install h2 { font-size: 64px; line-height: 70px; font-weight: 700; }
.tagline { margin-top: 16px; color: var(--secondary); font-size: 24px; line-height: 32px; font-weight: 500; }
.hero-art { position: relative; width: min(100%, 1024px); }
.hero-watch { width: 100%; height: auto; }
.hero-orbit {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2;
  transform-origin: top left;
  pointer-events: none;
}
.hero-turn { display: block; width: 100%; height: 100%; }
.turn-intro .hero-copy { z-index: 3; }
.turn-moving .hero-watch { opacity: 0; }
.turn-intro .is-pinned .watch,
.turn-intro .is-pinned .chapter-copy,
.turn-intro .is-pinned .chapters-nav { visibility: hidden; }
.suunto-badge, .download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-weight: 400;
  line-height: 1.32;
}
.suunto-badge { margin-top: 32px; border: 1px solid var(--rule); padding: 8px 12px 8px 8px; min-width: 149px; font-size: 14px; line-height: 20px; color: rgb(244 244 241 / 80%); }
.suunto-badge img, .download img { width: 28px; height: 28px; border-radius: 6px; }

.story { --art: min(720px, 75svh, 100vw); }
.chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(560px, 100svh, 960px);
  padding-bottom: 24px;
  text-align: center;
}
.watch { width: var(--art); height: auto; }
.chapter-copy {
  width: min(532px, calc(100% - 64px));
  margin: max(-14px, -1.4583svh) auto 0;
  font-family: "Chapter SF Pro", var(--system-type);
  font-size: 18px;
  line-height: 28px;
  color: var(--secondary);
}
.chapter-copy h2 {
  margin-bottom: 6px;
  font: 500 20px/28px var(--system-type);
  color: white;
}
.chapters-nav {
  display: grid;
  grid-template-columns: 104fr 108fr 128fr 128fr;
  gap: 4px;
  width: min(488px, calc(100% - 48px));
  padding: 4px;
  border-radius: 28px;
  margin-top: auto;
  background: var(--surface);
  font: 500 14px/20px var(--display-type);
  letter-spacing: .02em;
}
.chapters-nav a {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #c5c6c5;
  border-radius: 24px;
}
.chapters-nav a:hover { background: #262626; color: white; }
.chapters-nav a[aria-current] { color: #061115; background: #fff; }
.chapters-nav a:focus-visible { outline-offset: -3px; }
.story:not(.is-pinned) .chapters-nav { position: sticky; top: 8px; z-index: 2; margin-inline: auto; }

/* The anchors provide scroll distance. A single sticky stage paints every state. */
.story.is-pinned {
  --step: clamp(320px, 76svh, 800px);
  --art: min(720px, 75svh, max(80px, calc(100svh - 200px)));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.story-stage, .story-track { grid-area: 1 / 1; }
.story-track { pointer-events: none; }
.story-step { display: block; height: var(--step); }
.story-step:last-child { height: calc(100svh + var(--step) / 2); }
.is-pinned .story-stage {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  height: 100svh;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  row-gap: 12px;
  background: #000;
}
.is-pinned .story-panels {
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  isolation: isolate;
}
.is-pinned .chapter {
  grid-area: 1 / 1;
  min-height: 0;
  padding: 0;
}
.is-pinned .watch { width: var(--art); flex: none; opacity: 0; mix-blend-mode: plus-lighter; }
.is-pinned .chapter-copy { opacity: 0; }
.is-pinned .is-active :is(.watch, .chapter-copy) { opacity: 1; }
.is-pinned .has-live-face .chapter .watch { opacity: 0; transition: none; }
.live-device {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: center;
  position: relative;
  width: var(--art);
  aspect-ratio: 1;
  pointer-events: none;
  mix-blend-mode: plus-lighter;
}
.live-device[hidden] { display: none; }
.live-device > img { width: 100%; height: 100%; }
.live-device.hero-device {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: normal;
}
.hero-device > img { display: none; }
.hero-device .live-screen { mix-blend-mode: normal; }
/* Projected artwork bounds from the straight-on Blender camera. Add the emissive
   screen to the blank plate so its original glass reflections remain visible. */
.live-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: plus-lighter;
}
.live-screen .label-alerts, .live-screen .label-overdue { display: none; }
.live-device[data-chapter="alerts"] .label-timer,
.live-device:is([data-chapter="overdue"], [data-chapter="settings"]) .label-timer { display: none; }
.live-device[data-chapter="alerts"] .label-alerts,
.live-device:is([data-chapter="overdue"], [data-chapter="settings"]) .label-overdue { display: inline; }
.live-device[data-chapter="alerts"] :is(.dial-progress, .dial-track, .confirm-tab) { stroke: #ff0; }
.live-device:is([data-chapter="overdue"], [data-chapter="settings"]) .dial-track { stroke: #550000; }
.live-device:is([data-chapter="overdue"], [data-chapter="settings"]) :is(.dial-progress, .confirm-tab) { stroke: #ff5500; }
.live-device:not([data-chapter="timer"]) .confirm-mark { stroke: black; }
.live-screen .menu-face,
.live-device[data-chapter="settings"] .dial-face { display: none; }
.live-device[data-chapter="settings"] .menu-face { display: inline; }
.turn-intro .is-pinned .chapter-copy,
.turn-intro .is-pinned .chapters-nav { opacity: 0; }
.is-pinned .chapters-nav { position: relative; grid-row: 2; margin: 0; isolation: isolate; }
.is-pinned .chapters-nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px auto 4px 0;
  width: var(--pill-width);
  transform: translateX(var(--pill-left));
  border-radius: 24px;
  background: #fff;
}
.is-pinned .chapters-nav a[aria-selected="true"] { background: transparent; color: #061115; }
@media (prefers-reduced-motion: no-preference) {
  .is-animated .watch { transition: opacity 360ms linear; }
  .is-animated .chapter-copy { transition: opacity 110ms ease-out; }
  .is-animated .chapters-nav { transition: opacity 220ms ease-out; }
  .is-animated .is-active .chapter-copy { transition: opacity 200ms ease-in 110ms; }
  .is-animated .chapters-nav::before { transition: transform 300ms ease, width 300ms ease; }
  .is-animated .chapters-nav a { transition: color 240ms ease; }
  .is-animated.menu-cut .chapter :is(.watch, .chapter-copy),
  .is-animated.menu-cut .chapters-nav a,
  .is-animated.menu-cut .chapters-nav::before { transition: none; }
}

.faq, .install { width: min(1000px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.faq { padding-block: clamp(120px, 14.635vw, 240px) 60px; }
.faq h2 { font-family: var(--system-heading); font-size: 32px; line-height: 40px; font-weight: 600; }
.faq-list { margin-top: 48px; border-top: 1px solid var(--rule); }
.faq details {
  position: relative;
  padding-block: 48px;
  box-shadow: inset 0 -1px var(--rule);
  font-size: 18px;
  line-height: 28px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-block: -48px;
  padding-block: 48px;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary img { flex: none; }
.faq details[open] summary img { transform: rotate(180deg); }
.faq details[open] summary { margin-bottom: 0; padding-bottom: 0; }
.faq details p { margin-top: 16px; color: #a8a8a8; }

.install { padding-block: 120px 200px; text-align: center; font-family: var(--display-type); }
.install p { margin-top: 12px; text-wrap: balance; font-size: 20px; line-height: 26px; color: var(--secondary); font-weight: 500; }
.download { margin-top: 32px; padding: 8px 12px 8px 16px; min-width: 217px; background: var(--surface); color: rgb(255 255 255 / 64%); font-size: 14px; }
.download:hover { background: #222; color: #fff; }
.small-break { display: none; }

@media (max-width: 799px) {
  :root { --display-type: var(--system-type); --gutter: 32px; }
  .hero { display: flex; flex-direction: column; align-items: center; padding: 64px 0 32px; gap: 12px; }
  .hero-copy { width: min(480px, calc(100% - 64px)); }
  .hero h1, .install h2 { font-family: var(--system-heading); }
  .hero h1 { font-size: 48px; line-height: 54px; }
  .tagline { font-size: 18px; line-height: 26px; }
  .suunto-badge { margin-top: 24px; min-width: 153px; }
  .hero-art { width: min(100%, 540px); }
  .chapter { min-height: 0; padding: 16px 24px 56px; gap: 24px; }
  .watch { width: min(100%, 480px); }
  .chapter-copy { width: min(480px, calc(100% - 16px)); margin: 0; font-size: 14px; line-height: 22px; }
  .chapter-copy h2 { margin-bottom: 4px; font-size: 16px; line-height: 24px; }
  .chapters-nav { width: min(100%, 480px); grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 0; padding: 2px 4px; }
  .chapters-nav a { min-height: 44px; }
  .story.is-pinned { --art: min(480px, calc(100vw - 48px), 65svh, max(80px, calc(100svh - 234px))); }
  .is-pinned .story-stage { padding: 12px 24px max(16px, env(safe-area-inset-bottom)); }
  .is-pinned .story-panels { align-self: center; }
  .is-pinned .chapters-nav::before { inset-block: 2px; }
  .wide-break { display: none; }
  .faq { padding-block: 64px 32px; }
  .faq h2 { font-size: 28px; line-height: 36px; }
  .faq-list { margin-top: 24px; }
  .faq details { padding-block: 40px; font-size: 16px; line-height: 24px; }
  .faq summary { margin-block: -40px; padding-block: 40px; }
  .install { padding-block: 64px 80px; }
  .install h2 { font-size: 40px; line-height: 46px; }
  .install p { font-size: 14px; line-height: 22px; }
  .small-break { display: initial; }
  .download { margin-top: 24px; min-width: 224px; }
}
