/* KONAI v19 — flow-safe section containment
   Replaces the fixed-height/zoom fit layers with normal document flow.
   Goal: no section may visually or geometrically overlap the next section. */

:root{
  --v19-header-h:72px;
  --v19-edge:clamp(14px,2vw,28px);
  --v19-dock-safe:78px;
  --v19-section-y:clamp(14px,2.2vh,28px);
  --v19-copy:#dbe7f3;
  --v19-muted:#b9cadb;
  --v19-line:rgba(126,211,255,.18);
  --v19-radius:clamp(20px,2.2vw,34px);
}

html,body{
  width:100%;
  max-width:100%;
  overflow-x:clip!important;
}
body.lustro-inspired{margin:0!important;padding:0!important}

/* Header belongs to page flow; nothing is allowed to appear above/behind it. */
.lustro-inspired .site-header{
  position:sticky!important;
  inset:0 0 auto 0!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  background:#030b17!important;
  border:0!important;
  border-bottom:1px solid var(--v19-line)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
  z-index:1000!important;
}
.lustro-inspired .header-inner{
  width:min(calc(100% - (2 * var(--v19-edge))),1500px)!important;
  max-width:1500px!important;
  min-width:0!important;
  min-height:68px!important;
  margin:0 auto!important;
  padding:7px 0!important;
  box-sizing:border-box!important;
}

.lustro-inspired main{
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}

/* CRITICAL: every section owns its full real height. No fixed height, no max-height,
   no zoom, no negative overlap with the next section. JS raises min-height when an
   absolutely positioned descendant extends below the normal-flow content. */
.lustro-inspired main>section{
  position:relative!important;
  inset:auto!important;
  float:none!important;
  clear:both!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:none!important;
  min-height:max(calc(100svh - var(--v19-header-h)), var(--v19-measured-h, 0px))!important;
  margin:0!important;
  padding-top:var(--v19-section-y)!important;
  padding-bottom:var(--v19-section-y)!important;
  padding-left:var(--v19-edge)!important;
  padding-right:calc(var(--v19-edge) + var(--v19-dock-safe))!important;
  box-sizing:border-box!important;
  overflow:clip!important;
  isolation:isolate!important;
  z-index:0!important;
  scroll-margin-top:var(--v19-header-h)!important;
  transform:none!important;
}
.lustro-inspired main>section+section{
  margin-top:0!important;
  clear:both!important;
}

