/* ============================================================
   TML.vc — From the dance floor to the future of humanity.
   Art Nouveau-inspired LP portal.
   Palette: emerald, antique gold, ivory, blush.
   ============================================================ */

:root {
  /* Core palette */
  --emerald-900: #06251c;
  --emerald-800: #0a3d2e;
  --emerald-700: #134f3e;
  --emerald-500: #1f7a5f;
  --gold-300:   #efd8a3;
  --gold-400:   #e6c98a;
  --gold-500:   #c9a86a;
  --gold-600:   #a67c3d;
  --gold-700:   #7a5a2c;
  --ivory:      #f4ecd8;
  --ivory-dim:  #e6dcc1;
  --blush:      #e6a8a0;
  --teal:       #1e6b6b;

  /* Functional */
  --bg:        var(--emerald-900);
  --bg-soft:   var(--emerald-800);
  --bg-cream:  var(--ivory);
  --text:      var(--ivory);
  --text-dim:  rgba(244, 236, 216, 0.72);
  --text-dark: #14201a;
  --text-dark-dim: rgba(20, 32, 26, 0.7);
  --accent:    var(--gold-500);
  --accent-strong: var(--gold-400);
  --rule:      rgba(201, 168, 106, 0.25);
  --rule-dark: rgba(20, 32, 26, 0.12);

  /* Type */
  --f-serif:  "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Geometry */
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
  --shadow-1: 0 4px 24px rgba(0,0,0,0.18);
  --shadow-2: 0 24px 80px rgba(0,0,0,0.35);
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ============== TYPE ============== */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.2rem, 6vw, 5.2rem); font-weight: 400; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.16em; font-family: var(--f-sans); font-weight: 600; color: var(--gold-400); }
p  { margin: 0 0 1em; }

.kicker {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 1.2em;
}
.kicker--dark { color: var(--gold-700); }
.kicker--gold { color: var(--gold-500); }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(6,37,28,0.85) 0%, rgba(6,37,28,0) 100%);
  backdrop-filter: blur(0px);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(6,37,28,0.78);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.brand__word { font-weight: 500; }
.brand__dot { color: var(--gold-500); margin: 0 1px; }
.brand__mark svg { display: block; }

.nav__links {
  display: flex; gap: 28px;
  font-size: 0.92rem; letter-spacing: 0.06em;
}
.nav__links a { color: var(--text-dim); }
.nav__links a:hover { color: var(--gold-400); }

.nav__cta { white-space: nowrap; }

.nav__burger {
  display: none;
  background: transparent; border: 0; padding: 8px;
  width: 40px; height: 40px;
}
.nav__burger span {
  display: block; height: 2px; background: var(--gold-400); margin: 5px 0; transition: transform .25s ease, opacity .25s ease;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  text-transform: uppercase;
}
.btn--primary {
  background: linear-gradient(180deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--emerald-900);
  box-shadow: 0 6px 20px rgba(201, 168, 106, 0.25);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(201, 168, 106, 0.35); }
.btn--ghost {
  background: transparent;
  color: var(--gold-400);
  border-color: var(--gold-500);
}
.btn--ghost:hover { background: rgba(201, 168, 106, 0.1); color: var(--gold-300); }
.btn--link {
  background: transparent; padding: 14px 0; color: var(--text-dim); text-transform: none; letter-spacing: 0.04em;
}
.btn--link:hover { color: var(--gold-400); }
.btn--block { width: 100%; }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: min(90vh, 820px);
  display: flex; align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.04) brightness(1.05);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(6, 37, 28, 0.18) 0%, rgba(6, 37, 28, 0.65) 65%, rgba(6, 37, 28, 0.9) 100%),
    linear-gradient(180deg, rgba(6,37,28,0.55) 0%, rgba(6,37,28,0.2) 30%, rgba(6,37,28,0.85) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: 980px; margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero__title {
  margin-top: .2em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero__title--accent {
  display: block;
  font-style: italic;
  color: var(--gold-300);
  background: linear-gradient(180deg, #f3deaa 0%, var(--gold-400) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}
.hero__lede {
  max-width: 680px; margin: 1.4em auto 2em;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-dim);
}

.trinity {
  display: inline-flex; align-items: center; gap: 22px;
  margin: 0 0 2em;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  color: var(--gold-300);
  letter-spacing: 0.04em;
}
.trinity__word { letter-spacing: 0.08em; padding: 0 4px; }
.trinity__dot { color: var(--gold-500); font-size: 0.7em; opacity: 0.85; }

.hero__cta {
  display: inline-flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3;
}
.hero__scroll span {
  display: block; width: 1px; height: 56px;
  background: linear-gradient(180deg, transparent, var(--gold-500), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(8px); }
}

/* ============== SECTION HEADS ============== */
.section-head {
  max-width: 760px;
  margin: 0 0 64px;
}
.section-head--centered { margin: 0 auto 80px; text-align: center; }
.section-head .section-lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-dark-dim);
  margin-top: 0.4em;
}
.theses .section-head .section-lede,
.lp .section-head .section-lede { color: var(--text-dim); }

/* ============== PILLARS ============== */
.pillars {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-dim) 100%);
  color: var(--text-dark);
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.pillars::before,
.pillars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 80px; pointer-events: none;
}
.pillars::before { top: 0; background: linear-gradient(180deg, var(--emerald-900), transparent); }
.pillars::after  { bottom: 0; background: linear-gradient(0deg, var(--emerald-900), transparent); }

