/* Vesta Capital — landing page
   Claude dark mode (#222222 base), composed like the prototype:
   floating pill nav, large centered hero image, bottom-left copy. */

:root {
  --paper:      #191919;  /* EXACT match to the statue's background */
  --paper-deep: #131313;  /* deeper section background              */
  --panel:      #232322;  /* cards / panels                        */
  --ink:        #EDEBE4;  /* primary light text                    */
  --ink-soft:   #B2B0A7;  /* muted body text                       */
  --ink-faint:  #807E76;  /* labels, fine print                    */
  --clay:       #D97757;  /* the flame — Claude coral / orange     */
  --clay-soft:  #E69277;  /* lighter accent / hover                */
  --line:       #333330;  /* hairline borders                      */
  --glass:      rgba(25, 25, 25, 0.55);

  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; background: var(--paper); scrollbar-gutter: stable; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint texture, above content so image + page share it (no seams) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* ---------- the logo mark (recoloured to orange via mask) ---------- */
.logo-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(217, 119, 87, 0.5));
  animation: emberpulse 4.5s ease-in-out infinite;
}

@keyframes emberpulse {
  0%, 100% { opacity: 1;    filter: drop-shadow(0 0 8px rgba(217, 119, 87, 0.5)); }
  50%      { opacity: 0.85; filter: drop-shadow(0 0 13px rgba(217, 119, 87, 0.7)); }
}

/* ---------- floating pill nav ---------- */
.site-header {
  position: fixed;
  top: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
}

.nav-pill,
.nav-cta {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.55rem 1.25rem;
}

