/* BrickBack V4 — premium art direction and mobile-first refinement */
:root {
  --ink: #0b0d0a;
  --ink-soft: #151814;
  --lime: #a6ff18;
  --lime-deep: #77c900;
  --cream: #f5f2e8;
  --paper: #fffdf7;
  --muted: #9ba397;
  --line: rgba(255,255,255,.12);
  --dark-line: rgba(11,13,10,.13);
  --max: 1320px;
  --radius: 24px;
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--body);
}

html { background: var(--ink); }
body {
  color: #f3f5f0;
  background:
    radial-gradient(circle at 84% 2%, rgba(166,255,24,.1), transparent 26rem),
    linear-gradient(180deg, #0b0d0a 0, #11140f 34rem, #0b0d0a 72rem);
  font-family: var(--body);
  font-size: 16px;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}
body::before {
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .7;
}

h1, h2, h3, h4, h5, .button, .header-cta, .desktop-nav,
.device-button, .workflow-tab, .app-nav, .mode-switch button {
  font-family: var(--display);
}
h1, h2, h3 { letter-spacing: -.065em; }
h4, h5 { letter-spacing: -.035em; }

.site-header {
  top: 14px;
  width: min(calc(100% - 32px), var(--max));
  height: 72px;
  grid-template-columns: 210px 1fr auto;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(15,18,14,.77);
  box-shadow: 0 16px 50px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(140%);
}
.brand { width: 172px; }
.brand img { height: 44px; }
.desktop-nav { gap: 8px; }
.desktop-nav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: #aeb5aa;
  font-size: .82rem;
  font-weight: 600;
}
.desktop-nav a:hover,
.desktop-nav a:focus-visible { color: white; background: rgba(255,255,255,.07); }
.header-cta {
  min-height: 54px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: 16px;
  color: #172000;
  background: var(--lime);
  font-size: .82rem;
  box-shadow: 0 10px 34px rgba(166,255,24,.14);
}
.header-cta span { color: white; background: #11150e; }

main { width: min(calc(100% - 32px), var(--max)); }
.hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, .98fr);
  grid-template-rows: auto auto;
  gap: 20px 30px;
  padding: 92px 0 34px;
}
.hero-copy { padding: 54px 0 46px; }
.eyebrow,
.kicker {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
}
.eyebrow { color: #b8c0b4; }
.eyebrow span { width: 34px; background: var(--lime); }
.hero h1 {
  max-width: 760px;
  margin: 28px 0 30px;
  font-size: clamp(4.4rem, 7vw, 7.4rem);
  font-weight: 600;
  line-height: .88;
  text-wrap: balance;
}
.hero h1 em { position: relative; color: var(--lime); }
.hero h1 em::after {
  content: "";
  position: absolute;
  right: .05em;
  bottom: -.08em;
  width: .55em;
  height: 5px;
  border-radius: 99px;
  background: var(--lime);
  opacity: .38;
}
.hero-lede {
  max-width: 600px;
  color: #aab2a7;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  font-weight: 500;
  line-height: 1.72;
}
.hero-actions { margin-top: 32px; gap: 10px; }
.button {
  min-height: 56px;
  gap: 32px;
  border-radius: 16px;
  padding-inline: 22px;
  font-size: .88rem;
  font-weight: 650;
}
.button-primary { box-shadow: 0 16px 50px rgba(166,255,24,.15); }
.button-ghost { background: rgba(255,255,255,.035); }
.hero-types {
  margin-top: 34px;
  gap: 12px;
  color: #7e877a;
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 600;
}
.hero-stage {
  min-height: 650px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 52% 42%, rgba(166,255,24,.22), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.008));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 40px 100px rgba(0,0,0,.28);
}
.hero-stage::after { inset: 8%; border-radius: 38% 62% 44% 56%; opacity: .75; }
.hero-art { width: min(98%, 690px); }
.stage-ring { opacity: .68; }
.floating-card {
  border-radius: 16px;
  background: rgba(15,18,14,.82);
  box-shadow: 0 20px 65px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.07);
}
.progress-card { left: 4%; bottom: 7%; }
.matched-card { right: 3%; top: 17%; }
.hero-strip {
  min-height: 76px;
  padding-inline: 4px;
  border-color: rgba(255,255,255,.09);
}

/* Locked character story stage */
.story-lab {
  display: grid;
  grid-template-columns: minmax(300px,.76fr) minmax(0,1.24fr);
  align-items: center;
  gap: clamp(42px,5vw,72px);
  min-height: 700px;
}
.story-copy { position: relative; z-index: 2; }
.story-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem,5vw,5.35rem);
  font-weight: 600;
  line-height: .92;
}
.story-copy > p {
  max-width: 520px;
  color: #9fa79c;
  font-size: 1rem;
  line-height: 1.75;
}
.story-progress {
  height: 2px;
  margin: 36px 0 18px;
  overflow: hidden;
  background: rgba(255,255,255,.1);
}
.story-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: var(--lime);
  animation: storyProgress 6s linear forwards;
}
.story-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.story-tabs button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  padding: 0 6px;
  color: #737b70;
  background: transparent;
  font-family: var(--display);
  font-size: .94rem;
  text-align: left;
  cursor: pointer;
  transition: color .2s, padding .2s;
}
.story-tabs button::after { content: "↗"; opacity: 0; transform: translate(-5px,5px); transition: opacity .2s, transform .2s; }
.story-tabs button b { color: #4f574c; font-size: .68rem; font-weight: 600; }
.story-tabs button.active { padding-left: 14px; color: white; }
.story-tabs button.active b { color: var(--lime); }
.story-tabs button.active::after { opacity: 1; transform: none; }
.story-stage {
  min-height: 610px;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  position: relative;
  isolation: isolate;
}
.story-stage::before {
  content: "";
  width: 76%;
  aspect-ratio: 1;
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166,255,24,.2), rgba(166,255,24,.045) 45%, transparent 70%);
  filter: blur(4px);
}
.story-media {
  min-height: 440px;
  display: grid;
  place-items: center;
  position: relative;
}
.story-media > img {
  width: min(88%,720px);
  max-height: 450px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 34px 44px rgba(0,0,0,.4));
  transition: opacity .22s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.story-stage.changing .story-media > img { opacity: 0; transform: translateY(14px) scale(.975); }
