/* =========================================================
   LIVITY — v3 design system
   Light, airy content panels floating over a dark particle world.
   ========================================================= */
:root {
  --abyss: #06090b;
  --deep: #0b1114;
  --pearl: #eef3f2;
  --porcelain: #f5f4f0;
  --stone: #e7e3da;
  --mist: #d5dcd8;
  --sage: #a9b6ae;
  --ink: #0e1315;
  --slate: #59645f;
  --aqua: #8fd5cc;
  --aqua-deep: #2f6b66;
  --peach: #efc2a1;
  --teal: #17393a;

  --line-d: rgba(238, 243, 242, 0.12);
  --line-l: rgba(14, 19, 21, 0.1);
  --muted-d: rgba(238, 243, 242, 0.6);
  --muted-l: rgba(14, 19, 21, 0.58);

  --f-serif: "Gambetta", "Times New Roman", serif;
  --f-sans: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Azeret Mono", ui-monospace, Menlo, monospace;

  --gut: clamp(18px, 4vw, 64px);
  --frame: clamp(8px, 1vw, 14px);
  --r-xl: clamp(22px, 2.4vw, 36px);
  --r-l: 22px;
  --r-m: 16px;
  --ease: cubic-bezier(0.65, 0, 0.15, 1);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--abyss); color: var(--pearl);
  font-family: var(--f-sans); font-weight: 300; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--aqua); color: var(--ink); }

#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
main, footer { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.serif { font-family: var(--f-serif); font-weight: 300; letter-spacing: -0.025em; line-height: 1.02; }
.serif em, em.it { font-style: italic; font-weight: 300; }
.t-hero { font-size: clamp(48px, 7.4vw, 128px); line-height: 0.98; }
.t-xl { font-size: clamp(42px, 6vw, 104px); }
.t-l { font-size: clamp(36px, 4.6vw, 76px); line-height: 1.04; }
.t-m { font-size: clamp(28px, 3vw, 48px); line-height: 1.08; }
.t-s { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -0.015em; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; }
.mono { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted-d); }
.light .muted, .on-light .muted { color: var(--muted-l); }
.accent { color: var(--aqua); }
.light .accent { color: var(--aqua-deep); }
.center { text-align: center; }
.label { display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: "["; opacity: 0.5; } .label::after { content: "]"; opacity: 0.5; }

.line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line-inner { display: block; will-change: transform; }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gut); }
.max { max-width: 1320px; margin-inline: auto; }
.section { position: relative; padding-block: clamp(100px, 13vw, 200px); }
.scene { position: relative; }
.panel {
  position: relative; margin: 0 var(--frame); border-radius: var(--r-xl);
  background: var(--porcelain); color: var(--ink); overflow: clip;
}
.panel.stone { background: var(--stone); }
.panel.mist { background: var(--mist); }
.panel.deep { background: var(--deep); color: var(--pearl); }
.light { color: var(--ink); }
.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.mt-s { margin-top: 18px; } .mt-m { margin-top: 36px; } .mt-l { margin-top: 72px; }
[data-reveal] { opacity: 0; transform: translateY(36px); }
.reduced [data-reveal] { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 8px 0 24px; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 400; font-size: 15px; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  background: var(--ink); color: var(--porcelain);
  transition: color 0.5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--aqua); border-radius: inherit; transform: translateY(102%); transition: transform 0.7s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--ink); }
.btn .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); transition: transform 0.6s var(--ease), background 0.4s; }
.btn:hover .dot { transform: rotate(-45deg); background: var(--ink); color: var(--aqua); }
.btn .dot svg { width: 14px; height: 14px; }
.btn--glass { background: rgba(238,243,242,0.08); color: var(--pearl); border: 1px solid rgba(238,243,242,0.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn--aqua { background: var(--aqua); color: var(--ink); }
.btn--aqua::before { background: var(--pearl); }
.btn--aqua .dot { background: rgba(14,19,21,0.12); }
.btn--line { background: transparent; color: currentColor; border: 1px solid currentColor; padding-right: 24px; }
.btn--line:hover { border-color: var(--aqua); }
.btn--sm { height: 42px; font-size: 14px; padding: 0 6px 0 18px; }
.btn--sm .dot { width: 30px; height: 30px; }
.link-u { position: relative; }
.link-u::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; z-index: 9500; top: 0; left: 0; pointer-events: none; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--aqua); mix-blend-mode: difference; transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out); }
.cursor.is-hover { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 800; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1240px, calc(100% - 2 * var(--frame) - 8px));
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 8px 8px 8px 22px; border-radius: 18px;
  background: rgba(14, 19, 21, 0.42); border: 1px solid rgba(238,243,242,0.12);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  color: var(--pearl); transition: transform 0.7s var(--ease), background 0.5s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-serif); font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 300; }
