/* ============================================================
   HERO — the obsidian slab
   ============================================================ */

.slab{
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: min(940px, calc(100svh - (var(--slab-inset) * 2)));
  margin: var(--slab-inset);
  border-radius: var(--slab-radius);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

/* ambient warmth, tracked to the pointer */
.slab::before{
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at var(--mx, 74%) var(--my, 34%), rgba(169, 111, 69, .20), transparent 62%),
    radial-gradient(70% 55% at 88% 8%, rgba(221, 211, 195, .09), transparent 60%),
    radial-gradient(50% 40% at 4% 96%, rgba(169, 111, 69, .09), transparent 62%);
}

/* film grain */
.slab::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 180px 180px;
  opacity: .16;
  mix-blend-mode: overlay;
}

.hero{
  position: relative;
  z-index: 4;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  padding: clamp(10px, 2vw, 30px) clamp(18px, 3vw, 44px) clamp(22px, 3vw, 40px);
}

/* — copy column ————————————————————————————— */

.hero-copy{
  position: relative;
  max-width: 720px;
}

.eyebrow{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  color: var(--on-dark-faint);
  opacity: 0;
}
.eyebrow .dot{
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay-soft);
  box-shadow: 0 0 0 4px rgba(200, 148, 104, .14);
}

h1{
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .93;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.line{
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
}
.line > span{ display: block; opacity: 0; }

/* the one typographic flourish: a glass lozenge around the payoff */
.mark{
  display: inline-flex;
  align-items: center;
  margin-inline-start: .06em;
  padding: .04em .3em .13em;
  border-radius: 999px;
  background: var(--glass-hi);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  font-style: italic;
  color: var(--bone-hi);
}

.lead{
  max-width: 46ch;
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--on-dark-mute);
  opacity: 0;
}

.cta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
  opacity: 0;
}
.cta-row .btn-glass{ padding: 14px 24px; font-size: .9rem; }

/* — rotating seal ————————————————————————————— */

.seal{
  position: absolute;
  top: -6px;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
}
.seal svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 34s linear infinite;
}
.seal text{
  font-family: var(--ui);
  font-size: 8.4px;
  letter-spacing: .26em;
  text-transform: uppercase;
  fill: var(--on-dark-faint);
}
.seal-core{
  font-size: 1.55rem;
  line-height: 1;
  color: var(--on-dark);
}

/* — spec card ————————————————————————————————— */

