/* Orbit website · second stylesheet: top bar, try-it wheel, gallery, explorer demo, moving looks, footer. */

/* ================================================================ scroll progress */
.progress {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 30;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent-2));
  box-shadow: 0 0 12px var(--accent);
}

/* ================================================================ top bar (pill) */
.bar {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 25;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 7px 7px 10px;
  border-radius: 22px;
  background: rgba(14, 14, 18, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: translate 500ms var(--ease);
}
.bar.hidden {
  translate: -50% -150%;
}
.bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.bar-brand img {
  border-radius: 8px;
  transition: rotate 600ms var(--ease);
}
.bar-brand:hover img {
  rotate: -25deg;
}
.bar-status {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 13px 'Geist Mono', monospace;
  letter-spacing: 0.14em;
  min-width: 160px;
  transition: background 200ms, color 200ms;
}
.bar-status:hover,
.bar-status[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}
.bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 16px;
}
.bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: eq 1.1s ease-in-out infinite;
}
.bars i:nth-child(2) {
  animation-delay: -0.3s;
}
.bars i:nth-child(3) {
  animation-delay: -0.6s;
}
.bars i:nth-child(4) {
  animation-delay: -0.85s;
}
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}
.bar-label {
  display: inline-flex;
  overflow: hidden;
  white-space: pre;
}
.bar-label .ch {
  display: inline-block;
}
.bar-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--muted);
  transition: background 200ms, color 200ms;
}
.bar-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}
.bar-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: 15px;
  background: #f5f5f7;
  color: #111114;
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  transition: background 250ms, box-shadow 250ms;
}
.bar-download:hover {
  background: var(--accent);
  box-shadow: 0 10px 30px -8px rgba(255, 122, 26, 0.8);
}
.bar-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: min(360px, calc(100vw - 24px));
  padding: 8px;
  border-radius: 18px;
  background: rgba(16, 16, 20, 0.94);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 0;
  animation: menu-in 320ms var(--ease) both;
}
.bar-menu[hidden] {
  display: none;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
  }
}
.bar-menu a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg);
  font-size: 15px;
}
.bar-menu a span {
  font: 500 11.5px 'Geist Mono', monospace;
  color: var(--accent);
}
.bar-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ================================================================ text in motion (lines are split by main.js) */
.lines .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}
.lines .ln > span {
  display: block;
  white-space: nowrap;
  will-change: transform;
}
/* While lines are measured, a word may not wrap inside itself (e.g. at a hyphen). */
.lines [data-tok] {
  white-space: nowrap;
}

/* ================================================================ try it */
.try {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 30px;
  min-height: 600px;
  margin-bottom: 16px;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(20, 20, 25, 0.8), rgba(20, 20, 25, 0.2) 55%, transparent);
}
.try::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, var(--accent) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.8;
  pointer-events: none;
  animation: spin-border 6s linear infinite;
}
@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@keyframes spin-border {
  to {
    --spin: 360deg;
  }
}
.try-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font: 500 13px 'Geist Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: live 1.8s ease-out infinite;
}
@keyframes live {
  from {
    box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.6);
  }
  to {
    box-shadow: 0 0 0 12px rgba(255, 122, 26, 0);
  }
}
.try h3 {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.try-copy > p {
  color: var(--muted);
  margin: 0;
}
.try-tips {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}
.try-tips li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 2px;
}
.try-copy b {
  color: var(--fg);
}
.try-result {
  margin: 24px 0 0;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  font-weight: 550;
}
.try-result i {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
}
.try-result.pop {
  animation: result-pop 600ms var(--ease);
}
@keyframes result-pop {
  from {
    transform: translateY(8px) scale(0.97);
    opacity: 0;
  }
}
.try-stage {
  position: relative;
  height: 540px;
  border-radius: 22px;
  cursor: crosshair;
  touch-action: pan-y; /* swipes scroll; holds are handled in script */
}
.try-home {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}
.try-stage .ow {
  position: absolute;
  z-index: 3;
  translate: -50% -50%;
  transition: opacity 280ms var(--ease), scale 420ms var(--ease);
}
.try-stage:not(.docked) .ow {
  opacity: 0;
  scale: 0.92;
  pointer-events: none;
}
.try-hint {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  font: 500 12px 'Geist Mono', monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  transition: opacity 400ms;
}
.try-stage.docked .try-hint {
  opacity: 1;
}
.try-ripple {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  pointer-events: none;
  animation: ripple 600ms var(--ease) forwards;
}
@keyframes ripple {
  to {
    transform: scale(9);
    opacity: 0;
  }
}