.logo svg { width: 22px; height: 22px; }
.logo svg .orb { transform-origin: 12px 12px; animation: spin 10s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; gap: 4px; }
.nav-links a { position: relative; padding: 9px 14px; border-radius: 10px; font-size: 14px; color: rgba(238,243,242,0.82); transition: background 0.3s, color 0.3s; }
.nav-links a:hover { background: rgba(238,243,242,0.08); color: var(--pearl); }
.nav-links a.is-active { color: var(--pearl); background: rgba(238,243,242,0.1); }
.nav-links .new { font-family: var(--f-mono); font-size: 9px; color: var(--ink); background: var(--aqua); padding: 2px 6px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.nav-right { display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.nav .btn { height: 40px; border-radius: 12px; padding: 0 16px; background: var(--pearl); color: var(--ink); font-size: 14px; }
.nav .btn::before { border-radius: 12px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(238,243,242,0.1); place-items: center; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 790; background: rgba(6,9,11,0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--gut) 40px;
  opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease);
}
.menu-open .menu { opacity: 1; pointer-events: auto; }
.menu a.big { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(40px, 11vw, 88px); line-height: 1.08; letter-spacing: -0.03em; }
.menu a.big:hover { font-style: italic; color: var(--aqua); }
.menu-foot { display: flex; justify-content: space-between; margin-top: 40px; color: var(--muted-d); }
@media (max-width: 1180px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 520px) { .nav .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gut) clamp(28px, 4vw, 56px); }
.hero-frame { position: absolute; inset: var(--frame); border: 1px solid rgba(238,243,242,0.08); border-radius: var(--r-xl); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--gut); align-items: end; }
.hero h1 em { color: var(--aqua); }
.hero-sub { max-width: 440px; margin-top: 26px; color: var(--muted-d); }
.hero-actions { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.glass-card {
  display: grid; grid-template-columns: 132px 1fr; gap: 0; border-radius: var(--r-l); overflow: hidden;
  background: rgba(14,19,21,0.42); border: 1px solid rgba(238,243,242,0.14);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  max-width: 440px; justify-self: end;
}
.glass-card img { width: 100%; height: 100%; object-fit: cover; min-height: 190px; filter: saturate(0.75); }
.glass-card .gc-body { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.glass-card p { font-size: 14px; color: var(--muted-d); line-height: 1.5; }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted-d); }
.hero-scroll i { width: 1px; height: 46px; background: linear-gradient(var(--aqua), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-meta { position: absolute; top: 96px; left: var(--gut); right: var(--gut); display: flex; justify-content: space-between; color: var(--muted-d); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .glass-card { justify-self: start; }
  .hero-scroll { display: none; }
}
@media (max-width: 520px) { .glass-card { grid-template-columns: 96px 1fr; } .hero-meta span:last-child { display: none; } }

/* ---------- Statement with floating collage ---------- */
.collage { position: relative; min-height: clamp(720px, 92vh, 980px); display: grid; place-items: center; }
.collage .statement { position: relative; z-index: 2; max-width: 760px; text-align: center; padding-inline: var(--gut); }
.float { position: absolute; border-radius: var(--r-m); overflow: hidden; z-index: 1; box-shadow: 0 30px 60px -30px rgba(14,19,21,0.35); }
.float img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) contrast(0.98); }
.float.f1 { width: clamp(140px, 17vw, 260px); aspect-ratio: 4/5; left: 5%; top: 18%; }
.float.f2 { width: clamp(130px, 14vw, 220px); aspect-ratio: 3/4; right: 6%; top: 10%; }
.float.f3 { width: clamp(150px, 16vw, 250px); aspect-ratio: 4/3; left: 12%; bottom: 3%; }
.float.f4 { width: clamp(110px, 11vw, 180px); aspect-ratio: 1; right: 14%; bottom: 12%; }
.float .tag { position: absolute; left: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 9px; background: rgba(245,244,240,0.85); color: var(--ink); padding: 4px 8px; border-radius: 99px; text-transform: uppercase; }
@media (max-width: 760px) {
  .collage { min-height: 0; display: block; padding-block: 100px; }
  .float { display: none; }
  .float.f1, .float.f2 { display: block; position: relative; left: auto; right: auto; top: auto; width: 46%; }
  .collage .floats-m { display: flex; gap: 4%; justify-content: center; margin-top: 48px; padding-inline: var(--gut); }
}

