
:root{
  --bg:#07090c;
  --bg2:#0b0d11;
  --panel:#0d1015;
  --panel2:#11151c;
  --text:#efe9dc;
  --muted:#9f9a91;
  --gold:#d4a65a;
  --gold2:#f0d28c;
  --gold3:#8d642d;
  --blue:#7da8d6;
  --line:rgba(224,190,125,.18);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(1000px 600px at 50% -180px,rgba(163,116,47,.08),transparent 70%),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body::selection{background:#c7974b;color:#090909}
.grain{
  position:fixed;inset:0;pointer-events:none;z-index:1000;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.topbar{
  height:78px;padding:0 clamp(22px,5vw,72px);display:flex;align-items:center;justify-content:space-between;
  position:absolute;left:0;right:0;top:0;z-index:20;
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--gold2);font-family:Cinzel,serif;letter-spacing:.18em;font-size:15px}
.brand img{width:35px;height:35px}
nav{display:flex;gap:36px}
nav a{color:#d8d2c6;text-decoration:none;text-transform:uppercase;font-size:11px;letter-spacing:.19em;transition:.2s}
nav a:hover{color:var(--gold2)}
.hero{
  min-height:760px;height:100vh;max-height:980px;position:relative;display:grid;place-items:center;overflow:hidden;
  border-bottom:1px solid rgba(205,164,91,.13);
  background:
    radial-gradient(900px 520px at 18% 53%, rgba(12,30,52,.34), transparent 68%),
    linear-gradient(90deg, rgba(6,8,11,0.98) 0%, rgba(7,9,12,0.97) 42%, rgba(7,9,12,0.78) 62%, rgba(7,9,12,0.32) 82%, rgba(7,9,12,0.10) 100%);
}
.hero::before{
  content:"";position:absolute;inset:0;background:
  radial-gradient(circle at 44% 39%,rgba(222,171,78,.07),transparent 2px),
  radial-gradient(circle at 37% 27%,rgba(222,171,78,.05),transparent 2px),
  linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.14) 60%,rgba(0,0,0,.42) 100%);
  z-index:4;pointer-events:none;
}
.arch{
  position:absolute;
  right:0;
  top:0;
  width:min(40vw, 700px);
  height:100%;
  background:url("assets/hero-mountains.png") center center / cover no-repeat;
  opacity:.98;
  z-index:2;
  filter:drop-shadow(-42px 0 58px rgba(0,0,0,.52));
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 7%, #000 22%, #000 100%);
  mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 7%, #000 22%, #000 100%);
}
.hero-runes{position:absolute;inset:0;z-index:1;opacity:.5}
.ring{position:absolute;border:1px solid rgba(206,161,84,.14);border-radius:50%}
.ring::before,.ring::after{content:"";position:absolute;inset:10%;border:1px dashed rgba(206,161,84,.11);border-radius:50%}
.ring-a{width:590px;height:590px;left:-150px;top:110px}
.ring-b{width:420px;height:420px;left:10%;top:30px}
.ring-c{width:240px;height:240px;left:43%;top:190px}
.stars{
  position:absolute;inset:0;z-index:1;opacity:.65;
  background-image:
    radial-gradient(circle,#d8b55f 0 1px,transparent 1.5px),
    radial-gradient(circle,#8bb7d3 0 .8px,transparent 1.3px);
  background-position:0 0,60px 80px;background-size:173px 199px,227px 241px;
  mask-image:linear-gradient(to bottom,black,transparent 76%);
}
.hero-copy{
  position:relative;
  z-index:8;
  text-align:center;
  width:min(760px,92%);
  margin-left:-12%;
  transform:translateY(18px);
}
.hero-sigil{width:135px;filter:drop-shadow(0 0 22px rgba(219,174,91,.13))}
.kicker{text-transform:uppercase;letter-spacing:.32em;color:#aa9168;font-size:10px;margin:9px 0 19px}
h1{
  font-family:Cinzel,serif;font-weight:500;letter-spacing:.095em;font-size:clamp(54px,7vw,104px);
  margin:0;color:#eee6d7;text-shadow:0 0 38px rgba(214,170,87,.08);
}
.tagline{font-family:"Libre Baskerville",serif;font-size:clamp(18px,2vw,25px);color:var(--gold2);margin:8px 0 18px}
.intro{max-width:520px;margin:0 auto;color:#b7b2aa;font-size:15px;line-height:1.8}
.scroll-cue{display:inline-flex;flex-direction:column;align-items:center;gap:8px;margin-top:35px;color:#9f9380;text-decoration:none;text-transform:uppercase;letter-spacing:.17em;font-size:9px}
.scroll-cue svg{width:24px;stroke:#d7ae66;stroke-width:1.5;fill:none;animation:bob 2s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(5px)}}

.section{max-width:1200px;margin:auto;padding:78px 38px}
.section-heading{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px;text-align:center;margin-bottom:38px}
.section-heading .rule{height:1px;background:linear-gradient(90deg,transparent,var(--line))}
.section-heading .rule:last-child{transform:scaleX(-1)}
.eyebrow{margin:0;color:#d3a65d;font-family:Cinzel,serif;text-transform:uppercase;letter-spacing:.22em;font-size:18px}
.section-heading h2{font-weight:400;color:#817d76;font-size:12px;margin:8px 0 0;letter-spacing:.03em}
.artifact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.artifact-card{
  position:relative;min-height:525px;padding:34px 32px 28px;border:1px solid rgba(225,207,178,.17);
  border-radius:13px;background:
    linear-gradient(180deg,rgba(20,24,31,.87),rgba(7,9,12,.96));
  overflow:hidden;display:flex;flex-direction:column;transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.artifact-card:hover{transform:translateY(-5px);border-color:rgba(220,181,111,.37);box-shadow:0 20px 45px rgba(0,0,0,.32)}
.artifact-aura{position:absolute;width:300px;height:220px;border-radius:50%;top:-110px;left:50%;transform:translateX(-50%);filter:blur(40px);opacity:.14}
.relicbeam-card .artifact-aura{background:#13d7ec}
.bookglints-card .artifact-aura{background:#bd8044}
.dormant-card .artifact-aura{background:#5678a1;opacity:.08}
.artifact-mark{height:128px;display:grid;place-items:center;margin:2px auto 13px;position:relative}
.artifact-mark img{width:112px;height:112px;object-fit:contain;filter:drop-shadow(0 10px 24px rgba(0,0,0,.4))}
.bookglints-card .artifact-mark img{border-radius:22px}
.artifact-type{text-align:center;text-transform:uppercase;letter-spacing:.18em;color:#777f89;font-size:9px;margin:0 0 7px}
.forge-label{color:#6e93bd}
.artifact-card h3{font-family:"Libre Baskerville",serif;text-align:center;font-weight:400;font-size:28px;margin:0 0 12px}
.relicbeam-card h3{color:#e9ebec}
.bookglints-card h3{color:#e7c889}
.dormant-card h3{color:#c3c9d1}
.artifact-description{text-align:center;color:#aaa69e;font-size:13px;line-height:1.7;min-height:66px;margin:0 0 22px}
.traits{padding:17px 4px 0;margin:0 0 24px;border-top:1px solid rgba(255,255,255,.06);list-style:none}
.traits li{font-size:12px;color:#b3aea5;margin:10px 0;display:flex;gap:10px;align-items:center}
.relicbeam-card .traits span{color:#35d9e8}
.bookglints-card .traits span{color:#e0af55}
.artifact-link{
  margin-top:auto;height:43px;border:1px solid rgba(212,166,90,.52);border-radius:5px;
  display:flex;align-items:center;justify-content:center;gap:18px;text-decoration:none;color:#dfc58f;
  text-transform:uppercase;letter-spacing:.14em;font-size:10px;transition:.2s;background:rgba(183,130,53,.035)
}
.artifact-link:hover{background:rgba(183,130,53,.1);border-color:#d6a859;color:#f1d895}
.artifact-link.disabled{color:#6d7480;border-color:rgba(111,139,171,.32);cursor:default}
.dormant-mark{height:140px;display:grid;place-items:center}
.dormant-mark svg{width:108px;stroke:#647283;fill:#10151c;stroke-width:2}
.dormant-status{margin:19px auto 32px;color:#78808b;font-size:11px;display:flex;align-items:center;gap:9px}
.ember{width:6px;height:6px;border-radius:50%;background:#7094bd;box-shadow:0 0 12px #7094bd;animation:pulse 2.5s infinite}
@keyframes pulse{50%{opacity:.35;transform:scale(.8)}}

.forge-section{padding-top:20px}
.forge-panel{
  min-height:250px;border:1px solid rgba(210,198,176,.14);border-radius:14px;overflow:hidden;
  display:grid;grid-template-columns:36% 1fr;background:
  radial-gradient(circle at 22% 55%,rgba(209,116,38,.11),transparent 30%),
  linear-gradient(110deg,#0b0d10,#0c1016);
}
.anvil{
  position:relative;
  min-height:250px;
  background:
    linear-gradient(90deg, rgba(8,10,13,.05) 0%, rgba(8,10,13,0) 58%, rgba(8,10,13,.34) 100%),
    url("assets/forge-hammer.png") center center / cover no-repeat;
  overflow:hidden;
}
.anvil svg{display:none}
.spark{position:absolute;width:3px;height:3px;background:#d78b34;border-radius:50%;box-shadow:0 0 11px #dd8730}
.s1{left:64%;top:30%;animation:spark 2.2s infinite}
.s2{left:58%;top:38%;animation:spark 2.8s .6s infinite}
.s3{left:69%;top:44%;animation:spark 2.4s 1.1s infinite}
@keyframes spark{0%,100%{opacity:0;transform:translate(0,0)}20%{opacity:1}80%{opacity:0;transform:translate(28px,-45px)}}
.forge-copy{padding:48px 56px;align-self:center;border-left:1px solid rgba(255,255,255,.045)}
.eyebrow.blue{color:#769ac2}
.forge-copy h2{font-family:"Libre Baskerville",serif;font-weight:400;margin:8px 0 10px;font-size:24px}
.forge-copy>p:not(.eyebrow){color:#90939a;line-height:1.75;font-size:13px;max-width:590px}
.forge-note{display:inline-block;margin-top:16px;padding:9px 12px;border:1px solid rgba(119,156,198,.22);border-radius:5px;color:#7f8d9e;font-size:10px;text-transform:uppercase;letter-spacing:.12em}

.about-section{padding-top:55px;padding-bottom:90px}
.section-heading.compact{margin-bottom:34px}
.about-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:70px;align-items:center}
.about-copy{display:flex;gap:24px;align-items:center;color:#a8a49d;font-size:13px;line-height:1.8}
.about-copy img{width:92px;flex:none}
.principles{display:grid;gap:16px}
.principles div{display:grid;grid-template-columns:28px 1fr;align-items:center}
.principles span{grid-row:1/3;color:#d0a55d}
.principles strong{font-family:"Libre Baskerville",serif;font-size:12px;font-weight:400;color:#d9d2c5}
.principles small{font-size:10px;color:#73716d;margin-top:3px}

footer{
  border-top:1px solid rgba(255,255,255,.06);min-height:120px;padding:28px clamp(24px,5vw,70px);
  display:grid;grid-template-columns:auto 1fr auto;gap:26px;align-items:center;color:#77736d;font-size:10px
}
.footer-brand img{width:34px}.footer-brand{font-size:13px}
footer p{margin:0}.footer-right{text-align:right}

@media(max-width:900px){
  .hero{min-height:720px;height:auto;padding:125px 0 80px}
  .arch{right:-30%;opacity:.43;width:84vw}
  .hero-copy{margin-left:0}
  .artifact-grid{grid-template-columns:1fr 1fr}
  .dormant-card{grid-column:1/-1;min-height:410px}
  .dormant-card .artifact-description{min-height:auto}
  .forge-panel{grid-template-columns:1fr}
  .anvil{min-height:175px}
  .forge-copy{border-left:0;border-top:1px solid rgba(255,255,255,.045);padding:34px}
}
@media(max-width:650px){
  .topbar{height:64px;padding:0 18px}
  .brand{font-size:12px}.brand img{width:31px}
  nav{gap:17px}nav a{font-size:8px}
  .hero{min-height:680px}
  .hero-sigil{width:112px}
  h1{font-size:48px;letter-spacing:.055em}
  .tagline{font-size:17px}
  .intro{font-size:13px;padding:0 19px}
  .arch{width:110vw;right:-58%;top:8%;opacity:.28}
  .ring-a{left:-310px}
  .section{padding:62px 18px}
  .artifact-grid{grid-template-columns:1fr}
  .dormant-card{grid-column:auto}
  .artifact-card{min-height:500px}
  .section-heading{gap:10px}.eyebrow{font-size:15px}
  .about-grid{grid-template-columns:1fr;gap:38px}
  .about-copy{align-items:flex-start}.about-copy img{width:70px}
  footer{grid-template-columns:1fr;text-align:center;gap:10px}
  .footer-brand{justify-content:center}.footer-right{text-align:center}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;scroll-behavior:auto!important;transition:none!important}
}


/* Stronger hero background treatment */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,
      rgba(7,9,12,.92) 0%,
      rgba(7,9,12,.72) 27%,
      rgba(7,9,12,.36) 52%,
      rgba(7,9,12,.08) 72%,
      rgba(7,9,12,0) 100%);
  z-index:3;
  pointer-events:none;
}




/* v5 environment tuning */
@media(max-width:900px){
  .hero-copy{margin-left:0}
  .arch{
    width:58vw;
    right:-7%;
    opacity:.74;
    background-position:center center;
  }
}
@media(max-width:650px){
  .arch{
    width:92vw;
    right:-32%;
    opacity:.38;
  }
}
