/* ==========================================================================
   HAVEN — design system
   Layout concept: an architect's drawing set. Dark plates and bone sheets
   alternate; hairlines, mono annotations and a serif display carry hierarchy.
   The palette is fixed by the brand (one visual world, no theme switch).
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Colour — ink, bone, stone, and one quiet brass */
  --ink: #0b0b0a;
  --ink-2: #121210;
  --ink-3: #1a1a17;
  --ink-4: #26261f;
  --bone: #f2efe9;
  --bone-2: #e8e4dc;
  --paper: #f9f7f3;
  --stone: #8c877e;
  --stone-2: #b5b0a6;
  --stone-3: #d6d1c7;
  --brass: #c9b78f;
  --brass-deep: #84703f;
  --ok: #8fa089;
  --ok-deep: #55694f;
  --warn: #c6a15b;
  --warn-deep: #8c6a22;
  --alert: #c07a63;
  --alert-deep: #9a4d38;

  /* Type */
  --f-display: "Cormorant Garamond", "Cormorant", "EB Garamond", Garamond, "Hoefler Text", "Times New Roman", serif;
  --f-sans: "Geist", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --t-hero: clamp(3rem, min(8.8vw, 17vh), 10rem);
  --t-h2: clamp(2.7rem, 6.2vw, 6.25rem);
  --t-h3: clamp(2rem, 3.4vw, 3.25rem);
  --t-h4: clamp(1.5rem, 2vw, 1.875rem);
  --t-lead: clamp(1.0625rem, 1.25vw, 1.25rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-label: 0.6875rem;

  /* Space & shape */
  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1360px;
  --section: clamp(104px, 15vw, 216px);
  --r-1: 2px;
  --r-2: 6px;
  --r-3: 10px;
  --nav-h: 76px;

  /* Motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-soft: cubic-bezier(0.25, 0.6, 0.3, 1);
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }
img, canvas { display: block; max-width: 100%; }
em { font-style: italic; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }

.is-locked body { overflow: hidden; }

/* ---- Surfaces --------------------------------------------------------------
   Every section declares a tone; components only read these local tokens. */
.s--dark {
  --bg: var(--ink);
  --fg: var(--bone);
  --mute: rgba(242, 239, 233, 0.6);
  --faint: rgba(242, 239, 233, 0.38);
  --line: rgba(242, 239, 233, 0.14);
  --line-2: rgba(242, 239, 233, 0.07);
  --panel: var(--ink-2);
  --panel-2: var(--ink-3);
  --accent: var(--brass);
  background: var(--bg);
  color: var(--fg);
}
.s--light {
  --bg: var(--bone);
  --fg: var(--ink);
  --mute: rgba(11, 11, 10, 0.64);
  --faint: rgba(11, 11, 10, 0.42);
  --line: rgba(11, 11, 10, 0.16);
  --line-2: rgba(11, 11, 10, 0.08);
  --panel: var(--paper);
  --panel-2: var(--bone-2);
  --accent: var(--brass-deep);
  background: var(--bg);
  color: var(--fg);
}
.s--paper { --bg: var(--paper); background: var(--bg); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.s { position: relative; padding-block: var(--section); }

/* ---- Type ------------------------------------------------------------------ */
.display, .h2, .h3 {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.022em;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
/* Leading is set for Cormorant's long descenders: tighter and p/g/y touch the capitals below. */
.display { font-size: var(--t-hero); line-height: 0.97; }
.h2 { font-size: var(--t-h2); line-height: 1.01; }
.h3 { font-size: var(--t-h3); line-height: 1.06; font-weight: 400; letter-spacing: -0.015em; }
.display em, .h2 em, .h3 em { font-style: italic; letter-spacing: -0.03em; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.label::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--accent);
}
.label--plain::before { display: none; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--mute);
  max-width: 34em;
  text-wrap: pretty;
}
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.num { font-variant-numeric: lining-nums tabular-nums; }

/* ---- Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--fg, var(--bone));
  --btn-fg: var(--bg, var(--ink));
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1.1em;
  height: 54px;
  padding: 0 22px 0 26px;
  border-radius: var(--r-1);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--e-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brass);
  transform: translateY(101%);
  transition: transform 0.55s var(--e-out);
}
.btn__t { position: relative; display: block; overflow: hidden; }
.btn__t > span { position: relative; display: block; transition: transform 0.55s var(--e-out); }
.btn__t > span::after {
  content: attr(data-t);
  position: absolute;
  left: 0;
  top: 100%;
}
.btn__i {
  position: relative;
  width: 18px;
  height: 18px;
  overflow: hidden;
  flex: none;
}
.btn__i svg {
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  transition: transform 0.55s var(--e-out);
}
.btn__i svg + svg { transform: translateX(-140%); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg, var(--bone));
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost::before { background: var(--fg, var(--bone)); }
.btn--sm { height: 42px; padding: 0 16px 0 18px; font-size: 0.8125rem; gap: 0.8em; }
.btn--lg { height: 68px; padding: 0 30px 0 36px; font-size: 1.0625rem; }
.btn:active { transform: scale(0.98); }

@media (hover: hover) {
  .btn:hover::before { transform: none; }
  .btn:hover { color: var(--ink); }
  .btn--ghost:hover { color: var(--bg, var(--ink)); }
  .btn:hover .btn__t > span { transform: translateY(-100%); }
  .btn:hover .btn__i svg { transform: translateX(140%); }
  .btn:hover .btn__i svg + svg { transform: none; }
}

/* Text link with a drawn underline */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--e-out);
}
@media (hover: hover) {
  .link:hover { background-size: 100% 1px; background-position: 0 100%; }
}

/* ---- Reveal primitives ------------------------------------------------------
   Hidden states only apply once JS is confirmed running (.js on <html>). */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0.07em 0.2em;
  margin: -0.1em -0.07em -0.2em;
}
.js [data-split] .wi {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 1.25s var(--e-out);
  transition-delay: calc(var(--i, 0) * 46ms + var(--d, 0ms));
  will-change: transform;
}
.js [data-split].is-in .wi { transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1s var(--e-soft), transform 1.2s var(--e-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="rule"] {
  opacity: 1;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.5s var(--e-inout);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="rule"].is-in { transform: none; }

.rule { display: block; height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Preloader --------------------------------------------------------------- */
.preloader { display: none; }
.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bone);
  transition: clip-path 1.1s var(--e-inout), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.js.is-loaded .preloader { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
.preloader__mark { width: 46px; height: 46px; }
.preloader__mark path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: pre-draw 1.1s var(--e-inout) 0.1s forwards;
}
.preloader__mark path + path { animation-delay: 0.45s; }
.preloader__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  color: rgba(242, 239, 233, 0.5);
}
@keyframes pre-draw { to { stroke-dashoffset: 0; } }

/* ---- Cursor follower ---------------------------------------------------------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: difference;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s;
  }
  .js .cursor.is-on { opacity: 1; }
  .cursor::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid currentColor;
    transition: transform 0.5s var(--e-out), background-color 0.3s, opacity 0.3s;
    opacity: 0.7;
  }
  .cursor.is-hover::before { transform: scale(1.75); opacity: 0.35; }
  .cursor.is-down::before { transform: scale(0.75); }
  .cursor.is-label::before { transform: scale(2.5); background: currentColor; opacity: 1; }
  .cursor__label {
    position: relative;
    font-family: var(--f-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #000;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s, transform 0.5s var(--e-out);
    white-space: nowrap;
  }
  .cursor.is-label .cursor__label { opacity: 1; transform: none; }
}

/* ---- Film grain: a still, tiled texture — no blend mode, no repaint cost ----- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Skip link ----------------------------------------------------------------- */
.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 300;
  padding: 10px 14px;
  background: var(--bone);
  color: var(--ink);
  font-size: var(--t-small);
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
}
.skip:focus { transform: none; opacity: 1; pointer-events: auto; }

/* ---- Navigation ----------------------------------------------------------------- */
.nav {
  --fg: var(--bone);
  --bg: var(--ink);
  --line: rgba(242, 239, 233, 0.14);
  --glass: rgba(11, 11, 10, 0.72);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--fg);
  transition: color 0.5s var(--e-soft), transform 0.7s var(--e-out);
}
.nav[data-tone="light"] {
  --fg: var(--ink);
  --bg: var(--bone);
  --line: rgba(11, 11, 10, 0.14);
  --glass: rgba(242, 239, 233, 0.78);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.5s var(--e-soft), background-color 0.5s var(--e-soft);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  width: min(100% - 2 * var(--gutter), 1760px);
  margin-inline: auto;
  transition: height 0.6s var(--e-out);
}
.nav.is-scrolled .nav__inner { height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.brand span { padding-top: 2px; }

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(20px, 2.6vw, 44px);
  font-size: 0.875rem;
}
.nav__links a { position: relative; padding: 8px 0; opacity: 0.72; transition: opacity 0.3s; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--e-out);
}
.nav__links a.is-current { opacity: 1; }
@media (hover: hover) {
  .nav__links a:hover { opacity: 1; }
  .nav__links a:hover::after { transform: none; transform-origin: 0 50%; }
}
.nav__right { display: flex; align-items: center; gap: 18px; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
}
.lang span { opacity: 0.42; transition: opacity 0.3s; }
.lang span.is-on { opacity: 1; }
.lang i { opacity: 0.3; font-style: normal; }
@media (hover: hover) { .lang:hover span { opacity: 0.8; } .lang:hover span.is-on { opacity: 1; } }

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-right: -9px;
}
.burger i {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 1px;
  background: currentColor;
  transition: transform 0.6s var(--e-out);
}
.burger i:first-child { transform: translateY(-4px); }
.burger i:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav__links, .nav__right .btn, .nav__right .lang { display: none; }
  .burger { display: block; }
  :root { --nav-h: 64px; }
}

/* ---- Mobile menu ------------------------------------------------------------------ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--nav-h) + 40px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--bone);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--e-inout), visibility 0s 0.9s;
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.menu__links { display: grid; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.12);
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 11vw, 3.75rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.menu__links a small {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  color: rgba(242, 239, 233, 0.4);
}
.menu__links a span {
  display: block;
  transform: translateY(120%);
  transition: transform 1s var(--e-out);
  transition-delay: calc(var(--i) * 60ms + 0.15s);
}
.menu.is-open .menu__links a span { transform: none; }
.menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.6s 0.5s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot .lang { display: inline-flex; }

/* ---- Demo request sheet -------------------------------------------------------------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  transition: visibility 0s 0.8s;
}
.sheet.is-open { visibility: visible; transition-delay: 0s; }
.sheet__veil {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 4, 0.62);
  opacity: 0;
  transition: opacity 0.6s var(--e-soft);
}
.sheet.is-open .sheet__veil { opacity: 1; }
.sheet__panel {
  --bg: var(--bone);
  --fg: var(--ink);
  --mute: rgba(11, 11, 10, 0.62);
  --faint: rgba(11, 11, 10, 0.42);
  --line: rgba(11, 11, 10, 0.18);
  color-scheme: light;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  padding: calc(28px + env(safe-area-inset-top, 0px)) clamp(22px, 4vw, 48px) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  color: var(--fg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.85s var(--e-out);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(32px, 7vh, 72px); }
.sheet__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
}
.sheet__close i { position: relative; width: 14px; height: 14px; }
.sheet__close i::before, .sheet__close i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transition: transform 0.5s var(--e-out);
}
.sheet__close i::after { transform: rotate(-45deg); }
@media (hover: hover) {
  .sheet__close:hover i::before { transform: rotate(135deg); }
  .sheet__close:hover i::after { transform: rotate(45deg); }
}
.sheet__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.5rem, 6vw, 3.6rem); line-height: 1.03; letter-spacing: -0.02em; }
.sheet__intro { margin-top: 16px; color: var(--mute); max-width: 30em; }

.form { display: grid; gap: 26px; margin-top: clamp(28px, 5vh, 48px); }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%;
  padding: 22px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  font-size: 1.0625rem;
  transition: border-color 0.3s;
  resize: none;
}
.field textarea { min-height: 84px; }
.field span {
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--mute);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform 0.45s var(--e-out), color 0.3s;
}
.field input:focus ~ span, .field input:not(:placeholder-shown) ~ span,
.field textarea:focus ~ span, .field textarea:not(:placeholder-shown) ~ span {
  transform: translateY(-20px) scale(0.72);
  color: var(--faint);
}
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--e-out);
}
.field:focus-within::after { transform: none; }
.field.is-error input { border-color: var(--alert-deep); }
.field__err { display: none; margin-top: 6px; font-size: 0.8125rem; color: var(--alert-deep); }
.field.is-error .field__err { display: block; }

.seg { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 12px; color: var(--mute); font-size: var(--t-small); }
.seg__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg label span {
  display: grid;
  place-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-1);
  font-size: 0.9375rem;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.seg input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.seg input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.form .btn { justify-content: space-between; width: 100%; --btn-bg: var(--ink); --btn-fg: var(--bone); }
.form__note { font-size: 0.8125rem; color: var(--faint); }

.sheet__done { display: none; margin-top: auto; margin-bottom: auto; }
.sheet.is-done .sheet__form { display: none; }
.sheet.is-done .sheet__done { display: block; }
.sheet.is-preview .sheet__done .sheet__intro { display: none; }
.sheet__done svg { width: 54px; height: 54px; margin-bottom: 28px; }
.sheet__done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.sheet.is-done .sheet__done svg path { animation: pre-draw 0.9s var(--e-out) 0.25s forwards; }

/* ---- Reduced motion --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-split] .wi { opacity: 1; transform: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; height: 320vh; }
.hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 70% 44%, rgba(201, 183, 143, 0.085), transparent 70%),
    radial-gradient(90% 60% at 20% 110%, rgba(242, 239, 233, 0.05), transparent 70%);
  pointer-events: none;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(92px, 13.5vh, 148px);
  will-change: transform, opacity;
}
.hero__content::before {
  content: "";
  position: absolute;
  left: -20%;
  right: 22%;
  top: -12%;
  bottom: 0;
  z-index: -1;
  background: radial-gradient(60% 60% at 38% 55%, rgba(11, 11, 10, 0.86), rgba(11, 11, 10, 0) 72%);
  pointer-events: none;
}
.hero__eyebrow { margin-bottom: clamp(18px, 3.2vh, 34px); }
.hero__title { text-wrap: initial; margin-left: -0.04em; }
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(22px, 3.4vw, 56px);
  margin-top: clamp(24px, 4.6vh, 52px);
}
.hero__sub { max-width: 27em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.js [data-hero-in] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.3s var(--e-soft), transform 1.5s var(--e-out);
  transition-delay: var(--d, 0ms);
}
.js.is-ready [data-hero-in] { opacity: 1; transform: none; }

/* Second statement, revealed once the building opens */
.hero__state2 {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.hero__state2 .label { margin-bottom: 22px; }
.hero__s2title { max-width: 6.6em; font-size: clamp(2.5rem, 4.9vw, 5rem); }

/* Level annotations — positioned every frame from projected 3D anchors */
.hero__levels, .hero__cards { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.lvl {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: baseline;
  width: clamp(190px, 19vw, 270px);
  opacity: 0;
  will-change: transform, opacity;
  transition: color 0.5s;
}
.lvl__k { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.14em; color: var(--faint); }
.lvl__n {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.1vw, 2.125rem);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.6s;
}
.lvl__d { grid-column: 2; margin-top: 6px; font-size: 0.8125rem; line-height: 1.35; color: var(--mute); }
.lvl.is-active .lvl__n { color: var(--brass); }
.lvl.is-active .lvl__k { color: var(--brass); }

.hcard {
  position: absolute;
  left: 0;
  top: 0;
  width: 232px;
  padding: 12px 14px 13px;
  background: rgba(18, 18, 16, 0.62);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-size: 0.8125rem;
  line-height: 1.35;
  opacity: 0;
  will-change: transform, opacity;
}
.hcard__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-family: var(--f-mono);
  font-size: 0.5938rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.hcard__t { margin-left: auto; color: var(--faint); }
.hcard__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); animation: pulse 2.4s ease-in-out infinite; }
.hcard__a { color: var(--fg); }
.hcard__b { color: var(--mute); }
.hcard__m { margin-left: 8px; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--brass); }
.hcard__bar { margin-top: 10px; height: 1px; background: var(--line); }
.hcard__bar i { display: block; height: 1px; width: 96%; background: var(--brass); transform-origin: 0 50%; animation: grow 2.4s var(--e-inout) 2.2s both; }
.hcard--b { width: 190px; }
.hcard .swap { display: block; transition: opacity 0.45s, transform 0.6s var(--e-out); }
.hcard.is-swapping .swap { opacity: 0; transform: translateY(6px); }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes grow { from { transform: scaleX(0); } }

