/* ============================================================
   DRG0NF1Y UNIFIED SITE SHELL
   One header, navigation system, footer, and brand treatment for
   every public page. Loaded last so page-specific content remains
   intact while the shared layout stays consistent.
   ============================================================ */
:root{
  --shell-max:1480px;
  --shell-pad:clamp(16px,3vw,44px);
  --shell-header-h:78px;
  --shell-black:#04030a;
  --shell-panel:rgba(13,8,24,.96);
  --shell-line:rgba(192,132,252,.28);
  --shell-text:#f7f4ff;
  --shell-muted:#c8bddb;
  --shell-violet:#a855f7;
  --shell-lav:#d8b4fe;
}
html{scroll-padding-top:calc(var(--shell-header-h) + 22px)}
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background-color:var(--shell-black)!important;
}
body>main, body>[role="main"], body>.wrap#main{flex:1 0 auto}
img{max-width:100%}

/* ---------- shared header ---------- */
.site-header{
  position:sticky!important;
  inset:0 0 auto 0;
  z-index:1000!important;
  width:100%;
  padding:0!important;
  background:rgba(4,3,10,.92)!important;
  border-bottom:1px solid var(--shell-line)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.34);
  backdrop-filter:blur(18px) saturate(130%);
}
.site-header::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(192,132,252,.85),transparent);
  pointer-events:none;
}
.site-header-inner{
  width:min(var(--shell-max),calc(100% - (var(--shell-pad) * 2)));
  min-height:var(--shell-header-h);
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:18px;
}
.site-header .logo-brand{
  flex:0 0 auto;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:48px!important;
  display:flex!important;
  align-items:center;
  justify-content:flex-start;
  padding:0;
  overflow:hidden;
  border:none!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
}
.site-header .logo-brand img{
  width:auto!important;
  height:44px!important;
  object-fit:contain!important;
  object-position:left center!important;
  display:block;
  filter:drop-shadow(0 0 8px rgba(63,208,201,.3));
}
.site-header .nav-toggle{
  display:none;
  flex:0 0 46px;
  width:46px;height:46px;
  margin-left:auto;
  align-items:center;
  justify-content:center;
  border:1px solid var(--shell-line);
  border-radius:12px;
  background:rgba(168,85,247,.08);
  color:#fff;
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
}
.site-header .site-nav{
  position:static;
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
  color:var(--shell-muted);
  font-size:.84rem;
  min-width:0;
}
.site-header .site-nav>a,
.site-header .nav-group>summary{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 11px;
  border:1px solid transparent;
  border-radius:10px;
  color:var(--shell-muted);
  font-weight:800;
  letter-spacing:.015em;
  white-space:nowrap;
  cursor:pointer;
  list-style:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.site-header .nav-group>summary::-webkit-details-marker{display:none}
.site-header .nav-group>summary::after{content:"⌄";font-size:.82em;color:var(--shell-lav);transform:translateY(-1px)}
.site-header .nav-group.contains-current>summary{color:#fff;border-color:rgba(192,132,252,.30);background:rgba(168,85,247,.10)}
.site-header .site-nav>a:hover,
.site-header .site-nav>a:focus-visible,
.site-header .nav-group>summary:hover,
.site-header .nav-group>summary:focus-visible,
.site-header .site-nav>a[aria-current="page"]{
  color:#fff;
  border-color:rgba(192,132,252,.30);
  background:rgba(168,85,247,.10);
}
.site-header .site-nav>a::after{display:none!important}
.site-header .nav-group{position:relative}
.site-header .nav-menu{
  position:absolute;
  top:calc(100% + 11px);
  left:0;
  z-index:1100;
  min-width:255px;
  display:grid;
  gap:4px;
  padding:10px;
  border:1px solid var(--shell-line);
  border-radius:15px;
  background:var(--shell-panel);
  box-shadow:0 24px 60px rgba(0,0,0,.62),0 0 34px rgba(124,58,237,.12);
}
.site-header .nav-group:not([open]) .nav-menu{display:none}
.site-header .nav-menu a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 12px;
  border-radius:9px;
  color:var(--shell-muted);
  font-weight:700;
  line-height:1.2;
}
.site-header .nav-menu a:hover,
.site-header .nav-menu a:focus-visible,
.site-header .nav-menu a[aria-current="page"]{
  color:#fff;
  background:rgba(168,85,247,.12);
}
.site-header .nav-login{
  border-color:rgba(192,132,252,.28)!important;
  background:rgba(255,255,255,.035)!important;
}
.site-header .nav-cta{
  min-height:42px!important;
  padding:0 15px!important;
  border-radius:10px!important;
  clip-path:none!important;
  background:linear-gradient(135deg,#7c3aed,#a855f7)!important;
  border:1px solid rgba(216,180,254,.6)!important;
  color:#fff!important;
  box-shadow:0 0 25px rgba(168,85,247,.25)!important;
  text-transform:none!important;
  letter-spacing:.015em!important;
  font-size:.84rem!important;
}

/* ---------- shared footer ---------- */
.site-footer{
  flex:0 0 auto;
  display:block!important;
  width:100%;
  margin-top:auto;
  padding:0!important;
  border-top:1px solid var(--shell-line)!important;
  background:linear-gradient(180deg,rgba(10,6,18,.96),rgba(4,3,10,1));
}
.site-footer::before{content:none!important;display:none!important}
.site-footer-inner{
  width:min(var(--shell-max),calc(100% - (var(--shell-pad) * 2)));
  margin:0 auto;
  padding:48px 0 24px;
}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) repeat(3,minmax(150px,.75fr));
  gap:clamp(26px,4vw,58px);
  align-items:start;
}
.footer-brand-lockup{display:grid;grid-template-columns:78px minmax(0,1fr);gap:16px;align-items:center}
.footer-emblem{
  width:78px;height:78px;object-fit:cover;border-radius:18px;
  border:1px solid rgba(192,132,252,.3);
  box-shadow:0 0 30px rgba(168,85,247,.18);
}
.footer-wordmark img{
  width:min(100%,330px)!important;
  height:auto!important;
  object-fit:contain!important;
  display:block;
}
.footer-brand-copy{max-width:430px;margin:18px 0 0!important;color:var(--shell-muted)!important;font-size:.92rem!important;line-height:1.65}
.footer-title{margin:0 0 13px;color:#fff;font-size:.78rem;text-transform:uppercase;letter-spacing:.16em}
.footer-links{display:grid;gap:9px}
.footer-links a{color:var(--shell-muted);font-size:.9rem}
.footer-links a:hover{color:#fff}
.footer-bottom{
  margin-top:36px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.footer-bottom p{margin:0!important;color:#a99fc9!important;font-size:.82rem!important}
.footer-bottom .df-tagline{color:var(--shell-lav)!important;letter-spacing:.27em!important}

/* ---------- founder / about content ---------- */
.founder-section{padding-top:72px!important;padding-bottom:96px!important}
.founder-layout{
  width:min(1240px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);
  gap:clamp(34px,6vw,84px);
  align-items:center;
}
.founder-photo-frame{
  position:relative;
  padding:10px;
  border:1px solid rgba(192,132,252,.35);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(168,85,247,.18),rgba(255,255,255,.035));
  box-shadow:0 28px 80px rgba(0,0,0,.48),0 0 42px rgba(124,58,237,.16);
  overflow:hidden;
}
.founder-photo-frame::after{
  content:"";position:absolute;inset:10px;border-radius:18px;pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.founder-photo-frame img{width:100%;aspect-ratio:1/1;display:block;object-fit:cover;border-radius:18px}
.founder-copy{max-width:760px}
.founder-copy h2{margin-bottom:10px}
.founder-role{margin:0 0 20px!important;color:var(--shell-lav)!important;font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:.82rem!important}
.founder-points{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:26px 0}
.founder-points div{padding:15px;border:1px solid rgba(192,132,252,.2);border-radius:14px;background:rgba(255,255,255,.035)}
.founder-points strong{display:block;color:#fff;font-size:.9rem;margin-bottom:4px}
.founder-points span{display:block;color:var(--shell-muted);font-size:.82rem;line-height:1.45}
.brand-emblem-inline{width:86px;height:86px;object-fit:cover;border-radius:20px;border:1px solid rgba(192,132,252,.3);box-shadow:0 0 30px rgba(168,85,247,.18)}

/* ---------- consistency fixes ---------- */
body:not(.page-index) main{min-height:50vh}
.clean-hero,.page-hero{position:relative}
.clean-hero::after,.page-hero::after{
  content:"";position:absolute;right:clamp(18px,7vw,100px);top:50%;width:clamp(86px,10vw,150px);aspect-ratio:1;
  transform:translateY(-50%);background:url('brand-emblem.png') center/cover no-repeat;border-radius:28px;
  opacity:.14;filter:drop-shadow(0 0 20px rgba(168,85,247,.3));pointer-events:none;
}
body.page-mini-scan .wrap#main{width:min(1180px,calc(100% - 32px));padding-top:54px}
body.page-intake main{padding-top:0}
body.page-youtube main{width:min(900px,calc(100% - 32px));margin:auto;padding:90px 0;text-align:center}

@media(max-width:1180px){
  :root{--shell-header-h:72px}
  .site-header-inner{min-height:var(--shell-header-h)}
  .site-header .logo-brand{flex-basis:auto;width:auto!important;height:44px!important}
  .site-header .nav-toggle{display:inline-flex!important}
  .site-header .site-nav{
    display:none!important;
    position:absolute!important;
    top:calc(100% + 1px)!important;
    left:var(--shell-pad)!important;
    right:var(--shell-pad)!important;
    margin:0!important;
    max-height:calc(100vh - 92px);
    overflow:auto;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:6px!important;
    padding:14px!important;
    border:1px solid var(--shell-line);
    border-top:0;
    border-radius:0 0 18px 18px;
    background:rgba(4,3,10,.985)!important;
    box-shadow:0 28px 60px rgba(0,0,0,.65);
  }
  .site-header .site-nav.open{display:flex!important}
  .site-header .site-nav>a,.site-header .nav-group>summary{width:100%;justify-content:flex-start;min-height:46px;padding:0 13px}
  .site-header .nav-group{width:100%}
  .site-header .nav-menu{position:static;min-width:0;margin:4px 0 2px;padding:5px 8px 8px;border:0;border-left:1px solid rgba(192,132,252,.3);border-radius:0;background:transparent;box-shadow:none}
  .site-header .nav-menu a{padding-left:17px}
  .site-header .nav-cta{justify-content:center!important;margin-top:3px}
}
@media(max-width:820px){
  .site-header-inner{width:calc(100% - 24px);gap:10px}
  .site-header .logo-brand{flex-basis:auto;width:auto!important;height:38px!important;padding:0}
  .site-header .site-nav{left:12px!important;right:12px!important}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-grid>div:first-child{grid-column:1/-1}
  .founder-layout{grid-template-columns:1fr}
  .founder-photo-frame{width:min(100%,520px);margin:0 auto}
  .founder-points{grid-template-columns:1fr}
  .clean-hero::after,.page-hero::after{display:none}
}
@media(max-width:520px){
  .footer-grid{grid-template-columns:1fr}
  .footer-grid>div:first-child{grid-column:auto}
  .footer-brand-lockup{grid-template-columns:62px 1fr}
  .footer-emblem{width:62px;height:62px;border-radius:14px}
  .footer-bottom{align-items:flex-start;flex-direction:column}
}
