/*
Theme Name: Legacy Crest Reveal
Description: Full-site rebrand reveal screen — demolishes the old LC Carpentry mark piece by piece and constructs the new Legacy Crest Construction mark, then invites visitors onward. Activate to show it everywhere; switch back to your old theme and everything returns exactly as it was (nothing here touches your existing posts, pages or media).
Author: HKF / Legacy Crest
Version: 1.1.0
*/

:root{
  --navy:#101d33;
  --navy-deep:#060c16;
  --gold:#c9a227;
  --gold-light:#e8cf7a;
  --hazard-yellow:#f4b400;
  --hazard-black:#141414;
}
*{box-sizing:border-box;}
html,body{height:100%;margin:0;}
body.lcr-body{
  min-height:100vh;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;position:relative;
  background:radial-gradient(ellipse at 50% 30%,var(--navy) 0%,var(--navy-deep) 72%);
  font-family:'Inter',Arial,sans-serif;
}
.lcr-grid{position:absolute;inset:-10%;
  background-image:linear-gradient(rgba(201,162,39,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(201,162,39,.08) 1px,transparent 1px);
  background-size:48px 48px;
  animation:lcrGridDrift 46s linear infinite;
  -webkit-mask-image:radial-gradient(ellipse at 50% 42%,#000 35%,transparent 72%);
  mask-image:radial-gradient(ellipse at 50% 42%,#000 35%,transparent 72%);
  z-index:1;
}
@keyframes lcrGridDrift{from{transform:translate(0,0);}to{transform:translate(48px,48px);}}

.lcr-vignette{position:absolute;inset:0;box-shadow:inset 0 0 220px 90px var(--navy-deep);pointer-events:none;z-index:1;}

.lcr-particle{position:absolute;border-radius:50%;background:var(--gold-light);opacity:0;filter:blur(.3px);z-index:2;animation:lcrFloat 7s ease-in-out infinite;}
.lcr-particle:nth-child(1){width:3px;height:3px;left:18%;top:28%;animation-delay:.2s;}
.lcr-particle:nth-child(2){width:2px;height:2px;left:76%;top:22%;animation-delay:1.4s;}
.lcr-particle:nth-child(3){width:4px;height:4px;left:84%;top:64%;animation-delay:.8s;}
.lcr-particle:nth-child(4){width:2px;height:2px;left:12%;top:70%;animation-delay:2.1s;}
.lcr-particle:nth-child(5){width:3px;height:3px;left:50%;top:14%;animation-delay:1.7s;}
.lcr-particle:nth-child(6){width:2px;height:2px;left:30%;top:82%;animation-delay:.5s;}
.lcr-particle:nth-child(7){width:3px;height:3px;left:68%;top:78%;animation-delay:2.6s;}
@keyframes lcrFloat{0%{opacity:0;transform:translateY(0);}15%{opacity:.8;}50%{transform:translateY(-22px);}85%{opacity:.6;}100%{opacity:0;transform:translateY(-40px);}}

.lcr-stage{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px;max-width:920px;width:100%;
  animation:lcrShake1 .28s ease 1.7s, lcrShake2 .22s ease 4.55s;
}
@keyframes lcrShake1{0%{transform:translate(0,0);}25%{transform:translate(-7px,3px);}50%{transform:translate(6px,-4px);}75%{transform:translate(-4px,2px);}100%{transform:translate(0,0);}}
@keyframes lcrShake2{0%{transform:translate(0,0);}30%{transform:translate(4px,-2px);}65%{transform:translate(-3px,2px);}100%{transform:translate(0,0);}}

.lcr-eyebrow{opacity:0;letter-spacing:.35em;text-transform:uppercase;font-size:clamp(10px,1.6vw,12px);color:rgba(232,207,122,.85);margin:0 0 20px;animation:lcrFadeUp .7s ease forwards;animation-delay:.1s;}

.lcr-logo-wrap{position:relative;width:100%;display:flex;align-items:center;justify-content:center;min-height:min(460px,61vw);}

.lcr-bracket{position:absolute;width:26px;height:26px;border:2px solid rgba(232,207,122,.7);opacity:0;animation:lcrFadeIn .6s ease .2s forwards;}
.lcr-bracket-tl{top:-16px;left:-16px;border-right:none;border-bottom:none;}
.lcr-bracket-tr{top:-16px;right:-16px;border-left:none;border-bottom:none;}
.lcr-bracket-bl{bottom:-16px;left:-16px;border-right:none;border-top:none;}
.lcr-bracket-br{bottom:-16px;right:-16px;border-left:none;border-top:none;}
@keyframes lcrFadeIn{to{opacity:1;}}

.lcr-tilegrid{position:absolute;top:50%;left:50%;width:min(620px,86vw);aspect-ratio:var(--ar);
  transform:translate(-50%,-50%);
  display:grid;grid-template-columns:repeat(var(--cols),1fr);grid-template-rows:repeat(var(--rows),1fr);
  filter:drop-shadow(0 14px 30px rgba(0,0,0,.5));
}
.lcr-tile{width:100%;height:100%;background-repeat:no-repeat;opacity:0;}

.lcr-tile-demolish{
  animation-name: lcrTileAppear, lcrTileFall;
  animation-duration: .4s, 1s;
  animation-timing-function: ease, cubic-bezier(.55,0,.85,.35);
  animation-fill-mode: forwards, forwards;
  animation-delay: .4s, calc(1.7s + var(--delay));
}
@keyframes lcrTileAppear{from{opacity:0;}to{opacity:1;}}
@keyframes lcrTileFall{
  0%{transform:translate(0,0) rotate(0);opacity:1;}
  100%{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0;}
}

.lcr-tile-build{
  animation:lcrTileBuild .65s cubic-bezier(.17,1.4,.4,1) forwards;
  animation-delay:calc(3.6s + var(--delay));
}
@keyframes lcrTileBuild{
  0%{transform:translate(var(--dx),var(--dy)) rotate(var(--rot)) scale(.5);opacity:0;}
  70%{transform:translate(0,0) rotate(0) scale(1.07);opacity:1;}
  100%{transform:translate(0,0) rotate(0) scale(1);opacity:1;}
}

.lcr-debris{position:absolute;inset:0;pointer-events:none;z-index:3;}
.lcr-debris-bit{position:absolute;top:55%;width:6px;height:6px;border-radius:1px;opacity:0;
  background:linear-gradient(135deg,#9aa0a8,#4b4f57);
  animation:lcrDebrisFall 1.1s ease-in forwards;
  animation-delay:calc(1.7s + var(--ddelay));
}
@keyframes lcrDebrisFall{
  0%{opacity:0;transform:translate(0,0) rotate(0);}
  10%{opacity:.9;}
  100%{opacity:0;transform:translate(var(--ddx),var(--ddy)) rotate(var(--drot));}
}

.lcr-sheen{position:absolute;top:10%;left:-60%;width:30%;height:80%;z-index:4;
  background:linear-gradient(75deg,transparent 0%,rgba(255,255,255,.55) 50%,transparent 100%);
  mix-blend-mode:overlay;opacity:0;pointer-events:none;
  animation:lcrSheenSweep .9s ease-in-out 4.75s forwards;
}
@keyframes lcrSheenSweep{0%{left:-60%;opacity:1;}100%{left:130%;opacity:0;}}

.lcr-flash{position:absolute;inset:-30%;z-index:5;pointer-events:none;
  background:radial-gradient(circle,rgba(255,255,255,.92),transparent 60%);
  opacity:0;animation:lcrFlashPulse .5s ease-out 4.55s forwards;
}
@keyframes lcrFlashPulse{0%{opacity:0;}35%{opacity:.8;}100%{opacity:0;}}

.lcr-tagline{opacity:0;transform:translateY(14px);color:var(--gold-light);font-family:'Playfair Display',Georgia,serif;font-style:italic;
  font-size:clamp(15px,2.4vw,20px);margin:30px 0 6px;animation:lcrFadeUp .8s cubic-bezier(.16,1,.3,1) forwards;animation-delay:5.2s;position:relative;z-index:3;
}
.lcr-cta{opacity:0;transform:translateY(14px);display:inline-block;margin-top:20px;padding:16px 40px;border-radius:999px;
  background:linear-gradient(135deg,var(--gold-light),var(--gold));color:var(--navy-deep);font-weight:700;letter-spacing:.06em;
  text-decoration:none;font-size:14px;text-transform:uppercase;position:relative;z-index:3;
  box-shadow:0 10px 30px rgba(201,162,39,.35);
  animation:lcrFadeUp .8s cubic-bezier(.16,1,.3,1) forwards,lcrPulse 2.4s ease-in-out infinite;
  animation-delay:5.6s,6.4s;
  transition:transform .25s ease;
}
.lcr-cta:hover{transform:translateY(-3px);}
@keyframes lcrFadeUp{to{opacity:1;transform:translateY(0);}}
@keyframes lcrPulse{0%,100%{box-shadow:0 10px 30px rgba(201,162,39,.35);}50%{box-shadow:0 12px 46px rgba(201,162,39,.65);}}

.lcr-bottom-strip{position:fixed;left:0;right:0;bottom:0;height:8px;z-index:2;opacity:.8;
  background:repeating-linear-gradient(135deg,var(--hazard-black) 0 18px,var(--hazard-yellow) 18px 36px);
}

@media (max-width:640px){
  .lcr-cta{padding:14px 30px;font-size:13px;}
}
@media (prefers-reduced-motion: reduce){
  .lcr-grid,.lcr-particle,.lcr-stage,.lcr-tile-demolish,.lcr-tile-build,.lcr-debris-bit,.lcr-sheen,.lcr-flash,.lcr-tagline,.lcr-eyebrow,.lcr-bracket{animation:none !important;}
  .lcr-tilegrid-before{display:none;}
  .lcr-tile-build{opacity:1;transform:none;}
  .lcr-tagline,.lcr-eyebrow,.lcr-cta,.lcr-bracket{opacity:1;transform:none;}
}