/* Live strip */
.hero__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  border-top: 1px solid var(--line);
  will-change: opacity;
}
.hero__strip-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 58px;
  color: var(--mute);
  white-space: nowrap;
}
.hero__strip-in b { font-weight: 500; color: var(--fg); margin-right: 0.35em; }
.hero__live { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.hero__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(201, 183, 143, 0.5); animation: ping 2.4s ease-out infinite; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { position: relative; width: 1px; height: 22px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: drip 2.2s var(--e-inout) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(201, 183, 143, 0); } }
@keyframes drip { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }

@media (max-width: 1100px) {
  .hero__strip-in span:nth-child(5), .hero__strip-in span:nth-child(6) { display: none; }
}
@media (max-width: 920px) {
  .hero { height: 300vh; }
  .hero__pin::before { background: radial-gradient(90% 46% at 50% 30%, rgba(201, 183, 143, 0.1), transparent 70%); }
  .hero__content { padding-bottom: 86px; }
  .hero__sub { font-size: 1rem; }
  .hero__state2 { top: auto; bottom: 84px; transform: none; }
  .hero__s2title { font-size: clamp(2.25rem, 9vw, 3.2rem); max-width: none; }
  .hero__state2 .label { margin-bottom: 14px; }
  .lvl { width: auto; display: block; }
  .lvl__k { display: none; }
  .lvl__d { display: none; }
  .lvl__n { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
  .lvl.is-active .lvl__n { color: var(--brass); }
  .hcard { width: 204px; padding: 10px 12px 11px; font-size: 0.75rem; }
  .hcard--b { display: none; }
  .hero__strip-in { height: 48px; justify-content: flex-start; gap: 22px; overflow: hidden; }
  .hero__strip-in > span:nth-child(n + 3) { display: none; }
  .hero__strip-in > span.hero__scroll:nth-child(n) { display: inline-flex; margin-left: auto; }
}
@media (max-width: 560px) {
  .hero__content::before { left: -12%; right: -12%; top: -70px; background: linear-gradient(to bottom, rgba(11, 11, 10, 0), rgba(11, 11, 10, 0.8) 90px, rgba(11, 11, 10, 0.9)); }
  .hero__foot { gap: 20px; }
  .hero__sub { font-size: 0.9375rem; }
  .hero__cta { width: 100%; gap: 8px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: space-between; height: 50px; padding: 0 13px 0 15px; font-size: 0.875rem; gap: 0.7em; }
  .hero__eyebrow { font-size: 0.625rem; letter-spacing: 0.12em; }
}
@media (max-height: 640px) and (min-width: 921px) {
  .hero__sub { display: none; }
}

/* Without JavaScript the scroll choreography cannot run: collapse the tall, pinned sections. */
html:not(.js) .hero, html:not(.js) .approach { height: auto; }
html:not(.js) .hero__state2, html:not(.js) .hero__levels, html:not(.js) .hero__cards, html:not(.js) .approach__stage, html:not(.js) .approach__t--a { display: none; }
html:not(.js) .approach__pin { height: auto; min-height: 0; padding-block: var(--section); }
html:not(.js) .approach__t--b { opacity: 1; }

/* ==========================================================================
   01 — THE PROBLEM
   ========================================================================== */
.problem__head { display: grid; gap: clamp(22px, 2.6vw, 36px); margin-bottom: clamp(64px, 9vw, 132px); }
.problem__list { border-bottom: 1px solid var(--line); }
.problem__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: clamp(16px, 2.4vw, 40px);
  padding: 0.5vw 0 1vw calc(var(--x) * 1%);
  border-top: 1px solid var(--line);
}
.problem__w {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(3.1rem, 10.4vw, 10rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  opacity: 0.13;
  transition: opacity 0.9s var(--e-soft);
}
.problem__n {
  color: var(--mute);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.7s var(--e-soft) 0.15s, transform 0.9s var(--e-out) 0.15s;
  white-space: nowrap;
}
.problem__n::before { content: "— "; color: var(--accent); }
.problem__list li.is-lit .problem__w { opacity: 1; }
.problem__list li.is-lit .problem__n { opacity: 1; transform: none; }
html:not(.js) .problem__w, html:not(.js) .problem__n { opacity: 1; transform: none; }

.problem__end {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(28px, 6vw, 96px);
  margin-top: clamp(72px, 11vw, 168px);
}
@media (max-width: 920px) {
  .problem__list li { padding-left: calc(var(--x) * 0.34%); padding-block: 8px 12px; }
  .problem__n { flex-basis: 100%; margin-top: -2px; }
  .problem__end { grid-template-columns: 1fr; }
}

/* ==========================================================================
   02 — THE HAVEN APPROACH
   ========================================================================== */
.approach { position: relative; height: 400vh; }
.approach__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-top: calc(var(--nav-h) + 14px + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(26px, 5vh, 60px);
}
.approach__pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 46% at 50% 44%, rgba(201, 183, 143, 0.07), transparent 72%);
  pointer-events: none;
}
.approach__head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.approach__state { display: inline-flex; align-items: center; gap: 12px; color: var(--faint); }
.approach__state span { transition: color 0.5s; }
.approach__state span:first-child { color: var(--fg); }
.approach__state i { position: relative; width: 38px; height: 1px; background: var(--line); }
.approach__state b {
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--brass);
  transition: transform 0.8s var(--e-out);
}
.approach__state.is-after span:first-child { color: var(--faint); }
.approach__state.is-after span:last-child { color: var(--fg); }
.approach__state.is-after b { transform: translateX(31px); }

.approach__stage { position: relative; min-height: 0; }
.frag {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fw, 340px);
  height: var(--fh, 46px);
  margin: calc(var(--fh, 46px) / -2) 0 0 calc(var(--fw, 340px) / -2);
  will-change: transform;
}
.frag__raw {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: 100%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--fg);
}
.frag__raw small {
  display: block;
  margin-bottom: 3px;
  font-family: var(--f-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.frag__raw--chat {
  padding: 9px 14px 10px;
  background: rgba(242, 239, 233, 0.085);
  border: 1px solid var(--line);
  border-radius: 15px 15px 15px 3px;
}
.frag__raw--me { background: rgba(201, 183, 143, 0.16); border-color: rgba(201, 183, 143, 0.3); border-radius: 15px 15px 3px 15px; }
.frag__raw--call {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border: 1px solid rgba(192, 122, 99, 0.5);
  border-radius: 999px;
}
.frag__raw--call i { width: 7px; height: 7px; border-radius: 50%; background: var(--alert); animation: pulse 1.6s ease-in-out infinite; }
.frag__raw--call small { margin: 0 0 0 4px; }
.frag__raw--note {
  padding: 11px 16px 13px;
  background: var(--brass);
  color: var(--ink);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.125rem;
  font-weight: 500;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
}
.frag__raw--push {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px 10px 10px;
  background: rgba(242, 239, 233, 0.07);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.frag__raw--push i { width: 30px; height: 30px; flex: none; border-radius: 8px; background: rgba(242, 239, 233, 0.2); }
.frag__raw--sheet { padding: 9px 10px 10px; border: 1px solid var(--line); background: var(--ink-2); }
.frag__raw--sheet > div { display: grid; grid-template-columns: repeat(6, 30px); gap: 2px; }
.frag__raw--sheet i { height: 10px; background: rgba(242, 239, 233, 0.09); }
.frag__raw--sheet i.is-a { background: rgba(143, 160, 137, 0.6); }
.frag__raw--sheet i.is-b { background: rgba(192, 122, 99, 0.65); }
.frag__raw--mail { padding: 4px 0 5px 12px; border-left: 2px solid var(--fg); }
.frag__raw--remind {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px dashed rgba(242, 239, 233, 0.34);
  border-radius: var(--r-2);
}
.frag__raw--remind i { width: 9px; height: 9px; border: 1px solid var(--warn); border-radius: 50%; }

.frag__clean {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.8125rem;
  opacity: 0;
}
.frag__clean b {
  font-family: var(--f-mono);
  font-size: 0.5938rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mute);
}
.frag__clean span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frag__clean em { display: inline-flex; align-items: center; gap: 9px; font-style: normal; color: var(--mute); white-space: nowrap; }
.frag__clean em::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

.approach__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pw, 800px);
  height: var(--ph, 380px);
  margin: calc(var(--ph, 380px) / -2) 0 0 calc(var(--pw, 800px) / -2);
  background: rgba(18, 18, 16, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
  opacity: 0;
  will-change: opacity, transform;
}
.approach__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  white-space: nowrap;
}
.approach__panel-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); letter-spacing: 0.24em; }
.approach__panel-brand svg { width: 14px; height: 14px; }
.approach__panel-ok { display: inline-flex; align-items: center; gap: 8px; }
.approach__panel-ok i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }

.approach__core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border: 1px solid var(--brass);
  color: var(--brass);
  background: var(--ink);
  opacity: 0;
  will-change: opacity, transform;
}
.approach__core svg { width: 34px; height: 34px; }
.approach__core::before, .approach__core::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--brass);
  animation: ring 2.4s var(--e-soft) infinite;
}
.approach__core::after { animation-delay: 1.2s; }
@keyframes ring { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }

.approach__titles { position: relative; z-index: 2; display: grid; align-items: end; }
.approach__t { grid-area: 1 / 1; will-change: opacity, transform; }
.approach__titles .h2 { font-size: clamp(2.3rem, 4.8vw, 4.75rem); }
.approach__t--b { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 40px; opacity: 0; }
.approach__t--b .lead { max-width: 22em; }

@media (max-width: 920px) {
  .approach__panel-top span:nth-child(2) { display: none; }
  .frag__clean { grid-template-columns: 92px minmax(0, 1fr); padding: 0 2px; }
  .frag__clean span { display: none; }
  .frag__clean em { justify-self: end; }
  .frag__raw { font-size: 0.8125rem; }
  .approach__t--b { display: block; }
  .approach__t--b .lead { margin-top: 10px; font-size: 1rem; }
}

/* ==========================================================================
   03 — THE AUTOMATION ENGINE
   ========================================================================== */
.engine { position: relative; }
.engine__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(14px, 4.5vh, 56px));
}
.engine__title { margin-top: clamp(16px, 2.4vh, 26px); font-size: clamp(2.5rem, 4.9vw, 4.9rem); }
.engine__viewport { flex: 1; display: flex; align-items: center; min-height: 0; }
.engine__track {
  position: relative;
  flex: none;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
  padding-right: 18vw;
  will-change: transform;
}
.engine__line { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line); }
.engine__line i { display: block; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.engine__stations { position: relative; display: flex; }
.station {
  position: relative;
  flex: none;
  width: clamp(290px, 25vw, 400px);
  padding-right: clamp(30px, 3.6vw, 60px);
  opacity: 0.26;
  transition: opacity 0.8s var(--e-soft);
}
.station.is-on { opacity: 1; }
.station__time { display: block; height: 26px; color: var(--mute); }
.station__node {
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: clamp(18px, 3vh, 30px);
  background: var(--bg);
  border: 1px solid var(--faint);
  transition: background-color 0.5s, border-color 0.5s, transform 0.7s var(--e-out);
}
.station.is-on .station__node { background: var(--brass); border-color: var(--brass); transform: rotate(45deg); }
.station__idx { display: block; margin-bottom: 10px; color: var(--faint); }
.station__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.3vw, 2.3rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}
.station__text { margin-top: 10px; max-width: 21em; min-height: 3.1em; font-size: 0.9375rem; color: var(--mute); }
.tk {
  display: grid;
  gap: 3px;
  margin-top: clamp(16px, 2.6vh, 24px);
  padding: 12px 14px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-2);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--mute);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--e-soft) 0.1s, transform 0.9s var(--e-out) 0.1s;
}
.station.is-on .tk { opacity: 1; transform: none; }
.tk__k { font-family: var(--f-mono); font-size: 0.5938rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.tk b { font-weight: 500; color: var(--fg); }
.station--end { width: clamp(340px, 38vw, 600px); padding-right: 0; }
.station__big {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.station__big em { color: var(--brass); }
.engine__foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px clamp(16px, 3vh, 30px);
  border-top: 1px solid var(--line-2);
  color: var(--faint);
}
html:not(.js) .station, html:not(.js) .tk { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .engine { height: auto !important; padding-block: var(--section); }
  .engine__pin { position: static; height: auto; min-height: 0; overflow: visible; padding-top: 0; }
  .engine__viewport { display: block; margin-top: 56px; }
  .engine__track { padding: 0 var(--gutter); transform: none !important; }
  .engine__line { left: calc(var(--gutter) + 4px); right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .engine__line i { width: 1px; height: 100%; transform: scaleY(0); transform-origin: 50% 0; }
  .engine__stations { flex-direction: column; gap: 46px; padding-left: 30px; }
  .station, .station--end { width: auto; padding-right: 0; }
  .station__time { height: auto; margin-bottom: 12px; }
  .station__text { min-height: 0; }
  .station__node { position: absolute; left: -30px; top: 2px; margin: 0; }
  .engine__foot { display: none; }
}

/* ==========================================================================
   THE PRODUCT — application window
   ========================================================================== */
.product { padding-bottom: calc(var(--section) * 0.8); }
.product__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(24px, 6vw, 96px);
  margin-bottom: clamp(48px, 7vw, 104px);
}
.product__head .label { margin-bottom: clamp(22px, 2.6vw, 36px); }
.product__stage { width: min(100% - 2 * var(--gutter), 1480px); margin-inline: auto; perspective: 2400px; }
.product__note { margin-top: 22px; text-align: center; color: var(--faint); line-height: 1.6; }

/* --------------------------------------------------------------------------
   The interface is one object made of four materials, used for meaning:
     plaster  the main surface, where information simply rests
     stone    the rail, and anything cut INTO the surface (analysis)
     paper    what is raised OFF the surface (active, in hand, urgent)
     ink      the command layer
   Hierarchy comes from which material a thing is on, how large its type is
   and how much room it gets, never from colour.
   -------------------------------------------------------------------------- */
.app {
  --a-bg: #f7f4ee;
  --a-side: #ebe6dc;
  --a-raise: #fffdf9;
  --a-well: #eeeae1;
  --a-ink: #161614;
  --a-card: var(--a-raise);
  --a-line: rgba(24, 20, 12, 0.1);
  --a-line-2: rgba(24, 20, 12, 0.2);
  --a-mute: rgba(22, 20, 16, 0.62);
  --a-faint: rgba(22, 20, 16, 0.46);
  --a-lift: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(52, 42, 22, 0.07), 0 12px 24px -16px rgba(52, 42, 22, 0.3);
  --a-sunk: inset 0 1px 2px rgba(52, 42, 22, 0.1), inset 0 0 0 1px rgba(24, 20, 12, 0.045);
  --a-t: 0.2s cubic-bezier(0.3, 0.7, 0.2, 1);
  --a-settle: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 720px;
  background: var(--a-bg);
  color: var(--ink);
  border: 1px solid rgba(24, 20, 12, 0.2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 rgba(196, 186, 168, 0.9), 0 70px 130px -60px rgba(46, 38, 20, 0.42), 0 24px 44px -28px rgba(46, 38, 20, 0.22);
  font-size: 0.8125rem;
  line-height: 1.4;
  transform-origin: 50% 0;
  will-change: transform;
}
.app svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* the rail */
.app__side { display: flex; flex-direction: column; gap: 22px; padding: 18px 12px 14px; background: var(--a-side); box-shadow: inset -1px 0 0 var(--a-line), inset -12px 0 16px -14px rgba(52, 42, 22, 0.16); min-width: 0; }
.app__brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px; font-family: var(--f-display); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.3em; }
.app__brand svg { width: 17px; height: 17px; }
.app__nav { display: grid; gap: 3px; }
.app__nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 9px 0 11px;
  border-radius: 6px;
  color: var(--a-mute);
  text-align: left;
  overflow: hidden;
  transition: background-color var(--a-t), color var(--a-t), box-shadow var(--a-t), transform 0.16s ease-out;
}
.app__nav svg { width: 16px; height: 16px; flex: none; transition: transform 0.4s var(--a-settle); }
.app__nav span { flex: 1; }
.app__nav b { font-family: var(--f-mono); font-size: 0.625rem; font-weight: 400; color: var(--a-faint); transition: color var(--a-t); }
/* the selected item is a tab of paper lifted off the stone, with a spine of ink */
.app__nav button::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--ink); transform: scaleY(0); transition: transform 0.35s var(--a-settle); }
.app__nav button[aria-selected="true"] { background: var(--a-raise); color: var(--ink); box-shadow: var(--a-lift); }
.app__nav button[aria-selected="true"]::before { transform: scaleY(1); }
.app__nav button[aria-selected="true"] b { color: var(--ink); }
.app__nav button:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgba(52, 42, 22, 0.12); }
.app__nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--brass-deep);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.app.is-touring .app__nav button[aria-selected="true"]::after { animation: tour var(--tour, 6s) linear both; }
.app.is-paused .app__nav button::after { animation-play-state: paused; }
@keyframes tour { to { transform: scaleX(1); } }
@media (hover: hover) {
  .app__nav button:not([aria-selected="true"]):hover { color: var(--ink); background: rgba(255, 253, 249, 0.55); }
  .app__nav button:hover svg { transform: translateX(1px); }
}
.app__user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid var(--a-line); }
.app__user i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bone); font-style: normal; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.04em; }
.app__user small { display: block; font-size: 0.6875rem; color: var(--a-mute); }