/* ---------- DNA / measurable (over particles) ---------- */
.measure { min-height: 120vh; display: flex; align-items: center; }
.measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); width: 100%; }
.measure h2 em { color: var(--aqua); }
.graph { position: relative; margin-top: 44px; max-width: 520px; }
.graph svg { width: 100%; height: auto; overflow: visible; }
.graph .axis { stroke: rgba(238,243,242,0.25); stroke-width: 1; }
.graph .curve-a { stroke: rgba(238,243,242,0.35); stroke-width: 1.5; fill: none; stroke-dasharray: 4 5; }
.graph .curve-b { stroke: var(--aqua); stroke-width: 2; fill: none; }
.graph text { fill: var(--muted-d); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; }
.biochips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; max-width: 540px; }
.biochip { font-family: var(--f-mono); font-size: 11px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-d); background: rgba(14,19,21,0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.biochip b { color: var(--aqua); font-weight: 400; margin-left: 6px; }
@media (max-width: 900px) { .measure-grid { grid-template-columns: 1fr; } .measure { min-height: 0; padding-block: 120px; } }

/* ---------- Biological clock ---------- */
.clock-sec { height: 360vh; }
.clock-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr minmax(320px, 620px) 1fr; align-items: center; gap: var(--gut); padding: 90px var(--gut) 40px; overflow: hidden; }
.clock-pin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(47,107,102,0.25), transparent 70%); pointer-events: none; }
.clock-side { position: relative; display: grid; gap: 26px; align-content: center; }
.clock-side h2 em { color: var(--aqua); }
.clock-wrap { position: relative; aspect-ratio: 1; width: 100%; max-height: calc(100svh - 150px); justify-self: center; }
.clock-wrap svg { width: 100%; height: 100%; overflow: visible; }
.clock .tick { stroke: rgba(238,243,242,0.2); stroke-width: 1; }
.clock .tick.major { stroke: rgba(238,243,242,0.55); stroke-width: 1.4; }
.clock .tick.lit { stroke: var(--aqua); }
.clock .num { fill: rgba(238,243,242,0.55); font-family: var(--f-mono); font-size: 11px; text-anchor: middle; dominant-baseline: middle; }
.clock .gain { fill: none; stroke: url(#gainGrad); stroke-width: 18; stroke-linecap: butt; filter: url(#glow); }
.clock .hand-chrono { stroke: rgba(238,243,242,0.85); stroke-width: 1.5; stroke-linecap: round; }
.clock .hand-bio { stroke: var(--aqua); stroke-width: 3; stroke-linecap: round; filter: url(#glow); }
.clock .ring { fill: none; stroke: rgba(238,243,242,0.08); }
.clock .ring-dash { fill: none; stroke: rgba(238,243,242,0.18); stroke-dasharray: 1 6; }
.clock .hub { fill: var(--deep); stroke: rgba(238,243,242,0.3); }
.clock-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.clock-center > div { text-align: center; transform: translateY(18%); }
.clock-center .bio { font-family: var(--f-serif); font-weight: 300; font-size: clamp(64px, 8vw, 128px); line-height: 0.9; letter-spacing: -0.04em; color: var(--pearl); }
.clock-center .bio small { font-size: 0.35em; color: var(--aqua); letter-spacing: 0; margin-left: 4px; font-style: italic; }
.readouts { display: grid; gap: 0; border-top: 1px solid var(--line-d); }
.readouts > div { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.readouts b { font-family: var(--f-serif); font-weight: 300; font-size: 30px; letter-spacing: -0.02em; }
.readouts b.aq { color: var(--aqua); }
.mbars { display: grid; gap: 16px; }
.mbar .mbar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.mbar .track { position: relative; height: 4px; background: rgba(238,243,242,0.08); border-radius: 99px; }
.mbar .typ, .mbar .liv { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: inherit; transform-origin: left; }
.mbar .typ { background: rgba(238,243,242,0.28); }
.mbar .liv { background: var(--aqua); height: 100%; box-shadow: 0 0 12px rgba(143,213,204,0.6); }
.legend { display: flex; gap: 18px; color: var(--muted-d); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 99px; vertical-align: middle; margin-right: 8px; }
.phase { min-height: 3.2em; }
.phase-title { font-family: var(--f-serif); font-size: 26px; letter-spacing: -0.02em; font-weight: 300; }
.clock-progress { position: absolute; left: var(--gut); right: var(--gut); bottom: 24px; height: 1px; background: var(--line-d); }
.clock-progress i { position: absolute; inset: 0; background: var(--aqua); transform-origin: left; transform: scaleX(0); }
@media (max-width: 1100px) {
  .clock-sec { height: 300vh; }
  .clock-pin { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 14px; padding-top: 84px; align-content: center; }
  .clock-wrap { max-height: 46svh; width: auto; height: 46svh; }
  .clock-side.right { display: none; }
  .clock-side.left h2 { font-size: clamp(30px, 7vw, 44px); }
  .clock-side.left .lede, .clock-side.left .legend { display: none; }
  .readouts { grid-template-columns: 1fr 1fr 1fr; border: 0; gap: 10px; }
  .readouts > div { flex-direction: column; align-items: flex-start; border: 1px solid var(--line-d); border-radius: 12px; padding: 10px 12px; }
  .readouts b { font-size: 24px; }
}

/* ---------- Cards rail ---------- */
.rail-wrap { overflow: hidden; }
.rail { display: flex; gap: 16px; padding-inline: var(--gut); cursor: grab; will-change: transform; width: max-content; }
.rail.dragging { cursor: grabbing; }
.rcard { position: relative; flex: none; width: clamp(280px, 30vw, 440px); aspect-ratio: 4/5; border-radius: var(--r-l); overflow: hidden; color: var(--pearl); user-select: none; }
.rcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.82); transition: transform 1.2s var(--ease-out); pointer-events: none; }
.rcard:hover img { transform: scale(1.06); }
.rcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,9,11,0.7)); }
.rcard .rc-body { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; }
.rcard .rc-num { position: absolute; z-index: 2; top: 20px; left: 24px; }
.rcard h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(34px, 3.4vw, 54px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.rcard p { font-size: 14px; color: rgba(238,243,242,0.78); max-width: 32ch; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-l); display: grid; place-items: center; transition: background 0.3s, color 0.3s; }
.rail-nav button:hover { background: var(--ink); color: var(--porcelain); }

/* ---------- Journey (sticky list) ---------- */
.journey { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--gut); }
.journey-left { position: sticky; top: 120px; align-self: start; }
.journey-visual { position: relative; margin-top: 40px; aspect-ratio: 4/3; border-radius: var(--r-l); overflow: hidden; background: var(--mist); }
.journey-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.9s var(--ease), transform 1.4s var(--ease-out); filter: saturate(0.8); }
.journey-visual img.is-on { opacity: 1; transform: none; }
.jsteps { display: grid; }
.jstep { padding: 34px 0; border-top: 1px solid var(--line-l); display: grid; grid-template-columns: 70px 1fr; gap: 16px; opacity: 0.35; transition: opacity 0.6s; }
.jstep:last-child { border-bottom: 1px solid var(--line-l); }
.jstep.is-on { opacity: 1; }
.jstep h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 10px; }
.jstep p { color: var(--muted-l); max-width: 46ch; }
.jstep .jn { font-family: var(--f-mono); font-size: 12px; padding-top: 10px; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; } .journey-left { position: relative; top: 0; } .jstep { opacity: 1; } }

/* ---------- Orbit systems (over particles) ---------- */
.systems { min-height: 120vh; display: flex; align-items: center; }
.systems-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: var(--gut); align-items: center; width: 100%; }
.sys-list { display: grid; gap: 0; }
.sys-list li { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-d); font-size: 15px; transition: color 0.3s, padding 0.5s var(--ease); cursor: default; }
.sys-list li:hover { color: var(--aqua); padding-left: 8px; }
.sys-list li span { font-family: var(--f-mono); font-size: 10px; color: var(--muted-d); }
.systems h2 em { color: var(--aqua); }
@media (max-width: 1000px) { .systems-grid { grid-template-columns: 1fr; } .systems-spacer { display: none; } .systems { min-height: 0; padding-block: 120px; } }

