/* BlackOrbit — v3
   Square, dark, glass. Inter Tight + Geist Mono.
   ------------------------------------------------------------------ */

:root {
  --bg: #060606;
  --fg: #edebe6;
  --fg-2: rgba(237, 235, 230, .62);
  --fg-3: rgba(237, 235, 230, .38);
  --line: rgba(237, 235, 230, .09);
  --line-2: rgba(237, 235, 230, .16);

  --glass: rgba(20, 20, 20, .46);
  --glass-hi: rgba(28, 28, 28, .58);
  --blur: blur(26px) saturate(165%);

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol { margin: 0; }
ol { padding: 0; list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--fg); color: var(--bg);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Backdrop: WebGL + column guides ---------- */

.gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  opacity: 0;
}

.guides {
  position: fixed; inset: 0;
  z-index: 1;
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
}
.guides i { border-left: 1px solid rgba(237, 235, 230, .035); }
.guides i:last-child { border-right: 1px solid rgba(237, 235, 230, .035); }

main, .footer { position: relative; z-index: 2; }

/* ---------- Decrypt text (hover scramble, see main.js) ---------- */

.roll { display: inline-block; white-space: nowrap; }
.roll > span { display: inline-block; }
.scr-g { color: var(--fg-3); }
.btn--solid .scr-g { color: rgba(6, 6, 6, .45); }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 20px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn--solid {
  background: var(--fg);
  color: var(--bg);
  padding-right: 6px;
}
.btn--solid:hover { background: #fff; }
.btn--glass {
  background: rgba(237, 235, 230, .04);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.btn--glass:hover { border-color: rgba(237, 235, 230, .4); background: rgba(237, 235, 230, .08); }

.btn__ico {
  position: relative;
  width: 34px; height: 34px;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  flex: none;
}
.btn__ico svg {
  position: absolute;
  inset: 0; margin: auto;
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  transition: transform .55s var(--ease);
}
.btn__ico svg + svg { transform: translate(-200%, 200%); }
.btn:hover .btn__ico svg:first-child { transform: translate(200%, -200%); }
.btn:hover .btn__ico svg + svg { transform: none; }

.btn--sm { height: 40px; font-size: 13.5px; padding-left: 16px; padding-right: 4px; gap: 12px; }
.btn--sm .btn__ico { width: 32px; height: 32px; }

/* ---------- Shared glass hairline ---------- */

.top::before,
.side::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  background: linear-gradient(180deg, rgba(237, 235, 230, .2), rgba(237, 235, 230, .05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* ---------- Sidebar (desktop) ---------- */

:root { --rail: 0px; }

.side {
  position: fixed;
  top: 12px; bottom: 12px; left: 12px;
  z-index: 50;
  width: 236px;
  display: none;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: linear-gradient(180deg, rgba(24, 24, 24, .5), rgba(12, 12, 12, .42));
  -webkit-backdrop-filter: blur(32px) saturate(170%);
  backdrop-filter: blur(32px) saturate(170%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
}
html.js .side { opacity: 0; transform: translateX(-16px); }
html.is-ready .side { opacity: 1; transform: none; }

.side__logo { display: block; align-self: flex-start; padding: 4px 0; }
.side__logo img { height: 17px; width: auto; }

.side__nav {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.side__nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--fg-3);
  transition: color .4s var(--ease), padding-left .6s var(--ease);
}
.side__nav a::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  background: var(--fg);
  transform: translateY(-50%) scale(0);
  transition: transform .5s var(--ease);
}
.side__nav a:hover { color: var(--fg-2); }
.side__nav a.is-active { color: var(--fg); padding-left: 16px; }
.side__nav a.is-active::before { transform: translateY(-50%) scale(1); }
/* the row's hairline doubles as a reading-progress bar */
.side__nav i {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
}
.side__nav i b {
  position: absolute; inset: 0;
  background: rgba(237, 235, 230, .55);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

.side__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}
.side__note { font-size: 13.5px; line-height: 1.45; color: var(--fg-3); max-width: 20ch; }
.side__mail { font-size: 13.5px; color: var(--fg-2); align-self: flex-start; transition: color .3s var(--ease); }
.side__mail:hover { color: var(--fg); }
.side__cta { justify-content: space-between; margin-top: 6px; height: 46px; padding-left: 16px; padding-right: 6px; }
.side__cta .btn__ico { width: 34px; height: 34px; }

/* ---------- Top bar (below desktop) ---------- */

.top {
  position: fixed;
  top: 10px; left: 10px; right: 10px;
  z-index: 50;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 18px;
  background: linear-gradient(180deg, rgba(26, 26, 26, .55), rgba(14, 14, 14, .45));
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8);
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
html.js .top { opacity: 0; transform: translateY(-12px); }
html.is-ready .top { opacity: 1; transform: none; }
html.is-ready .top.is-hidden { transform: translateY(-90px); }
.top__logo { display: block; }
.top__logo img { height: 16px; width: auto; }
.top__end { display: flex; align-items: center; gap: 8px; }
.top__cta { height: 40px; padding-left: 16px; padding-right: 4px; }
.top__cta .btn__ico { width: 32px; height: 32px; }

@media (min-width: 1100px) {
  :root { --rail: 260px; }
  .side { display: flex; }
  .top { display: none; }
  main, .footer { margin-left: var(--rail); }
  .guides { left: var(--rail); width: min(var(--max), 100% - var(--rail) - var(--gutter) * 2); }
}

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

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 4px 0 14px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.nav__toggle i {
  position: relative;
  width: 32px; height: 32px;
  background: var(--fg);
}
.nav__toggle i::before, .nav__toggle i::after {
  content: "";
  position: absolute; left: 10px; right: 10px;
  height: 1.4px;
  background: var(--bg);
  transition: transform .5s var(--ease);
}
.nav__toggle i::before { top: 13px; }
.nav__toggle i::after { top: 18px; }
html.menu-open .nav__toggle i::before { transform: translateY(2.5px) rotate(45deg); }
html.menu-open .nav__toggle i::after { transform: translateY(-2.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: 120px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: rgba(6, 6, 6, .62);
  -webkit-backdrop-filter: blur(34px) saturate(150%);
  backdrop-filter: blur(34px) saturate(150%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
html.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
html.menu-open { overflow: hidden; }
.menu__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu__links a {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
html.menu-open .menu__links a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i) * 60ms + 80ms);
}
.menu__mail { color: var(--fg-2); font-size: 15px; }

/* ---------- Type scale ---------- */

.d1 {
  font-size: clamp(3.4rem, 8.6vw, 10.5rem);
  line-height: .88;
  letter-spacing: -.058em;
  font-weight: 400;
}
.d2 {
  font-size: clamp(2.4rem, 6vw, 6.6rem);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 400;
}
.h2 {
  font-size: clamp(2.3rem, 4.6vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.048em;
  font-weight: 400;
}
/* ---------- Intro (page load) ---------- */

html.js .rise {
  opacity: 0;
  translate: 0 36px;
  filter: blur(10px);
}
html.is-ready .rise {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
  transition:
    opacity 1.2s var(--ease) calc(var(--d, 0) * 110ms + 120ms),
    translate 1.4s var(--ease) calc(var(--d, 0) * 110ms + 120ms),
    filter 1.2s var(--ease) calc(var(--d, 0) * 110ms + 120ms);
}

/* ---------- Hero ---------- */

.hero { position: relative; height: 320vh; }
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.hero__inner {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr;
  padding: 110px 0 0;
}
.hero__copy {
  display: grid;
  align-items: end;
  padding-bottom: 12vh;
}
.hero__copy > .stage {
  grid-area: 1 / 1;
  will-change: opacity, transform;
}
.hero__copy .d1 .line { display: block; }
.hero__copy p.stage { max-width: 12ch; }
html.js .hero__copy p.stage { opacity: 0; }
html:not(.js) .hero__copy p.stage { display: none; }

.hero__row {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  margin-top: 44px;
}
.lede {
  max-width: 34ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.5;
  color: var(--fg-2);
}
.hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: clamp(110px, 17vh, 200px) 0; }

.head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 32px 48px;
  margin-bottom: 64px;
}
.head__intro { justify-self: end; max-width: 34ch; color: var(--fg-2); }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  perspective: 1400px;
}

.card {
  --mx: 50%; --my: 50%;
  --rx: 0deg; --ry: 0deg;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 24px 28px 30px;
  background: linear-gradient(160deg, rgba(30, 30, 30, .5), rgba(12, 12, 12, .42) 60%);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 30px 60px -30px rgba(0, 0, 0, .8);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: flat;
  transition: transform .8s var(--ease), background-color .5s var(--ease);
  overflow: hidden;
}
.card.is-hover { transition: transform .15s linear; }

.fx { position: absolute; inset: 0; pointer-events: none; z-index: -1; }

.fx--spot {
  background: radial-gradient(560px circle at var(--mx) var(--my), rgba(237, 235, 230, .085), transparent 45%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.fx--grid {
  background-image: radial-gradient(rgba(237, 235, 230, .28) .8px, transparent 1.2px);
  background-size: 12px 12px;
  background-position: 6px 6px;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 72%);
  mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000, transparent 72%);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.fx--edge {
  z-index: 1;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(237, 235, 230, .7), rgba(237, 235, 230, 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.fx--corners {
  --c: var(--fg);
  --l: 10px;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 1px,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--l);
  background-repeat: no-repeat;
  opacity: .32;
  transition: inset .6s var(--ease), opacity .6s var(--ease);
}

.card:hover .fx--spot,
.card:hover .fx--edge { opacity: 1; }
.card:hover .fx--grid { opacity: .9; }
.card:hover .fx--corners { inset: 10px; opacity: .9; }

.card__top {
  display: flex;
  justify-content: flex-end;
}
.card__ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--fg);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.card__ico svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  transition: transform .55s var(--ease);
}
.card:hover .card__ico { background: var(--fg); color: var(--bg); box-shadow: none; }
.card:hover .card__ico svg { transform: rotate(45deg); }

.schematic {
  width: min(100%, 300px);
  height: auto;
  margin: auto;
  padding: 28px 0;
  overflow: visible;
  fill: none;
  stroke: rgba(237, 235, 230, .34);
  stroke-width: 1;
  transition: stroke .6s var(--ease);
}
.schematic * { vector-effect: non-scaling-stroke; transition: transform .9s var(--ease), stroke .6s var(--ease), fill .6s var(--ease); }
.card:hover .schematic { stroke: rgba(237, 235, 230, .6); }

/* product: stacked windows slide apart */
.s-product .a { stroke: rgba(237, 235, 230, .18); }
.s-product .c { fill: rgba(6, 6, 6, .9); }
.s-product .e { fill: var(--fg); stroke: none; }
.card:hover .s-product .a { transform: translate(-10px, -8px); }
.card:hover .s-product .c { transform: translate(-8px, 6px); }
.card:hover .s-product .d { transform: translate(-8px, 6px); }
.card:hover .s-product .e { transform: translate(8px, 6px); }

/* ai: signal travels the graph */
.s-ai .l { stroke-dasharray: 4 4; }
.s-ai .n { fill: var(--bg); }
.s-ai .k { fill: var(--fg); stroke: none; }
.card:hover .s-ai .l { animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }

/* cloud: layers separate */
.s-cloud .p1 { fill: rgba(6, 6, 6, .5); }
.s-cloud .p2 { fill: rgba(6, 6, 6, .5); }
.s-cloud .p3 { fill: rgba(237, 235, 230, .05); }
.card:hover .s-cloud .p1 { transform: translateY(-10px); }
.card:hover .s-cloud .p3 { transform: translateY(8px); }
.card:hover .s-cloud .p1 { stroke: rgba(237, 235, 230, .8); }

/* lab: probe orbits */
.s-lab .x { stroke: rgba(237, 235, 230, .14); }
.s-lab .c2 { stroke-dasharray: 2 4; }
.s-lab .m { fill: var(--fg); stroke: none; transform-origin: 120px 60px; transform-box: view-box; }
.card:hover .s-lab .m { transform: rotate(180deg); }

.card__body h3 {
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.card__body p { color: var(--fg-2); max-width: 40ch; }
.card__body .card__tags { font-size: 13.5px; color: var(--fg-3); margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Approach ---------- */

.approach {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
}
.approach__sticky { position: sticky; top: 140px; }
.approach__intro { max-width: 30ch; margin-top: 28px; color: var(--fg-2); }
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 40px;
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--line);
}
.step h3 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--fg-3);
  transition: color .6s var(--ease);
}
.step p {
  max-width: 36ch;
  color: var(--fg-3);
  transition: color .6s var(--ease);
}
.step.is-active h3 { color: var(--fg); }
.step.is-active p { color: var(--fg-2); }