.pillars h2 { color: var(--emerald-900); }
.pillars .section-lede { color: var(--text-dark-dim); }

.pillar-grid {
  display: flex; flex-direction: column; gap: clamp(60px, 9vw, 120px);
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.pillar--reverse .pillar__art { order: 2; }
.pillar--reverse .pillar__body { order: 1; }

.pillar__art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--emerald-900);
  aspect-ratio: 3 / 4;
}
.pillar__art img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.pillar:hover .pillar__art img { transform: scale(1.04); }
.pillar__art::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(201, 168, 106, 0.25);
  border-radius: var(--radius);
  pointer-events: none;
}

.pillar__roman {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-600);
  margin: 0 0 .4em;
  letter-spacing: 0.06em;
}
.pillar__title {
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  color: var(--emerald-900);
  margin: 0;
  line-height: 1;
}
.pillar__sub {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-700);
  margin: 0.2em 0 1.2em;
}
.pillar__copy {
  color: var(--text-dark-dim);
  font-size: 1.05rem;
  max-width: 48ch;
}
.pillar__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 1.6em 0 0;
}
.pillar__tags li {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-700);
  border: 1px solid rgba(122, 90, 44, 0.35);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.4);
}

/* ============== THESES ============== */
.theses {
  background: var(--emerald-900);
  color: var(--text);
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.theses h2 { color: var(--ivory); }

.theses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.thesis-card {
  display: block;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(244, 236, 216, 0.04) 0%, rgba(244, 236, 216, 0.02) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.thesis-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(201, 168, 106, 0.18), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.thesis-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-500);
  background: linear-gradient(180deg, rgba(244, 236, 216, 0.06) 0%, rgba(244, 236, 216, 0.03) 100%);
}
.thesis-card:hover::before { opacity: 1; }

.thesis-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.thesis-card__num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-500);
}
.thesis-card__tag {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-400);
  border: 1px solid var(--rule);
  padding: 4px 10px; border-radius: 999px;
}
.thesis-card h3 {
  color: var(--ivory);
  font-size: 1.5rem;
  margin: 0 0 14px;
}
.thesis-card p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0 0 20px;
}
.thesis-card__cta {
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-400);
}

/* ============== FOUNDATION ============== */
.foundation {
  background: linear-gradient(180deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.foundation::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 168, 106, 0.10), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(30, 107, 107, 0.18), transparent 50%);
  pointer-events: none;
}
.foundation__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative; z-index: 1;
}
.foundation__copy h2 { color: var(--ivory); }
.foundation__copy p { color: var(--text-dim); font-size: 1.05rem; max-width: 56ch; }
.foundation__copy strong { color: var(--gold-400); font-weight: 600; }

.foundation__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--rule); padding-top: 32px;
}
.stat__num {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--gold-400);
  line-height: 1;
}
.stat__num span { font-size: 0.6em; color: var(--gold-500); margin-left: 2px; }
.stat__label {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 12px;
}