/* ---------- Panel teaser (over particles) ---------- */
.bespoke { min-height: 110vh; display: flex; align-items: center; }
.bespoke-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); width: 100%; align-items: center; }
.bespoke h2 em { color: var(--aqua); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; max-width: 560px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 99px; font-size: 14px; border: 1px solid rgba(238,243,242,0.18); background: rgba(14,19,21,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.4s var(--ease-out); user-select: none; }
.chip:hover { transform: translateY(-2px); border-color: rgba(238,243,242,0.5); }
.chip.is-on { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
.chip .pl { width: 14px; height: 14px; position: relative; }
.chip .pl::before, .chip .pl::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); transition: transform 0.4s var(--ease); }
.chip .pl::after { transform: translate(-50%,-50%) rotate(90deg); }
.chip.is-on .pl::after { transform: translate(-50%,-50%) rotate(0); }
.chip.is-on .pl::before { transform: translate(-50%,-50%) rotate(45deg) scaleX(0); }
.chip small { font-family: var(--f-mono); font-size: 10px; opacity: 0.7; }
.tally { display: flex; gap: 40px; margin-top: 30px; align-items: flex-end; flex-wrap: wrap; }
.tally b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(44px, 4.5vw, 72px); letter-spacing: -0.03em; line-height: 0.95; }
@media (max-width: 900px) { .bespoke-grid { grid-template-columns: 1fr; } .bespoke-spacer { display: none; } .bespoke { min-height: 0; padding-block: 120px; } }

/* ---------- Add-ons grid ---------- */
.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.addon { position: relative; border-radius: var(--r-l); background: var(--porcelain); padding: 26px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background 0.6s var(--ease), color 0.6s; }
.addon:hover { background: var(--ink); color: var(--pearl); }
.addon .a-top { display: flex; justify-content: space-between; align-items: flex-start; }
.addon h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 10px; }
.addon p { font-size: 14px; color: var(--muted-l); transition: color 0.6s; }
.addon:hover p { color: var(--muted-d); }
.addon .a-art { position: absolute; right: -30px; top: -30px; width: 170px; height: 170px; opacity: 0.35; transition: transform 1.2s var(--ease-out), opacity 0.6s; }
.addon .a-art * { fill: none; stroke: currentColor; stroke-width: 0.8; }
.addon:hover .a-art { transform: rotate(60deg) scale(1.15); opacity: 0.6; color: var(--aqua); }
@media (max-width: 980px) { .addons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .addons { grid-template-columns: 1fr; } }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { border-radius: var(--r-l); padding: clamp(24px, 2.6vw, 36px); background: rgba(255,255,255,0.55); border: 1px solid var(--line-l); display: flex; flex-direction: column; gap: 24px; min-height: 600px; transition: transform 0.7s var(--ease-out), box-shadow 0.7s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px rgba(14,19,21,0.3); }
.plan.dark { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.plan.dark .muted { color: var(--muted-d); }
.plan.aq { background: var(--teal); color: var(--pearl); border-color: var(--teal); }
.plan.aq .muted { color: var(--muted-d); }
.plan .price { font-family: var(--f-serif); font-weight: 300; font-size: clamp(44px, 4.4vw, 68px); letter-spacing: -0.035em; line-height: 0.95; }
.plan .price small { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; vertical-align: top; margin-right: 6px; }
.plan ul { list-style: none; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 12px; font-size: 15px; }
.plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--aqua-deep); }
.plan.dark li::before, .plan.aq li::before { background: var(--aqua); }
.plan .pill { align-self: flex-start; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: var(--aqua); color: var(--ink); }
.plan.dark .btn, .plan.aq .btn { background: var(--pearl); color: var(--ink); }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; } .plan { min-height: 0; } }