/* ---------- Principles ---------- */

.statement {
  max-width: 21ch;
  font-size: clamp(2.1rem, 4.6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.statement .w { opacity: .16; transition: opacity .4s linear; }
.statement .w.on { opacity: 1; }

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line);
}
.pgrid > div { padding: 28px 32px 0; border-left: 1px solid var(--line); }
.pgrid > div:first-child { border-left: 0; padding-left: 0; }
.pgrid h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -.03em;
}
.pgrid p { color: var(--fg-2); max-width: 34ch; }

/* ---------- Contact ---------- */

.contact { padding-bottom: clamp(80px, 12vh, 140px); }
.contact__title { max-width: 10ch; }

.panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 72px;
  padding: 34px 34px 34px 36px;
  background: linear-gradient(160deg, rgba(30, 30, 30, .52), rgba(12, 12, 12, .42));
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 30px 60px -30px rgba(0, 0, 0, .8);
}
.panel .fx--corners { opacity: .6; }
.panel__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel__mail {
  font-size: clamp(1.5rem, 3.6vw, 3.2rem);
  letter-spacing: -.04em;
  line-height: 1.1;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--fg), var(--fg)) left bottom / 0 1px no-repeat;
  transition: background-size .7s var(--ease);
  padding-bottom: 4px;
}
.panel__mail:hover { background-size: 100% 1px; }
.panel__actions { display: flex; gap: 8px; flex: none; }