.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__bar { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; border-bottom: 1px solid var(--a-line); }
.app__title { font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.005em; margin-right: auto; }
.app__search { display: flex; align-items: center; gap: 8px; width: min(300px, 32%); height: 32px; padding: 0 11px; border-radius: 6px; background: var(--a-well); box-shadow: var(--a-sunk); color: var(--a-faint); white-space: nowrap; overflow: hidden; }
.app__search svg { width: 14px; height: 14px; flex: none; }
.app__date { color: var(--a-mute); }
.app__sync { display: inline-flex; align-items: center; gap: 7px; color: var(--a-mute); }
.app__sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok-deep); animation: pulse 2.6s ease-in-out infinite; }
.app__view { flex: 1; padding: 22px 24px 26px; min-width: 0; transition: opacity 0.2s, transform 0.3s var(--a-settle); }
.app__view.is-out { opacity: 0; transform: translateY(5px); }

/* ---- view atoms ----------------------------------------------------------------- */
.v { display: grid; gap: 18px; align-content: start; }
.v-in { animation: v-in 0.85s var(--a-settle) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes v-in { from { opacity: 0; transform: translateY(12px); } }

/* a region of a view; its modifier says which material it is */
.box { min-width: 0; border-radius: 8px; background: var(--a-card); border: 1px solid var(--a-line); }
.box--open { background: none; border: 0; border-top: 1px solid var(--a-line-2); border-radius: 0; }     /* rests on the plaster, held by a rule */
.box--well { background: var(--a-well); border: 0; box-shadow: var(--a-sunk); }                         /* cut into the surface */
.box--rail { background: none; border: 0; border-left: 1px solid var(--a-line); border-radius: 0; padding-left: 22px; }
.box__h { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; }
.box__h h4 { margin: 0; font-family: var(--f-display); font-size: 1.1875rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.005em; }
.box--open > .box__h { padding-inline: 0; }
.box__h small, .u-mute { color: var(--a-mute); font-size: 0.75rem; }
.box__m { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 0; background: var(--a-line); }
.box__m i { border-radius: 0; }
.u-mono { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-mute); }
.u-num { font-variant-numeric: lining-nums tabular-nums; }

/* a state at rest is a word with a mark; a state in motion, or one that needs you, is a tag */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 0.6875rem; white-space: nowrap; color: var(--a-mute); }
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--a-faint); }
.pill--ok { color: var(--ink); }
.pill--ok::before { background: var(--ok-deep); box-shadow: none; }
.pill--warn { color: var(--ink); }
.pill--warn::before { background: var(--warn-deep); box-shadow: none; }
.pill--live, .pill--alert { height: 22px; padding: 0 9px 0 8px; border-radius: 999px; color: var(--ink); }
.pill--live { background: rgba(138, 116, 70, 0.13); }
.pill--live::before { background: var(--brass-deep); box-shadow: none; animation: pulse 1.8s ease-in-out infinite; }
.pill--alert { background: rgba(154, 77, 56, 0.11); }
.pill--alert::before { background: var(--alert-deep); box-shadow: none; }

.av { font-style: normal; display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bone); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.03em; }
.av--s { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(24, 20, 12, 0.32); }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { display: block; height: 3px; border-radius: 2px; background: rgba(24, 20, 12, 0.1); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v); border-radius: 2px; background: var(--ink); transform-origin: 0 50%; animation: grow 1.3s var(--a-settle) both; animation-delay: calc(var(--i, 0) * 60ms + 0.25s); }

/* editorial rows: a rule, the content, and a quiet lift under the hand */
.rows > * { display: grid; align-items: center; gap: 14px; min-height: 46px; padding: 8px 16px; border-top: 1px solid var(--a-line); transition: background-color var(--a-t), box-shadow var(--a-t), color var(--a-t); }
.box--open > .rows > * { margin-inline: -10px; padding-inline: 10px; border-top: 0; border-radius: 6px; background: linear-gradient(var(--a-line), var(--a-line)) 10px 0 / calc(100% - 20px) 1px no-repeat; }
.rows strong { font-weight: 500; }
.rows .sub { display: block; color: var(--a-mute); font-size: 0.75rem; }
.rows__h { min-height: 32px !important; padding-block: 0 !important; }
.box--open > .rows > .rows__h { background-image: none; }
@media (hover: hover) {
  .rows > *:not(.rows__h):hover { background-color: var(--a-raise); box-shadow: 0 1px 2px rgba(52, 42, 22, 0.06), 0 10px 20px -16px rgba(52, 42, 22, 0.32); }
  .box--well .rows > *:not(.rows__h):hover { background-color: rgba(255, 253, 249, 0.7); box-shadow: none; }
}

/* the line of figures that opens a working view */
.sumline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 0; }
.sumline span { display: grid; gap: 6px; padding: 0 clamp(16px, 2.2vw, 30px); border-left: 1px solid var(--a-line); font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-mute); }
.sumline span:first-child { padding-left: 0; border-left: 0; }
.sumline b { font-family: var(--f-display); font-weight: 400; font-size: 1.875rem; line-height: 0.86; letter-spacing: -0.02em; text-transform: none; color: var(--ink); font-variant-numeric: lining-nums; }
.sumline span:first-child b { font-size: 2.875rem; font-weight: 300; }

/* ---- overview --------------------------------------------------------------------- */
.v-hello { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.v-hello p { font-family: var(--f-display); font-weight: 500; font-size: 1.6875rem; line-height: 1.1; letter-spacing: -0.01em; }
.v-hello em { color: var(--a-mute); }

/* the command layer: four quiet inputs, and the outcome they add up to */
.kpis { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); border-radius: 8px; background: var(--a-ink); color: var(--bone); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 2px rgba(20, 16, 8, 0.3), 0 18px 30px -22px rgba(20, 16, 8, 0.6); }
.kpi { position: relative; display: grid; grid-template-rows: auto 1fr auto; padding: 15px 18px 16px; border-left: 1px solid rgba(242, 239, 233, 0.09); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi > * { animation: kpi-in 0.9s var(--a-settle) both; animation-delay: calc(var(--i, 0) * 70ms + 0.2s); }
@keyframes kpi-in { from { opacity: 0; transform: translateY(8px); } }
.kpi .u-mono { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(242, 239, 233, 0.56); }
.kpi__v { display: block; align-self: end; margin: 14px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 2.125rem; line-height: 0.86; letter-spacing: -0.02em; color: rgba(242, 239, 233, 0.9); font-variant-numeric: lining-nums; }
.kpi__v small { margin-left: 0.04em; font-size: 0.5em; font-weight: 400; letter-spacing: 0; opacity: 0.72; }
.kpi__s { display: block; color: rgba(242, 239, 233, 0.54); font-size: 0.6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi--lead { padding-left: 22px; background: rgba(201, 183, 143, 0.07); border-left-color: rgba(201, 183, 143, 0.42); }
.kpi--lead .u-mono { color: var(--brass); }
.kpi--lead .kpi__v { margin-top: 4px; font-weight: 300; font-size: 3.75rem; color: var(--bone); }
.kpi--lead .kpi__s { color: rgba(242, 239, 233, 0.7); }
.kpi__m { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(242, 239, 233, 0.1); }
.kpi__m i { display: block; height: 100%; width: var(--v); background: var(--brass); transform-origin: 0 50%; animation: grow 1.6s var(--a-settle) 0.6s both; }

.v-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.v-stack { display: grid; gap: 18px; }

/* occupancy: the analytical area, set into the surface */
.occbox .box__h { padding: 15px 18px 2px; }
.occ__avg { display: inline-flex; align-items: baseline; gap: 7px; }
.occ__avg i { align-self: center; width: 16px; border-top: 1px dashed var(--brass-deep); }
.occ__avg b { font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; line-height: 1; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: lining-nums; }
.occ { position: relative; padding: 18px 18px 12px; }
.occ__plot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  align-items: end;
  height: 142px;
  border-bottom: 1px solid var(--a-line-2);
  background:
    linear-gradient(rgba(24, 20, 12, 0.12), rgba(24, 20, 12, 0.12)) 0 0 / 100% 1px no-repeat,
    linear-gradient(rgba(24, 20, 12, 0.055), rgba(24, 20, 12, 0.055)) 0 25% / 100% 1px no-repeat,
    linear-gradient(rgba(24, 20, 12, 0.055), rgba(24, 20, 12, 0.055)) 0 50% / 100% 1px no-repeat,
    linear-gradient(rgba(24, 20, 12, 0.055), rgba(24, 20, 12, 0.055)) 0 75% / 100% 1px no-repeat;
}
.occ__ref { position: absolute; z-index: 2; left: 0; right: 0; bottom: var(--v); border-top: 1px dashed var(--brass-deep); opacity: 0.8; pointer-events: none; transform-origin: 0 50%; animation: grow 1.3s var(--a-settle) 0.8s both; }
.occ__c { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; height: 100%; cursor: default; outline: 0; }
/* today stands on its own strip of paper, on a foot of ink */
.occ__c.is-today::before { content: ""; position: absolute; z-index: -1; left: 3px; right: 3px; top: -10px; bottom: 0; border-radius: 4px 4px 0 0; background: rgba(255, 253, 249, 0.8); box-shadow: 0 0 0 1px rgba(24, 20, 12, 0.05); }
.occ__c.is-today::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -1px; height: 2px; background: var(--ink); }
.occ__b { width: min(20px, 58%); height: var(--v); border-radius: 3px 3px 0 0; background: rgba(24, 20, 12, 0.22); transform-origin: 50% 100%; animation: rise 1.15s var(--a-settle) both; animation-delay: calc(var(--n) * 38ms + 0.25s); transition: background-color 0.2s, opacity 0.2s; }
.occ__c.is-today .occ__b { background: var(--ink); }
.occ__c:focus-visible .occ__b { background: var(--brass-deep); }
@media (hover: hover) {
  .occ__plot:hover .occ__b { opacity: 0.5; }
  .occ__plot:hover .is-today .occ__b { opacity: 0.82; }
  .occ__plot .occ__c:hover .occ__b { opacity: 1; background: var(--brass-deep); }
}
.occ__v { position: absolute; z-index: 3; bottom: calc(var(--v) + 6px); padding: 0 3px; font-family: var(--f-mono); font-size: 0.5938rem; font-variant-numeric: lining-nums tabular-nums; background: var(--a-well); animation: kpi-in 0.8s var(--a-settle) 1s both; }
.occ__c.is-today .occ__v { background: none; font-weight: 500; }
.occ__x { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); margin-top: 8px; text-align: center; font-family: var(--f-mono); font-size: 0.5625rem; color: var(--a-faint); }
.occ__x .is-today { color: var(--ink); font-weight: 500; }
.occ__y { position: absolute; right: 18px; top: 4px; font-family: var(--f-mono); font-size: 0.5625rem; color: var(--a-faint); }
@keyframes rise { from { transform: scaleY(0); } }
.tip { position: absolute; z-index: 5; left: 0; top: 0; padding: 6px 9px; border-radius: 4px; background: var(--ink); color: var(--bone); font-size: 0.6875rem; line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; box-shadow: 0 8px 18px -8px rgba(20, 16, 8, 0.5); }
.tip.is-on { opacity: 1; }
.tip b { font-weight: 500; }

/* today's turnovers: an open list; what is under way is lifted, what is finished recedes */
.turn > * { grid-template-columns: 52px minmax(0, 1.3fr) minmax(0, 1fr) auto; min-height: 48px; }
.turn__t { color: var(--ink); font-size: 0.6875rem; }
.box--open > .turn > .is-live { background: var(--a-raise); box-shadow: inset 2px 0 0 var(--brass-deep), var(--a-lift); }
.turn > .is-ok { color: var(--a-mute); }
.turn > .is-ok strong { font-weight: 400; color: var(--ink); }
.turn > .is-ok .turn__t { color: var(--a-faint); }
.turn > .is-ok .av { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(24, 20, 12, 0.3); }

/* activity: a live rail down the side of the page */
.box--rail > .box__h { padding: 2px 0 6px; }
.feed { position: relative; overflow: hidden; }
.feed::before { content: ""; position: absolute; left: 55px; top: 16px; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--a-line-2), var(--a-line) 30%, rgba(24, 20, 12, 0)); }
.feed li { position: relative; display: grid; grid-template-columns: 40px 15px minmax(0, 1fr); column-gap: 8px; padding: 10px 0 11px; overflow: hidden; animation: feed-seq 0.8s var(--a-settle) both; animation-delay: calc(var(--i, 0) * 70ms + 0.3s); }
.feed li.is-new { animation: feed-in 0.9s var(--a-settle) backwards; }
.feed time { padding-top: 3px; font-family: var(--f-mono); font-size: 0.625rem; font-variant-numeric: lining-nums tabular-nums; color: var(--a-faint); transition: color 0.6s; }
.feed li:first-child time { color: var(--ink); }
.feed__m { position: relative; z-index: 1; justify-self: center; width: 7px; height: 7px; margin-top: 5px; background: var(--a-bg); border: 1px solid var(--a-line-2); transform: rotate(45deg); transition: background-color 0.6s, border-color 0.6s; }
.feed li:first-child .feed__m { background: var(--brass-deep); border-color: var(--brass-deep); }
.feed li:first-child .feed__m::after { content: ""; position: absolute; inset: -4px; border: 1px solid var(--brass-deep); animation: ring 2.6s ease-out infinite; }
.feed b { display: block; font-weight: 500; }
.feed span { display: block; margin-top: 1px; color: var(--a-mute); font-size: 0.75rem; }
@keyframes feed-seq { from { opacity: 0; transform: translateX(10px); } }
@keyframes feed-in { from { opacity: 0; max-height: 0; padding-block: 0; } to { max-height: 96px; } }
@keyframes ring { 0% { opacity: 0.7; transform: scale(0.6); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
.live { position: relative; display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 0.625rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink) !important; }
.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-deep); animation: pulse 1.8s ease-in-out infinite; }
.live::after { content: ""; position: absolute; left: -3px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; border: 1px solid var(--brass-deep); animation: ring 2.6s ease-out infinite; }

