/* ═══════════════════════════════════════════════
   THE INFINITE ARCH — Global Stylesheet
   theinfinitearch.com
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&display=swap');

/* ── TOKENS ── */
:root {
  --ink:        #000000;
  --cream:      #f5f0e8;
  --warm:       #ede8de;
  --gold:       #b5922a;
  --muted:      #7a7468;
  --rule:       rgba(0,0,0,0.12);
  --rule-dark:  rgba(0,0,0,0.12);
  --rule-light: rgba(0,0,0,0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Cormorant Garamond', Georgia, serif;
  --nav-h:      88px;
  --page-max:   1400px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── BASE ── */
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.2;
}

/* ── NAVIGATION ── */
.tia-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: linear-gradient(to bottom, rgba(245,240,232,0.97) 0%, rgba(245,240,232,0) 100%);
  transition: background 0.4s ease;
}

.tia-nav.scrolled {
  background: rgba(245,240,232,0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}

/* Wordmark in nav */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 0;
}
.nav-logo .r-heavy { width: 130px; height: 2px; background: var(--ink); margin-bottom: 5px; }
.nav-logo .r-thin  { width: 130px; height: 1px; background: var(--ink); opacity: 0.22; margin-bottom: 7px; }
.nav-logo .r-bot   { width: 130px; height: 2px; background: var(--ink); margin-top: 5px; }
.nav-logo .l-the {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: 8.5px;
  letter-spacing: 7px;
  opacity: 0.4;
}
.nav-logo .l-infinite {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 3px;
  opacity: 0.68;
}
.nav-logo .l-arch {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -1px;
  line-height: 0.85;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity 0.3s ease;
  padding-bottom: 2px;
}
.nav-links a:hover { opacity: 0.8; }
.nav-links a.active {
  opacity: 1;
  border-bottom: 1px solid rgba(13,13,13,0.4);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s ease;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(245,240,232,0.98);
  z-index: 499;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 36px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.nav-mobile a:hover,
.nav-mobile a.active { opacity: 1; }

/* ── FOOTER ── */
.tia-footer {
  padding: 64px 60px;
  border-top: 1px solid currentColor;
  border-top-color: rgba(128,128,128,0.15);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
  margin-top: 80px;
}

.footer-left {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.25;
  line-height: 2;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 1.5px;
  opacity: 0.35;
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

.footer-attr {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.2;
}

.footer-right {
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.3;
  line-height: 2;
}
.footer-right a { opacity: 1; transition: opacity 0.3s; }
.footer-right a:hover { opacity: 0.6; }

/* ── PAGE WRAPPER ── */
.page-content {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── SECTION UTILITIES ── */
.rule-h { width: 100%; height: 1px; background: var(--rule); }
.rule-gold { width: 40px; height: 1px; background: var(--gold); opacity: 0.6; }

.label-sm {
  font-size: 9.5px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.3;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-up { animation: fadeUp 0.9s var(--ease) both; }
.fade-in { animation: fadeIn 0.9s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.6s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --nav-h: 70px; }
  .tia-nav { padding: 0 28px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo .r-heavy,
  .nav-logo .r-thin,
  .nav-logo .r-bot { width: 105px; }
  .nav-logo .l-arch { font-size: 30px; }
  .nav-logo .l-infinite { font-size: 12px; }
  .tia-footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 28px;
  }
  .footer-right { text-align: center; }
}