/* ---------- MHH ---------- */
.mhh { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gut); align-items: center; }
.mhh-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mhh-stats > div { border-radius: var(--r-m); background: var(--porcelain); padding: 24px; display: grid; gap: 34px; }
.mhh-stats b { font-family: var(--f-serif); font-weight: 300; font-size: clamp(40px, 4vw, 64px); letter-spacing: -0.03em; line-height: 0.9; }
.rings-deco { position: relative; aspect-ratio: 1; max-width: 420px; }
@media (max-width: 900px) { .mhh { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gut); }
.faq-item { border-bottom: 1px solid var(--line-l); }
.faq-item:first-child { border-top: 1px solid var(--line-l); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font-family: var(--f-serif); font-weight: 300; font-size: clamp(20px, 1.7vw, 26px); letter-spacing: -0.015em; }
.faq-q .pm { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line-l); position: relative; transition: background 0.4s, transform 0.6s var(--ease); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.3px; background: currentColor; transform: translate(-50%,-50%); }
.faq-q .pm::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform 0.5s var(--ease); }
.faq-item.is-open .pm { background: var(--ink); color: var(--pearl); transform: rotate(180deg); }
.faq-item.is-open .pm::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { height: 0; overflow: hidden; transition: height 0.6s var(--ease); }
.faq-a p { padding-bottom: 26px; color: var(--muted-l); max-width: 62ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- CTA (over particles) ---------- */
.cta { min-height: 100vh; display: flex; align-items: center; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); width: 100%; align-items: center; }
.cta h2 em { color: var(--aqua); }
.form-card { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 44px); background: rgba(14,19,21,0.5); border: 1px solid rgba(238,243,242,0.14); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); }
.form { display: grid; }
.field { position: relative; border-bottom: 1px solid rgba(238,243,242,0.18); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; outline: none; padding: 28px 0 12px; font-size: 17px; color: var(--pearl); appearance: none; -webkit-appearance: none; border-radius: 0; }
.field select option { color: var(--ink); }
.field textarea { resize: none; min-height: 90px; }
.field label { position: absolute; left: 0; top: 26px; font-size: 17px; color: var(--muted-d); pointer-events: none; transition: top 0.45s var(--ease-out), font-size 0.45s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label, .field select + label { top: 6px; font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .btn { margin-top: 30px; justify-self: start; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted-d); }
.form-success { display: none; font-family: var(--f-serif); font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.form.is-sent .form-success { display: block; }
.form.is-sent > :not(.form-success) { display: none; }
@media (max-width: 900px) { .cta-grid, .field-row { grid-template-columns: 1fr; } .cta { padding-block: 120px; } }

/* ---------- Footer ---------- */
.footer { margin: 0 var(--frame) var(--frame); border-radius: var(--r-xl); background: var(--porcelain); color: var(--ink); padding: clamp(60px, 7vw, 100px) var(--gut) 24px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gut); padding-bottom: 60px; }
.footer h4 { font-family: var(--f-mono); font-weight: 400; font-size: 11px; text-transform: uppercase; color: var(--muted-l); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer-word { font-family: var(--f-serif); font-weight: 300; font-size: 22vw; line-height: 0.78; letter-spacing: -0.04em; text-align: center; overflow: hidden; color: var(--ink); }
.footer-word span { display: inline-block; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line-l); margin-top: 26px; color: var(--muted-l); }
.newsletter { display: flex; margin-top: 22px; max-width: 420px; border-bottom: 1px solid var(--line-l); }
.newsletter input { flex: 1; border: 0; background: none; outline: none; padding: 12px 0; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Page hero (inner) ---------- */
.phero { min-height: 92svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gut) clamp(32px, 4vw, 56px); }
.phero h1 em { color: var(--aqua); }
.phero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.crumbs { display: flex; gap: 10px; color: var(--muted-d); margin-bottom: 26px; }
.stats { display: flex; gap: clamp(24px, 3vw, 48px); }
.stats b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.025em; line-height: 1; margin-bottom: 6px; }

/* ---------- Assessment components ---------- */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.comp { position: relative; border-radius: var(--r-l); background: var(--porcelain); padding: 26px; min-height: 400px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: background 0.6s var(--ease), color 0.6s; }
.comp:hover { background: var(--ink); color: var(--pearl); }
.comp h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(28px, 2.4vw, 38px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 12px; }
.comp p { font-size: 15px; color: var(--muted-l); transition: color 0.6s; }
.comp:hover p { color: var(--muted-d); }
.comp .c-top { display: flex; justify-content: space-between; }
.comp .c-art { position: absolute; right: -24px; top: 56px; width: 190px; height: 190px; transition: transform 1.2s var(--ease-out), color 0.6s; }
.comp .c-art * { fill: none; stroke: currentColor; stroke-width: 0.8; }
.comp:hover .c-art { transform: rotate(45deg) scale(1.1); color: var(--aqua); }
.comp ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.comp ul li { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; padding: 5px 9px; border: 1px solid currentColor; border-radius: 99px; opacity: 0.7; }
@media (max-width: 980px) { .comp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .comp-grid { grid-template-columns: 1fr; } .comp { min-height: 320px; } }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grade { border-radius: var(--r-l); border: 1px solid var(--line-d); background: rgba(14,19,21,0.4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 26px; min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; }
.grade .g { font-family: var(--f-serif); font-weight: 300; font-style: italic; font-size: 96px; line-height: 0.8; color: var(--aqua); }
@media (max-width: 980px) { .grades { grid-template-columns: 1fr 1fr; } }
.domains { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.domain { border-radius: var(--r-m); background: var(--porcelain); padding: 22px; display: grid; gap: 60px; transition: background 0.5s, color 0.5s; }
.domain:hover { background: var(--teal); color: var(--pearl); }
.domain h4 { font-family: var(--f-serif); font-weight: 300; font-size: 24px; letter-spacing: -0.02em; }
@media (max-width: 980px) { .domains { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .domains { grid-template-columns: 1fr 1fr; } }
.alist { border-top: 1px solid var(--line-l); }
.arow { display: grid; grid-template-columns: 60px 1fr 1fr 130px; gap: var(--gut); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-l); transition: padding 0.6s var(--ease); }
.arow:hover { padding-left: 14px; }
.arow h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 42px); letter-spacing: -0.025em; }
.arow p { color: var(--muted-l); font-size: 15px; }
.arow .pr { font-family: var(--f-mono); font-size: 12px; text-align: right; }
@media (max-width: 760px) { .arow { grid-template-columns: 1fr auto; } .arow .mono:first-child, .arow p { display: none; } }

