/* Funnel Display and Funnel Sans, SIL Open Font License, served from this site. */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/funnel-display.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/funnel-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Orbito landing page. Palette comes from the app icon: indigo field, amber orbit. */
:root {
  --paper: #F2F3FA;
  --ink: #17163B;
  --ink-soft: #57567C;
  --indigo: #4F57E6;
  --stage: #14133A;
  --stage-ink: #ECECFA;
  --stage-soft: #A9A8D4;
  --amber: #FFB02E;
  --line: rgba(23, 22, 59, .14);
  --display: "Funnel Display", "Avenir Next", system-ui, sans-serif;
  --text: "Funnel Sans", "Avenir Next", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--amber); }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h2 {
  font: 700 clamp(2rem, 4.6vw, 3.75rem)/1 var(--display);
  letter-spacing: -.03em;
  text-wrap: balance;
}
h3 { font: 700 1.25rem/1.2 var(--display); letter-spacing: -.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 26px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 600 1.0625rem/1 var(--text);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--indigo); }
.btn:active { transform: scale(.97); }
.btn.small { height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn.big { height: 64px; padding: 0 36px; border-radius: 32px; font-size: 1.1875rem; background: var(--amber); color: var(--ink); }
.btn.big:hover { background: #fff; }
.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--indigo); }

/* Header */
.top {
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.375rem/1 var(--display); letter-spacing: -.02em; margin-right: auto; }
.top nav { display: flex; gap: 26px; }
.top nav a { text-decoration: none; font-weight: 500; font-size: .9375rem; color: var(--ink-soft); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: clamp(28px, 6vw, 84px); }
.hero-head { position: relative; z-index: 1; }
h1 {
  font-family: var(--display);
  /* Sized so the longer line spans the column at any width. */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 8.6), 9rem);
  line-height: .92;
  letter-spacing: -.045em;
}
h1 span { display: block; white-space: nowrap; }
/* The raw recording set light, the finished video set heavy. */
h1 .in { font-weight: 300; color: var(--ink-soft); }
h1 .out { font-weight: 800; }
.hero-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; margin-top: clamp(22px, 3vw, 40px); }
.hero-side p { color: var(--ink-soft); max-width: 50ch; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

.stage { margin-top: clamp(4px, 1vw, 16px); position: relative; }
/* The plain recording, small and flat, beside what Orbito made of it. */
.raw { position: absolute; z-index: 2; left: max(var(--gutter), (100% - 1240px) / 2); bottom: 132px; width: clamp(110px, 11.5vw, 168px); }
.raw video { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 24px 44px -20px rgba(23, 22, 59, .45); }
.raw span { display: block; margin-top: 10px; font-size: .8125rem; line-height: 1.35; color: var(--ink-soft); }
.stage > video {
  width: min(1560px, 100%); margin-inline: auto; aspect-ratio: 16 / 9; object-fit: cover;
  /* The render's backdrop is the page colour, so the phone sits on the page itself. A thin feather on every side hides any seam if a browser shifts the video's colour. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.stage figcaption { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(0, 46ch); gap: 18px; align-items: center; margin-top: -8px; position: relative; }
.stage figcaption p { font-size: .9375rem; color: var(--ink-soft); line-height: 1.45; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.play:hover { background: var(--ink); color: var(--paper); }
.play svg { width: 16px; height: 16px; fill: currentColor; }
.play .i-play, .play.paused .i-pause { display: none; }
.play.paused .i-play { display: block; }
/* Playhead: the icon's amber dot riding its track. */
.track { height: 2px; background: var(--line); position: relative; border-radius: 2px; }
.track i { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255, 176, 46, .22); }

/* First pass */
.pass { padding-block: clamp(80px, 11vw, 160px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(32px, 4vw, 56px); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1.5px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font: 300 3.25rem/1 var(--display); letter-spacing: -.04em; color: var(--indigo); margin-bottom: 20px; }
.steps p { color: var(--ink-soft); margin-top: 8px; font-size: 1rem; }

.appshot { margin-top: clamp(40px, 6vw, 88px); }
/* The window capture carries its own rounded corners, so the shadow follows its shape. */
.appshot img { width: 100%; filter: drop-shadow(0 40px 50px rgba(23, 22, 59, .35)); }
.appshot figcaption { margin-top: 16px; font-size: .9375rem; color: var(--ink-soft); max-width: 62ch; }
.appshot.strip { margin-top: clamp(32px, 4vw, 56px); }
.appshot.strip img { filter: none; border-radius: clamp(6px, 1vw, 14px); box-shadow: 0 0 0 1px rgba(23, 22, 59, .3), 0 30px 60px -30px rgba(23, 22, 59, .5); }

/* Motion: the lights go down */
.dark { background: var(--stage); color: var(--stage-ink); padding-block: clamp(72px, 9vw, 130px); }
.motion { display: grid; grid-template-columns: minmax(300px, 5fr) 8fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.motion-copy > p { color: var(--stage-soft); margin-top: 20px; max-width: 44ch; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.picker button {
  font: 600 1rem/1 var(--text); color: var(--stage-ink);
  height: 42px; padding: 0 16px; border-radius: 21px; cursor: pointer;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  transition: background .15s, color .15s;
}
.picker button:hover { background: rgba(255, 255, 255, .16); }
.picker button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.motion-copy .note { font-size: .875rem; margin-top: 16px; }
.motion-stage video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; background: #0E0D2B;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -30px #000;
}

/* Section heads: heading left, a paragraph to its right */
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; }
.sec-head p { color: var(--ink-soft); max-width: 48ch; }

/* Looks */
.looks { padding-block: clamp(80px, 11vw, 160px) clamp(60px, 7vw, 100px); }
.look-switch { display: grid; grid-template-columns: minmax(0, 8fr) minmax(240px, 4fr); gap: clamp(20px, 3vw, 48px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.look-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(23, 22, 59, .5); }
.look-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.look-stage img.on { opacity: 1; }
.look-list button {
  display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; align-items: baseline;
  width: 100%; padding: 14px 0; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink-soft); font: inherit;
}
.look-list button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); align-self: center; transition: background .2s, border-color .2s, box-shadow .2s; }
.look-list b { font: 700 1.25rem/1.3 var(--display); letter-spacing: -.01em; }
.look-list span { grid-column: 2; font-size: .9375rem; line-height: 1.4; display: none; margin-top: 4px; }
.look-list button:hover b, .look-list button[aria-pressed="true"] b { color: var(--ink); }
.look-list button[aria-pressed="true"]::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 176, 46, .25); }
.look-list button[aria-pressed="true"] span { display: block; }
figcaption b { color: var(--ink); font: 700 1.0625rem/1.3 var(--display); display: block; }