/* ---- properties ---------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--a-line); color: var(--a-mute); font-size: 0.75rem; transition: background-color var(--a-t), color var(--a-t), border-color var(--a-t), box-shadow var(--a-t), transform 0.16s ease-out; }
.chip b { margin-left: 6px; font-family: var(--f-mono); font-size: 0.625rem; font-weight: 400; opacity: 0.7; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); box-shadow: 0 6px 14px -8px rgba(20, 16, 8, 0.55); }
.chip:active { transform: translateY(1px); }
@media (hover: hover) { .chip:not([aria-pressed="true"]):hover { background: var(--a-raise); border-color: var(--a-line-2); color: var(--ink); } }
.props > * { grid-template-columns: minmax(0, 1.5fr) 112px minmax(0, 1fr) minmax(0, 1fr) 44px; min-height: 50px; }
.props > *.is-off { display: none; }
.props .occ30 { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: center; gap: 10px; }
.props [data-status="Maintenance"] { background-color: rgba(154, 77, 56, 0.045); }
.box__f { padding: 12px 16px; border-top: 1px solid var(--a-line); color: var(--a-mute); font-size: 0.75rem; display: flex; justify-content: space-between; gap: 12px; }
.box--open > .box__f { padding-inline: 0; }

/* ---- calendar: an analytical area, set into the surface ------------------------------- */
.cal { overflow-x: auto; }
.cal__in { min-width: 660px; }
.cal__row { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; border-top: 1px solid var(--a-line); }
.cal__row > span { padding: 0 12px 0 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); text-align: center; font-family: var(--f-mono); font-size: 0.5625rem; color: var(--a-faint); }
.cal__days i { padding: 10px 0; font-style: normal; border-left: 1px solid var(--a-line); }
.cal__days i.is-we { background: rgba(24, 20, 12, 0.035); }
.cal__days i.is-today { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--ink); }
.cal__track { position: relative; height: 46px; background: repeating-linear-gradient(to right, var(--a-line) 0 1px, transparent 1px calc(100% / 14)); }
.cal__bk { position: absolute; top: 10px; height: 26px; left: var(--l); width: var(--w); display: flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 4px; background: var(--a-raise); box-shadow: 0 0 0 1px rgba(24, 20, 12, 0.08), 0 1px 2px rgba(52, 42, 22, 0.07); font-size: 0.6875rem; white-space: nowrap; overflow: hidden; transform-origin: 0 50%; animation: grow 1s var(--a-settle) both; animation-delay: calc(var(--i) * 40ms + 0.1s); transition: box-shadow var(--a-t), transform var(--a-t); }
.cal__bk small { font-family: var(--f-mono); font-size: 0.5625rem; opacity: 0.6; }
.cal__bk.is-now { background: var(--ink); color: var(--bone); box-shadow: 0 8px 14px -10px rgba(20, 16, 8, 0.7); }
.cal__bk.is-block { background: repeating-linear-gradient(135deg, rgba(154, 77, 56, 0.22) 0 4px, rgba(154, 77, 56, 0.08) 4px 8px); box-shadow: none; color: var(--alert-deep); }
@media (hover: hover) { .cal__bk:not(.is-block):hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(24, 20, 12, 0.12), 0 10px 16px -10px rgba(52, 42, 22, 0.45); } }
.cal__turn { position: absolute; top: 19px; left: var(--l); width: 7px; height: 7px; margin-left: -3.5px; background: var(--brass-deep); transform: rotate(45deg); box-shadow: 0 0 0 2px var(--a-well); }
.cal__now { position: absolute; top: 0; bottom: 0; left: var(--l); width: 1px; background: var(--alert-deep); z-index: 2; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cal__legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--a-mute); font-size: 0.75rem; }
.cal__legend i { width: 14px; height: 8px; border-radius: 2px; background: var(--a-raise); box-shadow: 0 0 0 1px rgba(24, 20, 12, 0.14); }
.cal__legend i.k-now { background: var(--ink); box-shadow: none; }
.cal__legend i.k-turn { width: 7px; height: 7px; border-radius: 0; background: var(--brass-deep); box-shadow: none; transform: rotate(45deg); }
.cal__legend i.k-block { background: repeating-linear-gradient(135deg, rgba(154, 77, 56, 0.4) 0 3px, rgba(154, 77, 56, 0.1) 3px 6px); box-shadow: none; }

/* ---- tasks: three states, three materials ---------------------------------------------- */
.kan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 0 20px; align-items: start; padding-top: 6px; }
.kan__col { display: grid; gap: 8px; align-content: start; padding: 14px 0 4px; }
.kan__h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--a-line-2); }
.kan__h strong { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.005em; }
.kan__h .u-mono { color: var(--ink); font-size: 0.6875rem; }
.kan__s { flex: none; width: 7px; height: 7px; box-shadow: inset 0 0 0 1px var(--a-faint); }                 /* to do: an empty mark */
.kan__col--doing .kan__s { background: var(--brass-deep); box-shadow: none; transform: rotate(45deg); animation: pulse 1.8s ease-in-out infinite; }   /* under way */
.kan__col--done .kan__s { background: var(--ink); box-shadow: none; }                                         /* closed */
.task { position: relative; display: grid; gap: 10px; padding: 12px 13px 11px; border: 1px solid var(--a-line); border-radius: 6px; transition: background-color var(--a-t), box-shadow var(--a-t), transform var(--a-t), border-color var(--a-t); }
.task__k { font-size: 0.5938rem; }
.task__t { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.08; letter-spacing: -0.008em; }
.task__p { display: inline-block; margin-top: 4px; }
.task__f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid var(--a-line); color: var(--a-mute); font-size: 0.75rem; }
.task__w { font-family: var(--f-mono); font-size: 0.6875rem; color: var(--ink); }
.task__w.is-now { display: inline-flex; align-items: center; gap: 6px; color: var(--brass-deep); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.625rem; }
.task__w.is-now::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass-deep); animation: pulse 1.8s ease-in-out infinite; }
/* in progress: the whole column is a tray of paper lifted off the surface */
.kan__col--doing { margin-top: -8px; padding: 22px 14px 8px; border-radius: 10px; background: var(--a-raise); box-shadow: var(--a-lift); }
.kan__col--doing .kan__h { border-bottom-color: rgba(138, 116, 70, 0.5); }
.kan__col--doing .task { background: var(--a-bg); border-color: transparent; box-shadow: inset 2px 0 0 var(--brass-deep), inset 0 0 0 1px var(--a-line); }
/* done: no longer cards, only lines that have been crossed off */
.kan__col--done .task { gap: 7px; padding: 11px 0 12px; border: 0; border-bottom: 1px solid var(--a-line); border-radius: 0; opacity: 1; }
.kan__col--done .task__t { font-weight: 400; font-size: 1.0625rem; color: var(--a-mute); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(24, 20, 12, 0.34); }
.kan__col--done .task__k, .kan__col--done .task__p, .kan__col--done .task__w { color: var(--a-faint); }
.kan__col--done .task__f { padding-top: 0; border-top: 0; }
.kan__col--done .av { background: transparent; color: var(--a-mute); box-shadow: inset 0 0 0 1px rgba(24, 20, 12, 0.24); }
.kan__col--done .av--s { color: var(--a-faint); }
.kan__more { padding: 8px 0; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--a-mute); }
@media (hover: hover) {
  .kan__col--todo .task:hover { background: var(--a-raise); border-color: transparent; box-shadow: var(--a-lift); transform: translateY(-1px); }
  .kan__col--doing .task:hover { background: var(--a-raise); transform: translateY(-1px); box-shadow: inset 2px 0 0 var(--brass-deep), inset 0 0 0 1px var(--a-line), 0 12px 20px -16px rgba(52, 42, 22, 0.4); }
  .kan__col--done .task:hover .task__t { color: var(--ink); }
}

/* ---- cleaning · maintenance -------------------------------------------------------------- */
.clean > * { grid-template-columns: 86px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) 118px; min-height: 50px; }
.clean .prog { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 10px; }
.clean > .is-live .meter i { background: var(--brass-deep); }
.clean > .is-ok { color: var(--a-mute); }
.clean > .is-ok strong { font-weight: 400; color: var(--ink); }

.maint > * { grid-template-columns: 92px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.9fr) 52px; min-height: 54px; }
.maint > * > :last-child { text-align: right; }
/* priority is a gauge of three: how much of it is filled is the level */
.prio { display: inline-flex; align-items: center; gap: 9px; font-size: 0.6875rem; white-space: nowrap; color: var(--a-mute); }
.prio > span { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.prio i { width: 3px; border-radius: 1px; background: rgba(24, 20, 12, 0.13); }
.prio i:nth-child(1) { height: 5px; }
.prio i:nth-child(2) { height: 8px; }
.prio i:nth-child(3) { height: 12px; }
.prio--1 i:nth-child(1) { background: var(--a-faint); }
.prio--2 { color: var(--ink); }
.prio--2 i:nth-child(-n + 2) { background: var(--warn-deep); }
.prio--3 { color: var(--alert-deep); font-weight: 500; }
.prio--3 i { background: var(--alert-deep); }
/* the urgent issue is taken out of the table and put in your hand */
.box--open > .maint > .is-urgent { position: relative; z-index: 1; min-height: 84px; margin: 8px -16px 8px; padding-inline: 16px; background: var(--a-raise); box-shadow: inset 2px 0 0 var(--alert-deep), var(--a-lift); }
.maint > .is-urgent strong { display: block; margin-bottom: 3px; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.01em; }
.maint > .is-urgent > :last-child { color: var(--ink); font-size: 0.75rem; font-weight: 500; }
.maint > .is-urgent > :nth-child(4) { color: var(--ink); }
.box--open > .maint > .is-urgent + * { background-image: none; }
.maint > .is-low { color: var(--a-mute); }
.maint > .is-low strong { font-weight: 400; }
.maint > .is-low .av { background: transparent; color: var(--a-mute); box-shadow: inset 0 0 0 1px rgba(24, 20, 12, 0.26); }

/* ---- team ---------------------------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.person { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 12px; align-content: space-between; padding: 15px 16px 14px; border: 1px solid var(--a-line); border-radius: 8px; transition: background-color var(--a-t), box-shadow var(--a-t), transform var(--a-t), border-color var(--a-t); }
.person__t { grid-area: 1 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.person > .state { grid-area: 1 / 2; align-self: start; }
.person__t .av { width: 38px; height: 38px; font-size: 0.75rem; }
.person__t strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.008em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__r { display: block; margin-top: 3px; }
.person__r i { font-style: normal; opacity: 0.5; }
.person__r em { font-style: normal; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; }
.person__m { grid-area: 2 / 1 / 3 / 3; display: grid; gap: 8px; color: var(--a-mute); font-size: 0.75rem; }
/* workload is counted in missions, so it is drawn in missions */
.slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: 5px; }
.slots i { border-radius: 1px; background: rgba(24, 20, 12, 0.1); }
.slots i.is-on { background: var(--ink); transform-origin: 0 50%; animation: grow 0.7s var(--a-settle) both; animation-delay: calc(var(--k, 0) * 110ms + var(--i, 0) * 60ms + 0.35s); }
/* an operational state: a mark and a word */
.state { display: inline-flex; align-items: center; gap: 7px; padding-top: 3px; font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--a-mute); }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--a-faint); }
.state--ok { color: var(--ink); }
.state--ok::before { background: var(--ok-deep); box-shadow: none; }
.state--live { color: var(--ink); }
.state--live::before { background: var(--brass-deep); box-shadow: none; animation: pulse 1.8s ease-in-out infinite; }
/* on site: in hand, on paper · available: at rest on the surface · off: only an outline */
.person.is-live { background: var(--a-raise); border-color: transparent; box-shadow: inset 0 2px 0 var(--brass-deep), var(--a-lift); }
.person.is-off { border-style: dashed; border-color: var(--a-line-2); }
.person.is-off strong { color: var(--a-mute); }
.person.is-off .av { background: transparent; color: var(--a-mute); box-shadow: inset 0 0 0 1px rgba(24, 20, 12, 0.26); }
.person.is-off .slots i.is-on { background: var(--a-faint); }
@media (hover: hover) {
  .person:hover { transform: translateY(-1px); }
  .person.is-ok:hover { background: var(--a-raise); border-color: transparent; box-shadow: var(--a-lift); }
  .person.is-live:hover { box-shadow: inset 0 2px 0 var(--brass-deep), inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(52, 42, 22, 0.08), 0 18px 28px -18px rgba(52, 42, 22, 0.4); }
}
/* suppliers: another layer of the operation, on another material */
.supp-layer { margin-top: 4px; }
.supp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 6px 6px; }
.supp > * { display: grid; grid-template-columns: 1fr; align-content: start; gap: 5px; min-height: 0; padding: 12px 12px 13px; border-top: 1px solid var(--a-line); border-left: 1px solid var(--a-line); border-radius: 0; }
.supp > *:first-child { border-left: 0; }
.supp .av { width: 26px; height: 26px; border-radius: 4px; }
.supp .who span { font-weight: 500; }
.supp > * > :last-child { color: var(--ink); }

/* ---- settings ---------------------------------------------------------------------------------- */
.sets { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.autorule { grid-template-columns: minmax(0, 1fr) auto !important; min-height: 60px !important; }
.tog { position: relative; width: 36px; height: 20px; border-radius: 999px; background: rgba(24, 20, 12, 0.16); box-shadow: inset 0 1px 2px rgba(52, 42, 22, 0.16); transition: background-color 0.25s; flex: none; }
.tog::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fffdf9; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28); transition: transform 0.4s var(--a-settle), width 0.2s; }
.tog[aria-checked="true"] { background: var(--ink); }
.tog[aria-checked="true"]::after { transform: translateX(16px); }
.tog:active::after { width: 19px; }
.tog[aria-checked="true"]:active::after { transform: translateX(13px); }
.integ > * { grid-template-columns: minmax(0, 1fr) auto; }

/* ---- medium widths ------------------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .app { grid-template-columns: 184px minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); }
  .kpi { padding-inline: 13px; }
  .kpi__v { font-size: 1.875rem; }
  .kpi--lead { padding-left: 16px; }
  .kpi--lead .kpi__v { font-size: 3rem; }
  .kpi .u-mono { letter-spacing: 0.04em; white-space: normal; }
  .kpi__s { white-space: normal; line-height: 1.3; min-height: 2.6em; }
  .app__search { display: none; }
  .hide-m { display: none !important; }
  .v-split { gap: 18px; }
  .box--rail { padding-left: 18px; }
  .props > * { grid-template-columns: minmax(0, 1.5fr) 112px minmax(0, 1fr) 44px; }
  .clean > * { grid-template-columns: 86px minmax(0, 1.2fr) minmax(0, 1fr) 118px; }
  .maint > * { grid-template-columns: 92px minmax(0, 1.5fr) minmax(0, 1fr) 52px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kan { gap: 0 14px; }
  .task__t { font-size: 1.125rem; }
}

/* ---- short screens (a 13-inch laptop): the whole object still has to fit under the header ---- */
@media (min-width: 921px) and (max-height: 800px) {
  .app { min-height: 0; }
  .app__bar { height: 50px; }
  .app__view { padding-block: 16px 18px; }
  .v { gap: 14px; }
  .v-stack { gap: 14px; }
  .v-hello p { font-size: 1.5rem; }
  .kpi { padding-block: 12px 13px; }
  .kpi__v { margin-top: 10px; }
  .kpi--lead .kpi__v { font-size: 3rem; }
  .occ { padding-top: 14px; }
  .occ__plot { height: 98px; }
  .turn > * { min-height: 42px; }
  .feed li { padding-block: 8px 9px; }
  .sumline span:first-child b { font-size: 2.375rem; }
  .task { gap: 8px; padding-block: 10px 9px; }
  .person { gap: 14px; }
}