/* ========== Bespoke panel builder ========== */
.builder { display: grid; grid-template-columns: 1fr 400px; gap: var(--gut); align-items: start; }
.builder-tools { position: sticky; top: 76px; z-index: 50; background: var(--porcelain); padding: 18px 0 14px; display: grid; gap: 12px; }
.search { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border-radius: 99px; background: #fff; border: 1px solid var(--line-l); transition: border-color 0.3s, box-shadow 0.3s; }
.search:focus-within { border-color: var(--aqua-deep); box-shadow: 0 0 0 4px rgba(143,213,204,0.25); }
.search input { flex: 1; border: 0; outline: none; background: none; font-size: 17px; }
.search svg { width: 18px; height: 18px; flex: none; }
.search kbd { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line-l); border-radius: 6px; padding: 2px 7px; }
.presets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.presets::-webkit-scrollbar { display: none; }
.preset { flex: none; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line-l); font-size: 14px; display: inline-flex; gap: 8px; align-items: center; background: #fff; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.preset:hover { border-color: var(--ink); }
.preset.is-on { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.preset small { font-family: var(--f-mono); font-size: 10px; opacity: 0.6; }
.cat { padding-top: 54px; }
.cat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.cat-head h2 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(32px, 3.2vw, 50px); letter-spacing: -0.03em; line-height: 1; }
.cat-toggle { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; }
.markers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.marker { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: start; padding: 18px 18px 16px 20px; border-radius: var(--r-m); background: #fff; border: 1px solid transparent; cursor: pointer; transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.4s var(--ease-out); }
.marker:hover { border-color: var(--line-l); transform: translateY(-2px); }
.marker.is-on { background: var(--teal); color: var(--pearl); }
.marker h3 { font-family: var(--f-serif); font-weight: 400; font-size: 21px; letter-spacing: -0.015em; line-height: 1.1; }
.marker p { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; opacity: 0.66; }
.marker .m-meta { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.marker .m-meta span { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; border: 1px solid currentColor; border-radius: 99px; padding: 3px 8px; opacity: 0.5; }
.marker .m-meta span.fast { color: #b5654a; border-color: #b5654a; opacity: 1; }
.marker.is-on .m-meta span.fast { color: var(--peach); border-color: var(--peach); }
.marker .m-price { font-family: var(--f-mono); font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marker .tick { width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; opacity: 0.6; }
.marker .tick svg { width: 11px; height: 11px; stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.4s var(--ease-out); }
.marker.is-on .tick { background: var(--aqua); border-color: var(--aqua); opacity: 1; }
.marker.is-on .tick svg { stroke-dashoffset: 0; }
.marker .info { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; opacity: 0.55; margin-left: auto; }
.marker .info:hover { opacity: 1; }
.marker.is-hidden, .cat.is-empty { display: none; }
.empty-state { display: none; padding: 80px 0; text-align: center; }
.empty-state.is-on { display: block; }
.notice { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-m); border: 1px dashed var(--line-l); font-size: 14px; color: var(--muted-l); margin-top: 56px; }
.notice b { color: var(--ink); font-weight: 500; }

.summary { position: sticky; top: 86px; border-radius: var(--r-l); background: var(--ink); color: var(--pearl); padding: 24px; display: grid; gap: 20px; max-height: calc(100vh - 106px); overflow: hidden; grid-template-rows: auto auto 1fr auto; }
.summary-head { display: flex; justify-content: space-between; align-items: center; }
.summary-vis { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: end; }
.summary-vis svg { width: 80px; height: auto; overflow: visible; }
.summary-count b { display: block; font-family: var(--f-serif); font-weight: 300; font-size: 80px; letter-spacing: -0.04em; line-height: 0.8; }
.summary-list { overflow-y: auto; list-style: none; display: grid; align-content: start; min-height: 60px; border-top: 1px solid var(--line-d); scrollbar-width: thin; scrollbar-color: #2a3134 transparent; }
.summary-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-d); font-size: 14px; animation: slideIn 0.5s var(--ease-out); }
.summary-list li span:last-child { font-family: var(--f-mono); font-size: 11px; color: var(--muted-d); display: flex; gap: 10px; align-items: center; }
.summary-list li button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--muted-d); }
.summary-list li button:hover { background: var(--aqua); color: var(--ink); }
.summary-list .empty { color: var(--muted-d); padding: 18px 0; border: 0; animation: none; }
@keyframes slideIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.summary-foot { display: grid; gap: 9px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted-d); }
.sum-row.total { color: var(--pearl); padding-top: 14px; border-top: 1px solid var(--line-d); align-items: flex-end; }
.sum-row.total b { font-family: var(--f-serif); font-weight: 300; font-size: 42px; letter-spacing: -0.03em; line-height: 0.85; }
.sum-row.disc { color: var(--aqua); }
.flags { display: flex; gap: 6px; flex-wrap: wrap; }
.flag { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid var(--line-d); color: var(--muted-d); }
.flag.warn { border-color: var(--peach); color: var(--peach); }
.summary .btn { width: 100%; justify-content: space-between; }
.summary .btn[disabled] { opacity: 0.35; pointer-events: none; }
.unlock { font-size: 12px; color: var(--muted-d); }
.unlock-bar { height: 3px; background: #1e2629; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.unlock-bar i { display: block; height: 100%; background: var(--aqua); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.mobile-bar { display: none; }
@media (max-width: 1080px) {
  .builder { grid-template-columns: 1fr; }
  .summary { position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto; z-index: 600; max-height: 82vh; transform: translateY(calc(100% + 20px)); transition: transform 0.7s var(--ease); }
  .summary.is-open { transform: none; }
  .mobile-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 590; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--pearl); border-radius: 18px; padding: 8px 8px 8px 20px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5); }
  .mobile-bar b { font-family: var(--f-serif); font-weight: 300; font-size: 24px; }
}
@media (max-width: 640px) { .markers { grid-template-columns: 1fr; } }

