/* ================================================================
   AFFERENTIC PRESENTATION — SHARED DESIGN SYSTEM
   Institutional luxury. Editorial restraint. Quiet confidence.
   ================================================================ */

/* Fonts loaded via <link> tags in HTML for faster loading */

:root {
  --canvas: #0C1713;
  --surface: #142420;
  --elevated: #1E332D;
  --brass: #B8942A;
  --brass-light: #D4B04A;
  --brass-dim: #8A6F1F;
  --text-1: #F5F3EE;
  --text-2: #DDD9D0;
  --text-3: #A09B8E;
  --glass-bg: rgba(240, 237, 230, 0.04);
  --glass-border: rgba(240, 237, 230, 0.08);
  --glass-hover: rgba(240, 237, 230, 0.07);
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================ RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-2);
  background: var(--canvas);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ================================================================ NOISE OVERLAY */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ================================================================ AMBIENT GLOW */
.glow {
  position: fixed;
  top: -25vh; right: -15vw;
  width: 70vw; height: 70vh;
  background: radial-gradient(ellipse at center,
    rgba(184,148,42,0.07) 0%,
    rgba(30,51,45,0.1) 35%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 30s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8vw, 12vh) scale(1.05); }
  100% { transform: translate(-3vw, 5vh) scale(0.97); }
}

/* ================================================================ NAVIGATION */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(12, 23, 19, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  height: 3.75rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  transition: background 0.4s;
}
.nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brass);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a.active { color: var(--brass-light); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -0.35rem; left: 0; right: 0;
  height: 1px;
  background: var(--brass);
}

/* ================================================================ CONTENT WRAPPER */
.page {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

/* ================================================================ TYPOGRAPHY */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text-1);
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.015em;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
p {
  margin-bottom: 1.5rem;
  max-width: 62ch;
}
strong {
  color: var(--text-1);
  font-weight: 500;
}

/* ================================================================ SECTION LABEL */
.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
  display: block;
}

/* ================================================================ DIVIDERS */
.divider {
  height: 1px;
  margin: 5rem 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184,148,42,0.2) 15%,
    rgba(212,176,74,0.3) 50%,
    rgba(184,148,42,0.2) 85%,
    transparent 100%
  );
}

/* ================================================================ SPACERS */
.space-xl { height: 8rem; }
.space-lg { height: 5rem; }
.space-md { height: 3rem; }

/* ================================================================ PULL QUOTE */
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.55;
  color: var(--text-1);
  padding: 2rem 0 2rem 2rem;
  border-left: 2px solid var(--brass);
  margin: 3rem 0;
  max-width: 58ch;
}

/* ================================================================ CARDS (GLASS) */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.card:hover {
  border-color: rgba(184, 148, 42, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-1);
  margin-bottom: 0.6rem;
}
.card-text {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ================================================================ KEY TERM HIGHLIGHT */
.k {
  color: var(--brass-light);
  font-weight: 500;
}

/* ================================================================ ASPIRE BADGE */
.aspire {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.4rem;
  background: rgba(184,148,42,0.12);
  color: var(--brass);
  border: 1px solid rgba(184,148,42,0.2);
}

/* ================================================================ GRID LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ================================================================ NEXT PAGE LINK */
.next-page {
  display: flex;
  justify-content: center;
  padding-top: 3rem;
}
.next-page a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--brass-light);
  background: rgba(184, 148, 42, 0.08);
  border: 1px solid rgba(184, 148, 42, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
}
.next-page a:hover {
  background: rgba(184, 148, 42, 0.16);
  border-color: rgba(184, 148, 42, 0.4);
  transform: translateY(-1px);
}

/* ================================================================ SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ================================================================ FAQ ACCORDION */
.faq-item {
  border-bottom: 1px solid var(--glass-border);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-1);
  transition: color 0.2s;
  user-select: none;
}
.faq-q:hover { color: var(--brass-light); }
.faq-q::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--brass);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
  padding: 0 0;
}
.faq-item.open .faq-a {
  max-height: 20rem;
  padding: 0 0 1.25rem 0;
}
.faq-a p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}
.faq-a p:last-child { margin-bottom: 0; }

