:root {
  --paper: #f4f1ea;
  --paper-2: #ebe7dd;
  --card: #fbf9f4;
  --ink: #15171c;
  --ink-2: #23262e;
  --muted: #6a6b70;
  --rule: #dcd6c9;
  --saffron: #ecb43f;
  --saffron-ink: #2a2006;
  --routed: #3640c8;
  --on-ink: #f4f1ea;
  --on-ink-muted: #9c9a94;
  --radius: 28px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121317;
    --paper-2: #191a1f;
    --card: #1b1d22;
    --ink: #ece9e1;
    --ink-2: #0b0c0f;
    --muted: #a09e98;
    --rule: #2c2e35;
    --on-ink: #ece9e1;
    --on-ink-muted: #8f8d87;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- labels, headings ---------- */
.eyebrow {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.display {
  font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
}
.display .soft { color: var(--muted); }
.h2 {
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
}
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 0.85rem/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  transition: transform .25s ease, background .25s ease;
}
.btn .arrow {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-saffron { background: var(--saffron); color: var(--saffron-ink); }
.btn-saffron .arrow { background: var(--saffron-ink); color: var(--saffron); }
.btn-ghost { background: rgba(244,241,234,.1); color: var(--on-ink); border: 1px solid rgba(244,241,234,.18); padding-right: 22px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink .arrow { background: var(--paper); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  color: var(--on-ink);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.nav.scrolled .nav-inner {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule), 0 10px 30px rgba(0,0,0,.06);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand img { width: 40px; height: 40px; }
.nav .brand .ink { display: none; }
.nav.scrolled .brand .ink { display: block; }
.nav.scrolled .brand .paper { display: none; }
@media (prefers-color-scheme: dark) {
  .nav.scrolled .brand .ink { display: none; }
  .nav.scrolled .brand .paper { display: block; }
}
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font: 500 0.8rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.nav .btn { padding: 12px 20px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-inner { background: var(--ink-2); color: var(--on-ink); border-radius: 24px; flex-wrap: wrap; }
  .nav.open .brand .ink { display: none; }
  .nav.open .brand .paper { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 22px; width: 100%; padding: 22px 8px 14px; }
}

/* ---------- hero ---------- */
.hero-shell { padding: 10px; }
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 50% 0%, #2a2d36 0%, #15171c 55%, #0d0e11 100%);
  color: var(--on-ink);
  border-radius: var(--radius);
  min-height: 100svh;
  padding: 130px 20px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero .logo { width: min(300px, 64%); margin: 0 auto 30px; }
.hero .display .soft { color: var(--on-ink-muted); }
.hero .lead { color: #c9c6be; margin: 22px auto 0; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* Every screenshot on a ring that turns slowly; drag or swipe to spin it.
   Positions are pure CSS (each card's --i), so without JavaScript it still
   stands as a still ring. main.js turns it and dims the cards going edge-on. */
.ring-stage {
  --w: 184px; --gap: 48px;
  --R: calc((var(--w) + var(--gap)) * var(--n, 13) / 6.2832);
  position: relative;
  height: calc(var(--w) * 2.173 + 10px);
  margin: 64px 0 -70px;
  perspective: 1300px;
  perspective-origin: 50% 30%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.ring-stage.dragging { cursor: grabbing; }
.ring {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--R) * -1)) rotateY(var(--turn, 0deg));
}
.ring .float {
  position: absolute; top: 0; left: 50%;
  margin-left: calc(var(--w) / -2);
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--R));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.float {
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
}
.float img { width: 100%; pointer-events: none; -webkit-user-drag: none; }
.float.phone { width: var(--w); border-radius: 26px; border: 5px solid #000; }
.float::after {
  content: ""; position: absolute; inset: 0;
  background: #0d0e11; opacity: var(--dim, 0);
}
@media (max-width: 860px) {
  .ring-stage { --w: 124px; --gap: 16px; margin-top: 48px; }
  .float.phone { border-width: 4px; border-radius: 20px; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span {
  font: 500 0.95rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 0 22px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 44px;
}
.ticker-track span::after { content: "∞"; font-family: var(--serif); font-size: 1.3rem; color: var(--rule); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 120px 0; }
@media (max-width: 640px) { section { padding: 84px 0; } }

/* intro statement with inline icons and scroll-lit words */
.statement {
  font-weight: 600;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 980px; margin: 26px auto 0;
  text-align: center;
}
.statement .w { color: var(--rule); transition: color .4s ease; }
.statement .w.lit { color: var(--ink); }
.chip-ic {
  display: inline-block; width: 1.05em; height: 1.05em;
  border-radius: 28%; vertical-align: -0.14em; margin: 0 .08em;
  object-fit: cover;
}

/* bento */
.bento {
  display: grid; gap: 16px; margin-top: 70px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  text-align: left;
}
.tile {
  border-radius: 24px; padding: 26px;
  background: var(--paper-2);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.tile .num { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.tile p { margin: 0; }
.tile .small { font-size: .95rem; color: var(--muted); }
.tile.ink { background: var(--ink-2); color: var(--on-ink); }
.tile.ink .small { color: var(--on-ink-muted); }
.tile.saffron { background: var(--saffron); color: var(--saffron-ink); }
.tile.saffron .small { color: #5a4512; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile.quote { font: italic 1.45rem/1.35 var(--serif); }
.tile.quote cite { font: normal .85rem/1.4 var(--sans); color: var(--muted); display: block; margin-top: 16px; }
.tile.photo { padding: 0; background: #000; }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .92; }
.tile.photo .over {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: var(--card); color: var(--ink); border-radius: 16px; padding: 18px;
}
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.tall { grid-row: span 2; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .tile.tall { grid-row: auto; min-height: 420px; }
}

/* product showcase */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
  margin-top: 70px;
}
.product + .product { margin-top: 140px; }
.product.flip .product-copy { order: 2; }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.product-head img { width: 64px; height: 64px; border-radius: 16px; }
.product-head h3 { margin: 0; font-size: 2rem; letter-spacing: -0.03em; }
.tagline { font: italic 1.1rem/1.3 var(--serif); color: var(--muted); margin: 2px 0 0; }
.pill {
  display: inline-block; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 12px; color: var(--muted);
  margin-bottom: 18px;
}
.features { list-style: none; padding: 0; margin: 26px 0; border-top: 1px solid var(--rule); }
.features li { border-bottom: 1px solid var(--rule); }
.features button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 4px;
}
.features .n { font: 500 .78rem/1.9 var(--mono); color: var(--muted); }
.features strong { display: block; font-size: 1.08rem; letter-spacing: -0.01em; }
.features .d { display: block; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .45s ease, margin .45s ease; }
.features li.on .d { max-height: 140px; margin-top: 6px; }
.features li.on .n { color: var(--ink); }
.features button:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

.stage {
  position: relative; border-radius: var(--radius); min-height: 620px;
  display: grid; place-items: center; overflow: hidden;
}
.stage.mx { background: radial-gradient(90% 80% at 50% 30%, #f6d58a 0%, var(--saffron) 55%, #d39a26 100%); }
.device {
  width: 290px; border-radius: 44px; border: 9px solid #0c0c0e; background: #0c0c0e;
  box-shadow: 0 40px 80px rgba(60,40,0,.35);
  overflow: hidden; position: relative;
  aspect-ratio: 1206 / 2622;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.device img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .5s ease;
}
.device img.on { opacity: 1; }

.stage.rt { background: var(--routed); padding: 0; place-items: stretch; }
.carousel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 50px 50px 90px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel img {
  flex: none; width: 250px; border-radius: 34px; scroll-snap-align: center;
  border: 7px solid #0c0c0e; background: #0c0c0e;
  box-shadow: 0 24px 50px rgba(10,14,60,.35);
}
@media (max-width: 520px) { .carousel img { width: 210px; border-radius: 28px; border-width: 6px; } }
.car-ctrl { position: absolute; bottom: 24px; left: 50px; display: flex; gap: 10px; }
.car-ctrl button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer;
}
.car-ctrl button:hover { background: rgba(255,255,255,.25); }
.car-note { position: absolute; bottom: 28px; left: 170px; right: 50px; text-align: right; color: rgba(255,255,255,.75); font-size: .8rem; line-height: 1.4; }
.note { font-size: .9rem; color: var(--muted); }

@media (max-width: 960px) {
  .product { grid-template-columns: 1fr; gap: 36px; }
  .product.flip .product-copy { order: 0; }
  .stage { min-height: 540px; }
  .carousel { padding: 36px 24px 86px; }
  .car-ctrl { left: 24px; }
  .car-note { left: 130px; right: 24px; bottom: 26px; text-align: right; font-size: .72rem; }
}

/* approach */
.approach { background: var(--ink-2); color: var(--on-ink); border-radius: var(--radius); margin: 0 10px; }
.approach .eyebrow { color: var(--on-ink-muted); }
.approach .lead { color: var(--on-ink-muted); }
.sutra { font: italic clamp(1.6rem, 3.4vw, 2.6rem)/1.25 var(--serif); margin: 22px 0 0; letter-spacing: -0.01em; }
.sutra .soft { color: var(--on-ink-muted); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.three .t {
  border: 1px solid rgba(244,241,234,.12); border-radius: 22px; padding: 26px;
  background: rgba(244,241,234,.03);
}
.three .t .k { font: 500 .75rem/1 var(--mono); letter-spacing: .14em; color: var(--saffron); text-transform: uppercase; }
.three .t h4 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 16px 0 8px; }
.three .t p { margin: 0; color: var(--on-ink-muted); }
@media (max-width: 860px) { .three { grid-template-columns: 1fr; } }

/* about + contact */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 40px; }
.about-grid p { margin: 0 0 1em; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 20px; } }
.cta {
  margin-top: 90px; border-radius: var(--radius);
  background: var(--saffron); color: var(--saffron-ink);
  padding: clamp(36px, 6vw, 70px);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta .h2 { margin: 0; }
.cta .btn { background: var(--saffron-ink); color: var(--saffron); }
.cta .btn .arrow { background: var(--saffron); color: var(--saffron-ink); }

footer { padding: 50px 0 60px; color: var(--muted); font-size: .9rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 30px; }
.foot a { text-decoration: none; margin-left: 22px; }
.foot a:hover { color: var(--ink); }
.foot .brand { color: var(--ink); }
.foot .brand img { width: 34px; height: 34px; }
.foot .brand .paper { display: none; }
@media (prefers-color-scheme: dark) { .foot .brand .ink { display: none; } .foot .brand .paper { display: block; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .statement .w { color: var(--ink); }
}

/* policy pages */
.doc { padding-top: 40px; max-width: 760px; }
.doc h1 { font: 600 2.2rem/1.15 var(--serif); margin: 24px 0 8px; letter-spacing: -0.01em; }
.doc h2 {
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 44px 0 18px;
}
.doc .meta { color: var(--muted); margin-bottom: 32px; }
.doc p, .doc li { margin: 0 0 1em; }
header.site { padding: 28px 0 8px; }
header.site .mark { width: 64px; }
.doc + footer .wrap { max-width: 760px; }