.scrim { position: fixed; inset: 0; z-index: 880; background: rgba(6,9,11,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.scrim.is-on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 890; width: min(500px, calc(100vw - 20px)); background: var(--porcelain); color: var(--ink); border-radius: var(--r-l); padding: 30px; transform: translateX(calc(100% + 20px)); transition: transform 0.7s var(--ease); display: flex; flex-direction: column; gap: 22px; overflow-y: auto; }
.drawer.is-on { transform: none; }
.drawer .muted { color: var(--muted-l); }
.drawer-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-l); display: grid; place-items: center; transition: background 0.3s, transform 0.5s var(--ease); }
.drawer-close:hover { background: var(--aqua); transform: rotate(90deg); }
.drawer h2 { font-family: var(--f-serif); font-weight: 300; font-size: 48px; letter-spacing: -0.035em; line-height: 0.98; }
.drawer .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer .kv div { background: #fff; border-radius: 12px; padding: 14px; display: grid; gap: 6px; }
.drawer .kv b { font-family: var(--f-serif); font-weight: 400; font-size: 19px; }
.range-vis { position: relative; height: 50px; margin-top: 8px; }
.range-vis .track { position: absolute; left: 0; right: 0; top: 24px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #d79a85 0 18%, #ecd3b5 18% 32%, #9fd3c8 32% 68%, #ecd3b5 68% 82%, #d79a85 82%); }
.range-vis .pin { position: absolute; top: 12px; width: 2px; height: 30px; background: var(--ink); left: 50%; }
.range-vis .pin::after { content: "Optimal"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; }
.modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 10px; pointer-events: none; }
.modal-card { width: min(1060px, 100%); max-height: calc(100vh - 20px); overflow-y: auto; background: var(--deep); color: var(--pearl); border: 1px solid var(--line-d); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); transform: translateY(40px) scale(0.97); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.5s; pointer-events: none; }
.modal.is-on .modal-card { transform: none; opacity: 1; pointer-events: auto; }
.modal-card .serif em { color: var(--aqua); }
.modal-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.modal-list li { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; border: 1px solid var(--line-d); border-radius: 99px; padding: 5px 10px; }
@media (max-width: 860px) { .modal-card { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 950; transform: translate(-50%, 160%); background: var(--ink); color: var(--pearl); padding: 12px 20px; border-radius: 99px; font-size: 14px; transition: transform 0.6s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.panel .accent { color: var(--aqua-deep); }
.panel.deep .accent { color: var(--aqua); }
.panel .muted { color: var(--muted-l); }
.panel.deep .muted { color: var(--muted-d); }

/* Mobile legibility over particles + clock fit */
@media (max-width: 900px) {
  .scene::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: linear-gradient(180deg, rgba(6,9,11,0) 0%, rgba(6,9,11,0.55) 40%, rgba(6,9,11,0.8) 100%); }
  .scene > * { position: relative; z-index: 1; }
  .scene > .hero-frame, .scene > .hero-scroll, .scene > .hero-meta { position: absolute; }
}
@media (max-width: 1100px) {
  .clock-wrap { width: min(100%, 44svh); height: auto; aspect-ratio: 1; }
  .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .readouts > div { padding: 8px 10px; min-width: 0; }
  .readouts .mono { font-size: 9px; letter-spacing: 0.02em; }
  .readouts b { font-size: 22px; }
  .clock-center .bio { font-size: clamp(44px, 12vw, 80px); }
}

/* ========== The Science / Livity Journal ========== */
.jfilters { display: flex; gap: 8px; flex-wrap: wrap; }
.jchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--line-l); background: #fff; font-size: 14px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.jchip small { font-family: var(--f-mono); font-size: 10px; opacity: 0.55; }
.jchip:hover { border-color: var(--ink); }
.jchip.is-on { background: var(--ink); color: var(--pearl); border-color: var(--ink); }
.jmeta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted-l); }
.jmeta span + span::before { content: "·"; margin-right: 16px; opacity: 0.5; }
.jfeat { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border-radius: var(--r-l); overflow: hidden; background: #fff; cursor: pointer; margin-top: 40px; }
.jfeat-img { position: relative; min-height: 420px; overflow: hidden; }
.jfeat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); transition: transform 1.4s var(--ease-out); }
.jfeat:hover .jfeat-img img { transform: scale(1.05); }
.jfeat-body { padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.jcard { border-radius: var(--r-l); overflow: hidden; background: #fff; cursor: pointer; display: flex; flex-direction: column; transition: transform 0.7s var(--ease-out), box-shadow 0.7s; }
.jcard:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -40px rgba(14,19,21,0.35); }
.jcard-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.jcard-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78); transition: transform 1.2s var(--ease-out); }
.jcard:hover .jcard-img img { transform: scale(1.06); }
.jcat { position: absolute; left: 14px; top: 14px; background: rgba(245,244,240,0.9); color: var(--ink); padding: 5px 10px; border-radius: 99px; font-size: 10px; }
.jcard-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.jcard h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.02em; line-height: 1.12; }
.jcard p { font-size: 14px; color: var(--muted-l); }
.jstat { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-l); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.jstat b { font-family: var(--f-serif); font-weight: 300; font-size: 26px; letter-spacing: -0.02em; color: var(--aqua-deep); white-space: nowrap; }
.jstat span { font-size: 12px; color: var(--muted-l); line-height: 1.35; }
.jcard.is-hidden, #featured.is-hidden { display: none; }
@media (max-width: 1000px) { .jgrid { grid-template-columns: 1fr 1fr; } .jfeat { grid-template-columns: 1fr; } .jfeat-img { min-height: 280px; } }
@media (max-width: 620px) { .jgrid { grid-template-columns: 1fr; } }

.refs { list-style: none; border-top: 1px solid var(--line-d); }
.ref { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-d); transition: padding 0.5s var(--ease); }
.ref:hover { padding-left: 10px; }
.ref-n { font-size: 44px; font-style: italic; color: var(--aqua); line-height: 1; }
.ref-use { color: var(--aqua); }
.ref p { margin-top: 6px; color: var(--muted-d); font-size: 15px; max-width: 80ch; }
.ref-link { padding: 9px 14px; border: 1px solid var(--line-d); border-radius: 99px; white-space: nowrap; transition: background 0.3s, color 0.3s; }
.ref-link:hover { background: var(--aqua); color: var(--ink); }
@media (max-width: 700px) { .ref { grid-template-columns: 44px 1fr; } .ref-link { grid-column: 2; justify-self: start; } .ref-n { font-size: 32px; } }