/* ================================================================ BURGER MENU */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem;
  z-index: 600;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text-2);
  margin: 4px 0;
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ================================================================ RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 0 1.25rem; }
  .nav-burger { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 3.75rem;
    left: 0; right: 0;
    background: rgba(12, 23, 19, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
  }
  .nav-links a.active::after { display: none; }
  .page { padding: 6rem 1.25rem 4rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .divider { margin: 3.5rem 0; }
  .space-xl { height: 4rem; }
  .pull-quote { padding-left: 1.25rem; }
}

/* ================================================================ BRASS LAMP */
.lamp {
  position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; pointer-events: none; z-index: 2; overflow: hidden;
}
/* Lamp anchored to nav bottom (3.75rem) with fixed offsets — no vh units */
.lamp-mask { position: absolute; top: 0; left: 0; right: 0; height: 3.75rem; background: var(--canvas); z-index: 1; }
.lamp-halo {
  position: absolute; top: 2rem; left: 50%; transform: translateX(-50%);
  width: min(44rem, 80vw); height: 14rem; border-radius: 50%;
  background: rgba(194,162,77,0.15); filter: blur(5rem);
  animation: lamp-halo-pulse 7s ease-in-out infinite;
}
.lamp-core {
  position: absolute; top: 3.5rem; left: 50%; transform: translateX(-50%);
  width: min(28rem, 60vw); height: 10rem; background: rgba(217,196,114,0.45);
  border-radius: 50%; filter: blur(4rem);
  animation: lamp-breathe 7s ease-in-out infinite;
}
.lamp-hotspot {
  position: absolute; top: 5.5rem; left: 50%; transform: translateX(-50%);
  width: min(12rem, 25vw); height: 3.5rem; background: rgba(217,196,114,0.5);
  border-radius: 50%; filter: blur(2rem);
  animation: lamp-hotspot-pulse 7s ease-in-out infinite;
}
.lamp-filament {
  position: absolute; top: 6.5rem; left: 50%; transform: translateX(-50%);
  height: 2px; background: rgba(217,196,114,0.9); filter: blur(0.5px);
  animation: lamp-filament-breathe 7s ease-in-out infinite;
}
.lamp-cone {
  position: absolute; top: 6.5rem; left: 0; right: 0; height: 65vh;
  background: radial-gradient(ellipse 50% 75% at 50% 0%, rgba(194,162,77,0.3) 0%, rgba(194,162,77,0.1) 35%, transparent 65%);
  animation: lamp-pulse 7s ease-in-out infinite;
}
@keyframes lamp-breathe { 0%,100% { width:24rem; opacity:0.4; } 50% { width:36rem; opacity:0.6; } }
@keyframes lamp-pulse { 0%,100% { opacity:0.85; } 50% { opacity:1; } }
@keyframes lamp-filament-breathe { 0%,100% { width:28rem; opacity:0.8; } 50% { width:38rem; opacity:1; } }
@keyframes lamp-halo-pulse { 0%,100% { opacity:0.15; transform:translateX(-50%) scale(1); } 50% { opacity:0.3; transform:translateX(-50%) scale(1.08); } }
@keyframes lamp-hotspot-pulse { 0%,100% { opacity:0.4; width:10rem; } 50% { opacity:0.7; width:16rem; } }

/* ================================================================ PRINT */
@media print {
  body { background: #fff; color: #333; font-size: 11pt; }
  .glow, .nav, body::after { display: none; }
  .page { padding: 0; max-width: 100%; }
  h1, h2, h3, strong, .k { color: #0C1713; }
  .card { background: #f9f7f2; border-color: #ddd; box-shadow: none; }
  .pull-quote { border-color: #8A6F1F; }
  .reveal { opacity: 1; transform: none; }
}
