/* Homepage editorial refinement: preserves the candlelit Piper identity while
   creating a clearer hierarchy and a dedicated OCIA Companion feature. */

body.piper-editorial-home{
  background:
    radial-gradient(circle at 50% 20%,rgba(157,124,77,.055),transparent 34%),
    #0c0c0b;
}

.home-v6-hero.home-v8-refined{
  box-shadow:0 34px 95px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.035);
}
.home-v6-hero.home-v8-refined .home-v6-hero-grain{
  filter:saturate(.94) brightness(1.08)!important;
}
.home-v6-hero.home-v8-refined::after{
  opacity:1;
  z-index:-1;
  background:
    linear-gradient(90deg,rgba(5,5,4,.2),rgba(5,5,4,.04) 48%,rgba(5,5,4,.12)),
    linear-gradient(180deg,rgba(0,0,0,.08),transparent 55%,rgba(0,0,0,.2));
}
.home-v6-hero.home-v8-refined .home-v6-manifesto-copy{
  max-width:760px;
  color:#c8bdad;
  font-size:.94rem;
}
.home-v6-hero.home-v8-refined .home-v6-button{
  min-height:46px;
}
.home-v6-hero.home-v8-refined .home-v6-button-secondary{
  background:rgba(12,11,9,.28);
  backdrop-filter:blur(6px);
}

/* The OCIA feature gives the homepage one deliberate light chapter between
   the dark hero and research index. */