.reader { position: fixed; z-index: 890; top: 10px; right: 10px; bottom: 10px; width: min(820px, calc(100vw - 20px)); background: var(--porcelain); color: var(--ink); border-radius: var(--r-l); overflow-y: auto; overscroll-behavior: contain; transform: translateX(calc(100% + 24px)); transition: transform 0.8s var(--ease); }
.reader.is-on { transform: none; }
.reader-close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 3; width: 46px; height: 46px; border-radius: 50%; background: rgba(245,244,240,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-l); display: grid; place-items: center; transition: transform 0.5s var(--ease), background 0.3s; }
.reader-close:hover { transform: rotate(90deg); background: var(--aqua); }
.reader-hero { aspect-ratio: 16/8; overflow: hidden; }
.reader-hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); }
.reader-text { padding: clamp(24px, 5vw, 64px); max-width: 720px; margin: 0 auto; }
.reader-text h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 18px 0 14px; }
.reader-dek { font-size: 19px; color: var(--muted-l); margin-bottom: 30px; }
.reader-text > p { font-size: 17px; line-height: 1.75; margin-bottom: 18px; }
.reader-stat { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 22px; border-radius: var(--r-m); background: var(--teal); color: var(--pearl); margin-bottom: 30px; }
.reader-stat b { font-size: clamp(36px, 4vw, 52px); font-weight: 300; color: var(--aqua); letter-spacing: -0.03em; white-space: nowrap; }
.reader-stat span { font-size: 14px; color: var(--muted-d); }
.reader-livity { margin: 34px 0 22px; padding: 20px 22px; border-left: 2px solid var(--aqua-deep); background: #fff; border-radius: 0 var(--r-m) var(--r-m) 0; }
.reader-livity p { margin-top: 6px; font-size: 16px; }
.reader-livity .mono { color: var(--aqua-deep); }
.reader-src { padding: 20px 0; border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); }
.reader-src p { font-size: 14px; margin: 8px 0; color: var(--ink); }
.reader-src a { color: var(--aqua-deep); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.reader-note { margin-top: 18px; font-size: 9.5px; }
.reader-next { width: 100%; margin-top: 34px; padding: 22px; border-radius: var(--r-m); background: var(--ink); color: var(--pearl); display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; text-align: left; align-items: center; transition: background 0.4s; }
.reader-next:hover { background: var(--teal); }
.reader-next .mono { grid-column: 1; }
.reader-next .serif { grid-column: 1; font-size: 24px; }
.reader-next svg { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; }

.reader .muted { color: var(--muted-l); }
.reader-text > p.reader-note { font-size: 10px; line-height: 1.6; margin-bottom: 0; }
.reader-next .muted { color: var(--muted-d); }

/* Collage: keep floats on their own GPU layer so scrolling never repaints them */
.float { will-change: transform; backface-visibility: hidden; transform: translateZ(0); }
.float img { backface-visibility: hidden; }

/* ---------- Brand logo ---------- */
.logo img { display: block; height: 17px; width: auto; }
@media (max-width: 520px) { .logo img { height: 15px; } }
.footer-logo { padding-top: clamp(20px, 4vw, 60px); }
.footer-logo img { display: block; width: 100%; height: auto; }

/* Form validation + sending states */
.field.is-err::after { transform: scaleX(1); background: #e58f7c; }
.field.is-err label { color: #e58f7c; }
.btn.is-busy { opacity: 0.6; pointer-events: none; }
.form-error { margin-top: 14px; font-size: 14px; color: #e58f7c; }
.form-error a { color: inherit; }

/* Endorsed-brand lockup: Livity + By MHH Homecare */
.logo { gap: 12px; }
.by-mhh { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(238,243,242,0.9); white-space: nowrap; line-height: 1; }
.by-mhh::before { content: ""; width: 1px; height: 16px; background: rgba(238,243,242,0.3); }
@media (max-width: 520px) { .logo { gap: 9px; } .by-mhh { font-size: 9px; gap: 9px; } .by-mhh::before { height: 13px; } }
.footer-legal { max-width: 110ch; font-size: 13px; line-height: 1.6; color: var(--muted-l); padding-top: 26px; }
.footer-legal b { font-weight: 500; color: var(--ink); }
.footer-bottom a { color: inherit; }

/* Legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.legal-toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-toc a { color: var(--muted-l); transition: color 0.3s; }
.legal-toc a:hover { color: var(--ink); }
.legal-body { max-width: 72ch; color: var(--ink); }
.legal-body section { padding-top: 44px; scroll-margin-top: 100px; }
.legal-body h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.7; color: rgba(14,19,21,0.78); }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-body b { color: var(--ink); font-weight: 500; }
.legal-callout { padding: 24px 26px; border-radius: 18px; background: var(--mist, #e9eeec); border: 1px solid rgba(14,19,21,0.08); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; } }

/* Header sits a little lower, with air above it */
.nav { top: 24px; }
.hero-meta { top: 112px; }
.hero { padding-top: 140px; }
.phero { padding-top: 160px; }
.journey-left { top: 130px; }
.legal-toc { top: 120px; }
.legal-body section { scroll-margin-top: 110px; }
@media (max-width: 520px) { .nav { top: 16px; } .hero-meta { top: 96px; } }
@media (min-width: 1021px) { .summary { top: 100px; max-height: calc(100vh - 120px); } }
