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

main { padding-bottom: 0; }

/* The header floats over the hero. */
.home .site-head { margin-bottom: -3.8rem; }

.status {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 450;
  letter-spacing: 0.03em;
  text-transform: none;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.art-note {
  margin: 0.8rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--faint);
}

/* Hero */
.hero-stage {
  position: relative;
  min-height: max(100svh, 40rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.stage-media {
  --pos: 56%;
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-after,
.hero-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 13, 0.72) 0%, rgba(8, 8, 13, 0.42) 40%, rgba(8, 8, 13, 0) 68%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 13, 0.35) 24%, rgba(8, 8, 13, 0) 44%);
}

.beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--amber);
  box-shadow: 0 0 22px 3px rgba(255, 186, 96, 0.65);
}

.beam-tag {
  position: absolute;
  top: 5.25rem;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  color: var(--text);
  background: rgba(8, 8, 13, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.beam-tag-in { right: 0.75rem; color: var(--muted); }
.beam-tag-out { left: 0.75rem; color: var(--amber); }

.hero-copy {
  width: 100%;
  padding-top: 7rem;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.equation {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  column-gap: 0.28em;
  row-gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 0 clamp(1.2rem, 3vh, 2rem);
  font-size: clamp(3.1rem, min(10.2vw, 15.5vh), 9.25rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.eq-from { color: rgba(246, 243, 236, 0.62); }

.eq-arrow {
  align-self: center;
  width: 0.86em;
  height: 0.54em;
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
}

.eq-to { color: var(--text); }

.hero-lede {
  max-width: 31em;
  margin: 0;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--text);
}

.hero-actions { margin: 1.5rem 0 0; }

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }

.hero-note {
  position: absolute;
  right: var(--gutter);
  bottom: 1rem;
  margin: 0;
  max-width: 14rem;
  text-align: right;
}

.platforms {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.platform-server:first-of-type,
.platform-row .platform-server { color: var(--faint); }

/* Chapters */
.chapter { padding: clamp(4rem, 10vw, 8rem) 0 0; }

.chapter-head {
  max-width: 54rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.chapter-head-tight { margin-bottom: 2rem; }

.chapter h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.chapter-head-tight h2,
#how h2,
.chapter-get h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }

.chapter-lede {
  margin: 0;
  max-width: 39em;
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--muted);
}

.chapter h3 {
  margin: 0 0 0.45rem;
  font-size: 1.0625rem;
  font-weight: 580;
  letter-spacing: -0.012em;
}

/* Depth demo */
.depth-demo { margin: 0; }

.depth-frame {
  position: relative;
  aspect-ratio: 1920 / 818;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 26px);
  background: #15101a;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -40px rgba(240, 124, 60, 0.3);
}

.depth-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}

.depth-frame[data-view="flat"] .d-source,
.depth-frame[data-view="depth"] .d-depth,
.depth-frame[data-view="3d"] .d-eye.is-on { opacity: 1; }

.d-tag {
  position: absolute;
  top: clamp(0.5rem, 1.5vw, 1rem);
  left: clamp(0.5rem, 1.5vw, 1rem);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: clamp(0.6875rem, 1vw, 0.8125rem);
  color: var(--text);
  background: rgba(8, 8, 13, 0.62);
}

.d-tag:empty { display: none; }

.depth-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.75rem;
  align-items: center;
  margin-top: 1rem;
}

.depth-controls[hidden] { display: none; }

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px var(--line);
}

.segmented button {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 2.25rem;
  padding: 0.3rem 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.segmented button:hover { color: var(--text); }

.segmented button[aria-pressed="true"] {
  color: #1d1305;
  background: var(--amber);
}

.strength {
  display: inline-flex;
  flex: 1 1 16rem;
  max-width: 26rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9375rem;
  color: var(--muted);
  white-space: nowrap;
}

.strength input { flex: 1; min-width: 0; accent-color: var(--amber); }

.strength output {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  min-width: 2.6em;
  text-align: right;
}

/* The three steps */
.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pipeline li {
  margin: 0;
  padding: 1.5rem 2rem 0 0;
  counter-increment: step;
}

.pipeline li + li {
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.pipeline p,
.feature-grid p,
.tv-small dd,
.specs dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
  line-height: 1.5;
}

/* Vision Pro details */
.vision-more {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

.shot { margin: 0; }

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.6vw, 20px);
  box-shadow: 0 0 0 1px var(--line);
}

.list-title { margin-bottom: 1rem !important; }

.specs { margin: 0; }

.specs > div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.specs dt {
  font-weight: 560;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.plan-line {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
  font-size: 0.9875rem;
  line-height: 1.5;
  color: var(--muted);
}

.plan-line strong { color: var(--text); font-weight: 560; }

/* TV */
.tv-demo { margin: 0; }

.tv-tabs { margin-bottom: 1rem; }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 26px);
  background: #101014;
  box-shadow: 0 0 0 1px var(--line), 0 50px 140px -50px rgba(255, 180, 90, 0.28);
  cursor: ew-resize;
}