/* ================================================================ gallery */
.gal-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(17, 17, 21, 0.7);
  margin-bottom: 18px;
}
.gal-tabs button {
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.gal-tabs button span {
  font: 500 12px 'Geist Mono', monospace;
  color: var(--dim);
  margin-left: 4px;
}
.gal-tabs button[aria-selected='true'] {
  background: var(--panel-2);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.gal-filters button {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms;
}
.gal-filters button:hover {
  color: var(--fg);
}
.gal-filters button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gal-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-height: 176px;
  padding: 22px 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 25, 0.82);
  text-align: center;
  transition: border-color 250ms, transform 400ms var(--ease);
  outline: none;
}
.gal-card:hover,
.gal-card:focus-visible {
  border-color: rgba(255, 122, 26, 0.45);
  transform: translateY(-4px);
}
.gal-mono {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px -10px var(--c);
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
}
.gal-card h3 {
  margin: 0;
  font-size: 16px;
}
.gal-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 122, 26, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
}
.gal-actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  background: rgba(14, 14, 18, 0.97);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 250ms, transform 380ms var(--ease);
}
.gal-card:hover .gal-actions,
.gal-card:focus-visible .gal-actions {
  opacity: 1;
  transform: none;
}
.gal-actions b {
  width: 100%;
  font-size: 13px;
  margin-bottom: 4px;
}
.gal-actions span {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg);
}
.gal-note {
  margin: 22px 0 0;
  color: var(--dim);
  font-size: 14px;
}

