:root {
  color-scheme: light;
  --bg: #eeeeec;
  --paper: #fbfbf8;
  --ink: #090908;
  --muted: #5f5d58;
  --faint: #a8a49e;
  --line: rgba(9, 9, 8, 0.14);
  --line-strong: rgba(9, 9, 8, 0.28);
  --accent: #ff4b00;
  --blue: #1200ff;
  --track-x: 0px;
  --track-scale: 1;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  scroll-behavior: auto;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

html.is-compact-horizontal,
html.is-compact-horizontal body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 42%);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.progress {
  position: fixed;
  top: 40px;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
  height: 24px;
  color: var(--faint);
  transform: translateX(-50%);
}

.progress i {
  width: 1px;
  height: 21px;
  background: currentColor;
  opacity: 0.65;
}

.progress-marker {
  position: absolute;
  top: 1px;
  left: 0;
  width: 18px;
  height: 22px;
  border: 1px solid var(--ink);
  transform: translateX(var(--progress-x, 0px));
}

.viewport {
  position: fixed;
  inset: 0;
  overflow: visible;
}

.track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  transform: translate3d(var(--track-x), -50%, 0) scale(var(--track-scale));
  transform-origin: 0 50%;
  will-change: transform;
  backface-visibility: hidden;
}

.frame {
  --focus: 0;
  --local: 0;
  position: relative;
  flex: 0 0 720px;
  width: 720px;
  height: 432px;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--paper);
  isolation: isolate;
  backface-visibility: hidden;
  transition:
    border-color 120ms linear,
    box-shadow 120ms linear,
    opacity 120ms linear;
}

.frame::before {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 3;
  color: var(--muted);
  content: attr(data-label);
  font-size: 13px;
  line-height: 1;
  opacity: calc(0.3 + var(--focus) * 0.65);
}

.frame::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%);
  opacity: calc(0.2 + var(--focus) * 0.35);
}

.frame.is-active {
  border-color: rgba(9, 9, 8, 0.08);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.08);
}

.layer-slow,
.layer-mid,
.layer-fast {
  will-change: transform, opacity;
}

.layer-slow {
  transform: translate3d(calc(var(--local) * -30px), 0, 0);
}

.layer-mid {
  transform: translate3d(calc(var(--local) * 74px), 0, 0);
}

.layer-fast {
  transform: translate3d(calc(var(--local) * -136px), 0, 0);
}

.intro-frame,
.word-frame,
.product-frame,
.formula-frame,
.team-frame,
.contact-frame {
  padding: 52px;
}

.frame-copy-stack {
  position: relative;
  z-index: 4;
  width: min(560px, 82%);
  padding-top: 42px;
}

.frame-title {
  color: var(--ink);
  font-size: 102px;
  font-weight: 560;
  line-height: 0.9;
  letter-spacing: 0;
}

.intro-frame .frame-title {
  font-size: 96px;
}

.formula-frame .frame-title,
.contact-frame .frame-title {
  font-size: 84px;
  line-height: 0.94;
}

.team-frame .frame-title {
  max-width: none;
  font-size: 80px;
  line-height: 0.94;
}

