/* =============================================================
   Components — reusable patterns
   See design/COMPONENT_SPEC.md for behavior + variant rules.
   ============================================================= */

/* -----------------------------------------------------------
   NAV
   ----------------------------------------------------------- */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) var(--gutter-desktop);
  color: var(--text-on-dark);
}

.nav__crest {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__crest-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav__crest-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
}

.nav__crest-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-top: 3px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-mono-md);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.85;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
}

@media (max-width: 900px) {
  .nav { padding: var(--space-5) var(--gutter-mobile); }
  .nav__links { display: none; }
}

/* -----------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-mono-md);
  font-weight: 400;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-standard);
  border-radius: 0;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--sky-4);
  padding: 18px 34px;
}

.btn--primary:hover {
  background: var(--paper);
  transform: translateX(4px);
}

.btn--primary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  padding: 11px 24px;
  border: var(--border-gold-strong);
  font-size: 10px;
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--sky-4);
}

.btn--ghost {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--gold);
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  background: none;
  color: var(--text-on-dark);
}

.on-cream .btn--ghost {
  color: var(--text-on-cream);
  text-decoration-color: var(--gold-deep);
}

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-dark);
}

.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' seed='5'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>");
}

.hero__text {
  position: absolute;
  left: var(--gutter-desktop);
  bottom: var(--space-10);
  z-index: 15;
  max-width: 600px;
}

.hero__headline {
  font-size: var(--text-display-xl);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: var(--tracking-display);
  margin: var(--space-3) 0 var(--space-5);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero__headline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero__lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  max-width: 480px;
  color: var(--text-on-dark-soft);
  margin-bottom: var(--space-7);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__ctas {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
}

.hero__stamp {
  position: absolute;
  top: 120px;
  right: var(--gutter-desktop);
  z-index: 15;
  width: 120px;
  height: 120px;
  border: var(--border-gold-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: var(--tracking-mono-loose);
  text-transform: uppercase;
  text-align: center;
  opacity: 0.7;
  line-height: 1.6;
}

.hero__stamp::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--gold);
  border-radius: 50%;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .hero__text {
    left: var(--gutter-mobile);
    right: var(--gutter-mobile);
    bottom: var(--space-8);
  }
  .hero__stamp { display: none; }
}

/* -----------------------------------------------------------
   SECTION HEADER (shared by content sections)
   ----------------------------------------------------------- */

.section {
  padding: var(--space-11) var(--gutter-desktop);
}

.section--paper {
  background: var(--paper);
  color: var(--text-on-cream);
  position: relative;
}

.section--paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--ink) 0%, transparent 100%);
  opacity: 0.3;
  pointer-events: none;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
  gap: var(--space-7);
}

.section__title {
  font-size: var(--text-display-lg);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  max-width: 700px;
}

.section__title em {
  font-style: italic;
  color: var(--gold-deep);
}

.section__meta {
  font-family: var(--font-mono);
  font-size: var(--text-mono-md);
  letter-spacing: var(--tracking-mono);
  color: var(--gold-deep);
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .section { padding: var(--space-10) var(--gutter-mobile); }
}

/* -----------------------------------------------------------
   DISCIPLINE GRID (3 cards sharing borders)
   ----------------------------------------------------------- */

.disciplines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.discipline {
  padding: var(--space-8) var(--space-7) var(--space-7);
  border-right: var(--border-thin);
  position: relative;
  transition: background var(--duration-slow) var(--ease-standard);
}

.discipline:last-child {
  border-right: none;
}

.discipline:hover {
  background: rgba(184, 133, 46, 0.06);
}

.discipline__vignette {
  width: 100%;
  height: 160px;
  margin-bottom: var(--space-7);
  border: var(--border-thin);
  overflow: hidden;
  position: relative;
}

.discipline__num {
  font-family: var(--font-mono);
  font-size: var(--text-mono-md);
  letter-spacing: 0.35em;
  color: var(--gold-deep);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.discipline__title {
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-3);
  font-style: italic;
}

.discipline__body {
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--text-on-cream-soft);
}

@media (max-width: 900px) {
  .disciplines { grid-template-columns: 1fr; }
  .discipline {
    border-right: none;
    border-bottom: var(--border-thin);
  }
  .discipline:last-child { border-bottom: none; }
}

/* -----------------------------------------------------------
   DOCTRINE QUOTE BAND
   ----------------------------------------------------------- */

.doctrine {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: var(--space-11) var(--gutter-desktop);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.doctrine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(244, 210, 138, 0.18), transparent 60%);
  pointer-events: none;
}

.doctrine__text {
  position: relative;
  font-size: var(--text-display-md);
  font-weight: 300;
  line-height: 1.35;
  max-width: 1000px;
  margin: 0 auto;
  font-style: italic;
}

.doctrine__text::before { content: '"'; color: var(--gold); font-size: 0.9em; opacity: 0.7; }
.doctrine__text::after  { content: '"'; color: var(--gold); font-size: 0.9em; opacity: 0.7; }

.doctrine__attr {
  margin-top: var(--space-7);
  font-family: var(--font-mono);
  font-size: var(--text-mono-md);
  letter-spacing: var(--tracking-mono-loose);
  color: var(--gold);
  text-transform: uppercase;
  position: relative;
}

@media (max-width: 900px) {
  .doctrine { padding: var(--space-10) var(--gutter-mobile); }
}

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--gold);
  padding: var(--space-8) var(--gutter-desktop);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-mono-md);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  border-top: var(--border-thin-gold);
}

@media (max-width: 900px) {
  .footer { padding: var(--space-7) var(--gutter-mobile); }
}

/* -----------------------------------------------------------
   ENTRANCE ANIMATIONS
   ----------------------------------------------------------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__text > * {
  opacity: 0;
  animation: fadeUp var(--duration-cinematic) var(--ease-cinematic) forwards;
}

.hero__text > *:nth-child(1) { animation-delay: 0ms; }
.hero__text > *:nth-child(2) { animation-delay: 120ms; }
.hero__text > *:nth-child(3) { animation-delay: 240ms; }
.hero__text > *:nth-child(4) { animation-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .hero__text > * { opacity: 1; animation: none; }
}