/* All main content rails stop before the dock and remain inside section width. */
.lustro-inspired main>section :where(.container,.narrow){
  width:100%!important;
  min-width:0!important;
  max-width:1420px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
.lustro-inspired main>section .narrow{max-width:1120px!important}
.lustro-inspired main>section :where(
  .home-hero-layout,.audience-hero-layout,.section-heading,.problem-intro,.problem-grid,
  .trust-stack,.trust-steps,.bridge-shell,.gateway-grid,.story-layout,.pilot-layout,
  .risk-layout,.risk-list,.solution-shell,.solution-columns,.workflow-shell,.workflow-steps,
  .contract-layout,.founding-grid,.faq-list,.principle-strip,.identity-rights-stack,
  .perspectives,.perspective-duo,.persona-chips,.hero-actions,.audience-hero-actions
){
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.lustro-inspired main>section :where(article,aside,figure,div,header,footer,section,nav){
  min-width:0!important;
  box-sizing:border-box!important;
}
.lustro-inspired main>section :where(img,picture,video,canvas,svg){
  display:block;
  max-width:100%!important;
  object-fit:contain;
}

/* Stable proportional type. Small metadata remains readable; hierarchy stays intact. */
.lustro-inspired main>section :where(p,li,.section-note,.lede,.home-hero-lede,.audience-hero-sub,
  .risk-card p,.workflow-card p,.founding-card p,.gateway-card p,.perspective-card p,
  .trust-step-detail,.bridge-pane p){
  font-size:clamp(.78rem,.42vw + .50rem,.98rem)!important;
  line-height:1.42!important;
  color:var(--v19-copy)!important;
}
.lustro-inspired main>section :where(.section-index,.eyebrow,.micro-label,.card-index,small,.meta){
  font-size:clamp(.64rem,.25vw + .48rem,.76rem)!important;
  line-height:1.25!important;
}
.lustro-inspired main>section :where(h1,h2,h3,h4,p,li,span,strong,b,em,small,a,button){
  max-width:100%;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}
.lustro-inspired .section-heading{
  display:grid!important;
  grid-template-columns:minmax(150px,190px) minmax(0,1fr)!important;
  gap:clamp(18px,3vw,42px)!important;
  align-items:start!important;
  margin:0 0 clamp(12px,1.7vh,22px)!important;
  padding-top:0!important;
}
.lustro-inspired .section-heading h2{
  margin:0!important;
  font-size:clamp(2rem,3.6vw,3.8rem)!important;
  line-height:.98!important;
  text-wrap:balance;
}

/* HOME HERO: normal order; marquee cannot cover controls. */
.lustro-inspired .home-hero{
  padding-top:clamp(10px,1.6vh,18px)!important;
}
.lustro-inspired .home-hero-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.04fr) minmax(340px,.82fr)!important;
  gap:clamp(18px,3vw,44px)!important;
  align-items:center!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0 auto!important;
}
.lustro-inspired .home-hero h1{
  font-size:clamp(2.9rem,5vw,5.5rem)!important;
  line-height:.91!important;
  margin:clamp(8px,1.2vh,14px) 0 0!important;
}
.lustro-inspired .hero-actions{position:relative!important;inset:auto!important;margin-top:clamp(10px,1.4vh,16px)!important;z-index:2!important}
.lustro-inspired .principle-strip{position:relative!important;inset:auto!important;margin-top:clamp(10px,1.4vh,16px)!important}
.lustro-inspired .hero-marquee{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:30px!important;
  margin:clamp(8px,1.2vh,14px) 0 0!important;
  overflow:hidden!important;
  transform:none!important;
  z-index:1!important;
}
.v8-identity-stack{
  width:100%!important;
  max-width:540px!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1.06/1!important;
  margin-inline:auto!important;
  overflow:hidden!important;
}
.identity-photo-label{
  left:clamp(12px,2vw,24px)!important;
  right:clamp(12px,2vw,24px)!important;
  bottom:clamp(72px,17%,100px)!important;
  grid-template-columns:minmax(70px,.42fr) minmax(0,1fr)!important;
  gap:10px!important;
}
.identity-photo-label b{font-size:clamp(1rem,1.45vw,1.35rem)!important;line-height:1.04!important}
.identity-rights-stack{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.identity-rights-stack article{height:auto!important;min-height:0!important;padding:10px!important;overflow:hidden!important}

/* WHY NOW: bottom problem cards are explicitly normal-flow content. */
.lustro-inspired #why{
  border-radius:var(--v19-radius)!important;
}
.lustro-inspired #why .problem-intro{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr)!important;
  gap:clamp(12px,1.6vw,22px)!important;
  align-items:stretch!important;
  height:auto!important;
  min-height:0!important;
  margin:0 auto!important;
  transform:none!important;
}
.permission-gap-card,
.lustro-inspired #why .problem-visual,
.lustro-inspired #why .problem-copy{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  transform:none!important;
}
.permission-gap-card{aspect-ratio:1.48/1!important}
.lustro-inspired #why .problem-copy{padding:clamp(12px,1.5vw,20px)!important}
.lustro-inspired #why .problem-copy h3{font-size:clamp(1.45rem,2.25vw,2.3rem)!important;line-height:1.02!important}
.lustro-inspired #why .perspective-duo,
.lustro-inspired #why .perspectives{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  gap:clamp(7px,1vw,12px)!important;
  align-items:stretch!important;
}
.lustro-inspired #why .perspective-card{height:auto!important;min-height:0!important;overflow:hidden!important}
.lustro-inspired #why .problem-grid{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(8px,1vw,14px)!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:clamp(10px,1.4vh,16px) auto 0!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
  clear:both!important;
}
.lustro-inspired #why .problem-grid article{
  position:relative!important;
  inset:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:clamp(12px,1.4vw,18px)!important;
  overflow:hidden!important;
  transform:none!important;
}