.compare-hdr { aspect-ratio: 2560 / 1091; }

.compare[hidden],
.art-note[hidden] { display: none; }

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare:has(.compare-range:focus-visible) .compare-line span {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--amber);
  box-shadow: 0 0 18px 2px rgba(255, 180, 90, 0.65);
  pointer-events: none;
}

.compare-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.6rem;
  height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.compare-line span::before,
.compare-line span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border: solid #1d1305;
  border-width: 2px 0 0 2px;
}

.compare-line span::before { left: 0.62rem; transform: translateY(-50%) rotate(-45deg); }
.compare-line span::after { right: 0.62rem; transform: translateY(-50%) rotate(135deg); }

.compare-tag {
  position: absolute;
  top: clamp(0.5rem, 1.5vw, 1rem);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: clamp(0.6875rem, 1vw, 0.8125rem);
  background: rgba(8, 8, 13, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare-tag-before { left: clamp(0.5rem, 1.5vw, 1rem); color: var(--muted); }
.compare-tag-after { right: clamp(0.5rem, 1.5vw, 1rem); color: var(--amber); }

.tv-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.tv-features .eyebrow { margin-bottom: 0.7rem; }

.tv-features h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  font-weight: 520;
  letter-spacing: -0.035em;
  margin-bottom: 0.8rem;
}

.tv-features p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.tv-small {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.75rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

.tv-small > div {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.tv-small dt {
  font-weight: 560;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.chapter-tv .plan-line { margin-top: 2.5rem; max-width: 46rem; border-top: 0; padding-top: 0; }

/* How it works */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1.25fr) 4rem minmax(0, 1fr);
  align-items: stretch;
}

.flow-col {
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.flow-core {
  background: linear-gradient(180deg, rgba(255, 196, 110, 0.13), rgba(255, 196, 110, 0.03));
  box-shadow: inset 0 0 0 1px rgba(255, 196, 110, 0.38);
}

.flow-label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-core .flow-label { color: var(--amber); }

.flow ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow li {
  margin: 0;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9875rem;
  line-height: 1.4;
  color: var(--muted);
}

.flow li strong {
  display: block;
  color: var(--text);
  font-weight: 560;
}

.flow-col:not(.flow-core) li { color: var(--text); }

.flow-link {
  position: relative;
  align-self: center;
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.flow-link span {
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: flow 2.6s linear infinite;
}

@keyframes flow {
  from { transform: translateX(-110%); }
  to { transform: translateX(240%); }
}

/* The rest */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 clamp(1.5rem, 3vw, 3rem);
}

.feature-grid article {
  padding: 1.2rem 0 1.6rem;
  border-top: 1px solid var(--line);
}

.feature-grid .status { margin-left: 0.3rem; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.plan {
  padding: 1.5rem;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.plan p { margin: 0; color: var(--muted); font-size: 0.9875rem; line-height: 1.5; }

.plan .plan-price {
  margin: 0.6rem 0 0.1rem;
  color: var(--text);
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: 520;
  letter-spacing: -0.04em;
}

.plan-price small {
  font-size: 0.9375rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.plan .plan-alt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--amber);
}

.plan .plan-price + p:not(.plan-alt),
.plan .plan-alt + p { margin-top: 0.9rem; }

.plans-more { margin: 1.25rem 0 0; font-size: 0.9875rem; }

/* Get */
.chapter-get { padding-bottom: clamp(4rem, 9vw, 7rem); }

.get-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.get-grid .actions { margin-bottom: 0; }

/* Phones and tablets */
@media (max-width: 62rem) {
  .vision-more,
  .get-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tv-small { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
  .flow { grid-template-columns: 1fr; }
  .flow-link { width: 2px; height: 2rem; justify-self: center; }
  .flow-link span { width: 100%; height: 45%; background: linear-gradient(180deg, transparent, var(--amber), transparent); animation-name: flow-down; }
}

@keyframes flow-down {
  from { transform: translateY(-110%); }
  to { transform: translateY(240%); }
}

@media (max-width: 44rem) {
  .hero-scrim {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(8, 8, 13, 0.88) 42%, rgba(8, 8, 13, 0.3) 62%, rgba(8, 8, 13, 0.1) 80%);
  }
  .hero-stage { min-height: 100svh; }
  .equation { font-size: clamp(2.35rem, 13.4vw, 5.6rem); column-gap: 0.22em; }
  .hero-note { position: static; max-width: none; text-align: left; padding: 0 var(--gutter) 1rem; margin-top: -1rem; }
  .beam-tag { font-size: 0.6875rem; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li { padding: 1.1rem 0; }
  .pipeline li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .tv-features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .tv-small { grid-template-columns: 1fr; }
  .depth-controls { align-items: stretch; flex-direction: column; }
  .segmented { display: flex; }
  .segmented button { flex: 1; padding-inline: 0.4rem; }
  .strength { max-width: none; flex: none; }
  .status { margin-left: 0.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-link span { animation: none; transform: translateX(70%); }
}