.nav-pill .logo {
  display: inline-flex;
  align-items: center;
}
.nav-pill .logo .logo-mark { width: 30px; height: 30px; }

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-pill a:not(.logo) {
  font-size: 0.88rem;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.nav-pill a:not(.logo):hover { color: var(--ink); }

.nav-cta {
  padding: 0.6rem 1.15rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border-color: rgba(217, 119, 87, 0.6);  /* orange outline for the CTA */
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta span { color: var(--clay); transition: transform 0.25s var(--ease); }
.nav-cta:hover { border-color: var(--clay); }
.nav-cta:hover span { transform: translateX(3px); }

/* ---------- account bubble (top right) ---------- */
.account {
  position: fixed;
  top: 1.6rem;
  right: 1.6rem;
  z-index: 11;
}
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.account-btn svg { width: 21px; height: 21px; }
.account-btn:hover,
.account.open .account-btn { border-color: rgba(217, 119, 87, 0.6); color: var(--ink); }

.account-menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  min-width: 168px;
  padding: 0.45rem;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.account.open .account-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.account-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.account-menu button:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.account-menu button svg { width: 16px; height: 16px; flex: none; opacity: 0.8; }

.account-menu .account-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 11px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.account-menu .account-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.account-email {
  padding: 0.5rem 0.75rem 0.55rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

@media (max-width: 560px) {
  .account { top: 1rem; right: 1rem; }
}

/* ---------- layout wrappers ---------- */
main { position: relative; z-index: 1; }

section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- hero (centered image, bottom-left copy) ---------- */
.hero {
  position: relative;
  max-width: none;
  padding: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: flex-end;     /* anchor her to the bottom of the page */
  justify-content: center;
}

.hero-figure img {
  /* native is 1448×1086 — go large, stay crisp; torso sits at the bottom */
  width: min(1240px, 96vw);
  max-height: 96vh;
  height: auto;
  object-fit: contain;
  display: block;
  /* dissolve the statue into the page: gentle on top/sides,
     stronger at the bottom to melt away the torso cut-off */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 84%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 84%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* warm glow behind her — the eternal flame's light */
.hero-figure::before {
  content: "";
  position: absolute;
  width: 40%;
  height: 50%;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(217, 119, 87, 0.14), transparent 70%);
  filter: blur(26px);
  pointer-events: none;
}

/* extra blurred dissolve over the bottom torso edge */
.hero-figure::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  background: linear-gradient(to top, var(--paper) 22%, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
  mask-image: linear-gradient(to top, #000 55%, transparent);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  left: clamp(1.5rem, 5vw, 4.5rem);
  bottom: clamp(2.5rem, 7vh, 4.5rem);
  z-index: 2;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* every line shares the exact same left edge */
  text-align: left;
}
.hero-overlay > * { margin-left: 0; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 27rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
}
.hero-link {
  margin-top: 1.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid var(--line);   /* the short line above, from the mockup */
  transition: border-color 0.25s var(--ease);
}
.hero-link span {
  color: var(--clay);
  transition: transform 0.25s var(--ease);
}
.hero-link:hover { border-color: rgba(217, 119, 87, 0.5); }
.hero-link:hover span { transform: translateX(4px); }

/* annotation line connecting the statue to its etymology caption */
.vesta-note {
  position: absolute;
  top: clamp(5rem, 24vh, 11rem);
  right: clamp(1.5rem, 5vw, 4.5rem);
  z-index: 2;
  max-width: 17rem;
  text-align: left;
}
.note-line {
  display: block;
  width: clamp(80px, 14vw, 170px);
  height: 1px;
  margin-bottom: 1.1rem;
  background: linear-gradient(to left, var(--clay), rgba(217, 119, 87, 0.08));
  position: relative;
}
.vesta-note p {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.vesta-note .ipa { color: var(--ink-faint); }

/* small corner dot / scroll cue (echoes the prototype) */
.scroll-dot {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4.5rem);
  bottom: clamp(2.5rem, 7vh, 4.5rem);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.25s var(--ease);
}
.scroll-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
  transform: rotate(45deg) translate(-1px, -1px);
}
.scroll-dot:hover { border-color: var(--clay); }

/* ---------- metrics strip ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  border-top: 1px solid var(--line);
}
.metric { display: flex; flex-direction: column; gap: 0.4rem; }
.metric-value {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em;
}
.metric-label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ---------- shared section heads ---------- */
.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.1rem;
}
h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-lede {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* ---------- approach: two winding paths (no boxes) ---------- */
.approach { padding-top: 6rem; padding-bottom: 6rem; }
.journey {
  margin-top: 3.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}
.journey-col { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }

.j-head { margin-bottom: 2.2rem; padding-left: 64px; }
.j-tag {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.us .j-tag { color: var(--clay); }
.j-head h3 {
  margin-top: 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* track holds the winding spine + the steps */
.j-track { position: relative; padding-left: 64px; }
.spine-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.spine-path {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.them .spine-path { stroke: url(#themGrad); }
.us .spine-path {
  stroke: var(--clay);
  filter: drop-shadow(0 0 6px rgba(217, 119, 87, 0.5));
}
.journey-col.in .spine-path {
  stroke-dashoffset: 0 !important;
  transition: stroke-dashoffset 1.9s var(--ease);
}

.steps { list-style: none; display: grid; gap: 1.7rem; }
.t-step { position: relative; }

.t-dot {
  position: absolute;
  left: -42px;
  top: 0.15em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-faint);
  z-index: 1;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.us .t-dot { border-color: var(--clay); }
.them .t-end .t-dot { background: #c5614a; border-color: #c5614a; }
.us .t-end .t-dot {
  background: var(--clay);
  border-color: var(--clay);
  box-shadow: 0 0 11px rgba(217, 119, 87, 0.65);
}
.journey-col.in .t-dot { opacity: 1; transform: scale(1); }
.journey-col.in .t-step:nth-child(1) .t-dot { transition-delay: 0.35s; }
.journey-col.in .t-step:nth-child(2) .t-dot { transition-delay: 0.7s; }
.journey-col.in .t-step:nth-child(3) .t-dot { transition-delay: 1.05s; }
.journey-col.in .t-step:nth-child(4) .t-dot { transition-delay: 1.4s; }
.journey-col.in .t-step:nth-child(5) .t-dot { transition-delay: 1.75s; }

.t-body h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.t-body p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.55; }
.them .t-end .t-body h4 { color: #c5614a; }
.us .t-end .t-body h4 { color: var(--clay-soft); }

@media (prefers-reduced-motion: reduce) {
  .spine-path { stroke-dashoffset: 0 !important; }
}
.path-them .path-steps li:last-child::before { background: #c5614a; }

/* ---------- results ---------- */
.results { padding-top: 6rem; padding-bottom: 6rem; }

.results-preview {
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.preview-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; }
.preview-stat { display: flex; flex-direction: column; gap: 0.35rem; }
.preview-stat .v {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  line-height: 1;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--clay-soft);
}
.preview-stat .l {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.preview-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.preview-tag {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.preview-chart { position: relative; height: 240px; }
.stats-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.results-link {
  margin-top: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}
.results-link span { color: var(--clay); transition: transform 0.25s var(--ease); }
.results-link:hover { border-color: rgba(217, 119, 87, 0.5); }
.results-link:hover span { transform: translateX(4px); }

/* ---------- faq ---------- */
.faq {
  max-width: none;
  background: var(--paper);
  padding: 6rem 0;
}
.faq-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.faq-list {
  margin-top: 2.8rem;
  max-width: 46rem;
}
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0;
  font-size: 1.12rem;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--clay-soft); }

/* + / − toggle in clay */
.faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--clay);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}
.faq-toggle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}
.faq-item[open] .faq-toggle::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.faq-answer { overflow: hidden; }
.faq-item p {
  padding: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- contact ---------- */
.contact {
  text-align: center;
  padding: 7rem 2rem;
  max-width: 640px;
}
.contact .section-lede { margin-left: auto; margin-right: auto; }
.contact .btn { margin-top: 2.4rem; }

/* ---------- buttons (used in contact) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay); color: #fff; transform: translateY(-2px); }

.btn-discord {
  gap: 0.65rem;
  padding: 0.95rem 1.8rem;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.25);
}
.btn-discord svg { width: 22px; height: 22px; }
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(88, 101, 242, 0.35);
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 2rem 3.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.footer-mark { margin-bottom: 0.9rem; width: 20px; height: 20px; }
.site-footer p + p { margin-top: 0.6rem; }
.disclaimer {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.8;
}

/* ---------- purchase terms popup ---------- */
#tc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
#tc-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease);
}

#tc-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: scale(0.985);
  filter: blur(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease);
}
#tc-modal-overlay.open #tc-modal {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
#tc-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 119, 87, 0.5), transparent);
}

.tc-header {
  flex-shrink: 0;
  padding: 1.6rem 1.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.tc-header h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.tc-header p { margin-top: 0.35rem; font-size: 0.85rem; color: var(--ink-faint); }

.tc-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.35rem 1.8rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.tc-body h3 {
  margin: 1.15rem 0 0.3rem;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--clay);
}
.tc-intro {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.tc-intro-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.tc-footer {
  flex-shrink: 0;
  padding: 1.3rem 1.8rem;
  border-top: 1px solid var(--line);
}
.tc-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.tc-check-row input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--clay);
  cursor: pointer;
}
.tc-check-row label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
  cursor: pointer;
}
.tc-buttons { display: flex; gap: 0.8rem; }
.tc-decline,
.tc-accept {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.tc-decline {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.tc-decline:hover { border-color: var(--ink); color: var(--ink); }
.tc-accept {
  flex: 2;
  border: none;
  background: var(--clay);
  color: #fff;
  font-weight: 500;
  opacity: 0.4;
  pointer-events: none;
}
.tc-accept.enabled { opacity: 1; pointer-events: auto; }
.tc-accept.enabled:hover { background: var(--clay-soft); }

/* ---------- page fade transition ---------- */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s var(--ease);
}
.page-fade.on { opacity: 1; pointer-events: all; }

/* fade pages in on load (backwards fill so no filter lingers to break fixed nav) */
body { animation: pageIn 0.6s var(--ease) backwards; }
@keyframes pageIn {
  from { opacity: 0; filter: blur(12px); }
  to   { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .page-fade { transition: none; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    gap: 0.5rem;
    top: 1rem;
  }
  .nav-pill { gap: 1rem; padding: 0.5rem 1rem; }
  .nav-pill a:not(.logo) { font-size: 0.82rem; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .scroll-dot { display: none; }
  .vesta-note { display: none; }
  .metrics { grid-template-columns: 1fr; gap: 2rem; }
  .journey { grid-template-columns: 1fr; }
  .preview-stats { gap: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .logo-mark { animation: none; }
  html { scroll-behavior: auto; }
}