/* ---- phone: the same hierarchy, recomposed for one column ---------------------------------------- */
@media (max-width: 920px) {
  .product__head { grid-template-columns: 1fr; }
  .product__stage { width: min(100% - 2 * 12px, 1480px); }
  .app { grid-template-columns: 1fr; min-height: 0; border-radius: 10px; }
  .app__side { flex-direction: row; align-items: center; gap: 0; padding: 0; box-shadow: inset 0 -1px 0 var(--a-line); }
  .app__brand, .app__user { display: none; }
  .app__nav { display: flex; gap: 3px; padding: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .app__nav::-webkit-scrollbar { display: none; }
  .app__nav button { flex: none; height: 36px; padding: 0 12px; }
  .app__nav button::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 2px; transform: scaleX(0); }
  .app__nav button[aria-selected="true"]::before { transform: scaleX(1); }
  .app__nav button::after { display: none; }
  .app__nav b { display: none; }
  .app__bar { height: 50px; padding: 0 16px; }
  .app__view { padding: 18px 16px 20px; min-height: 520px; }
}
/* below this width the views themselves are recomposed for one column */
@media (max-width: 720px) {
  .app__view { padding: 16px 14px 18px; }
  .v { gap: 16px; }
  .hide-s { display: none !important; }
  .v-hello p { font-size: 1.375rem; }

  /* command layer: the outcome gets the full width, the four inputs sit above it two by two */
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 13px 14px 14px; border-top: 1px solid rgba(242, 239, 233, 0.09); }
  .kpi:nth-child(-n + 2) { border-top: 0; }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi__v { margin-top: 10px; font-size: 1.875rem; }
  .kpi--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; align-items: end; padding: 14px 14px 16px; border-top-color: rgba(201, 183, 143, 0.42); }
  .kpi--lead .u-mono { grid-column: 1; grid-row: 1; align-self: start; }
  .kpi--lead .kpi__s { grid-column: 1; grid-row: 2; }
  .kpi--lead .kpi__v { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 3.5rem; }

  .v-split, .sets { grid-template-columns: 1fr; }
  .occbox .box__h { padding-inline: 14px; }
  .occ { padding: 18px 12px 12px; }
  .occ__plot { height: 132px; }
  .occ__b { width: min(14px, 62%); }
  .occ__y { right: 12px; }
  .occ__x span:nth-child(even):not(.is-today) { visibility: hidden; }
  /* the live rail turns into a band across the page */
  .box--rail { padding-left: 0; border-left: 0; border-top: 1px solid var(--a-line-2); }
  .box--rail > .box__h { padding: 14px 0 6px; }
  .feed li:nth-child(n + 6) { display: none; }
  .rows > * { padding-inline: 12px; gap: 10px; }
  .box--open > .rows > * { margin-inline: -8px; padding-inline: 8px; background-position: 8px 0; background-size: calc(100% - 16px) 1px; }
  .box__h { padding-inline: 12px; }
  .turn > * { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .props > * { grid-template-columns: minmax(0, 1fr) auto; }
  .clean > * { grid-template-columns: minmax(0, 1fr) auto; }

  /* the figures: the first one stands alone, the others are read as a short list beside it */
  .sumline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 18px; align-items: center; }
  .sumline span { display: flex; align-items: baseline; gap: 9px; padding: 0 0 0 16px; }
  .sumline span:first-child { display: grid; gap: 6px; grid-row: 1 / span 3; align-self: end; padding-left: 0; }
  .sumline b { min-width: 2.2ch; font-size: 1.375rem; line-height: 1; }
  .sumline span:first-child b { font-size: 2.75rem; line-height: 0.86; }

  /* tasks: one column; what is under way stays a tray of full cards, the two other states become lines */
  .kan { grid-template-columns: 1fr; gap: 6px; padding-top: 0; }
  .kan__col { padding-top: 12px; }
  .kan__col--doing { margin: 4px -4px; padding: 16px 12px 6px; }
  .kan__col--todo .task { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 11px 12px; }
  .kan__col--todo .task__k { grid-column: 1; }
  .kan__col--todo .task__b { grid-column: 1; }
  .kan__col--todo .task__f { grid-column: 2; grid-row: 1 / 3; flex-direction: column-reverse; align-items: flex-end; justify-content: space-between; padding-top: 0; border-top: 0; }
  .kan__col--todo .task__f .who span { display: none; }
  .kan__col--done .task { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; }
  .kan__col--done .task__k, .kan__col--done .task__b { grid-column: 1; }
  .kan__col--done .task__f { grid-column: 2; grid-row: 1 / 3; flex-direction: column-reverse; align-items: flex-end; justify-content: space-between; }
  .kan__col--done .task__f .who span { display: none; }
  .task__t { font-size: 1.125rem; }

  .maint > * { grid-template-columns: 76px minmax(0, 1fr); min-height: 56px; }
  .box--open > .maint > .is-urgent { margin-inline: -10px; padding-inline: 10px; min-height: 76px; }
  .maint > .is-urgent strong { font-size: 1.3125rem; }

  /* team: every member is a line of the roster; who is on site is still in hand */
  .team { grid-template-columns: 1fr; gap: 8px; }
  .person { gap: 12px 10px; padding: 12px 13px 13px; }
  .person__t .av { width: 34px; height: 34px; }
  .person__t strong { font-size: 1.125rem; }
  .person__m { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .supp { grid-template-columns: 1fr; padding: 0; }
  .supp > * { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; border-left: 0; padding: 11px 12px; }

  .cal__row { grid-template-columns: 112px minmax(0, 1fr); }
  .cal__row > span { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .app *, .app *::before, .app *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   ONE SYSTEM
   ========================================================================== */
.system__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas: "label ." "title lead";
  align-items: end;
  gap: clamp(22px, 2.6vw, 36px) clamp(24px, 6vw, 96px);
  margin-bottom: clamp(64px, 9vw, 140px);
}
.system__head .label { grid-area: label; }
.system__head .h2 { grid-area: title; }
.system__head .lead { grid-area: lead; }
.system__map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 22vw, 300px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 9vw, 150px);
}
.system__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.system__wires path { fill: none; stroke-width: 1; }
.wire-b { stroke: rgba(242, 239, 233, 0.12); }
.wire-a { stroke: var(--brass); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-width 0.3s; }
.wire-a.is-hot { stroke-width: 2; }
.system__wires circle { fill: var(--bone); }
.system__col { display: grid; gap: clamp(6px, 1.4vw, 20px); position: relative; z-index: 1; }
.mod {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: clamp(12px, 1.5vw, 20px) 0;
  text-align: left;
  opacity: 0.34;
  transition: opacity 0.8s var(--e-soft);
}
.system__col--l .mod { text-align: right; justify-items: end; }
.mod.is-on { opacity: 1; }
.mod__i { color: var(--faint); transition: color 0.4s; }
.mod__n { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.1vw, 3.1rem); line-height: 1; letter-spacing: -0.02em; transition: color 0.4s, transform 0.6s var(--e-out); }
.mod__d { font-size: 0.875rem; color: var(--mute); }
.mod.is-hot .mod__n, .mod.is-hot .mod__i { color: var(--brass); }
.system__col--l .mod.is-hot .mod__n { transform: translateX(-8px); }
.system__col--r .mod.is-hot .mod__n { transform: translateX(8px); }
html:not(.js) .mod { opacity: 1; }

.system__core { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; }
.core { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; color: var(--brass); }
.core i { position: absolute; border: 1px solid var(--line); }
.core i:nth-child(1) { inset: 0; }
.core i:nth-child(2) { inset: 13%; border-color: rgba(201, 183, 143, 0.4); animation: turn 50s linear infinite; }
.core i:nth-child(3) { inset: 27%; background: var(--ink-2); border-color: rgba(201, 183, 143, 0.7); transition: box-shadow 1.2s; }
.core svg { position: relative; width: 22%; height: 22%; }
.system__map.is-live .core i:nth-child(3) { box-shadow: 0 0 80px 0 rgba(201, 183, 143, 0.22), inset 0 0 30px rgba(201, 183, 143, 0.1); }
@keyframes turn { to { transform: rotate(360deg); } }
.system__read { display: grid; gap: 6px; text-align: center; color: var(--mute); min-height: 3.2em; }
.system__read b { font-weight: 400; color: var(--fg); letter-spacing: 0.3em; }

@media (max-width: 920px) {
  .system__head { grid-template-columns: 1fr; grid-template-areas: "label" "title" "lead"; }
  .system__map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 44px; align-items: start; }
  .system__core { grid-column: 1 / -1; order: -1; margin: 0 0 44px; gap: 16px; }
  .core { width: 150px; }
  .system__read { min-height: 4.6em; line-height: 1.5; }
  .mod__n { font-size: clamp(1.4rem, 6vw, 1.9rem); font-weight: 500; }
  .mod__d { display: none; }
  .mod { padding: 14px 0; gap: 4px; }
}

/* ==========================================================================
   FOUR PILLARS
   ========================================================================== */
.pillars { padding-bottom: calc(var(--section) * 0.6); }
.pillars__head { display: grid; gap: clamp(22px, 2.6vw, 36px); margin-bottom: clamp(56px, 8vw, 120px); }
.pillar {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 112px);
  padding-block: clamp(48px, 7vw, 108px);
  border-top: 1px solid var(--line);
}
.pillar__k { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(22px, 3vw, 40px); color: var(--mute); }
.pillar__k svg { width: 40px; height: 40px; fill: none; stroke: var(--fg); stroke-width: 1.1; }
.pillar__t { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.01; letter-spacing: -0.024em; text-wrap: balance; }
.pillar__d { margin-top: clamp(16px, 2vw, 24px); max-width: 25em; font-size: var(--t-lead); line-height: 1.5; color: var(--mute); }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2.4vw, 32px); }
.pillar__tags li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }

.js .pillar__vis { opacity: 0; transform: translateY(40px) scale(0.985); transition: opacity 1.1s var(--e-soft), transform 1.4s var(--e-out); }
.js .pillar.is-in .pillar__vis { opacity: 1; transform: none; }
.js .pillar__txt > * { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--e-soft), transform 1.1s var(--e-out); }
.js .pillar__txt > *:nth-child(2) { transition-delay: 0.08s; }
.js .pillar__txt > *:nth-child(3) { transition-delay: 0.16s; }
.js .pillar__txt > *:nth-child(4) { transition-delay: 0.24s; }
.js .pillar.is-in .pillar__txt > * { opacity: 1; transform: none; }

/* shared panel */
.pv {
  --p-bg: var(--paper);
  --p-fg: var(--ink);
  --p-mute: rgba(11, 11, 10, 0.62);
  --p-faint: rgba(11, 11, 10, 0.44);
  --p-line: rgba(11, 11, 10, 0.12);
  --p-acc: var(--brass-deep);
  --p-ok: var(--ok-deep);
  --p-warn: var(--warn-deep);
  position: relative;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(18px, 2.3vw, 30px);
  background: var(--p-bg);
  color: var(--p-fg);
  border: 1px solid var(--p-line);
  border-radius: var(--r-3);
  box-shadow: 0 50px 90px -60px rgba(46, 38, 20, 0.45);
  font-size: 0.875rem;
  line-height: 1.4;
  min-width: 0;
}
.pv--dark {
  --p-bg: var(--ink);
  --p-fg: var(--bone);
  --p-mute: rgba(242, 239, 233, 0.62);
  --p-faint: rgba(242, 239, 233, 0.4);
  --p-line: rgba(242, 239, 233, 0.14);
  --p-acc: var(--brass);
  --p-ok: var(--ok);
  --p-warn: var(--warn);
  box-shadow: 0 50px 90px -50px rgba(11, 11, 10, 0.6);
}
.pv__h { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; color: var(--p-mute); }
.pv__f { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; border-top: 1px solid var(--p-line); color: var(--p-faint); }
.pv-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-tabs button { height: 32px; padding: 0 13px; border: 1px solid var(--p-line); border-radius: 999px; color: var(--p-mute); font-size: 0.8125rem; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.pv-tabs button[aria-selected="true"] { background: var(--p-fg); border-color: var(--p-fg); color: var(--p-bg); }
@media (hover: hover) { .pv-tabs button:not([aria-selected="true"]):hover { border-color: var(--p-fg); color: var(--p-fg); } }

/* 01 compliance */
.pv-comp__score { display: inline-flex; align-items: center; gap: 10px; color: var(--p-fg); }
.pv-comp__score svg { width: 34px; height: 34px; transform: rotate(-90deg); fill: none; stroke-width: 2; }
.pv-comp__score circle { stroke: var(--p-line); }
.pv-comp__ring { stroke: var(--p-acc) !important; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--e-out) 0.3s; }
.pillar.is-in .pv-comp__ring { stroke-dashoffset: calc(100 - var(--score, 98)); }
.pv-comp__score b { font-family: var(--f-display); font-size: 1.875rem; font-weight: 500; line-height: 1; }
.pv-comp__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--p-line); }
.pv-comp__list svg { width: 20px; height: 20px; fill: none; stroke: var(--p-ok); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--p-line); }
.pv-comp__list path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 0.6s var(--e-out); transition-delay: calc(var(--i) * 160ms + 0.6s); }
.pillar.is-in .pv-comp__list .is-ok path { stroke-dashoffset: 0; }
.pv-comp__list strong { display: block; font-weight: 500; }
.pv-comp__list div span { color: var(--p-mute); font-size: 0.8125rem; }
.pv-comp__list em { font-style: normal; color: var(--p-faint); }
.pv-comp__list .is-due svg { box-shadow: inset 0 0 0 1px var(--p-warn); }
.pv-comp__list .is-due em { display: none; }
.pv-comp__list .is-due .pv-comp__due { color: var(--p-warn); }
.pv-comp__list .is-ok .pv-btn { display: none; }
.pv-comp__list li.was-due path { transition-delay: 0.1s; }
.pv-btn { height: 30px; padding: 0 13px; border-radius: var(--r-1); background: var(--p-fg); color: var(--p-bg); font-size: 0.75rem; font-weight: 500; transition: transform 0.4s var(--e-out), background-color 0.3s; }
.pv-btn:active { transform: scale(0.96); }
@media (hover: hover) { .pv-btn:hover { background: var(--p-acc); } }

/* 02 owner */
.pv-owner__figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 4px 0; }
.pv-owner__figs span.mono { display: block; margin-bottom: 8px; color: var(--p-faint); }
.pv-owner__figs b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.pv-owner__log li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--p-line); animation: v-in 0.6s var(--e-out) both; animation-delay: calc(var(--i) * 70ms); }
.pv-owner__log time { font-family: var(--f-mono); font-size: 0.625rem; letter-spacing: 0.06em; color: var(--p-faint); padding-top: 2px; text-transform: uppercase; }
.pv-owner__log em { font-style: normal; color: var(--p-mute); font-variant-numeric: tabular-nums; }
.pv-owner__seen { display: inline-flex; align-items: center; gap: 8px; }
.pv-owner__seen i { width: 5px; height: 5px; border-radius: 50%; background: var(--p-ok); }

/* 03 revenue */
.pv-rev__legend { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.75rem; color: var(--p-mute); }
.pv-rev__legend span { display: inline-flex; align-items: center; gap: 8px; }
.pv-rev__legend i { width: 16px; height: 2px; background: var(--p-fg); }
.pv-rev__legend i.k-b { height: 0; background: none; border-top: 2px dotted var(--p-acc); }
.pv-rev__plot { position: relative; cursor: crosshair; touch-action: pan-y; }
.pv-rev__svg { display: block; max-width: 100%; overflow: visible; }
.pv-rev__svg text { font-family: var(--f-mono); font-size: 9px; fill: var(--p-faint); }
.pv-rev__svg .lbl { font-family: var(--f-sans); font-size: 10.500px; fill: var(--p-fg); font-weight: 500; }
.pv-rev__svg .grid { stroke: var(--p-line); stroke-width: 1; }
.pv-rev__svg .base { fill: none; stroke: var(--p-acc); stroke-width: 2; stroke-dasharray: 0.1 5; stroke-linecap: round; }
.pv-rev__svg .sugg { fill: none; stroke: var(--p-fg); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--e-inout) 0.3s; }
.pv-rev__svg .area { fill: var(--p-fg); opacity: 0; transition: opacity 1.2s 1.6s; }
.pillar.is-in .pv-rev__svg .sugg { stroke-dashoffset: 0; }
.pillar.is-in .pv-rev__svg .area { opacity: 0.07; }
.pv-rev__svg .cross { stroke: var(--p-fg); stroke-width: 1; opacity: 0; }
.pv-rev__svg .dot { fill: var(--p-fg); stroke: var(--p-bg); stroke-width: 2; opacity: 0; }
.pv-rev__svg .dot--b { fill: var(--p-acc); }
.pv-rev__plot.is-hover .cross { opacity: 0.35; }
.pv-rev__plot.is-hover .dot { opacity: 1; }
.pv-rev__svg .end { fill: var(--p-fg); stroke: var(--p-bg); stroke-width: 2; opacity: 0; transition: opacity 0.4s 2.3s; }
.pillar.is-in .pv-rev__svg .end { opacity: 1; }
.pv-rev__gain { color: var(--p-fg); }
.pv .tip { background: var(--p-fg); color: var(--p-bg); }

