/* ══════════════════════════════════════════════════════════
   ALZARYS — Whirlwind of Colors
   ══════════════════════════════════════════════════════════ */

:root{
  --ink:        #05060a;
  --ink-2:      #090b12;
  --ink-3:      #0d1019;
  --gold:       #d9b263;
  --gold-soft:  #c9a45a;
  --gold-dim:   rgba(217,178,99,.32);
  --silver:     #e8e6e3;
  --body:       #a7a49f;
  --body-dim:   #7d7a76;

  --ember:      #ff6a2a;
  --frost:      #3aa0ff;

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text:    "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --head-h: 66px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--ink);
  color:var(--body);
  font-family:var(--text);
  font-size:clamp(1.05rem,.55rem + .85vw,1.28rem);
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }

::selection{ background:rgba(217,178,99,.28); color:#fff; }

:focus-visible{
  outline:1px solid var(--gold);
  outline-offset:4px;
}

/* ── Ambient background ─────────────────────────────────── */
.nebula{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(60vw 60vw at 12% 18%, rgba(255,106,42,.075), transparent 62%),
    radial-gradient(58vw 58vw at 88% 30%, rgba(58,160,255,.075), transparent 62%),
    radial-gradient(70vw 50vw at 50% 105%, rgba(126,73,214,.075), transparent 65%),
    var(--ink);
  animation:drift 34s ease-in-out infinite alternate;
}
@keyframes drift{
  from{ transform:scale(1)   translate3d(0,0,0); }
  to  { transform:scale(1.1) translate3d(-2%,-1.5%,0); }
}
@media (prefers-reduced-motion:reduce){ .nebula{ animation:none; } }

/* ── Header ─────────────────────────────────────────────── */
.site-header{
  position:fixed; inset:0 0 auto 0; z-index:50;
  height:var(--head-h);
  display:flex; align-items:center; gap:1.5rem;
  padding:0 clamp(1rem,4vw,2.75rem);
  background:transparent;
  transition:background .45s ease, backdrop-filter .45s ease, border-color .45s ease;
  border-bottom:1px solid transparent;
}
.site-header.is-stuck{
  background:rgba(5,6,10,.82);
  backdrop-filter:blur(14px) saturate(120%);
  border-bottom-color:rgba(217,178,99,.14);
}

.brand{
  display:flex; align-items:center; gap:.6rem;
  text-decoration:none; margin-right:auto;
}
.brand-mark{
  width:26px; height:26px; flex:none;
  border-radius:50%;
  background:url("/assets/icon-64.png") center/125% no-repeat;
  box-shadow:0 0 0 1px rgba(217,178,99,.35), 0 0 14px rgba(217,178,99,.2);
}
.brand-text{
  font-family:var(--display); font-weight:600;
  font-size:.98rem; letter-spacing:.34em;
  background:linear-gradient(180deg,#fff 8%,var(--gold) 58%,#8d6f36 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

.nav{ display:flex; gap:clamp(1rem,2.4vw,2.2rem); }
.nav a{
  font-family:var(--display); font-size:.72rem; font-weight:500;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--body-dim); text-decoration:none;
  padding-bottom:3px; position:relative;
  transition:color .3s ease;
}
.nav a::after{
  content:""; position:absolute; left:50%; right:50%; bottom:0;
  height:1px; background:var(--gold);
  transition:left .35s ease, right .35s ease;
}
.nav a:hover{ color:var(--gold); }
.nav a:hover::after{ left:0; right:0; }

.lang{ display:flex; align-items:center; gap:.35rem; }
.lang button{
  appearance:none; background:none; border:0; cursor:pointer; padding:.2rem .1rem;
  font-family:var(--display); font-size:.7rem; font-weight:600; letter-spacing:.16em;
  color:var(--body-dim); transition:color .3s ease;
}
.lang button:hover{ color:var(--silver); }
.lang button.is-active{ color:var(--gold); }
.lang-sep{ color:rgba(167,164,159,.32); font-size:.7rem; }

@media (max-width:640px){
  .nav{ display:none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero{
  position:relative;
  /* the intro animation scales the artwork past 100% — clip it so it
     never creates a transient horizontal scrollbar */
  overflow:hidden;
  min-height:100svh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:calc(var(--head-h) + 2rem) 0 5rem;
  text-align:center;
}
.hero-art{
  width:100%;
  position:relative;
  animation:heroIn 1.6s cubic-bezier(.19,1,.22,1) both;
}
.hero-art img{
  width:100%;
  max-width:1254px;
  margin-inline:auto;
}
/* feather the artwork into the page on every edge */
.hero-art::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(to bottom, var(--ink) 0%, transparent 16%, transparent 78%, var(--ink) 100%),
    linear-gradient(to right,  var(--ink) 0%, transparent 12%, transparent 88%, var(--ink) 100%);
}
@keyframes heroIn{
  from{ opacity:0; transform:scale(1.06); filter:blur(6px); }
  to  { opacity:1; transform:scale(1);    filter:blur(0); }
}

/* On phones the artwork is mostly empty margin, which leaves the
   wordmark tiny. Bleed it past the viewport — .hero clips the rest. */
@media (max-width:700px){
  /* wordmark is 78.6% of the artwork width; 112% lands it at ~88% of
     the viewport, leaving a comfortable margin either side */
  .hero-art{ width:112%; margin-inline:-6%; }
}

.hero-tagline{
  margin:clamp(1rem,3vh,2.4rem) auto 0;
  max-width:38ch;
  padding-inline:1.25rem;
  font-style:italic; font-weight:300;
  font-size:clamp(1.02rem,.7rem + .6vw,1.3rem);
  color:var(--body-dim);
  letter-spacing:.02em;
}

.scroll-cue{
  position:absolute; left:50%; bottom:2.2rem;
  transform:translateX(-50%);
  padding:.75rem;
  animation:bob 2.8s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform:translate(-50%,0); } 50%{ transform:translate(-50%,8px); } }
@media (prefers-reduced-motion:reduce){ .scroll-cue{ animation:none; } .hero-art{ animation:none; } }

.diamond{
  display:block; width:7px; height:7px;
  border:1px solid var(--gold);
  transform:rotate(45deg);
  box-shadow:0 0 10px rgba(217,178,99,.5);
}
.scroll-cue .diamond{ opacity:.75; }

/* ── Section shell ──────────────────────────────────────── */
.section{ padding:clamp(4.5rem,11vh,8.5rem) clamp(1.15rem,4vw,2.75rem); }
.wrap{ max-width:var(--wrap); margin-inline:auto; }

.eyebrow{
  margin:0; text-align:center;
  font-family:var(--display); font-weight:500;
  font-size:clamp(.78rem,.6rem + .35vw,.95rem);
  letter-spacing:.34em; text-transform:uppercase;
  color:var(--gold);
}
.rule{
  display:block; width:min(300px,62%);
  margin:1.15rem auto clamp(2.4rem,5vh,3.4rem);
  height:1px;
  background:linear-gradient(90deg,transparent,var(--gold-dim) 22%,var(--gold-dim) 78%,transparent);
  position:relative;
}
.rule::after{
  content:""; position:absolute; left:50%; top:50%;
  width:6px; height:6px; margin:-3px 0 0 -3px;
  border:1px solid var(--gold-dim); transform:rotate(45deg);
  background:var(--ink);
}

/* ── About ──────────────────────────────────────────────── */
.about .prose{
  max-width:63ch; margin-inline:auto; text-align:center;
}
.about p{ margin:0 0 1.5rem; }
.about .lead{
  font-size:clamp(1.16rem,.8rem + .85vw,1.5rem);
  color:#c6c2bc; line-height:1.68;
}
.about .closing{
  margin-top:2.4rem;
  font-family:var(--display); font-weight:400;
  font-size:clamp(.95rem,.7rem + .6vw,1.18rem);
  letter-spacing:.13em; line-height:2.1;
  color:var(--silver);
}

/* ── Meaning grid ───────────────────────────────────────── */
.glyphs{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(1.4rem,3vw,2rem) clamp(.75rem,1.6vw,1.4rem);
  grid-template-columns:repeat(7,1fr);
}
@media (max-width:1000px){ .glyphs{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:620px) { .glyphs{ grid-template-columns:repeat(2,1fr); } }

.glyph{ text-align:center; }

.glyph-letter{
  display:block;
  font-family:var(--display); font-weight:500;
  font-size:clamp(.85rem,.7rem + .35vw,1.02rem);
  letter-spacing:.2em; color:var(--gold-soft);
  margin-bottom:.85rem; opacity:.85;
}

.glyph-orb{
  display:block; position:relative;
  width:min(112px,88%); aspect-ratio:1; margin:0 auto .95rem;
  border-radius:50%;
  transition:transform .5s cubic-bezier(.19,1,.22,1), filter .5s ease;
}
.glyph-orb img{ width:100%; border-radius:50%; }
.glyph-orb::after{
  content:""; position:absolute; inset:-9%;
  border-radius:50%; pointer-events:none;
  box-shadow:0 0 26px 2px rgba(217,178,99,0);
  transition:box-shadow .5s ease;
}
.glyph:hover .glyph-orb{ transform:translateY(-6px) scale(1.06); }
.glyph:hover .glyph-orb::after{ box-shadow:0 0 30px 3px rgba(217,178,99,.22); }

.glyph h3{
  margin:0 0 .3rem;
  font-family:var(--display); font-weight:600;
  font-size:clamp(.76rem,.65rem + .28vw,.9rem);
  letter-spacing:.19em; text-transform:uppercase;
  color:var(--gold);
}
.glyph p{
  margin:0; font-size:.94rem; line-height:1.5;
  color:var(--body-dim);
}

/* ── Manifesto frame ────────────────────────────────────── */
.manifesto{ padding-top:clamp(2rem,5vh,4rem); }
.frame{
  position:relative;
  max-width:760px; margin-inline:auto;
  padding:clamp(2.4rem,6vw,3.6rem) clamp(1.5rem,5vw,3.5rem);
  border:1px solid rgba(217,178,99,.28);
  background:
    radial-gradient(120% 140% at 50% 50%, rgba(217,178,99,.045), transparent 70%),
    rgba(9,11,18,.55);
  text-align:center;
}
.frame p{
  margin:0 0 .55rem;
  font-family:var(--display); font-weight:400;
  font-size:clamp(1rem,.72rem + .8vw,1.42rem);
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--silver);
  line-height:1.85;
}
.frame .sig{
  margin:1.5rem 0 0;
  font-weight:600; letter-spacing:.3em;
  color:var(--gold);
  text-shadow:0 0 22px rgba(217,178,99,.35);
}
.corner{
  position:absolute; width:20px; height:20px; pointer-events:none;
  border:1px solid var(--gold); opacity:.75;
}
.corner.tl{ top:7px;    left:7px;    border-width:1px 0 0 1px; }
.corner.tr{ top:7px;    right:7px;   border-width:1px 1px 0 0; }
.corner.bl{ bottom:7px; left:7px;    border-width:0 0 1px 1px; }
.corner.br{ bottom:7px; right:7px;   border-width:0 1px 1px 0; }

/* ── Listen ─────────────────────────────────────────────── */
.platforms{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:clamp(.9rem,2.4vw,1.9rem);
}
.platforms a{
  display:flex; flex-direction:column; align-items:center; gap:.7rem;
  text-decoration:none; width:6.5rem;
  color:var(--body-dim);
  transition:color .35s ease;
}
.platforms svg{
  width:22px; height:22px; fill:currentColor;
  box-sizing:content-box; padding:1.05rem;
  border:1px solid rgba(217,178,99,.3);
  border-radius:50%;
  color:var(--gold-soft);
  transition:transform .45s cubic-bezier(.19,1,.22,1),
             border-color .35s ease, box-shadow .35s ease, color .35s ease;
}
.platforms span{
  font-family:var(--display); font-size:.66rem;
  letter-spacing:.16em; text-transform:uppercase;
}
.platforms a:hover{ color:var(--gold); }
.platforms a:hover svg{
  transform:translateY(-5px);
  border-color:var(--gold);
  color:#f2d9a0;
  box-shadow:0 0 26px rgba(217,178,99,.25);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer{
  padding:0 1.25rem clamp(2.8rem,6vh,4rem);
  text-align:center;
}
.site-footer .diamond{ margin:0 auto clamp(1.6rem,4vh,2.4rem); }
.domain{
  margin:0 0 .9rem;
  font-family:var(--display); font-weight:500;
  font-size:clamp(.82rem,.65rem + .4vw,1.02rem);
  letter-spacing:.16em;
  color:var(--gold-soft);
}
.copy{
  margin:0; font-size:.85rem; letter-spacing:.06em;
  color:rgba(125,122,118,.72);
}

/* ── Reveal on scroll ───────────────────────────────────────
   Scoped to html.js so that if the script never runs, every
   .reveal stays fully visible instead of the page going blank. */
.js .reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .9s cubic-bezier(.19,1,.22,1),
             transform .9s cubic-bezier(.19,1,.22,1);
  transition-delay:calc(var(--i,0) * 70ms);
}
.js .reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .js .reveal{ opacity:1; transform:none; transition:none; }
}
