/*
Theme Name: Legacy Capital — Coming Soon
Theme URI: https://legacycapitaldev.com
Author: Legacy Capital Development
Description: A cinematic, architectural "Coming Soon" teaser for Legacy Capital Development. Full-screen hero built around the silhouetted center house, with subtle canvas-driven glow, blueprint tracing, parallax depth, and reduced-motion fallbacks. Lightweight — no JS libraries, no third-party trackers.
Version: 1.3.4
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary — All Rights Reserved
Text Domain: legacy-coming-soon
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root{
  --ink:        #101216;   /* deep charcoal base            */
  --ink-2:      #171a1f;   /* panel charcoal                */
  --warm-white: #f3efe7;   /* primary text                  */
  --warm-gray:  #aba498;   /* secondary text                */
  --muted:      #7d776c;   /* tertiary / labels             */
  --gold:       #c9a567;   /* soft gold accent              */
  --gold-soft:  #d9bd85;   /* lighter gold                  */
  --bronze:     #a9824d;   /* bronze accent                 */
  --line:       rgba(201,165,103,.28);
  --hairline:   rgba(243,239,231,.14);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; height:100%; }
html{ -webkit-text-size-adjust:100%; }
body{
  background:var(--ink);
  color:var(--warm-white);
  font-family:"Helvetica Neue",Helvetica,Arial,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-weight:300;
  line-height:1.6;
  overflow:hidden;              /* single viewport, no scroll */
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }

/* Accessible skip / screen-reader helper */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ============================================================
   STAGE + HERO
   ============================================================ */
.stage{
  position:fixed; inset:0;
  overflow:hidden;
  background:var(--ink);
}

/* Hero image layer (parallax-translated) */
.hero{
  position:absolute;
  inset:-6vmax;                 /* bleed so parallax never shows an edge */
  will-change:transform;
  transform:translate3d(0,0,0);
  transition:transform .5s var(--ease);
}
.hero__img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  object-position:50% 54%;      /* keep the silhouette centred, favour ground */
  background-size:cover;
  background-position:50% 54%;
}

/* Canvas that paints the house glow + blueprint tracing */
.fx{
  position:absolute; inset:-6vmax;
  width:calc(100% + 12vmax); height:calc(100% + 12vmax);
  pointer-events:none;
  will-change:transform;
  transition:transform .5s var(--ease);
}

/* Cinematic grading: darken top & bottom, lift the gold on the right,
   and sink a vignette so overlaid type stays legible. */
.grade{ position:absolute; inset:0; pointer-events:none; }
.grade--top{
  background:linear-gradient(180deg,rgba(8,9,11,.74) 0%,rgba(8,9,11,.30) 22%,
             rgba(8,9,11,0) 42%);
}
.grade--bottom{
  background:linear-gradient(0deg,rgba(8,9,11,.90) 0%,rgba(8,9,11,.55) 16%,
             rgba(8,9,11,0) 42%);
}
.grade--vignette{
  background:radial-gradient(130% 120% at 50% 46%,
             rgba(8,9,11,0) 40%,rgba(8,9,11,.34) 78%,rgba(8,9,11,.6) 100%);
}

/* ============================================================
   CONTENT SCAFFOLD (brand / hero copy / footer)
   ============================================================ */
.shell{
  position:relative; z-index:3;
  height:100%;
  display:grid;
  grid-template-rows:auto 1fr auto;
  padding:
    clamp(20px,3.4vw,40px)
    calc(clamp(24px,4.6vw,64px) + env(safe-area-inset-right))
    clamp(20px,3.4vw,40px)
    calc(clamp(24px,4.6vw,64px) + env(safe-area-inset-left));
}

/* --- Masthead --- */
.masthead{
  display:flex; align-items:center; justify-content:center;
  padding:clamp(8px,1.6vh,18px) 0 clamp(10px,2vh,20px);  /* modest breathing room around the logo */
}
.brandmark{
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translateY(-8px);
  animation:rise .9s var(--ease) .15s forwards;
}
.brandmark__logo{
  display:block; height:auto;
  width:clamp(240px,42vw,440px);
  filter:drop-shadow(0 10px 30px rgba(0,0,0,.45));
}

/* --- Centre copy --- */
.hero-copy{
  align-self:center; justify-self:center;
  text-align:center;
  width:100%; max-width:min(var(--maxw),620px);  /* compact reading panel — lets more of the home show */
  margin-inline:auto;
  /* translucent charcoal panel so overlaid type stays legible on the image */
  background:rgba(13,15,19,.36);
  -webkit-backdrop-filter:blur(12px) saturate(1.04);
  backdrop-filter:blur(12px) saturate(1.04);
  border:1px solid var(--hairline);
  border-radius:20px;
  padding:clamp(26px,3.4vw,44px) clamp(24px,3.6vw,52px);
  box-shadow:0 34px 90px -34px rgba(0,0,0,.72), inset 0 1px 0 rgba(243,239,231,.05);
}
.eyebrow{
  display:inline-flex; align-items:center; gap:14px;
  font-size:clamp(12px,1.45vw,16px); letter-spacing:.42em;
  text-transform:uppercase; color:var(--gold-soft); font-weight:400;
  margin:0 0 clamp(18px,3vh,30px);
  opacity:0; animation:fade 1s var(--ease) .5s forwards;
}
.eyebrow::before,.eyebrow::after{
  content:""; width:clamp(18px,4vw,42px); height:1px;
  background:linear-gradient(90deg,transparent,var(--line),transparent);
}

.title{
  font-weight:200;
  font-size:clamp(28px,4.4vw,52px);
  line-height:1.04; letter-spacing:.02em;
  margin:0; color:var(--warm-white);
  text-shadow:0 2px 40px rgba(0,0,0,.45);
  overflow-wrap:break-word;
}
.title .word{
  display:inline-block;
  opacity:0; transform:translateY(22px);
  animation:rise 1.05s var(--ease) forwards;
}

