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

:root {
  --espresso:      #18100A;
  --dark-brown:    #2B1A10;
  --medium-brown:  #7A5C40;
  --gold:          #C8A96E;
  --gold-light:    #D9C09A;
  --cream:         #FAF7F2;
  --cream-dark:    #F0EAE0;
  --border:        #E4D8C4;
  --text-dark:     #2B1A10;
  --text-muted:    #7A5C40;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  transition: background 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
  background: var(--espresso);
  padding: 18px 60px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.2);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}

.nav-logo span {
  color: var(--gold);
}

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

.nav-links a {
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ─── HERO ────────────────────────────────────────────────────────── */

#hero {
  height: 100vh;
  min-height: 680px;
  background: url('../media/hero.jpg') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200, 169, 110, 0.06) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(18, 10, 5, 0.62) 0%, rgba(18, 10, 5, 0.55) 60%, rgba(18, 10, 5, 0.72) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(18, 10, 5, 0.35);
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  line-height: 1.04;
  color: var(--cream);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 40px auto;
  opacity: 0.7;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(250, 247, 242, 0.55);
  letter-spacing: 0.04em;
  max-width: 480px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
}

.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ─── SHARED ──────────────────────────────────────────────────────── */

section {
  padding: 120px 60px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ABOUT ───────────────────────────────────────────────────────── */

#about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.about-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.2;
  color: var(--text-dark);
}

.about-heading em {
  font-style: italic;
  color: var(--medium-brown);
}

.about-body p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 52px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--text-dark);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: 8px;
}

/* ─── PORTFOLIO ───────────────────────────────────────────────────── */

#portfolio {
  background: var(--dark-brown);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.2);
}

.portfolio-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  color: var(--cream);
  line-height: 1.2;
}

.portfolio-sub {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.4);
  max-width: 340px;
  text-align: right;
}

.entities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.entities-grid .entity-card:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

.entities-grid .entity-card:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

.entity-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(200, 169, 110, 0.12);
  padding: 48px 44px 52px;
  transition: background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: block;
}

a.entity-card {
  cursor: pointer;
}

.entity-card:hover {
  background: rgba(200, 169, 110, 0.06);
  border-color: rgba(200, 169, 110, 0.35);
}

.entity-card:hover .entity-name {
  color: var(--gold-light);
}

.entity-category {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.entity-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.entity-rule {
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin-bottom: 20px;
}

.entity-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(250, 247, 242, 0.4);
}

/* ─── PILLARS ─────────────────────────────────────────────────────── */

#pillars {
  background: var(--cream-dark);
}

.pillars-header {
  text-align: center;
  margin-bottom: 80px;
}

.pillars-heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--text-dark);
  line-height: 1.2;
}

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

.pillar {
  padding: 52px 48px;
  border-right: 1px solid var(--border);
}

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

.pillar-icon {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.pillar-text {
  font-size: 0.83rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */

footer {
  background: var(--espresso);
  padding: 80px 60px 48px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
  margin-bottom: 40px;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.footer-brand span {
  color: var(--gold);
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.35);
  margin-top: 10px;
}

.footer-entities {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer-entity {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.35);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-entity:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(250, 247, 242, 0.25);
  letter-spacing: 0.06em;
}

.footer-note {
  font-size: 0.7rem;
  color: rgba(250, 247, 242, 0.2);
  letter-spacing: 0.06em;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  nav {
    padding: 22px 32px;
  }

  nav.scrolled {
    padding: 16px 32px;
  }

  .nav-links {
    gap: 28px;
  }

  section {
    padding: 80px 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    flex-direction: column;
    gap: 28px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .portfolio-sub {
    text-align: left;
  }

  .entities-grid {
    grid-template-columns: 1fr;
  }

  .entities-grid .entity-card:nth-child(4),
  .entities-grid .entity-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-entities {
    text-align: left;
  }

  footer {
    padding: 60px 32px 40px;
  }
}

@media (max-width: 600px) {
  nav {
    padding: 20px 24px;
  }

  nav.scrolled {
    padding: 14px 24px;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 64px 24px;
  }

  footer {
    padding: 52px 24px 36px;
  }
}