.frame-subtitle {
  max-width: 430px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.frame-subtitle.wide {
  max-width: 560px;
  font-size: 16px;
}

.material {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.intro-mark {
  right: -22px;
  bottom: -34px;
  color: rgba(9, 9, 8, 0.055);
  font-size: 230px;
  font-weight: 820;
  line-height: 0.8;
}

.tool-words {
  top: 64px;
  right: -14px;
  display: grid;
  gap: 2px;
  color: rgba(9, 9, 8, 0.07);
  font-size: 70px;
  font-weight: 760;
  line-height: 0.92;
  text-align: right;
  white-space: nowrap;
}

.bullet-list,
.email,
.product-link {
  font-family: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.bullet-list {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 34px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  color: var(--muted);
}

.bullet-list.compact {
  right: 70px;
  left: auto;
  grid-template-columns: 1fr;
  width: 220px;
}

.bullet-list.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bullet-list.founders {
  grid-template-columns: 1fr;
  gap: 14px;
  right: 54px;
  bottom: 44px;
  left: auto;
  width: 355px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-transform: none;
}

.bullet-list li::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  vertical-align: 2px;
  content: "";
  background: var(--accent);
}

.bullet-list.founders li::before {
  vertical-align: 3px;
}

.bullet-list b {
  font-weight: 680;
}

.product-link {
  position: absolute;
  bottom: 82px;
  left: 52px;
  z-index: 4;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  text-transform: none;
}

.a2a-mark {
  right: -26px;
  bottom: 58px;
  color: rgba(9, 9, 8, 0.065);
  font-size: 196px;
  font-weight: 820;
  line-height: 0.82;
  letter-spacing: 0;
  white-space: nowrap;
}

.orbit-disc {
  right: -88px;
  bottom: -124px;
  width: 288px;
  height: 288px;
  border-radius: 50%;
  background: var(--accent);
}

.equation-mark {
  right: -20px;
  bottom: 82px;
  color: rgba(9, 9, 8, 0.07);
  font-family: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 124px;
  font-weight: 640;
  line-height: 0.88;
  white-space: nowrap;
}

.team-heading {
  width: min(690px, calc(100% + 74px));
  max-width: none;
}

.founder-names {
  inset: 184px 54px 36px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  color: rgba(9, 9, 8, 0.055);
  font-size: 72px;
  font-weight: 760;
  line-height: 0.86;
  white-space: nowrap;
}

.founder-names span:nth-child(2) {
  justify-self: end;
}

.founder-notes {
  position: absolute;
  top: 210px;
  right: 70px;
  bottom: 42px;
  left: 70px;
  z-index: 4;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.48;
}

.founder-notes li {
  max-width: 470px;
}

.founder-notes li:nth-child(2) {
  justify-self: end;
  max-width: 470px;
}

.founder-notes b {
  display: block;
  margin-bottom: 10px;
  font-family: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 11px;
  font-weight: 520;
  line-height: 1;
  text-transform: uppercase;
}

.contact-line {
  right: 70px;
  bottom: 82px;
  width: 170px;
  height: 1px;
  background: var(--line-strong);
}

.contact-line::before,
.contact-line::after {
  position: absolute;
  top: -9px;
  width: 1px;
  height: 20px;
  content: "";
  background: var(--line-strong);
}

.contact-line::before {
  left: 0;
}

.contact-line::after {
  right: 0;
}

.email {
  position: absolute;
  left: 52px;
  bottom: 38px;
  z-index: 4;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  text-transform: none;
}

.cursor-mark {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  width: 24px;
  height: 24px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-mark::before,
.cursor-mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: rgba(9, 9, 8, 0.78);
}

.cursor-mark::before {
  width: 1px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.cursor-mark::after {
  width: 24px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.scroll-spacer {
  height: 620vh;
}

.rotate-hint {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  pointer-events: none;
}

.rotate-hint-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(9, 9, 8, 0.58);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rotate-hint-phone {
  position: relative;
  width: 32px;
  height: 54px;
  border: 2px solid currentColor;
  border-radius: 7px;
  transform-origin: 50% 55%;
}

.rotate-hint-phone::before {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: currentColor;
  transform: translateX(-50%);
}

.rotate-hint-phone::after {
  position: absolute;
  right: -31px;
  bottom: 8px;
  width: 34px;
  height: 22px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 16px;
  content: "";
  transform: rotate(-24deg);
}

.rotate-hint-copy {
  position: absolute;
  bottom: 16px;
  left: 50%;
  font-family: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  transform: translateX(-50%);
}

html.is-compact-horizontal .stage {
  touch-action: none;
}

html.is-force-landscape .stage {
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  width: 100svh;
  height: 100svw;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: 50% 50%;
}

html.is-force-landscape .viewport,
html.is-force-landscape .progress,
html.is-force-landscape .cursor-mark {
  position: absolute;
}

html.is-force-landscape .viewport {
  inset: 0;
}

html.is-compact-horizontal .progress {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  transform: translateX(-50%) scale(0.82);
  transform-origin: 50% 0;
}

html.is-compact-horizontal .track {
  top: 53%;
}

html.is-compact-horizontal .frame {
  transition: none;
}

html.is-compact-horizontal .cursor-mark {
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(0.72);
}

html.is-compact-horizontal .scroll-spacer {
  display: none;
}

html.is-compact-horizontal .rotate-hint {
  display: grid;
  animation: rotate-hint-life 2s ease forwards;
}

@media (prefers-reduced-motion: no-preference) {
  .orbit-disc {
    animation: orbit-slide 7s ease-in-out infinite alternate;
  }

  .a2a-mark,
  .equation-mark,
  .tool-words,
  .founder-names {
    transition: opacity 140ms linear;
  }
}

@keyframes orbit-slide {
  to {
    transform: translateX(-18px);
  }
}

@keyframes rotate-hint-life {
  0%,
  76% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes rotate-hint-phone {
  0%,
  20% {
    transform: rotate(0deg);
  }

  62%,
  100% {
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.is-compact-horizontal .rotate-hint-phone {
    animation: rotate-hint-phone 1.35s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-compact-horizontal .rotate-hint {
    animation-duration: 1.4s;
  }
}
