/* Build with MiTrust — page styles.
   Tokens follow the marketing site: Onest, #1C63EF blue, #0E1116 ink.
   Values shown inside the hero card use a monospace, like the product. */

@font-face {
  font-family: 'Onest Variable';
  src: url('/fonts/Onest-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMonoVariableVF.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blue: #1C63EF;
  --blue-soft: #EFF4FE;
  --blue-line: #C6D8FB;
  --ink: #0E1116;
  --muted: #5B616E;
  --faint: #98A0AE;
  --line: #E4E7EE;
  --bg: #FFFFFF;
  --panel: #F7F8FA;

  /* The window. Height-driven so it always fits the viewport when it faces
     the reader; the 3D maths in build.js reads the resulting px size. */
  --card-h: clamp(500px, 70vh, 640px);
  --card-w: calc(var(--card-h) / 1.4);
  --radius: 22px;
  --hero-top: 44vh;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .15, 1);
  --shadow:
    0 1px 2px rgba(14, 17, 22, .04),
    0 24px 60px -24px rgba(14, 17, 22, .16),
    0 60px 120px -40px rgba(14, 17, 22, .10);
}

/* The site's own nav and footer are injected into this page, so everything
   below is scoped to the page's own content: the chrome keeps the site's
   typography and link styling, exactly as it renders everywhere else. */
html { margin: 0; }
/* Only on body: with it on <html> too, the overflow stops propagating to the
   viewport, body becomes the scroll container, and every position: sticky on
   the page — the scene and the nav — silently stops sticking. */
body { margin: 0; background: var(--bg); overflow-x: hidden; }

main, .pose {
  box-sizing: border-box;
  color: var(--ink);
  font-family: 'Onest Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
main *, .pose * { box-sizing: border-box; }
main a, .pose a { color: inherit; text-decoration: none; }
main button, .pose button { font: inherit; color: inherit; }
main h1, main h2, main h3 { font-weight: 500; letter-spacing: -.015em; margin: 0; }

.seal { width: 1em; height: 1em; color: var(--blue); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 18px; font-weight: 500;
}
.eyebrow .seal { font-size: 26px; }

/* The site's button, in the accent tone — same pill, same weight, same hover
   as the bar's CTA (see the buttons section of css/site-overrides.css, loaded
   above this file). The glow and the one-pixel lift are gone: they were this
   page's alone, and a button that moves under the pointer is one you can miss. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-height, 40px);
  padding: var(--btn-pad, 0 18px);
  border: 0; border-radius: var(--btn-radius, 999px);
  background: var(--btn-blue, #1c63ef); color: #fff;
  font-size: var(--btn-size, 14px); font-weight: var(--btn-weight, 500);
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease;
}
.btn:hover { background: var(--btn-blue-hover, #1550c9); }
.btn:focus-visible { outline: 2px solid var(--btn-blue, #1c63ef); outline-offset: 2px; }

/* The arrow is punctuation; it stays put. */
.link { color: var(--blue); font-weight: 500; font-size: 15px; }
.link span { display: inline-block; }

/* ---------- Scene ------------------------------------------------------ */

.scene { height: 540vh; position: relative; }
.pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }

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

.hero {
  position: absolute; inset: 0 0 auto 0;
  padding: 13vh 24px 0;
  text-align: center;
  z-index: 3;
  will-change: transform, opacity;
}
.hero h1 {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 450;
  line-height: 1.2;
}
.hero .btn { margin-top: 4vh; }

/* The "data shared" figure sits with the client logos it belongs to, on the
   left of the hero, under the rail. The block inside is the homepage's own,
   styling included. */
.shared {
  position: absolute;
  /* On the right, clear of the card, which leans left. */
  right: clamp(20px, 8vw, 150px);
  top: 71vh;
  width: max-content;
  max-width: min(30vw, 340px);
  z-index: 4;
  will-change: transform, opacity;
}
/* Stacked rather than in a row: it has to stay clear of the window beside it,
   and the figure reads better on its own line. */
.shared .titlecustomers {
  flex-direction: column; align-items: flex-start; justify-content: flex-start;
  text-align: left; padding: 0; row-gap: 4px;
}
.shared .titlecustomers > div { white-space: nowrap; }
.shared .counter-data-shared { margin: 2px 0; }
body:not([data-phase="0"]) .shared { pointer-events: none; }
body:not([data-phase="0"]) .hero { pointer-events: none; }

