/* ==========================================================================
   Microo landing page. Page-local styles on top of the scrollcraft floor.
   Brand: graphite + petrol, Rethink Sans (brand kit v3, OFL).
   ========================================================================== */

@font-face { font-family: "Rethink Sans"; src: url("assets/fonts/RethinkSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("assets/fonts/RethinkSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("assets/fonts/RethinkSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Per-frame variables that only their own element reads. Registered as
   non-inheriting so a scroll frame restyles one element, not its subtree.
   --sc-p is the engine's act progress; nothing here reads it from CSS. */
@property --sc-p { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --tilt { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --yaw { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --pill-o { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --lift { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --wry { syntax: '<number>'; inherits: false; initial-value: 14; }
@property --wy { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --ci-t { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ci-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ci-b { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ci-l { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --ci-r0 { syntax: '<length>'; inherits: false; initial-value: 30px; }
@property --h { syntax: '<number>'; inherits: false; initial-value: 0.12; }

:root {
  --sc-canvas:     #11181c;
  --sc-surface:    #1a242a;
  --sc-ink:        #f0f2f5;
  --sc-ink-soft:   #b2bdc6;
  --sc-accent:     #44d7d4;
  --sc-accent-ink: #0b1a1b;
  --sc-font-display: "Rethink Sans", system-ui, sans-serif;
  --sc-font-text:    "Rethink Sans", system-ui, sans-serif;
  --sc-shadow-color: 200 45% 3%;

  /* brand tokens from desktop/src/theme.hpp */
  --panel:    #202b31;
  --line:     #39494f;
  --control:  #26343c;
  --hover:    #2e424a;
  --selected: #27595f;
  --ink-dim:  #8d9aa3;

  --dock-h: 58px;
  --dock-b: max(18px, env(safe-area-inset-bottom));
  --r-win: 18px;
}

body { font-weight: 400; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; }
.dot { color: var(--sc-accent); }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform var(--sc-d-fast) var(--sc-ease-out);
}
.skip:focus-visible { transform: none; }

/* ------------------------------------------------------------- keycaps -- */
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.6em; height: 2.15em; padding: 0 0.7em;
  font: 500 0.95rem/1 var(--sc-font-text);
  color: var(--sc-ink);
  background: linear-gradient(180deg, #2a3940, #212d33);
  border: 1px solid #3f5158; border-bottom-color: #2a383e;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 2px 0 #121a1e, 0 6px 14px -6px hsl(var(--sc-shadow-color) / 0.7);
}
.keys { display: flex; align-items: center; gap: 0.45rem; margin: 0; color: var(--ink-dim); }
.keys__space { min-width: 6.4em; }

/* ------------------------------------------------------------ masthead -- */
.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(18px, 3.2vh, 34px) var(--sc-gutter);
}
.masthead__mark { display: inline-flex; color: var(--sc-ink); border-radius: 6px; }
.masthead__mark svg { width: clamp(104px, 9vw, 132px); height: auto; aspect-ratio: 1186 / 272; }
.masthead__link {
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft); text-decoration: none;
  padding: 8px 2px; transition: color var(--sc-d-fast) var(--sc-ease-out);
}
@media (hover: hover) { .masthead__link:hover { color: var(--sc-ink); } }

/* ================================================================ HERO == */
.hero__stage { background: #0c1316; isolation: isolate; }
.hero__plate, .hero__plate img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none;
}
.hero__plate {
  z-index: 0;
  transform-origin: 50% 80%;
  transform: scale(calc(1.02 + var(--push, 0) * 0.13)) translateY(calc(var(--push, 0) * -1.5vh));
  will-change: transform;
}
/* a second, living light pool: breathes with scroll speed, sits on the floor */
.hero__pool {
  position: absolute; z-index: 1; left: 50%; top: 70%; width: 70vw; height: 26vh;
  translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(68 215 212 / 0.20), rgb(68 215 212 / 0.06) 55%, transparent);
  opacity: calc(0.35 + var(--voice, 0) * 0.65 + var(--rings, 0) * 0.3);
  transform: scale(calc(0.92 + var(--push, 0) * 0.18));
  transition: opacity 420ms var(--sc-ease-out);
}
.hero__dust { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }

.hero__title {
  position: absolute; z-index: 2; left: 0; right: 0; top: 20.5vh;
  margin: 0; text-align: center;
  font-size: clamp(3.4rem, 7.9vw, 9.6rem);
  line-height: 0.96; letter-spacing: -0.048em; font-weight: 600;
  color: var(--sc-ink);
  transform-origin: 50% 0;
  transform: translateY(calc(var(--title-y, 0) * -1vh)) scale(var(--title-s, 1));
  opacity: var(--title-o, 1);
  will-change: transform, opacity;
}
.hero__lede {
  position: absolute; z-index: 8; left: var(--sc-gutter); bottom: calc(var(--dock-h) + var(--dock-b) + clamp(2.4rem, 7vh, 5rem));
  max-width: 21rem; margin: 0;
  font-size: var(--sc-t-lg); line-height: 1.42; letter-spacing: -0.012em; color: var(--sc-ink-soft);
  opacity: var(--lede-o, 1);
}

.hero__subject {
  position: absolute; z-index: 3; left: 50%; bottom: 3.5vh;
  width: min(70vh, 58vw); aspect-ratio: 1;
  translate: -50% 0;
  transform-origin: 50% 88%;
  transform: translateY(calc(var(--press, 0) * 1.1vh - var(--grow, 0) * 2vh)) scale(calc(1 + var(--grow, 0) * 0.32));
  will-change: transform;
}
.hero__bird { position: relative; z-index: 2; width: 100%; height: 100%; max-width: none; }
.hero__shadow {
  position: absolute; z-index: 1; left: 4%; right: 4%; bottom: 6.5%; height: 10%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(2 7 9 / 0.85), rgb(2 7 9 / 0.4) 55%, transparent 75%);
  filter: blur(4px);
}
.hero__rings { position: absolute; z-index: 1; left: 50%; top: 31%; width: 82%; translate: -52% -50%; overflow: visible; }
.hero__rings .ring { opacity: 0; transform-box: fill-box; }
.hero__rings .ring--1 { opacity: calc(var(--r1, 0) * 0.95); }
.hero__rings .ring--2 { opacity: calc(var(--r2, 0) * 0.7); }
.hero__rings .ring--3 { opacity: calc(var(--r3, 0) * 0.45); }
.hero__rings g { transform-origin: 200px 180px; transform: scale(calc(0.86 + var(--rings, 0) * 0.22)); }

.hero__key { position: absolute; z-index: 7; max-width: none; height: auto; pointer-events: none; will-change: transform; }
.hero__key--a {
  width: clamp(12rem, 20vw, 25rem); left: -6vw; top: 27vh;
  transform: translate(calc(var(--push, 0) * -16vw), calc(var(--push, 0) * -22vh)) scale(calc(1 + var(--push, 0) * 0.6)) rotate(calc(var(--push, 0) * -10deg));
}
.hero__key--b {
  width: clamp(16rem, 30vw, 36rem); right: -7vw; bottom: -10vh;
  transform: translate(calc(var(--push, 0) * 16vw), calc(var(--push, 0) * 18vh)) scale(calc(1 + var(--push, 0) * 0.5)) rotate(calc(var(--push, 0) * 7deg));
}

.hero__beat {
  position: absolute; z-index: 8; left: var(--sc-gutter); top: 45vh;
  max-width: 19rem; opacity: 0;
}
.hero__beat .keys { margin-bottom: var(--sc-4); }
/* density only where the second beat sits, so a ring or haze passing behind
   the copy never costs it contrast. A sibling, never a child of the copy. */
.hero__scrim {
  position: absolute; z-index: 7; left: 0; top: 28vh; width: min(46vw, 40rem); height: 52vh; pointer-events: none;
  background: radial-gradient(62% 56% at 30% 50%, rgb(10 16 19 / 0.82), rgb(10 16 19 / 0.45) 55%, transparent 78%);
  opacity: var(--scrim-o, 0);
}
.hero__beat-line { margin: 0; font-size: var(--sc-t-lg); line-height: 1.42; color: var(--sc-ink); letter-spacing: -0.012em; }

/* ================================================================ TYPE == */
.type__stage { display: grid; align-items: start; background: transparent; }
.type__inner { padding-top: 24vh; }
.type__mode {
  position: relative; display: block; height: 1.6em; margin: 0 0 var(--sc-6);
  font-size: var(--sc-t-sm); letter-spacing: 0.02em; color: var(--sc-ink-soft);
}
.type__mode > span {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 0.55em;
  transition: opacity 260ms var(--sc-ease-out), transform 260ms var(--sc-ease-out);
}
.type__mode-b { color: var(--sc-accent); opacity: 0; transform: translateY(6px); }
.type.is-spoken .type__mode-a { opacity: 0; transform: translateY(-6px); }
.type.is-spoken .type__mode-b { opacity: 1; transform: none; }

.type__line {
  margin: 0; max-width: 16.5ch;
  font-size: clamp(2.3rem, 6.3vw, 6.8rem); line-height: 1.03; letter-spacing: -0.042em; font-weight: 600;
}
.type__typed { color: var(--ink-dim); }
.type__caret {
  display: inline-block; width: 0.06em; height: 0.92em; margin: 0 0.04em 0 0.02em;
  vertical-align: -0.1em; background: var(--sc-accent); border-radius: 2px;
  animation: caret 1.05s steps(1) infinite;
}
.type.is-typing .type__caret { animation: none; }
.type.is-spoken .type__caret { opacity: 0; animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.type__spoken > span { display: inline-block; color: var(--sc-ink); opacity: 0; transform: translateY(0.18em); transition: opacity 320ms var(--sc-ease-out), transform 420ms var(--sc-ease-out); }
.type.is-spoken .type__spoken > span { opacity: 1; transform: none; }
.type.is-spoken .type__spoken > span:nth-child(2) { transition-delay: 40ms; }
.type.is-spoken .type__spoken > span:nth-child(3) { transition-delay: 80ms; }
.type.is-spoken .type__spoken > span:nth-child(4) { transition-delay: 120ms; }
.type.is-spoken .type__spoken > span:nth-child(5) { transition-delay: 160ms; }
.type__after {
  margin: var(--sc-7) 0 0; max-width: 34rem; font-size: var(--sc-t-lg); line-height: 1.45; color: var(--sc-ink-soft);
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 420ms var(--sc-ease-out), transform 560ms var(--sc-ease-out);
}
/* its own scroll step after the spoken half, then held while the act stays pinned */
.type.is-after .type__after { opacity: 1; transform: none; }

/* ================================================================ DEMO == */
/* One monitor, the apps sliding through it, the words on the right. */
.demo__stage { display: flex; align-items: center; }
.demo__grid {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: center;
  gap: clamp(2rem, 4.5vw, 5rem); max-width: calc(88rem + 2 * var(--sc-gutter)); width: 100%;
}

/* the monitor: thin dark aluminium, a narrow neck, a flat foot */
.mon { margin: 0; width: min(100%, calc((100svh - 12.5rem) * 1.6)); justify-self: center; transform-origin: 50% 100%; will-change: transform; }
.mon__frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px;
  background: linear-gradient(160deg, #394146, #1a1f22 42%, #0d1113);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 0 0 1px #050708, 0 60px 100px -56px rgb(0 0 0 / 0.95);
}
.mon__screen {
  position: absolute; inset: 2.3% 1.6% 2.7%; border-radius: 6px; overflow: hidden;
  container-type: size; perspective: 1600px; background: #0a0f12;
}
.mon__wall { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0.92; will-change: transform; }
.mon__glass { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: linear-gradient(118deg, rgb(255 255 255 / 0.07), transparent 36%); }
.mon__neck {
  width: 15%; height: clamp(30px, 4.2vw, 60px); margin: -1px auto 0;
  background: linear-gradient(90deg, #1f2528, #474f54 28%, #5d666b 50%, #394145 72%, #1c2124);
  clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
}
.mon__foot {
  width: 30%; height: 10px; margin: 0 auto; border-radius: 4px 4px 10px 10px;
  background: linear-gradient(#5a6267, #252b2f); box-shadow: 0 24px 36px -12px rgb(0 0 0 / 0.85);
}
/* Windows taskbar along the bottom of the screen */
.mon__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 6.2%;
  display: flex; align-items: center; justify-content: center; gap: 1.1cqw;
  background: rgb(13 19 23 / 0.88); border-top: 1px solid rgb(255 255 255 / 0.06);
}
.tb { position: relative; width: 2.2cqw; height: 2.2cqw; border-radius: 0.5cqw; background: linear-gradient(145deg, var(--c), color-mix(in oklab, var(--c) 60%, #000)); }
.tb--start { background:
  linear-gradient(#cfd8dc, #cfd8dc) 0 0 / 46% 46% no-repeat, linear-gradient(#cfd8dc, #cfd8dc) 100% 0 / 46% 46% no-repeat,
  linear-gradient(#cfd8dc, #cfd8dc) 0 100% / 46% 46% no-repeat, linear-gradient(#cfd8dc, #cfd8dc) 100% 100% / 46% 46% no-repeat; transform: scale(0.78); }
.tb:not(.tb--start)::after {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: -0.55cqw; height: 0.26cqw; border-radius: 1em;
  background: #9aa6ac; opacity: 0.45; transition: transform 300ms var(--sc-ease-out), opacity 300ms, background-color 300ms;
}
.tb.is-on::after { background: var(--sc-accent); opacity: 1; transform: scaleX(1.7); }
/* the app windows, one in the middle, the others waiting off screen */
.mwin {
  position: absolute; left: 17%; top: 6%; width: 66%; height: 76%; z-index: 2;
  font-size: clamp(9px, 1.82cqw, 16px); will-change: transform, opacity;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5), 0 30px 60px -24px rgb(0 0 0 / 0.85);
}
.mwin + .mwin { visibility: hidden; }
.mwin .code__ed { font-size: 0.82em; line-height: 1.62; }
.mon__pill { position: absolute; left: 50%; bottom: 9%; z-index: 5; font-size: clamp(9px, 1.85cqw, 16px); opacity: 0; transform: translate3d(-50%, 10px, 0); }

/* the copy on the right */
.demo__copy { min-width: 0; }
.demo__title { margin: 0; font-size: clamp(2.4rem, 3.8vw, 4.3rem); line-height: 0.95; letter-spacing: -0.045em; }
.demo__lede { margin: 1rem 0 0; max-width: 26rem; color: var(--sc-ink-soft); font-size: var(--sc-t-base); line-height: 1.5; }
.demo__texts { position: relative; height: clamp(15.5rem, 35vh, 19.5rem); margin-top: clamp(1.6rem, 4.2vh, 2.8rem); }
.dtext { position: absolute; left: 0; right: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.dtext[data-i="0"] { opacity: 1; }
.dtext__app { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: var(--sc-t-sm); font-weight: 500; color: var(--sc-ink-soft); }
.dtext__app i { width: 0.7rem; height: 0.7rem; border-radius: 0.2rem; background: var(--c); }
.dtext__h { margin: 0.55rem 0 0; font-size: clamp(1.6rem, 2.3vw, 2.4rem); line-height: 1.08; letter-spacing: -0.03em; }
.dtext__p { margin: 0.75rem 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-base); line-height: 1.55; }
/* what was said, lighting up as it is said */
.said { margin: 1.25rem 0 0; padding: 0.85rem 1rem 0.95rem; border-radius: 14px; background: #172126; box-shadow: inset 0 0 0 1px #2a3940; font-size: 0.98rem; line-height: 1.6; }
.said__k { display: block; margin-bottom: 0.3rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-dim); }
.said .w { position: relative; display: inline-block; color: #e8edf0; transition: color 220ms var(--sc-ease-out); }
.said.is-live .w { color: #56646b; }
.said.is-live .w.is-on { color: #e8edf0; }
.said .w::after {
  content: ""; position: absolute; left: -0.05em; right: -0.05em; top: 55%; height: 0.08em; border-radius: 1em;
  background: #ff8f70; transform-origin: 0 50%; transform: scaleX(0); transition: transform 280ms var(--sc-ease-out);
}
.said.is-live .w--filler.is-cut, .said.is-live .w--wrong.is-cut { color: #75818a; }
.said .w--filler.is-cut::after, .said .w--wrong.is-cut::after { transform: scaleX(1); }
.said.is-live .w--alias.is-cut { color: var(--sc-accent); }
.demo__steps { display: flex; gap: 1.1rem; margin: clamp(1rem, 2.6vh, 1.8rem) 0 0; padding: 0; list-style: none; }
.demo__steps li { display: grid; gap: 0.45rem; width: 4.6rem; font-size: 0.8rem; color: var(--ink-dim); transition: color 240ms var(--sc-ease-out); }
.demo__steps li.is-on { color: var(--sc-ink); }
.demo__steps i { display: block; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.1); overflow: hidden; }
.demo__steps i::after { content: ""; display: block; height: 100%; background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.demo__legal { margin: 1.1rem 0 0; font-size: var(--sc-t-xs); color: var(--ink-dim); }
@media (prefers-reduced-motion: reduce) { .said .w, .said .w::after, .tb::after { transition: none; } }

/* every app window: same frame, its own skin */
.win {
  min-height: 0; display: flex; flex-direction: column;
  border-radius: 0.95em; overflow: hidden; line-height: 1.45;
  background: #1a1d21; color: #d6dade; --ph: #79838a; --caret: #44d7d4;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.45), 0 10px 24px -14px rgb(0 0 0 / 0.8);
}
.win p { margin: 0; }
.win__bar {
  flex: none; display: flex; align-items: center; gap: 0.6em; height: 2.6em; padding: 0 1em;
  font-size: 0.84em; font-weight: 500; color: #c3ccd1; border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.win__bar i { width: 0.8em; height: 0.8em; border-radius: 0.25em; background: var(--c); }
.win__bar span { margin-left: auto; font-weight: 400; color: #7d878d; }
.win--light { background: #fbfbfc; color: #1f262b; --ph: #9aa2a8; --caret: #2a6fd6; }
.win--light .win__bar { background: #f0f2f4; color: #3c464d; border-bottom-color: #e2e6e9; }
.win--light .win__bar span { color: #8a9399; }
.win--ai { background: #212224; color: #e7e8e9; --ph: #8b8e91; --caret: #e7e8e9; }
.win--code { background: #1b1e22; color: #c9d1d9; --ph: #6f7a83; --caret: #4fb3ff; }

.field { position: relative; white-space: pre-line; word-break: break-word; }
.field__ph { color: var(--ph); }
.field.has-text .field__ph { display: none; }
.field mark { background: none; color: inherit; text-decoration: underline 0.12em; text-decoration-color: var(--sc-accent); text-underline-offset: 0.24em; }
.win--light .field mark { text-decoration-color: #2a8f8c; }
.caret { display: inline-block; width: 0.1em; min-width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -0.22em; background: var(--caret); animation: caret 1.05s steps(1) infinite; }
.field.is-typing .caret { animation: none; }
.caret[hidden] { display: none; }

/* E-Mail, light */
.mail { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0.15em 1.5em 1em; }
.mail__row { display: flex; gap: 1em; padding: 0.75em 0; border-bottom: 1px solid #e7eaed; }
.mail__row span { width: 4.4em; color: #7b848a; }
.mail__row b { font-weight: 500; }
.mail__body { flex: 1; min-height: 0; padding-top: 1.1em; font-size: 1.04em; line-height: 1.62; }
.mail__foot { display: flex; align-items: center; gap: 0.9em; padding-top: 0.8em; border-top: 1px solid #eef0f2; color: #8a9399; font-size: 0.86em; }
.mail__foot b { color: #fff; background: #2a6fd6; padding: 0.45em 1.25em; border-radius: 0.5em; font-weight: 600; }
.mail__foot i { width: 1.1em; height: 1.1em; border-radius: 0.3em; background: #e3e7ea; }
.mail__foot span { margin-left: auto; }

/* Team-Chat */
.chat { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.85em; padding: 0.8em 1em 1em; }
.msg { display: flex; gap: 0.75em; }
.av { flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.6em; background: var(--c); color: #fff; font-style: normal; font-size: 0.8em; font-weight: 600; }
.msg__who { font-weight: 600; color: #eef0f2; }
.msg__who time { margin-left: 0.5em; font-weight: 400; font-size: 0.85em; color: #7c868c; }
.composer { border: 1px solid #3a4148; border-radius: 0.8em; background: #202429; padding: 0.7em 0.9em; }
.composer .field { min-height: 2.9em; color: #eef0f2; }

/* KI-Assistent */
.ai { flex: 1; min-height: 0; display: grid; align-content: center; padding: 0.9em 1.1em; }
.ai__box { background: #2e2f31; border-radius: 1.3em; padding: 0.9em 1.15em 0.6em; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06); }
.ai__box .field { min-height: 5.8em; }
.ai__tools { display: flex; gap: 0.55em; align-items: center; margin-top: 0.45em !important; }
.ai__tools i { width: 1.2em; height: 1.2em; border-radius: 50%; background: #45474a; }
.ai__tools b { margin-left: auto; width: 1.8em; height: 1.8em; border-radius: 50%; background: #ececec; }

/* Code-Editor */
.code { flex: 1; min-height: 0; display: grid; grid-template-rows: 1fr auto; }
.code__ed { margin: 0; padding: 1em 1.2em; font: 0.9em/1.75 ui-monospace, "Cascadia Code", Consolas, monospace; color: #c9d1d9; white-space: pre; overflow: hidden; }
.code__ed .ln { display: inline-block; width: 2em; color: #4c565e; }
.code__ed .k { color: #d68dd6; } .code__ed .f { color: #e3c77d; } .code__ed .t { color: #6fb6ff; }
.code__ed .a { color: #9cdcfe; } .code__ed .s { color: #c9a26d; }
.code__chat { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.8em; padding: 1em; background: #16191c; border-top: 1px solid rgb(255 255 255 / 0.05); }
.code__bubble { align-self: flex-start; background: #22272c; border-radius: 0.8em; padding: 0.6em 0.85em; color: #aeb7be; font-size: 0.94em; }
.code__input { border: 1px solid #343c43; border-radius: 0.8em; padding: 0.75em 0.85em; background: #1d2125; }
.code__input .field { min-height: 4.4em; }

/* the Microo overlay, bottom centre, as the app shows it */
.vpill {
  flex: none; display: inline-flex; align-items: center; gap: 0.5em; height: 2.35em; padding: 0 0.85em 0 0.5em;
  border-radius: 99em; background: #0c1315; box-shadow: 0 0 0 1px #2b3b41;
  font-size: 0.8em; font-weight: 500; color: #e6ecef;
}
.vpill img { width: 1.4em; height: 1.4em; }
.vpill__wave, .vpill__busy, .vpill__done { display: none; align-items: center; justify-content: center; width: 2.5em; height: 1.3em; }
.vpill__wave { gap: 0.2em; }
.vpill__wave i { width: 0.16em; height: 1.2em; border-radius: 1em; background: var(--sc-accent); transform: scaleY(0.18); }
.vpill__busy { gap: 0.32em; }
.vpill__busy i { width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--sc-accent); animation: busy 900ms var(--sc-ease-in-out) infinite; }
.vpill__busy i:nth-child(2) { animation-delay: 120ms; } .vpill__busy i:nth-child(3) { animation-delay: 240ms; }
.vpill__done { width: 1.3em; color: var(--sc-accent); }
.vpill[data-state="idle"] .vpill__wave, .vpill[data-state="listen"] .vpill__wave { display: inline-flex; }
.vpill[data-state="busy"] .vpill__busy { display: inline-flex; }
.vpill[data-state="done"] .vpill__done { display: inline-flex; }
.vpill__label { min-width: 5.9em; }

/* ============================================================ FEATURES == */
/* The app, used: the pointer clicks the sidebar, the page changes, the
   feature is framed and the view leans in on it. */
.fx__stage { overflow: clip; isolation: isolate; }
.fx__light {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 50% at 50% 55%, rgb(68 215 212 / 0.08), transparent 70%),
    linear-gradient(180deg, transparent 62%, rgb(5 9 11 / 0.5));
}
.fx__copy {
  position: absolute; z-index: 6; left: var(--sc-gutter); top: 50%;
  width: min(22rem, 27vw); pointer-events: none;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
}
.fx__kicker { margin: 0 0 var(--sc-4); font-size: var(--sc-t-sm); font-weight: 500; letter-spacing: 0.02em; color: var(--sc-accent); }
.fx__texts { position: relative; height: clamp(11rem, 25vh, 13.5rem); }
.fx__text { position: absolute; left: 0; top: 0; right: 0; opacity: 0; will-change: transform, opacity; }
.fx__text[data-fx="0"] { opacity: 1; }
.fx__text h3 { margin: 0; font-size: clamp(2rem, 3.1vw, 3.3rem); line-height: 1; letter-spacing: -0.042em; }
.fx__text p { margin: var(--sc-4) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-base); line-height: 1.55; }
.fx__index { display: grid; gap: 0.7rem; margin: var(--sc-6) 0 0; padding: 0; list-style: none; }
.fx__index li { display: grid; grid-template-columns: 1fr 4.5rem; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--ink-dim); transition: color 240ms var(--sc-ease-out); }
.fx__index li.is-on { color: var(--sc-ink); }
.fx__index i { display: block; height: 2px; border-radius: 2px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.fx__index i::after { content: ""; display: block; height: 100%; background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); }
.fx__scene { position: absolute; inset: 0; z-index: 3; perspective: 1700px; perspective-origin: 50% 45%; pointer-events: none; }
.fx__win {
  position: absolute; left: 50%; top: 50%;
  width: min(60vw, 66rem, calc((100svh - 11rem) * 1.439)); aspect-ratio: 1180 / 820;
  border-radius: 14px; overflow: hidden; background: #131b20;
  box-shadow: 0 0 0 1px #2f3e45, 0 1px 0 rgb(255 255 255 / 0.06) inset;
  transform: translate3d(-50%, -50%, 0);
  transform-style: flat; backface-visibility: hidden;
  will-change: transform;
}
.fx__view { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
/* every page twice: its sidebar and title bar, and its content, so a click can
   switch the sidebar at once while the content fades up like it does in the app */
.fx__side, .fx__main { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; }
.fx__side { clip-path: polygon(0 0, 100% 0, 100% 5.25%, 16.02% 5.25%, 16.02% 100%, 0 100%); }
.fx__main { clip-path: inset(5.25% 0 0 16.02%); will-change: opacity, transform; }
.fx__side[data-pg="overview"], .fx__main[data-pg="overview"] { opacity: 1; }
/* the feature in focus: a thin ring, the rest of the window in shade */
.fx__spot {
  position: absolute; z-index: 1; border-radius: 12px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 1.5px rgb(68 215 212 / 0.85), 0 0 0 200vmax rgb(4 9 11 / 0.42);
  transition: opacity 240ms var(--sc-ease-out);
}
.fx__spot.is-on { opacity: 1; transition-duration: 520ms; }
/* a soft floor shadow that follows the window */
.fx__shadow {
  position: absolute; left: 50%; top: 50%; width: min(48vw, 56rem); height: 5rem; margin: 0 0 0 calc(min(48vw, 56rem) / -2);
  border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), transparent);
  filter: blur(14px); opacity: 0.8; will-change: transform, opacity;
}
.fx__cursor { position: absolute; left: -2px; top: -2px; z-index: 3; opacity: 0; transition: opacity 300ms; width: 24px; height: 24px; pointer-events: none; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.55)); will-change: transform; }
.fx__click {
  position: absolute; left: -20px; top: -20px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgb(68 215 212 / 0.9); background: rgb(68 215 212 / 0.14); opacity: 0; will-change: transform, opacity;
}
.fx__fine { position: absolute; z-index: 6; right: var(--sc-gutter); bottom: calc(var(--dock-h) + var(--dock-b) + 1rem); margin: 0; font-size: var(--sc-t-xs); color: var(--ink-dim); }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: no-preference) {
  .vault__lock, .langs__obj { animation: float 6.5s var(--sc-ease-in-out) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .fx__text { transform: none !important; }
  .fx__cursor, .fx__click { display: none; }
}

/* =============================================================== LOCAL == */
.local__scene { position: relative; min-height: 100svh; }
.local__media { position: absolute; inset: 0; margin: 0; overflow: hidden; }
.local__media img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
/* mask the photograph away from the copy instead of laying a scrim on it */
.local__media picture { display: block; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.local__copy { position: relative; z-index: 2; padding-top: clamp(7rem, 22vh, 14rem); }
.local__title { margin: 0; font-size: clamp(2.6rem, 5.4vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; }
.local__lede { max-width: 27rem; color: var(--sc-ink-soft); font-size: var(--sc-t-lg); line-height: 1.45; }

/* the boundary: everything inside stays, one thin wire leaves */
.vault {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(5rem, 0.45fr) minmax(0, 1fr); align-items: center;
  padding-top: clamp(3rem, 8vh, 6rem); padding-bottom: var(--sc-section);
}
.vault__label { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 var(--sc-5); font-size: var(--sc-t-sm); font-weight: 500; letter-spacing: 0.02em; color: var(--sc-ink-soft); }
.vault__label svg { color: var(--sc-accent); }
.vault__pc {
  position: relative; padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 26px; background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01));
  box-shadow: 0 0 0 1px rgb(68 215 212 / 0.32), 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 40px 80px -40px rgb(0 0 0 / 0.7);
}
.vault__lock { position: absolute; right: clamp(-1.5rem, -2vw, -0.5rem); top: clamp(-4.5rem, -6vw, -3rem); width: clamp(6rem, 9vw, 8.5rem); height: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 18px 20px rgb(3 8 10 / 0.6)); }
.vault__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2.5rem); }
.vault__items li { display: flex; align-items: flex-start; gap: 0.9rem; }
.vault__items i {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  color: var(--sc-accent); background: rgb(68 215 212 / 0.08); box-shadow: 0 0 0 1px rgb(68 215 212 / 0.18) inset;
}
.vault__items span { display: grid; gap: 0.15rem; padding-top: 0.15rem; }
.vault__items b { font-weight: 600; font-size: var(--sc-t-base); letter-spacing: -0.01em; }
.vault__items small { font-size: var(--sc-t-sm); color: var(--ink-dim); line-height: 1.4; }
.vault__wire { position: relative; height: 2.5rem; }
.vault__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgb(255 255 255 / 0.08); }
/* the wire draws itself as the section scrolls in */
.vault__line b { position: absolute; inset: 0; border-radius: inherit; background: rgb(68 215 212 / 0.65); transform-origin: 0 50%; transform: scaleX(var(--draw, 0)); }
.vault__packet {
  position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--sc-accent); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .vault.is-live .vault__packet { animation: packet 3.6s var(--sc-ease-in-out) infinite; }
  .vault.is-live .vault__packet + .vault__packet { animation-delay: 1.8s; }
}
@keyframes packet { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--wire-w, 160px)); } }
@keyframes packet-v { 0% { opacity: 0; transform: translateY(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--wire-h, 56px)); } }
.vault__out {
  padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 20px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); background: rgb(255 255 255 / 0.015);
}
.vault__out .vault__label svg { color: var(--sc-ink-soft); }
.vault__list { list-style: none; margin: 0; padding: 0; }
.vault__list li { padding: 0.7rem 0; border-top: 1px solid var(--sc-hairline); color: var(--sc-ink-soft); font-size: var(--sc-t-base); }
.vault__note { margin: var(--sc-4) 0 0; font-size: var(--sc-t-sm); color: var(--ink-dim); }

/* ================================================================ TECH == */
.tech { padding-block: clamp(4rem, 10vh, 8rem) var(--sc-section); }
.tech__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.tech__head > * + * { margin-top: 0; }
.tech__title { margin: 0; font-size: clamp(2.4rem, 4.6vw, 5rem); line-height: 0.98; letter-spacing: -0.045em; }
.tech__prose { margin: 0; font-size: var(--sc-t-lg); line-height: 1.45; letter-spacing: -0.012em; color: var(--sc-ink-soft); max-width: 34rem; }
.tech__prose .num { color: var(--sc-ink); font-weight: 600; }

/* the pipeline: four stations, three links, one pulse travelling through */
.pipe { margin: clamp(3rem, 7vh, 5rem) 0 0; }
.pipe__row { display: grid; grid-template-columns: minmax(9rem, 0.7fr) 3.5rem minmax(0, 1fr) 3.5rem minmax(0, 1fr) 3.5rem minmax(0, 1fr); align-items: stretch; }
.pipe__step {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem; min-height: 11.5rem;
  padding: 1.25rem 1.25rem 1.1rem; border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.09), 0 30px 60px -36px rgb(0 0 0 / 0.7);
  transition: box-shadow 320ms var(--sc-ease-out), background-color 320ms var(--sc-ease-out);
}
.pipe__step.is-on { box-shadow: 0 0 0 1px rgb(68 215 212 / 0.6), 0 30px 60px -36px rgb(0 0 0 / 0.7); }
.pipe__k { margin: 0; font-size: var(--sc-t-xs); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.pipe__step.is-on .pipe__k { color: var(--sc-accent); }
.pipe__name { margin: 0.35rem 0 0; font-size: var(--sc-t-lg); font-weight: 600; letter-spacing: -0.015em; }
.pipe__meta { margin: 0; font-size: var(--sc-t-sm); color: var(--ink-dim); }
.pipe__out { margin: auto 0 0; padding-top: 0.9rem; min-height: 3.1em; font-size: var(--sc-t-sm); line-height: 1.45; color: var(--sc-ink); }
.pipe__step--model .pipe__out { border-top: 1px solid var(--sc-hairline); }
.pipe__out .f { color: var(--ink-dim); text-decoration: line-through; text-decoration-color: rgb(255 143 112 / 0.7); }
.pipe__wave { display: flex; align-items: center; gap: 4px; height: 3.5rem; margin-top: auto; }
.pipe__wave i { flex: 1; max-width: 4px; height: 100%; border-radius: 2px; background: var(--sc-accent); opacity: 0.4; transform: scaleY(0.22); }
.pipe__wave i:nth-child(odd) { transform: scaleY(0.34); } .pipe__wave i:nth-child(4n) { transform: scaleY(0.5); }
@media (prefers-reduced-motion: no-preference) {
  .pipe__step--voice.is-on .pipe__wave i { opacity: 1; animation: wave 900ms var(--sc-ease-in-out) infinite alternate; }
  .pipe__wave i:nth-child(3n) { animation-delay: -300ms; } .pipe__wave i:nth-child(3n+1) { animation-delay: -620ms; }
  .pipe__wave i:nth-child(4n) { animation-duration: 700ms; } .pipe__wave i:nth-child(5n) { animation-duration: 1100ms; }
}
@keyframes wave { from { transform: scaleY(0.15); } to { transform: scaleY(0.95); } }
.pipe__field {
  margin: auto 0 0; padding: 0.8rem 0.9rem; border-radius: 12px; min-height: 3.4rem;
  background: #1b2328; box-shadow: 0 0 0 1px #34434a inset; font-size: var(--sc-t-sm); line-height: 1.45;
}
.pipe__field .pipe__out { padding: 0; min-height: 0; margin: 0; }
/* the finished text holds the space; the typing runs on top of it */
.pipe__out { display: grid; }
.pipe__ghost, .pipe__typed { grid-area: 1 / 1; }
.pipe__ghost { visibility: hidden; }
.pipe__field .pipe__out { display: inline-grid; }
.pipe__link { position: relative; align-self: center; height: 2px; margin: 0 0.4rem; background: rgb(255 255 255 / 0.1); border-radius: 2px; overflow: hidden; }
.pipe__link b { position: absolute; inset: 0; background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(0); }
.pipe__foot { display: flex; align-items: center; gap: 0.6rem; margin: var(--sc-5) 0 0; font-size: var(--sc-t-sm); color: var(--ink-dim); }
.pipe__foot svg { color: var(--sc-accent); flex: none; }

.specs { margin: clamp(3rem, 7vh, 5rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.specs > div { display: grid; gap: 0.25rem; padding: 1rem 0; border-top: 1px solid var(--sc-hairline); }
.specs dt { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); }
.specs dd { margin: 0; }
.langs-wrap { position: relative; }
.langs__obj { position: absolute; right: var(--sc-gutter); top: clamp(1rem, 4vw, 3rem); width: clamp(7rem, 13vw, 12rem); height: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 20px 22px rgb(3 8 10 / 0.6)); }
.langs-wrap .langs { padding-inline: 0; max-width: calc(100% - clamp(8rem, 15vw, 14rem)); }
.langs {
  display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin-top: clamp(4rem, 10vh, 7rem);
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -0.03em; font-weight: 500; color: var(--ink-dim);
}
.langs span { display: inline-block; will-change: opacity, transform; }
.langs span:first-child { color: var(--sc-accent); }
.langs span:nth-child(2), .langs span:nth-child(3) { color: var(--sc-ink); }

/* ================================================================= FAQ == */
.faq { padding-block: var(--sc-section) calc(var(--sc-section) * 0.6); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); }
.faq__title { margin: 0; font-size: clamp(2.2rem, 3.8vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
.faq__list details { border-top: 1px solid var(--sc-hairline); overflow: hidden; }
.faq__list details:last-child { border-bottom: 1px solid var(--sc-hairline); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; font-size: var(--sc-t-lg); font-weight: 500; letter-spacing: -0.015em;
  border-radius: 6px; transition: color 200ms ease;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; }
/* plus in a ring; opening turns it into a minus on a filled disc */
.faq__ico {
  position: relative; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line); background: transparent;
  transition: transform 380ms var(--sc-ease-out), background-color 260ms ease, box-shadow 260ms ease;
}
.faq__ico::before, .faq__ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 0.72rem; height: 1.6px; margin: -0.8px 0 0 -0.36rem;
  border-radius: 2px; background: var(--sc-ink-soft);
  transition: transform 380ms var(--sc-ease-out), background-color 260ms ease;
}
.faq__ico::after { transform: rotate(90deg); }
.faq__list details.is-open .faq__ico { transform: rotate(180deg); background: var(--sc-accent); box-shadow: inset 0 0 0 1px var(--sc-accent); }
.faq__list details.is-open .faq__ico::before, .faq__list details.is-open .faq__ico::after { background: var(--sc-accent-ink); }
.faq__list details.is-open .faq__ico::after { transform: rotate(180deg); }
.faq__body { padding: 0 3rem 1.5rem 0; }
.faq__body p { margin: 0; max-width: 42rem; color: var(--sc-ink-soft); }
/* the answer settles in under its question; closing is quicker than opening */
.faq__list details .faq__body { opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity 160ms ease, transform 220ms var(--sc-ease-out); }
.faq__list details.is-open .faq__body { opacity: 1; transform: none; transition: opacity 280ms ease 70ms, transform 420ms var(--sc-ease-out) 40ms; }
@media (hover: hover) and (pointer: fine) {
  .faq__list summary:hover { color: var(--sc-accent); }
  .faq__list summary:hover .faq__ico { box-shadow: inset 0 0 0 1px rgb(68 215 212 / 0.7); }
}

/* =============================================================== CLOSE == */
.close__stage { display: block; }
.close__wrap {
  position: absolute; left: 50%; bottom: var(--dock-b);
  width: min(62rem, calc(100vw - 2 * var(--sc-gutter))); height: min(25rem, calc(100svh - 21rem));
  translate: -50% 0;
}
.close__panel {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 30px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgb(68 215 212 / 0.10), transparent 60%),
    linear-gradient(180deg, #1e2a30, #172126);
  border: 1px solid #34464d;
  box-shadow: var(--sc-edge), var(--sc-e3);
  clip-path: inset(var(--ci-t, 0px) var(--ci-r, 0px) var(--ci-b, 0px) var(--ci-l, 0px) round var(--ci-r0, 30px));
  will-change: clip-path;
}
.close__inner { flex: 1; padding: clamp(2rem, 6vh, 4rem) clamp(1.5rem, 5vw, 4.5rem) 0; text-align: center; display: grid; align-content: center; justify-items: center; }
/* the ground of the last act: visible while the stage slides in, so the
   ending never arrives as an empty screen */
.close__title {
  position: absolute; left: 0; right: 0; top: 14vh; margin: 0; text-align: center;
  font-size: clamp(2.6rem, 6vw, 6.4rem); line-height: 0.98; letter-spacing: -0.045em;
}
.close__title br { display: none; }
.close__lede { margin: 0; max-width: 34rem; color: var(--sc-ink-soft); }
.close__platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sc-4); margin-top: var(--sc-6); }
.plat {
  position: relative; display: inline-flex; align-items: center; gap: 0.85rem; padding: 0.85rem 1.4rem 0.85rem 1.25rem;
  border-radius: 16px; text-decoration: none; text-align: left;
}
.plat span { display: grid; line-height: 1.15; }
.plat b { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.plat small { font-size: var(--sc-t-xs); opacity: 0.8; }
.plat--win {
  overflow: hidden; isolation: isolate;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 10px 24px -12px rgb(4 30 30 / 0.85);
  transition: transform 200ms var(--sc-ease-out), background-color 200ms ease, box-shadow 260ms ease;
}
/* a band of light crosses once on hover; it is outside the button the rest of the time */
.plat--win::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.38) 50%, transparent 70%);
  transform: translate3d(-110%, 0, 0);
}
.plat__go { flex: none; margin-left: 0.15rem; transition: transform 260ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .plat--win:hover {
    background: #5fe0dd; transform: translate3d(0, -2px, 0);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.45) inset, 0 18px 32px -14px rgb(4 30 30 / 0.95);
  }
  .plat--win:hover::before { transform: translate3d(110%, 0, 0); transition: transform 760ms var(--sc-ease-out); }
  .plat--win:hover .plat__go { transform: translate3d(3px, 0, 0); }
}
.plat--win:active { transform: scale(0.97); transition-duration: 110ms; }
.plat--win:focus-visible { outline: 2px solid var(--sc-ink); outline-offset: 3px; }
.plat--mac { color: var(--sc-ink-soft); border: 1px solid var(--line); background: rgb(255 255 255 / 0.02); cursor: default; }
.close__bird {
  position: absolute; z-index: 1; left: 50%; top: 0; width: clamp(9rem, 15vw, 13.5rem); height: auto; max-width: none;
  translate: -50% -86.5%;
  transform: translate3d(0, 58%, 0) scale(0.96); opacity: 0;
  transition: transform 240ms var(--sc-ease-out), opacity 160ms ease;
}
.close__wrap.is-open .close__bird {
  transform: none; opacity: 1;
  transition: transform 760ms cubic-bezier(0.34, 1.5, 0.64, 1) 180ms, opacity 220ms ease 180ms;
}
/* the panel's content arrives in order once the panel has opened, and leaves at once */
.close__in { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 160ms ease, transform 200ms var(--sc-ease-out); }
.close__wrap.is-open .close__in {
  opacity: 1; transform: none;
  transition: opacity 360ms ease calc(var(--d, 0) * 1ms + 60ms), transform 620ms var(--sc-ease-out) calc(var(--d, 0) * 1ms + 60ms);
}
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.4rem;
  margin: var(--sc-6) clamp(1.25rem, 3vw, 2.25rem) 1.1rem; padding-top: 1rem;
  border-top: 1px solid var(--sc-hairline); font-size: var(--sc-t-xs); color: var(--ink-dim);
}
.foot svg { color: var(--sc-ink-soft); width: 84px; height: auto; aspect-ratio: 1186 / 272; }
.foot__nav { display: flex; gap: 1.2rem; }
.foot a { color: var(--sc-ink-soft); text-decoration: none; padding: 6px 0; }
@media (hover: hover) { .foot a:hover { color: var(--sc-ink); } }
/* the brand and the house it belongs to, as one lockup: the wordmark, and
   under it the line DOVARÉ signs with */
.foot__mark { display: grid; justify-items: start; gap: 7px; }
.foot a.foot__by {
  display: inline-flex; align-items: baseline; gap: 0.5em; padding: 0;
  font-size: 11px; line-height: 1; letter-spacing: 0.01em; color: var(--ink-dim); white-space: nowrap;
  transition: color 240ms ease;
}
.foot__by strong {
  font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 10.5px;
  letter-spacing: 0.24em; color: var(--sc-ink-soft); transition: color 240ms ease;
}
@media (hover: hover) { .foot a.foot__by:hover { color: var(--sc-ink-soft); } .foot a.foot__by:hover strong { color: var(--sc-ink); } }
.foot a.foot__by:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; border-radius: 2px; }

/* ================================================================ DOCK == */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: var(--dock-b);
  translate: -50% 0;
  transition: opacity 120ms linear;
}
.dock.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 120ms linear, visibility 0s linear 120ms; }
.dock__pill {
  display: flex; align-items: center; gap: 0.75rem;
  height: var(--dock-h); padding: 0 7px 0 14px;
  border-radius: 999px;
  background: color-mix(in oklab, #1a252b 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid #3a4c53;
  box-shadow: var(--sc-edge), 0 10px 30px -12px hsl(var(--sc-shadow-color) / 0.9), 0 2px 6px hsl(var(--sc-shadow-color) / 0.5);
}
.dock__bird { width: 28px; height: 28px; flex: none; }
.dock__wave, .dock__busy, .dock__done { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 28px; }
.dock__wave { gap: 2.5px; }
.dock__wave i {
  display: block; width: 2.5px; height: 24px; border-radius: 2px; background: var(--sc-accent);
  transform: scaleY(0.12); transform-origin: 50% 50%;
  opacity: 0.55;
}
.dock.is-listen .dock__wave i { opacity: 1; }
.dock__busy, .dock__done { display: none; }
.dock__busy { gap: 6px; }
.dock__busy i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc-accent); animation: busy 900ms var(--sc-ease-in-out) infinite; }
.dock__busy i:nth-child(2) { animation-delay: 120ms; }
.dock__busy i:nth-child(3) { animation-delay: 240ms; }
@keyframes busy { 0%, 100% { opacity: 0.35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.dock__done { color: var(--sc-accent); }
.dock.is-busy .dock__wave, .dock.is-done .dock__wave { display: none; }
.dock.is-busy .dock__busy { display: inline-flex; }
.dock.is-done .dock__done { display: inline-flex; }

.dock__state {
  appearance: none; border: 0; background: none; cursor: pointer; padding: 6px 4px;
  min-width: 9.5rem; text-align: left; color: var(--sc-ink); font-size: 0.98rem; font-weight: 500;
  border-radius: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.dock__label { display: inline-block; transition: opacity 140ms var(--sc-ease-out), transform 160ms var(--sc-ease-out); }
.dock__label.is-out { opacity: 0; transform: translateY(-6px); }
.dock__cta {
  flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--sc-accent); color: var(--sc-accent-ink);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .dock__cta:hover { background: #63e2df; } }
.dock__cta:active { transform: scale(0.97); }
.dock__menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
  display: grid; padding: 8px; border-radius: 20px;
  background: color-mix(in oklab, #1a252b 94%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid #3a4c53; box-shadow: var(--sc-e3);
  transform-origin: 50% 100%;
  animation: menu-in 200ms var(--sc-ease-out);
}
.dock__menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
.dock__menu a { padding: 10px 14px; border-radius: 12px; color: var(--sc-ink-soft); text-decoration: none; font-size: 0.95rem; }
.dock__menu a[aria-current="true"] { color: var(--sc-ink); background: var(--control); }
@media (hover: hover) { .dock__menu a:hover { color: var(--sc-ink); background: var(--hover); } }

/* short desktop windows (laptops at 1280x720): keep the demo and hero inside the frame */
@media (min-width: 861px) and (max-height: 780px) {
  .demo__title { font-size: clamp(2.1rem, 6.2vh, 3.3rem); }
  .demo__lede { display: none; }
  .demo__texts { height: 17.2rem; margin-top: 1.1rem; }
  .dtext__p { font-size: var(--sc-t-sm); }
  .said { font-size: 0.9rem; }
  .hero__subject { width: min(64vh, 52vw); bottom: 8vh; }
}

/* ============================================================== MOBILE == */
@media (max-width: 860px) {
  :root { --dock-h: 54px; }
  .hero__title { top: 13svh; font-size: clamp(3rem, 14.6vw, 5.4rem); line-height: 0.95; }
  .hero__title-l2 { display: block; }
  .hero__lede { left: 0; right: 0; bottom: auto; top: calc(13svh + 2 * 0.95 * clamp(3rem, 14.6vw, 5.4rem) + 1.1rem); margin-inline: auto; max-width: 19rem; text-align: center; font-size: var(--sc-t-base); }
  .hero__subject { width: min(100vw, 62svh); bottom: calc(var(--dock-h) + var(--dock-b) + 1svh); }
  .hero__pool { top: 76%; width: 120vw; }
  .hero__key--a { width: 40vw; left: -15vw; top: 46svh; }
  .hero__key--b { width: 58vw; right: -22vw; bottom: -6svh; }
  .hero__beat { left: 0; right: 0; bottom: auto; top: 12svh; margin-inline: auto; max-width: 21rem; text-align: center; }
  .hero__scrim { left: 0; top: 4svh; width: 100%; height: 34svh; background: radial-gradient(70% 60% at 50% 45%, rgb(10 16 19 / 0.82), rgb(10 16 19 / 0.4) 60%, transparent 82%); }
  .hero__subject { transform: translateY(calc(var(--press, 0) * 1.1vh)) scale(calc(1 + var(--grow, 0) * 0.1)); }
  .hero__rings { top: 36%; }
  .hero__beat .keys { justify-content: center; }
  .hero__beat-line { font-size: var(--sc-t-base); }
  .keys kbd { font-size: 0.85rem; }

  .type__inner { padding-top: 22svh; }

  .demo__grid { grid-template-columns: minmax(0, 1fr); gap: 0; align-content: center; }
  .demo__copy { display: contents; }
  .demo__title { order: 1; font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .demo__lede { display: none; }
  .mon { order: 2; width: 100%; margin-top: 1rem; }
  .mon__frame { aspect-ratio: 5 / 4; border-radius: 14px; }
  .mon__screen { inset: 2.6% 2.4% 3%; }
  .mon__neck, .mon__foot { display: none; }
  .mwin { left: 5%; width: 90%; top: 5%; height: 82%; font-size: clamp(9px, 3.15cqw, 13px); }
  .tb { width: 4.4cqw; height: 4.4cqw; border-radius: 1cqw; }
  .mon__bar { height: 8%; gap: 2.4cqw; }
  .mon__pill { bottom: 11%; font-size: clamp(9px, 2.8cqw, 12px); }
  .demo__texts { order: 3; height: 12.5rem; margin-top: 1.1rem; }
  .dtext__h { font-size: 1.45rem; }
  .dtext__p { display: none; }
  .said { margin-top: 0.8rem; font-size: 0.86rem; padding: 0.7rem 0.85rem 0.8rem; }
  .demo__steps { order: 4; margin-top: 0.6rem; gap: 0.8rem; }
  .demo__steps li { flex: 1; width: auto; }
  .demo__legal { order: 5; font-size: 0.7rem; }

  .fx__copy { left: var(--sc-gutter); right: var(--sc-gutter); top: 7svh; width: auto; transform: none !important; }
  .fx__texts { height: 8.6rem; }
  .fx__text h3 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .fx__text p { font-size: 0.95rem; }
  .fx__index { display: flex; gap: 0.5rem; margin-top: var(--sc-4); }
  .fx__index li { display: block; }
  .fx__index span { display: none; }
  .fx__index i { width: 2.6rem; }
  .fx__win { width: calc(100vw - 2 * var(--sc-gutter)); top: 60svh; }
  .fx__shadow { width: 80vw; margin-left: -40vw; }
  .fx__fine { left: var(--sc-gutter); right: auto; }
  .fx__cursor { width: 18px; height: 18px; }

  .local__scene { min-height: 108svh; }
  .local__copy { padding-top: 13svh; }
  .local__lede { font-size: var(--sc-t-base); max-width: 22rem; }
  .vault { grid-template-columns: 1fr; }
  .vault__items { grid-template-columns: 1fr; gap: 1rem; }
  .vault__wire { height: 3.5rem; width: 2px; margin-inline: auto; }
  .vault__line { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .vault__line b { transform-origin: 50% 0; transform: scaleY(var(--draw, 0)); }
  .vault__packet { left: 50%; top: 0; margin: -4px 0 0 -4px; }
  .vault.is-live .vault__packet { animation-name: packet-v; }
  .vault__lock { width: 5rem; top: -2.5rem; right: -0.25rem; }

  .tech__head { grid-template-columns: 1fr; gap: var(--sc-4); }
  .tech__prose { font-size: var(--sc-t-base); }
  .pipe__row { grid-template-columns: 1fr; }
  .pipe__step { min-height: 0; }
  .pipe__link { width: 2px; height: 1.6rem; margin: 0.3rem auto; }
  .pipe__link b { transform-origin: 50% 0; transform: scaleY(0); }
  .pipe__wave { height: 2.4rem; }
  .specs { grid-template-columns: 1fr; }

  .faq__grid { grid-template-columns: 1fr; gap: var(--sc-5); }

  .close__wrap { width: calc(100vw - 20px); height: min(30rem, calc(100svh - 17rem)); }
  .close__title { top: 9svh; font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .close__title br { display: inline; }
  .close__inner { padding: 1.5rem 1.25rem 0; }
  .close__lede { font-size: var(--sc-t-sm); }
  .close__platforms { margin-top: var(--sc-6); }
  .foot { margin: var(--sc-5) 1rem 0.9rem; gap: 0.5rem 1rem; }
  .foot__mark { justify-items: center; flex-basis: 100%; }
  .foot__mark svg { display: none; }
  .close__bird { width: 8.2rem; }
  .close__platforms { flex-direction: column; align-items: stretch; width: 100%; max-width: 19rem; }
  .foot { justify-content: center; }

  .dock { width: calc(100vw - 20px); }
  .dock__pill { gap: 0.5rem; padding: 0 5px 0 10px; }
  .dock__wave, .dock__busy, .dock__done { width: 44px; }
  .dock__wave { gap: 2px; }
  .dock__wave i:nth-child(n+11) { display: none; }
  .dock__state { min-width: 0; flex: 1; font-size: 0.9rem; }
  .dock__cta { height: 40px; padding: 0 14px; font-size: 0.9rem; }
}
@media (max-width: 380px) {
  .dock__wave, .dock__busy, .dock__done { display: none !important; }
}

/* ===================================================== REDUCED MOTION == */
@media (prefers-reduced-motion: reduce) {
  .hero__plate, .hero__subject, .hero__key, .hero__title, .hero__pool, .hero__rings g { transform: none !important; }
  .hero__dust { display: none; }
  .type__caret, .field__caret { animation: none; }
  .dock__busy i { animation: none; }
  .close__bird, .close__in, .faq__body { transform: none !important; }
  .faq__ico, .faq__ico::before, .faq__ico::after, .plat--win::before { transition: none !important; }
  .type__spoken > span, .note, .dock__label { transition-duration: 1ms; }
}

/* ================================================================ LENIS == */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }

/* small phones: a flatter screen, less copy */
@media (max-width: 860px) and (max-height: 700px) {
  .mon__frame { aspect-ratio: 16 / 10; }
  .mwin { top: 4%; height: 84%; font-size: clamp(8.5px, 2.9cqw, 12px); }
  .demo__texts { height: 12.4rem; margin-top: 0.8rem; }
  .dtext__h { font-size: 1.25rem; }
  .said { font-size: 0.8rem; margin-top: 0.6rem; }
  .demo__legal { display: none; }
}

/* ============================================================== LOADER == */
/* holds the page until fonts, images and layout are in; the mark only shows
   if that takes longer than a moment, so a fast load never flashes it */
html.is-loading, html.is-loading body { overflow: hidden; }
html.is-loading body { touch-action: none; }
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; pointer-events: none;
  background: var(--sc-canvas); transition: opacity 520ms var(--sc-ease-out), visibility 0s linear 520ms;
}
html:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
.loader__mark { width: 48px; height: 48px; opacity: 0; animation: loader-mark 1.4s var(--sc-ease-in-out) 350ms infinite; }
@keyframes loader-mark { 0%, 100% { opacity: 0.3; transform: scale(0.96); } 50% { opacity: 0.9; transform: none; } }
@media (prefers-reduced-motion: reduce) { .loader__mark { animation: none; opacity: 0.7; } .loader { transition-duration: 1ms; } }