/* ---------- Footer ---------- */

@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

.footer {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(96px, 14vh, 160px) 0 26px;
}
/* a low, soft light rising from under the wordmark */
.footer::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -30%;
  width: 110%; height: 75%;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgba(237, 235, 230, .06), transparent);
  pointer-events: none;
}

.footer__top {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
  gap: 48px;
  align-items: start;
}
.footer__lead {
  max-width: 17ch;
  font-size: clamp(1.8rem, 2.9vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-bottom: 6px;
  font-size: 1.05rem;
  color: var(--fg-2);
  background: linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat;
  transition: color .3s var(--ease);
}
.footer__mail:hover { color: var(--fg); }
.footer__arrow { display: inline-block; transition: transform .5s var(--ease); }
.footer__mail:hover .footer__arrow { transform: translate(3px, -3px); }

.footer__h {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col a {
  align-self: flex-start;
  font-size: 15.5px;
  color: var(--fg-2);
  transition: color .3s var(--ease);
}
.footer__col a:hover { color: var(--fg); }

/* Wordmark: a dim base, and a lit copy revealed by a soft light (cursor or slow sweep). */
.footer__mark {
  position: relative;
  display: block;
  margin-top: clamp(96px, 15vh, 170px);
  overflow: hidden;
}
.footer__logo {
  display: block;
  width: 100%;
  height: auto;
  translate: 0 70%;
  transition: translate 1.8s var(--ease);
}
.footer__mark .footer__logo:first-child { opacity: .1; }
.footer__logo--lit {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(38% 120% at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
  mask-image: radial-gradient(38% 120% at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .35) 45%, transparent 75%);
  animation: sweep 9s var(--ease-io) infinite alternate paused;
}
.footer.in-view .footer__logo { translate: 0 0; }
.footer.in-view .footer__mark:not(.is-live) .footer__logo--lit { animation-play-state: running; }
.footer__mark.is-live .footer__logo--lit { animation: none; }
@keyframes sweep {
  from { --mx: 8%; --my: 40%; }
  to   { --mx: 92%; --my: 60%; }
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-3);
}
.footer__domain { text-align: center; }
.footer__up {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
  transition: color .3s var(--ease);
}
.footer__up svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  transition: transform .5s var(--ease);
}
.footer__up:hover { color: var(--fg); }
.footer__up:hover svg { transform: translateY(-3px); }