/* 04 team */
.pv-team__list { --rh: 62px; position: relative; height: calc(4 * var(--rh)); }
.pv-team__list li { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 30px minmax(0, 1.25fr) minmax(0, 1fr) 34px; align-items: center; gap: 14px; height: var(--rh); border-top: 1px solid var(--p-line); transform: translateY(calc(var(--rank, 0) * var(--rh))); transition: transform 0.9s var(--e-out), opacity 0.5s; }
.pv-team__list .av { width: 30px; height: 30px; background: var(--p-fg); color: var(--p-bg); font-size: 0.625rem; }
.pv-team__list .av--s { background: transparent; color: var(--p-fg); box-shadow: inset 0 0 0 1px var(--p-faint); }
.pv-team__list strong { display: flex; align-items: center; gap: 9px; font-weight: 500; white-space: nowrap; }
.pv-team__list strong i { font-style: normal; font-family: var(--f-mono); font-size: 0.5625rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--p-acc); color: var(--ink); }
.pv-team__list small { display: block; font-size: 0.75rem; color: var(--p-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-team__list u { display: block; height: 3px; border-radius: 2px; background: var(--p-line); overflow: hidden; text-decoration: none; }
.pv-team__list u b { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--p-fg); transform-origin: 0 50%; transform: scaleX(var(--s, 0)); transition: transform 1.1s var(--e-out); }
.pv-team__list li.is-top u b { background: var(--p-acc); }
.pv-team__list li > b { font-family: var(--f-display); font-weight: 500; font-size: 1.625rem; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.pv-team__list li.is-low { opacity: 0.45; }

@media (max-width: 920px) {
  .pillar { grid-template-columns: 1fr; gap: 36px; }
  .pv-owner__figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .pv-comp__list li { grid-template-columns: 22px minmax(0, 1fr); }
  .pv-comp__list li > em { display: none; }
  .pv-comp__list li .pv-btn { grid-column: 2; justify-self: start; }
  .pv-team__list { --rh: 76px; }
  .pv-team__list li { grid-template-columns: 30px minmax(0, 1fr) 34px; align-content: center; row-gap: 9px; }
  .pv-team__list u { grid-column: 2 / -1; grid-row: 2; }
}

/* ==========================================================================
   THE OLD WAY / THE HAVEN WAY
   ========================================================================== */
.compare__head { display: grid; gap: clamp(22px, 2.6vw, 36px); margin-bottom: clamp(44px, 6vw, 88px); }
.cmp {
  position: relative;
  aspect-ratio: 16 / 8.4;
  max-width: 100%;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--ink-2);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: ew-resize;
}
.cmp__new, .cmp__old { position: absolute; inset: 0; }
.cmp__new { background: radial-gradient(60% 70% at 72% 50%, rgba(201, 183, 143, 0.09), transparent 70%), var(--ink); }
.cmp__calm { position: absolute; left: 54%; right: 6%; top: 50%; transform: translateY(-50%); display: grid; gap: clamp(16px, 2vw, 28px); }
.cmp__calm > .mono { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); }
.cmp__calm > .mono i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.cmp__big { font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 4.2vw, 4.25rem); line-height: 1.03; letter-spacing: -0.02em; text-wrap: balance; }
.cmp__calm ul { display: flex; flex-wrap: wrap; gap: 8px 0; color: var(--mute); }
.cmp__calm li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.cmp__calm li:last-child { padding-right: 0; margin-right: 0; border-right: 0; }
.cmp__calm ul b { font-weight: 500; color: var(--fg); margin-right: 5px; }

.cmp__old { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #1f1e1a; }
.cmp__desk { position: absolute; inset: 0; background-image: radial-gradient(rgba(242, 239, 233, 0.07) 1px, transparent 1px); background-size: 22px 22px; }
.win {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(190px, 25%, 310px);
  transform: rotate(var(--r));
  background: #2b2a26;
  border: 1px solid rgba(242, 239, 233, 0.13);
  border-radius: 8px;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9);
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(242, 239, 233, 0.86);
  overflow: hidden;
  padding-bottom: 8px;
}
.win__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; margin-bottom: 8px; background: rgba(242, 239, 233, 0.06); font-size: 0.6875rem; color: rgba(242, 239, 233, 0.6); white-space: nowrap; }
.win__h span { overflow: hidden; text-overflow: ellipsis; }
.win__h b { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--alert); color: #fff; font-size: 0.625rem; font-weight: 600; line-height: 18px; text-align: center; }
.win p { margin: 0 10px 5px; }
.win .b { width: fit-content; max-width: 80%; padding: 5px 9px; border-radius: 9px 9px 9px 2px; background: rgba(242, 239, 233, 0.1); }
.win .b--me { margin-left: auto; border-radius: 9px 9px 2px 9px; background: rgba(143, 160, 137, 0.3); }
.win--inbox p, .win--calls p { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(242, 239, 233, 0.07); }
.win--inbox i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--alert); }
.win--calls i { width: 6px; height: 6px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--alert); }
.win--calls { width: clamp(150px, 17%, 210px); }
.win--notes { width: clamp(150px, 18%, 220px); background: #d9c890; color: #2a2412; border: 0; font-family: var(--f-display); font-style: italic; font-size: 1rem; font-weight: 500; }
.win--notes .win__h { background: rgba(0, 0, 0, 0.08); color: rgba(42, 36, 18, 0.6); font-family: var(--f-sans); font-style: normal; font-weight: 400; }
.win .grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin: 0 8px; }
.win .grid i { height: 12px; background: rgba(242, 239, 233, 0.08); }
.win .grid i.a { background: rgba(143, 160, 137, 0.55); }
.win .grid i.b { background: rgba(192, 122, 99, 0.7); }
.win .grid i.c { background: rgba(198, 161, 91, 0.6); }
.win--sheet { width: clamp(210px, 28%, 350px); }

.cmp__tag { position: absolute; top: 18px; z-index: 3; padding: 7px 11px; border-radius: 999px; background: rgba(11, 11, 10, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line); color: var(--fg); pointer-events: none; }
.cmp__tag--old { left: 18px; }
.cmp__tag--new { right: 18px; }
.cmp__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 4; width: 1px; background: var(--bone); pointer-events: none; }
.cmp__handle i { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--bone); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: transform 0.5s var(--e-out); }
.cmp__handle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cmp.is-drag .cmp__handle i { transform: scale(0.88); }
.cmp__range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cmp:has(.cmp__range:focus-visible) { outline: 1px solid var(--bone); outline-offset: 4px; }

.cmp__words { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; margin-top: clamp(40px, 5.5vw, 80px); }
.cmp__before { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2vw, 30px); max-width: 880px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 3.1vw, 2.9rem); line-height: 1.15; color: var(--mute); }
.cmp__before li { position: relative; transition: color 0.6s; }
.cmp__before li::after { content: ""; position: absolute; left: -3px; right: -3px; top: 56%; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--e-inout); transition-delay: calc(var(--n, 0) * 60ms); }
.cmp__words.is-haven .cmp__before li { color: var(--faint); }
.cmp__words.is-haven .cmp__before li::after { transform: none; }
.cmp__after { display: grid; gap: 10px; opacity: 0.3; transition: opacity 0.8s; }
.cmp__after .mono { color: var(--mute); }
.cmp__after strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 0.9; letter-spacing: 0.08em; }
.cmp__words.is-haven .cmp__after { opacity: 1; }

@media (max-width: 920px) {
  .cmp { aspect-ratio: 16 / 10.5; min-height: 0; }
  .win { font-size: 0.6875rem; }
}
@media (max-width: 640px) {
  .cmp { aspect-ratio: 4 / 4.6; }
  .cmp__calm ul { display: grid; gap: 7px; }
  .cmp__calm li, .cmp__calm li:last-child { padding: 0; margin: 0; border: 0; }
  .win { font-size: 0.75rem; }
  .cmp__calm { left: 25%; right: 6%; }
  .cmp__calm li { padding-right: 12px; margin-right: 12px; }
  .win { width: 58%; }
  .win--calls, .win--notes { width: 44%; }
  .win--sheet { width: 62%; }
  .win--chat { left: 4% !important; top: 8% !important; }
  .win--sheet { left: 30% !important; top: 30% !important; }
  .win--inbox { left: 6% !important; top: 47% !important; }
  .win--notes { left: 50% !important; top: 58% !important; }
  .win--calls { left: 3% !important; top: 74% !important; }
  .win--excel { display: none; }
  .cmp__handle i { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
}

/* ==========================================================================
   AUTOMATION — RUN IT
   ========================================================================== */
.run__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(24px, 6vw, 96px);
  margin-bottom: clamp(44px, 6vw, 88px);
}
.run__head .label { margin-bottom: clamp(22px, 2.6vw, 36px); }
.run__stage {
  display: grid;
  grid-template-columns: minmax(0, 310px) minmax(0, 1fr) minmax(0, 420px);
  min-height: 548px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  overflow: hidden;
}
.run__in { display: flex; flex-direction: column; gap: 16px; padding: clamp(18px, 2.2vw, 28px); border-right: 1px solid var(--line); }
.run__card { display: grid; gap: 3px; padding: 18px; background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-2); font-size: 0.875rem; }
.run__new { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--brass); }
.run__new i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); animation: ping 2s ease-out infinite; }
.run__card strong { font-family: var(--f-display); font-weight: 500; font-size: 2.125rem; line-height: 1; letter-spacing: -0.01em; }
.run__meta { color: var(--mute); }
.run__card dl { display: grid; gap: 0; margin: 16px 0 0; }
.run__card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.run__card dt { color: var(--faint); }
.run__card dd { margin: 0; }
.run__btn { width: 100%; justify-content: center; margin-top: auto; }
.run__btn.is-busy { pointer-events: none; opacity: 0.55; }
.run__hint { color: var(--faint); line-height: 1.6; }

.run__steps { display: grid; align-content: center; padding: clamp(14px, 2vw, 26px) clamp(18px, 2.6vw, 40px); counter-reset: s; }
.run__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--faint);
  transition: color 0.5s;
}
.run__steps li:last-child { border-bottom: 0; }
.run__steps li b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 1.9vw, 1.75rem); line-height: 1.1; letter-spacing: -0.01em; }
.run__steps li em { font-style: normal; min-width: 62px; text-align: right; opacity: 0; transition: opacity 0.4s; }
.run__steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; }
.run__steps li.is-run { color: var(--fg); }
.run__steps li.is-run::after { transform: scaleX(1); transition: transform var(--dur, 1.2s) linear; }
.run__steps li.is-run > span { color: var(--brass); }
.run__steps li.is-done { color: var(--mute); }
.run__steps li.is-done em { opacity: 1; color: var(--faint); }
.run__steps li.is-done > span { color: var(--ok); }

.run__out { position: relative; display: grid; padding: clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line); background: var(--ink); min-width: 0; }
.out { grid-area: 1 / 1; display: grid; align-content: center; gap: 18px; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.35s, transform 0.5s var(--e-out), visibility 0s 0.35s; }
.out.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s 0.15s, transform 0.8s var(--e-out) 0.15s, visibility 0s; }
.out__k { color: var(--mute); }
.out__p { color: var(--mute); font-size: 0.875rem; max-width: 30em; }
.out__p b { color: var(--fg); font-weight: 500; }
.out--idle { justify-items: center; text-align: center; color: var(--faint); }
.out--idle svg { width: 44px; height: 44px; opacity: 0.6; }

.o-cal__d { display: grid; grid-template-columns: repeat(7, 1fr); color: var(--faint); }
.o-cal__d i { padding: 8px 0 8px 6px; border-left: 1px solid var(--line); font-style: normal; }
.o-cal__t { position: relative; height: 46px; background: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 7)); border-block: 1px solid var(--line); }
.o-cal__b { position: absolute; left: calc(100% / 7 * 0.6); width: calc(100% / 7 * 2.85); top: 9px; height: 26px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; background: var(--brass); color: var(--ink); font-size: 0.75rem; font-weight: 500; white-space: nowrap; overflow: hidden; transform-origin: 0 50%; }
.out.is-on .o-cal__b { animation: grow 0.9s var(--e-out) 0.35s both; }
.o-win { display: grid; }
.o-win div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-2); }
.o-win .mono { color: var(--faint); }
.o-win b { font-weight: 500; white-space: nowrap; }
.o-win > i { position: relative; width: 1px; height: 38px; margin-left: 24px; background: var(--brass); font-style: normal; }
.o-win > i span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); white-space: nowrap; color: var(--brass); }
.o-mis { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-2); }
.o-mis > b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.75rem; line-height: 1; margin-bottom: 12px; }
.o-mis li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.o-mis li .mono { color: var(--faint); }
.out.is-on .o-mis li { animation: v-in 0.5s var(--e-out) both; }
.out.is-on .o-mis li:nth-child(1) { animation-delay: 0.3s; }
.out.is-on .o-mis li:nth-child(2) { animation-delay: 0.42s; }
.out.is-on .o-mis li:nth-child(3) { animation-delay: 0.54s; }
.out.is-on .o-mis li:nth-child(4) { animation-delay: 0.66s; }
.o-rank li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0 14px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.o-rank .av { width: 28px; height: 28px; background: var(--bone); color: var(--ink); }
.o-rank .av--s { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--faint); }
.o-rank small { display: block; color: var(--mute); font-size: 0.75rem; }
.o-rank b { font-family: var(--f-display); font-weight: 500; font-size: 1.625rem; }
.o-rank u { position: absolute; left: 40px; right: 0; bottom: 5px; height: 2px; background: var(--line); }
.o-rank u::after { content: ""; position: absolute; inset: 0; width: var(--v); background: var(--mute); transform-origin: 0 50%; }
.o-rank .is-top u::after { background: var(--brass); }
.o-rank .is-top b { color: var(--brass); }
.out.is-on .o-rank u::after { animation: grow 1s var(--e-out) 0.3s both; }
.o-phone { justify-self: center; width: min(100%, 300px); padding: 34px 12px 60px; border: 1px solid var(--line); border-bottom: 0; border-radius: 30px 30px 0 0; background: linear-gradient(var(--ink-3), var(--ink)); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.o-push { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: rgba(242, 239, 233, 0.12); font-size: 0.8125rem; line-height: 1.35; }
.o-push .mono { display: flex; align-items: center; gap: 7px; color: var(--mute); font-size: 0.5625rem; }
.o-push .mono i { width: 10px; height: 10px; border-radius: 3px; background: var(--brass); }
.o-push span:last-child { color: var(--mute); }
.out.is-on .o-push { animation: push 0.9s var(--e-out) 0.4s both; }
@keyframes push { from { opacity: 0; transform: translateY(-26px); } }
.o-ok { display: flex; align-items: center; gap: 18px; }
.o-ok svg { width: 54px; height: 54px; flex: none; color: var(--ok); }
.o-ok path { stroke-dasharray: 40; }
.out.is-on .o-ok path { animation: undraw 0.7s var(--e-out) 0.4s both; }
@keyframes undraw { from { stroke-dashoffset: 40; } }
.o-ok b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.875rem; line-height: 1.1; }
.o-ok span { color: var(--mute); font-size: 0.875rem; }
.o-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.o-photos i { position: relative; aspect-ratio: 4 / 3; border-radius: 4px; background: linear-gradient(135deg, #3a372f, #23221d 60%); overflow: hidden; }
.o-photos i:nth-child(2n) { background: linear-gradient(200deg, #45413a, #1f1e1a 70%); }
.o-photos i:nth-child(3n) { background: linear-gradient(160deg, #4d483c, #262520 65%); }
.o-photos i::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 0; height: 46%; background: rgba(242, 239, 233, 0.07); border-radius: 2px 2px 0 0; }
.o-photos i::after { content: ""; position: absolute; right: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3.800 7.300 2.200 2.200 4.200-4.600' fill='none' stroke='%230b0b0a' stroke-width='1.500'/%3E%3C/svg%3E") center / contain; }
.out.is-on .o-photos i::after { animation: pop 0.5s var(--e-out) both; animation-delay: calc(0.35s + var(--n) * 0.13s); }
@keyframes pop { from { transform: scale(0); } }
.o-msg { display: grid; gap: 10px; }
.o-msg p { padding: 16px 18px; border-radius: 16px 16px 16px 4px; background: rgba(242, 239, 233, 0.1); font-family: var(--f-display); font-weight: 500; font-size: 1.5rem; line-height: 1.22; }
.o-msg .mono { color: var(--faint); }

.run__sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-top: clamp(24px, 3vw, 40px); opacity: 0; transform: translateY(10px); transition: opacity 0.8s, transform 1s var(--e-out); }
.run.is-done .run__sum { opacity: 1; transform: none; }
.run__res { font-family: var(--f-display); font-weight: 300; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.015em; }
.run__again { color: var(--mute); }

@media (max-width: 1100px) {
  .run__stage { grid-template-columns: minmax(0, 270px) minmax(0, 1fr) minmax(0, 340px); }
}
@media (max-width: 920px) {
  .run__head { grid-template-columns: 1fr; }
  .run__stage { grid-template-columns: 1fr; min-height: 0; }
  .run__in { border-right: 0; border-bottom: 1px solid var(--line); }
  .run__hint { display: none; }
  .run__steps { padding: 6px 18px; }
  .run__steps li { display: none; border-bottom: 0; padding: 14px 0; }
  .run__steps li.is-run, .run__steps:not(.has-run) li:first-child, .run__steps.is-all li:last-child { display: grid; }
  .run__out { border-left: 0; border-top: 1px solid var(--line); min-height: 320px; }
}

/* ==========================================================================
   PERFORMANCE
   ========================================================================== */
.metrics__head { display: grid; gap: clamp(22px, 2.6vw, 36px); margin-bottom: clamp(64px, 9vw, 130px); }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(56px, 8vw, 128px) clamp(20px, 3vw, 48px);
}
.metric--a { grid-column: 1 / span 5; }
.metric--b { grid-column: 6 / span 7; }
.metric--c { grid-column: 2 / span 6; }
.metric--d { grid-column: 9 / span 4; }
.metric .rule { background: var(--fg); margin-bottom: clamp(14px, 1.8vw, 26px); }
.metric__n {
  display: flex;
  align-items: flex-start;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(5.5rem, 15.5vw, 15.5rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}
.metric__n sup { font-size: 0.4em; line-height: 1.25; letter-spacing: 0; margin-left: 0.08em; vertical-align: baseline; }
.metric__n i { font-style: normal; color: var(--faint); margin: 0 0.02em; }
.metric--c .metric__n i { font-size: 0.8em; line-height: 1.05; margin: 0 0.04em; }
.metric__t { margin-top: clamp(16px, 2vw, 28px); font-size: 1.125rem; font-weight: 500; }
.metric__d { margin-top: 6px; max-width: 24em; color: var(--mute); }
@media (max-width: 920px) {
  .metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric--a, .metric--b, .metric--c, .metric--d { grid-column: auto; }
  .metric__n { font-size: clamp(5rem, 12.4vw, 8rem); }
}
@media (max-width: 600px) {
  .metrics__grid { grid-template-columns: 1fr; }
  .metric__n { font-size: clamp(5.5rem, 26vw, 7.5rem); }
}

/* ==========================================================================
   IMAGINE THIS
   ========================================================================== */
.imagine__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 88px); }
.imagine__side { position: sticky; top: 32vh; align-self: start; }
.imagine__lead { margin-top: clamp(20px, 2.4vw, 32px); font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.5vw, 2.3rem); line-height: 1.1; letter-spacing: -0.01em; max-width: 9em; }
.imagine__list { display: grid; gap: clamp(8px, 1.5vw, 20px); }
.imagine__list li {
  --k: 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  opacity: calc(1 - var(--k) * 0.66);
}
.imagine__list span {
  background: linear-gradient(currentColor, currentColor) 0 58% / calc(var(--k) * 100%) 1px no-repeat;
}
.imagine__end {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(28px, 5vw, 88px);
  margin-top: clamp(88px, 13vw, 210px);
}
.imagine__note { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--mute); line-height: 1.6; }
.imagine__note i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--accent); }
@media (max-width: 920px) {
  .imagine__list li { font-weight: 400; }
  .imagine__in { grid-template-columns: 1fr; }
  .imagine__side { position: static; }
  .imagine__lead { max-width: none; }
  .imagine__end { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: clamp(24px, 6vw, 96px);
  margin-bottom: clamp(56px, 8vw, 112px);
}
.pricing__head .label { margin-bottom: clamp(22px, 2.6vw, 36px); }
.pricing__side { display: grid; gap: 24px; justify-items: start; }
.pricing__toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.pricing__toggle button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 0.8125rem; color: var(--mute); transition: background-color 0.3s, color 0.3s; }
.pricing__toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 26px);
  padding: clamp(28px, 3.4vw, 52px) clamp(20px, 2.8vw, 44px) clamp(28px, 3vw, 44px);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.plan:first-child { border-left: 0; padding-left: 0; }
