/* Trinity Sky — $20M raise room pages (extends styles.css) */

.raise-honesty {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 24px 16px 8px;
}

.raise-toc {
  position: sticky;
  top: var(--site-header-h, 64px);
  z-index: 30;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.raise-toc details {
  padding: 8px 0;
}

.raise-toc summary {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.raise-toc summary::-webkit-details-marker {
  display: none;
}

.raise-toc summary::after {
  content: " +";
  color: var(--primary);
}

.raise-toc details[open] summary::after {
  content: " −";
}

.raise-toc__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 6px;
  font-size: 13px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
}

.raise-toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.raise-toc a:hover {
  color: var(--text-primary);
}

.raise-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.raise-path__card {
  display: block;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  min-height: 180px;
  transition: border-color var(--duration-fast), transform var(--duration-fast);
}

.raise-path__card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.raise-path__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.raise-path__card h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 0 0 8px;
}

.raise-path__card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.raise-doc {
  padding: 72px 0 96px;
  background: var(--void);
}

.raise-doc .container,
.raise-doc .raise-shell {
  max-width: 1200px;
}

.raise-doc h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 56px 0 16px;
  color: var(--text-primary);
}

.raise-doc h3 {
  font-size: 20px;
  margin: 36px 0 12px;
  color: var(--text-primary);
}

.raise-doc p,
.raise-doc li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.raise-doc ul,
.raise-doc ol {
  padding-left: 22px;
  margin: 12px 0 20px;
}

.raise-doc ul {
  list-style: disc;
}

.raise-doc ol {
  list-style: decimal;
}

.raise-doc li {
  margin: 6px 0;
}

.raise-doc hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.raise-doc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.raise-doc a {
  color: var(--primary);
}

.raise-doc .comparison__wrapper,
.raise-kv-wrap {
  margin: 24px 0 32px;
}

.raise-kv {
  width: 100%;
  border-collapse: collapse;
}

.raise-kv th,
.raise-kv td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.raise-kv th:first-child,
.raise-kv td:first-child {
  color: var(--text-muted);
  width: 34%;
  font-weight: 600;
}

.raise-say,
.raise-board,
.raise-pause {
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  margin: 20px 0;
}

.raise-say {
  background: rgba(139, 124, 246, 0.1);
  border: 1px solid rgba(139, 124, 246, 0.35);
}

.raise-say::before {
  content: "Say this";
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.raise-board {
  background: var(--panel);
  border: 1px solid var(--border);
}

.raise-board::before {
  content: "On the board";
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neural-cyan);
  margin-bottom: 10px;
  font-weight: 600;
}

.raise-pause {
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-style: italic;
}

.raise-slide {
  padding-top: 8px;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

.raise-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.raise-team__card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.raise-team__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 124, 246, 0.16);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}

.raise-team__role {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neural-cyan);
  margin-bottom: 8px;
}

.raise-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.raise-shell {
  width: min(calc(100% - 2.5rem), 1200px);
  margin: 0 auto;
}

.page-hero {
  padding: 8rem 0 3rem;
  position: relative;
  overflow: hidden;
  background: var(--void);
  z-index: 2;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.1), transparent 60%);
  pointer-events: none;
}

.page-hero .raise-shell {
  position: relative;
  z-index: 1;
  text-align: left;
}

.page-hero h1 {
  margin: 1rem 0 1.2rem;
  max-width: 38ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
}

.page-hero .lede {
  max-width: 72ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 124, 246, 0.28);
  background: rgba(139, 124, 246, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.page-hero .eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(139, 124, 246, 0.8);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.raise-section {
  padding: 5rem 0;
}

.raise-section--alt {
  background: rgba(10, 14, 23, 0.45);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 28ch;
}

.callout {
  padding: 2rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(139, 124, 246, 0.1), transparent 50%),
    rgba(10, 14, 23, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 124, 246, 0.16);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.callout .card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neural-cyan);
}

.callout h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}

.callout p {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.raise-card {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.3s;
}

.raise-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 124, 246, 0.28);
}

.raise-card--seed {
  border-top: 3px solid var(--primary);
}

.raise-card--gate {
  border-top: 3px solid var(--neural-cyan);
}

.raise-card--scale {
  border-top: 3px solid var(--neural-magenta);
}

.card-number {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.raise-card--gate .card-number {
  color: var(--neural-cyan);
}

.raise-card--scale .card-number {
  color: var(--neural-magenta);
}

.raise-card .card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.raise-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.raise-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.raise-card .mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary);
  margin-top: 0.6rem;
}

.raise-parallax.parallax-divider {
  height: 45vh;
  min-height: 320px;
  max-height: 520px;
}

.raise-parallax .parallax-divider__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  background: none;
  border-radius: 0;
  padding: 2rem;
  letter-spacing: 0;
  text-transform: none;
  font-family: inherit;
}

.raise-parallax__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
}

.raise-parallax__text {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.blog-stacks-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-stack {
  margin-bottom: 3rem;
}

.blog-stack-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.06) 0%, rgba(10, 15, 17, 0.92) 100%);
  border: 1px solid rgba(139, 124, 246, 0.12);
  position: relative;
  overflow: hidden;
}

.blog-stack-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 124, 246, 0.06), transparent);
  animation: stackShimmer 6s ease-in-out infinite;
}

