/* Heritage landing in Nocturne colours (homepage only). Loaded after nocturne.css. */

/* Cairn intro: stones drop, base grows, name appears, then the curtain splits */
#hx-intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
#hx-intro .half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); transition: transform 1.1s cubic-bezier(.76,0,.24,1); }
#hx-intro .top { top: 0; border-bottom: 1px solid rgba(192,154,91,.35); background: radial-gradient(760px 300px at 82% 34%, rgba(10,44,92,.8), transparent 70%), var(--bg); }
#hx-intro .bot { bottom: 0; background: radial-gradient(700px 500px at 8% 80%, rgba(192,154,91,.09), transparent 60%), var(--bg); }
#hx-intro.open .top { transform: translateY(-100%); }
#hx-intro.open .bot { transform: translateY(100%); }
#hx-intro .mk { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -58%); text-align: center; color: var(--ink); transition: opacity .5s; }
#hx-intro.open .mk { opacity: 0; }
#hx-intro svg { width: 120px; height: auto; overflow: visible; }
#hx-intro .st { fill: var(--ink); transform: translateY(-160px); opacity: 0; animation: hxDrop .7s cubic-bezier(.2,.8,.2,1) forwards; }
#hx-intro .st:nth-of-type(1) { animation-delay: .15s; }
#hx-intro .st:nth-of-type(2) { animation-delay: .4s; }
#hx-intro .st:nth-of-type(3) { animation-delay: .65s; }
#hx-intro .st:nth-of-type(4) { animation-delay: .9s; }
#hx-intro .base { transform: scaleX(0); transform-origin: center; animation: hxGrow .8s cubic-bezier(.2,.8,.2,1) 1.2s forwards; }
#hx-intro .nm { margin-top: 26px; font-family: "Playfair Display", Georgia, serif; font-size: 34px; letter-spacing: .5em; padding-left: .5em; opacity: 0; animation: hxName 1s ease 1.3s forwards; }
#hx-intro .nm small { display: block; font-family: Inter, sans-serif; font-size: 11px; letter-spacing: .5em; margin-top: 8px; color: var(--gold-2); }
@keyframes hxDrop { to { transform: none; opacity: 1; } }
@keyframes hxGrow { to { transform: scaleX(1); } }
@keyframes hxName { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .5em; } }

/* Hero */
.hx-hero { position: relative; z-index: 1; padding: calc(96px + 80px) 0 110px; }
.hx-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 70px; align-items: center; }
.hx-hero .eyebrow { color: var(--gold); }
.hx-hero h1 { font-size: clamp(38px, 4.8vw, 68px); font-weight: 500; line-height: 1.08; color: var(--ink); margin-top: 22px; text-wrap: balance; }
.hx-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; }
.hx-hero h1 .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.hx-hero.in h1 .w > span { transform: none; }
.hx-hero h1 em { font-style: italic; }
.hx-hero h1 em .w > span {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 45%, var(--gold) 70%, #9c7a43 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s ease-in-out infinite; }
.hx-rule { height: 1px; background: var(--gold); width: 0; margin: 34px 0 26px; transition: width 1.4s cubic-bezier(.2,.7,.1,1) .5s; }
.hx-hero.in .hx-rule { width: 120px; }
.hx-lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 34px; }
.hx-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hx-cta .arr { transition: transform .3s; }
.hx-cta .btn:hover .arr { transform: translateX(4px); }

.hx-portrait { position: relative; margin: 0; aspect-ratio: 461 / 593; max-width: 100%; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.hx-frame { position: absolute; inset: 0; border: 1px solid var(--gold); transform: translate(18px, 18px); transition: transform .8s ease; }
.hx-portrait:hover .hx-frame { transform: translate(10px, 10px); }
.hx-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: saturate(.88) contrast(1.02); }
.hx-portrait figcaption { position: absolute; left: -26px; bottom: 30px; background: rgba(13,31,59,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); padding: 14px 18px; font-size: 13px; color: var(--muted); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.hx-portrait figcaption b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 21px; font-weight: 500; color: var(--gold-2); }

/* Facts strip */
.hx-facts { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10,24,48,.6); }
.hx-facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.hx-fact { padding: 34px 26px; border-left: 1px solid var(--line); }
.hx-fact:first-child { border-left: 0; }
.hx-fact b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 44px; font-weight: 500; color: var(--gold-2); line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.hx-fact span { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .hx-grid { grid-template-columns: 1fr; gap: 50px; }
  .hx-portrait { width: min(340px, 82%); justify-self: center; }
  .hx-facts .wrap { grid-template-columns: 1fr 1fr; }
  .hx-fact:nth-child(3) { border-left: 0; }
  .hx-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hx-hero { padding: calc(96px + 44px) 0 70px; }
  .hx-fact { padding: 24px 16px; }
  .hx-fact b { font-size: 34px; }
  .hx-portrait figcaption { left: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-hero h1 .w > span { transform: none; transition: none; }
  .hx-rule { width: 120px; transition: none; }
}