/* Formats */
.formats { padding-block: clamp(60px, 7vw, 100px) clamp(80px, 10vw, 140px); }
.shapes {
  --h: clamp(260px, 28vw, 410px);
  display: flex; align-items: flex-end; gap: 20px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-inline: max(var(--gutter), (100% - 1240px) / 2);
  overflow-x: auto; scrollbar-width: none;
}
.shapes::-webkit-scrollbar { display: none; }
.shapes figure { flex: none; }
.shapes video { height: calc(var(--h) * var(--k, 1)); width: auto; aspect-ratio: var(--r); border-radius: 14px; background: #1A6F86; }
.shapes figure:nth-child(1) { --k: .58; }
.shapes figure:nth-child(3) { --k: .8; }
.shapes figure:nth-child(4) { --k: .64; }
.shapes figcaption { margin-top: 12px; font-size: .9375rem; color: var(--ink-soft); }
.fine { font-size: .9375rem; color: var(--ink-soft); margin-top: 28px; max-width: 70ch; }

/* The rest */
.rest-band .clips figcaption { color: var(--stage-soft); }
.rest-band figcaption b, .rest-band dt { color: var(--stage-ink); }
.rest-band .rest dl > div { border-top-color: rgba(255, 255, 255, .14); }
.rest-band .rest dd { color: var(--stage-soft); }
.rest-band .clips video { background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.clips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px 20px; margin-top: clamp(28px, 3.5vw, 48px); }
.clips figure { grid-column: span 2; }
.clips figure:nth-child(-n+2) { grid-column: span 3; }
.clips video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--line); }
.clips figcaption { margin-top: 12px; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); max-width: 46ch; }
.rest dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; margin-top: clamp(40px, 5vw, 72px); }
.rest dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.rest dt { font: 700 1.0625rem/1.4 var(--display); }
.rest dd { color: var(--ink-soft); font-size: 1rem; }