.foundation__ornament {
  display: flex; align-items: center; justify-content: center;
  height: 100%;
}
.foundation__ornament svg {
  width: 100%; max-width: 320px; height: auto;
  filter: drop-shadow(0 0 24px rgba(201, 168, 106, 0.15));
}

/* ============== LP PORTAL ============== */
.lp {
  background: linear-gradient(180deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.lp__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.lp__copy h2 { color: var(--ivory); }
.lp__copy p { color: var(--text-dim); font-size: 1.05rem; max-width: 48ch; }

.lp__check {
  list-style: none; padding: 0; margin: 1.6em 0 0;
  display: grid; gap: 12px;
}
.lp__check li {
  position: relative; padding-left: 28px;
  color: var(--text-dim); font-size: 0.98rem;
}
.lp__check li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--gold-500); font-size: 0.9rem; line-height: 1.6;
}

.lp__form {
  background: linear-gradient(180deg, rgba(244, 236, 216, 0.06) 0%, rgba(244, 236, 216, 0.02) 100%);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-2);
}
.lp__form h3 {
  color: var(--ivory); margin: 0 0 4px; font-size: 1.5rem;
}
.lp__form-sub {
  color: var(--text-dim); font-size: 0.9rem; margin: 0 0 24px;
}

.field {
  display: block;
  margin-bottom: 16px;
}
.field > span,
.field > legend {
  display: block;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(6, 37, 28, 0.5);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ivory);
  font-family: var(--f-sans);
  font-size: 0.98rem;
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: rgba(6, 37, 28, 0.75);
}
.field textarea { resize: vertical; min-height: 80px; }

.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.field--pillars { border: 0; padding: 0; margin: 16px 0; }
.field--pillars .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule); border-radius: 999px;
  cursor: pointer; margin-right: 8px; margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: all .2s ease;
}
.field--pillars .chip input { accent-color: var(--gold-500); }
.field--pillars .chip:has(input:checked) {
  background: rgba(201, 168, 106, 0.15);
  border-color: var(--gold-500);
  color: var(--gold-300);
}

.lp__legal {
  font-size: 0.78rem; color: var(--text-dim); margin-top: 16px; line-height: 1.5;
}

.lp__success {
  margin-top: 18px; padding: 14px 18px;
  background: rgba(201, 168, 106, 0.12);
  border: 1px solid var(--gold-500);
  border-radius: 8px;
  color: var(--gold-300);
  font-family: var(--f-serif); font-style: italic; font-size: 1.05rem;
}

/* ============== FOOTER ============== */
.footer {
  background: var(--emerald-900);
  border-top: 1px solid var(--rule);
  padding: 80px 0 0;
  color: var(--text-dim);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(30px, 5vw, 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
.brand--footer { color: var(--ivory); font-size: 1.6rem; }
.footer__tag {
  font-family: var(--f-serif); font-style: italic; font-size: 1.05rem;
  color: var(--text-dim); margin-top: 16px;
}

.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.footer__cols h4 { color: var(--gold-400); margin-bottom: 18px; }
.footer__cols a {
  display: block; padding: 6px 0;
  color: var(--text-dim); font-size: 0.92rem;
}
.footer__cols a:hover { color: var(--gold-400); }

.footer__bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: 24px var(--gutter); gap: 12px;
  font-size: 0.82rem; color: rgba(244, 236, 216, 0.5);
}
.footer__legal { max-width: 50ch; }

/* ============== REVEAL ANIMS ============== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar--reverse .pillar__art { order: 0; }
  .pillar--reverse .pillar__body { order: 0; }
  .pillar__art { aspect-ratio: 4 / 3; }
  .theses-grid { grid-template-columns: repeat(2, 1fr); }
  .foundation__inner { grid-template-columns: 1fr; }
  .foundation__ornament { display: none; }
  .lp__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6, 37, 28, 0.96); backdrop-filter: blur(20px);
    padding: 20px var(--gutter); border-top: 1px solid var(--rule);
  }
  .theses-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .foundation__stats { grid-template-columns: 1fr; gap: 16px; }
  .footer__cols { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 80px; min-height: auto; }
  .hero__inner { padding-top: 20px; }
  .trinity { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; max-width: 320px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* Ultra-small screens */
@media (max-width: 380px) {
  .brand__word { font-size: 1.3rem; }
  .hero__title { font-size: 2rem; }
}

/* ============== UTILITIES ============== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
