/* ============ TRELAIS VENTURE STUDIO ============ */
:root {
  --ink: #0c1017;
  --ink-2: #111726;
  --panel: #161e30;
  --line: rgba(255, 255, 255, 0.09);
  --blue: #0274f6;
  --blue-soft: #62a9ff;
  --text: #eef1f6;
  --muted: #9aa5b5;
  --paper: #f7f5f0;
  --paper-text: #171c26;
  --paper-muted: #545e6e;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.2rem; }
h1 em, h2 em { font-style: italic; color: var(--blue-soft); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 3rem;
}
.center .section-lead { margin-left: auto; margin-right: auto; }
.section-lead em { color: var(--blue-soft); font-style: italic; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 16, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { color: var(--blue); font-size: 1.15rem; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.28em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.25s;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover {
  background: var(--blue-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(2, 116, 246, 0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.btn-small { padding: 9px 20px !important; font-size: 0.82rem; color: #ffffff !important; background: var(--blue); }
.btn-small:hover { color: #ffffff !important; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 190px 0 0;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -280px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(2, 116, 246, 0.16), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, black 35%, transparent 78%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 880px; }
.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
  margin: 1.8rem auto 2.4rem;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  position: relative;
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 24px;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--blue-soft);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-dark {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 1rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 32px;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(2, 116, 246, 0.4); }
.card-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--blue);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.45rem; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.card-link {
  color: var(--blue-soft);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.card-link:hover { opacity: 0.75; }

/* ============ TIMELINE (5 S's) ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 1rem;
  position: relative;
}
.tl-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  transition: transform 0.25s, border-color 0.25s;
}
.tl-item:hover { transform: translateY(-5px); border-color: rgba(2, 116, 246, 0.4); }
.tl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  color: var(--blue-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.tl-item h4 { font-size: 1.2rem; margin-bottom: 8px; }
.tl-item p { font-size: 0.85rem; color: var(--muted); }

/* ============ SPLIT LAYOUTS ============ */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.split-text > p { color: var(--muted); margin-bottom: 1.2rem; max-width: 560px; }
.split-text .btn { margin-top: 0.8rem; }

.location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.4rem 0 0.6rem;
}
.location-chips span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 7px 15px;
  border: 1px solid rgba(2, 116, 246, 0.35);
  border-radius: 999px;
  color: var(--blue-soft);
}
.cta-left { justify-content: flex-start; margin-top: 0.4rem; }

.checklist { list-style: none; margin: 1.6rem 0 2rem; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}
.checklist li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.8rem;
  top: 3px;
}

.visual-card {
  background: linear-gradient(160deg, var(--panel), #101624);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 46px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.visual-tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.visual-big {
  font-family: var(--serif);
  font-size: 3.6rem;
  color: var(--text);
  line-height: 1;
}
.visual-sub { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.visual-divider {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}
.visual-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ ECOSYSTEM ============ */
.eco-diagram { margin-top: 1rem; }
.eco-center {
  width: 210px;
  margin: 0 auto 46px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(2, 116, 246, 0.5);
  border-radius: 20px;
  background: radial-gradient(ellipse at top, rgba(2, 116, 246, 0.12), transparent 70%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.eco-mark { color: var(--blue); font-size: 1.3rem; }
.eco-center strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.24em;
}
.eco-center span:last-child {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.eco-nodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.eco-nodes::before {
  content: "";
  position: absolute;
  top: -46px;
  left: 16.6%;
  right: 16.6%;
  height: 24px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.eco-node {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  transition: border-color 0.25s;
}
.eco-node:hover { border-color: rgba(2, 116, 246, 0.4); }
.eco-node h4 { font-size: 1.25rem; margin-bottom: 10px; }
.eco-node p { font-size: 0.88rem; color: var(--muted); }
.eco-node a {
  color: var(--blue-soft);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.eco-node a:hover { opacity: 0.75; }

/* ============ FOUNDER ============ */
.founder-card { text-align: center; }
.founder-initials {
  width: 96px; height: 96px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--blue);
  background: radial-gradient(ellipse at top, rgba(2, 116, 246, 0.18), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--blue-soft);
}
.founder-name {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 20px;
}
.founder-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.founder-creds span {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

/* ============ CTA ============ */
.section-cta {
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: "";
  position: absolute;
  bottom: -300px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(2, 116, 246, 0.14), transparent 65%);
  pointer-events: none;
}
.section-cta .container { position: relative; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--serif);
  letter-spacing: 0.24em;
  font-size: 0.95rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-dim { color: #5b6575; font-size: 0.8rem; }

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

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

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 46px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .eco-nodes { grid-template-columns: 1fr; }
  .eco-nodes::before { display: none; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 28px 24px;
    gap: 20px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: none; }
}

@media (max-width: 560px) {
  .section { padding: 76px 0; }
  .hero { padding-top: 140px; }
  .timeline { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat-num { font-size: 1.9rem; }
}
