@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #0c0c0e;
  --mute: #616168;
  --line: rgba(12, 12, 14, 0.14);
  --accent: #0870ff;
  --g: 32px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --swap: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121214;
  --ink: #f3f3f5;
  --mute: #a3a3ab;
  --line: rgba(243, 243, 245, 0.16);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  transition: background-color 1.2s var(--swap);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  scroll-behavior: smooth;
}
body {
  font: 500 16px/1.3 "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: var(--bg);
  transition: background-color 1.2s var(--swap), color 1.2s var(--swap);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
b { font-weight: 500; color: var(--ink); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--bg); font-size: 14px;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

#gl {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
  will-change: filter, opacity;
}
main { position: relative; z-index: 1; }

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

h1, .h2 {
  font-size: 64px; line-height: 1; letter-spacing: -0.016em; font-weight: 500;
  text-wrap: balance;
}
.h3 { font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.h4 { font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.lead { margin-top: 24px; max-width: 44ch; font-size: 18px; line-height: 1.4; color: var(--mute); text-wrap: pretty; }
.cap-q { margin-top: 14px; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.cap-q + .small { margin-top: 8px; }
.small { font-size: 16px; line-height: 1.45; color: var(--mute); text-wrap: pretty; }

/* underline link: the line slides out and back on hover */
.ul {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 10px; font-size: 16px;
}
/* the inverted label overhangs 10px each side, so the hover never reflows the line */
.ul-ghost {
  position: absolute; inset: 0 -10px; padding: inherit; padding-inline: 10px; display: inherit; align-items: inherit; gap: inherit;
  white-space: nowrap; background: var(--ink); color: var(--bg); pointer-events: none;
  clip-path: inset(0 0 0 100%); transition: clip-path 0.55s var(--ease);
}
.ul:hover .ul-ghost, .ul:focus-visible .ul-ghost { clip-path: inset(0); animation: wipe-in 0.55s var(--ease); }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } }
.ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right;
}
.ul:hover::after { animation: ul 0.8s var(--ease); }
@keyframes ul {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.ul svg, .h3 svg, .menu-contact svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.2; }

/* section rule */
.rule {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: -0.01em;
}
.rule::after { content: ""; align-self: stretch; height: 1px; background: var(--line); transition: background-color 0.8s var(--ease); }

/* ---------- header ---------- */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--g);
  pointer-events: none;
  color: var(--ink);
  transition: opacity 1s var(--ease), color 0.6s var(--ease), transform 0.5s var(--ease);
}
.hdr-hide { transform: translateY(-110%); }
.hdr > * { pointer-events: auto; }
.hdr-logo { justify-self: start; }
.hdr-logo img { height: 34px; width: auto; transition: filter 0.6s var(--ease); }
:root[data-theme="dark"] .hdr-logo img, .menu-open .hdr-logo img { filter: brightness(0) invert(1); }
.hdr-menu { font-size: 15px; padding: 10px 14px; }
.hdr-cta { justify-self: end; }
.menu-open .hdr { color: #f3f3f5; }
.intro .hdr { opacity: 0; }

/* ---------- menu ---------- */

.menu { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.menu-scrim { position: absolute; inset: 0; background: rgba(8, 8, 10, 0.6); opacity: 0; transition: opacity 0.5s var(--ease); }
.menu-panel {
  position: absolute; top: 0; left: 50%;
  width: min(420px, calc(100vw - 2 * var(--g)));
  max-height: 100svh; overflow: auto;
  padding: 72px 24px 24px;
  background: #141416; color: #f3f3f5;
  --line: rgba(243, 243, 245, 0.16); --mute: #a3a3ab;
  transform: translate(-50%, -104%);
  transition: transform 0.7s var(--ease);
}
.menu-open .menu { pointer-events: auto; }
.menu-open .menu-scrim { opacity: 1; }
.menu-open .menu-panel { transform: translate(-50%, 0); }
.menu-main { border-top: 1px solid var(--line); }
.menu-main a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 22px; letter-spacing: -0.03em; transition: color 0.3s; }
.menu-main a:hover, .menu-sub a:hover { color: var(--mute); }
.menu-sub { margin-top: 32px; font-size: 14px; line-height: 2; }
.menu-contact {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 40px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.menu-contact small { display: block; font-size: 11px; color: var(--mute); }

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

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: clamp(112px, 15vh, 156px) var(--g) 0;
}
.hero-kicker { margin-bottom: 22px; font-size: 15px; line-height: 1.3; letter-spacing: 0.01em; color: var(--mute); }
.hero-sub { margin-top: 26px; max-width: 36ch; font-size: 20px; line-height: 1.35; color: var(--mute); text-wrap: pretty; }
.hero-link { margin-top: 36px; }
.prod .tagline { grid-column: 1; margin-top: 6px; font-size: 22px; line-height: 1.3; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }

.sec { position: relative; padding: 20vh var(--g) 18vh; }
.sec > .h2, .sec > .lead { margin-left: 0; }
.sec > .rule + .h2, .split { margin-top: 28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); align-items: start; }

