:root {
  --ink: #050806;
  --forest: #07130e;
  --moss: #10291e;
  --mist: #789d84;
  --bone: #d9c4a2;
  --gold: #b68a51;
  --paper: #eee8dd;
  --line: rgba(217, 196, 162, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; background: var(--paper); color: var(--ink); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem clamp(1.25rem, 4vw, 4rem);
  background: linear-gradient(to bottom, rgba(3, 7, 5, .92), transparent);
  transition: background .35s ease, padding .35s ease;
}
.site-header.scrolled { padding-block: .8rem; background: rgba(3, 7, 5, .93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.wordmark {
  display: block;
  flex: 0 0 auto;
  width: clamp(9rem, 9vw, 11.5rem);
  max-width: 11.5rem;
  text-decoration: none;
}
.wordmark img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0, 0, 0, .72));
}
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
nav a { text-decoration: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .18em; color: rgba(238,232,221,.76); transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--paper); }
.nav-cta { border: 1px solid var(--line); padding: .55rem .8rem; }

.hero { min-height: 100svh; position: relative; display: grid; place-items: end center; isolation: isolate; overflow: hidden; }
.hero-image { position: absolute; inset: 0; z-index: -4; background: url('assets/hero.webp') center 42% / cover no-repeat; transform: scale(1.015); animation: breathe 18s ease-in-out infinite alternate; }
.hero-vignette { position: absolute; inset: 0; z-index: -3; background: linear-gradient(to bottom, rgba(2,6,4,.06) 25%, rgba(2,5,4,.55) 72%, var(--ink) 100%), radial-gradient(circle at center, transparent 28%, rgba(1,4,2,.66) 105%); }
.hero-content { width: min(900px, 90vw); padding: 11rem 1rem 4.5rem; text-align: center; }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.scroll-cue { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; text-transform: uppercase; font-size: .7rem; letter-spacing: .2em; color: rgba(238,232,221,.76); }
.scroll-cue svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; animation: drift 1.7s ease-in-out infinite; }

.manifesto { position: relative; display: grid; grid-template-columns: 1fr minmax(300px, .75fr); align-items: center; gap: clamp(3rem, 9vw, 9rem); min-height: 100vh; padding: clamp(6rem, 10vw, 10rem) clamp(1.4rem, 8vw, 9rem); background: radial-gradient(circle at 80% 50%, rgba(14, 51, 35, .36), transparent 45%), var(--ink); }
.manifesto-copy { max-width: 660px; }
h2 { font-family: Cinzel, serif; font-weight: 500; font-size: clamp(2.6rem, 5.5vw, 6rem); line-height: 1.04; letter-spacing: -.035em; color: var(--bone); margin: 0 0 2rem; }
.manifesto-image { position: relative; aspect-ratio: 4/5; margin: 0; max-height: 75vh; box-shadow: 0 30px 80px rgba(0,0,0,.52); }
.manifesto-image::before { content: ''; position: absolute; inset: -1rem 1rem 1rem -1rem; z-index: -1; border: 1px solid var(--line); }
.section-mark { position: absolute; left: 2.5vw; bottom: 2rem; font: 500 20vw/1 Cinzel,serif; color: rgba(182,138,81,.028); }

.summoning { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 7rem 1.5rem; background: radial-gradient(circle at 50% 55%, rgba(16,58,39,.6), transparent 38%), linear-gradient(rgba(2,6,4,.45), rgba(2,6,4,.94)), url('assets/portrait-ritual.webp') center 35% / cover no-repeat; }
.summoning h2 { font-size: clamp(2.4rem, 5.5vw, 5.5rem); text-shadow: 0 4px 30px #000; }
.summoning > p:not(.eyebrow) { color: rgba(238,232,221,.75); margin-top: 0; }
.button { display: inline-block; margin-top: 1.5rem; padding: .9rem 1.2rem; border: 1px solid rgba(217,196,162,.44); text-decoration: none; text-transform: uppercase; font-size: .7rem; letter-spacing: .21em; transition: background .25s ease, color .25s ease; }
.button:hover, .button:focus-visible { background: var(--bone); color: var(--ink); }
.branch-sigil { display: flex; align-items: center; gap: .3rem; height: 4rem; margin-bottom: 1.2rem; }
.branch-sigil span { display: block; width: 2px; height: 3rem; background: var(--gold); transform: rotate(35deg); transform-origin: bottom; opacity: .75; }
.branch-sigil span:nth-child(2) { height: 4rem; transform: rotate(0); }
.branch-sigil span:nth-child(3) { transform: rotate(-35deg); }

.contact {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(6rem, 10vw, 9rem) 1.5rem;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, rgba(16, 58, 39, .42), transparent 42%), var(--ink);
}
.contact h2 { margin-bottom: 1.25rem; }
.contact-intro { max-width: 620px; margin: 0 0 2.5rem; color: rgba(238,232,221,.7); }
.contact-links { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; }
.contact-links a {
  min-width: min(320px, 88vw);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  color: var(--bone);
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease;
}
.contact-links a:hover, .contact-links a:focus-visible { border-color: var(--gold); background: rgba(182,138,81,.08); }
.contact-links span { display: block; margin-bottom: .3rem; color: var(--gold); font-size: .65rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.social-links a { color: rgba(238,232,221,.68); font-size: .7rem; letter-spacing: .15em; text-decoration: none; text-transform: uppercase; }
.social-links a:hover, .social-links a:focus-visible { color: var(--paper); }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.7rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); color: rgba(238,232,221,.48); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes breathe { to { transform: scale(1.05); } }
@keyframes drift { 50% { transform: translateY(.4rem); } }

@media (max-width: 760px) {
  .site-header { padding-inline: 1rem; }
  .wordmark { width: clamp(7.5rem, 32vw, 9rem); max-width: 9rem; }
  nav a:not(.nav-cta) { display: none; }
  .hero-image { background-position: center 30%; }
  .hero-content { padding-bottom: 3rem; }
  .manifesto { grid-template-columns: 1fr; min-height: auto; }
  .manifesto-image { width: min(100%, 520px); justify-self: end; }
  .contact { min-height: auto; }
  .contact-links { width: 100%; }
  footer { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