/* ================================================================ explorer demo */
.explorer {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: rgba(22, 22, 28, 0.92);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
  min-height: 470px;
  touch-action: pan-y; /* swipes scroll; holds are handled in script */
  user-select: none;
}
.ex-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.ex-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2c2c34;
}
.ex-bar span {
  margin-left: 8px;
}
.ex-hint {
  margin: 14px 18px 0;
  font: 500 12px 'Geist Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 18px 80px;
}
.ex-file {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: none;
  color: var(--fg);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms, border-color 200ms;
  word-break: break-all;
}
.ex-file:hover {
  background: rgba(255, 255, 255, 0.04);
}
.ex-file.sel {
  background: rgba(255, 122, 26, 0.13);
  border-color: rgba(255, 122, 26, 0.55);
}
.ex-file .doc {
  position: relative;
  width: 48px;
  height: 58px;
  border-radius: 6px 14px 6px 6px;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: 0 8px 18px -8px var(--c);
}
.ex-file .doc::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 0 6px 0 6px;
  background: rgba(255, 255, 255, 0.35);
}
.ex-file.new {
  animation: file-in 800ms cubic-bezier(0.2, 1.5, 0.3, 1) both;
}
@keyframes file-in {
  from {
    transform: scale(0.2) rotate(-12deg);
    opacity: 0;
  }
}
.explorer .ow {
  position: absolute;
  z-index: 5;
  translate: -50% -50%;
}
.ex-toast {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  background: #1d1d23;
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms, translate 450ms var(--ease);
  white-space: nowrap;
  z-index: 6;
}
.ex-toast.on {
  opacity: 1;
  translate: -50% 0;
}
.ex-toast i {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 800;
}
.ex-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 70px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.ex-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  animation: prog 900ms var(--ease) forwards;
}
@keyframes prog {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ================================================================ looks: an endless, moving row of live wheels */
.looks {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 10px 0 40px;
  margin-top: -60px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.looks::-webkit-scrollbar {
  display: none;
}
.looks-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}
.looks .look {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 440px;
  padding: 22px 10px 22px;
  margin: 0;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 38%, #18181e, #0d0d10 72%);
  transition: border-color 300ms, transform 500ms var(--ease);
}
.looks .look:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-6px);
}
.look .ow-wrap {
  position: relative;
  height: 380px;
  width: 100%;
  display: grid;
  place-items: center;
}
.look figcaption {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.look figcaption b {
  font-size: 18px;
  letter-spacing: -0.01em;
}
.look figcaption span {
  font: 500 12px 'Geist Mono', monospace;
  letter-spacing: 0.08em;
  color: var(--dim);
  text-transform: uppercase;
}
.look .glass-blob {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: conic-gradient(from 40deg, #ff7a1a, #7c3aed, #0ea5e9, #ff7a1a);
  filter: blur(26px);
  opacity: 0.75;
  animation: spin 9s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

/* ================================================================ footer */
.footer {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad) 26px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px 30px;
}
.footer-about p {
  color: var(--muted);
  margin: 18px 0 22px;
  max-width: 300px;
  font-size: 16px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.footer-brand img {
  border-radius: 9px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col .footer-h {
  margin: 0 0 6px;
  font: 500 12.5px 'Geist Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-col a {
  color: #d9d9df;
  text-decoration: none;
  font-size: 16px;
  width: fit-content;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size 350ms var(--ease), color 200ms;
}
.footer-col a:hover {
  color: #fff;
  background-size: 100% 1px;
}
.footer-col a.ext::after {
  content: '↗';
  margin-left: 6px;
  font-size: 0.8em;
  color: var(--dim);
}
.footer-giant {
  margin: 36px 0 -0.08em;
  text-align: center;
  line-height: 0.8;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(80px, 17vw, 240px);
  user-select: none;
}
.footer-giant span {
  display: inline-block;
  /* --giant-glow (0…1) is set by the 3D scene as the logo pours into the word. */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, calc(0.12 + var(--giant-glow, 0) * 0.75)) 0%,
    rgba(255, 179, 107, calc(var(--giant-glow, 0) * 0.85)) 55%,
    rgba(255, 122, 26, calc(0.02 + var(--giant-glow, 0) * 0.6)) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-giant .gl {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}
.footer-giant .gi {
  position: relative;
}
/* The dot of the i is Orbit's satellite: the logo's orange dot, glowing more as the word lights up. */
/* With the 3D logo on, the dot appears only when the logo's satellite lands on it (scene.js sets
   --tittle-on); without it, the dot is simply there. */
.gl-ready .footer-giant .tittle {
  opacity: var(--tittle-on, 0);
}
.footer-giant .tittle {
  position: absolute;
  left: calc(50% - 0.032em); /* centre on the stem: the letter box carries 0.12em of right padding (overhang room) */
  /* Seated just above the stem (x-height), with the same small gap as the font's own dot. */
  bottom: var(--tittle-y, 0.965em);
  width: 0.18em;
  height: 0.18em;
  translate: -50% 0;
  border-radius: 50%;
  background: #ff7a1a;
  box-shadow:
    0 0 calc(0.04em + var(--giant-glow, 0) * 0.18em) rgba(255, 122, 26, calc(0.45 + var(--giant-glow, 0) * 0.5)),
    inset 0 -0.02em 0.04em rgba(0, 0, 0, 0.18);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
.footer-bottom p {
  margin: 0;
}

@media (max-width: 960px) {
  .try {
    grid-template-columns: 1fr;
    padding: 26px;
  }
  .try-stage {
    height: 460px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
  .bar-status {
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .bar-status .bar-label,
  .bar-icon,
  .bar-download span {
    display: none;
  }
  .bar-download {
    padding: 0 13px;
  }
  .try {
    padding: 20px 16px;
  }
  .try-stage {
    height: 400px;
  }
  .ex-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}
@media (prefers-reduced-motion: reduce) {
  .looks {
    overflow-x: auto;
  }
}

/* Belt controls */
.looks-wrap {
  position: relative;
}
.belt-btn {
  position: absolute;
  top: calc(50% - 30px);
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(16, 16, 20, 0.8);
  color: var(--fg);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 200ms, transform 300ms var(--ease), border-color 200ms;
}
.belt-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.08);
}
.belt-btn:active {
  transform: scale(0.94);
}
.belt-btn.prev {
  left: max(16px, calc(50% - 600px));
}
.belt-btn.next {
  right: max(16px, calc(50% - 600px));
}
/* Wheels in the belt: labels slightly smaller so they never collide. */
.looks .ow-slot {
  font-size: 12px;
}
.looks .ow.shape-tiles .ow-slot .ow-icon {
  width: 42px;
  height: 42px;
}
@media (max-width: 640px) {
  .looks .look {
    width: 340px;
  }
  .look .ow-wrap {
    height: 310px;
  }
}

/* ================================================================ gallery: apps in orbit around a live wheel */
.og {
  position: relative;
  width: min(940px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
}
.og-track {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  translate: -50% -50%;
  pointer-events: none;
}
.og-outer {
  width: 92%;
  height: 84.6%;
}
.og-inner {
  width: 66%;
  height: 60.7%;
  border-color: rgba(255, 122, 26, 0.18);
}
.og-chips {
  position: absolute;
  inset: 0;
}
.og-chip {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(18, 18, 23, 0.9);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(8px);
  will-change: transform;
}
.og-chip .m {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
}
.og-chip:hover {
  border-color: rgba(255, 255, 255, 0.35);
}
.og-chip.on {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.15), 0 10px 30px -8px rgba(255, 122, 26, 0.6);
}
.og-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}
.og-center .ow {
  position: absolute;
  translate: -50% -50%;
}
.og-label {
  position: absolute;
  left: 50%;
  top: calc(50% + 205px);
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  white-space: nowrap;
  z-index: 11;
}
.og-label b {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.og-label span {
  font: 500 12.5px 'Geist Mono', monospace;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.og-note {
  max-width: 640px;
  margin: 10px auto 0;
  text-align: center;
  color: var(--muted);
}
.og-note b {
  color: var(--accent);
}
@media (max-width: 760px) {
  .og-chip .n {
    display: none;
  }
  .og-chip {
    padding: 4px;
  }
  .og-label {
    top: calc(50% + 150px);
  }
}

/* ================================================================ typography with character */
h2 em,
.try h3 em,
.hero-title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-right: 0.06em;
}
h2 em,
h2 em .w > span,
.try h3 em,
.try h3 em .w > span {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, #fff2e6 70%, var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
h2 em:has(.w),
.try h3 em:has(.w) {
  background: none;
  animation: none;
}
h2 em .w > span,
.hero-title em .w > span {
  font-size: 1.12em;
  line-height: 0.9;
}
.section-head,
.convert-copy,
.support-grid > div:first-child {
  position: relative;
}
.big-n {
  position: absolute;
  left: -0.06em;
  top: -0.62em;
  z-index: -1;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(160px, 22vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.section-head.center .big-n {
  left: 50%;
  translate: -50% 0;
}
/* Phones: apps in two moving rows, the wheel below them. */
.og.narrow {
  aspect-ratio: auto;
  height: 640px;
  overflow: hidden;
}
.og.narrow .og-track {
  display: none;
}
.og.narrow .og-center {
  top: 330px;
}
.og.narrow .og-label {
  top: 520px;
}
/* App logos in the gallery chips */
.og-chip .m.logo {
  background: #101014;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.og-chip .m.logo img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.og-chip.on .m.logo {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.6), 0 0 14px rgba(255, 122, 26, 0.35);
}

/* ================================================================ hero: centred poster, the 3D logo is the "O" */
.hero {
  /* minmax(0, …): a long headline can never widen the column past the screen (which shifted
     everything centred in it to the right). */
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}
.hero .hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  display: grid;
  justify-items: center;
}
.hero .hero-sub {
  max-width: 600px;
  margin: 30px auto 34px;
}
.kin {
  max-width: 100%;
  margin: 0;
  /* Sized to the width so the longest line ("Everything you use,") always fits. */
  font-size: clamp(34px, 8.6vw, 220px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 750;
}
.kin-line {
  display: block;
  white-space: nowrap;
}
.kin-line.l1 {
  display: flex;
  justify-content: center;
  align-items: baseline;
}
.rot {
  position: relative;
  display: inline-block;
  height: 1.22em; /* room for descenders (y, p) */
  margin-bottom: -0.17em;
  overflow: hidden;
  vertical-align: bottom;
  transition: width 700ms var(--ease);
}
.rw {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  white-space: nowrap;
}
.rw .c {
  display: inline-block;
  transform-origin: 50% 100% -0.4em;
  backface-visibility: hidden;
}
.rw:not(.on) {
  visibility: hidden;
}
.rw .c.comma {
  color: var(--accent);
}
.kin-line.l2 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0;
}
/* The slot the 3D logo flies into: the size of a capital O. */
.o-slot {
  position: relative;
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin: 0 0.16em 0 0.04em;
  align-self: center;
  translate: 0 0.04em;
}
.o-fallback {
  width: 100%;
  height: 100%;
}
.gl-ready .o-fallback {
  opacity: 0;
}
.kin .flick {
  display: inline-block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.02em;
  padding-right: 0.08em;
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 55%, #fff2e6 70%, var(--accent));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
  transform-origin: 0% 80%;
}
.kin .away {
  display: inline-block;
  margin-left: 0.22em;
}
.kin .away .c {
  display: inline-block;
}
.hero .eyebrow {
  margin-bottom: 30px;
}
@media (max-width: 640px) {
  .kin {
    font-size: 9.2vw;
  }

  .hero {
    padding-top: 120px;
    align-items: center;
  }
}

/* ================================================================ film: autoplay + sound button */
.film-sound {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(14, 14, 18, 0.72);
  color: #fff;
  font: 600 14px 'Geist', sans-serif;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: opacity 300ms, transform 300ms var(--ease), background 200ms;
  animation: sound-pulse 2.4s ease-in-out infinite;
}
.film-sound:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
@keyframes sound-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(255, 122, 26, 0.18);
  }
}
.film-frame.sound-on .film-sound {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}
.film-frame.playing .film-play {
  opacity: 0;
  pointer-events: none;
}

/* Small wheels: tighter labels. */
.ow.compact .ow-slot {
  font-size: 10.5px;
  gap: 2px;
}
.ow.compact.shape-tiles .ow-slot .ow-icon {
  width: 34px;
  height: 34px;
}
/* Large monitors: a wider column and a touch more air. */
@media (min-width: 1800px) {
  :root {
    --max: 1360px;
  }
  body {
    font-size: 18px;
  }
}
@media (min-width: 2400px) {
  :root {
    --max: 1560px;
  }
  body {
    font-size: 19px;
  }
}
.og.narrow .og-chip .n {
  display: none;
}
.og.narrow .og-chip {
  padding: 4px;
}

/* Gradient text (background-clip: text) is only painted inside the element's own box, so the box
   must reach below the descenders (g, q, y) and past italic overhangs, or their tails vanish. */
h2 em .w > span,
.try h3 em .w > span,
.hero-title em .w > span,
.kin .flick,
.doc-hero h1 em,
.footer-giant span,
.footer-giant .gl {
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
  padding-right: 0.12em;
  margin-right: -0.06em;
  line-height: 1.05;
}
/* Reserve the belt's height before its wheels are built (no layout shift). */
.looks {
  min-height: 500px;
}
@media (max-width: 640px) {
  .looks {
    min-height: 420px;
  }
}
/* Text for screen readers and search engines, visually hidden. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* Keyboard users can jump past the hero. */
.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top 200ms var(--ease);
}
.skip:focus {
  top: 16px;
}

/* ================================================================ Free & Pro */
.pro-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 11px/1.5 'Geist', sans-serif;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background: rgba(18, 18, 23, 0.85);
}
.plan.pro {
  border-color: rgba(255, 122, 26, 0.55);
  background: radial-gradient(500px 240px at 100% 0%, rgba(255, 122, 26, 0.16), transparent 70%), rgba(18, 18, 23, 0.9);
  box-shadow: 0 40px 90px -40px rgba(255, 122, 26, 0.45);
}
.plan-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.plan-price {
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.plan ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  flex: 1;
}
.plan li {
  position: relative;
  padding-left: 24px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.plan li b {
  color: var(--fg);
}
.plan .btn {
  align-self: flex-start;
}
@media (max-width: 760px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* ================================================================ performance */
/* Sections out of view pause their endless animations (main.js marks them .offscreen). */
.offscreen,
.offscreen *,
.offscreen *::before,
.offscreen *::after {
  animation-play-state: paused !important;
}

/* Product Hunt review badge, under the Store badge in the footer */
.footer-about .ph-badge { display: block; width: fit-content; margin-top: 12px; }
.footer-about .ph-badge img { display: block; width: 250px; height: 54px; }
