/* MasInf UG: paper ground, navy instrument panels, amber indicator light. */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("assets/fonts/splinesansmono-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* paper */
  --paper: #F6F6F4;
  --paper-raised: #FFFFFF;
  --paper-deep: #ECEDEA;
  --rule: rgba(15, 27, 45, .09);
  --edge: rgba(15, 27, 45, .22);
  --ink: #0F1B2D;
  --text: #1F2A3B;
  --muted: #5A6475;

  /* instrument */
  --inst: #0F1B2D;
  --inst-deep: #0A1322;
  --inst-raised: #18263C;
  --inst-rule: rgba(255, 255, 255, .09);
  --inst-text: #E8ECF2;
  --inst-muted: #8E9AAE;

  /* lights */
  --amber: #F2A541;
  --amber-ink: #8A5207;
  --teal: #43C3B0;
  --mint: #D4F4E3;
  --mint-ink: #136B47;
  --sky: #DCE9FF;
  --sky-ink: #1D4E9E;

  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sect: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --lift-1: 0 1px 1px rgba(15,27,45,.05), 0 2px 4px rgba(15,27,45,.05), 0 8px 16px rgba(15,27,45,.05);
  --lift-2: 0 1px 2px rgba(15,27,45,.05), 0 6px 12px rgba(15,27,45,.06), 0 24px 40px rgba(15,27,45,.08), 0 48px 80px -20px rgba(15,27,45,.18);
  --cap: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(15,27,45,.14), 0 2px 4px rgba(15,27,45,.08);
  --cap-ink: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 0 rgba(0,0,0,.4), 0 3px 8px rgba(15,27,45,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.close :focus-visible, .inst :focus-visible { outline-color: var(--amber); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-weight: 220;
  font-stretch: 68%;
  font-size: clamp(3.3rem, 5.8vw, 5.25rem);
  line-height: .96;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.display b { font-weight: 640; }
.h2 {
  font-weight: 280;
  font-stretch: 72%;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: balance;
}
.h3 { font-weight: 650; font-size: clamp(1.5rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); }
.h4 { font-weight: 650; font-size: 1.15rem; color: var(--ink); }
.note { font-size: .875rem; color: var(--muted); }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted);
}
.kicker--dark { color: var(--inst-muted); }

.led {
  display: inline-block; flex: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 1px rgba(15,27,45,.18), 0 0 6px rgba(242,165,65,.7);
}
.led--teal { background: var(--teal); box-shadow: 0 0 0 1px rgba(15,27,45,.18), 0 0 6px rgba(67,195,176,.6); }

/* ---------- keycaps ---------- */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: 0 1.15rem;
  font: 600 .95rem/1 var(--sans);
  text-decoration: none; white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(var(--paper-raised), #F3F3F1);
  border: 1px solid var(--edge);
  border-radius: 8px;
  box-shadow: var(--cap);
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .2s;
}
.key:hover { transform: translateY(-1px); box-shadow: var(--cap), 0 6px 12px rgba(15,27,45,.08); }
.key:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(15,27,45,.16); }
.key--ink { color: #fff; background: linear-gradient(#1D2D47, var(--ink)); border-color: #050B15; box-shadow: var(--cap-ink); }
.key--ink:hover { box-shadow: var(--cap-ink), 0 8px 18px rgba(15,27,45,.25); }
.key--amber { color: var(--ink); background: linear-gradient(#F7BA66, var(--amber)); border-color: #C77F1E; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 0 rgba(120,70,0,.35), 0 3px 8px rgba(160,95,10,.25); }
.key--sm { min-height: 36px; padding: 0 .9rem; font-size: .875rem; }
.key--icon { width: 40px; min-height: 40px; padding: 0; }
.i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--edge); padding-bottom: 2px;
  transition: border-color .2s;
}
.link:hover { border-color: var(--amber); }
.link:hover .i { transform: translate(2px, -2px); }
.link .i { transition: transform .2s var(--ease); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.top__in { display: flex; align-items: center; gap: 2rem; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding: .7rem var(--gutter); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__name { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { font-size: .925rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: .35rem 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .top__in > .key { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero .display { margin-top: 1.4rem; }
.hero__lead { margin-top: 1.5rem; max-width: 34rem; font-size: 1.125rem; color: var(--muted); text-wrap: pretty; }

.index { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
.index__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: .25rem 1rem;
  padding: .8rem .25rem; border-bottom: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
  transition: background-color .25s;
}
.index__row::before {
  content: ""; position: absolute; left: 0; top: 20%; width: 3px; height: 60%;
  background: var(--amber); border-radius: 2px; transform: scaleY(0);
  transition: transform .3s var(--ease);
}
.index__row > span { transition: transform .3s var(--ease); }
.index__row.is-on > span:not(.index__tag), .index__row:hover > span:not(.index__tag) { transform: translateX(.65rem); }
.index__row.is-on::before { transform: scaleY(1); }
.index__name { font-weight: 650; color: var(--ink); font-size: 1.05rem; }
.index__what { color: var(--muted); font-size: .95rem; }
.index__tag {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .55rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* instrument window */
.inst {
  background: var(--inst);
  color: var(--inst-text);
  border-radius: 14px;
  border: 1px solid #050B15;
  box-shadow: var(--lift-2), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.inst__bar { display: flex; gap: 2px; padding: 6px 6px 0; background: var(--inst-deep); border-bottom: 1px solid var(--inst-rule); overflow-x: auto; scrollbar-width: none; }
.inst__tab {
  position: relative; display: flex; align-items: center; gap: .5rem;
  padding: .65rem .95rem .75rem; border: 0; border-radius: 8px 8px 0 0;
  background: transparent; color: var(--inst-muted);
  font-size: .8125rem; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.inst__tab .led { background: #3A4A63; box-shadow: none; transition: background-color .3s, box-shadow .3s; }
.inst__tab:hover { color: var(--inst-text); }
.inst__tab.is-on { background: var(--inst); color: #fff; }
.inst__tab.is-on .led { background: var(--amber); box-shadow: 0 0 6px rgba(242,165,65,.8); }
.inst__prog { position: absolute; left: .95rem; right: .95rem; bottom: 4px; height: 2px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.inst__prog::after { content: ""; position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }
.inst__tab.is-on .inst__prog::after { animation: prog var(--dur, 9s) linear forwards; }
.inst.is-paused .inst__tab.is-on .inst__prog::after { animation-play-state: paused; }
@keyframes prog { to { transform: scaleX(1); } }

.inst__stage { position: relative; height: clamp(360px, 34vw, 440px); }
.scene {
  position: absolute; inset: 0; padding: clamp(1rem, 2.4vw, 1.6rem);
  display: grid; gap: 1.25rem;
  opacity: 0; visibility: hidden;
  transform: translateY(8px); filter: blur(6px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease), visibility 0s .5s;
}
.scene.is-on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }

.inst__status {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; border-top: 1px solid var(--inst-rule);
  background: var(--inst-deep);
  font: 500 .75rem/1.3 var(--mono); color: var(--inst-muted);
}
.inst__msg::before { content: "› "; color: var(--amber); }
.inst__demo, .inst__demo-s { white-space: nowrap; }
.inst__demo-s { display: none; }

/* scene 1: code + phone */
.scene--web { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
.code {
  align-self: stretch;
  font: 400 clamp(.72rem, .95vw, .82rem)/1.75 var(--mono);
  color: #C9D3E2;
  white-space: pre;
  padding: 1rem 1.1rem;
  background: var(--inst-deep); border: 1px solid var(--inst-rule); border-radius: 10px;
  overflow: hidden;
}
.code .t { color: #7FB8FF; }
.code .a { color: #F2C27A; }
.code .s { color: #8FD6B4; }
.code .c { color: #5F6E86; }
.code .caret { display: inline-block; width: .55em; height: 1.1em; margin-bottom: -.2em; background: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mini-phone { position: relative; justify-self: center; width: min(100%, 190px); }
.mini-phone__screen {
  aspect-ratio: 1 / 2; border-radius: 22px; padding: 5px;
  background: #050B15; box-shadow: 0 0 0 1px var(--inst-rule), 0 20px 40px -20px #000;
  overflow: hidden;
}
.mini-phone__screen img {
  width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 17px;
  clip-path: inset(0 0 var(--reveal, 100%) 0);
  transition: clip-path .35s var(--ease);
}
.badge {
  position: absolute; left: 50%; bottom: -12px;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: var(--amber); color: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.6);
  opacity: 0; transform: translate(-50%, 6px) scale(.96);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.badge.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* scene 2: calendar */
.scene--drive { grid-template-rows: 1fr auto; }
.cal { background: #F7F9FC; color: var(--ink); border-radius: 10px; padding: .9rem; display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
.cal__head { display: flex; align-items: baseline; gap: .6rem; font-size: .9rem; }
.cal__head span { color: var(--muted); font-size: .8rem; }
.cal__grid { flex: 1; display: grid; grid-template-columns: auto repeat(5, 1fr); grid-auto-rows: 1fr; gap: 4px; min-height: 0; }
.cal__day, .cal__time { font-size: .68rem; font-weight: 600; color: var(--muted); display: grid; place-items: center; }
.cal__time { padding-right: .3rem; font-family: var(--mono); font-weight: 400; }
.slot {
  border-radius: 6px; padding: .25rem .4rem;
  font-size: .68rem; line-height: 1.2; font-weight: 600;
  background: var(--mint); color: var(--mint-ink);
  display: flex; flex-direction: column; justify-content: center;
  transition: background-color .35s, color .35s, transform .35s var(--ease);
}
.slot small { font-weight: 400; opacity: .8; font-size: .62rem; }
.slot--gone { background: #E7EAEF; color: #6B7586; }
.slot.is-booked { background: var(--sky); color: var(--sky-ink); animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.toast {
  justify-self: end; display: flex; align-items: center; gap: .6rem;
  padding: .55rem .85rem; border-radius: 10px;
  background: var(--inst-raised); border: 1px solid var(--inst-rule);
  font-size: .8rem; color: var(--inst-text);
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

/* scene 3: probe + DIN column */
.scene--geo { grid-template-columns: minmax(0, 1fr) 128px; }
.probe { display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
.probe__head { display: flex; justify-content: space-between; font-weight: 650; font-size: .9rem; }
.probe__depth { font-family: var(--mono); font-weight: 500; color: var(--amber); }
.probe__count { display: flex; align-items: baseline; gap: .6rem; }
.probe__count b { font: 300 3.2rem/1 var(--sans); font-stretch: 70%; color: #fff; font-variant-numeric: tabular-nums; min-width: 2ch; }
.probe__count span { font-size: .8rem; color: var(--inst-muted); }
.probe__rows { flex: 1; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; }
.probe__rows li {
  display: grid; grid-template-columns: 3.6rem 1fr; align-items: center; gap: .6rem;
  font: 400 .72rem/1 var(--mono); color: var(--inst-muted);
  animation: rowin .4s var(--ease);
}
.probe__rows li i { height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), #F7C680); transform-origin: left; animation: bar .5s var(--ease); }
.probe__rows li span:last-child { display: flex; align-items: center; gap: .5rem; }
.probe__rows li b { font-weight: 600; color: var(--inst-text); }
@keyframes rowin { from { opacity: 0; transform: translateY(-4px); } }
@keyframes bar { from { transform: scaleX(0); } }
.column { background: #F7F9FC; border-radius: 8px; padding: 10px 10px 10px 36px; position: relative; overflow: hidden; }
.column__layers { height: 100%; display: flex; flex-direction: column; }
.layer { position: relative; }
.layer__fill {
  position: absolute; inset: 0; border: 1px solid #0F1B2D; border-bottom: 0;
  clip-path: inset(0 0 100% 0); animation: dig .7s var(--ease) forwards;
}
.layer span { position: absolute; left: -32px; top: 3px; font: 500 .62rem/1 var(--mono); color: #0F1B2D; animation: rowin .4s .3s var(--ease) both; }
@keyframes dig { to { clip-path: inset(0 0 0 0); } }

/* ---------- sections ---------- */
.sect { padding-block: var(--sect); }
.sect--rule { border-top: 1px solid var(--rule); }
.sect--tight { padding-top: 0; }
.sect__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sect__lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
@media (max-width: 860px) { .sect__head { grid-template-columns: 1fr; } }

/* products */
.prod {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--lift-1);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--lift-2); }
.prod__vis img, .prod__vis .browser { transition: transform .8s var(--ease); }
.prod--web:hover .browser { transform: translateY(-6px); }
.prod--geo:hover .sheet { transform: translateY(.25rem) rotate(0deg); }
.prod__text { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; }
.prod__text > p:not(.prod__tag) { color: var(--muted); max-width: 38rem; }
.prod__tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.prod__text .link { margin-top: .5rem; align-self: flex-start; }
.checks { display: grid; gap: .45rem; font-size: .975rem; }
.checks li { position: relative; padding-left: 1.5rem; }
.checks li::before {
  content: ""; position: absolute; left: .1rem; top: .5em;
  width: .7rem; height: .38rem; border-left: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink);
  transform: rotate(-45deg);
}

.prod__vis--web {
  position: relative; padding: 1.5rem 4.5rem 1.5rem 1.5rem; background: var(--inst);
  height: clamp(250px, 21vw, 300px); display: grid; align-items: center; overflow: hidden;
}
.browser { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--lift-2); background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 5px; padding: .5rem .7rem; background: var(--paper-deep); border-bottom: 1px solid var(--rule); }
.browser__bar i { width: 8px; height: 8px; border-radius: 50%; background: #CDD1D8; }
.browser__bar span { margin-left: .6rem; font: 400 .7rem/1 var(--mono); color: var(--muted); background: #fff; padding: .3rem .6rem; border-radius: 5px; flex: 1; max-width: 220px; }
.phone {
  aspect-ratio: 1 / 2; border-radius: 26px; padding: 5px;
  background: var(--ink); box-shadow: var(--lift-2);
  overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 21px; background: #fff; }
.phone--float { position: absolute; right: 1rem; bottom: -2.5rem; width: clamp(96px, 8.5vw, 120px); }

.prod-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.prod-row .prod { display: flex; flex-direction: column; }
.prod-row .prod__text .link { margin-top: auto; padding-top: .5rem; }
.prod__vis--drive { padding: 1.5rem; background: var(--inst); height: clamp(250px, 21vw, 300px); display: grid; align-items: center; }
.film { position: relative; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #16181D; }
.film__play { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); }
.film__play:hover { transform: translate(-50%, -1px); }
.film.is-playing .film__play { display: none; }
.prod__vis--geo {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; align-items: end;
  padding: 1.5rem 1.5rem 0; background: var(--inst); position: relative;
  height: clamp(250px, 21vw, 300px); overflow: hidden;
}
.prod__vis--geo .phone { box-shadow: 0 20px 40px -20px #000; background: #050B15; }
.prod__vis--geo .phone--b { transform: translateY(2.5rem); }
.sheet { align-self: start; background: #fff; border-radius: 6px; padding: 6px; transform: translateY(1rem) rotate(1.5deg); }

@media (max-width: 1100px) {
  .prod-row { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .prod__vis--web, .prod__vis--drive, .prod__vis--geo { height: clamp(250px, 52vw, 340px); }
}

/* shelf of examples */
.shelf { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.shelf__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.shelf__nav { margin-left: auto; display: flex; gap: .5rem; }
.shelf__track {
  display: flex; gap: 1rem; overflow-x: auto;
  padding: 1.25rem max(var(--gutter), calc((100vw - var(--max)) / 2)) 1rem;
  scrollbar-width: none;
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track li { flex: 0 0 clamp(240px, 26vw, 340px); }
.shelf__track a { display: block; text-decoration: none; }
.shelf__track img {
  aspect-ratio: 720 / 490; object-fit: cover; object-position: top;
  border-radius: 10px; border: 1px solid var(--rule); box-shadow: var(--lift-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.shelf__track a:hover img { transform: translateY(-3px); box-shadow: var(--lift-2); }
.shelf__track span { display: flex; gap: .5rem; margin-top: .7rem; font-size: .875rem; color: var(--muted); }
.shelf__track b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .shelf__nav { display: none; } }

/* steps: one track per product family */
.track + .track { margin-top: clamp(3rem, 6vw, 4.5rem); }
.track__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.track__name { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.15rem; font-weight: 650; color: var(--ink); }
.track__mode { margin-left: .35rem; padding: .15rem .55rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.track__link { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.track__link:hover { color: var(--ink); }
/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--edge); }
.steps li { position: relative; padding-right: 1.5rem; }
.steps__n {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 8px;
  font: 600 .9rem/1 var(--mono); color: var(--ink);
  background: linear-gradient(var(--paper-raised), #F1F1EE); border: 1px solid var(--edge); box-shadow: var(--cap);
}
.steps li:first-child .steps__n { background: linear-gradient(#F7BA66, var(--amber)); border-color: #C77F1E; }
.steps h4 { margin-top: 1.25rem; font-size: 1.15rem; font-weight: 650; color: var(--ink); }
.steps p { margin-top: .4rem; color: var(--muted); font-size: .975rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 0; }
  .steps::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.portrait { position: sticky; top: 6rem; max-width: 360px; }
.portrait__ph {
  aspect-ratio: 4 / 5; border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(15,27,45,.035) 14px 15px),
    var(--paper-deep);
  border: 1px dashed var(--edge);
  display: grid; place-items: center; align-content: center; gap: .75rem;
  color: rgba(15,27,45,.28);
}
.portrait__ph svg { width: 34%; }
.portrait__ph span { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.portrait img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait figcaption { margin-top: 1rem; display: flex; flex-direction: column; font-size: .925rem; color: var(--muted); }
.portrait figcaption b { color: var(--ink); font-size: 1.05rem; }
.about__lead { margin-top: 1.5rem; font-size: 1.15rem; color: var(--text); max-width: 40rem; }
.facts { margin-top: 2.25rem; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { color: var(--muted); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .portrait { position: static; max-width: 320px; }
  .facts div { grid-template-columns: 1fr; gap: .2rem; }
}

/* partner */
.partner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(242,165,65,.2), rgba(242,165,65,.08));
  border: 1px solid rgba(242,165,65,.45);
}
.partner p { margin-top: 1rem; max-width: 44rem; color: var(--text); }
.partner .note { margin-top: .6rem; color: var(--amber-ink); }
@media (max-width: 760px) { .partner { grid-template-columns: 1fr; } .partner .key { justify-self: start; } }

/* close */
.close {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(242,165,65,.10), transparent 60%),
    var(--inst);
  color: var(--inst-text);
  padding-block: clamp(5rem, 11vw, 9rem);
}
.close .display { color: #fff; margin-top: 1.25rem; max-width: 14em; }
.display--close { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.close__mail {
  display: inline-block; margin-top: 2.25rem;
  font: 500 clamp(1rem, 2.4vw, 1.7rem)/1.3 var(--mono);
  color: var(--amber); text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 1px solid rgba(242,165,65,.5); padding-bottom: .2rem;
  transition: color .2s, border-color .2s;
}
.close__mail:hover { color: #fff; border-color: #fff; }
.close__note { margin-top: 1.25rem; color: var(--inst-muted); }
.close__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.close__chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 600;
  background: var(--inst-raised); border: 1px solid var(--inst-rule);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .2s, background-color .2s;
}
.close__chips a:hover { border-color: var(--amber); }
.close__addr { margin-top: 3rem; font-style: normal; font-size: .875rem; color: var(--inst-muted); }

.foot { background: var(--inst-deep); color: var(--inst-muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; font-size: .875rem; }
.foot nav { display: flex; gap: 1.5rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* ---------- hero responsive ---------- */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  /* phones: the instrument comes right after the lead, inside the first screen */
  .hero__copy { display: contents; }
  .hero__copy > .kicker { order: 1; }
  .hero .display { order: 2; }
  .hero__lead { order: 3; }
  .inst { order: 4; margin-top: 1.75rem; }
  .index { order: 5; margin-top: 2rem; }
  .hero__actions { order: 6; }
  .inst__stage { height: clamp(340px, 60vw, 440px); }
}
@media (max-width: 520px) {
  .index__row { grid-template-columns: 1fr auto; }
  .index__what { grid-column: 1; grid-row: 2; }
  .index__tag { grid-row: 1; grid-column: 2; }
  .scene--web { grid-template-columns: 1fr 104px; gap: .75rem; }
  .scene--geo { grid-template-columns: 1fr 92px; }
  .inst__demo { display: none; }
  .inst__demo-s { display: inline; }
  .inst__tab { padding-inline: .7rem; }
  .prod__vis--geo .sheet { display: none; }
  .prod__vis--geo { grid-template-columns: 1fr 1fr; }
}

/* ---------- entrance (content visible by default) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .9s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__copy > :nth-child(5) { animation-delay: .24s; }
  .inst { animation: rise 1.1s .2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
}


/* ---------- motion in the product section ---------- */
@media (prefers-reduced-motion: no-preference) {
  .phone--float { animation: bob 6s ease-in-out infinite; }
  .prod__vis--geo .phone { animation: bob 5.5s ease-in-out infinite; }
  .prod__vis--geo .phone--b { animation: bob-b 6.5s ease-in-out -2s infinite; }
  .prod__vis--geo .sheet { animation: sway 8s ease-in-out infinite; }
  .prod--geo:hover .sheet { animation-play-state: paused; }

  /* scroll reveal: set by JS only on elements that start below the fold */
  .will-rise { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  .will-rise.is-in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
}
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes bob-b { 0%, 100% { transform: translateY(2.5rem); } 50% { transform: translateY(calc(2.5rem - 10px)); } }
@keyframes sway { 0%, 100% { transform: translateY(1rem) rotate(1.5deg); } 50% { transform: translateY(.4rem) rotate(.5deg); } }

/* ---------- legal pages ---------- */
.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal .wrap { max-width: calc(46rem + 2 * var(--gutter)); }
.legal h1 { margin-top: 1rem; font-weight: 250; font-stretch: 70%; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--ink); }
.legal h2 { margin-top: 2.5rem; font-size: 1.1rem; font-weight: 650; color: var(--ink); }
.legal p, .legal li { margin-top: .75rem; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal a { color: var(--ink); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }
