.threshold{
  position:relative;
  width:100vw;
  min-height:calc(100svh - 130px);
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(300px, 430px);
  align-items:center;
  gap:clamp(42px, 6vw, 90px);
  padding:
    clamp(82px, 9vw, 132px)
    max(24px, calc((100vw - 1180px) / 2))
    clamp(80px, 9vw, 124px);
  isolation:isolate;
  overflow:hidden;
}

.threshold::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-3;
  background-image:url("/media/restoration-hero.png");
  background-repeat:no-repeat;
  background-position:center 85%;
  background-size:108% auto;
  opacity:1;
  pointer-events:none;
}

.threshold::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg, rgba(255,247,232,.96) 0%, rgba(255,247,232,.80) 42%, rgba(255,247,232,.40) 72%, rgba(255,247,232,.18) 100%),
    radial-gradient(circle at 18% 26%, rgba(255,247,232,.88), transparent 30%),
    radial-gradient(circle at 78% 42%, rgba(217,180,95,.24), transparent 34%),
    linear-gradient(180deg, rgba(255,247,232,.12), rgba(8,39,25,.18));
  pointer-events:none;
}

/* LEFT HERO TEXT */

.hero-copy{
  position:relative;
  z-index:2;
  max-width:720px;
  padding:0;
  background:none;
  border:0;
  box-shadow:none;
  overflow:visible;
  animation:fadeLift 800ms ease both;
}

.hero-card-bg{
  display:none;
}

.hero-copy::before,
.hero-copy::after{
  display:none;
}

.hero-text{
  position:relative;
  z-index:2;
  max-width:700px;
  padding:0;
}

@keyframes fadeLift{
  from{
    opacity:0;
    transform:translateY(14px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

h1{
  max-width:700px;
  color:var(--forest-dark);
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:clamp(4.5rem, 9vw, 8.8rem);
  line-height:.86;
  font-weight:700;
  letter-spacing:-.048em;
  text-shadow:0 18px 46px rgba(255,247,232,.70);
}

.hero-line{
  display:block;
}

.hero-line.emphasis{
  color:var(--forest-mid);
  font-style:italic;
  text-shadow:0 18px 46px rgba(255,247,232,.64);
}

.hero-lead{
  max-width:640px;
  margin-top:30px;
  padding-top:26px;
  border-top:1px solid rgba(217,180,95,.55);
  color:var(--ink);
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:clamp(1.38rem, 2vw, 1.74rem);
  font-weight:700;
  line-height:1.36;
  text-shadow:0 10px 28px rgba(255,247,232,.78);
}

/* RIGHT HERO GRAPHIC */

.threshold-visual{
  position:relative;
  min-height:500px;
  display:grid;
  place-items:center;
  animation:fadeLift 900ms ease both 120ms;
}

.threshold-visual::before{
  content:"";
  position:absolute;
  width:84%;
  height:84%;
  border-radius:999px;
  background:radial-gradient(circle, rgba(217,180,95,.26), rgba(15,61,42,.10) 38%, transparent 70%);
  filter:blur(16px);
}

.gate-card{
  position:relative;
  width:min(430px, 100%);
  aspect-ratio:.82 / 1;
  border:1px solid rgba(217,180,95,.34);
  border-radius:24px;
  background:
    linear-gradient(90deg, rgba(255,247,232,.07), transparent 18%, transparent 82%, rgba(255,247,232,.06)),
    radial-gradient(circle at 50% 28%, rgba(242,210,127,.42), transparent 34%),
    linear-gradient(180deg, #4a3525, #1e150f 68%, #120d09);
  box-shadow:
    0 34px 92px rgba(4,24,14,.34),
    0 0 44px rgba(217,180,95,.14),
    inset 0 0 78px rgba(0,0,0,.22);
  overflow:hidden;
}

.gate-card::before,
.gate-card::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:18%;
  background:
    repeating-linear-gradient(90deg, rgba(255,247,232,.13) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34));
  opacity:.68;
}

.gate-card::before{
  left:0;
}

.gate-card::after{
  right:0;
}

.open-light{
  position:absolute;
  inset:8% 18% 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,247,232,.92), transparent 18%),
    radial-gradient(circle at 50% 20%, rgba(242,210,127,.62), transparent 35%),
    linear-gradient(180deg, rgba(242,210,127,.42), rgba(242,210,127,.14) 50%, transparent 100%);
  clip-path:polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter:blur(.35px);
  animation:lightBreath 4s ease-in-out infinite;
}

@keyframes lightBreath{
  0%, 100%{
    opacity:.72;
    transform:scaleX(.94);
  }

  50%{
    opacity:1;
    transform:scaleX(1.05);
  }
}

.cross-mark{
  position:absolute;
  left:50%;
  top:33%;
  width:88px;
  height:132px;
  transform:translate(-50%, -50%);
  color:rgba(255,247,232,.96);
  filter:drop-shadow(0 0 24px rgba(242,210,127,.36));
}

.chain{
  position:absolute;
  left:50%;
  top:49%;
  width:72%;
  transform:translate(-50%, -50%) rotate(-7deg);
  opacity:.96;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.42));
}

.chain path{
  fill:none;
  stroke:rgba(255,247,232,.70);
  stroke-width:12;
  stroke-linecap:round;
}

.chain .break{
  stroke:#d9b45f;
  filter:drop-shadow(0 0 14px rgba(242,210,127,.58));
}

.visual-caption{
  position:absolute;
  left:50%;
  bottom:32px;
  transform:translateX(-50%);
  width:min(330px, 80%);
  padding-top:18px;
  border-top:1px solid rgba(217,180,95,.46);
  text-align:center;
  color:rgba(255,247,232,.82);
  font-size:.72rem;
  font-weight:950;
  line-height:1.35;
  letter-spacing:.16em;
  text-transform:uppercase;
}

/* MOBILE */

@media (max-width:980px){
  .threshold{
    grid-template-columns:1fr;
    min-height:auto;
    text-align:center;
    padding:
      clamp(70px, 10vw, 100px)
      22px
      clamp(70px, 10vw, 100px);
  }

  .threshold::before{
    background-size:150% auto;
    background-position:center bottom;
  }

  .hero-copy{
    max-width:760px;
    margin:0 auto;
  }

  .hero-lead{
    margin-left:auto;
    margin-right:auto;
  }

  .threshold-visual{
    min-height:380px;
    order:2;
  }

  .gate-card{
    width:min(360px, 88vw);
  }
}

@media (max-width:640px){
  .threshold{
    padding:64px 18px 74px;
  }

  .threshold::before{
    background-size:220% auto;
    background-position:center bottom;
  }

  .threshold::after{
    background:
      linear-gradient(180deg, rgba(255,247,232,.96) 0%, rgba(255,247,232,.78) 54%, rgba(255,247,232,.38) 100%);
  }

  h1{
    font-size:clamp(3.45rem, 17vw, 5.6rem);
  }

  .hero-lead{
    margin-top:22px;
    padding-top:20px;
    font-size:1.18rem;
  }

  .threshold-visual{
    min-height:330px;
  }

  .gate-card{
    width:min(310px, 86vw);
  }
}