/* ---------- Layers: one per phase after the hero ---------------------- */

.layer {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .55s;
}
.layer.is-on {
  opacity: 1; visibility: visible;
  transition: opacity .4s var(--ease) .1s, visibility 0s;
}
.layer.is-on .side, .layer.is-on .kpi__text { pointer-events: auto; }

/* Things that slide in when their layer turns on */
.side, .kpi__text {
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.layer.is-on .side, .layer.is-on .kpi__text {
  opacity: 1; transform: none;
}
/* Phase 1 · use cases, either side of the window. --win-* come from JS.
   The list hangs off the window's left edge, right-aligned; what the chosen
   use case means sits off its right edge. */
.side { position: absolute; top: 53%; }
.side--left  { right: calc(100% - var(--win-left, 30vw) + 46px); width: min(27vw, 300px); text-align: right; }
.side--right { left: calc(var(--win-right, 70vw) + 44px); width: min(22vw, 300px); }
.layer.is-on .side { transform: translateY(-50%); }
.side { transform: translateY(calc(-50% + 18px)); }

.filter { position: relative; display: inline-block; margin-bottom: 17px; }
.filter__btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 39px; padding: 0 20px 0 13px;
  border: 0; border-radius: 999px;
  background: #EBEBEC; color: #171719;
  font-size: 15px; font-weight: 500; letter-spacing: -.023em;
  cursor: pointer;
  transition: background-color .2s;
}
.filter__btn:hover, .filter.is-open .filter__btn { background: #E1E1E3; }
.filter__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.filter__btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.filter.has-value .filter__btn { background: var(--blue-soft); color: var(--blue); }
.filter__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 6;
  min-width: 100%; width: max-content;
  margin: 0; padding: 6px;
  list-style: none; text-align: left;
  background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -18px rgba(14, 17, 22, .28);
  animation: menu-in .2s var(--ease);
}
.filter__menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.filter__menu li {
  padding: 8px 12px; border-radius: 9px;
  color: #2B2C30; font-size: 15px; letter-spacing: -.023em;
  cursor: pointer; outline: 0;
}
.filter__menu li:hover, .filter__menu li:focus-visible { background: var(--panel); }
.filter__menu li[aria-selected="true"] { color: var(--blue); font-weight: 500; }

.cases { list-style: none; margin: 0; padding: 0; transition: opacity .2s; }
/* The open menu covers part of the list; the rest steps back. */
.filter.is-open ~ .cases, .filter.is-open ~ .own { opacity: .25; }

/* The use cases: pills, right-aligned against the card. The one that is up is
   filled in; nothing opens, so the list holds still under the pointer. */