/* TRUST: two-column layout is fully in flow; no sticky card can escape section. */
.lustro-inspired .trust-stack{
  display:grid!important;
  grid-template-columns:minmax(300px,.92fr) minmax(0,1.08fr)!important;
  gap:clamp(12px,2vw,28px)!important;
  align-items:stretch!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
}
.lustro-inspired .trust-visual{
  position:relative!important;
  top:auto!important;
  inset:auto!important;
  height:auto!important;
  min-height:clamp(330px,41vw,500px)!important;
  max-height:none!important;
  overflow:hidden!important;
  transform:none!important;
}
.lustro-inspired .trust-steps{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;height:auto!important}
.lustro-inspired .trust-step{height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;transform:none!important;overflow:hidden!important}

/* BRIDGE: all three panes stay inside section rail and participate in height. */
.lustro-inspired .bridge-shell{
  position:relative!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:minmax(210px,.72fr) minmax(330px,1.22fr) minmax(210px,.72fr)!important;
  gap:clamp(8px,1vw,14px)!important;
  align-items:stretch!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  transform:none!important;
}
.lustro-inspired .bridge-pane,
.lustro-inspired .bridge-core{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:clamp(12px,1.35vw,18px)!important;
  overflow:hidden!important;
  transform:none!important;
}
.lustro-inspired .bridge-pane h3{font-size:clamp(1.35rem,1.9vw,1.95rem)!important;line-height:1.04!important}
.lustro-inspired .bridge-receipt,.lustro-inspired .bridge-summary{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  max-width:1420px!important;
  height:auto!important;
  margin:clamp(8px,1.2vh,14px) auto 0!important;
  overflow:hidden!important;
  white-space:normal!important;
  transform:none!important;
}

/* Audience pages and remaining card systems. */
.lustro-inspired :where(.risk-layout,.workflow-shell,.contract-layout,.story-layout,.pilot-layout,.solution-shell){
  position:relative!important;
  inset:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  transform:none!important;
}
.lustro-inspired .risk-layout{display:grid!important;grid-template-columns:minmax(300px,.86fr) minmax(0,1.14fr)!important;gap:clamp(12px,2vw,26px)!important}
.lustro-inspired .risk-sticky{position:relative!important;top:auto!important;inset:auto!important;height:auto!important;max-height:none!important;transform:none!important}
.lustro-inspired :where(.risk-list,.workflow-steps,.solution-columns,.founding-grid,.gateway-grid){height:auto!important;max-height:none!important;overflow:visible!important;gap:clamp(8px,1vw,14px)!important}
.lustro-inspired :where(.risk-card,.workflow-step,.workflow-card,.solution-column,.founding-card,.gateway-card,.progressive-card){height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important}

