/* ============================================================
   ORBIT LOGIC — orbit.css
   Brand system: deep navy ground, one electric blue, cool white.
   One type family (Switzer) across weights. Mono only for real data.
   One easing family. The 45° slash of the mark is the house cut.
   ============================================================ */

@font-face {
  font-family: 'Switzer';
  src: url('fonts/switzer-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('fonts/switzer-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('fonts/switzer-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('fonts/switzer-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Switzer';
  src: url('fonts/switzer-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  /* brand */
  --ground: #0D1028;            /* Orbit navy */
  --deep: #080B1C;              /* footer floor */
  --panel: #121535;
  --white: #EBEEF6;             /* Orbit off-white */
  --grey: #AAB2CF;
  --dim: #6B7394;
  --line: rgba(235, 238, 246, 0.14);
  --blue: #3F66FF;              /* Orbit electric blue */
  --blue-ink: #0D1028;          /* text that sits on blue */

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --sans: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
  --gutter: clamp(20px, 4.5vw, 72px);
  --notch: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ground);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

/* Grain sits on the substrate, behind all content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer { position: relative; z-index: 1; }

::selection { background: var(--blue); color: #fff; }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--ground);
  padding: 10px 18px;
  font-weight: 500;
}
.skip:focus { left: 0; }

/* ---------- type roles ---------- */

.display {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

/* mono is for real data only: clock, coordinates, indices, years */
.data {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
}

.lead {
  font-size: clamp(17px, 1.4vw, 19.5px);
  color: var(--grey);
  max-width: 34em;
}

/* ---------- reveals ----------
   Content is visible by default. JS hides ONLY elements that are still
   below the fold once the page has loaded (class .pre), then un-hides them
   as they scroll in. Nothing above the fold is ever hidden, and with no
   JS nothing is hidden at all. Hero lines never hide: they only settle. */

.rv {
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.rv.pre { transform: translateY(28px); }   /* always visible; it only settles */

.mask { display: block; }
.mask > span { display: block; }
.js .mask > span,
.js .hero .rv {
  animation: settle 1.1s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes settle {
  from { transform: translateY(0.22em); }
  to   { transform: translateY(0); }
}

/* ---------- nav ---------- */

header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background-color 0.5s var(--ease);
}
.nav.scrolled { background: rgba(13, 16, 40, 0.92); }

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--white);
}
.nav-mark .mark {
  width: 26px;
  height: 26px;
  color: var(--blue);
  flex: none;
  transition: transform 0.7s var(--ease);
}
.nav-mark:hover .mark { transform: rotate(180deg); }
/* the mark receives the 3D object when it docks: one turn and a breath, in brand blue */
.nav-mark.pulse .mark { animation: markPulse 0.9s var(--ease); }
@keyframes markPulse {
  0%   { transform: rotate(0) scale(1); }
  45%  { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(180deg) scale(1); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}
.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--white); }

/* ---------- buttons: slash-notched (bottom-right, same angle as the mark) ---------- */

.btn {
  position: relative;
  display: inline-block;
  font-weight: 500;
  font-size: 15px;
  padding: 15px 30px 16px;
  background: var(--white);
  color: var(--ground);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  overflow: hidden;
  transition: color 0.35s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover, .btn:focus-visible { color: #fff; }
.btn > span { position: relative; }

/* the button that sits on the blue sheet */
.btn--ink { background: var(--ground); color: var(--white); }
.btn--ink::before { background: var(--white); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--ground); }

.btn--sm { padding: 11px 22px 12px; font-size: 14px; --notch: 12px; }

/* arrow-links */
.alink {
  display: inline-block;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--white);
  transition: color 0.3s var(--ease);
}
.alink .ar { display: inline-block; transition: transform 0.45s var(--ease); }
.alink:hover { color: var(--blue); }
.alink:hover .ar { transform: translate(3px, 3px); }
.alink--up:hover .ar { transform: translate(3px, -3px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 110px var(--gutter) clamp(40px, 6vh, 68px);
  overflow: hidden;
}

/* ---------- layers ----------
   4  #orbit  the drawn chart, covering the first screen
   5  #stage  the 3D object, pinned to the viewport, free to travel the page
   6  every section's content, so the copy always reads in front of the object
   The price sheet is the one exception: its blue is a separate layer at 1 so the
   object can sit ON the sheet, still under the words. */
#orbit, #stage { display: block; pointer-events: none; }
#orbit { position: absolute; top: 0; left: 0; width: 100%; height: 100svh; z-index: 4; }
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
#stage.on { opacity: 1; }
main > section { position: relative; z-index: 6; }
main > .sheet { z-index: auto; }

/* while the 3D preview is live on desktop, the work list keeps to the left and the flat preview stands down */
@media (min-width: 861px) {
  .has-stage .work-list, .has-stage .sect-sub { max-width: 52%; }
  .has-stage .peek { display: none; }
}
.work-row.is-active a { background: rgba(235, 238, 246, 0.05); }
.work-row.is-active .work-ix { color: var(--blue); }

.hero-inner {
  position: relative;
  width: 100%;
}

.hero h1 {
  font-size: clamp(36px, 6.3vw, 104px);
  margin-bottom: clamp(30px, 5vh, 52px);
}
.hero h1 .hl { color: var(--blue); }

.hero-cta { display: flex; justify-content: flex-end; }
.hero-side { width: min(440px, 100%); }
.hero-side .lead { margin-bottom: 24px; }

.hero-meta {
  position: absolute;
  left: var(--gutter);
  bottom: 20px;
}

@media (max-width: 860px) {
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; padding-bottom: 34px; }
  .hero-cta { justify-content: flex-start; }
  .hero-meta { position: static; margin-top: 34px; }
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- sections ---------- */

.sect { padding: clamp(90px, 13vh, 170px) var(--gutter); }

.sect-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(14px, 2vw, 26px);
}
.sect-head h2 { font-size: clamp(36px, 5vw, 78px); }
.sect-sub { margin-bottom: clamp(40px, 5vw, 64px); }

/* ---------- work index ---------- */

.work-list { list-style: none; border-top: 1px solid var(--line); }

.work-row { border-bottom: 1px solid var(--line); }

.work-row a {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(20px, 2.6vw, 30px) clamp(6px, 1vw, 18px);
  position: relative;
  transition: background-color 0.4s var(--ease);
}
.work-row a:hover { background: rgba(235, 238, 246, 0.05); }

.work-ix { transition: color 0.3s var(--ease); }
.work-row a:hover .work-ix { color: var(--blue); }

.work-name {
  font-weight: 600;
  letter-spacing: -0.025em;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.05;
  transition: transform 0.45s var(--ease);
}
.work-row a:hover .work-name { transform: translateX(8px); }

.work-tag {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grey);
  text-align: right;
  white-space: nowrap;
}
.work-tag .data { margin-left: 14px; }
.work-tag .live { color: var(--blue); }

.work-thumb { display: none; }

/* cursor-following preview (fine pointers only) */
.peek {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: min(30vw, 430px);
  aspect-ratio: 16 / 10;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  overflow: hidden;
  background: var(--panel);
}
.peek.on { opacity: 1; transform: scale(1); }
.peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
}
.peek img.cur { opacity: 1; }

