/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0b0b0b;
  --bg-card:   #111111;
  --bg-hover:  #161616;
  --text:      #f0ebe0;
  --text-muted:#7a7468;
  --text-dim:  #3a3530;
  --gold:      #c8a96e;
  --gold-dim:  #7a6540;
  --border:    #1e1c19;
  --border-mid:#2e2b26;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===========================
   CONTAINER
=========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   REVEAL ANIMATION
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   TYPOGRAPHY HELPERS
=========================== */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-sub {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 300;
}

.section-header {
  margin-bottom: 64px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--gold-dim);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  position: relative;
}

.btn--primary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}
.btn--primary:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.btn--large {
  font-size: 0.9rem;
  padding: 18px 48px;
}

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  transition: background 0.4s, border-bottom 0.4s;
}

.nav.scrolled {
  background: rgba(11, 11, 11, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--text);
}

.nav__cta {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: opacity 0.2s;
}
.nav__cta:hover { opacity: 0.7; }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0.4;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  padding-bottom: 100px;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

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

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.4;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.35;
}
.hero__scroll-hint span {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ===========================
   INTRO
=========================== */
.intro {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.intro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 80px;
}

.intro__item {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
}
.intro__item:last-child { border-right: none; }

.intro__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1;
}

.intro__text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.intro__footer {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===========================
   POSTULATES
=========================== */
.postulates {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

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

.postulate-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.postulate-card:hover { background: var(--bg-hover); }
.postulate-card:nth-child(3),
.postulate-card:nth-child(6) { border-right: none; }
.postulate-card:nth-child(4),
.postulate-card:nth-child(5),
.postulate-card:nth-child(6) { border-bottom: none; }

.postulate-card__icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.postulate-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.postulate-card__text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ===========================
   16 TYPES
=========================== */
.types {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

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

.type-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
  cursor: default;
}
.type-card:hover { background: var(--bg-hover); }

.type-card:nth-child(4n) { border-right: none; }
.type-card:nth-child(n+13) { border-bottom: none; }

.type-card__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.type-card:hover .type-card__img { transform: scale(1.04); }

.type-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-dim);
  transition: opacity 0.3s;
}
.type-card__img-placeholder:has(~ .type-card__img[src]) { display: none; }

/* hide placeholder when image loads */
.type-card__img-wrap:has(.type-card__img.loaded) .type-card__img-placeholder {
  opacity: 0;
}

.type-card__body {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border);
}

.type-card__code {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
  font-weight: 400;
}

.type-card__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.type-card__person {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ===========================
   HOW IT WORKS
=========================== */
.how {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.how__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how__step {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  gap: 40px;
}
.how__step:last-child { border-bottom: none; }

.how__step-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1;
  padding-top: 4px;
}

.how__step-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.how__step-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
}

/* ===========================
   QUOTE
=========================== */
.quote {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.quote__text {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 20px;
}

.quote__author {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-style: normal;
}

/* ===========================
   FINAL CTA
=========================== */
.cta {
  padding: 140px 0;
  border-bottom: 1px solid var(--border);
}

.cta__inner {
  text-align: center;
}

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1;
}

.cta__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.cta__note {
  margin-top: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  padding: 40px 0;
}

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

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .types__grid { grid-template-columns: repeat(3, 1fr); }
  .type-card:nth-child(4n) { border-right: 1px solid var(--border); }
  .type-card:nth-child(3n) { border-right: none; }
  .type-card:nth-child(n+13) { border-bottom: 1px solid var(--border); }
  .type-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }

  .nav { padding: 20px 24px; }
  .nav__cta { display: none; }

  .hero { padding: 100px 24px 80px; }
  .hero__bg-text { font-size: clamp(60px, 20vw, 120px); }

  .intro__grid { grid-template-columns: 1fr; }
  .intro__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
  }
  .intro__item:last-child { border-bottom: none; }

  .postulates__grid { grid-template-columns: 1fr; }
  .postulate-card {
    border-right: none;
    padding: 40px 0;
  }
  .postulate-card:nth-child(3) { border-bottom: 1px solid var(--border); }
  .postulate-card:nth-child(4),
  .postulate-card:nth-child(5) { border-bottom: 1px solid var(--border); }

  .types__grid { grid-template-columns: repeat(2, 1fr); }
  .type-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .type-card:nth-child(2n) { border-right: none; }
  .type-card:nth-child(n+13) { border-bottom: 1px solid var(--border); }
  .type-card:nth-last-child(-n+2) { border-bottom: none; }

  .how__step { grid-template-columns: 60px 1fr; gap: 24px; }
  .how__step-num { font-size: 3rem; }

  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }

  .section-header { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .types__grid { grid-template-columns: 1fr 1fr; }
}
