/* ========================================================================
   THE ORDER  &mdash;  shared stylesheet
   used by: index.html, about.html, ethos.html, join.html
   ======================================================================== */

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

:root {
  --white:      #ffffff;
  --snow:       #fafafa;
  --mist:       #f2f2f4;
  --silver:     #e8e8ec;
  --ash:        #b0b0b8;
  --slate:      #6e6e78;
  --ink:        #2a2a32;
  --deep:       #111116;
  --gold:       #c9a84c;
  --gold-soft:  rgba(201, 168, 76, 0.08);
  --gold-line:  rgba(201, 168, 76, 0.20);
  --gold-strong:rgba(201, 168, 76, 0.55);
  --radius:     8px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ambient glow ----------------------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201,168,76,0.045) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* typography ------------------------------------------------------------- */
.serif { font-family: 'Cormorant Garamond', 'Georgia', serif; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--deep);
}

a { color: inherit; }

/* layout ----------------------------------------------------------------- */
.page { position: relative; z-index: 1; }

section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

section.wide { max-width: 960px; }

/* nav -------------------------------------------------------------------- */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px 0;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--deep);
}

.nav-mark .glyph {
  width: 22px; height: 22px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.nav-mark .glyph::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.nav-mark .word {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--deep);
  border-bottom-color: var(--gold);
}

@media (max-width: 600px) {
  .nav { padding: 20px 24px 0; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.65rem; letter-spacing: 0.15em; }
}

/* hero ------------------------------------------------------------------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 120px;
  position: relative;
}

.hero-image {
  width: 100vw;
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 0;
  margin-bottom: 64px;
  aspect-ratio: 21 / 9;
  height: auto;
  background-size: cover, cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f6efe2;
  position: relative;
  overflow: hidden;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--gold-line);
  pointer-events: none;
}

/* hero image variants — image layered over gradient placeholder.
   if the image file is missing, the gradient layers below show through. */
.hero-sigil {
  background-image:
    url('images/sigil.jpeg'),
    radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 30%, rgba(201, 168, 76, 0.18) 0%, transparent 45%),
    linear-gradient(135deg, #f8f1e3 0%, #efe4cc 50%, #e6d8b8 100%);
}

.hero-origin {
  background-image:
    url('images/origin.jpeg'),
    radial-gradient(ellipse at 25% 70%, rgba(201, 168, 76, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(140, 100, 50, 0.18) 0%, transparent 50%),
    linear-gradient(110deg, #f5ead4 0%, #e8d8b4 60%, #d8c190 100%);
}

.hero-pillars {
  background-image:
    url('images/pillars.jpeg'),
    radial-gradient(ellipse at 50% 40%, rgba(201, 168, 76, 0.24) 0%, transparent 55%),
    linear-gradient(180deg, #faf3e2 0%, #f0e6cb 70%, #e8dcb4 100%);
}

.hero-threshold {
  background-image:
    url('images/threshold.jpeg'),
    radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.42) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 50%, rgba(80, 70, 50, 0.30) 30%, rgba(40, 35, 28, 0.55) 80%),
    linear-gradient(180deg, #2a2520 0%, #1a1612 100%);
}

.hero-symbol {
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--gold-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  position: relative;
}

.hero-symbol::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.05;
}

.page-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.1;
  text-align: center;
}

.hero-line {
  width: 48px;
  height: 1px;
  background: var(--gold-line);
  margin: 0 auto 32px;
}

.hero p,
.lede {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 560px;
  line-height: 1.85;
  font-weight: 300;
  margin: 0 auto;
}

/* divider ---------------------------------------------------------------- */
.divider {
  text-align: center;
  padding: 72px 0;
}

.divider-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--silver);
}

.divider-mark .dot {
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.divider-mark .arm {
  width: 40px;
  height: 1px;
  background: var(--silver);
}

/* generic block ---------------------------------------------------------- */
.block { padding-bottom: 96px; }

.block h2 {
  font-size: 2.25rem;
  font-weight: 300;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}

.block-text {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 2;
}

.block-text.center { text-align: center; }

.block-text p + p { margin-top: 24px; }

/* pull quote ------------------------------------------------------------- */
.pull {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-style: italic;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.01em;
  max-width: 640px;
  margin: 16px auto 8px;
  padding: 16px 0;
}

.pull-attr {
  display: block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 16px;
  font-style: normal;
}

/* pillars ---------------------------------------------------------------- */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pillar {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.pillar:hover {
  border-color: var(--gold-line);
  box-shadow: 0 8px 32px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.75;
}

/* expanded pillar (ethos page) ------------------------------------------ */
.pillar-deep {
  padding: 56px 0;
  border-bottom: 1px solid var(--mist);
}

.pillar-deep:last-child { border-bottom: none; }

.pillar-deep .pillar-num {
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: left;
}

.pillar-deep h3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.pillar-deep p {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.95;
}

.pillar-deep p + p { margin-top: 16px; }

.pillar-deep .principle {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--snow);
  border-left: 2px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.55;
}

/* commitment list -------------------------------------------------------- */
.commitment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.commitment-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
}

.commitment-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 10px;
}

/* path / two-stage ------------------------------------------------------- */
.path {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.stage {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
}

.stage-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.stage h3 {
  font-size: 1.625rem;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.stage p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.75;
}

.stage p + p { margin-top: 12px; }

@media (min-width: 720px) {
  .path { grid-template-columns: 1fr 1fr; }
}

/* card / ask ------------------------------------------------------------- */
.ask { padding-bottom: 140px; text-align: center; }

.ask-card {
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  padding: 64px 48px;
  background: var(--gold-soft);
}

.ask h2 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.ask p {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* button ----------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--deep);
  border: 1px solid var(--deep);
  padding: 16px 44px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--deep);
  color: var(--white);
}

.btn-gold {
  border-color: var(--gold);
  color: var(--ink);
  background: var(--gold-soft);
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

/* form ------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 640px;
  margin: 0 auto;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 500;
}

.field .hint {
  font-size: 0.8125rem;
  color: var(--ash);
  font-style: italic;
  margin-top: -2px;
  margin-bottom: 4px;
}

.field input,
.field textarea {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 4px;
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.field textarea { min-height: 120px; line-height: 1.7; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

.form-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--ash);
  text-align: center;
  max-width: 480px;
  line-height: 1.6;
  font-style: italic;
}

/* circle (members) ------------------------------------------------------- */
.circle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.seat {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 28px 32px;
  text-align: center;
}

.seat .role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.seat .desc {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.65;
}

@media (min-width: 720px) {
  .circle { grid-template-columns: 1fr 1fr; }
}

/* footer ----------------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 48px 32px 56px;
  border-top: 1px solid var(--mist);
  margin-top: 80px;
}

.footer p {
  font-size: 0.7rem;
  color: var(--ash);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer .glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  margin-bottom: 16px;
  position: relative;
}

.footer .glyph::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* responsive overrides --------------------------------------------------- */
@media (min-width: 640px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.5rem; letter-spacing: 0.08em; }
  .page-title { font-size: 2rem; letter-spacing: 0.06em; }
  .hero p, .lede { font-size: 1rem; }
  section { padding: 0 24px; }
  .ask-card { padding: 48px 24px; }
  .block h2,
  .ask h2 { font-size: 1.75rem; }
  .pillar-deep h3 { font-size: 1.625rem; }
  .hero-image { aspect-ratio: 16 / 9; margin-bottom: 40px; }
  .pull { font-size: 1.4rem; }
}

/* scroll reveal ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