@media (pointer: coarse), (max-width: 860px) {
  .peek { display: none; }
  .work-row a {
    grid-template-columns: 3.2em minmax(0, 1fr);
    grid-template-areas: 'ix name' 'thumb thumb' 'tag tag';
  }
  .work-ix { grid-area: ix; }
  .work-name { grid-area: name; }
  .work-tag { grid-area: tag; text-align: left; padding-left: 0; }
  .work-thumb {
    display: block;
    grid-area: thumb;
    width: 100%;
    margin: 14px 0 4px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  }
  .work-thumb img { width: 100%; height: auto; display: block; }
}

/* ---------- everyone / marquee ---------- */

.everyone .statement {
  font-size: clamp(38px, 5.4vw, 84px);
  max-width: 12.5em;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.everyone .statement .quiet { color: var(--dim); }

.everyone .lead { margin-bottom: clamp(56px, 7vw, 92px); }

.mq {
  overflow: hidden;
  margin: 0 calc(-1 * var(--gutter));
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mq-track {
  display: flex;
  width: max-content;
  animation: mq 52s linear infinite;
}
.mq:hover .mq-track { animation-play-state: paused; }
.mq-set {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 3.6vw, 54px);
  color: rgba(235, 238, 246, 0.42);
}
.mq-set i {
  font-style: normal;
  color: var(--blue);
  font-size: 0.5em;
  padding: 0 0.9em;
  transform: translateY(-0.3em);
  display: inline-block;
}
@keyframes mq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- the sheet (rate card, set in the brand blue) ---------- */

.sheet {
  color: #fff;
  padding: clamp(80px, 11vh, 150px) var(--gutter) clamp(76px, 10vh, 130px);
  position: relative;
}
.sheet-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  pointer-events: none;
}
.sheet-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sheet > * { position: relative; z-index: 6; }
.sheet > .sheet-bg { position: absolute; z-index: 1; }   /* the blue layer stays under the object */
.sheet ::selection { background: var(--ground); color: #fff; }

.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.sheet h2 { font-size: clamp(40px, 5vw, 76px); margin-bottom: 0.4em; }
.sheet .lead { color: #fff; margin-bottom: 34px; }
.sheet .data { color: var(--white); }

.price-fig {
  font-weight: 800;
  font-size: clamp(100px, 12.5vw, 208px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 10px;
}
.price-cap {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 44px;
}

.inc {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 34px;
  margin-bottom: 46px;
}
.inc li {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.35;
  padding-left: 16px;
  position: relative;
}
.inc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.55);
}

.sheet-foot {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.sheet .alink { color: #fff; font-weight: 500; }
.sheet .alink:hover { color: var(--ground); }
.sheet :focus-visible { outline-color: #fff; }

@media (max-width: 860px) {
  .sheet-grid { grid-template-columns: 1fr; }
  .inc { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */

.contact h2 { font-size: clamp(40px, 5.6vw, 84px); margin-bottom: 0.35em; }
.contact .lead { margin-bottom: clamp(44px, 6vw, 70px); }

.mail {
  display: inline-block;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(26px, 4.6vw, 72px);
  line-height: 1.15;
  color: var(--white);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.12em;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--blue); border-color: var(--blue); }

.contact-alt {
  margin-top: 30px;
  font-size: 16.5px;
  color: var(--grey);
}
.contact-alt a {
  color: var(--white);
  font-weight: 500;
  transition: color 0.3s var(--ease);
}
.contact-alt a:hover { color: var(--blue); }

.contact .data { display: block; margin-top: 56px; }

/* ---------- footer: steps down onto its own darker floor ---------- */

footer {
  background: var(--deep);
  padding: clamp(70px, 9vh, 110px) var(--gutter) 0;
  overflow: hidden;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 980px;
  margin-bottom: clamp(56px, 8vh, 96px);
}
.foot-grid h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: 16px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a {
  font-size: 14.5px;
  color: var(--grey);
  transition: color 0.3s var(--ease);
}
.foot-grid a:hover { color: var(--white); }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vh, 60px);
}
/* the colophon is prose, not data: plain small sans, not the mono costume */
.colophon .data {
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
}

.foot-mark {
  display: block;
  font-weight: 800;
  font-size: clamp(58px, 14.6vw, 292px);
  line-height: 0.82;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-align: center;
  color: var(--white);
  margin: 0 calc(-1 * var(--gutter));
  transform: translateY(0.14em);
}

@media (max-width: 700px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv.pre { transform: none; }
  .rv { transition: none; }
  .js .mask > span, .js .hero .rv { animation: none; }
  .mq-track { animation: none; }
  .btn::before { transition: none; }
  .work-name, .alink .ar, .nav-mark .mark { transition: none; }
  .nav-mark.pulse .mark { animation: none; }
}
