/* ── Fonts ────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0D1B2A;
  --gold:   #C68A2E;
  --copper: #B87333;
  --ivory:  #F6F4EF;
  --slate:  #6B7280;
  --muted:  #9CA3AF;
  --white:  #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--ivory);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--white); }

/* ── Typography helpers ───────────────────────────────────────────────────── */
.font-serif { font-family: 'Lora', Georgia, serif; }
.italic     { font-style: italic; }

/* ── Fade-in animation ────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.fade-in.from-left  { transform: translateX(-2rem); }
.fade-in.from-right { transform: translateX(2rem); }
.fade-in.visible    { opacity: 1; transform: translate(0, 0); }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.site-header .logo { height: 9rem; width: auto; object-fit: contain; display: block; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  transition: color 0.2s;
}
.site-nav button:hover { color: var(--copper); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem 2rem 4rem;
}
@media (min-width: 1024px) { .hero { padding: 9rem 6rem 4rem; } }

.hero-inner { max-width: none; width: 100%; }

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 4.5vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0;
  text-align: center;
}
.hero h1 .accent { font-style: italic; color: var(--gold); }

.hero-rule {
  height: 1px;
  width: 5rem;
  max-width: none;
  background: rgba(198,138,46,0.5);
  margin: 2.5rem auto;
}

.hero p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--slate);
  max-width: 36rem;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
}

/* ── Foundry Section ─────────────────────────────────────────────────────── */
.foundry-section {
  background: var(--navy);
  color: var(--white);
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .foundry-section { padding: 8rem 6rem; } }

.foundry-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .foundry-inner { grid-template-columns: 5fr 7fr; }
}

.foundry-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.foundry-section h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--white);
}

.foundry-rule {
  height: 1px;
  width: 6rem;
  background: rgba(198,138,46,0.5);
  margin: 2rem 0;
}

.foundry-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  line-height: 1.75;
}

/* ── Foundry Visual (compass SVG container) ──────────────────────────────── */
.foundry-visual {
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.foundry-visual svg { width: 100%; height: 100%; }

/* ── Principles Section ──────────────────────────────────────────────────── */
.principles-section {
  padding: 10rem 2rem;
  background: var(--ivory);
}
@media (min-width: 1024px) { .principles-section { padding: 10rem 6rem; } }

.principles-header {
  text-align: center;
  margin-bottom: 6rem;
}
.principles-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.principles-section h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
}

.principles-grid {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px)  { .principles-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .principles-grid { grid-template-columns: repeat(4, 1fr); gap: 3rem; } }

.principle-item { position: relative; }
.principle-number {
  font-family: 'Lora', serif;
  font-size: 5rem;
  color: rgba(198,138,46,0.08);
  position: absolute;
  top: -3rem;
  left: -1.5rem;
  user-select: none;
  line-height: 1;
}
.principle-content {
  position: relative;
  border-top: 1px solid rgba(198,138,46,0.3);
  padding-top: 2rem;
}
.principle-content h3 {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.principle-content p {
  color: var(--slate);
  font-weight: 300;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ── Statement Section ───────────────────────────────────────────────────── */
.statement-section {
  background: var(--navy);
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .statement-section { padding: 8rem 6rem 5rem; } }

.statement-section .perspective-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.statement-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,0.8) 0%, transparent 40%, transparent 60%, rgba(13,27,42,0.8) 100%);
  pointer-events: none;
}

.statement-inner {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.statement-inner h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.statement-rule {
  width: 4rem;
  height: 1px;
  background: rgba(198,138,46,0.4);
  margin: 0 auto 2.5rem;
}

.statement-inner p.body {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 3.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.statement-inner p.quote {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.65;
  max-width: 30rem;
  margin: 0 auto;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 2rem;
}
@media (min-width: 1024px) { .site-footer { padding: 4rem 6rem; } }

.footer-inner { max-width: 75rem; margin: 0 auto; }

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: flex-start;
}
@media (min-width: 768px) {
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

.footer-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
  overflow: hidden;
  flex-shrink: 0;
}
.footer-icon img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-bottom p, .footer-bottom a {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  line-height: 1.6;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold); }

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal-header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-header .logo { height: 5rem; width: auto; object-fit: contain; display: block; }
.legal-header a.back {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-header a.back:hover { color: var(--copper); }

.legal-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.legal-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.legal-main h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.legal-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 3rem; }

.legal-main section { margin-bottom: 2.5rem; }

.legal-main h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.legal-main p {
  color: rgba(13,27,42,0.75);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.legal-main ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}
.legal-main ul li {
  color: rgba(13,27,42,0.75);
  line-height: 1.8;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.legal-main a { color: var(--gold); text-decoration: none; }
.legal-main a:hover { text-decoration: underline; }

.legal-footer {
  border-top: 1px solid rgba(13,27,42,0.1);
  padding: 2.5rem;
  text-align: center;
}
.legal-footer p { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; }
.legal-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.legal-footer nav a { font-size: 0.75rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.legal-footer nav a:hover { color: var(--gold); }