/* Hover/focus may repaint only. It must never alter box geometry or cause overlap. */
.lustro-inspired main :where(
  .problem-grid article,.perspective-card,.trust-step,.risk-card,.workflow-step,.workflow-card,
  .solution-column,.founding-card,.gateway-card,.bridge-pane,.bridge-core,.persona-chip,
  .persona-chips button,.identity-rights-stack article,.principle-strip>div,.progressive-card
),
.lustro-inspired main :where(
  .problem-grid article,.perspective-card,.trust-step,.risk-card,.workflow-step,.workflow-card,
  .solution-column,.founding-card,.gateway-card,.bridge-pane,.bridge-core,.persona-chip,
  .persona-chips button,.identity-rights-stack article,.principle-strip>div,.progressive-card
):hover,
.lustro-inspired main :where(
  .problem-grid article,.perspective-card,.trust-step,.risk-card,.workflow-step,.workflow-card,
  .solution-column,.founding-card,.gateway-card,.bridge-pane,.bridge-core,.persona-chip,
  .persona-chips button,.identity-rights-stack article,.principle-strip>div,.progressive-card
):focus-within{
  transform:none!important;
  translate:none!important;
  scale:1!important;
  inset:auto!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
.lustro-inspired main :where(.problem-grid article,.perspective-card,.trust-step,.risk-card,.workflow-step,.workflow-card,.solution-column,.founding-card,.gateway-card,.persona-chips button,.identity-rights-stack article,.progressive-card){
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease,color .18s ease,opacity .18s ease!important;
}

/* Dock remains outside the content safe zone. */
.lustro-inspired .chapter-dock,
.lustro-inspired .chapter-rail,
.lustro-inspired [class*="chapter-dock"]{
  position:fixed!important;
  right:clamp(8px,1vw,14px)!important;
  z-index:900!important;
  width:clamp(46px,4vw,56px)!important;
  background:rgba(5,18,31,.32)!important;
  border-color:rgba(140,224,255,.20)!important;
  backdrop-filter:blur(18px) saturate(120%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(120%)!important;
}

/* Short laptop density: compact without fixed heights or zoom. */
@media (min-width:1081px) and (max-height:800px){
  :root{--v19-section-y:10px}
  .lustro-inspired .section-heading{margin-bottom:10px!important}
  .lustro-inspired .section-heading h2{font-size:clamp(1.85rem,3.1vw,3.25rem)!important}
  .lustro-inspired .home-hero h1{font-size:clamp(2.65rem,4.55vw,4.85rem)!important}
  .v8-identity-stack{max-width:500px!important}
  .lustro-inspired #why .problem-copy h3{font-size:clamp(1.25rem,2vw,2rem)!important}
  .lustro-inspired #why .problem-grid article{padding:10px 12px!important}
  .lustro-inspired .trust-visual{min-height:320px!important}
  .lustro-inspired .bridge-pane,.lustro-inspired .bridge-core{padding:10px!important}
}

@media (max-width:1080px){
  :root{--v19-dock-safe:0px}
  .lustro-inspired .chapter-dock,.lustro-inspired .chapter-rail,.lustro-inspired [class*="chapter-dock"]{display:none!important}
  .lustro-inspired main>section{padding-right:var(--v19-edge)!important}
  .lustro-inspired .home-hero-layout,.lustro-inspired .audience-hero-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.78fr)!important;gap:18px!important}
  .lustro-inspired .bridge-shell{grid-template-columns:minmax(180px,.72fr) minmax(300px,1.15fr) minmax(180px,.72fr)!important}
}

@media (max-width:820px){
  .lustro-inspired .section-heading{grid-template-columns:1fr!important;gap:8px!important}
  .lustro-inspired .home-hero-layout,.lustro-inspired .audience-hero-layout,
  .lustro-inspired #why .problem-intro,.lustro-inspired .trust-stack,
  .lustro-inspired .risk-layout,.lustro-inspired .workflow-shell,
  .lustro-inspired .contract-layout,.lustro-inspired .story-layout,
  .lustro-inspired .pilot-layout,.lustro-inspired .bridge-shell{grid-template-columns:1fr!important}
  .lustro-inspired .trust-steps{grid-template-columns:1fr 1fr!important}
  .lustro-inspired .bridge-core{order:1!important}.lustro-inspired .bridge-pane:first-child{order:2!important}.lustro-inspired .bridge-pane:last-child{order:3!important}
  .v8-identity-stack{max-width:520px!important}
}

@media (max-width:620px){
  :root{--v19-edge:10px;--v19-section-y:10px}
  .lustro-inspired .header-inner{min-height:62px!important}
  .lustro-inspired main>section{min-height:auto!important;padding-top:14px!important;padding-bottom:22px!important}
  .lustro-inspired .home-hero h1{font-size:clamp(2.25rem,11vw,3.55rem)!important}
  .lustro-inspired .section-heading h2{font-size:clamp(1.75rem,8.8vw,2.8rem)!important}
  .lustro-inspired #why .problem-grid{grid-template-columns:1fr!important}
  .lustro-inspired #why .perspective-duo,.lustro-inspired #why .perspectives{grid-template-columns:1fr!important}
  .lustro-inspired #why .perspective-link{min-height:28px!important}
  .lustro-inspired .trust-steps{grid-template-columns:1fr!important}
  .identity-rights-stack{grid-template-columns:1fr!important}
}