.home-v8-ocia{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr);
  gap:clamp(38px,6vw,86px);
  align-items:center;
  width:100%;
  margin:clamp(48px,6vw,76px) auto 0;
  padding:clamp(44px,6vw,76px);
  overflow:hidden;
  border:1px solid #c6a878;
  background:
    radial-gradient(circle at 88% 22%,rgba(185,148,71,.18),transparent 25%),
    linear-gradient(135deg,#fbf7ee 0%,#efe5d3 100%);
  color:#162f43;
  box-shadow:0 28px 74px rgba(0,0,0,.28);
}
.home-v8-ocia::before{
  content:"";
  position:absolute;
  inset:10px;
  z-index:-1;
  pointer-events:none;
  border:1px solid rgba(142,105,51,.28);
}
.home-v8-ocia::after{
  content:"";
  position:absolute;
  right:-120px;
  bottom:-220px;
  z-index:-1;
  width:520px;
  aspect-ratio:1;
  border:1px solid rgba(157,119,61,.14);
  border-radius:50%;
  box-shadow:0 0 0 48px rgba(157,119,61,.035),0 0 0 96px rgba(157,119,61,.025);
}
.home-v8-ocia-copy{max-width:735px}
.home-v8-ocia-kicker{
  display:block;
  color:#8a6734;
  font:800 .69rem/1.35 Arial,sans-serif;
  letter-spacing:.17em;
  text-transform:uppercase;
}
.home-v8-cross{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  margin:20px 0 13px;
  border:1px solid rgba(142,105,51,.42);
  border-radius:50%;
  color:#9b753d;
  font-size:.8rem;
}
.home-v8-ocia h2{
  max-width:760px;
  margin:0;
  color:#15344b;
  font:400 clamp(2.4rem,4.6vw,4.4rem)/.99 Georgia,'Times New Roman',serif;
  letter-spacing:-.035em;
}
.home-v8-ocia-copy>p{
  max-width:690px;
  margin:22px 0 0;
  color:#55636b;
  font-size:1rem;
  line-height:1.75;
}
.home-v8-ocia-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:28px;
}
.home-v8-ocia-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 18px;
  border:1px solid #17384f;
  color:#17384f;
  font:800 .72rem/1 Arial,sans-serif;
  letter-spacing:.07em;
  text-decoration:none;
  text-transform:uppercase;
  transition:transform .18s ease,background-color .18s ease,color .18s ease;
}
.home-v8-ocia-actions a:hover{transform:translateY(-2px)}
.home-v8-ocia-actions .home-v8-ocia-primary{
  background:#15344b;
  color:#fffaf1;
}
.home-v8-ocia-actions .home-v8-ocia-primary span{margin-left:10px;color:#dabb7b}
.home-v8-ocia-actions .home-v8-ocia-secondary{border-color:#b28a4d}
.home-v8-ocia-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:34px 0 0;
  padding:18px 0 0;
  border-top:1px solid rgba(94,73,44,.24);
}
.home-v8-ocia-stats>div{padding:0 18px;border-right:1px solid rgba(94,73,44,.2)}
.home-v8-ocia-stats>div:first-child{padding-left:0}
.home-v8-ocia-stats>div:last-child{border-right:0}
.home-v8-ocia-stats dt{
  color:#17384f;
  font:700 1.3rem/1 Georgia,'Times New Roman',serif;
}
.home-v8-ocia-stats dd{
  margin:6px 0 0;
  color:#7a6f60;
  font:800 .64rem/1.35 Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.home-v8-ocia-book{
  position:relative;
  display:grid;
  justify-items:center;
  margin:0;
}
.home-v8-ocia-halo{
  position:absolute;
  top:50%;
  left:50%;
  width:min(360px,92%);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(185,148,71,.3),rgba(185,148,71,.06) 48%,transparent 70%);
  filter:blur(4px);
}
.home-v8-ocia-book img{
  position:relative;
  width:min(270px,82%);
  height:auto;
  border:1px solid rgba(215,188,126,.74);
  box-shadow:0 24px 46px rgba(35,29,19,.28),-12px 11px 0 rgba(255,255,255,.42);
  transform:rotate(1.2deg);
}
.home-v8-ocia-book figcaption{
  position:relative;
  margin-top:18px;
  color:#79643f;
  font:800 .62rem/1 Arial,sans-serif;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.home-v6-explore{margin-top:clamp(34px,4vw,52px)!important}
.home-v6-explore-head p{font-size:.9rem}
.home-v6-explore .home-v6-feature-main p{font-size:.84rem}
.home-v6-compact-list strong,.home-v6-library-links strong{font-size:1rem}

@media(min-width:721px){
  .home-v6-hero.home-v8-refined{min-height:740px}
  .home-v6-hero.home-v8-refined .home-v6-brand-stage{
    grid-template-columns:minmax(230px,.66fr) minmax(0,1.34fr)!important;
    width:min(1060px,90%)!important;
    padding:48px 0 14px!important;
  }
  .home-v6-hero.home-v8-refined .home-v6-mark-wrap{
    min-height:320px!important;
    background-size:228px auto!important;
  }
  .home-v6-hero.home-v8-refined .home-v6-wordmark h1 span:first-child{
    font-size:clamp(3.8rem,5.8vw,5.8rem)!important;
  }
  .home-v6-hero.home-v8-refined .home-v6-wordmark h1 span:last-child{
    font-size:clamp(1.95rem,3.1vw,3.1rem)!important;
  }
  .home-v6-hero.home-v8-refined .home-v6-manifesto{padding:25px 0 30px}
}

@media(max-width:900px){
  .home-v8-ocia{grid-template-columns:minmax(0,1fr) minmax(205px,.5fr);gap:30px;padding:42px 34px}
  .home-v8-ocia h2{font-size:clamp(2.25rem,6vw,3.4rem)}
  .home-v8-ocia-book img{width:min(215px,90%)}
}

@media(max-width:720px){
  .home-v6-hero.home-v8-refined .home-v6-foundations{
    font-size:.65rem!important;
    line-height:1.55!important;
  }
  .home-v6-hero.home-v8-refined .home-v6-manifesto .home-v6-manifesto-cite{
    font-size:.68rem!important;
  }
  .home-v6-hero.home-v8-refined .home-v6-actions{
    grid-template-columns:1fr 1fr!important;
  }
  .home-v6-hero.home-v8-refined .home-v6-actions .home-v6-button{
    font-size:.66rem!important;
  }

  .home-mobile-quick-grid small,.home-mobile-feature>small{font-size:.68rem}
  .home-mobile-quick-grid span{font-size:.78rem}
  .home-mobile-feature p{font-size:.86rem}
  .home-mobile-feature a{font-size:.72rem}

  .home-v8-ocia{
    grid-template-columns:1fr;
    width:100%;
    margin:12px auto 0;
    padding:31px 20px 28px;
  }
  .home-v8-ocia::before{inset:7px}
  .home-v8-ocia::after{right:-210px;bottom:-250px}
  .home-v8-ocia-book{order:-1}
  .home-v8-ocia-book img{
    width:min(168px,56vw);
    box-shadow:0 18px 36px rgba(35,29,19,.24),-7px 7px 0 rgba(255,255,255,.4);
  }
  .home-v8-ocia-book figcaption{margin-top:13px;font-size:.7rem}
  .home-v8-ocia-kicker{margin-top:2px;font-size:.72rem;text-align:center}
  .home-v8-cross{margin:16px auto 12px}
  .home-v8-ocia h2{
    font-size:clamp(2rem,10.5vw,2.75rem);
    line-height:1.02;
    text-align:center;
  }
  .home-v8-ocia-copy>p{
    margin-top:17px;
    font-size:1rem;
    line-height:1.65;
    text-align:center;
  }
  .home-v8-ocia-actions{display:grid;grid-template-columns:1fr;margin-top:22px}
  .home-v8-ocia-actions a{width:100%;min-height:46px}
  .home-v8-ocia-stats{grid-template-columns:1fr;gap:0;margin-top:25px;padding-top:0}
  .home-v8-ocia-stats>div{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:18px;
    padding:13px 0;
    border-right:0;
    border-bottom:1px solid rgba(94,73,44,.18);
  }
  .home-v8-ocia-stats>div:last-child{border-bottom:0}
  .home-v8-ocia-stats dt{font-size:1.08rem}
  .home-v8-ocia-stats dd{font-size:.68rem;text-align:right}
}

@media(prefers-reduced-motion:reduce){
  .home-v8-ocia-actions a{transition:none}
}



/* Force photographic door strips to stay visible (Director #56 re-check). */
.home-v6-doors .home-v6-explore-column::before,
.home-v6-explore.home-v6-doors .home-v6-explore-column::before{
  display:block !important;
  min-height:148px;
  height:clamp(148px,16vw,196px);
  opacity:1 !important;
  visibility:visible !important;
  background-color:#17130f;
  background-size:cover !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
}
.home-v6-doors .home-v6-explore-latest::before{
  background-image:linear-gradient(180deg,rgba(11,9,7,.02) 35%,rgba(11,9,7,.22) 100%),url('/assets/home-explore-questions-v1.webp?v=20260915-doors-photo1') !important;
}
.home-v6-doors .home-v6-explore-questions::before{
  background-image:linear-gradient(180deg,rgba(11,9,7,.02) 35%,rgba(11,9,7,.22) 100%),url('/assets/home-explore-studies-v1.webp?v=20260915-doors-photo1') !important;
}
.home-v6-doors .home-v6-explore-library::before{
  background-image:linear-gradient(180deg,rgba(11,9,7,.02) 35%,rgba(11,9,7,.24) 100%),url('/assets/home-explore-sources-v1.webp?v=20260915-doors-photo1') !important;
}
.home-v6-doors .home-v6-explore-head{
  min-height:260px;
  background:
    linear-gradient(180deg,rgba(12,11,9,.12) 0%,rgba(12,11,9,.38) 58%,rgba(12,11,9,.78) 100%),
    linear-gradient(90deg,rgba(12,11,9,.08),rgba(12,11,9,.22) 50%,rgba(12,11,9,.08)),
    url('/assets/home-explore-research-trail-v1.webp?v=20260915-doors-photo1') center 54%/cover no-repeat !important;
}

/* Restored dark three-door chrome (not cream slabs). Photography lives on
   .home-v6-explore-column via launch-shell.css; these rules deepen contrast. */
.home-v6-doors .home-v6-framing,
.home-v6-explore-head .home-v6-framing{
  max-width:46rem;
  margin:0 auto;
  color:#d8d0c5;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:clamp(1.02rem,2vw,1.22rem);
  line-height:1.5;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
.home-v6-hero .home-v6-framing,
.home-v6-manifesto-copy.home-v6-framing{
  color:#c8bdad;
  text-shadow:none;
}
.home-v6-door-blurb{
  margin:14px 0 0;
  color:#c9bfb0;
  font-size:.9rem;
  line-height:1.5;
}
.home-v6-door-actions-inline{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.home-v6-door-actions-inline a{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(198,168,120,.42);
  background:linear-gradient(180deg,#d2bb93,#aa8d62);
  color:#18140f;
  text-decoration:none;
  font-size:.78rem;
  font-weight:700;
}
.home-v6-door-actions-inline a:last-child{
  background:transparent;
  color:#e7dcc8;
  border-color:rgba(198,168,120,.38);
}
.home-v6-feature-main .home-v6-feature-cta{
  display:inline-flex;
  margin-top:auto;
  color:#e7dcc8;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.home-v6-feature-side a{
  display:grid;
  gap:6px;
  padding:14px 0;
  border-bottom:1px solid rgba(198,168,120,.16);
  color:inherit;
  text-decoration:none;
}
.home-v6-feature-side a:last-child{border-bottom:0}
.home-v6-feature-side a span{color:#c7a46d;font-size:.78rem}
.home-v6-compact-list a{
  display:grid;
  grid-template-columns:1fr auto;
  gap:6px 12px;
  width:100%;
  padding:14px 4px;
  border:0;
  border-bottom:1px solid rgba(198,168,120,.16);
  background:transparent;
  color:inherit;
  text-align:left;
  text-decoration:none;
}
.home-v6-compact-list a small{grid-column:1/-1;color:#c7a46d}
.home-v6-compact-list a strong{color:#f0e9de;font-size:1rem;line-height:1.35}
.home-v6-compact-list a span{color:#c7a46d;align-self:center}

/* No-JS static doors stay dark/readable on the editorial hero fallback. */
.home-static-doors{
  display:grid;
  gap:12px;
  margin-top:1.2rem;
}
.home-static-doors a{
  display:grid;
  gap:6px;
  padding:16px 18px;
  border:1px solid rgba(198,168,120,.32);
  border-radius:14px;
  background:
    linear-gradient(160deg,rgba(24,20,16,.92),rgba(12,11,9,.96));
  color:#efe9de;
  text-decoration:none;
  box-shadow:0 16px 36px rgba(0,0,0,.28);
}
.home-static-doors strong{font-size:1.08rem;color:#f4efe6}
.home-static-doors span{opacity:.9;font-size:.95rem;color:#d0c6b6}
.home-mobile-framing{
  margin:0 0 14px;
  color:#d0c6b6;
  font-size:.95rem;
  line-height:1.45;
}