.plan:last-child { padding-right: 0; }
.plan.is-featured {
  --fg: var(--bone);
  --bg: var(--ink);
  --mute: rgba(242, 239, 233, 0.62);
  --faint: rgba(242, 239, 233, 0.4);
  --line: rgba(242, 239, 233, 0.16);
  --accent: var(--brass);
  margin: -22px 0;
  padding-block: calc(clamp(28px, 3.4vw, 52px) + 22px) calc(clamp(28px, 3vw, 44px) + 22px);
  background: var(--ink);
  color: var(--bone);
  border-left: 0;
  border-radius: var(--r-2);
  box-shadow: 0 50px 90px -50px rgba(11, 11, 10, 0.55);
}
.plan.is-featured + .plan { border-left: 0; }
.plan__flag { position: absolute; top: 20px; right: clamp(20px, 2.8vw, 44px); color: var(--accent); }
.plan__name { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.5rem, 3.8vw, 3.75rem); line-height: 0.95; letter-spacing: -0.02em; }
.plan__range { display: block; margin-top: 12px; color: var(--mute); }
.plan__pitch { color: var(--mute); min-height: 3.1em; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-block: 20px; border-block: 1px solid var(--line); }
.plan__price b { font-family: var(--f-display); font-weight: 500; font-size: 2.25rem; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.plan__price span { color: var(--mute); font-size: 0.875rem; }
.plan__feats { display: grid; gap: 11px; margin-bottom: 10px; font-size: 0.9375rem; }
.plan__feats li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; }
.plan__feats li::before { content: ""; width: 7px; height: 1px; margin-top: 0.78em; background: var(--accent); }
.plan__feats li:first-child { color: var(--fg); }
.plan .btn { width: 100%; justify-content: space-between; margin-top: auto; }
.pricing__note { margin-top: clamp(40px, 4.5vw, 64px); color: var(--mute); max-width: 44em; }
@media (max-width: 920px) {
  .pricing__head { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; border-bottom: 0; }
  .plan, .plan:first-child, .plan:last-child { padding-inline: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .plan.is-featured { margin: 0 calc(var(--gutter) * -0.5); padding: 40px calc(var(--gutter) * 0.5) 32px; border-bottom: 0; }
  .plan__flag { right: calc(var(--gutter) * 0.5); }
  .plan__pitch { min-height: 0; }
}

/* ==========================================================================
   FINAL CALL
   ========================================================================== */
.final {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(150px, 22vh, 280px) clamp(110px, 16vh, 200px);
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 78% 50%, rgba(201, 183, 143, 0.1), transparent 70%);
  pointer-events: none;
}
.final__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.final__in { position: relative; }
.final__title { margin-top: clamp(24px, 3vw, 40px); max-width: 11.5em; font-size: clamp(2.9rem, 8vw, 9rem); line-height: 0.98; text-wrap: balance; }
.final__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(40px, 5.5vw, 80px); }
.final__note { color: var(--mute); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { position: relative; padding-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 6vw, 96px); }
.footer__brand p { margin-top: 20px; max-width: 19em; color: var(--mute); }
.footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.footer__nav div { display: grid; gap: 11px; align-content: start; justify-items: start; }
.footer__nav .mono { margin-bottom: 8px; color: var(--faint); }
.footer__nav a, .footer__nav button { font-size: 0.9375rem; text-align: left; }
.footer__mark {
  margin-top: clamp(56px, 8vw, 110px);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 21vw;
  line-height: 0.74;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: left;
  color: transparent;
  background: linear-gradient(to bottom, rgba(242, 239, 233, 0.26), rgba(242, 239, 233, 0.02) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-user-select: none;
  user-select: none;
  padding-bottom: 0.06em;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--mute);
}
@media (max-width: 920px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   CHAPTERS — the editorial layer
   The page is one story in six chapters. Each chapter opens with a plate
   (its number and the question it answers); a rail on the edge of the screen
   says where you are and lets you jump. Nothing here restyles a section:
   it only groups them, paces them, and names them.
   ========================================================================== */

/* ---- the plate that opens a chapter ---------------------------------------------- */
.chap { position: relative; padding-top: clamp(72px, 12vh, 140px); }
.chap__in {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px clamp(22px, 3.4vw, 56px);
  padding-top: clamp(20px, 2.4vw, 32px);
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
}
.chap__n { display: flex; align-items: flex-start; gap: 12px; }
.chap__n b {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(4.6rem, 9.4vw, 9.25rem);
  line-height: 0.8;
  letter-spacing: -0.035em;
}
.chap__n span { margin-top: 0.35em; font-size: var(--t-label); letter-spacing: 0.16em; color: var(--accent); white-space: nowrap; }
.chap__q {
  padding-bottom: 0.08em;
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.9rem, 3.5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.014em;
  color: var(--fg);
  text-wrap: balance;
}

/* ---- rhythm: tight inside a chapter, a clear break between two -------------------- */
.chap + .s { padding-top: clamp(48px, 5.6vw, 84px); }
.chapter > .s:not(:last-child) { padding-bottom: calc(var(--section) * 0.46); }
.chapter > .s + .s { padding-top: calc(var(--section) * 0.5); }
.chapter > .s:last-child { padding-bottom: calc(var(--section) * 0.62); }
.approach { height: 225vh; }

/* the seven burdens read as one list, close to a single screen */
.problem__head { margin-bottom: clamp(44px, 5.6vw, 84px); }
.problem__w { font-size: clamp(3rem, 7.4vw, 7rem); }
.problem__end { margin-top: clamp(56px, 7vw, 108px); }

/* ---- the rail: six chapters, where you are, one click to any of them --------------- */
.rail { display: none; }
@media (min-width: 1180px) {
  .rail {
    --fg: var(--bone);
    display: block;
    position: fixed;
    right: 12px;
    top: 50%;
    z-index: 95;
    transform: translateY(-50%);
    color: var(--fg);
    transition: color 0.5s var(--e-soft), opacity 0.6s var(--e-soft);
  }
  .rail.is-light { --fg: var(--ink); }
  .is-locked .rail, html:not(.is-ready) .rail { opacity: 0; pointer-events: none; }
  .rail ol { display: grid; }
  .rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 9px; height: 30px; padding-left: 26px; }
  .rail i { flex: none; width: 12px; height: 1px; background: currentColor; opacity: 0.34; transition: width 0.6s var(--e-out), opacity 0.4s, background-color 0.4s; }
  .rail b { font-family: var(--f-mono); font-size: 0.625rem; font-weight: 400; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.4s; }
  .rail__t {
    font-family: var(--f-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.4s, transform 0.6s var(--e-out);
    pointer-events: none;
  }
  .rail a.is-done i { opacity: 0.62; }
  .rail a.is-current i { width: 24px; opacity: 1; background: var(--brass); }
  .rail a.is-current b { opacity: 1; }
  .rail a:hover i, .rail a:focus-visible i { width: 24px; opacity: 1; }
  /* names: on hover for all six, and for a moment each time a chapter begins */
  .rail::before {
    content: "";
    position: absolute;
    top: -30px;
    bottom: -30px;
    right: -12px;
    width: 330px;
    background: linear-gradient(to left, rgba(11, 11, 10, 0.82), rgba(11, 11, 10, 0.6) 55%, rgba(11, 11, 10, 0));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
  }
  .rail.is-light::before { background: linear-gradient(to left, rgba(242, 239, 233, 0.92), rgba(242, 239, 233, 0.7) 55%, rgba(242, 239, 233, 0)); }
  .rail:hover::before, .rail:focus-within::before { opacity: 1; }
  .rail:hover b, .rail:focus-within b { opacity: 0.6; }
  .rail:hover a.is-current b { opacity: 1; }
  .rail:hover .rail__t, .rail:focus-within .rail__t, .rail.is-announce a.is-current .rail__t { opacity: 1; transform: none; }
  .rail:hover a:not(.is-current):not(:hover) .rail__t { opacity: 0.55; }
  .rail.is-announce a.is-current .rail__t { text-shadow: 0 0 14px rgba(11, 11, 10, 0.7); }
  .rail.is-light.is-announce a.is-current .rail__t { text-shadow: 0 0 14px rgba(242, 239, 233, 0.9); }
}

/* below that width the same information lives in the bar and in the menu */
.nav__chap { display: none; align-items: baseline; gap: 5px; font-size: 0.625rem; letter-spacing: 0.12em; color: var(--fg); opacity: 0; transition: opacity 0.5s; }
.nav__chap b { font-weight: 500; }
.nav__chap i { font-style: normal; opacity: 0.5; }
.nav__chap.is-on { opacity: 1; }
@media (max-width: 1179px) { .nav__chap { display: inline-flex; } }
@media (min-width: 921px) and (max-width: 1179px) {
  .nav__chap { order: -1; margin-right: 4px; }
  /* no room to centre the links on the page: they take their place in the row, so nothing can collide */
  .nav__links { position: static; transform: none; gap: clamp(16px, 2.2vw, 28px); }
}

.menu__chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; opacity: 0; transition: opacity 0.6s 0.4s; }
.menu.is-open .menu__chapters { opacity: 1; }
.menu__chapters a { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(242, 239, 233, 0.1); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 239, 233, 0.62); }
.menu__chapters a b { font-weight: 400; color: rgba(242, 239, 233, 0.36); }
.menu__chapters a.is-current { color: var(--bone); }
.menu__chapters a.is-current b { color: var(--brass); }
.menu__links a { font-size: clamp(2rem, 9.4vw, 3.4rem); padding: 11px 0; }
.menu__links a small { display: none; }           /* numbers now belong to the chapters, listed just below */
.menu__chapters::before { content: ""; grid-column: 1 / -1; height: 1px; }

/* ---- four pillars, one stage ---------------------------------------------------------
   The pillars take turns in the same place instead of following each other down the
   page: scroll (or the tabs) changes which one is on stage. */
.pillars__tabs { display: none; }
.pillars.is-staged { padding-bottom: 0; }
.pillars.is-staged .pillars__head { margin-bottom: clamp(26px, 3.6vw, 52px); }
.pillars.is-staged .pillars__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(12px, 2vw, 28px); }
.pillars__tab {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 15px 0 4px;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--mute);
  transition: color 0.5s;
}
.pillars__tab::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(var(--k, 0)); transform-origin: 0 50%; }
.pillars__tab b { font-family: var(--f-mono); font-size: 0.625rem; font-weight: 400; letter-spacing: 0.14em; color: var(--faint); transition: color 0.5s; }
.pillars__tab span { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1.45vw, 1.5rem); line-height: 1.08; letter-spacing: -0.008em; }
.pillars__tab[aria-selected="true"] { color: var(--fg); }
.pillars__tab[aria-selected="true"] b { color: var(--accent); }
.pillars__tab[aria-selected="true"]::before { --k: 1; }
.pillars.is-staged .pillar { border-top: 0; }
.pillars.is-staged .pillar:not(.is-active) { display: none; }

@media (min-width: 921px) {
  .pillars.is-staged .pillars__pin { height: calc(100vh + 100vh); }
  .pillars.is-staged .pillars__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding-top: calc(var(--nav-h) + 10px);
    padding-bottom: clamp(18px, 3vh, 36px);
  }
  .pillars.is-staged .pillar, .pillars.is-staged .pillar:not(.is-active) { display: grid; grid-area: 2 / 1; align-self: center; padding-block: 0; }
  .pillars.is-staged .pillar:not(.is-active) { visibility: hidden; pointer-events: none; }
  .pillars.is-staged .pillars__tab::before { transition: none; }
  .pillars.is-staged .pillars__tab.is-past::before { --k: 1; opacity: 0.45; }
}
@media (max-height: 760px) and (min-width: 921px) {
  .pillars.is-staged .pillar__t { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
  .pillars.is-staged .pillar__k { margin-bottom: 16px; }
}
.pillars__next { display: none; }
@media (max-width: 920px) {
  .pillars.is-staged { padding-bottom: calc(var(--section) * 0.5); }
  /* a slim bar that stays under the navigation: four numbers, and the name of the one on stage */
  .pillars.is-staged .pillars__tabs {
    position: sticky;
    top: var(--nav-h);
    z-index: 6;
    display: flex;
    gap: 0;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .pillars__tab { flex: 0 0 auto; display: flex; align-items: baseline; gap: 9px; padding: 15px 16px 14px 0; border-top: 0; }
  .pillars__tab::before { top: auto; bottom: -1px; right: 16px; }
  .pillars__tab span { display: none; font-size: 1.0625rem; white-space: nowrap; }
  .pillars__tab[aria-selected="true"] { flex: 1 1 auto; min-width: 0; }
  .pillars__tab[aria-selected="true"] span { display: block; overflow: hidden; text-overflow: ellipsis; }
  .pillars.is-staged .pillar { padding-block: 34px 0; }
  .pillars__next {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    margin-top: 4px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    color: var(--fg);
  }
  .pillars__next b { font-family: var(--f-mono); font-size: 0.625rem; font-weight: 400; letter-spacing: 0.14em; color: var(--accent); }
  .pillars__next span { flex: 1; font-family: var(--f-display); font-weight: 500; font-size: 1.375rem; line-height: 1.1; }
  .pillars__next svg { align-self: center; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.2; }
}

/* ---- a plate arrives: the rule is drawn, the number rises, the question follows -------------- */
.js .chap__in { border-top-color: transparent; position: relative; }
.js .chap__in::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--e-out); }
.js .chap__in.is-in::after { transform: none; }
.js .chap__n, .js .chap__q { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--e-soft), transform 1.2s var(--e-out); }
.js .chap__n { transition-delay: 0.12s; }
.js .chap__q { transition-delay: 0.26s; }
.js .chap__in.is-in .chap__n, .js .chap__in.is-in .chap__q { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .chap__in::after, .js .chap__n, .js .chap__q { transition: none; opacity: 1; transform: none; }
}