/* ---------- Scroll reveal ---------- */

html.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  filter: blur(8px);
}
html.js [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
  filter: blur(0);
  transition:
    opacity 1s var(--ease) calc(var(--d, 0) * 100ms),
    translate 1.2s var(--ease) calc(var(--d, 0) * 100ms),
    filter 1s var(--ease) calc(var(--d, 0) * 100ms),
    transform .8s var(--ease);
}
html.js .card[data-reveal].is-in.is-hover { transition: opacity 1s, translate 1.2s, filter 1s, transform .15s linear; }

/* Headings: each line slides up from behind a mask. */
html.js .split[data-reveal] { opacity: 1; translate: none; filter: none; }
.split .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split .ln > span { display: block; }
html.js .split .ln > span { translate: 0 105%; }
html.js .split.is-in .ln > span {
  translate: 0 0;
  transition: translate 1.3s var(--ease) calc(var(--l, 0) * 90ms + var(--d, 0) * 100ms);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  :root { --blur: blur(18px) saturate(160%); }
  .top__cta { display: none; }

  .guides { grid-template-columns: repeat(2, 1fr); }
  .guides i:nth-child(n + 3) { display: none; }
  .guides i:nth-child(2) { border-right: 1px solid rgba(237, 235, 230, .035); }

  .hero { height: 300vh; }
  .hero__inner { padding: 88px 0 0; }
  .hero__copy { padding-bottom: 6vh; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 28px; }

  .head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .head__intro { justify-self: start; }

  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 22px 22px 26px; }
  .schematic { width: min(100%, 260px); }

  .approach { grid-template-columns: 1fr; gap: 24px; }
  .approach__sticky { position: static; }
  .step { grid-template-columns: 1fr; padding: 40px 0 44px; }

  .pgrid { grid-template-columns: 1fr; }
  .pgrid > div, .pgrid > div:first-child { border-left: 0; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }

  .panel { flex-direction: column; align-items: stretch; padding: 26px 22px 22px; }
  .panel__actions { flex-wrap: wrap; }
  .panel__actions .btn { flex: 1 1 auto; justify-content: space-between; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 56px 24px; }
  .footer__intro { grid-column: 1 / -1; }
  .footer__bottom { grid-template-columns: 1fr auto; }
  .footer__domain { display: none; }
}

@media (hover: none) {
  .footer__mark .footer__logo:first-child { opacity: .16; }
  .card .fx--spot, .card .fx--grid, .card .fx--edge { display: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top, .side, .card, .panel { background: rgba(16, 16, 16, .94); }
  .menu { background: rgba(6, 6, 6, .97); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  html.js .rise, html.js [data-reveal], html.js .split .ln > span, .footer__logo { opacity: 1; translate: none; filter: none; }
  .card { transform: none !important; }
}
