/* Bermuda: shared design system, derived from the 2026 seed deck */

:root {
  --ground: #F3F4F6;
  --card: #FFFFFF;
  --ink: #0F1115;
  --ink-2: #5A5F68;
  --muted: #878C95;
  --line: #E3E5E8;
  --line-2: #D9DCE1;
  --accent: #2E2AF0;
  --accent-hover: #2420C8;
  --accent-soft: #A9A6F9;
  --accent-tint: #EEEEFE;
  --dark: #0F1115;
  --dark-card: #262A33;
  --dark-line: #3F4450;
  --dark-text: #B9BDC4;
  --dark-muted: #9EA3AC;

  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 7vw, 104px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 16px 32px -20px rgba(15, 17, 21, 0.16);
  --shadow-accent: 0 24px 48px -24px rgba(46, 42, 240, 0.55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* type */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.display {
  text-wrap: balance;
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 {
  text-wrap: balance;
  font-size: clamp(32px, 3.8vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.h2--wide { max-width: 24ch; }
.h3 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hl { color: var(--accent); }
.dark .hl { color: var(--accent-soft); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 10px;
  font: 500 16px/1 var(--sans);
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--accent-tint); }
.btn:active { transform: translateY(1px); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 244, 246, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 40px; height: 72px; }
.nav__logo img { width: 124px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; list-style: none; padding: 0; }
.nav__links a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 15px; }
@media (max-width: 860px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* sections */
.section { padding: var(--section) 0; }
.section__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.dark { background: var(--dark); color: #F3F4F6; }
.dark .eyebrow { color: var(--accent-soft); }
.dark .lead { color: var(--dark-text); }
.dark .mono { color: var(--dark-muted); }

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 2.6vw, 36px);
}
.dark .card { background: var(--dark-card); border-color: var(--dark-line); box-shadow: none; }
.card--accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.card--accent .mono { color: #D9D8FC; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  padding: 6px 12px; border-radius: 8px;
}
.logo-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 8px; padding: 8px 12px; }
.logo-chip img { height: 22px; width: auto; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0 clamp(32px, 4vw, 48px); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.funnel { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 540px; justify-self: end; }
.funnel svg { width: 100%; height: 100%; overflow: visible; }
.funnel .f-col { transform-box: fill-box; transform-origin: left center; animation: grow .9s var(--ease) both; }
.funnel .f-noise { animation: fade 1.2s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .funnel { aspect-ratio: 16 / 10; } }

.backers { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; padding-top: 28px; border-top: 1px solid var(--line-2); margin-top: clamp(32px, 4vw, 48px); position: relative; z-index: 1; }
.backers img { height: 26px; width: auto; filter: brightness(0); opacity: .55; transition: opacity .2s; }
.backers a:hover img { opacity: .9; }

/* problem feed */
.feed { display: flex; flex-direction: column; gap: 10px; }
.feed__row {
  display: grid; grid-template-columns: minmax(140px, 210px) 1fr auto; align-items: center; gap: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 24px; box-shadow: 0 16px 32px -26px rgba(15,17,21,.2);
}
.feed__addr { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.feed__amt { font-size: clamp(20px, 2vw, 30px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.feed__amt span { color: var(--muted); }
@media (max-width: 640px) { .feed__row { grid-template-columns: 1fr auto; } .feed__addr { grid-column: 1 / -1; } }
.statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.stat { border-top: 1px solid var(--line-2); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat__n { font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 640px) { .statline { grid-template-columns: 1fr; } }

/* compare */
.compare .card { display: flex; flex-direction: column; }
.compare__row { display: flex; flex-direction: column; gap: 2px; padding: 13px 0; border-top: 1px solid var(--dark-line); }
.compare__row:last-child { padding-bottom: 0; }
.compare__row p:last-child { font-size: 22px; }
.card--accent .compare__row { border-top-color: #5552F3; }
.compare__head { height: 52px; display: flex; align-items: center; margin-bottom: 8px; }
.compare__title { font-size: 24px; font-weight: 600; color: var(--dark-text); }

/* flow */
.flow { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: stretch; }
.flow .card { display: flex; flex-direction: column; gap: 12px; }
.flow__arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.flow__arrow svg { width: 32px; height: 32px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 12px; } .flow__arrow { transform: rotate(90deg); height: 40px; } }
.rule-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-2); padding-top: 24px; margin-top: 48px; }
.rule-row p:first-child { font-size: 20px; font-weight: 500; }

/* platform */
.platform { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; align-items: start; }
.paths { display: flex; flex-direction: column; }
.path { display: flex; flex-direction: column; gap: 10px; padding: 22px 0; border-top: 1px solid var(--dark-line); }
.path__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.path__top .mono { color: var(--accent-soft); min-width: 130px; }
.path > p:last-child { font-size: 20px; }
.shot { display: flex; flex-direction: column; gap: 14px; }
.shot img { border-radius: var(--radius); border: 1px solid var(--dark-line); box-shadow: 0 40px 80px -30px rgba(46,42,240,.5); width: 100%; height: auto; }
@media (max-width: 980px) { .platform { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step p:last-child { color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* builders */
.builders { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.aud { display: flex; flex-direction: column; }
.aud__item { padding: 16px 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.aud__item p:last-child { color: var(--ink-2); }
.code {
  background: var(--dark); color: #E8E8E6; border-radius: var(--radius);
  font: 13px/1.65 var(--mono); padding: 24px 28px; overflow-x: auto; margin: 0;
  box-shadow: 0 32px 64px -32px rgba(15,17,21,.5);
}
.code .k { color: #A9A6F9; } .code .s { color: #CFCDF7; } .code .c { color: #6E7380; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags span { font-size: 14px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; color: var(--ink-2); background: var(--card); }
@media (max-width: 980px) { .builders { grid-template-columns: 1fr; } }

/* institutions */
.inst .card { display: flex; flex-direction: column; gap: 12px; min-height: 100%; }
.inst .card p:last-child { color: var(--dark-text); }
.stairs { width: 100%; max-width: 300px; height: auto; flex: 0 1 300px; }

/* cta band */
.cta { position: relative; overflow: hidden; background: var(--accent); color: #fff; }
.cta__art { position: absolute; top: 0; right: 0; height: 100%; width: 46%; object-fit: cover; object-position: left center; opacity: .9; }
.cta__in { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.cta .eyebrow { color: #D9D8FC; }
.cta .lead { color: #EEEEFE; }
.cta a.mail { color: #fff; font-family: var(--mono); font-size: 15px; }
@media (max-width: 860px) { .cta__art { width: 100%; opacity: .18; } }

/* footer */
.footer { padding: 48px 0 56px; background: var(--dark); color: var(--dark-text); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__in img { width: 110px; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; list-style: none; padding: 0; }
.footer__links a { text-decoration: none; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer small { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dark-muted); width: 100%; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* safe page */
.hero--split .hero__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
.hero--split .shot img { border-color: var(--line); box-shadow: 0 40px 80px -36px rgba(46,42,240,.45); }
.leaks .card { display: flex; flex-direction: column; gap: 10px; }
.leaks .card p:last-child { color: var(--ink-2); }
.kv { display: flex; flex-direction: column; margin-top: 8px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--dark-line); font-size: 17px; }
.kv dt { color: var(--dark-muted); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.kv dd { margin: 0; text-align: right; }
.card--accent .kv div { border-top-color: #5552F3; }
.card--accent .kv dt { color: #D9D8FC; }
.viewer { display: flex; flex-direction: column; gap: 6px; }
.viewer__foot { margin-top: 18px; font-size: 16px; }
.keys { display: flex; gap: 10px; margin: 18px 0 6px; }
.keys span { width: 34px; height: 34px; border-radius: 8px; background: var(--line); }
.keys span.on { background: var(--accent); }
.card--accent .keys span { background: #5552F3; }
.card--accent .keys span.on { background: #fff; }
.bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.bar div { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.bar p:last-child { color: var(--ink-2); font-size: 16px; }
@media (max-width: 980px) { .bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; font-size: 20px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 64ch; }
.two { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.form input, .form select, .form textarea {
  font: 16px/1.4 var(--sans); color: var(--ink); background: var(--ground);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; text-transform: none; letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { align-self: start; border: 0; cursor: pointer; }
.for { display: flex; flex-wrap: wrap; gap: 8px; }
.for span { font-size: 14px; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; background: var(--card); color: var(--ink-2); }

/* ---------- motion and graphics ---------- */

/* problem: live public vs private toggle */
.problem { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.problem .statline { grid-template-columns: 1fr; margin-top: 0; gap: 20px; }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; } .problem .statline { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .problem .statline { grid-template-columns: 1fr; } }
.switch { display: inline-flex; flex: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.switch button { font: 500 14px/1 var(--sans); border: 0; background: transparent; color: var(--ink-2); padding: 10px 14px; border-radius: 7px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch button[aria-pressed="true"].is-bermuda { background: var(--accent); }
.feed__addr, .feed__amt { position: relative; transition: color .4s var(--ease); }
.feed__addr::after, .feed__amt::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 70%; width: 100%; max-width: 220px; transform: translateY(-50%) scaleX(0); transform-origin: left;
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #5552F3 14px 16px, var(--accent) 16px 28px, #A9A6F9 28px 30px);
  border-radius: 3px; transition: transform .55s var(--ease);
}
.feed__addr::after { height: 55%; max-width: 160px; background: repeating-linear-gradient(90deg, #C9C8FB 0 8px, transparent 8px 10px); }
.feed.is-private .feed__addr, .feed.is-private .feed__amt, .feed.is-private .feed__amt span { color: transparent; }
.feed.is-private .feed__addr::after, .feed.is-private .feed__amt::after { transform: translateY(-50%) scaleX(1); }
.feed__row:nth-child(2) ::after { transition-delay: .06s; } .feed__row:nth-child(3) ::after { transition-delay: .12s; } .feed__row:nth-child(4) ::after { transition-delay: .18s; }
.chip[data-private] { transition: background .3s, color .3s; }
.feed.is-private .chip { background: var(--ink); color: #fff; }

/* how it works: a token travels shield > enforce > control */
.flow { position: relative; }
.flow__token { position: absolute; top: -18px; left: 0; width: 12px; height: 12px; background: var(--accent); border-radius: 3px; box-shadow: 0 0 0 6px rgba(46,42,240,.14); opacity: 0; }
.flow.is-in .flow__token { animation: travel 5.5s var(--ease) infinite; }
@keyframes travel { 0% { left: 8%; opacity: 0; } 8% { opacity: 1; } 30% { left: 16%; } 45% { left: 49%; background: var(--accent); } 55% { left: 51%; background: #fff; box-shadow: 0 0 0 6px rgba(46,42,240,.5); } 80% { left: 84%; background: var(--accent); box-shadow: 0 0 0 6px rgba(46,42,240,.14); } 92% { opacity: 1; } 100% { left: 90%; opacity: 0; } }
@media (max-width: 900px) { .flow__token { display: none; } }

/* compliance: steps fill in sequence */
.step { position: relative; border-top-color: var(--line-2); }
.step::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.steps.is-in .step::before { transform: scaleX(1); }
.steps.is-in .step:nth-child(2)::before { transition-delay: .45s; } .steps.is-in .step:nth-child(3)::before { transition-delay: .9s; } .steps.is-in .step:nth-child(4)::before { transition-delay: 1.35s; }

/* pixel graphics built in JS */
.pix rect.p { transform-box: fill-box; transform-origin: bottom; animation: rise .6s var(--ease) both; animation-play-state: paused; }
.pix.is-in rect.p { animation-play-state: running; }
@keyframes rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.cta__art { transform-origin: right center; }
.cta-funnel { position: absolute; top: 0; right: 0; height: 100%; width: 48%; }
.cta-funnel svg { width: 100%; height: 100%; }
.cta-funnel .f-col { transform-box: fill-box; transform-origin: right center; animation: grow .9s var(--ease) both; animation-play-state: paused; }
.cta-funnel.is-in .f-col { animation-play-state: running; }
@media (max-width: 860px) { .cta-funnel { width: 100%; opacity: .18; } }

/* noise card background */
.card--noise { position: relative; overflow: hidden; }
.card--noise::before { content: ""; position: absolute; inset: 0; background: url(img/deck/noise.svg) right top / 360px auto no-repeat; opacity: .55; pointer-events: none; }
.card--noise > * { position: relative; }

/* platform shot float */
.shot img { transition: transform .9s var(--ease); }
.js .shot.reveal img { transform: translateY(28px) scale(.985); }
.js .shot.reveal.is-in img { transform: none; }

/* safe: scrambled observer values, keys lighting up */
.scramble { font-family: var(--mono); font-size: 15px; color: var(--dark-muted); }
.keys span { transition: background .35s var(--ease), transform .35s var(--ease); }
.keys.is-anim span.lit { background: var(--accent); transform: translateY(-3px); }
.card--accent .keys.is-anim span.lit { background: #fff; }

/* form: two columns */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.stairs svg { width: 100%; height: auto; }

/* section head with a control or graphic on the right, bottoms aligned */
.section__head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.section__title { display: flex; flex-direction: column; gap: 16px; flex: 1 1 480px; }
.problem .statline { align-content: start; }

/* new category: the same transfer, old privacy vs Bermuda */
.lens { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; }
.lens__old, .lens__new { border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.lens__old { background: #181B21; border: 1px dashed var(--dark-line); }
.lens__new { background: var(--accent); box-shadow: var(--shadow-accent); }
.lens__top { display: flex; align-items: center; justify-content: space-between; height: 28px; }
.lens__old .mono { height: 28px; display: flex; align-items: center; }
.lens__foot { font-size: 16px; color: var(--dark-muted); margin-top: auto; }
.lens__new .lens__foot { color: #D9D8FC; }
.tx { display: flex; align-items: center; gap: 16px; border-radius: 12px; padding: 16px 18px; }
.tx__addr { font-family: var(--mono); font-size: 14px; }
.tx__bar { flex: 1; height: 14px; border-radius: 3px; }
.tx--old { background: #0F1115; border: 1px solid var(--dark-line); color: var(--dark-muted); }
.tx--old .tx__bar { background: repeating-linear-gradient(90deg, #2A2E36 0 10px, transparent 10px 13px); }
.tx--new { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #EEEEFE; }
.tx--new .tx__bar { background: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 10px, transparent 10px 13px); }
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rules li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--dark-line); font-size: 17px; }
.rules em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.rules--old li { color: #6E7380; }
.rules--old em { color: #5A5F68; }
.rules__x { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--dark-line); font-family: var(--mono); color: #5A5F68; }
.rules--new li { border-top-color: rgba(255,255,255,.18); color: #fff; }
.rules__ok { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); color: transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.rules__ok svg { width: 14px; height: 14px; }
.rules--new em { color: #D9D8FC; opacity: 0; transition: opacity .25s var(--ease); }
.rules--new li.is-check .rules__ok { border-color: #fff; animation: pulse .5s ease-in-out infinite alternate; }
.rules--new li.is-done .rules__ok { background: #fff; color: var(--accent); border-color: #fff; animation: none; }
.rules--new li.is-done em { opacity: 1; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } to { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }
.cleared { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--accent); padding: 6px 12px; border-radius: 8px; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cleared.is-on { opacity: 1; transform: none; }
.shift { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.shift div { border-top: 1px solid var(--dark-line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.shift p:last-child { font-size: 18px; color: #F3F4F6; }
.shift s { color: #5A5F68; margin-right: 8px; text-decoration-thickness: 1px; }
@media (max-width: 900px) { .lens, .shift { grid-template-columns: 1fr; } }

/* ---------- diagrams ---------- */
.gridbg {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* how it works pipeline */
.pipe { position: relative; aspect-ratio: 1280 / 400; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background-color: var(--card);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.pipe__art, .pipe__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pipe__tag { position: absolute; top: 5%; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; white-space: nowrap; }
.pipe__tag--hl { color: var(--accent); }
.pipe .pt { animation: ptmove 3.6s linear infinite; }
.pipe .nt { animation: ntmove 3.2s linear infinite; }
.pipe .slot { animation: slot 2.4s steps(1) infinite; }
.pipe .glint { animation: glint 2.6s var(--ease) infinite; }
.pipe .keyline { stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
@keyframes ptmove { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(310px); opacity: 0; } }
@keyframes ntmove { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(440px); opacity: 0; } }
@keyframes slot { 0%, 100% { opacity: .22; } 20%, 45% { opacity: 1; } }
@keyframes glint { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(280px); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -22; } }
.pipe__caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.pipe__caps div { border-top: 2px solid var(--accent); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pipe__caps p:last-child { color: var(--ink-2); font-size: 17px; }
@media (max-width: 760px) { .pipe__tag { font-size: 9px; } .pipe__caps { grid-template-columns: 1fr; } }

/* new category field */
.field { position: relative; aspect-ratio: 1280 / 380; border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; background-color: #13161B;
  background-image: linear-gradient(#1E2229 1px, transparent 1px), linear-gradient(90deg, #1E2229 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.field__art, .field__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.field__tag { position: absolute; top: 6%; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); }
.field__tag--r { color: var(--accent-soft); text-align: right; }
.field__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent); box-shadow: 0 0 24px 2px rgba(46,42,240,.6); }
@media (max-width: 760px) { .field { aspect-ratio: 1280 / 620; } .field__tag { font-size: 10px; max-width: 44%; } }

/* open grid tiles with pixel icons (no boxes) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 8px; border-left: 1px solid var(--dark-line); }
.tile:first-child { border-left: 0; padding-left: 0; }
.tile p:last-child { color: var(--dark-text); }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { border-left: 0; padding-left: 0; border-top: 1px solid var(--dark-line); } }
.picon { display: block; width: 44px; height: 44px; margin-bottom: 6px; }
.picon svg { width: 100%; height: 100%; }
.picon rect { transform-box: fill-box; transform-origin: center; }
.is-in .picon rect.on { animation: pop .4s var(--ease) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- safe page v2 ---------- */
.shot--pix { position: relative; }
.shot--pix .shot__frame { position: relative; isolation: isolate; }
.shot--pix .shot__frame::before {
  content: ""; position: absolute; right: -28px; bottom: -28px; width: 62%; height: 72%; z-index: -1;
  background:
    linear-gradient(90deg, var(--ground) 4px, transparent 4px) 0 0 / 24px 24px,
    linear-gradient(var(--ground) 4px, transparent 4px) 0 0 / 24px 24px,
    var(--accent);
}
.shot--pix img { border-color: var(--line); box-shadow: 0 30px 60px -30px rgba(15,17,21,.35); position: relative; }
.shot--pix figcaption { margin-top: 44px; }

.tiles--light { border-top-color: var(--line-2); }
.tiles--light .tile { border-left-color: var(--line-2); }
.tiles--light .tile p:last-child { color: var(--ink-2); }
.tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 40px; }
.tiles--5 .tile { padding-right: 20px; }
.tiles--5 .picon { width: 36px; height: 36px; }
@media (max-width: 980px) { .tiles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#problem .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { #problem .tiles { grid-template-columns: 1fr; } }

/* observer vs signer split */
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--dark-line); border-radius: var(--radius); overflow: hidden; background-color: #13161B;
  background-image: linear-gradient(#1E2229 1px, transparent 1px), linear-gradient(90deg, #1E2229 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.split__side { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; }
.split__side--r { background: linear-gradient(90deg, rgba(46,42,240,.22), rgba(46,42,240,.08)); }
.split__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--accent); box-shadow: 0 0 24px 2px rgba(46,42,240,.6); }
.split__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 18px; }
.split__tag--r { color: var(--accent-soft); }
.split__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #262A33; font-size: 18px; min-height: 54px; }
.split__row .mono { font-size: 12px; }
.redact { display: block; width: 180px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #3B3F48 0 10px, transparent 10px 13px); background-size: 26px 100%; animation: shimmer 1.6s linear infinite; }
.redact--short { width: 110px; }
@keyframes shimmer { to { background-position: 26px 0; } }
.conf { display: inline-flex; align-items: center; gap: 6px; }
.conf i { width: 14px; height: 14px; border-radius: 3px; background: #3B3F48; }
.conf i.on { background: var(--accent-soft); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split__line { display: none; } .redact { width: 120px; } }

/* quorum diagrams */
.quorum { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quorum__panel { border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--card); padding: 28px 32px; display: flex; flex-direction: column; gap: 12px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; background-position: -1px -1px; }
.quorum__panel--new { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.quorum__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.quorum__big { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.quorum__big span:last-child { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.quorum__panel--new .quorum__big { color: var(--accent); }
.quorum__art svg { width: 100%; height: auto; display: block; }
.quorum__foot { font-size: 17px; color: var(--ink-2); }
.quorum .ln { transition: stroke .35s var(--ease), opacity .35s var(--ease); }
.quorum .hub { transition: fill .4s var(--ease); }
@media (max-width: 860px) { .quorum { grid-template-columns: 1fr; } }

/* module plugging into a Safe */
.plug { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 0; align-items: stretch; }
.plug__safe { background: #fff; color: var(--ink); border-radius: var(--radius) 0 0 var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.plug__logo { width: 90px; height: auto; }
.plug__safe .mono { color: var(--ink-2); }
.plug__meta { font-size: 16px; color: var(--ink-2); margin-top: auto; }
.plug__mod { width: 180px; background: var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-accent); }
.plug__mod .mono { color: #D9D8FC; }
.plug__bm { width: 110px; height: auto; }
.js .plug.reveal .plug__mod { transform: translateX(60px); opacity: 0; transition: transform .8s var(--ease) .25s, opacity .5s var(--ease) .25s; }
.js .plug.reveal.is-in .plug__mod { transform: none; opacity: 1; }
.plug__notes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.plug__notes p { border-top: 1px solid var(--dark-line); padding-top: 14px; color: var(--dark-text); font-size: 16px; }
.plug__notes b { color: #fff; font-weight: 500; display: block; margin-bottom: 4px; }
@media (max-width: 560px) { .plug { grid-template-columns: 1fr; } .plug__safe { border-radius: var(--radius) var(--radius) 0 0; } .plug__mod { width: auto; border-radius: 0 0 var(--radius) var(--radius); } .plug__notes { grid-template-columns: 1fr; } }

/* beta form on the accent band */
#apply .two { align-items: center; }
#apply .form { color: var(--ink); }

/* platform as three open columns, partners as logo tiles */
.paths--row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--dark-line); }
.paths--row .path { border-top: 0; border-left: 1px solid var(--dark-line); padding: 28px 28px 8px; gap: 10px; }
.paths--row .path:first-child { border-left: 0; padding-left: 0; }
.paths--row .path .mono { color: var(--accent-soft); }
.paths--row .h3 { font-size: clamp(22px, 2vw, 28px); max-width: 16ch; }
.paths--row .picon { width: 56px; height: 56px; }
.platform__note { margin-top: 32px; color: var(--dark-muted); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 760px) { .paths--row { grid-template-columns: 1fr; } .paths--row .path { border-left: 0; padding-left: 0; border-top: 1px solid var(--dark-line); } }

.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.logo-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; min-height: 180px; padding: 32px; background: var(--card); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); transition: background .3s var(--ease); }
.logo-tile img { height: 36px; width: auto; max-width: 70%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease); }
.logo-tile .logo-tile__sq { height: 52px; }
.logo-tile .mono { font-size: 11px; }
.logo-tile::after { content: ""; position: absolute; left: 0; top: 0; width: 10px; height: 10px; background: var(--accent); transform: scale(0); transform-origin: top left; transition: transform .3s var(--ease); }
.logo-tile:hover { background: var(--accent-tint); }
.logo-tile:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
.logo-tile:hover::after { transform: scale(1); }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-tile { min-height: 130px; } }

/* glimmer on the + = x glyphs */
.tw { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .15; } 60% { opacity: .9; } }

/* pipeline destinations */
.pipe__dest { position: absolute; left: 85.9%; width: 12.5%; height: 14%; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 10px 20px -14px rgba(15,17,21,.3); animation: destpulse 4s var(--ease) infinite; }
.pipe__dest img { max-width: 72%; max-height: 46%; width: auto; height: auto; object-fit: contain; }
.pipe__dest:nth-of-type(2) { animation-delay: 1s; } .pipe__dest:nth-of-type(3) { animation-delay: 2s; } .pipe__dest:nth-of-type(4) { animation-delay: 3s; }
@keyframes destpulse { 0%, 100% { border-color: var(--line-2); box-shadow: 0 10px 20px -14px rgba(15,17,21,.3); } 12%, 22% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,42,240,.12), 0 10px 20px -14px rgba(15,17,21,.3); } }
.pipe .flowdot { animation: flowdot 1.4s linear infinite; }
@keyframes flowdot { to { stroke-dashoffset: -40; } }
@media (max-width: 760px) { .pipe__dest img { max-height: 36%; } }

/* builders: compact 2x2 with pixel icons */
.aud--grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.aud--grid .aud__item { border-top: 0; padding: 24px 24px 24px 0; gap: 6px; }
.aud--grid .aud__item:nth-child(n+3) { border-top: 1px solid var(--line-2); }
.aud--grid .aud__item:nth-child(even) { border-left: 1px solid var(--line-2); padding-left: 24px; }
.aud--grid .picon { width: 36px; height: 36px; }
.aud--grid .h3 { font-size: 20px; }
.aud--grid .aud__item p:last-child { font-size: 15px; }
@media (max-width: 560px) { .aud--grid { grid-template-columns: 1fr; } .aud--grid .aud__item:nth-child(even) { border-left: 0; padding-left: 0; } .aud--grid .aud__item:nth-child(n+2) { border-top: 1px solid var(--line-2); } }
.builders { align-items: center; }

/* institutions: atomic settlement graphic */
.dvp { flex: 0 1 380px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.dvp__art svg { width: 100%; height: auto; display: block; }
.dvp .leg { transition: transform 1.2s var(--ease); }
.dvp.is-locked .leg--a { transform: translateX(98px); }
.dvp.is-locked .leg--b { transform: translateX(-98px); }
.dvp .lock { opacity: 0; transition: opacity .3s var(--ease); }
.dvp.is-locked .lock { opacity: 1; transition-delay: 1.1s; }
.dvp__labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); }
.dvp__state { color: var(--accent-soft); }
.dvp.is-locked .dvp__state { color: #fff; }

/* hero: private transfers between confidential accounts */
.funnel .hx { animation: hx 4.2s linear infinite; }
@keyframes hx { from { stroke-dashoffset: 418; } to { stroke-dashoffset: 0; } }
.funnel .hacc { transform-box: fill-box; transform-origin: center; animation: hacc 3s ease-in-out infinite; }
@keyframes hacc { 0%, 100% { transform: scale(1); } 50% { transform: scale(.86); } }

/* ---------- hero: Bermuda is the grid, apps live on it ---------- */
.layer { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; justify-self: end; }
.layer__art, .layer__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer__app {
  position: absolute; width: 12.5%; height: 12.5%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 10px 22px -14px rgba(15,17,21,.35);
  animation: appflash 6s var(--ease) infinite;
}
.layer__app img { max-width: 76%; max-height: 38%; width: auto; height: auto; object-fit: contain; }
.layer__app .picon { width: 42%; height: 42%; margin: 0; }
.layer__lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.layer__app--hub { border-color: var(--accent); }
.layer__app:nth-of-type(3) { animation-delay: .7s; } .layer__app:nth-of-type(4) { animation-delay: 1.4s; } .layer__app:nth-of-type(5) { animation-delay: 2.1s; }
.layer__app:nth-of-type(6) { animation-delay: 2.8s; } .layer__app:nth-of-type(7) { animation-delay: 3.5s; } .layer__app:nth-of-type(8) { animation-delay: 4.2s; }
.layer__app:nth-of-type(9) { animation-delay: 4.9s; } .layer__app:nth-of-type(10) { animation-delay: 5.6s; }
@keyframes appflash { 0%, 100% { border-color: var(--line-2); } 6%, 14% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,42,240,.12), 0 10px 22px -14px rgba(15,17,21,.35); } }
.layer__app--hub { animation: none; box-shadow: 0 0 0 4px rgba(46,42,240,.1), 0 10px 22px -14px rgba(15,17,21,.35); }
.layer__tag { position: absolute; left: 0; bottom: -2px; transform: translateY(100%); margin: 10px 0 0; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 0 0 8px 8px; }
.layer__tag img { height: 11px; width: auto; }
.layer .hx { animation: hx 3.6s linear infinite; }
@media (max-width: 900px) { .layer { justify-self: center; max-width: 440px; margin-bottom: 36px; } }
@media (max-width: 480px) { .layer__lbl { display: none; } .layer__app { border-radius: 7px; } .layer__app .picon { width: 50%; height: 50%; } }

/* ---------- problem: status panel synced with the switch ---------- */
.status { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.status__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status__big { display: flex; align-items: baseline; gap: 10px; font-size: 88px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.status__of { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.status__list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.status__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.status__list li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: #D9DCE1; flex: none; transition: background .3s var(--ease); }
.status.is-private { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.status.is-private #stN { color: var(--accent); }
.status.is-private .status__tag { color: var(--accent); }
.status.is-private .status__list li::before { background: var(--accent); }
.status.is-private .status__rule { font-weight: 500; }
.problem .feed { height: 100%; }
#feedWrap { height: 100%; }
.problem .feed { justify-content: space-between; }
@media (max-width: 900px) { #feedWrap { height: auto; } }

/* ---------- mobile fixes ---------- */
@media (max-width: 900px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .shot--pix .shot__frame::before { right: -12px; bottom: -12px; }
  .shot--pix figcaption { margin-top: 24px; }
}
.nav__menu { display: none; margin-left: 8px; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer; align-items: center; justify-content: center; }
.nav__menu span { display: block; width: 16px; height: 2px; background: var(--ink); box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink); }
@media (max-width: 860px) {
  .nav__menu { display: inline-flex; }
  .nav .btn { margin-left: auto; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { display: block; padding: 14px 0; font-size: 17px; color: var(--ink); border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .nav .btn { padding: 0 14px; font-size: 14px; } .nav__logo img { width: 104px; } }
@media (max-width: 560px) {
  .js .plug.reveal .plug__mod { transform: translateY(24px); }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .status__big { font-size: 64px; }
  .feed__row { padding: 14px 16px; gap: 10px 16px; }
  .section__head--row .switch { width: 100%; }
  .section__head--row .switch button { flex: 1; }
}
.pipe__hint { display: none; }
@media (max-width: 760px) {
  .pipe-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .pipe-scroll::-webkit-scrollbar { display: none; }
  .pipe { min-width: 760px; }
  .pipe__tag { font-size: 11px; }
  .pipe__hint { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .field { aspect-ratio: 1 / 1; }
  .field__tag { font-size: 9px; max-width: 40%; line-height: 1.5; }
}
@media (max-width: 760px) {
  .logo-tile img { max-width: 84%; }
  .logo-tile .logo-tile__sq { height: 38px; }
}
.btn { white-space: nowrap; }
@media (max-width: 480px) { .nav__in { gap: 12px; } }
#how { padding-bottom: 56px; }
#how .section__head { margin-bottom: 28px; }
#how .pipe__caps { margin-top: 20px; }

/* ---------- hero layer in isometric 3D ---------- */
.layer { aspect-ratio: 1 / .78; max-width: 620px; perspective: 2200px; display: flex; align-items: center; justify-content: center; overflow: visible; }
.layer__plane {
  position: relative; width: 82%; aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-40deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 78%, transparent 100%);
}
/* the mask flattens 3D children, so the tiles get their own unmasked plane */
.layer__plane { -webkit-mask-image: none; mask-image: none; }
.layer__art { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.layer__art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px #E3E5E8; pointer-events: none; }

.layer .layer__app {
  --lift: 22px;
  transform-style: preserve-3d;
  transform: translateZ(var(--lift));
  background: #fff; border: 1px solid #D9DCE1; border-radius: 6px;
  box-shadow: none;
  animation: tilelift 6s var(--ease) infinite;
}
.layer .layer__app::before, .layer .layer__app::after { content: ""; position: absolute; pointer-events: none; }
/* front side (towards the viewer, along the bottom edge) */
.layer .layer__app::before { left: -1px; right: -1px; top: 100%; height: var(--lift); background: linear-gradient(#E3E5EC, #C9CCD6); transform-origin: top; transform: rotateX(-90deg); border-radius: 0 0 4px 4px; }
/* right side */
.layer .layer__app::after { top: -1px; bottom: -1px; left: 100%; width: var(--lift); background: linear-gradient(90deg, #D5D8E0, #B9BDC8); transform-origin: left; transform: rotateY(90deg); border-radius: 0 4px 4px 0; }
.layer .layer__app--hub { --lift: 40px; border-color: var(--accent); animation: none; }
.layer .layer__app--hub::before { background: linear-gradient(#4B47F3, #2E2AF0); }
.layer .layer__app--hub::after { background: linear-gradient(90deg, #3D39F1, #2420C8); }
@keyframes tilelift {
  0%, 100% { transform: translateZ(var(--lift)); border-color: #D9DCE1; }
  6%, 14% { transform: translateZ(calc(var(--lift) + 14px)); border-color: var(--accent); }
}
/* logos stay upright and undistorted on the tilted plane */
.layer__face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%;
  transform: rotateZ(40deg) scaleY(1.79);
}
.layer__face img { max-width: 70%; max-height: 30%; width: auto; height: auto; object-fit: contain; }
.layer__face .picon { width: 34%; height: 34%; margin: 0; }
.layer__lbl { font-size: 8px; }
/* soft floor shadow under the whole layer */
.layer::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 6%; height: 18%; background: radial-gradient(closest-side, rgba(46,42,240,.16), transparent); filter: blur(10px); z-index: -1; }
.layer__tag { transform: none; bottom: auto; top: 100%; left: 0; border-radius: 0 0 8px 8px; }
@media (max-width: 900px) { .layer { max-width: 520px; margin-bottom: 8px; } }
@media (max-width: 480px) { .layer__plane { width: 88%; } .layer .layer__app { --lift: 14px; } .layer .layer__app--hub { --lift: 24px; } }
.layer .layer__app:nth-of-type(3) { animation-delay: .7s; } .layer .layer__app:nth-of-type(4) { animation-delay: 1.4s; }
.layer .layer__app:nth-of-type(5) { animation-delay: 2.1s; } .layer .layer__app:nth-of-type(7) { animation-delay: 3.5s; }
.layer .layer__app:nth-of-type(8) { animation-delay: 4.2s; } .layer .layer__app:nth-of-type(9) { animation-delay: 4.9s; }
.layer .layer__app:nth-of-type(10) { animation-delay: 5.6s; } .layer .layer__app:nth-of-type(2) { animation-delay: 0s; }
.layer { aspect-ratio: 1 / .74; max-width: 680px; }
.layer__plane { width: 98%; transform: translateY(-4%) rotateX(56deg) rotateZ(-40deg); }
.hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .layer { max-width: 560px; justify-self: center; } }
.layer__face img { max-width: 78%; max-height: 36%; }
.layer__face .picon { width: 38%; height: 38%; }
@media (max-width: 900px) { .layer__plane { width: 74%; transform: rotateX(56deg) rotateZ(-40deg); } .layer { aspect-ratio: 1 / .72; } }
@media (max-width: 900px) { .layer__plane { width: 80%; } }

/* ---------- hero v3: frosted slab, flows inside ---------- */
.layer { --slab: 22px; }
.layer__base { position: absolute; inset: 0; transform: translateZ(0); }
.layer__base svg { width: 100%; height: 100%; display: block; }
.layer__slab {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(var(--slab));
  background: rgba(247,248,250,.74);
  border: 1px solid rgba(46,42,240,.35);
  box-shadow: inset 0 0 60px rgba(46,42,240,.08);
}
.layer__slab::before, .layer__slab::after { content: ""; position: absolute; pointer-events: none; }
.layer__slab::before { left: -1px; right: -1px; top: 100%; height: var(--slab); transform-origin: top; transform: rotateX(-90deg); background: linear-gradient(#4B47F3, #2E2AF0 60%, #2420C8); }
.layer__slab::after { top: -1px; bottom: -1px; left: 100%; width: var(--slab); transform-origin: left; transform: rotateY(90deg); background: linear-gradient(90deg, #3632E8, #1F1BB8); }
.layer__slab .layer__art { -webkit-mask-image: none; mask-image: none; }
.layer__slab .layer__art::after { display: none; }
.layer .layer__app { transform: translateZ(calc(var(--slab) + var(--lift))); box-shadow: 0 0 0 1px rgba(46,42,240,.0); }
@keyframes tilelift {
  0%, 100% { transform: translateZ(calc(var(--slab) + var(--lift))); border-color: #D9DCE1; }
  6%, 14% { transform: translateZ(calc(var(--slab) + var(--lift) + 14px)); border-color: var(--accent); }
}
.layer .layer__app--hub { transform: translateZ(calc(var(--slab) + var(--lift))); }
.layer__tag { top: auto; bottom: 0; left: 0; transform: translateZ(var(--slab)) translateY(100%); margin: 0; border-radius: 0 0 8px 8px; font-size: 10px; padding: 7px 12px; }
.layer::before { bottom: 2%; height: 22%; background: radial-gradient(closest-side, rgba(46,42,240,.22), transparent); }
@media (max-width: 480px) { .layer { --slab: 14px; } .layer__tag { font-size: 8px; padding: 5px 8px; } }
.layer__plane { width: 74%; transform: translateY(-3%) rotateX(56deg) rotateZ(-40deg); }
.layer__slab { background: rgba(247,248,250,.56); }
@media (max-width: 900px) { .layer__plane { width: 66%; transform: rotateX(56deg) rotateZ(-40deg); } }

/* ---------- hero v4: isometric base layer with apps on top ---------- */
.iso { width: 100%; max-width: 680px; justify-self: end; }
.iso svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 900px) { .iso { justify-self: center; max-width: 560px; } }

/* ---------- hero v5: one confidential account, connected ---------- */
.acct { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / .9; justify-self: end; }
.acct__art, .acct__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.acct__card {
  position: absolute; left: 50%; top: 51%; width: 54%; aspect-ratio: 1.58 / 1;
  transform: translate(-50%, -50%) perspective(1400px) rotateX(10deg) rotateY(-16deg) rotateZ(2deg);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, #3F3BF3 0%, #2E2AF0 45%, #1E1AAE 100%);
  border-radius: 18px; padding: 7% 8%;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
  box-shadow: 0 40px 70px -30px rgba(46,42,240,.7), 0 18px 30px -18px rgba(15,17,21,.35), inset 0 1px 0 rgba(255,255,255,.25);
  animation: acctfloat 7s ease-in-out infinite;
}
@keyframes acctfloat {
  0%, 100% { transform: translate(-50%, -50%) perspective(1400px) rotateX(10deg) rotateY(-16deg) rotateZ(2deg); }
  50% { transform: translate(-50%, calc(-50% - 8px)) perspective(1400px) rotateX(8deg) rotateY(-12deg) rotateZ(1deg); }
}
.acct__row { display: flex; align-items: center; justify-content: space-between; }
.acct__row img { width: 34%; height: auto; }
.acct__tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 4px 8px; border-radius: 6px; }
.acct__label { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #C9C8FB; margin-top: 6%; }
.acct__mask { display: flex; align-items: center; gap: 5px; }
.acct__mask i { width: 9%; aspect-ratio: 1 / 1.35; border-radius: 3px; background: rgba(255,255,255,.9); animation: maskpulse 2.4s ease-in-out infinite; }
.acct__mask i:nth-child(2) { animation-delay: .15s; } .acct__mask i:nth-child(3) { animation-delay: .3s; } .acct__mask i:nth-child(4) { animation-delay: .45s; }
.acct__mask i:nth-child(5) { animation-delay: .6s; } .acct__mask i:nth-child(6) { animation-delay: .75s; } .acct__mask i:nth-child(7) { animation-delay: .9s; } .acct__mask i:nth-child(8) { animation-delay: 1.05s; }
@keyframes maskpulse { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }
.acct__mask span { margin-left: 6px; font-weight: 600; font-size: 15px; color: #C9C8FB; }
.acct__row--foot { font-size: 12px; }
.acct__check { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.acct__check svg { width: 16px; height: 16px; padding: 2px; border-radius: 4px; background: #fff; color: var(--accent); }
.acct__dots { display: inline-flex; gap: 4px; }
.acct__dots i { width: 7px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.35); }
.acct__dots i:first-child { background: #fff; }
.acct__chip {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  box-shadow: 0 12px 24px -16px rgba(15,17,21,.35);
  animation: chipflash 6s var(--ease) infinite;
}
.acct__chip img { height: 20px; width: auto; }
.acct__chip .picon { width: 20px; height: 20px; margin: 0; }
.acct__chip:nth-of-type(2) { animation-delay: 0s; } .acct__chip:nth-of-type(3) { animation-delay: 1s; } .acct__chip:nth-of-type(4) { animation-delay: 2s; }
.acct__chip:nth-of-type(5) { animation-delay: 3s; } .acct__chip:nth-of-type(6) { animation-delay: 4s; } .acct__chip:nth-of-type(7) { animation-delay: 5s; }
@keyframes chipflash { 0%, 100% { border-color: var(--line); } 8%, 16% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46,42,240,.10), 0 12px 24px -16px rgba(15,17,21,.35); } }

.acct .acp { animation: acp 3s linear infinite; }
@keyframes acp { from { stroke-dashoffset: 106; } to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .acct { justify-self: center; max-width: 520px; } }
@media (max-width: 480px) { .acct__chip { height: 34px; padding: 0 10px; font-size: 12px; gap: 6px; } .acct__chip img { height: 15px; } .acct__chip .picon { width: 15px; height: 15px; } .acct__card { width: 60%; border-radius: 12px; } .acct__tag, .acct__label, .acct__check { font-size: 8px; } .acct__mask span { font-size: 12px; } }
.acct__chip { width: max-content; }
.acct__chip img { max-width: none; }
@media (max-width: 560px) { .acct { width: calc(100% - 48px); margin: 8px auto 0; } }
@media (max-width: 480px) { .acct__chip img[alt="Morpho"] { width: 66px !important; height: 16px !important; } }
.pipe .knob { animation: knob 3.6s var(--ease) infinite; }
@keyframes knob { 0%, 40%, 100% { transform: translateX(0); } 50%, 90% { transform: translateX(28px); } }

/* ---------- mobile v2 ---------- */
.pipe-v { display: none; }
@media (max-width: 760px) {
  /* desktop pipeline off, vertical pipeline on */
  .pipe-scroll, .pipe__hint { display: none !important; }
  .pipe-v { display: flex; flex-direction: column; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
  .pv__st { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .pv__lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--card); padding: 0 6px; }
  .pv__lbl--hl { color: var(--accent); }
  .pv__glyphs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; width: 100%; max-width: 280px; }
  .pv__glyphs i { font-style: normal; font-family: var(--mono); font-size: 16px; text-align: center; color: #A9A6F9; animation: twinkle 3s ease-in-out infinite; }
  .pv__glyphs i:nth-child(3n) { color: #B9BDC4; animation-delay: -1.2s; } .pv__glyphs i:nth-child(2n) { animation-delay: -2.1s; animation-duration: 4s; }
  .pv__wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; width: 100%; max-width: 280px; }
  .pv__wall i { aspect-ratio: 1 / 1.2; background: var(--accent); }
  .pv__wall i:nth-child(3n+1) { background: #A9A6F9; }
  .pv__gate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 280px; background: var(--accent); padding: 12px; }
  .pv__gate i { height: 18px; background: #fff; animation: slot 2.4s steps(1) infinite; }
  .pv__gate i:nth-child(2) { animation-delay: .6s; } .pv__gate i:nth-child(3) { animation-delay: 1.2s; } .pv__gate i:nth-child(4) { animation-delay: 1.8s; }
  .pv__ctrl { display: flex; justify-content: center; gap: 14px; width: 100%; max-width: 280px; background: #fff; border: 3px solid var(--accent); padding: 12px; }
  .pv__ctrl b { position: relative; width: 52px; height: 26px; border-radius: 13px; background: var(--accent-tint); border: 2px solid var(--accent); }
  .pv__ctrl b::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); animation: knobv 3.6s var(--ease) infinite; }
  .pv__ctrl b:nth-child(2)::after { animation-delay: .8s; } .pv__ctrl b:nth-child(3)::after { animation-delay: 1.6s; }
  @keyframes knobv { 0%, 40%, 100% { transform: translateX(0); } 50%, 90% { transform: translateX(26px); } }
  .pv__lane { position: relative; align-self: center; width: 40px; height: 46px; margin: 6px 0; background: #EEEEFE; }
  .pv__lane span { position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px; background: var(--accent); animation: lanedot 1.8s linear infinite; }
  .pv__lane span:nth-child(2) { animation-delay: -.9s; }
  @keyframes lanedot { from { transform: translateY(-4px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(40px); opacity: 0; } }
  .pv__lane--split { width: 70%; height: 30px; background: transparent; border: 3px solid var(--accent); border-bottom: 0; margin-top: 30px; }
  .pv__lane--split::before { content: ""; position: absolute; left: 50%; top: -33px; width: 3px; height: 30px; background: var(--accent); margin-left: -1.5px; }
  .pv__lane--split span { display: none; }
  .pv__dest { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .pv__dest div { display: flex; align-items: center; justify-content: center; height: 52px; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; animation: destpulse 4s var(--ease) infinite; }
  .pv__dest div:nth-child(2) { animation-delay: 1s; } .pv__dest div:nth-child(3) { animation-delay: 2s; } .pv__dest div:nth-child(4) { animation-delay: 3s; }
  .pv__dest img { max-height: 22px; max-width: 70%; width: auto; }

  /* backed by: label on its own line, logos in a tidy grid */
  .backers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; align-items: center; justify-items: center; }
  .backers .mono { grid-column: 1 / -1; justify-self: start; }
  .backers img { height: 20px; max-width: 100%; }

  /* code wraps instead of scrolling sideways */
  .code { white-space: pre-wrap; word-break: break-word; font-size: 12px; padding: 20px; }
}
@media (max-width: 760px) {
  .backers { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
  .backers .mono { flex: 0 0 100%; text-align: left; }
  .quorum__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .quorum__big { font-size: 34px; }
  .quorum__panel { padding: 22px 20px; }
}
@media (max-width: 400px) {
  .acct__card { width: 64%; padding: 6% 7%; }
  .acct__check, .acct__tag, .acct__label { white-space: nowrap; font-size: 7px; letter-spacing: .1em; }
  .acct__check svg { width: 12px; height: 12px; }
  .acct__mask { gap: 3px; }
}

/* nav: "New" badge for freshly launched pages */
.nav__links a.nav__new { display: inline-flex; align-items: center; color: var(--ink); }
.badge-new { display: inline-flex; align-items: center; vertical-align: 2px; margin-left: 8px; height: 18px; padding: 0 6px; border-radius: 5px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }

/* phone: contact button and email stack instead of squeezing into one row */
@media (max-width: 560px) {
  .cta .hero__ctas { flex-direction: column; align-items: stretch; gap: 16px; }
  .cta a.mail { align-self: flex-start !important; }
}

/* ---------- how it works, phone: tidy the vertical pipeline ---------- */
@media (max-width: 760px) {
  .pipe-v { padding: 26px 20px 22px; }
  .pv__st { gap: 12px; }
  /* links between stages: a slim dotted rail with one travelling dot, clear of the labels */
  .pv__lane { width: 2px; height: 36px; margin: 12px 0; background: repeating-linear-gradient(to bottom, var(--accent-soft) 0 3px, transparent 3px 7px); }
  .pv__lane span { width: 8px; height: 8px; margin-left: -4px; border-radius: 2px; }
  .pv__lane span:nth-child(2) { display: none; }
  /* the split lands exactly on the centres of the two tile columns */
  .pv__lane--split { width: calc(50% + 5px); height: 20px; margin: 30px 0 0; background: none; border: 2px solid var(--accent); border-bottom: 0; }
  .pv__lane--split::before { top: -30px; height: 28px; width: 2px; margin-left: -1px; }
  .pv__dest { margin-top: 0; }
}