@keyframes stackShimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.stack-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.stack-icon--cyan { background: var(--neural-cyan); }
.stack-icon--magenta { background: var(--neural-magenta); }
.stack-icon--teal { background: var(--neural-teal); color: #041016; }

.stack-qlt {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #050508;
  line-height: 1;
}

.blog-stack-label h2 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0;
  position: relative;
  z-index: 1;
}

.stack-count {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.blog-layer {
  display: block;
  position: relative;
  margin-bottom: -1px;
  padding: 1rem 1.6rem;
  background: rgba(10, 15, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.blog-layer:first-of-type { border-radius: 12px 12px 0 0; }
.blog-layer:last-of-type { border-radius: 0 0 12px 12px; }
.blog-layer:only-of-type { border-radius: 12px; }

.blog-layer .layer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out-expo);
  pointer-events: none;
}

.blog-layer .layer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 8, 0.94) 0%, rgba(5, 5, 8, 0.82) 40%, rgba(5, 5, 8, 0.55) 100%);
}

.blog-layer:hover .layer-bg,
.blog-layer.open .layer-bg {
  opacity: 1;
}

.blog-layer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.35s;
}

.blog-layer:hover::before,
.blog-layer.open::before {
  opacity: 1;
}

.blog-layer-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  position: relative;
  z-index: 2;
}

.layer-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
  min-width: 24px;
  transition: color 0.3s;
}

.blog-layer:hover .layer-num,
.blog-layer.open .layer-num {
  color: var(--primary);
}

.layer-tag {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(139, 124, 246, 0.1);
  color: var(--primary);
}

.blog-layer[data-cat="tech"] .layer-tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--neural-cyan);
}

.blog-layer[data-cat="product"] .layer-tag {
  background: rgba(232, 121, 249, 0.1);
  color: var(--neural-magenta);
}

.blog-layer[data-cat="financial"] .layer-tag {
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
}

.blog-layer-head h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  flex: 1;
  margin: 0;
  transition: color 0.3s;
}

.blog-layer:hover .blog-layer-head h3,
.blog-layer.open .blog-layer-head h3 {
  color: var(--primary);
}

.layer-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.4s var(--ease-spring);
  flex-shrink: 0;
  opacity: 0.4;
}

.blog-layer:hover .layer-arrow {
  color: var(--primary);
  transform: translateX(6px);
  opacity: 1;
}

.blog-layer.open .layer-arrow {
  transform: rotate(90deg);
  opacity: 1;
  color: var(--primary);
}

.blog-layer-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out-expo), opacity 0.4s 0.08s, padding 0.4s;
  padding: 0;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
}

.layer-text {
  flex: 1;
  min-width: 0;
}

.journey-stacks .blog-layer:hover .blog-layer-body,
.journey-stacks .blog-layer.open .blog-layer-body {
  max-height: 520px;
  opacity: 1;
  padding: 0.7rem 0 0.6rem 34px;
}

.blog-layer-body p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.4rem;
}

.blog-layer-body .mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.layer-cta {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.layer-cta::after {
  content: "→";
  transition: transform 0.3s var(--ease-spring);
}

.blog-layer:hover .layer-cta::after {
  transform: translateX(5px);
}

.layer-thumb {
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: visible;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.5s 0.15s, transform 0.5s 0.15s var(--ease-spring);
  border: 1px solid rgba(139, 124, 246, 0.12);
  position: relative;
  z-index: 1;
  cursor: zoom-in;
}

.blog-layer:hover .layer-thumb,
.blog-layer.open .layer-thumb {
  opacity: 1;
  transform: translateX(0);
}

.layer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: brightness(0.75) saturate(0.8);
  transition: filter 0.4s ease, transform 0.45s var(--ease-out-expo), box-shadow 0.4s ease;
}

.layer-thumb:hover img {
  filter: brightness(1) saturate(1);
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 124, 246, 0.25);
}

.blog-layer:hover,
.blog-layer.open {
  background: rgba(10, 14, 23, 0.92);
  border-color: rgba(139, 124, 246, 0.2);
  transform: scale(1.008) translateX(4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    -4px 0 20px rgba(139, 124, 246, 0.08),
    inset 0 0 40px rgba(139, 124, 246, 0.03);
  z-index: 3;
}

.hover-zoom-pop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  pointer-events: none;
  background: rgba(5, 8, 10, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.hover-zoom-pop.active {
  opacity: 1;
  visibility: visible;
}

.hover-zoom-pop img {
  max-width: min(920px, 82vw);
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
}

.raise-line {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.raise-line__inner {
  max-width: 760px;
}

.raise-line h2 {
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 12px 0 28px;
  color: var(--text-primary);
}

.raise-line a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.raise-line a:hover {
  color: var(--primary-hover);
}

@media (max-width: 768px) {
  .raise-toc {
    top: var(--site-header-h, 64px);
  }
  .raise-doc h2 {
    font-size: 22px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 6.5rem 0 2rem;
  }
  .page-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
  .blog-layer-head h3 {
    font-size: 0.82rem;
  }
  .blog-layer:hover {
    transform: translateX(3px);
  }
  .journey-stacks .blog-layer-body {
    flex-direction: column;
  }
  .journey-stacks .layer-thumb {
    width: 100%;
    height: 200px;
    margin-top: 0.6rem;
  }
  .journey-stacks .blog-layer:hover .blog-layer-body,
  .journey-stacks .blog-layer.open .blog-layer-body {
    padding-left: 0;
    max-height: 720px;
  }
  .blog-stack-label {
    padding: 0.6rem 0.8rem;
  }
}