.story-orbit {
  width: min(88%,670px);
  aspect-ratio: 1;
  position: absolute;
  border: 1px solid rgba(166,255,24,.14);
  border-radius: 50%;
  animation: spin 38s linear infinite;
}
.story-orbit::before,
.story-orbit::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255,255,255,.09);
  border-radius: inherit;
}
.story-orbit::after { inset: 29%; border-style: solid; }
.story-orbit i {
  width: 10px;
  height: 10px;
  position: absolute;
  border-radius: 3px;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(166,255,24,.6);
}
.story-orbit i:nth-child(1) { left: 12%; top: 21%; }
.story-orbit i:nth-child(2) { right: 7%; top: 48%; }
.story-orbit i:nth-child(3) { left: 42%; bottom: -5px; }
.story-caption {
  width: 100%;
  min-height: 140px;
  display: grid;
  grid-template-columns: 105px minmax(0,1fr);
  align-content: center;
  column-gap: 20px;
  position: relative;
  z-index: 3;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.11);
  background: transparent;
  transition: opacity .2s, transform .2s;
}
.story-stage.changing .story-caption { opacity: .4; transform: translateY(5px); }
.story-caption > span { grid-row: 1 / 3; padding-top: 5px; color: var(--lime); font-family: var(--display); font-size: .68rem; font-weight: 700; letter-spacing: .14em; }
.story-caption h3 { grid-column: 2; margin: 0 0 7px; font-size: clamp(1.65rem,2.2vw,2.2rem); font-weight: 600; }
.story-caption p { grid-column: 2; max-width: 610px; margin: 0; color: #a6aea2; font-size: .86rem; line-height: 1.6; }
.hero-strip p { font-size: .84rem; }
.strip-metrics span { font-family: var(--display); font-weight: 600; }

.section { padding: 118px 0; }
.section h2,
.lab-heading h2,
.rescue-heading h2 {
  font-weight: 600;
  font-size: clamp(3.6rem, 6.4vw, 6.6rem);
  line-height: .92;
}
.lab-heading,
.section-heading,
.collection-intro,
.rescue-heading {
  gap: 84px;
  margin-bottom: 58px;
}
.lab-copy p,
.section-heading p,
.collection-intro p,
.rescue-heading p,
.vision-copy > p {
  font-size: 1rem;
  line-height: 1.78;
}

.product-lab {
  margin-top: 36px;
  padding-top: 126px;
  padding-bottom: 126px;
  border-radius: 56px 56px 0 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(166,255,24,.11), transparent 34%),
    linear-gradient(180deg, #10130f, #090b08);
}
.product-lab::before { opacity: .25; background-size: 28px 28px; }
.lab-controls { padding: 5px; border-radius: 16px; }
.device-button { min-height: 44px; border-radius: 12px; font-size: .82rem; }
.app-theatre {
  min-height: 820px;
  padding: 38px 34px 30px;
  border-radius: 34px;
  background: rgba(255,255,255,.032);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 45px 120px rgba(0,0,0,.32);
}
.theatre-meta { margin-bottom: 18px; font-family: var(--display); font-size: .7rem; }
.app-device {
  border-width: 6px;
  border-color: #282d26;
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 50px 110px rgba(0,0,0,.55);
}
.app-chrome { font-family: var(--display); }
.app-rail { padding: 16px 10px 12px; background: #171a16; }
.app-nav { min-height: 48px; font-size: .8rem; }
.app-workspace { padding: 30px; }
.workspace-header h3 { font-size: 1.9rem; font-weight: 600; }
.search-trigger { min-height: 44px; font-size: .76rem; }
.app-home-grid { gap: 12px; }
.app-home-grid article,
.build-focus,
.needed-list,
.collection-preview-card,
.project-preview-card,
.trader-lane,
.setup-card { border-radius: 16px; }
.app-hero-card { box-shadow: 0 20px 55px rgba(110,170,0,.13); }
.theatre-caption { padding-top: 22px; font-size: .76rem; }

.motion-ribbon { min-height: 52px; border-block: 1px solid rgba(11,13,10,.15); }
.motion-ribbon span { font-family: var(--display); font-weight: 700; }

.rescue-lab {
  padding-top: 126px;
  padding-bottom: 134px;
  background:
    radial-gradient(circle at 88% 5%, rgba(255,255,255,.25), transparent 24%),
    var(--lime);
}
.rescue-heading .kicker { color: #365207; }
.rescue-heading p { color: #34451e; font-weight: 550; }
.rescue-console {
  border-width: 6px;
  border-radius: 32px;
  box-shadow: 0 48px 120px rgba(44,70,4,.24);
}
.console-topbar { min-height: 82px; background: #181b17; }
.mission-id span,
.mission-score span,
.tray-head span,
.mission-log > span,
.value-lens > span,
.mission-character span,
.value-result span { font-family: var(--display); font-size: .72rem; }
.mode-switch { border-radius: 14px; }
.mode-switch button { min-height: 42px; border-radius: 10px; font-size: .74rem; }
.console-body { grid-template-columns: 1.02fr 1.08fr 300px; }
.build-blueprint,
.piece-tray { padding: 28px; }
.blueprint-status,
.loose-piece,
.candidate-panel { border-radius: 14px; }
.loose-piece { min-height: 134px; }
.loose-piece span { font-size: .76rem; }
.loose-piece b { font-size: .68rem; }
.move-trader-button { border-radius: 15px; }

.workflow { padding-top: 138px; }
.workflow-shell {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.workflow-tabs {
  width: fit-content;
  gap: 6px;
  margin: 0 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.workflow-tab {
  min-width: 150px;
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  font-size: .9rem;
}
.workflow-panel {
  min-height: 590px;
  grid-template-columns: .76fr 1.24fr;
  padding: 68px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0, rgba(166,255,24,.08), transparent 28%),
    #151814;
}
.panel-copy h3 { font-weight: 600; }
.panel-points span { font-size: .9rem; }
.product-window { border-radius: 20px; transform: rotate(-.55deg); }

.collection {
  width: 100%;
  left: auto;
  transform: none;
  overflow: hidden;
  border-radius: 42px;
  padding: 96px clamp(28px,5vw,68px);
  background:
    radial-gradient(circle at 8% 0, rgba(166,255,24,.13), transparent 22%),
    var(--cream);
}
.collection-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.feature { border-radius: 22px; padding: 30px; box-shadow: 0 16px 46px rgba(26,30,22,.04); }
.feature-large { min-height: 530px; }
.portfolio-number strong { font-family: var(--display); font-weight: 600; }
.feature-projects { min-height: 258px; }
.feature-mobile { min-height: 258px; }

.vision { min-height: 680px; gap: 72px; }
.vision-visual {
  min-height: 540px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 45%, rgba(166,255,24,.22), transparent 43%),
    linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.006));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.scan-label { min-height: 38px; font-size: .72rem; }
.truth-stack strong { font-size: .96rem; }
.truth-stack small { font-size: .78rem; line-height: 1.5; }

.trader {
  width: 100%;
  left: auto;
  transform: none;
  overflow: hidden;
  padding: 96px clamp(28px,5vw,68px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 94% 5%, rgba(255,255,255,.22), transparent 25%),
    var(--lime);
}
.trade-flow {
  grid-template-columns: minmax(0,.9fr) 72px minmax(0,1.1fr);
  gap: 16px;
}
.trade-source,
.trade-editor { border-radius: 22px; box-shadow: 0 26px 70px rgba(48,74,7,.14); }
.trade-source { min-height: 180px; padding: 21px; }
.trade-thumb { width: 70px; }
.trade-thumb img { width: 100%; height: 100%; object-fit: contain; }
.trade-editor { padding: 24px; }
.trade-editor button { min-height: 50px; border-radius: 14px; }
.trader-note { max-width: 920px; }

.principles { gap: 110px; align-items: start; }
.principles-copy { position: sticky; top: 120px; }
.principle-list article { padding: 30px 0; }
.principle-list h3 { font-weight: 600; font-size: 1.45rem; }
.principle-list p { font-size: .92rem; line-height: 1.68; }

.final-cta {
  min-height: 680px;
  border-radius: 42px;
  padding: 72px;
  background:
    radial-gradient(circle at 82% 40%, rgba(166,255,24,.3), transparent 32%),
    var(--cream);
}
.final-cta h2 { font-weight: 600; font-size: clamp(4.6rem, 8vw, 8.2rem); }
.final-cta p { font-size: 1rem; }
.final-cta .kicker { color: #4d7900; }
.button-dark { border-radius: 16px; }

footer { width: min(calc(100% - 32px), var(--max)); padding: 40px 0 52px; }
.footer-brand b { font-family: var(--display); }

.toast {
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 32px));
  border-radius: 15px;
  font-size: .82rem;
  box-shadow: 0 24px 70px rgba(0,0,0,.46);
}
.trader-modal-card { border-radius: 24px; }
.modal-title h3 { font-weight: 600; }
.listing-grid label { font-size: .76rem; }
.listing-grid input,
.listing-grid select,
.listing-grid textarea { min-height: 46px; font-size: .84rem; }

@media (hover:hover) {
  .feature,
  .trade-source,
  .trade-editor,
  .principle-list article,
  .loose-piece { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .feature:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(25,30,20,.1); }
  .trade-source:hover,
  .trade-editor:hover { transform: translateY(-4px); box-shadow: 0 34px 80px rgba(48,74,7,.2); }
  .principle-list article:hover { transform: translateX(8px); }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 180px 1fr auto; }
  .desktop-nav a { padding-inline: 9px; }
  .hero { grid-template-columns: .9fr 1.1fr; }
  .hero-stage { min-height: 590px; }
  .workflow-panel { padding: 48px; gap: 44px; }
  .console-body { grid-template-columns: 1fr 1fr; }
  .mission-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: center;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 54px 1fr 54px;
    height: 66px;
    padding: 6px;
  }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; width: 152px; }
  .menu-button {
    grid-column: 1;
    grid-row: 1;
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .mobile-nav {
    top: 76px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(13,15,12,.97);
    box-shadow: 0 30px 90px rgba(0,0,0,.5);
  }
  .mobile-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-family: var(--display);
    font-size: 1rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }
  .hero-copy { padding: 34px 0 6px; text-align: left; }
  .eyebrow,
  .hero-actions,
  .hero-types { justify-content: flex-start; }
  .hero-lede { margin-inline: 0; }
  .hero h1 { max-width: 700px; }
  .hero-stage { min-height: 560px; }
  .hero-strip { margin-top: 12px; }
  .story-lab { grid-template-columns: 1fr; gap: 28px; min-height: auto; }
  .story-copy > p { max-width: 680px; }
  .story-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .story-tabs::-webkit-scrollbar { display: none; }
  .story-tabs button { flex: 0 0 112px; min-height: 52px; grid-template-columns: 28px 1fr; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; }
  .story-tabs button::after { display: none; }
  .story-tabs button.active { padding-left: 10px; color: var(--ink); border-color: var(--lime); background: var(--lime); }
  .story-tabs button.active b { color: rgba(11,13,10,.6); }
  .story-stage { min-height: 660px; }
  .section { padding: 94px 0; }
  .section h2,
  .lab-heading h2,
  .rescue-heading h2 { font-size: clamp(3.2rem, 10vw, 5.2rem); }
  .lab-heading,
  .section-heading,
  .collection-intro,
  .rescue-heading { grid-template-columns: 1fr; gap: 24px; }
  .lab-heading > *,
  .section-heading > *,
  .collection-intro > *,
  .rescue-heading > * { grid-column: 1; }
  .rescue-heading .kicker { margin-bottom: 0; }
  .product-lab,
  .collection,
  .trader { border-radius: 38px; }
  .app-theatre { padding: 26px 18px; }
  .workflow-tabs { width: 100%; grid-template-columns: repeat(4, 1fr); }
  .workflow-tab { min-width: 0; }
  .workflow-panel { grid-template-columns: 1fr; padding: 42px; }
  .collection-grid { grid-template-columns: 1fr; }
  .vision { grid-template-columns: 1fr; gap: 38px; min-height: auto; }
  .vision-copy { order: 1; }
  .vision-visual { order: 2; min-height: 560px; }
  .trade-flow { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .trade-arrow { min-height: 58px; transform: none; }
  .trade-arrow b { transform: rotate(90deg); }
  .principles { grid-template-columns: 1fr; gap: 34px; }
  .principles-copy { position: static; }
  .final-cta { min-height: 820px; padding: 52px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .scroll-progress { height: 2px; }
  .page-glow { display: none; }
  .site-header,
  main,
  footer { width: min(calc(100% - 20px), var(--max)); }
  .site-header { top: 10px; }
  .hero { padding: 50px 0 24px; }
  .hero-copy { padding-top: 32px; }
  .eyebrow { max-width: 330px; font-size: .66rem; line-height: 1.45; }
  .hero h1 {
    margin: 23px 0 23px;
    font-size: clamp(3.25rem, 16vw, 4.6rem);
    line-height: .9;
  }
  .hero-lede { font-size: 1rem; line-height: 1.68; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; min-height: 56px; }
  .hero-types { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
  .hero-types i { display: none; }
  .hero-types span { min-height: 36px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; }
  .hero-stage {
    min-height: 390px;
    margin-top: 14px;
    border-radius: 26px;
  }
  .hero-art { width: 108%; max-width: none; }
  .ring-one { width: 92%; }
  .ring-two { width: 70%; }
  .matched-card { top: 8%; right: 2%; transform: scale(.86); transform-origin: top right; }
  .progress-card { left: 2%; bottom: 5%; transform: scale(.86); transform-origin: bottom left; }
  .hero-strip {
    display: block;
    padding: 18px 0;
  }
  .story-lab { padding-top: 70px; padding-bottom: 72px; }
  .story-copy h2 { margin-bottom: 20px; font-size: clamp(2.85rem,14vw,4rem); }
  .story-copy > p { font-size: .96rem; line-height: 1.68; }
  .story-progress { margin: 26px 0 14px; }
  .story-tabs button { flex-basis: 106px; font-size: .82rem; }
  .story-stage { min-height: 500px; }
  .story-stage > img { width: 102%; max-width: none; max-height: 405px; }
  .story-orbit { width: 100%; }
  .story-caption { width: 96%; right: 0; bottom: 0; padding: 17px 15px; }
  .story-caption h3 { font-size: 1.55rem; }
  .story-caption p { font-size: .78rem; }
  .hero-strip p { margin-bottom: 14px; }
  .strip-metrics { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .strip-metrics span { min-height: 42px; display: flex; align-items: center; padding: 0 11px; border-radius: 10px; background: rgba(255,255,255,.04); }

  .section { padding: 78px 0; }
  .section h2,
  .lab-heading h2,
  .rescue-heading h2 { font-size: clamp(2.85rem, 14vw, 4rem); line-height: .94; }
  .kicker { margin-bottom: 14px; font-size: .66rem; }
  .lab-heading,
  .section-heading,
  .collection-intro,
  .rescue-heading { gap: 18px; margin-bottom: 34px; }
  .lab-copy p,
  .section-heading p,
  .collection-intro p,
  .rescue-heading p,
  .vision-copy > p { font-size: .96rem; line-height: 1.68; }

  .product-lab,
  .rescue-lab,
  .collection,
  .trader { padding-inline: 10px; }
  .product-lab { margin-top: 18px; padding-top: 78px; padding-bottom: 80px; border-radius: 30px 30px 0 0; }
  .lab-heading,
  .rescue-heading,
  .collection-intro,
  .trader-heading { padding-inline: 4px; }
  .lab-controls { display: none; }
  .app-theatre { min-height: auto; padding: 15px 4px 20px; border-radius: 24px; }
  .theatre-meta { padding-inline: 10px; margin-bottom: 12px; }
  .theatre-meta b { display: none; }
  .app-device,
  .app-device.is-mobile,
  .app-device:not(.is-mobile) {
    width: 100%;
    min-height: 690px;
    border-width: 4px;
    border-radius: 22px;
    transform: none;
  }
  .app-chrome { height: 38px; grid-template-columns: 1fr auto; padding-inline: 12px; }
  .chrome-dots,
  .chrome-signal { display: none; }
  .app-shell,
  .app-device:not(.is-mobile) .app-shell { display: block; }
  .app-rail,
  .app-device:not(.is-mobile) .app-rail { display: none; }
  .app-workspace,
  .app-device.is-mobile .app-workspace,
  .app-device:not(.is-mobile) .app-workspace { min-height: 648px; padding: 18px 13px 84px; }
  .workspace-header { margin-bottom: 16px; }
  .workspace-header h3 { font-size: 1.48rem; }
  .workspace-eyebrow { font-size: .64rem; }
  .search-trigger { width: 42px; padding: 0; justify-content: center; font-size: 0; }
  .search-trigger span { font-size: 1.1rem; }
  .workspace-actions .avatar-stack { display: none; }
  .app-home-grid,
  .app-device.is-mobile .app-home-grid,
  .app-device:not(.is-mobile) .app-home-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 10px; }
  .app-home-grid article { min-height: 0; }
  .app-hero-card,
  .app-device.is-mobile .app-hero-card { min-height: 200px !important; grid-template-columns: 1fr 92px; padding: 17px; }
  .app-hero-card h4 { font-size: 1.2rem; }
  .app-build-orbit,
  .app-device.is-mobile .app-build-orbit { width: 86px; }
  .app-value-card,
  .app-activity-card { display: none; }
  .app-scan-card { min-height: 138px !important; padding: 16px; }
  .mobile-app-nav,
  .app-device.is-mobile .mobile-app-nav,
  .app-device:not(.is-mobile) .mobile-app-nav {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 6;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px;
    border-radius: 15px;
    background: rgba(25,29,24,.96);
    scrollbar-width: none;
  }
  .mobile-app-nav::-webkit-scrollbar { display: none; }
  .mobile-app-nav button {
    flex: 1 0 62px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: .7rem;
  }
  .view-header { display: block; }
  .view-header p { margin-top: 7px; }
  .view-chip-row { margin-top: 12px; overflow-x: auto; }
  .build-preview,
  .setup-preview { grid-template-columns: 1fr; }
  .build-focus { min-height: 250px; }
  .needed-list { display: none; }
  .collection-preview-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .collection-preview-card { padding: 11px; }
  .collection-preview-card:nth-child(n+5) { display: none; }
  .project-preview-card { grid-template-columns: 48px 1fr; }
  .project-progress { grid-column: 2; }
  .trader-preview { grid-template-columns: 1fr; }
  .trader-lane { min-height: auto; }
  .trader-lane:nth-child(n+2) { display: none; }
  .setup-card.large { grid-row: auto; }
  .scan-overlay { inset: 38px 0 0; grid-template-columns: 1fr; gap: 14px; padding: 50px 14px 14px; overflow-y: auto; }
  .scanner-frame { width: 160px; }
  .candidate-panel { padding: 16px; }
  .candidate-actions { grid-template-columns: 1fr; }
  .theatre-caption { display: block; padding: 18px 10px 0; }
  .theatre-caption p { margin-top: 7px; text-align: left; }

  .rescue-lab { padding-top: 78px; padding-bottom: 82px; }
  .rescue-console { border-width: 4px; border-radius: 23px; }
  .console-topbar { grid-template-columns: 1fr auto; gap: 10px; padding: 12px; }
  .mission-id { grid-template-columns: 8px 1fr; }
  .mission-id b { grid-column: 2; font-size: .78rem; }
  .mission-score { min-width: 72px; }
  .mission-score b { font-size: 1.4rem; }
  .mode-switch { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .mode-switch button { flex: 1; padding-inline: 7px; }
  .console-body { grid-template-columns: 1fr; }
  .build-blueprint,
  .piece-tray,
  .mission-rail { padding: 15px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .ship-map { min-height: 300px; }
  .target-slot { width: 38px; height: 38px; }
  .loose-pieces { grid-template-columns: 1fr 1fr; gap: 7px; margin: 20px 0; }
  .loose-piece { min-height: 116px; padding: 10px; }
  .loose-piece span { font-size: .7rem; }
  .tray-actions { grid-template-columns: 1fr; }
  .mission-rail { grid-column: 1; grid-template-columns: 1fr; gap: 14px; }
  .mission-character { grid-template-columns: 68px 1fr; }
  .mission-log { display: none; }
  .move-trader-button { min-height: 58px; }
  .rescue-complete { inset: 122px 0 0; grid-template-columns: 1fr; gap: 8px; padding: 22px 14px; text-align: center; overflow-y: auto; }
  .rescue-complete > img { width: min(62%, 250px); margin-inline: auto; }
  .rescue-complete h3 { font-size: 2.7rem; }
  .complete-actions { display: grid; }

  .workflow { padding-top: 86px; }
  .workflow-tabs {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding: 5px;
    border-radius: 15px;
    scrollbar-width: none;
  }
  .workflow-tabs::-webkit-scrollbar { display: none; }
  .workflow-tab { flex: 0 0 112px; min-height: 50px; padding-inline: 12px; }
  .workflow-panel { min-height: 0; padding: 28px 15px; gap: 28px; border-radius: 22px; }
  .panel-copy h3 { margin-block: 16px; font-size: 2.15rem; }
  .panel-copy > p { font-size: .94rem; line-height: 1.65; }
  .panel-points span { font-size: .8rem; }
  .product-window { border-radius: 16px; transform: none; }
  .window-content { min-height: 390px; padding: 17px 12px; }
  .demo-progress { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; }
  .progress-ring { width: 66px; }
  .piece-row { grid-template-columns: 38px 1fr auto; gap: 8px; padding: 9px; }
  .piece-shape { transform: scale(.75); transform-origin: left center; }

  .collection,
  .trader { padding-top: 82px; padding-bottom: 82px; border-radius: 30px; }
  .feature { padding: 21px 16px; border-radius: 18px; }
  .feature-large { min-height: 500px; }
  .portfolio-number { padding: 42px 0 30px; }
  .portfolio-bars div { grid-template-columns: 52px 1fr 56px; gap: 8px; }
  .feature-mobile { grid-template-columns: 104px 1fr; gap: 15px; min-height: 270px; }
  .phone { width: 104px; height: 226px; border-width: 4px; }
  .mobile-copy h3 { font-size: 1.35rem; }
  .vision { padding-inline: 2px; }
  .vision-visual { min-height: 410px; border-radius: 26px; }
  .scan-label { min-height: 34px; padding: 8px 9px; font-size: .62rem; }
  .label-a { top: 7%; left: 2%; }
  .label-b { right: 1%; top: 45%; }
  .label-c { left: 4%; bottom: 8%; }
  .truth-stack > div { grid-template-columns: 40px 1fr; }
  .trade-source { grid-template-columns: 60px 1fr auto; min-height: 170px; padding: 17px 13px; }
  .trade-thumb { width: 58px; }
  .trade-editor { padding: 20px 15px; }
  .trader-note { grid-template-columns: 1fr; gap: 10px; margin-top: 38px; }
  .principle-list article { grid-template-columns: 34px 1fr; padding: 24px 0; }
  .principle-list p { grid-column: 2; }
  .final-cta { min-height: 690px; padding: 42px 16px; border-radius: 28px; text-align: left; }
  .final-cta h2 { font-size: clamp(3.9rem, 19vw, 5.4rem); }
  .final-cta p,
  .final-cta .button-dark { margin-inline: 0; }
  .cta-art img { width: 100%; }
  footer { grid-template-columns: 1fr; gap: 20px; }
  footer p,
  footer > a { grid-column: 1; grid-row: auto; }

  .trader-modal { align-items: end; padding: 0; }
  .trader-modal-card {
    width: 100%;
    max-height: 92dvh;
    padding: 25px 15px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
  .modal-close { top: 15px; right: 15px; }
  .modal-title h3 { margin-right: 42px; font-size: 1.75rem; }
  .modal-title p { font-size: .78rem; }
  .listing-stages span { font-size: .65rem; }
  .listing-grid { grid-template-columns: 1fr; gap: 12px; }
  .listing-wide { grid-column: 1; }
  .listing-footer { align-items: stretch; flex-direction: column; }
  .listing-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .listing-footer button { min-height: 50px; }
  .toast { left: 10px; right: 10px; bottom: 10px; max-width: none; text-align: center; }
}

@media (max-width: 380px) {
  .brand { width: 138px; }
  .hero h1 { font-size: 3.05rem; }
  .hero-stage { min-height: 350px; }
  .floating-card { font-size: .9em; }
  .collection-preview-grid { grid-template-columns: 1fr; }
  .collection-preview-card:nth-child(n+4) { display: none; }
  .mission-id span { font-size: .6rem; }
  .mode-switch button { font-size: .66rem; }
  .loose-pieces { grid-template-columns: 1fr; }
  .loose-piece { min-height: 104px; }
  .feature-mobile { grid-template-columns: 88px 1fr; }
  .phone { width: 88px; }
  .mobile-copy h3 { font-size: 1.2rem; }
}

@keyframes storyProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .page-glow { display: none; }
}

/* V6 — authentic product recovery walkthrough */
.recovery-demo {
  min-height: 720px;
  overflow: hidden;
  border: 6px solid #292d27;
  border-radius: 32px;
  color: #eef1eb;
  background: #121510;
  box-shadow: 0 48px 120px rgba(44,70,4,.24);
}
.recovery-chrome {
  min-height: 74px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: #191c18;
}
.recovery-brand,
.recovery-crumb,
.recovery-state { display: flex; align-items: center; }
.recovery-brand { gap: 10px; font-family: var(--display); font-size: .92rem; }
.recovery-brand img { width: 36px; height: 36px; object-fit: contain; }
.recovery-crumb { min-width: 0; gap: 10px; color: #737c70; font-size: .82rem; }
.recovery-crumb b { overflow: hidden; color: #dfe4dc; text-overflow: ellipsis; white-space: nowrap; }
.recovery-state { gap: 8px; color: #8d9689; font-size: .72rem; }
.recovery-state i,
.recovery-saved i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(166,255,24,.55);
}
.recovery-shell { min-height: 646px; display: grid; grid-template-columns: 250px minmax(0,1fr); }
.recovery-steps {
  padding: 26px 14px;
  border-right: 1px solid rgba(255,255,255,.08);
  background: #171a16;
}
.recovery-steps button {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  position: relative;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: #71796e;
  background: transparent;
  font-family: var(--display);
  text-align: left;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}
.recovery-steps button + button::before {
  content: "";
  width: 1px;
  height: 18px;
  position: absolute;
  left: 28px;
  top: -9px;
  background: rgba(255,255,255,.11);
}
.recovery-steps button:hover { color: #e5e9e2; background: rgba(255,255,255,.035); }
.recovery-steps button > b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font-size: .67rem;
  font-weight: 650;
}
.recovery-steps button span,
.recovery-steps button strong,
.recovery-steps button small { display: block; }
.recovery-steps button strong { color: #d2d8cf; font-size: .85rem; font-weight: 650; }
.recovery-steps button small { margin-top: 4px; color: #98a194; font-family: var(--body); font-size: .68rem; }
.recovery-steps button.active { color: var(--lime); background: rgba(166,255,24,.075); }
.recovery-steps button.active > b { color: #253300; border-color: var(--lime); background: var(--lime); }
.recovery-steps button.active strong { color: white; }
.recovery-steps button.complete > b { color: var(--lime); border-color: rgba(166,255,24,.36); }
.recovery-steps button.complete > b::after { content: "✓"; }
.recovery-steps button.complete > b { font-size: 0; }
.recovery-steps button.complete > b::after { font-size: .8rem; }
.recovery-workspace { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 32px; }
.recovery-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.recovery-toolbar > div > span,
.recovery-card-head > div > span,
.recovery-context-card > span,
.candidate-photo > div + div > span,
.confirmed-total + span,
.recovery-audit > span,
.completed-build > div + div > span {
  color: #768073;
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.recovery-toolbar h3 { max-width: 760px; margin: 7px 0 0; font-size: clamp(1.85rem,3vw,3rem); font-weight: 600; letter-spacing: -.05em; }
.recovery-saved { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #7f887b; font-size: .7rem; }
.recovery-screen {
  min-height: 440px;
  padding: 28px 0;
  transition: opacity .17s ease, transform .17s ease;
}
.recovery-demo.changing .recovery-screen { opacity: 0; transform: translateX(calc(var(--step-direction) * 12px)); }
.recovery-grid { height: 100%; display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 14px; }
.recovery-main-card,
.recovery-context-card,
.candidate-photo,
.candidate-results,
.completed-build,
.next-move-options button {
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 18px;
  background: #191d18;
}
.recovery-main-card { min-width: 0; padding: 22px; }
.recovery-card-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.recovery-card-head h4 { margin: 5px 0 0; font-size: 1.2rem; font-weight: 600; }
.status-chip { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; font-size: .66rem; font-weight: 750; }
.status-chip.neutral { color: #a6aea2; background: rgba(255,255,255,.055); }
.status-chip.positive { color: #2c4300; background: var(--lime); }
.recovery-search { display: block; margin: 28px 0 18px; }
.recovery-search > span { display: block; margin-bottom: 8px; color: #929b8e; font-size: .74rem; }
.recovery-search > div { min-height: 54px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: #10130f; }
.recovery-search b { color: var(--lime); font-size: 1.1rem; }
.recovery-search input { min-width: 0; border: 0; outline: 0; color: white; background: transparent; font: 500 .86rem var(--body); }
.recovery-search button,
.candidate-review-actions button,
.action-context button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  padding: 0 13px;
  color: #c3cac0;
  background: rgba(255,255,255,.045);
  font: 650 .72rem var(--display);
  cursor: pointer;
}
.recovery-search button { color: #233100; border-color: transparent; background: var(--lime); }
.source-options { display: grid; gap: 8px; }
.source-options button {
  min-height: 65px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  padding: 9px 12px;
  color: #d9ded6;
  background: #20241f;
  text-align: left;
  cursor: pointer;
}
.source-options button > i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #7d867a; background: #151814; font: normal 650 .64rem var(--display); }
.source-options button span,
.source-options button b,
.source-options button small { display: block; }
.source-options button b { font-size: .78rem; }
.source-options button small { margin-top: 3px; color: #7c8579; font-size: .67rem; }
.source-options button em { color: #727b6f; font-size: .66rem; font-style: normal; }
.source-options button.selected { border-color: rgba(166,255,24,.34); background: rgba(166,255,24,.055); }
.source-options button.selected > i { color: #253300; background: var(--lime); }
.source-options button.selected em { color: var(--lime); }
.recovery-context-card { min-width: 0; padding: 22px; }
.context-mark { width: 74px; height: 74px; display: grid; place-items: center; margin: 34px 0 20px; border-radius: 20px; color: #253300; background: var(--lime); font: 650 1.5rem var(--display); box-shadow: 0 18px 45px rgba(166,255,24,.12); }
.recovery-context-card h4 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.recovery-context-card > p { color: #818a7d; font-size: .74rem; line-height: 1.55; }
.recovery-context-card dl { margin: 26px 0 0; }
.recovery-context-card dl div { padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
.recovery-context-card dt { color: #778073; font-size: .66rem; }
.recovery-context-card dd { margin: 4px 0 0; color: #dfe4dc; font-size: .73rem; }
.comparison-summary { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin: 24px 0 16px; padding: 18px; border-radius: 14px; background: #10130f; }
.comparison-summary div { min-width: 0; }
.comparison-summary b,
.comparison-summary span { display: block; }
.comparison-summary b { font: 600 1.65rem var(--display); letter-spacing: -.05em; }
.comparison-summary span { margin-top: 2px; color: #747d71; font-size: .65rem; }
.comparison-summary > i { color: #5d665a; font-style: normal; }
.comparison-summary .lime b { color: var(--lime); }
.match-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 14px 0; border-block: 1px solid rgba(255,255,255,.08); }
.match-panel span { color: #788175; font-size: .65rem; font-weight: 750; letter-spacing: .1em; }
.match-panel h5 { margin: 5px 0; font-size: .98rem; }
.match-panel p { max-width: 570px; margin: 0; color: #7f887b; font-size: .69rem; line-height: 1.5; }
.inventory-switch { min-width: 148px; min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; padding: 0 11px; color: #929b8e; background: #11140f; font-size: .66rem; cursor: pointer; }
.inventory-switch i { width: 28px; height: 17px; position: relative; border-radius: 99px; background: #3a4037; }
.inventory-switch i::after { content: ""; width: 11px; height: 11px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #8a9286; transition: transform .2s, background .2s; }
.inventory-switch.active i { background: rgba(166,255,24,.22); }
.inventory-switch.active i::after { background: var(--lime); transform: translateX(11px); }
.match-rows { display: grid; gap: 6px; margin-top: 13px; }
.match-rows > div { min-height: 51px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 11px; background: rgba(255,255,255,.03); }
.part-token { width: 40px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: #223000; background: var(--lime); font: 700 .58rem var(--display); }
.white-part { color: #4e554a; background: #f1f0e9; }
.dark-part { color: #d5dad2; background: #30352f; }
.match-rows p,
.match-rows b,
.match-rows small { display: block; margin: 0; }
.match-rows b { font-size: .71rem; }
.match-rows small { margin-top: 2px; color: #747d71; font-size: .62rem; }
.match-rows em { color: #90a17f; font-size: .61rem; font-style: normal; }
.match-rows em.review { color: #d4bd74; }
.comparison-ledger h4 { margin-top: 32px; color: var(--lime); font-size: 1.5rem; line-height: 1.08; }
.ledger-bar { margin: 28px 0 16px; }
.ledger-bar i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg,var(--lime) 38%,#353a33 38%); }
.ledger-bar b { display: block; margin-top: 9px; color: #a3aca0; font-size: .68rem; }
.candidate-workspace { height: 100%; display: grid; grid-template-columns: .72fr 1.28fr; gap: 14px; }
.candidate-photo { min-width: 0; display: grid; grid-template-rows: 1fr auto; overflow: hidden; }
.candidate-image { min-height: 250px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle,rgba(166,255,24,.17),transparent 60%),#0f120e; }
.candidate-image img { width: min(92%,360px); max-height: 270px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.candidate-photo > div + div { padding: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.candidate-photo h4 { margin: 6px 0; font-size: 1.1rem; }
.candidate-photo p { margin: 0; color: #7e877a; font-size: .69rem; line-height: 1.5; }
.candidate-results { min-width: 0; padding: 22px; }
.candidate-choice { width: 100%; min-height: 88px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px; margin-top: 10px; border: 1px solid rgba(255,255,255,.085); border-radius: 14px; padding: 11px; color: white; background: #11140f; text-align: left; cursor: pointer; }
.candidate-choice > div b,
.candidate-choice > div small,
.candidate-choice > div i { display: block; }
.candidate-choice > div b { font-size: .77rem; }
.candidate-choice > div small { margin-top: 3px; color: #7d8679; font-size: .64rem; }
.candidate-choice > div i { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #333831; }
.candidate-choice > div em { display: block; width: var(--confidence); height: 100%; background: var(--lime); }
.candidate-choice > strong { color: #858e81; font-size: .64rem; }
.candidate-choice.selected { border-color: rgba(166,255,24,.38); background: rgba(166,255,24,.045); }
.candidate-choice.selected > strong { color: var(--lime); }
.candidate-review-actions { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 7px; margin-top: 14px; }
.candidate-review-actions .confirm-match { color: #243200; border-color: transparent; background: var(--lime); }
.candidate-review-actions .confirm-match.confirmed { color: white; background: #537f11; }
.confirmed-total { display: flex; justify-content: space-between; align-items: end; margin: 28px 0 12px; }
.confirmed-total strong,
.confirmed-total span { display: block; }
.confirmed-total strong { color: white; font: 600 2.5rem var(--display); letter-spacing: -.06em; }
.confirmed-total strong small { color: #737c70; font-size: .9rem; }
.confirmed-total span { margin-top: 5px; color: #858e81; font-size: .7rem; }
.confirmed-total > b { color: var(--lime); font: 600 1rem var(--display); }
.exact-progress { height: 9px; overflow: hidden; border-radius: 99px; background: #333831; }
.exact-progress i { display: block; width: 100%; height: 100%; background: var(--lime); box-shadow: 0 0 18px rgba(166,255,24,.36); }
.progress-breakdown { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0; }
.progress-breakdown article { padding: 13px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: #11140f; }
.progress-breakdown span,
.progress-breakdown b,
.progress-breakdown small { display: block; }
.progress-breakdown span { color: #7d8679; font-size: .63rem; }
.progress-breakdown b { margin: 6px 0 2px; color: #f0f3ed; font: 600 1.2rem var(--display); }
.progress-breakdown small { color: #626b5f; font-size: .59rem; }
.recovery-audit { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.recovery-audit p { display: grid; grid-template-columns: 7px 1fr auto; align-items: center; gap: 9px; margin: 0; padding: 7px 0; font-size: .68rem; }
.recovery-audit p i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.recovery-audit p small { color: #6d756a; }
.action-context { display: flex; flex-direction: column; gap: 8px; }
.action-context button { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.action-context button:first-of-type { margin-top: 25px; }
.action-context button b { color: var(--lime); }
.action-context p { margin-top: auto; }
.next-move-screen { height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 13px; }
.completed-build { min-height: 175px; display: grid; grid-template-columns: 230px 1fr; align-items: center; overflow: hidden; }
.completed-visual { height: 100%; display: grid; place-items: center; background: radial-gradient(circle,rgba(166,255,24,.2),transparent 65%),#11140f; }
.completed-visual img { width: 88%; max-height: 170px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }
.completed-build > div + div { padding: 20px 28px; }
.completed-build h4 { margin: 7px 0; font-size: 1.45rem; }
.completed-build p { margin: 0; color: #7e877a; font-size: .72rem; }
.next-move-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.next-move-options button { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 18px; color: #e5e9e2; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s; }
.next-move-options button:hover { transform: translateY(-3px); border-color: rgba(166,255,24,.35); }
.next-move-options button > i { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #899286; background: #11140f; font: normal 650 .64rem var(--display); }
.next-move-options button span { padding: 24px 0; }
.next-move-options button b,
.next-move-options button small { display: block; }
.next-move-options button b { font: 600 1rem var(--display); }
.next-move-options button small { margin-top: 6px; color: #778073; font-size: .67rem; line-height: 1.45; }
.next-move-options button > em { color: #9ba497; font-size: .68rem; font-style: normal; }
.next-move-options button.featured { color: #1d2900; border-color: transparent; background: var(--lime); }
.next-move-options button.featured > i { color: var(--lime); background: #182000; }
.next-move-options button.featured small { color: #415d12; }
.next-move-options button.featured > em { color: #263700; }
.recovery-actions { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.08); }
.recovery-actions > button { min-height: 45px; border-radius: 11px; padding: 0 16px; font: 650 .74rem var(--display); cursor: pointer; }
.recovery-back { border: 1px solid rgba(255,255,255,.18); color: #d7ddd4; background: transparent; }
.recovery-back:disabled { cursor: not-allowed; opacity: .62; }
.recovery-actions p { margin: 0; color: #b0b8ad; font-size: .68rem; text-align: center; }
.recovery-next { min-width: 225px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 0; color: #263500; background: var(--lime); }

@media (max-width: 1080px) {
  .recovery-shell { grid-template-columns: 1fr; }
  .recovery-steps { display: flex; overflow-x: auto; gap: 5px; padding: 10px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); scrollbar-width: none; }
  .recovery-steps::-webkit-scrollbar { display: none; }
  .recovery-steps button { flex: 1 0 150px; min-height: 62px; grid-template-columns: 30px 1fr; }
  .recovery-steps button + button::before { display: none; }
  .recovery-steps button > b { width: 28px; height: 28px; }
  .recovery-steps button small { display: none; }
}

@media (max-width: 720px) {
  .rescue-heading h2 { font-size: clamp(2.8rem,13vw,4.1rem); }
  .recovery-demo { min-height: 0; border-width: 4px; border-radius: 24px; }
  .recovery-chrome { min-height: 62px; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 12px; }
  .recovery-brand { font-size: .82rem; }
  .recovery-brand img { width: 32px; height: 32px; }
  .recovery-crumb { display: none; }
  .recovery-state span { display: none; }
  .recovery-steps button { flex-basis: 92px; min-height: 54px; display: flex; justify-content: center; padding: 7px; }
  .recovery-steps button span { display: none; }
  .recovery-workspace { padding: 18px 12px 14px; }
  .recovery-toolbar { align-items: start; }
  .recovery-toolbar h3 { font-size: 1.85rem; line-height: 1; }
  .recovery-saved { display: none; }
  .recovery-screen { min-height: 0; padding: 20px 0; }
  .recovery-grid,
  .candidate-workspace { grid-template-columns: 1fr; }
  .recovery-main-card,
  .recovery-context-card,
  .candidate-results { padding: 16px; }
  .recovery-context-card { display: none; }
  .recovery-card-head { gap: 10px; }
  .recovery-card-head h4 { font-size: 1.02rem; }
  .status-chip { padding: 6px 8px; font-size: .6rem; }
  .recovery-search { margin-top: 20px; }
  .source-options button { grid-template-columns: 32px 1fr; }
  .source-options button em { display: none; }
  .comparison-summary { gap: 7px; padding: 13px 10px; }
  .comparison-summary b { font-size: 1.25rem; }
  .comparison-summary span { font-size: .57rem; }
  .match-panel { grid-template-columns: 1fr; }
  .inventory-switch { width: 100%; }
  .match-rows > div { grid-template-columns: 42px 1fr; }
  .match-rows > div > em { grid-column: 2; }
  .candidate-photo { grid-template-rows: 200px auto; }
  .candidate-image { min-height: 200px; }
  .candidate-review-actions { grid-template-columns: 1fr 1fr; }
  .candidate-review-actions .confirm-match { grid-column: 1 / -1; }
  .progress-breakdown { grid-template-columns: 1fr; }
  .progress-breakdown article { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .progress-breakdown article small { grid-column: 1 / -1; }
  .completed-build { grid-template-columns: 110px 1fr; min-height: 140px; }
  .completed-build > div + div { padding: 16px 12px; }
  .completed-build h4 { font-size: 1.1rem; }
  .next-move-options { grid-template-columns: 1fr; }
  .next-move-options button { min-height: 96px; grid-template-columns: 36px 1fr auto; grid-template-rows: 1fr; align-items: center; padding: 13px; }
  .next-move-options button span { padding: 0; }
  .next-move-options button small { margin-top: 3px; }
  .recovery-actions { grid-template-columns: 72px 1fr; gap: 8px; }
  .recovery-actions p { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .recovery-back { grid-column: 1; grid-row: 2; }
  .recovery-next { min-width: 0; grid-column: 2; grid-row: 2; }
}

@media (max-width: 390px) {
  .recovery-toolbar h3 { font-size: 1.65rem; }
  .recovery-next { padding-inline: 12px; font-size: .68rem; }
  .confirmed-total strong { font-size: 2rem; }
  .completed-build { grid-template-columns: 90px 1fr; }
}

/* V7 — clean artwork, tighter rhythm and viewport-safe feature sections */
body { overflow-x: clip; }
.hero-stage .floating-card,
.vision-visual .scan-label { display: none !important; }

.section { padding-top: 96px; padding-bottom: 96px; }
.story-lab {
  grid-template-columns: minmax(290px,.72fr) minmax(0,1.28fr);
  gap: clamp(38px,4.5vw,64px);
  min-height: 0;
  padding-top: 88px;
  padding-bottom: 88px;
}
.story-copy h2 { max-width: 510px; }
.story-copy > p { max-width: 470px; }
.story-tabs button { min-height: 54px; }
.story-stage { min-width: 0; min-height: 570px; }
.story-stage::before { top: 1%; left: 50%; transform: translateX(-50%); }
.story-media { min-height: 410px; overflow: hidden; }
.story-media > img { width: min(90%,680px); max-width: 100%; height: auto; max-height: 410px; object-fit: contain; }
.story-caption { min-height: 132px; }

.product-lab {
  width: 100%;
  max-width: 100%;
  left: auto;
  transform: none;
  box-sizing: border-box;
  margin-top: 24px;
  padding: 84px clamp(28px,4.5vw,60px) 92px;
  border-radius: 42px 42px 0 0;
}
.lab-heading { gap: clamp(36px,5vw,68px); margin-bottom: 44px; }
.lab-heading h2 { font-size: clamp(3.2rem,5.2vw,5.8rem); text-wrap: balance; }
.app-theatre { min-height: 760px; padding: 30px 26px 26px; }
.collection,
.trader {
  width: 100%;
  max-width: 100%;
  left: auto;
  transform: none;
  box-sizing: border-box;
  overflow: hidden;
  padding: 84px clamp(28px,4.5vw,60px);
  border-radius: 42px;
}
.collection-intro,
.trader-heading { margin-bottom: 44px; }
.collection-intro h2,
.trader-heading h2 { font-size: clamp(3.2rem,5.2vw,5.8rem); text-wrap: balance; }
.collection-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.feature-large { min-height: 500px; }
.feature-projects,
.feature-mobile { min-height: 243px; }
.portfolio-number { padding: 48px 0 34px; }
.portfolio-number strong { font-size: clamp(2.8rem,4.4vw,4.6rem); }
.portfolio-bars { margin: 30px 0; }
.vision { min-height: 0; padding-top: 92px; padding-bottom: 92px; gap: clamp(44px,5vw,72px); }
.vision-visual { min-height: 510px; }
.trade-flow { width: 100%; max-width: 100%; grid-template-columns: minmax(0,.88fr) 68px minmax(0,1.12fr); gap: 14px; }
.trade-source { min-width: 0; min-height: 172px; grid-template-columns: 68px minmax(0,1fr) auto; padding: 20px; }
.trade-thumb { width: 66px; border-radius: 17px; background: #171a16; }
.trade-editor { min-width: 0; padding: 23px; }
.trader-note { margin-top: 42px; padding-top: 24px; }
.principles { padding-top: 96px; padding-bottom: 96px; }
.final-cta { min-height: 610px; padding: 60px; }

@media (max-width: 900px) {
  .section { padding-top: 76px; padding-bottom: 76px; }
  .story-lab { grid-template-columns: 1fr; gap: 30px; }
  .story-copy h2,
  .story-copy > p { max-width: 680px; }
  .story-tabs { display: flex; grid-template-columns: none; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .story-tabs button { flex: 0 0 112px; border: 1px solid var(--line); border-radius: 13px; }
  .story-stage { min-height: 520px; }
  .story-media { min-height: 370px; }
  .story-media > img { max-height: 365px; }
  .collection,
  .trader,
  .product-lab { padding-right: 26px; padding-left: 26px; border-radius: 34px; }
  .product-lab { padding-top: 70px; padding-bottom: 76px; }
  .lab-heading { margin-bottom: 34px; }
  .collection-grid { grid-template-columns: 1fr; }
  .feature-large { min-height: 470px; }
  .trade-flow { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
  .trade-arrow { min-height: 50px; }
  .trade-arrow b { transform: rotate(90deg); }
  .vision { grid-template-columns: 1fr; }
  .vision-visual { min-height: 500px; }
}

@media (max-width: 620px) {
  .section { padding-top: 62px; padding-bottom: 62px; }
  .hero-stage { min-height: 360px; }
  .hero-art { width: 102%; }
  .story-lab { padding-top: 58px; padding-bottom: 62px; }
  .story-copy h2 { font-size: clamp(2.75rem,13vw,3.8rem); }
  .story-stage { min-height: 0; }
  .story-media { min-height: 310px; }
  .story-media > img { width: 100%; max-height: 305px; }
  .story-orbit { width: 88%; }
  .story-caption {
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 18px 0 0;
    row-gap: 6px;
  }
  .story-caption > span { grid-row: auto; padding: 0; }
  .story-caption h3,
  .story-caption p { grid-column: 1; }
  .story-caption h3 { margin: 0; font-size: 1.55rem; }
  .story-caption p { font-size: .84rem; }
  .product-lab { width: 100%; margin-top: 14px; padding: 60px 14px 66px; border-radius: 26px 26px 0 0; }
  .lab-heading { padding-inline: 2px; margin-bottom: 30px; }
  .lab-heading h2 { font-size: clamp(2.65rem,12.5vw,3.7rem); }
  .app-theatre { min-height: auto; padding: 14px 4px 18px; border-radius: 22px; }
  .collection,
  .trader { padding: 60px 14px; border-radius: 26px; }
  .collection-intro,
  .trader-heading { padding-inline: 2px; margin-bottom: 32px; }
  .collection-intro h2,
  .trader-heading h2 { font-size: clamp(2.65rem,12.5vw,3.7rem); }
  .feature { padding: 20px 15px; }
  .feature-large { min-height: 450px; }
  .portfolio-number strong { font-size: clamp(2.55rem,13vw,3.7rem); }
  .feature-mobile { min-height: 250px; }
  .vision { padding-top: 66px; padding-bottom: 66px; }
  .vision-visual { min-height: 390px; }
  .trade-source { grid-template-columns: 56px minmax(0,1fr) auto; min-height: 150px; padding: 15px 12px; }
  .trade-thumb { width: 54px; }
  .trade-editor { padding: 19px 14px; }
  .trader-note { margin-top: 32px; }
  .principles { padding-top: 66px; padding-bottom: 66px; }
  .final-cta { min-height: 620px; padding: 40px 16px; }
}

/* V9 — keep the recovery walkthrough on the shared page grid */
.rescue-lab {
  width: 100%;
  max-width: 100%;
  left: auto;
  transform: none;
  padding: 84px clamp(28px, 4.5vw, 60px) 92px;
  border-radius: 42px;
}
.rescue-heading,
.recovery-demo {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.rescue-heading h2 { text-wrap: balance; }

@media (max-width: 900px) {
  .rescue-lab {
    padding: 70px 26px 76px;
    border-radius: 34px;
  }
}

@media (max-width: 620px) {
  .rescue-lab {
    padding: 60px 14px 66px;
    border-radius: 26px;
  }
  .rescue-heading { padding-inline: 2px; }
}

/* V10 — login-first launch composition */
:root { --max: 1360px; }

[id] { scroll-margin-top: 104px; }

.site-header {
  position: relative;
  top: auto;
  isolation: isolate;
  border-color: rgba(255,255,255,.13);
  background: rgba(11,14,10,.82);
  box-shadow: 0 18px 55px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.07);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(166,255,24,.4), transparent 28%, transparent 72%, rgba(255,255,255,.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.header-cta { min-width: 132px; justify-content: space-between; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; }
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #f4f7ef;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.header-link:hover, .header-link:focus-visible { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.header-actions { gap: 8px; }
.header-signup {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}
.header-signup:hover, .header-signup:focus-visible { color: var(--ink); background: #b8ff3d; border-color: #b8ff3d; }
.header-signup span { margin-left: 4px; color: rgba(11,13,10,.62); }

.hero {
  min-height: calc(100svh - 96px);
  grid-template-columns: minmax(0,.94fr) minmax(500px,1.06fr);
  gap: 24px clamp(34px,4vw,68px);
  padding: 58px 0 28px;
}
.hero-copy { padding: 42px 0 30px; }
.hero h1 {
  max-width: 760px;
  margin: 24px 0 26px;
  font-size: clamp(4.6rem,6.5vw,7.25rem);
  line-height: .86;
  letter-spacing: -.078em;
}
.hero-lede { max-width: 660px; font-size: clamp(1.02rem,1.25vw,1.18rem); }
.hero-actions { margin-top: 30px; }
.hero-access {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  color: #8e978a;
  font-size: .76rem;
  font-weight: 650;
}
.hero-access i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(166,255,24,.55);
}
.hero-types { margin-top: 28px; }
.hero-stage {
  min-height: 590px;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 40%, rgba(166,255,24,.21), transparent 38%),
    linear-gradient(150deg, rgba(255,255,255,.058), rgba(255,255,255,.006));
}
.hero-stage::before { opacity: .88; }
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(166,255,24,.08);
  border-radius: 30px;
  pointer-events: none;
}
.hero-art { width: min(94%,660px); height: auto; object-fit: contain; }
.hero-strip {
  min-height: 70px;
  margin-top: 4px;
  padding: 13px 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.026);
}

.section { padding-top: 84px; padding-bottom: 84px; }
.section h2,
.lab-heading h2,
.rescue-heading h2 { font-size: clamp(3.25rem,5.35vw,5.85rem); }
.workflow { display: none; }

.story-lab {
  gap: clamp(40px,5vw,74px);
  padding-top: 94px;
  padding-bottom: 94px;
}
.story-copy h2 { max-width: 520px; }
.story-copy > p { max-width: 450px; }
.story-media {
  min-height: 390px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 46%, rgba(166,255,24,.13), transparent 44%);
}
.story-caption { min-height: 118px; }

.product-lab {
  margin-top: 10px;
  padding: 78px clamp(30px,4.5vw,62px) 86px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 42px;
  background:
    radial-gradient(circle at 63% 36%, rgba(166,255,24,.1), transparent 32%),
    linear-gradient(155deg,#11150f 0,#090b08 72%);
  box-shadow: 0 42px 110px rgba(0,0,0,.28);
}
.lab-heading { margin-bottom: 38px; }
.app-theatre { min-height: 700px; padding: 26px 22px 24px; }
.theatre-caption { align-items: center; }

.rescue-lab {
  padding-top: 78px;
  padding-bottom: 84px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 88% 4%, rgba(255,255,255,.33), transparent 24%),
    linear-gradient(140deg,#b3ff3a 0,#9df51b 58%,#89df0e 100%);
  box-shadow: 0 38px 100px rgba(75,119,7,.18);
}
.rescue-heading { margin-bottom: 42px; }
.recovery-demo { min-height: 680px; }

.collection,
.trader {
  width: 100%;
  max-width: 100%;
  left: auto;
  transform: none;
  padding: 82px clamp(30px,4.5vw,62px) 88px;
  border-radius: 42px;
}
.collection { background: linear-gradient(145deg,#fffdf7,#f1eee2); }
.trader {
  background:
    radial-gradient(circle at 90% 8%, rgba(255,255,255,.32), transparent 23%),
    linear-gradient(135deg,#adff27,#91ec11);
}
.collection-intro,
.trader-heading { margin-bottom: 42px; }
.feature { box-shadow: 0 22px 64px rgba(28,34,24,.08); }
.vision { gap: clamp(46px,6vw,86px); }
.vision-visual { min-height: 480px; border-radius: 36px; }
.principles { padding-top: 88px; padding-bottom: 88px; }
.final-cta {
  min-height: 560px;
  padding: clamp(40px,5vw,70px);
  border-radius: 42px;
}
.final-cta .button-dark { min-width: 220px; }

.mobile-nav .mobile-login {
  justify-content: space-between;
  margin-top: 6px;
  color: #172000;
  background: var(--lime);
}
.mobile-nav .mobile-signup {
  justify-content: space-between;
  color: var(--lime);
  border: 1px solid rgba(166,255,24,.36);
}

.hero-signin {
  margin: 15px 0 0;
  color: #7f897c;
  font-size: .78rem;
}
.hero-signin a,
.final-signin {
  color: var(--lime);
  font-weight: 700;
}
.hero-signin a:hover,
.hero-signin a:focus-visible,
.final-signin:hover,
.final-signin:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.membership {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(300px,.92fr);
  gap: clamp(36px,7vw,110px);
  align-items: center;
  padding: 96px clamp(28px,5vw,68px);
  border-radius: 42px;
  background:
    radial-gradient(circle at 95% 5%, rgba(166,255,24,.18), transparent 30%),
    #151914;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.membership h2 {
  margin: 0 0 24px;
  font-size: clamp(3.6rem,6vw,6.4rem);
  line-height: .91;
}
.membership-copy > p {
  max-width: 650px;
  color: #a6aea1;
  font-size: 1rem;
  line-height: 1.75;
}
.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.membership-actions .button { min-height: 54px; }
.membership-actions .button-ghost { color: #f3f5f0; }
.membership-notes {
  display: grid;
  border-top: 1px solid rgba(255,255,255,.12);
}
.membership-notes > div {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.membership-notes b { color: var(--lime); font-family: var(--display); font-size: .72rem; }
.membership-notes strong,
.membership-notes small { display: block; }
.membership-notes strong { color: #f3f5f0; font-family: var(--display); font-size: 1rem; }
.membership-notes small { margin-top: 5px; color: #899286; font-size: .78rem; line-height: 1.55; }

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.final-signin { color: #4d7900; font-size: .82rem; }

.scroll-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 34px);
  bottom: clamp(14px, 2.5vw, 34px);
  z-index: 110;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(166,255,24,.5);
  border-radius: 19px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 16px 42px rgba(0,0,0,.36), 0 0 26px rgba(166,255,24,.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.94);
  transition: opacity .22s ease, transform .22s ease, background .2s ease;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover, .scroll-top:focus-visible { background: #b8ff3d; }
.scroll-top:focus-visible { outline: 3px solid rgba(255,255,255,.82); outline-offset: 4px; }
.scroll-top img { width: 31px; height: 31px; object-fit: contain; }
.scroll-top span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .header-actions { gap: 5px; }
  .header-link { padding-inline: 12px; font-size: .76rem; }
  .membership { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 820px) {
  .header-actions { display: none; }
}

@media (max-width: 620px) {
  .membership { padding: 54px 18px; border-radius: 28px; }
  .membership h2 { font-size: clamp(2.85rem,14vw,4rem); }
  .membership-copy > p { font-size: .96rem; line-height: 1.68; }
  .membership-actions { display: grid; }
  .membership-actions .button { width: 100%; }
  .final-cta-actions { display: grid; justify-items: center; }
  .scroll-top { width: 56px; height: 56px; border-radius: 16px; }
  .scroll-top img { width: 27px; height: 27px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0,.9fr) minmax(430px,1.1fr); }
  .hero h1 { font-size: clamp(4rem,7.2vw,6.2rem); }
  .hero-stage { min-height: 540px; }
}

@media (max-width: 1300px) and (min-width: 821px) {
  .hero-art { width: min(82%, 560px); }
}

@media (max-width: 820px) {
  .site-header { top: 8px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 56px; }
  .hero-copy { padding: 30px 0 8px; }
  .hero h1 { max-width: 690px; font-size: clamp(3.8rem,11vw,5.8rem); }
  .hero-stage { min-height: 520px; }
  .hero-strip { margin-top: 8px; }
  .story-lab { padding-top: 76px; padding-bottom: 76px; }
  .feature-mobile {
    display: block;
    min-height: 0;
    padding: 28px 24px;
  }
  .feature-mobile .phone {
    display: none;
  }
  .feature-mobile .mobile-copy {
    width: 100%;
    max-width: 520px;
  }
  .feature-mobile .mobile-copy::before {
    content: "PHONE + TABLET";
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(27,30,26,.14);
    border-radius: 999px;
    color: #355300;
    background: rgba(255,255,255,.42);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .09em;
  }
  .product-lab,
  .rescue-lab,
  .collection,
  .trader { padding: 68px 26px 74px; border-radius: 32px; }
  .app-theatre { min-height: auto; }
  .vision { padding-top: 78px; padding-bottom: 78px; }
}

@media (max-width: 620px) {
  [id] { scroll-margin-top: 82px; }
  .hero { padding-top: 46px; }
  .hero h1 { margin-top: 21px; font-size: clamp(3.2rem,15vw,4.35rem); line-height: .9; }
  .hero-lede { font-size: 1rem; }
  .hero-access { align-items: flex-start; line-height: 1.45; }
  .hero-stage { min-height: 360px; border-radius: 25px; }
  .hero-stage::after { inset: 10px; border-radius: 19px; }
  .hero-strip { padding: 17px 12px; }
  .section { padding-top: 62px; padding-bottom: 62px; }
  .story-lab { padding-top: 62px; padding-bottom: 66px; }
  .product-lab,
  .rescue-lab,
  .collection,
  .trader { padding: 58px 14px 64px; border-radius: 25px; }
  .lab-heading,
  .rescue-heading,
  .collection-intro,
  .trader-heading { padding-inline: 3px; margin-bottom: 30px; }
  .app-theatre { padding: 14px 4px 18px; }
  .recovery-demo { border-radius: 22px; }
  .final-cta { min-height: 590px; padding: 38px 16px; border-radius: 26px; }
}

/* V11 — tighten the collection hand-off and remove the empty heading band */
.collection {
  margin-top: 18px;
  padding-top: 68px;
}

.collection-intro {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  column-gap: clamp(42px, 5vw, 76px);
  row-gap: 16px;
  align-items: end;
  margin-bottom: 38px;
}

.collection-intro .kicker {
  grid-column: 1 / -1;
  margin: 0 0 2px;
}

.collection-intro h2 {
  grid-column: 1;
  margin: 0;
}

.collection-intro > p {
  grid-column: 2;
  align-self: end;
  margin: 0 0 7px;
}

@media (max-width: 820px) {
  .collection {
    margin-top: 14px;
    padding-top: 58px;
  }

  .collection-intro {
    grid-template-columns: 1fr;
    row-gap: 15px;
    margin-bottom: 32px;
  }

  .collection-intro > * {
    grid-column: 1;
  }

  .collection-intro > p {
    margin-bottom: 0;
    max-width: 620px;
  }
}

/* V13 — donor merge: app-authentic demos without disturbing locked artwork */
.app-scan-card { grid-column: 1 / -1; }
.app-value-card strong { font-size: clamp(1.55rem, 2.1vw, 2rem); letter-spacing: -.045em; }
.app-value-card p + p { margin-top: 7px; }

.demo-search-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  width: min(100%, 350px);
  margin-top: 14px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.demo-search-field > span {
  grid-column: 1 / -1;
  font-size: .56rem;
  letter-spacing: .1em;
}
.demo-search-field input {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 8px 9px;
  color: #eef2eb;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-size: .7rem;
}
.demo-search-field button { margin: 0; border-radius: 8px; }

.demo-set-tabs {
  display: flex;
  gap: 6px;
  margin: -8px 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-set-tabs::-webkit-scrollbar { display: none; }
.demo-set-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #d9ddd4;
  border-radius: 999px;
  padding: 0 13px;
  color: #6d746a;
  background: #f8f9f4;
  font-weight: 800;
  font-size: .66rem;
}
.demo-set-tabs button.active { border-color: #20251e; color: #fff; background: #20251e; }

.recovery-mode-demo {
  display: flex;
  gap: 6px;
  margin: 12px 0;
  padding: 5px;
  border-radius: 12px;
  background: #ecefe7;
}
.recovery-mode-demo button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  color: #5f665c;
  background: transparent;
  font-size: .68rem;
  font-weight: 850;
}
.recovery-mode-demo button.active { color: #fff; background: #20251e; }
.demo-inventory-note {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 10px 12px;
  border-left: 3px solid var(--lime-deep);
  color: #687065;
  background: #f3f6ec;
  font-size: .68rem;
}
.demo-inventory-note b { color: #20251e; }
.demo-piece-controls { display: grid; gap: 7px; margin-top: 12px; }
.demo-piece-controls > div {
  display: grid;
  grid-template-columns: minmax(0,1fr) 30px 52px 30px 30px;
  gap: 6px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #dfe3da;
  border-radius: 12px;
  background: #fbfcf8;
}
.demo-piece-controls span { min-width: 0; }
.demo-piece-controls b,
.demo-piece-controls small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-piece-controls b { font-size: .7rem; }
.demo-piece-controls small { margin-top: 2px; color: #747b71; font-size: .58rem; }
.demo-piece-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid #d7dcd2;
  border-radius: 8px;
  color: #20251e;
  background: #fff;
  font-weight: 900;
}
.demo-piece-controls button.selected { border-color: var(--lime); background: var(--lime); }
.recovery-finish-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.recovery-finish-demo button {
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 13px;
  color: #fff;
  background: #20251e;
  font-size: .66rem;
  font-weight: 850;
}
.recovery-finish-demo button.primary { color: #20251e; background: var(--lime); }

.portfolio-number strong {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.5vw, 4.7rem);
  line-height: .94;
}

@media (max-width: 740px) {
  .mobile-app-nav,
  .app-device.is-mobile .mobile-app-nav,
  .app-device:not(.is-mobile) .mobile-app-nav {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .mobile-app-nav button { padding-inline: 2px; font-size: .5rem; }
}

@media (max-width: 560px) {
  .demo-piece-controls > div { grid-template-columns: minmax(0,1fr) 28px 44px 28px 28px; gap: 4px; }
  .demo-piece-controls button { width: 28px; height: 28px; }
  .portfolio-number strong { font-size: clamp(2rem, 10vw, 3rem); }
}

@media (max-width: 620px) {
  .collection {
    margin-top: 10px;
    padding-top: 48px;
  }

  .collection-intro {
    row-gap: 12px;
    margin-bottom: 26px;
  }
}

/* V14 — balanced headline wrapping: no stranded final words */
.hero h1,
.story-copy h2,
.lab-heading h2,
.rescue-heading h2,
.collection-intro h2,
.vision-copy h2,
.trader-heading h2,
.principles-copy h2,
.final-cta h2 {
  text-wrap: balance;
}

/* V12 — continue the ticker into one full-bleed recovery stage */
.rescue-lab {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -1px;
  padding: 76px max(30px, calc((100vw - var(--max)) / 2)) 88px;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 88% 4%, rgba(255,255,255,.3), transparent 25%),
    linear-gradient(140deg,#b3ff3a 0,#9df51b 58%,#89df0e 100%);
}

.rescue-heading,
.recovery-demo {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}

@media (max-width: 820px) {
  .rescue-lab {
    width: 100vw;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
    padding: 64px 22px 74px;
    border-radius: 0;
  }
}

@media (max-width: 620px) {
  .story-lab,
  .story-copy,
  .story-stage,
  .story-media,
  .story-caption {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .story-lab {
    overflow: hidden;
  }
  .story-copy h2,
  .story-copy > p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .story-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overscroll-behavior-inline: contain;
  }
  .collection {
    padding-top: 48px;
    padding-bottom: 52px;
  }
  .collection-intro {
    display: block;
    width: 100%;
    min-width: 0;
    margin-bottom: 24px;
  }
  .collection-intro .kicker {
    display: block;
    max-width: 260px;
    margin-bottom: 18px;
  }
  .collection-intro h2,
  .collection-intro > p {
    width: 100%;
    max-width: 100%;
  }
  .collection-intro h2 {
    font-size: clamp(2.75rem, 13vw, 3.55rem);
  }
  .collection-intro > p {
    margin-top: 20px;
    font-size: .92rem;
    line-height: 1.58;
  }
  .feature-large {
    min-height: 0;
  }
  .portfolio-bars div {
    grid-template-columns: 82px minmax(72px, 1fr) 76px;
    gap: 10px;
  }
  .portfolio-bars div > span,
  .portfolio-bars div > b {
    min-width: 0;
    line-height: 1.25;
  }
  .portfolio-bars div > b {
    font-size: .7rem;
  }
  .feature-mobile {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
    padding-block: 18px;
    align-items: center;
  }
  .mobile-copy {
    order: 1;
  }
  .phone {
    order: 2;
    width: 100%;
    height: 190px;
    margin: 0;
    align-self: auto;
    border-width: 4px;
    border-bottom: 4px solid #1b1e1a;
    border-radius: 22px;
    padding: 12px 15px;
  }
  .phone-value {
    margin: 17px 0 12px;
  }
  .phone-value strong {
    font-size: 1.35rem;
  }
  .phone-cards i {
    height: 34px;
  }
  .phone-nav {
    margin-top: 8px;
  }
  .mobile-copy p {
    line-height: 1.5;
  }
  .page-glow {
    display: none;
  }
  main *,
  main *::before,
  main *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .principles {
    gap: 22px;
    padding-top: 54px;
    padding-bottom: 54px;
  }
  .principles-copy h2 {
    font-size: clamp(2.8rem, 13vw, 3.65rem);
  }
  .principle-list article {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 14px;
    padding: 20px 0;
  }
  .principle-list h3,
  .principle-list p {
    grid-column: 2;
  }
  .principle-list h3 {
    font-size: 1.25rem;
  }
  .principle-list p {
    margin-top: 8px;
    font-size: .86rem;
    line-height: 1.55;
  }
  .final-cta {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 46px 16px 18px;
  }
  .final-cta h2 {
    margin-bottom: 22px;
    font-size: clamp(3.25rem, 16vw, 4.4rem);
    line-height: .84;
  }
  .final-cta p {
    margin: 0 0 24px;
    line-height: 1.55;
  }
  .final-cta .button-dark {
    width: 100%;
  }
  .cta-art {
    min-height: 260px;
    align-self: auto;
  }
  .cta-art img {
    width: min(92%, 360px);
  }
  .rescue-lab {
    padding: 54px 12px 64px;
    border-radius: 0;
  }
}

@media (max-width: 380px) {
  .portfolio-bars div {
    grid-template-columns: 72px minmax(62px, 1fr) 66px;
    gap: 8px;
  }
  .feature-mobile,
  .phone {
    width: 100%;
  }
}

/* V15 — normalized marketing demo frames
   Keep the product and recovery demos bounded at every breakpoint. Responsive
   changes may alter navigation chrome and column flow, but never remove demo
   content or change the usable frame height. */
.app-theatre {
  min-height: 850px;
}

.app-device,
.app-device.is-mobile,
.app-device:not(.is-mobile) {
  width: 100%;
  max-width: 1120px;
  height: 720px;
  min-height: 720px;
  box-sizing: border-box;
}

.app-shell {
  height: calc(100% - 42px);
  min-height: 0;
}

.app-rail {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.app-view {
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.app-home-grid,
.build-preview,
.collection-preview-grid,
.project-preview-list,
.trader-preview,
.setup-preview {
  min-width: 0;
}

.app-device.is-mobile .app-shell {
  display: block;
  height: calc(100% - 42px);
}

.app-device.is-mobile .app-workspace {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 19px 14px 0;
}

.app-device.is-mobile .app-view {
  padding-bottom: 0;
}

.app-device.is-mobile .app-value-card,
.app-device.is-mobile .app-activity-card {
  display: block;
}

.app-device.is-mobile .needed-list {
  display: grid;
}

.app-device.is-mobile .collection-preview-card:nth-child(n+5) {
  display: block;
}

.app-device.is-mobile .trader-preview {
  grid-template-columns: 1fr;
}

.app-device.is-mobile .trader-lane {
  min-height: 390px;
}

.app-device.is-mobile .trader-lane:nth-child(n+2) {
  display: block;
}

.app-device.is-mobile .mobile-app-nav {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  margin-top: 10px;
  display: flex;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.app-device:not(.is-mobile) .app-shell {
  display: grid;
  height: calc(100% - 42px);
}

.app-device:not(.is-mobile) .app-rail {
  display: flex;
}

.app-device:not(.is-mobile) .app-workspace {
  min-height: 0;
  height: auto;
  padding-bottom: 28px;
}

.app-device:not(.is-mobile) .mobile-app-nav {
  display: none;
}

.recovery-demo {
  height: 720px;
  min-height: 720px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.recovery-shell {
  height: auto;
  min-height: 0;
}

.recovery-steps {
  min-width: 0;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.recovery-workspace {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.recovery-screen {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.recovery-screen > * {
  min-width: 0;
}

.recovery-grid,
.candidate-workspace,
.next-move-screen {
  height: auto;
  min-height: 100%;
}

.recovery-context-card {
  display: block;
}

.recovery-actions {
  min-width: 0;
}

@media (max-width: 980px) {
  .app-device:not(.is-mobile) .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

@media (max-width: 740px) {
  .app-device:not(.is-mobile) .app-shell {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .app-device:not(.is-mobile) .app-rail {
    display: flex;
  }

  .app-device:not(.is-mobile) .app-workspace {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    padding: 19px 14px 28px;
  }

  .app-device:not(.is-mobile) .app-home-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .app-device:not(.is-mobile) .app-value-card,
  .app-device:not(.is-mobile) .app-activity-card {
    display: block;
  }

  .app-device:not(.is-mobile) .needed-list {
    display: grid;
  }

  .app-device:not(.is-mobile) .collection-preview-card:nth-child(n+5) {
    display: block;
  }

  .app-device:not(.is-mobile) .trader-lane:nth-child(n+2) {
    display: block;
  }

  .recovery-steps {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .recovery-workspace {
    padding: 18px 12px 14px;
  }

  .recovery-screen {
    padding: 20px 0;
  }

  .recovery-grid,
  .candidate-workspace {
    grid-template-columns: 1fr;
  }

  .recovery-context-card {
    display: block;
  }

  .recovery-actions {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .app-device,
  .app-device.is-mobile,
  .app-device:not(.is-mobile) {
    width: 100%;
    height: 720px;
    min-height: 720px;
  }

  .app-device:not(.is-mobile) .app-shell {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .app-device:not(.is-mobile) .app-workspace {
    padding-inline: 10px;
  }

  .recovery-actions {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}