/* blueprint "drawing" line beneath the headline */
.bp-line{
  position:relative; height:1px; width:min(420px,70vw);
  margin:clamp(22px,3.6vh,34px) auto clamp(20px,3vh,30px);
  background:var(--hairline);
  opacity:0; animation:fade 1s var(--ease) 1.2s forwards;
}
.bp-line::before{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,var(--gold) 45%,var(--gold-soft) 50%,
            var(--gold) 55%,transparent);
  transform:translateX(-100%);
  animation:sweep 4.6s var(--ease) 1.8s infinite;
}
.bp-line::after{   /* soft node that rides the sweep */
  content:""; position:absolute; top:50%; left:0; width:5px; height:5px;
  margin:-2.5px 0 0 -2.5px; border-radius:50%;
  background:var(--gold-soft); box-shadow:0 0 12px 2px rgba(201,165,103,.6);
  opacity:0; animation:node 4.6s var(--ease) 1.8s infinite;
}

.lede{
  font-size:clamp(14px,1.55vw,18px);
  color:var(--warm-gray); font-weight:300; letter-spacing:.015em;
  max-width:60ch; margin:0 auto;
  opacity:0; animation:fade 1.1s var(--ease) 1.5s forwards;
}
.lede strong{ color:var(--warm-white); font-weight:400; }
.lede .sub{
  display:block; margin-top:10px;
  font-size:.86em; color:var(--muted);
}

/* --- Footer --- */
.footer{
  display:flex; flex-direction:column; align-items:center; gap:clamp(14px,2.4vh,20px);
  opacity:0; animation:fade 1.1s var(--ease) 1.9s forwards;
}
.footer__tag{
  font-size:clamp(11px,1.15vw,13px); letter-spacing:.24em; text-transform:uppercase;
  color:var(--warm-gray); font-style:italic; font-weight:300; text-align:center;
}
.connect{
  display:flex; flex-direction:column; align-items:center;
  gap:clamp(12px,1.8vh,16px); text-align:center;
}
.connect__label{
  font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--muted);
}
.social{ display:flex; justify-content:center; gap:12px; }
.social__item{
  --sz:40px;
  width:var(--sz); height:var(--sz); display:grid; place-items:center;
  border:1px solid var(--hairline); border-radius:50%;
  color:var(--warm-gray); cursor:default; position:relative;
  transition:border-color .4s var(--ease),color .4s var(--ease),transform .4s var(--ease);
}
.social__item svg{ width:17px; height:17px; }
.social__item[aria-disabled="true"]{ opacity:.78; }
.social__item:hover{ border-color:var(--line); color:var(--gold-soft); transform:translateY(-2px); }
/* "coming soon" tooltip on the placeholder icons */
.social__item::after{
  content:attr(data-soon);
  position:absolute; bottom:calc(100% + 10px); left:50%; transform:translateX(-50%) translateY(4px);
  font-size:9px; letter-spacing:.18em; text-transform:uppercase; white-space:nowrap;
  color:var(--ink); background:var(--gold-soft); padding:4px 8px; border-radius:3px;
  opacity:0; pointer-events:none; transition:opacity .3s,transform .3s;
}
.social__item:hover::after{ opacity:1; transform:translateX(-50%) translateY(0); }

.footer__meta{
  font-size:10.5px; letter-spacing:.14em; color:var(--muted); text-align:center;
}
.footer__credit{
  font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--muted); text-align:center; margin:0;
}
.footer__credit a{
  color:var(--warm-gray);
  border-bottom:1px solid var(--line);
  padding-bottom:1px;
  transition:color .4s var(--ease),border-color .4s var(--ease);
}
.footer__credit a:hover,.footer__credit a:focus-visible{
  color:var(--gold-soft); border-color:var(--gold-soft);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }
@keyframes fade{ to{ opacity:1; } }
@keyframes sweep{
  0%{ transform:translateX(-100%); }
  55%,100%{ transform:translateX(100%); }
}
@keyframes node{
  0%{ left:0; opacity:0; }
  8%{ opacity:1; }
  48%{ opacity:1; }
  55%,100%{ left:100%; opacity:0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Portrait (tablet / mobile): the tall hero crop is served via <picture>;
   centre it so the silhouette sits in the middle of the frame. */
@media (orientation:portrait){
  .hero__img{ object-position:50% 50%; }
  /* give the logo a little room without shoving the panel way down */
  .masthead{ padding:clamp(10px,2vh,20px) 0 clamp(12px,2.2vh,22px); }
  .hero-copy{ margin-top:clamp(8px,2vh,22px); }
}
@media (max-width:560px){
  .brandmark__logo{ width:clamp(220px,66vw,320px); }
  .eyebrow{ letter-spacing:.3em; }
  .title{ font-size:clamp(30px,10vw,46px); }
  .lede{ font-size:14px; }
  .shell{
    padding:
      22px
      calc(18px + env(safe-area-inset-right))
      28px
      calc(18px + env(safe-area-inset-left));
  }
  .hero-copy{ padding:clamp(24px,7vw,34px) clamp(20px,6vw,28px) clamp(26px,7vw,36px); border-radius:16px; }
}
/* Short/landscape phones: tighten vertical rhythm */
@media (max-height:560px){
  .hero-copy{ padding-bottom:0; }
  .bp-line{ margin:14px auto; }
  .footer__meta{ display:none; }
}

/* ============================================================
   REDUCED MOTION — honour the user's preference
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  .brandmark,.eyebrow,.title .word,.bp-line,.lede,.footer{ opacity:1 !important; transform:none !important; }
  .hero,.fx{ transition:none !important; }
}
