/* site.css — UNQUENCHED. The shell from the 3D kit, re-skinned to the brand:
 * midnight valley, ember light, condensed display type. */
@import url("/fonts/fonts.css");

:root {
  --ink: #f5e9d8;
  --dim: #9aa9ad;
  --bg: #0b1418;
  --accent: #f49a42;
  --ember: #d9573c;
  --hair: rgba(245, 233, 216, 0.14);
  --pad: clamp(1.25rem, 4.5vw, 5rem);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --head: "Montserrat", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#gl {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100svh;
  display: block; z-index: 0;
  transition: opacity 0.9s ease;
}

/* once the hero is gone the scene steps back and the type takes the screen */
body.past-hero #gl { opacity: 0.42; }

/* The valley is lit from the horizon, so the page carries a warm bloom under
   the type instead of a flat black wash. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 42% at 20% 58%, rgba(244, 154, 66, 0.14), transparent 70%),
    radial-gradient(45% 40% at 80% 6%, rgba(217, 87, 60, 0.07), transparent 72%),
    linear-gradient(180deg, rgba(11, 20, 24, 0.34) 0%, rgba(11, 20, 24, 0.22) 42%, rgba(11, 20, 24, 0.72) 82%, var(--bg) 100%),
    linear-gradient(96deg, rgba(11, 20, 24, 0) 24%, rgba(11, 20, 24, 0.42) 58%, rgba(11, 20, 24, 0.72) 100%);
}

.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- nav ---------- */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--pad) * 0.55) var(--pad);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim);
}
header.nav a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
header.nav a:hover { color: var(--ink); }
.nav-links { display: flex; gap: 1.9rem; }
@media (max-width: 820px) { .nav-links { display: none; } }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand svg { display: block; height: 22px; width: auto; }

/* ---------- type ---------- */
main { position: relative; z-index: 1; }
section {
  min-height: 100vh; min-height: 100svh;
  display: grid; align-content: center;
  padding: var(--pad);
  position: relative;
}
section.tall { min-height: 155vh; }

.eyebrow {
  font-size: 0.66rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.5rem;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; }
h1 {
  font-size: clamp(3.1rem, 9.6vw, 9.4rem); line-height: 0.86;
  letter-spacing: -0.015em; text-transform: uppercase;
}
h1 em { font-style: normal; color: var(--accent); }
h2 {
  font-size: clamp(2.1rem, 5.6vw, 4.8rem); line-height: 1.02;
  letter-spacing: 0.005em; text-transform: uppercase;
}
h3 { font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; }

.lede {
  margin: 1.7rem 0 0; max-width: 38ch; color: var(--dim);
  font-size: clamp(0.96rem, 1.25vw, 1.12rem); line-height: 1.72;
}
.lede strong { color: var(--ink); font-weight: 500; }

.hero { align-content: end; padding-bottom: 13vh; }
.hero h1 span { display: block; overflow: hidden; }
.hero h1 span > i { display: block; font-style: normal; transform: translateY(108%); }
.hero .lede { max-width: 44ch; }

@media (min-width: 980px) {
  .hero h1, .hero .lede, .hero .meta { max-width: 56%; margin-left: auto; }
  .hero { justify-items: end; text-align: left; }
}

