/* ============================================================
   HOUSE TEMPLATE — house.css
   Kryntix premium web design + Textura cinematic 3D light
   Dragon LLC house standard. One template, every fleet site.
   Tokens: gold light #d9e89a / #d4af37, ink #07090a, sage #7d8b7a.
   CTA rule: no default buttons anywhere. A call to action is part
   of the world — a gate, an arch, a lit doorway in the same light
   and physics as the scene it sits in.
   ============================================================ */
:root{
  --house-gold:#d9e89a; --house-gold-deep:#a8c256; --house-gold-royal:#d4af37;
  --house-ink:#07090a; --house-panel:#11161a; --house-text:#e6e1d3;
  --house-dim:#9aa294; --house-sage:#7d8b7a; --house-line:rgba(125,139,122,.34);
  --house-glow:0 0 22px rgba(217,232,154,.55), 0 0 60px rgba(168,194,86,.25);
  --house-font:"Avenir Next","Segoe UI",Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.house{
  margin:0; background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(125,139,122,.16), rgba(0,0,0,0) 60%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(68,80,63,.12), rgba(0,0,0,0) 65%),
    var(--house-ink);
  color:var(--house-text); font-family:var(--house-font); font-weight:300; line-height:1.6;
}
/* Textura 3D canvas sits behind the hero, same gold light as the scene */
.house-scene{position:relative; overflow:hidden; isolation:isolate}
.house-scene > canvas.house-3d{position:absolute; inset:0; width:100%; height:100%; display:block; z-index:0; pointer-events:none}
.house-scene > *{position:relative; z-index:1}
.house-hero{min-height:62vh; display:grid; place-items:center; text-align:center; padding:72px 20px 56px}
.house-brand{font-weight:900; letter-spacing:.233em; font-size:clamp(22px,4vw,30px); color:var(--house-gold); text-shadow:0 0 22px rgba(217,232,154,.6)}
.house-hero h1{font-size:clamp(34px,6vw,60px); font-weight:300; letter-spacing:.06em; margin:14px 0 8px; color:#f2eee1}
.house-hero p.house-lede{color:var(--house-dim); max-width:640px; margin:0 auto; font-size:clamp(15px,2.4vw,18px)}
.house-section{max-width:1100px; margin:0 auto; padding:56px 20px}
.house-section h2{font-size:clamp(24px,4vw,34px); font-weight:300; letter-spacing:.12em; color:#f2eee1; margin:0 0 10px}
.house-section p{color:var(--house-dim)}
.house-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; margin-top:26px}
.house-card{border:1px solid var(--house-line); border-radius:22px 4px 22px 4px; padding:24px;
  background:linear-gradient(155deg, rgba(230,225,211,.075), rgba(230,225,211,0) 38%), linear-gradient(180deg,#141a1c,#0a0d0e);
  box-shadow:inset 0 1px 0 rgba(230,225,211,.16), 0 18px 40px rgba(0,0,0,.6)}
.house-card h3{margin:0 0 8px; font-size:19px; font-weight:600; color:var(--house-gold); letter-spacing:.04em}
.house-card p{margin:0; font-size:15px}
/* ---- Scroll animation (Kryntix): elements rise + fade as they enter ---- */
.house-reveal{opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1)}
.house-reveal.house-in{opacity:1; transform:none}
.house-reveal[data-delay="1"]{transition-delay:.12s}
.house-reveal[data-delay="2"]{transition-delay:.24s}
.house-reveal[data-delay="3"]{transition-delay:.36s}
/* ---- CTA AS PART OF THE WORLD (never a default button) ----
   The gate: an arch of the same gold light as the scene. The link
   lives inside the doorway; hovering brightens the light and the
   doorway opens (the arch widens, the glow deepens). Same light,
   same physics, same language as the scene. */
.world-cta{display:flex; flex-direction:column; align-items:center; gap:0; padding:64px 20px 72px; text-align:center}
.world-cta .gate{position:relative; display:inline-block; padding:34px 54px 30px; text-decoration:none; color:var(--house-text)}
.world-cta .gate::before{content:""; position:absolute; inset:0; border:1px solid var(--house-gold-deep); border-radius:50% 50% 8px 8px / 100% 100% 8px 8px;
  background:radial-gradient(ellipse 70% 90% at 50% 100%, rgba(217,232,154,.28), rgba(217,232,154,.05) 55%, transparent 75%);
  box-shadow:var(--house-glow), inset 0 0 34px rgba(217,232,154,.18);
  transition:transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease}
.world-cta .gate:hover::before,.world-cta .gate:focus-visible::before{transform:scaleX(1.07) scaleY(1.04);
  box-shadow:0 0 34px rgba(217,232,154,.8), 0 0 90px rgba(168,194,86,.4), inset 0 0 44px rgba(217,232,154,.3)}
.world-cta .gate .gate-kicker{display:block; font-size:11px; letter-spacing:.42em; text-transform:uppercase; color:var(--house-dim); margin-bottom:6px}
.world-cta .gate .gate-label{display:block; font-size:clamp(20px,3.4vw,26px); font-weight:700; letter-spacing:.14em; color:var(--house-gold); text-shadow:0 0 18px rgba(217,232,154,.55)}
.world-cta .gate .gate-sub{display:block; margin-top:6px; font-size:13px; color:var(--house-dim); letter-spacing:.08em}
.world-cta .gate:focus-visible{outline:2px solid var(--house-gold); outline-offset:6px}
/* Kill default-button look anywhere the template is applied */
.house a.house-btn, .house button.house-btn{display:none}
.house-foot{border-top:1px solid var(--house-line); padding:26px 20px 40px; text-align:center; color:var(--house-dim); font-size:13px; letter-spacing:.14em}
.house-foot b{color:var(--house-gold); font-weight:600}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important; transition:none!important}
  .house-reveal{opacity:1; transform:none}
  html{scroll-behavior:auto}
}