.prod-intro { margin-bottom: 72px; }
.prod-list { margin-top: 24vh; }
.prod {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px;
  padding: 18px 0 48px; border-top: 1px solid var(--line);
}
.prod .h3 a { display: inline-flex; align-items: center; gap: 10px; transition: opacity 0.3s; }
.prod .h3 a:hover { opacity: 0.6; }
.prod .small { grid-column: 1; margin-top: 10px; max-width: 42ch; }
.prod .meta { grid-column: 2; grid-row: 1; padding-top: 12px; font-size: 13px; color: var(--mute); }
.chip {
  display: inline-block; margin-left: 10px; padding: 4px 7px 5px; vertical-align: 0.35em;
  background: var(--ink); color: var(--bg); font-size: 11px; line-height: 1; letter-spacing: -0.01em; border-radius: 2px;
}

/* product shots: one sticky stage on wide screens, inline above each card on phones */
.stage, .prod-shot { display: none; }
.prod-shot img, .stage-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-soon { display: grid; place-items: center; background: #f4f4f6; font-size: 15px; letter-spacing: -0.01em; color: var(--mute); }
/* shots keep their own 2:3, so every device sits whole in its composition */
@media (min-width: 761px) {
  .js .split > div:first-child { position: sticky; top: 88px; display: flex; flex-direction: column; height: calc(100svh - 120px); }
  .js .stage { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  /* room below the last card, so it reaches mid screen while the stage is still pinned */
  .js .prod-list { padding-bottom: 34svh; }
  .stage-frame { position: relative; flex: 1; min-height: 0; overflow: hidden; }
  .stage-frame > * { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 2 / 3; max-width: 100%; clip-path: inset(100% 0 0 0); transform: scale(1.04); transform-origin: 50% 50%; }
  .stage-frame > img { width: auto; object-fit: contain; }
  .stage-frame > .from-top { clip-path: inset(0 0 100% 0); }
  .stage-frame > .on { clip-path: inset(0); transform: none; transition: clip-path 0.9s var(--ease), transform 1.4s var(--ease); }
  .stage-cap { margin-top: 14px; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
  .stage-name { color: var(--ink); }
}
html:not(.js) .prod-shot { display: block; }
.prod-shot { grid-column: 1 / -1; aspect-ratio: 2 / 3; margin-bottom: 20px; overflow: hidden; background: #f4f4f6; }
@media (max-width: 760px) { .prod-shot { display: block; order: -2; } }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px var(--g); margin-top: 38vh; }
.cap { padding-top: 18px; border-top: 1px solid var(--line); }
.cap .h4 { max-width: 20ch; }
.cap .small { margin-top: 14px; max-width: 46ch; }
#better .h2 { max-width: 18ch; }

.dark-band { position: relative; overflow-x: clip; }


.how { text-align: center; }
.how .h2 { max-width: 15ch; margin-inline: auto; }
.ripple-slot { position: relative; height: min(64vh, 640px); margin-top: 3vh; }
.how .lead { margin: 0 auto; max-width: 52ch; }
.how-links { display: flex; justify-content: center; gap: 32px; margin-top: 36px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin-top: 20vh; text-align: left; }
.step { padding-top: 18px; border-top: 1px solid var(--line); }
.step-n { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.step .h4 { margin-top: 32px; }
.step .small { margin-top: 12px; max-width: 42ch; }

.about .creed { grid-template-columns: repeat(4, 1fr); margin-top: 16vh; }
.about .caps { margin-top: 18vh; }
.values { margin-top: 22vh; }
.values .caps { margin-top: 8vh; }

#expertise .h2 { max-width: 17ch; }
.disc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--g); margin-top: 16vh; }
.icon-slot { height: 160px; margin-bottom: 28px; }
.disc-body { padding-top: 18px; border-top: 1px solid var(--line); }
.disc-body .small { margin-top: 14px; max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; font-size: 13px; color: var(--ink); }

.stack { margin-top: 24vh; text-align: center; }
.stack .small { max-width: 50ch; margin: 18px auto 0; }
.morph { position: relative; width: clamp(112px, 11vw, 168px); aspect-ratio: 1; margin: 0 auto 64px; }
.morph-stage { position: absolute; inset: 0; filter: url(#stack-fringe); }
.morph.goo .morph-stage { filter: url(#stack-goo); }
.morph-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; will-change: filter, opacity; }
.stack-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 60ch; margin: 32px auto 0; font-size: 15px; color: var(--mute); }
.stack-list li { transition: color 0.4s var(--ease); }
.stack-list li.on { color: var(--ink); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
html:not(.js) .morph { display: none; }


/* ---------- footer: dark, continuing the band to the last pixel ---------- */

.foot {
  position: relative; z-index: 2;
  --ink: #f3f3f5; --mute: #a3a3ab; --line: rgba(243, 243, 245, 0.16);
  background: #121214; color: var(--ink); color-scheme: dark;
  padding: 72px var(--g) 28px;
}
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 18, 20, 0), #121214);
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); }
.foot-ask { font-size: 16px; color: var(--mute); }
.foot-mail { position: relative; display: inline-block; margin-top: 12px; padding-bottom: 6px; font-size: clamp(28px, 3.3vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
.foot-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.foot-mail:hover::after { transform: none; }
.foot-side { display: grid; grid-template-columns: auto auto; justify-content: start; gap: var(--g) 72px; }
.foot-nav a { display: block; width: fit-content; font-size: 22px; line-height: 1.4; letter-spacing: -0.03em; transition: opacity 0.3s; }
.foot-nav a:hover, .foot-list a:hover { opacity: 0.55; }
.foot-list { font-size: 15px; line-height: 1.75; padding-top: 4px; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 88px; font-size: 12px; color: var(--mute); }
.sign {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 96px; font-size: clamp(36px, 5vw, 76px); line-height: 1; letter-spacing: -0.03em;
}
.sign img { height: 1.1em; width: auto; filter: brightness(0) invert(1); }

/* ---------- reveals ---------- */

.js [data-split] .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js [data-split] .w > span { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.1s var(--ease) calc(var(--i) * 45ms); }
.js [data-split].in .w > span { transform: none; }
.js [data-reveal] { opacity: 0.18; transform: translate3d(0, 16px, 0); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero-link[data-reveal], .js .hero-sub[data-reveal], .js .hero-kicker[data-reveal] { opacity: 0; }
.js .hero-link[data-reveal].in, .js .hero-sub[data-reveal].in, .js .hero-kicker[data-reveal].in { opacity: 1; }
.no-gl .icon-slot { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .caps, .about .creed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --g: 16px; }
  h1, .h2 { font-size: 42px; letter-spacing: -0.02em; }
  .h3 { font-size: 26px; }
  .hdr { grid-template-columns: 1fr auto; padding-block: 14px; }
  .hdr-logo img { height: 28px; }
  .hdr-cta { display: none; }
  .hdr-menu { padding-right: 0; }
  .sec { padding: 16vh var(--g) 14vh; }
  .split, .foot-grid { grid-template-columns: 1fr; }
  .prod-list { margin-top: 10vh; }
  .prod { grid-template-columns: 1fr; }
  .prod .meta { grid-column: 1; grid-row: auto; order: -1; padding: 0 0 8px; }
  .caps { grid-template-columns: 1fr; gap: 44px; margin-top: 32vh; }
  .steps, .disc, .about .creed { grid-template-columns: 1fr; gap: 48px; }
  .about .caps, .values .caps { margin-top: 10vh; }
  .icon-slot { height: 120px; margin-bottom: 18px; }
  .ripple-slot { height: 52vh; }
  .how-links { flex-direction: column; align-items: center; gap: 18px; }
  h1 { font-size: 38px; }
  .foot-side { margin-top: 48px; gap: 32px; }
  .sign { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 64px; font-size: 40px; }
  .sign img { order: -1; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .ul-ghost, .hdr { transition: none; }
  .ul:hover .ul-ghost { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-split] .w > span, .js [data-reveal] { transform: none; opacity: 1; }
}