.meta {
  display: flex; gap: 2.6rem; flex-wrap: wrap;
  border-top: 1px solid var(--hair); padding-top: 1.3rem; margin-top: 2.8rem;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
.meta b { display: block; color: var(--ink); font-size: 0.92rem; letter-spacing: 0.03em; margin-top: 0.4rem; font-weight: 500; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 6vw, 6rem); align-items: end; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.right { justify-self: end; text-align: right; }
@media (max-width: 900px) { .right { justify-self: start; text-align: left; } }

.cta {
  display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 2.5rem;
  padding: 1rem 1.7rem; border: 1px solid rgba(244, 154, 66, 0.45); border-radius: 2px;
  color: var(--ink); text-decoration: none; font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  background: rgba(244, 154, 66, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.cta:hover { background: rgba(244, 154, 66, 0.2); border-color: var(--accent); transform: translateY(-2px); }
.cta.ghost-btn { background: transparent; border-color: var(--hair); }
.cta.ghost-btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.ghost {
  position: absolute; inset: auto var(--pad) 6vh; display: flex; justify-content: space-between;
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim);
}

/* ---------- sections ---------- */
#vision h2 { max-width: 16ch; }
.quote {
  font-family: var(--display); font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.18; text-transform: uppercase; letter-spacing: 0.01em;
  max-width: 22ch; margin: 0;
}
.quote em { font-style: normal; color: var(--accent); }
.attrib { margin-top: 1.6rem; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim); }

/* journey */
#journey { align-content: start; padding-top: 18vh; }
.stages { margin-top: 4.5rem; border-top: 1px solid var(--hair); }
.stage {
  display: grid; grid-template-columns: 5rem minmax(8rem, 15rem) 1fr; gap: 2rem;
  padding: 2.3rem 0; border-bottom: 1px solid var(--hair);
  align-items: start;
}
.stage .n { font-family: var(--display); font-size: 1rem; color: var(--accent); letter-spacing: 0.18em; padding-top: 0.5rem; }
.stage h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.stage p { margin: 0.35rem 0 0; color: var(--dim); line-height: 1.7; max-width: 46ch; font-size: 0.96rem; }
@media (max-width: 780px) {
  .stage { grid-template-columns: 3rem 1fr; gap: 0.8rem 1.2rem; }
  .stage p { grid-column: 2; }
}

/* programs */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); margin-top: 3.4rem; border: 1px solid var(--hair); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: rgba(11, 20, 24, 0.72); padding: 2.1rem 1.8rem 2.3rem;
  min-height: 15rem; display: flex; flex-direction: column; justify-content: space-between;
  transition: background 0.4s ease;
}
.card:hover { background: rgba(244, 154, 66, 0.07); }
.card .tag { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 1rem 0 0.7rem; }
.card p { margin: 0; color: var(--dim); font-size: 0.92rem; line-height: 1.65; }
.card a { margin-top: 1.6rem; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); align-self: flex-start; padding-bottom: 0.3rem; }
.card a:hover { border-color: var(--accent); color: var(--accent); }

/* bloodfire band */
#bloodfire {
  background: linear-gradient(180deg, rgba(217, 87, 60, 0.0), rgba(217, 87, 60, 0.12) 40%, rgba(217, 87, 60, 0.02));
  border-top: 1px solid rgba(217, 87, 60, 0.25);
  border-bottom: 1px solid rgba(217, 87, 60, 0.25);
}
#bloodfire .eyebrow { color: var(--ember); }
#bloodfire h2 em { color: var(--ember); }

/* streams */
.streams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3.4rem; }
@media (max-width: 860px) { .streams { grid-template-columns: 1fr; gap: 2rem; } }
.stream { border-top: 1px solid var(--hair); padding-top: 1.2rem; }
.stream h3 { font-size: 1.15rem; }
.stream p { color: var(--dim); font-size: 0.9rem; line-height: 1.65; margin: 0.6rem 0 0; }

/* connect */
form.subscribe { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; max-width: 46rem; }
form.subscribe input, form.subscribe select {
  flex: 1 1 13rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair);
  color: var(--ink); font-family: var(--font); font-size: 0.9rem;
  padding: 0.95rem 1.1rem; border-radius: 2px; outline: none;
}
form.subscribe input:focus, form.subscribe select:focus { border-color: var(--accent); }
form.subscribe button {
  flex: 0 0 auto; background: var(--accent); color: #16100a; border: 0; border-radius: 2px;
  font-family: var(--font); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; padding: 1rem 1.9rem; cursor: pointer;
  transition: filter 0.3s ease;
}
form.subscribe button:hover { filter: brightness(1.12); }
form.subscribe button[disabled] { opacity: 0.6; cursor: default; }
.form-note { margin-top: 1rem; font-size: 0.78rem; color: var(--dim); min-height: 1.2em; }
.form-note.ok { color: var(--accent); }

footer.site {
  position: relative; z-index: 1; padding: 4rem var(--pad) 3rem;
  border-top: 1px solid var(--hair); background: var(--bg);
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
footer.site a { color: var(--dim); text-decoration: none; }
footer.site a:hover { color: var(--ink); }
.foot-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }

/* reduced motion: no scroll animation, still image instead of a live scene */
@media (prefers-reduced-motion: reduce) {
  .hero h1 span > i { transform: none; }
  * { animation: none !important; transition: none !important; }
}