/* the chapter you are in stays underlined in the header */
.nav__links a.is-current::after { transform: none; transform-origin: 0 50%; opacity: 0.6; }

/* ---- very large screens: more room means larger type and a wider measure, not more emptiness ---- */
@media (min-width: 2200px) {
  html { font-size: 112.5%; }
  :root { --max: 1580px; --gutter: 76px; --nav-h: 84px; }
  .nav__inner { width: min(100% - 2 * var(--gutter), 2040px); }
  .product__stage { width: min(100% - 2 * var(--gutter), 1700px); }
}

/* ==========================================================================
   HAVEN — the world
   When the 3D house can run (WebGL2, motion allowed) it sits behind the whole
   page, fixed, and every section becomes a window onto it. Nothing here
   changes content or behaviour: it only removes the opaque backgrounds and
   re-seats the existing components over the architecture.
   Everything is scoped under .has-world, so the drawn version stays intact.
   ========================================================================== */
.world { display: none; }
.has-world .world {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  background: #0b0b0a;
}
.has-world body { background: #0b0b0a; }
.has-world main, .has-world .footer { position: relative; z-index: 1; }

/* every surface reads as "dark, over the world" */
.has-world .s--dark,
.has-world .s--light {
  --bg: #0d0d0c;
  --fg: var(--bone);
  --mute: rgba(242, 239, 233, 0.7);
  --faint: rgba(242, 239, 233, 0.46);
  --line: rgba(242, 239, 233, 0.16);
  --line-2: rgba(242, 239, 233, 0.08);
  --panel: rgba(16, 16, 14, 0.62);
  --panel-2: rgba(28, 28, 25, 0.66);
  --accent: var(--brass);
  background: transparent;
  color: var(--fg);
}
.has-world .footer { background: var(--ink); }
.has-world .hero__canvas, .has-world .final__canvas { display: none; }
.has-world .hero__pin::before, .has-world .approach__pin::before { display: none; }

/* ---- navigation: no bar, only a little darkness to read against ----------------- */
.has-world .nav::before {
  background: linear-gradient(to bottom, rgba(11, 11, 10, 0.78), rgba(11, 11, 10, 0.36) 62%, rgba(11, 11, 10, 0));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 0;
  bottom: -26px;
}

/* ---- hero: the scroll builds the house, so it needs the length of a construction -- */
.has-world .hero { height: 285vh; }
.has-world .hero__content::before {
  left: -30%;
  right: 8%;
  top: -24%;
  bottom: -30%;
  background: radial-gradient(62% 62% at 34% 56%, rgba(8, 9, 12, 0.7), rgba(8, 9, 12, 0) 74%);
}
.has-world .hero__state2::before {
  content: "";
  position: absolute;
  left: -30vw;
  right: 40%;
  top: -60%;
  bottom: -60%;
  z-index: -1;
  background: radial-gradient(60% 60% at 46% 50%, rgba(8, 8, 7, 0.55), rgba(8, 8, 7, 0) 74%);
  pointer-events: none;
}
.has-world .hero__strip { border-top-color: rgba(242, 239, 233, 0.16); background: linear-gradient(to top, rgba(11, 11, 10, 0.55), rgba(11, 11, 10, 0)); }
.has-world .lvl { text-shadow: 0 1px 2px rgba(8, 8, 7, 0.5), 0 0 22px rgba(8, 8, 7, 0.7); }
.has-world .lvl__d { color: rgba(242, 239, 233, 0.86); }
.has-world .lvl__k { color: rgba(242, 239, 233, 0.7); }
.has-world .lvl::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 15px;
  width: var(--lead, 0px);
  height: 1px;
  margin-right: 14px;
  background: linear-gradient(to right, var(--brass), rgba(242, 239, 233, 0.34));
  transform-origin: 100% 50%;
}
.has-world .lvl::after {
  content: "";
  position: absolute;
  right: calc(100% + 14px + var(--lead, 0px));
  top: 12px;
  width: 7px;
  height: 7px;
  margin-right: -3px;
  border: 1px solid var(--brass);
  background: rgba(11, 11, 10, 0.5);
  transform: rotate(45deg);
}
.has-world .lvl.is-active::after { background: var(--brass); }
.has-world .hcard { background: rgba(14, 15, 18, 0.5); border-color: rgba(242, 239, 233, 0.2); }

/* ---- 01–03 ----------------------------------------------------------------------- */
.has-world .problem__w, .has-world .h2, .has-world .display { text-shadow: 0 2px 40px rgba(8, 8, 7, 0.35); }
.has-world .approach__panel { background: rgba(13, 13, 12, 0.74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.has-world .frag__clean { text-shadow: none; }

/* the engine: the line of stations runs along the bottom of the frame; the house is the picture */
@media (min-width: 921px) {
  .has-world .engine__pin::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(10, 10, 9, 0.78), rgba(10, 10, 9, 0.3) 22%, rgba(10, 10, 9, 0) 36%),
      linear-gradient(to top, rgba(10, 10, 9, 0.94), rgba(10, 10, 9, 0.82) 30%, rgba(10, 10, 9, 0.3) 48%, rgba(10, 10, 9, 0) 58%);
    pointer-events: none;
  }
  .has-world .engine__head, .has-world .engine__viewport, .has-world .engine__foot { position: relative; }
  .has-world .engine__pin { padding-top: calc(var(--nav-h) + clamp(8px, 2.4vh, 28px)); }
  .has-world .engine__title { font-size: clamp(2rem, 3.3vw, 3.4rem); margin-top: 14px; }
  .has-world .engine__viewport { align-items: flex-end; padding-bottom: clamp(10px, 2.4vh, 26px); }
  .has-world .station__node { margin-bottom: clamp(12px, 2vh, 20px); }
  .has-world .station__title { font-size: clamp(1.5rem, 1.9vw, 2rem); }
  .has-world .station__text { min-height: 2.9em; margin-top: 8px; font-size: 0.875rem; }
  .has-world .tk { margin-top: 14px; }
  .has-world .station__big { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
}
.has-world .tk { background: rgba(16, 16, 14, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.has-world .station { opacity: 0.4; }
.has-world .station.is-on { opacity: 1; }

/* ---- product, one system ------------------------------------------------------------ */
.has-world .core { background: transparent; }
.has-world .system__read { text-shadow: 0 1px 14px rgba(8, 8, 7, 0.9); }

/* ---- four pillars: the panels become dark glass in front of the house ---------------- */
.has-world .pv {
  --p-bg: rgba(14, 14, 13, 0.66);
  --p-fg: var(--bone);
  --p-mute: rgba(242, 239, 233, 0.66);
  --p-faint: rgba(242, 239, 233, 0.42);
  --p-line: rgba(242, 239, 233, 0.14);
  --p-acc: var(--brass);
  --p-ok: var(--ok);
  --p-warn: var(--warn);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* ---- see it run: the stage opens in the middle and the house stands in it ------------ */
.has-world .run__stage { background: transparent; border-color: rgba(242, 239, 233, 0.16); }
.has-world .run__in, .has-world .run__out { background: rgba(13, 13, 12, 0.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.has-world .run__card { background: rgba(30, 30, 27, 0.7); }
@media (min-width: 921px) {
  .has-world .run__stage { grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 320px); min-height: min(74svh, 700px); }
  .has-world .run__steps { max-width: 430px; background: linear-gradient(to right, rgba(11, 11, 10, 0.86), rgba(11, 11, 10, 0.66) 55%, rgba(11, 11, 10, 0)); }
}
.has-world .product__stage { perspective: none; }
/* a slab with an edge, standing in the room: a lit top arris, a thickness, the shadow it casts, the light it gives off */
.has-world .app { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 0 rgba(170, 160, 142, 0.95), 0 60px 120px -50px rgba(0, 0, 0, 0.72), 0 0 90px -20px rgba(242, 236, 222, 0.28); }
.has-world .app.is-onwall { box-shadow: 0 0 60px rgba(242, 236, 222, 0.35); }
/* room for the walk from the terrace to the wall, between the words and the interface */
.has-world .product__head { margin-bottom: 52vh; }

/* ---- phone: the same film, cut for a tall frame --------------------------------------
   The house plays in the upper part of the screen; the page's own blocks pass over it
   as glass cards, with room between them for the picture. */
@media (max-width: 920px) {
  .has-world .hero { height: 290vh; }
  .has-world .hero__content::before { left: -12%; right: -12%; top: -90px; bottom: -40px; background: linear-gradient(to bottom, rgba(8, 9, 12, 0), rgba(8, 9, 12, 0.62) 110px, rgba(8, 9, 12, 0.8)); }
  .has-world .hero__state2::before { left: -10vw; right: -10vw; top: -70px; bottom: -110px; background: linear-gradient(to bottom, rgba(8, 8, 7, 0), rgba(8, 8, 7, 0.62) 80px, rgba(8, 8, 7, 0.7) calc(100% - 90px), rgba(8, 8, 7, 0)); }
  .has-world .lvl__n { color: var(--bone); background: rgba(11, 11, 10, 0.5); padding: 4px 7px; margin-left: -7px; }

  /* the engine keeps its pinned line of stations on a phone: the house above, one station at a time below */
  .has-world .engine { height: var(--engine-h, auto) !important; padding-block: 0; }
  .has-world .engine__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 8px); }
  .has-world .engine__pin::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(10, 10, 9, 0.8), rgba(10, 10, 9, 0.34) 20%, rgba(10, 10, 9, 0) 32%),
      linear-gradient(to top, rgba(10, 10, 9, 0.95), rgba(10, 10, 9, 0.84) 30%, rgba(10, 10, 9, 0.3) 46%, rgba(10, 10, 9, 0) 56%);
    pointer-events: none;
  }
  .has-world .engine__head, .has-world .engine__viewport { position: relative; }
  .has-world .engine__title { font-size: clamp(1.6rem, 6.6vw, 2.3rem); margin-top: 10px; }
  .has-world .engine__viewport { flex: 1; display: flex; align-items: flex-end; min-height: 0; margin-top: 0; padding-bottom: 22px; }
  .has-world .engine__track { padding: 0 30vw 0 var(--gutter); transform: translate3d(var(--ex, 0px), 0, 0) !important; }
  .has-world .engine__line { left: 0; right: 0; top: 30px; bottom: auto; width: auto; height: 1px; }
  .has-world .engine__line i { width: auto; height: 1px; transform-origin: 0 50%; }
  .has-world .engine__stations { flex-direction: row; gap: 0; padding-left: 0; }
  .has-world .station { width: 74vw; padding-right: 22px; }
  .has-world .station--end { width: 88vw; }
  .has-world .station__time { height: 26px; margin-bottom: 0; }
  .has-world .station__node { position: static; margin: 0 0 14px; }
  .has-world .station__title { font-size: 1.55rem; }
  .has-world .station__text { min-height: 3em; margin-top: 8px; }
  .has-world .station__big { font-size: clamp(2rem, 9vw, 2.6rem); }
  .has-world .tk { margin-top: 12px; }

  .has-world .product__head { margin-bottom: 46svh; }

  .has-world .run__steps { min-height: 46svh; align-content: end; background: linear-gradient(to top, rgba(11, 11, 10, 0.86), rgba(11, 11, 10, 0) 46%); }
  .has-world .run__in { border-bottom-color: rgba(242, 239, 233, 0.14); }
}

/* connectors between the page and the house */
.wlink, .wlink__dot { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.wlink { width: 1px; height: 1px; transform-origin: 0 50%; background: linear-gradient(to right, rgba(201, 183, 143, 0.95), rgba(201, 183, 143, 0.5)); }
.wlink__dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 1px solid var(--brass); border-radius: 50%; background: rgba(11, 11, 10, 0.45); box-shadow: 0 0 0 4px rgba(201, 183, 143, 0.16); }
.has-world .hero .btn--ghost { background: rgba(11, 11, 10, 0.34); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* the last pull-back needs the length of a breath */
.has-world .final { padding-top: 18vh; padding-bottom: 34vh; }
@media (min-width: 1280px) {
  .has-world .run__stage { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 390px); }
}

/* ---- chapters over the house ------------------------------------------------------------
   A plate is the one place where the picture is left almost alone: the number, the
   question, and a clean look at the property before the chapter starts. */
.has-world .chap { min-height: 40vh; min-height: 40svh; display: flex; align-items: flex-end; padding-top: 0; }
.has-world .chap > .wrap { width: min(100% - 2 * var(--gutter), var(--max)); }
.has-world .chap__in { --line: rgba(242, 239, 233, 0.3); position: relative; }
.has-world .chap__in::before {
  content: "";
  position: absolute;
  left: -40vw;
  right: 30%;
  top: -70px;
  bottom: -90px;
  z-index: -1;
  background: radial-gradient(70% 80% at 46% 62%, rgba(8, 8, 7, 0.6), rgba(8, 8, 7, 0) 72%);
  pointer-events: none;
}
.has-world .chap__n b, .has-world .chap__q { text-shadow: 0 2px 36px rgba(8, 8, 7, 0.5); }
.has-world .rail::before { display: none; }
.has-world .rail__t { padding: 5px 9px; margin-right: -3px; background: rgba(11, 11, 10, 0.66); }
/* the engine opens under a band of darkness (its title needs it): the plate before it leads into that band */
.has-world #ch-3::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120%; z-index: -1; background: linear-gradient(to bottom, rgba(10, 10, 9, 0), rgba(10, 10, 9, 0.5) 60%, rgba(10, 10, 9, 0.78)); pointer-events: none; }
.has-world .chap { z-index: 0; }
.has-world .rail .rail__t, .has-world .rail b { text-shadow: 0 0 12px rgba(8, 8, 7, 0.9), 0 0 3px rgba(8, 8, 7, 0.7); }
.has-world .pillars__tabs { position: relative; }
.has-world .pillars__tab { border-top-color: rgba(242, 239, 233, 0.22); text-shadow: 0 1px 16px rgba(8, 8, 7, 0.6); }
@media (max-width: 920px) {
  .has-world .chap { min-height: 36svh; }
  .has-world .chap__in::before { left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: -60px; bottom: -80px; background: linear-gradient(to bottom, rgba(8, 8, 7, 0), rgba(8, 8, 7, 0.56) 64px, rgba(8, 8, 7, 0.6) calc(100% - 70px), rgba(8, 8, 7, 0)); }
  .has-world .engine__track { transition: transform 0.75s var(--e-out); }
  .has-world .pillars.is-staged .pillars__tabs { background: rgba(11, 11, 10, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

/* ---- final polish --------------------------------------------------------------------------- */
/* the site header over the interface: a light surface is passing underneath, so the header
   becomes one clean dark bar with a hairline, instead of a gradient smeared over white */
.nav::before { transition: opacity 0.5s var(--e-soft), background-color 0.4s var(--e-soft), bottom 0.4s var(--e-soft); }
.has-world .nav.is-over-app::before { opacity: 1; bottom: 0; background: rgba(13, 13, 12, 0.96); border-bottom: 1px solid rgba(242, 239, 233, 0.12); }

/* station cards and floating notes: opaque enough to need no blur (crisper, and far cheaper to draw) */
.has-world .tk { background: rgba(16, 16, 14, 0.84); -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-world .hcard { background: rgba(14, 15, 18, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* pricing: the recommended plan is a plane of light, with a brass edge */
.has-world .plan.is-featured { background: rgba(242, 239, 233, 0.055); box-shadow: inset 0 1px 0 var(--brass), inset 0 0 0 1px rgba(242, 239, 233, 0.07); border-radius: 0 0 var(--r-2) var(--r-2); }
.has-world .plans { border-top-color: rgba(242, 239, 233, 0.5); }

/* the closing statement: a little darkness of its own, so the network can stay bright around it */
.has-world .final > .wrap { position: relative; }
.has-world .final > .wrap::before {
  content: "";
  position: absolute;
  left: -30vw;
  right: 22%;
  top: -22%;
  bottom: -38%;
  z-index: -1;
  background: radial-gradient(64% 66% at 42% 48%, rgba(9, 9, 12, 0.6), rgba(9, 9, 12, 0) 74%);
  pointer-events: none;
}
@media (max-width: 920px) {
  .has-world .final > .wrap::before { left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); background: linear-gradient(to bottom, rgba(9, 9, 12, 0), rgba(9, 9, 12, 0.5) 18%, rgba(9, 9, 12, 0.5) 70%, rgba(9, 9, 12, 0)); }
}