.spec{
  position: absolute;
  inset-inline-start: clamp(18px, 3vw, 44px);
  bottom: clamp(20px, 3vw, 38px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 380px;
  padding-block: 12px;
  padding-inline: 12px 22px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 20px 50px rgba(0, 0, 0, .4);
  opacity: 0;
  transition:
    transform .5s var(--ease-out),
    background-color .4s var(--ease);
}
.spec:hover{ transform: translateY(-3px); background: var(--glass-hi); }
.spec-thumb{
  flex: none;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--bone-hi), var(--sand-deep));
}
.spec-thumb svg{ width: 78%; }
.spec-name{
  margin: 0;
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.18;
}
.spec-meta{
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 5px 0 0;
  font-size: .78rem;
  color: var(--on-dark-mute);
}
.spec-meta b{
  color: var(--on-dark);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.spec-meta i{ font-style: normal; opacity: .4; }

/* — visual column ————————————————————————————— */

.visual{
  position: relative;
  align-self: stretch;
  min-height: clamp(320px, 46vw, 620px);
  opacity: 0;
}

.blob{
  position: absolute;
  border-radius: 54% 46% 42% 58% / 48% 54% 46% 52%;
  will-change: border-radius, transform;
}

/* striped cut-outs, lifted from the collage reference */
.blob-stripe{
  top: 2%;
  inset-inline-end: 4%;
  width: 46%;
  aspect-ratio: 1;
  opacity: .88;
  background: repeating-linear-gradient(118deg, var(--bone-hi) 0 10px, var(--sand) 10px 21px);
  animation: morph-a 17s ease-in-out infinite;
}
.blob-stripe-sm{
  inset-inline-start: 2%;
  bottom: 6%;
  width: 30%;
  aspect-ratio: 1;
  opacity: .72;
  background: repeating-linear-gradient(118deg, var(--bone-hi) 0 8px, var(--sand) 8px 17px);
  animation: morph-b 21s ease-in-out infinite;
}

/* the stage the piece sits on */
.blob-stage{
  inset-inline-start: 12%;
  top: 16%;
  width: 74%;
  aspect-ratio: 1 / .96;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: radial-gradient(72% 72% at 40% 24%, var(--bone-hi), var(--sand) 62%, var(--sand-deep));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
  animation: morph-b 19s ease-in-out infinite;
}
.hero-piece{
  width: 84%;
  margin-bottom: 6%;
  animation: bob 9s ease-in-out infinite;
}

@keyframes morph-a{
  0%, 100%{ border-radius: 54% 46% 42% 58% / 48% 54% 46% 52%; transform: translate3d(0, 0, 0) rotate(0deg); }
  50%     { border-radius: 43% 57% 56% 44% / 57% 43% 57% 43%; transform: translate3d(-10px, 14px, 0) rotate(-3deg); }
}
@keyframes morph-b{
  0%, 100%{ border-radius: 46% 54% 57% 43% / 52% 47% 53% 48%; transform: translate3d(0, 0, 0) rotate(0deg); }
  50%     { border-radius: 58% 42% 44% 56% / 45% 56% 44% 55%; transform: translate3d(12px, -12px, 0) rotate(2.4deg); }
}
@keyframes bob{
  0%, 100%{ transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* — load sequence ————————————————————————————— */

@keyframes rise{
  from{ opacity: 0; transform: translateY(105%); }
  to  { opacity: 1; transform: none; }
}
@keyframes scale-in{
  from{ opacity: 0; transform: scale(.94); }
  to  { opacity: 1; transform: none; }
}

.is-ready .line > span{
  animation: rise 1.05s var(--ease-out) forwards;
  animation-delay: calc(260ms + var(--i, 0) * 105ms);
}
.is-ready .eyebrow{ animation: fade .9s var(--ease-out) .18s forwards; }
.is-ready .lead{ animation: fade-up .9s var(--ease-out) .66s forwards; }
.is-ready .cta-row{ animation: fade-up .9s var(--ease-out) .76s forwards; }
.is-ready .spec{ animation: fade-up 1s var(--ease-out) .94s forwards; }
.is-ready .visual{ animation: scale-in 1.5s var(--ease-out) .3s forwards; }

@media (prefers-reduced-motion: reduce){
  .line > span,
  .nav, .eyebrow, .lead, .cta-row, .spec, .visual{ opacity: 1 !important; }
}

/* — responsive ————————————————————————————————— */

@media (max-width: 1080px){
  .slab{ min-height: 0; }
  .hero{ grid-template-columns: 1fr; align-content: center; }
  .hero-copy{ max-width: 100%; }
  .visual{ order: 2; min-height: clamp(300px, 54vw, 460px); }
  /* relative, not static: the ring <svg> is absolutely positioned and
     would otherwise resolve against .hero-copy and cover the headline. */
  .seal{
    position: relative;
    top: auto;
    inset-inline-end: auto;
    margin-bottom: 22px;
  }
  .spec{
    position: static;
    max-width: 100%;
    margin: 26px clamp(18px, 3vw, 44px) clamp(20px, 3vw, 32px);
  }
}

@media (max-width: 760px){
  .hero{ padding-bottom: 34px; }
  .blob-stage{ inset-inline-start: 8%; width: 80%; }
}

@media (max-width: 460px){
  .cta-row .btn-solid,
  .cta-row .btn-glass{ flex: 1 1 100%; justify-content: center; }
}