.cases { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.uc {
  display: grid; grid-template-rows: 1fr; max-width: 100%;
  opacity: 1;
  transition: grid-template-rows .4s var(--ease), opacity .3s var(--ease), margin .4s var(--ease);
}
.uc > button {
  display: inline-flex; align-items: center;
  min-height: 0; overflow: hidden;
  padding: 9px 18px;
  border: 1px solid #E6E6EA; border-radius: 999px; background: rgba(255, 255, 255, .55);
  color: #505258;
  font-size: 15px; line-height: 20px; letter-spacing: -.015em; text-align: right;
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .25s, padding .4s var(--ease), border-width .4s;
}
.uc > button:hover { color: var(--ink); border-color: #D2D3D9; background: #fff; }
.uc > button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* The use case on show: black, like the site's primary buttons. */
.uc.is-active > button,
.uc.is-active > button:hover {
  color: #fff; font-weight: 500; background: #0E1116; border-color: #0E1116;
  box-shadow: 0 8px 22px -10px rgba(16, 18, 24, .45);
}
.uc.is-out { grid-template-rows: 0fr; opacity: 0; margin-top: -8px; pointer-events: none; visibility: hidden; }
.uc.is-out > button { padding-top: 0; padding-bottom: 0; border-width: 0; }

/* The two titles, above the card, wired to it like labels on a floor plan:
   one square line from each title across to its half of the card's header —
   MiTrust's wordmark (0.236 of the card's width) on the left, the logo slot
   (0.710) on the right — and one straight down to the column beneath it.
   Positions come from the card's rest pose (--win-*, from build.js). */
.layer--cases {
  --ww: calc(var(--win-right, 70vw) - var(--win-left, 30vw));
  --wire-y: calc(var(--win-top, 24vh) - 70px);
}
.wire {
  position: absolute; top: calc(var(--wire-y) - 15px);
  margin: 0;
  font-size: 24px; font-weight: 600; line-height: 30px; letter-spacing: -.02em; white-space: nowrap;
  color: #171719;
}
.wire span { position: relative; display: block; background: #fff; padding: 0 12px; }
.wire--left { right: calc(100% - var(--win-left, 30vw) + 46px); }
.wire--right { left: calc(var(--win-right, 70vw) + 44px); color: var(--blue); }
/* Down from the title to its column. */
.wire::after {
  content: ''; position: absolute; top: 100%;
  width: 1px; height: var(--drop, 55px); background: currentColor; opacity: .35;
}
.wire--left { --drop: var(--drop-left, 55px); }
.wire--right { --drop: var(--drop-right, 55px); }
.wire--left::after { right: 40px; }
.wire--right::after { left: 40px; }
.wire-h, .wire-v { position: absolute; display: block; background: #171719; opacity: .35; }
.wire-h--right, .wire-v--right { background: var(--blue); }
.wire-h { top: var(--wire-y); height: 1px; }
.wire-v { top: var(--wire-y); width: 1px; height: calc(var(--win-top, 24vh) - var(--wire-y)); }
.wire-h--left { left: calc(var(--win-left, 30vw) - 46px); width: calc(var(--ww) * .236 + 46px); }
.wire-v--left { left: calc(var(--win-left, 30vw) + var(--ww) * .236); }
.wire-h--right { left: calc(var(--win-left, 30vw) + var(--ww) * .710); width: calc(var(--ww) * .290 + 44px); }
.wire-v--right { left: calc(var(--win-left, 30vw) + var(--ww) * .710); }

/* Both columns are centred on the card, each reached by its title's line. */
@media (min-width: 761px) {
  .layer--cases .side {
    top: calc((var(--win-top, 24vh) + var(--win-bottom, 76vh)) / 2);
    translate: 0 -50%;
    transform: translateY(18px);
  }
  .layer--cases.is-on .side { transform: none; }
}


.own {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px; padding: 0;
  border: 0; background: none;
  color: #888A90; font-size: 15px; line-height: 20px; letter-spacing: -.023em;
  cursor: pointer;
  transition: color .25s;
}
.own:hover, .own:focus-visible { color: var(--blue); outline: 0; }
.own svg { width: 18px; height: 18px; }

/* The data the use cases read, as a wheel (build.js, turnTo): plain rows, the
   ones the chosen use case asks for in ink with a tick and their source. On a
   change of use case it turns, settles with those rows in the middle, and the
   rows light up one after the other in the order the screen lists them. Every
   row is the same height and there is no gap between them, so the copies meet
   without a seam. */
.dtypes-view {
  /* Eleven rows, so the widest use case (eight rows from first to last) sits
     in the clear middle, with a soft fade into the paper at either end rather
     than a row cut through. */
  height: calc(11 * 42px);
  overflow: hidden;
  /* Room either side, so a tick that grows as it lights is not clipped. */
  margin: 0 -10px; padding: 0 10px;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.dtypes {
  list-style: none; margin: 0; padding: 0;
  transition: transform .85s cubic-bezier(.65, 0, .25, 1);
}
.dtypes.is-jumping { transition: none; }
.dt {
  display: grid; grid-template-columns: 18px auto 1fr; align-items: center; column-gap: 12px;
  height: 42px;
  border-bottom: 1px solid #F0F1F4;
  color: #B4B7BE;
  font-size: 15px; letter-spacing: -.015em; white-space: nowrap;
  transition: color .3s;
}
.dt__tick {
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #F0F1F4; color: transparent;
  transition: background-color .3s, color .3s;
}
.dt__tick svg { width: 10px; height: 10px; }
.dt__src {
  justify-self: end;
  font-size: 12.5px; color: var(--blue);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .3s, transform .45s var(--ease);
}
.dt.is-on { color: var(--ink); font-weight: 500; }
.dt.is-on .dt__tick { background: var(--blue); color: #fff; }
.dt.is-on .dt__src { opacity: 1; transform: none; font-weight: 400; }
/* Lit one after the other, in the screen's order; dimmed all at once. */
.dtypes.is-swapping .dt.is-on,
.dtypes.is-swapping .dt.is-on .dt__tick,
.dtypes.is-swapping .dt.is-on .dt__src { transition-delay: calc(var(--i, 0) * .12s); }
.dtypes.is-swapping .dt.is-on .dt__tick { animation: tick-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * .12s); }
@keyframes tick-in { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: none; } }

/* The window's rows arrive in the same order. */
.datacard.is-swapping .row { animation: row-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * .14s); }

/* Under the card: the badge a journey built on MiTrust carries, with a line up to it. */
.built-foot {
  position: absolute; left: calc((var(--win-left, 30vw) + var(--win-right, 70vw)) / 2);
  top: calc(var(--win-bottom, 76vh) + 30px);
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  color: var(--blue); font-size: 17px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap;
}
.built-foot .seal { width: 22px; height: 22px; }
.built-foot::before {
  content: ''; position: absolute; left: 50%; bottom: calc(100% + 6px);
  width: 1px; height: 24px; background: currentColor; opacity: .35;
}

/* Phase 2 · results */
.kpi__text { position: absolute; left: 17.4vw; top: 53%; width: min(30vw, 366px); }
.kpi__text h2 { font-size: 28px; line-height: 36px; letter-spacing: -.023em; color: #2B2C30; }
.layer.is-on .kpi__text { transform: translateY(-50%); }
.kpi__text { transform: translateY(calc(-50% + 18px)); }
.stats { list-style: none; margin: 0; padding: 0; }
.stat { margin-top: 52px; }
.stat + .stat { margin-top: 56px; }
.stat b {
  display: block;
  color: var(--blue);
  font-size: 40px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em;
}
.stat p { margin: 18px 0 0; color: #000; font-size: 15px; line-height: 24px; letter-spacing: -.011em; }
.stat small { display: block; margin-top: 14px; color: rgba(0, 0, 0, .5); font-size: 13px; line-height: 17px; letter-spacing: -.011em; }

/* Phase 3 · the three layers, named under the three cards */
.tiers {
  position: absolute; left: 50%; bottom: 7vh;
  display: grid; grid-template-columns: repeat(3, 262px); gap: 0 54px;
  list-style: none; margin: 0; padding: 0;
  transform: translateX(-50%);
}
.tier { opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.layer.is-on .tier { opacity: 1; transform: none; }
.layer.is-on .tier:nth-child(2) { transition-delay: .08s; }
.layer.is-on .tier:nth-child(3) { transition-delay: .16s; }
.tier h3 { font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: -.011em; color: #000; }
.tier p { margin: 15px 0 0; color: #888A90; font-size: 13px; line-height: 17px; letter-spacing: -.011em; }

/* ---------- Stage (3D) ------------------------------------------------- */

.stage {
  position: absolute; inset: 0;
  perspective: 2200px;
  perspective-origin: 50% 40%;
  z-index: 2;
}
.plane {
  position: absolute;
  top: var(--hero-top);
  left: 50%;
  width: var(--card-w); height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  transform-style: preserve-3d;
  /* will-change is set by build.js only while the plane moves. */
}

.window {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(151, 151, 151, .45);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backface-visibility: hidden;
  will-change: opacity;
}
.window.is-over { box-shadow: var(--shadow), inset 0 0 0 2px var(--blue); }
body[data-phase="3"] .window { pointer-events: none; }

/* Everything inside the window is sized in --u, one 413th of its width — the
   width the card is drawn at in the design — so a value read off the design is
   the value written here, whatever size the window renders at. */
.plane { --u: calc(var(--card-w) / 413); --radius: calc(12 * var(--u)); }
.window__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(48 * var(--u)) calc(41 * var(--u)) 0 calc(55 * var(--u));
  flex-shrink: 0;
}

/* The brand slot: a dashed pill until a logo is dropped in it */
.brand {
  position: relative;
  display: grid; place-items: center;
  width: calc(156 * var(--u)); height: calc(46 * var(--u));
  border: 1px dashed #CACBCC; border-radius: calc(12 * var(--u));
  color: #A4A4A7; font-size: calc(12 * var(--u)); font-weight: 500; letter-spacing: -.023em;
  cursor: pointer;
  transition: opacity .3s var(--ease), border-color .25s, background .25s, transform .25s var(--ease);
}
.brand:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.brand.is-over { border-color: var(--blue); background: var(--blue-soft); transform: scale(1.04); }
.brand input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.brand__img { display: none; max-height: calc(30 * var(--u)); max-width: calc(150 * var(--u)); }
.brand__clear {
  position: absolute; top: -8px; right: -8px;
  display: none; place-items: center;
  width: 20px; height: 20px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--muted);
  font-size: 13px; line-height: 1; cursor: pointer;
}
.brand.has-logo { border-style: solid; border-color: transparent; background: none; }
.brand.has-logo .brand__ph { display: none; }
.brand.has-logo .brand__img { display: block; }
.brand.has-logo:hover .brand__clear { display: grid; }
body[data-phase="0"] .brand { opacity: 0; pointer-events: none; }

/* MiTrust's wordmark, on the left of the header, in every phase */
.wordmark { display: block; width: calc(83 * var(--u)); height: auto; }
.wordmark svg { display: block; width: 100%; height: auto; }
/* Black, with the dot on the i as the one blue accent. */
.wordmark .wm { fill: #000; }
.wordmark .dot { fill: #1C63EF; }

.screens { position: relative; flex: 1; min-height: 0; }
.screen {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.screen.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .1s; }

/* Hero · the consent screen. The header ends 94u down the card; every offset
   below is the design's y, less that. */
.screen--consent { --navy: #09215F; font-family: 'Inter Variable', 'Inter', 'Onest Variable', system-ui, sans-serif; }
.stepper {
  display: flex; justify-content: center; align-items: center;
  list-style: none; margin: calc(50 * var(--u)) 0 0; padding: 0;
  color: #000; font-size: calc(13.4 * var(--u)); font-weight: 500; line-height: calc(16 * var(--u));
}
.stepper li { display: flex; align-items: center; }
.stepper li + li::before { content: ''; width: calc(36 * var(--u)); height: 1px; margin: 0 calc(10 * var(--u)); background: #DADBDE; }

/* What the card lists, said once above it (Martin, 30 October). */
.datacard__title {
  width: calc(303 * var(--u)); margin: calc(30 * var(--u)) auto 0;
  color: #858585; font-size: calc(12 * var(--u)); font-weight: 500; line-height: calc(16 * var(--u)); letter-spacing: -.01em;
  text-align: left;
}
.datacard {
  width: calc(303 * var(--u));
  margin: calc(10 * var(--u)) auto 0;
  padding: 0 calc(12 * var(--u));
  background: #F5F5F5;
  border: 1px solid #E8E8EA; border-radius: calc(10 * var(--u));
  text-align: left;
}
.row {
  display: flex; align-items: flex-start; gap: calc(8 * var(--u));
  padding: calc(11 * var(--u)) 0 calc(12 * var(--u));
  border-bottom: 1px solid #E4E4E6;
}
.row:last-child { border-bottom: 0; }
.row svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); margin-top: calc(4 * var(--u)); color: var(--navy); flex-shrink: 0; }
.row b { display: block; font-size: calc(15.8 * var(--u)); font-weight: 500; line-height: calc(20 * var(--u)); color: #2B2C30; }
.row i {
  display: block; margin-top: calc(2 * var(--u));
  font: 400 calc(13.4 * var(--u)) / 1.4 'JetBrains Mono', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(25, 26, 30, .71);
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } }

.badges {
  display: flex; justify-content: center; gap: calc(11 * var(--u));
  margin: calc(40 * var(--u)) 0 0;
  color: rgba(57, 59, 70, .6); font-size: calc(10.5 * var(--u)); font-weight: 500; line-height: calc(14 * var(--u));
}
.badges span { display: inline-flex; align-items: center; gap: calc(4 * var(--u)); }
.badges span::before {
  content: ''; width: calc(12 * var(--u)); height: calc(13 * var(--u));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23C4C5CA' d='M8 1l5.500 2v4.600c0 3.300-2.300 5.900-5.500 7.400C4.800 13.500 2.500 10.900 2.500 7.600V3L8 1z'/%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round' d='M5.600 8l1.700 1.700 3.200-3.400'/%3E%3C/svg%3E") center / contain no-repeat;
}

.share {
  display: flex; align-items: center;
  width: calc(289 * var(--u)); height: calc(64 * var(--u)); margin: calc(24 * var(--u)) auto 0; padding: calc(4 * var(--u));
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 calc(6 * var(--u)) calc(24 * var(--u)) rgba(9, 33, 95, .08), 0 0 0 1px rgba(9, 33, 95, .03);
  color: var(--navy); font-size: calc(13.4 * var(--u)); font-weight: 500;
}
.share i {
  display: grid; place-items: center;
  width: calc(56 * var(--u)); height: calc(56 * var(--u)); border-radius: 50%;
  background: var(--navy); color: #fff;
}
.share i svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.share span { flex: 1; text-align: center; padding-right: calc(40 * var(--u)); }

.screen--result { text-align: center; color: #171719; }

/* Results · the journey's last screen */
.result__img { display: block; width: calc(189 * var(--u)); height: auto; margin: calc(97 * var(--u)) auto 0; }
.result__title { margin: calc(23 * var(--u)) auto 0; width: calc(260 * var(--u)); font-size: calc(18.200 * var(--u)); font-weight: 500; line-height: calc(23.400 * var(--u)); letter-spacing: -.023em; }
.result__meta { margin: calc(40 * var(--u)) 0 0; color: #858585; font-size: calc(14.300 * var(--u)); line-height: calc(18 * var(--u)); letter-spacing: -.01em; }
.built { display: block; width: calc(133 * var(--u)); height: auto; margin: calc(32 * var(--u)) auto 0; }

/* The three layers · three cards the size of the window, in the plane's own
   3D context. --f, from build.js, fans them out; --sx/--sy/--sz, also from
   build.js, are one step of the fan in card widths, worked out from the pose
   so that the cards overlap as drawn and the first one, on the left, is the
   nearest. */
.slabs { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; --f: 0; --slab-o: 0; }
.slabs .slab { opacity: var(--slab-o); }
/* Front card first, in whatever way the browser stacks them: by depth in 3D,
   by z-index where it cannot (and the two agree). */
.slabs .slab:nth-child(1) { z-index: 3; }
.slabs .slab:nth-child(2) { z-index: 2; }
.slabs .slab:nth-child(3) { z-index: 1; }
.slab {
  position: absolute; inset: 0;
  --step: calc(var(--i) * var(--f) * var(--card-w));
  transform: translate3d(calc(var(--step) * var(--sx, .6)), calc(var(--step) * var(--sy, 0)), calc(var(--step) * var(--sz, 0)));
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(0, 0, 0, .32);
  border-radius: var(--radius);
}
.sk { position: absolute; border-radius: calc(8 * var(--u)); background: rgba(0, 0, 0, .045); }
.sk--brand { left: calc(41 * var(--u)); top: calc(48 * var(--u)); width: calc(156 * var(--u)); height: calc(46 * var(--u)); background: none; border: 1px dashed rgba(0, 0, 0, .16); border-radius: calc(12 * var(--u)); }
.sk--wm { right: calc(55 * var(--u)); top: calc(64 * var(--u)); width: calc(108 * var(--u)); height: calc(14 * var(--u)); }
.sk--a { left: calc(55 * var(--u)); right: calc(55 * var(--u)); top: calc(217 * var(--u)); height: calc(187 * var(--u)); border-radius: calc(10 * var(--u)); }
.sk--b { left: calc(130 * var(--u)); right: calc(130 * var(--u)); top: calc(160 * var(--u)); height: calc(14 * var(--u)); }
.sk--c { left: calc(130 * var(--u)); right: calc(130 * var(--u)); top: calc(457 * var(--u)); height: calc(12 * var(--u)); }
.sk--cta { left: calc(62 * var(--u)); right: calc(62 * var(--u)); top: calc(495 * var(--u)); height: calc(64 * var(--u)); border-radius: 999px; }

/* Client logos riding the plane in the hero, landing in the brand slot */
.track {
  /* left / top / height are set by build.js, from the header's own geometry */
  position: absolute; top: 0; left: 0; height: 0;
  transform-style: preserve-3d;
  z-index: 5;
  pointer-events: none;
}
.logo {
  position: absolute; top: 50%; left: 0;
  display: flex; align-items: center;
  transform: translate3d(calc(var(--x, 0px) - 50%), -50%, 2px);
  opacity: var(--o, 1);
  transition: transform 1s var(--ease-io), opacity 1s var(--ease-io);
  will-change: transform, opacity;
}
.logo.is-leaving { transition: transform 1s var(--ease-io), opacity .32s linear; }
.logo.is-jumping,
.track.is-placing .logo { transition: none; }
/* Sized by build.js from each logo's measured ink, so a wide wordmark and a
   square mark carry the same weight. The fallback is a plain box. */
.logo img { display: block; width: auto; height: auto; max-width: calc(150 * var(--u)); max-height: calc(34 * var(--u)); }
.logo img[style*="width"] { max-width: none; max-height: none; }

/* ---------- Outro ------------------------------------------------------- */

.outro {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12vh 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.outro h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 14px; }
.outro > p { margin: 0 0 28px; color: var(--muted); font-size: 16px; max-width: 460px; }

/* ---------- "Create your own" dialog ------------------------------------ */

.modal {
  width: min(460px, calc(100vw - 32px)); padding: 0;
  border: 0; border-radius: 20px;
  background: #fff; color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(14, 17, 22, .45);
  font-family: 'Onest Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.modal * { box-sizing: border-box; }
.modal[open] { animation: modal-in .35s var(--ease); }
.modal::backdrop { background: rgba(14, 17, 22, .42); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal__form, .modal__done { position: relative; padding: 32px; }
.modal__form[hidden], .modal__done[hidden] { display: none; }
.modal__done { text-align: center; }
.modal__done .seal { width: 44px; height: 44px; margin-bottom: 10px; }
.modal h2 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.modal__lead { margin: 8px 0 20px; color: var(--muted); }
.modal label { display: block; margin-top: 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.modal input, .modal textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 450;
  transition: border-color .2s, box-shadow .2s;
}
.modal textarea { resize: vertical; min-height: 96px; }
.modal input:focus, .modal textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28, 99, 239, .15); }
.modal .btn { margin-top: 22px; font-family: inherit; }
.modal .btn:disabled { opacity: .6; cursor: default; }
.modal__form .btn { width: 100%; }
.modal__error { margin: 14px 0 0; color: #C0362C; font-size: 13px; }
.modal__error[hidden] { display: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--panel); color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: var(--line); color: var(--ink); }

/* ---------- Review aid: the pose panel ---------------------------------- */

.pose[hidden] { display: none; }
.pose {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 250px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px -16px rgba(14, 17, 22, .3);
  backdrop-filter: blur(8px);
  font-size: 12px;
}
.pose__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  font-weight: 500;
}
.pose__head button {
  width: 22px; height: 22px; padding: 0;
  border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--muted); cursor: pointer;
}
.pose__body { padding: 0 12px 12px; border-top: 1px solid var(--line); }
.pose.is-closed .pose__body { display: none; }
.pose label { display: block; margin-top: 8px; color: var(--muted); }
.pose output { float: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.pose input[type=range] { display: block; width: 100%; margin: 4px 0 0; accent-color: var(--blue); }
.pose__row { display: flex; gap: 6px; margin-top: 12px; }
.pose__row button {
  flex: 1; padding: 7px 0;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font-size: 12px; font-weight: 500; cursor: pointer;
}
.pose__row button:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.pose pre {
  margin: 10px 0 0; padding: 8px;
  background: var(--panel); border-radius: 8px;
  font: 11px/1.4 'Geist Mono', ui-monospace, monospace;
  white-space: pre-wrap; word-break: break-all; color: var(--muted);
}

/* ---------- Narrow viewports -------------------------------------------- */

@media (max-width: 1100px) {
  :root { --card-h: clamp(460px, 66vh, 600px); }
  .side--left { right: calc(100% - var(--win-left, 30vw) + 28px); width: 27vw; }
  .side--right { left: calc(var(--win-right, 70vw) + 28px); width: 22vw; }
  .wire { font-size: 20px; line-height: 30px; }
  .dt { font-size: 14px; }
  .uc > button, .own, .filter__btn { font-size: 14px; }
  .kpi__text { left: 6vw; width: 36vw; }
  .kpi__text h2 { font-size: 24px; line-height: 31px; }
  .stat, .stat + .stat { margin-top: 32px; }
  .stat b { font-size: 32px; }
  .stat p { margin-top: 10px; font-size: 14px; line-height: 21px; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 240px)); gap: 0 28px; width: calc(100vw - 48px); justify-content: center; }
}

@media (max-width: 760px) {
  :root { --card-h: min(56vh, 480px); --hero-top: 44vh; }
  .hero h1 br { display: none; }
  .pose { right: 10px; bottom: 10px; width: 220px; }
  .hero { padding-top: 9vh; }
  .eyebrow { font-size: 15px; }
  .eyebrow .seal { font-size: 22px; }
  .hero .btn { margin-top: 3vh; }
  /* Between the call to action and the plane, centred, and free to wrap. */
  /* Clear of the call to action above it, which the four-line title pushes down. */
  .shared { left: 20px; right: 20px; top: max(45vh, 345px); width: auto; max-width: none; }
  .shared .titlecustomers { align-items: center; justify-content: center; text-align: center; }
  .shared .titlecustomers > div { white-space: normal; }

  /* Use cases: what it means right under the window, the list as a strip of
     chips along the bottom. */
  .side { width: auto; left: 0 !important; right: 0 !important; padding: 0 20px; }
  .side, .layer.is-on .side { transform: none; }
  /* No room for the sentence or the card: the text goes under the window and
     the use cases become a strip of chips along the bottom. */
  .wire, .wire-h, .wire-v, .built-foot { display: none; }
  /* The data the use case reads, as a strip under the window: lit ones only. */
  .side--right { top: calc(var(--win-bottom, 60vh) + 16px); }
  .dtypes-view { height: auto; -webkit-mask-image: none; mask-image: none; }
  .dtypes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; transform: none !important; }
  .dt { display: none; height: auto; padding: 5px 10px 5px 6px; border: 1px solid var(--blue-line); border-radius: 999px; font-size: 13px; column-gap: 6px; grid-template-columns: 18px auto; }
  .dt.is-on:not(.dt--echo) { display: grid; }
  .dt__src { display: none; }
  .side--left { top: auto; bottom: 18px; text-align: left; }
  .filter { margin-bottom: 10px; }
  .filter__btn { height: 34px; }
  .filter__menu { top: auto; bottom: calc(100% + 8px); right: auto; left: 0; }
  .cases { flex-direction: row; align-items: center; gap: 6px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
  .cases::-webkit-scrollbar { display: none; }
  .uc { display: block; flex-shrink: 0; }
  .uc.is-out { display: none; }
  .uc > button { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
  .uc.is-active > button { box-shadow: none; }
  .own { margin-top: 10px; font-size: 13px; }

  /* Results: the copy above, the card below */
  .kpi__text { left: 0; right: 0; top: 9vh; width: auto; padding: 0 20px; }
  .kpi__text, .layer.is-on .kpi__text { transform: none; }
  .kpi__text h2 { font-size: 19px; line-height: 24px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .stat, .stat + .stat { margin-top: 14px; }
  .stat b { font-size: 24px; }
  .stat p { margin-top: 4px; font-size: 12px; line-height: 16px; }
  .stat small { margin-top: 6px; font-size: 10.5px; line-height: 14px; }

  .tiers { left: 20px; right: 20px; bottom: 3vh; width: auto; transform: none; grid-template-columns: 1fr; gap: 12px; }
  .tier p { margin-top: 3px; font-size: 12px; line-height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* The three layers as screens: each card is the concept window at one step —
   Select, Connect, Share (lib/pages/experience.ts, buildTierPhones) — laid
   out in the plane's own units, so it fills the card as the window does. */
.slab--phone {
  background: none;
  border: 0;
}
.slab--phone .mt-ux-tier { position: absolute; inset: 0; pointer-events: none; }
.slab--phone .mt-stack-screen {
  --u: calc(var(--card-w) / 413);
  position: absolute; inset: 0;
  width: auto; height: auto;
  transform: none;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .28);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(16, 18, 60, .35);
}

/* A single use case filmed on its own (build.js, #capture): no menu, no
   cookie banner, no filter, nothing but the screen. */
.is-capture .sticky-nav, .is-capture .mtc, .is-capture .filter, .is-capture .own { display: none !important; }
.is-capture .datacard:empty { min-height: calc(180 * var(--u)); }
.is-capture .uc > button { white-space: nowrap; }
.is-capture .side--left { width: max-content; }
.is-capture .uc { max-width: none; }

/* The use cases as a wheel for the film: rows of one height, a fade at
   either end, the one in the middle chosen. */
.is-capture .cases-view {
  height: calc(7 * 54px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  padding: 0 12px;
}
.is-capture .cases { gap: 0; }
.is-capture .uc { height: 54px; display: flex; align-items: center; justify-content: flex-end; }
.is-capture .uc > button { transition: none; }