/* Speed */
.speed { padding-block: clamp(80px, 11vw, 160px); }
.speed table { width: 100%; border-collapse: collapse; margin-top: clamp(28px, 3.5vw, 48px); font-variant-numeric: tabular-nums; }
.speed caption { text-align: left; font-size: .9375rem; color: var(--ink-soft); padding-bottom: 12px; }
.speed th, .speed td { text-align: left; padding: 16px 0; border-top: 1px solid var(--line); font-weight: 400; }
.speed thead th { font-size: .875rem; color: var(--ink-soft); font-weight: 500; border-top: 1.5px solid var(--ink); }
.speed tbody th { font: 700 1.125rem/1.3 var(--display); }
.speed td { font: 300 clamp(1.5rem, 3vw, 2.25rem)/1 var(--display); letter-spacing: -.03em; width: 22%; }

/* Closer: the icon's indigo field */
.closer {
  background-color: #4A51D2;
  background-image: radial-gradient(120% 140% at 30% 0%, #6470EE 0%, #4A51D2 42%, #2A2772 100%);
  color: #fff; text-align: center; padding-block: clamp(80px, 11vw, 150px);
}
.closer img { margin: 0 auto 28px; filter: drop-shadow(0 18px 30px rgba(15, 12, 60, .45)); }
.closer h2 { max-width: 16ch; margin: 0 auto 36px; }
.closer .fine { color: #fff; margin: 20px auto 0; }
.closer :focus-visible { outline-color: #fff; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; font-size: .875rem; color: var(--ink-soft); }

/* Page-load: the headline's two lines arrive in order, then the stage. Nothing else animates by itself. */
@media (prefers-reduced-motion: no-preference) {
  h1 span, .hero-side, .stage { animation: arrive .7s cubic-bezier(.2, .8, .2, 1) both; }
  h1 .out { animation-delay: .12s; }
  .hero-side { animation-delay: .24s; }
  .stage { animation-name: fade; animation-duration: 1s; animation-delay: .3s; }
  @keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
  @keyframes fade { from { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .top nav { display: none; }
  .sec-head, .motion { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .look-switch { grid-template-columns: 1fr; }
  .look-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .clips figure, .clips figure:nth-child(-n+2) { grid-column: span 3; }
  .rest dl { grid-template-columns: 1fr; }
  .stage figcaption { grid-template-columns: auto 1fr; }
  .stage figcaption p { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .stage > video { aspect-ratio: 4 / 5; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li::before { font-size: 2.5rem; margin-bottom: 10px; }
  .look-list { grid-template-columns: 1fr; }
  .clips figure, .clips figure:nth-child(-n+2) { grid-column: 1 / -1; }
  .raw { position: static; width: auto; display: flex; align-items: center; gap: 14px; margin: 14px var(--gutter) 18px; }
  .raw video { width: 64px; border-radius: 9px; flex: none; }
  .raw span { margin: 0; }
  .rest dl > div { grid-template-columns: 1fr; gap: 4px; }
  .speed td { width: 26%; }
  .motion-stage video { border-radius: 14px; }
  .appshot.strip { overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .appshot.strip img { width: 260%; max-width: none; margin-bottom: 30px; }
  .appshot.strip figcaption { margin-top: -14px; position: sticky; left: 0; }
}

/* Support and privacy pages. */
.doc { max-width: 68ch; padding-block: clamp(40px, 7vw, 96px); }
.doc h1 { font: 800 clamp(2rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 28px; }
.doc h1 span { display: inline; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 12px 0; }
.doc ol { list-style: decimal; }
.doc li + li { margin-top: 8px; }
.doc strong { color: var(--ink); }
.foot a { color: inherit; }
