/* ideaX v2 — 20260517.9 — deck: slides embed + folder link (no folder iframe) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

:root {
  --bg: #000000;
  --bg-card: #0f1419;
  --bg-card-2: #1a2129;
  --brand: #00d9c0;
  --brand-dim: #008575;
  --energy: #f59e0b;
  --medical: #fb7185;
  --predict: #a78bfa;
  --xrpl: #23292f;
  --text: #ffffff;
  --text-body: #b8c5d6;
  --text-muted: #6b7280;
  --divider: #2d3748;
  --container: min(1120px, 92vw);
  --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.15; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }

.container { width: var(--container); margin-inline: auto; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.eyebrow-preserve { text-transform: none; letter-spacing: 0.06em; }
sup.tm {
  font-size: 0.55em;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.08em;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.85;
}
.brand-word {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
  font-weight: 800;
}
.brand-tm {
  font-size: 0.48em;
  font-weight: 700;
  margin-left: 0.06em;
  transform: translateY(-0.35em);
  opacity: 0.9;
  line-height: 1;
}
.section { padding: 5rem 0; position: relative; }
.section--tight { padding: 3.5rem 0; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}
.brand-link:hover { text-decoration: none; }
.brand-link svg { width: 2rem; height: 2rem; }
.nav-toggle { display: none; }
.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-panel a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-panel a:hover { color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.btn--brand { background: var(--brand); color: #000; }
.btn--brand:hover { text-decoration: none; opacity: 0.92; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, .chip:focus-visible, .nav-toggle-label:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: -15%;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  border-radius: 50%;
  background: var(--brand-dim);
  opacity: 0.12;
  pointer-events: none;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; color: var(--text); }
.hero h1 strong {
  display: block;
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--brand);
  margin-top: 0.15em;
  line-height: 1.05;
}
.hero-mission { margin: 1.25rem 0 0.75rem; max-width: 45rem; }
.hero-mission-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}
.hero-mission-text {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.35;
}
.hero-mission-text em { font-style: italic; }
.hero-sub {
  font-size: 0.95rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-style: normal;
}
.hero-meta { margin-top: 1.5rem; font-size: 0.95rem; }
.hero-meta strong { color: var(--text); display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.75rem 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.chip svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.chip--energy { border-color: var(--energy); color: var(--energy); }
.chip--medical { border-color: var(--medical); color: var(--medical); }
.chip--predict { border-color: var(--predict); color: var(--predict); }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--divider);
}
.card--accent-top { border-top: 6px solid var(--accent, var(--brand)); padding-top: 1.1rem; }
.card--accent-left { border-left: 4px solid var(--accent, var(--brand)); }
.card--outline-brand { border: 2px solid var(--brand); background: rgba(0, 217, 192, 0.06); }
.card--brand-fill { background: var(--brand); color: #000; border-color: var(--brand); }
.card--brand-fill h3, .card--brand-fill h4, .card--brand-fill p, .card--brand-fill li { color: #000; }
.card--brand-fill a { color: #003d36; font-weight: 700; }
.muted { color: var(--text-muted); }
.italic { font-style: italic; }
.center { text-align: center; }

/* Pattern columns */
.pattern-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}
.pattern-col--energy { --accent: var(--energy); }
.pattern-col--medical { --accent: var(--medical); }
.pattern-col--predict { --accent: var(--predict); }

/* Problem rows */
.problem-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--divider);
}
.problem-row:last-child { border-bottom: none; }
.problem-icon { color: var(--brand); width: 2.5rem; height: 2.5rem; }

/* Tiles */
.tile-card h3 { font-size: 1.5rem; font-weight: 800; }
.tile-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 1rem 0 0.35rem;
}
.tile-deep { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--divider); }
.tile-deep h3 { font-size: 1.35rem; margin-bottom: 1.25rem; }

/* Comparison */
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.compare-col h3 { font-size: 1.1rem; }
.compare-col--muted { opacity: 0.85; }
.compare-col--hero { border: 2px solid var(--brand); background: rgba(0, 217, 192, 0.05); border-radius: 10px; padding: 1.25rem; }

/* Why now */
.why-cell {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--divider);
}
.why-num { font-size: 2rem; font-weight: 900; color: var(--brand); line-height: 1; }

/* Landscape matrix */
.matrix-wrap { max-width: 900px; margin: 0 auto; }
.matrix {
  display: grid;
  grid-template-columns: 7rem 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.matrix-head { font-weight: 800; padding: 0.5rem; }
.matrix-head--brand { color: var(--brand); }
.matrix-label { font-weight: 700; padding: 0.75rem 0.5rem; align-self: center; }
.matrix-label--brand { color: var(--brand); }
.matrix-cell { padding: 1rem; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--divider); min-height: 7rem; }
.matrix-cell--brand {
  background: var(--brand);
  color: #000;
  border-color: var(--brand);
  font-weight: 600;
}
.matrix-cell--brand strong { font-weight: 900; }

/* Diff */
.diff-card { position: relative; padding-left: 1.25rem; }
.diff-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

/* Token layers */
.layer-stack .card { margin-bottom: 0.75rem; }
.xrpl-list { list-style: none; padding: 0; }
.xrpl-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
}
.xrpl-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--brand);
}
.built-on {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}
.built-on a { color: var(--text-body); font-weight: 600; }

/* Team */
.founder-card { border: 2px solid var(--brand); border-radius: 10px; padding: 1.5rem; }
.advisor-card { margin-bottom: 0.75rem; }
.founder-bench,
.advisor-bench {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 10px;
}
.founder-bench-content,
.advisor-bench-content {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  user-select: none;
  pointer-events: none;
}
.founder-bench-overlay,
.advisor-bench-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.founder-bench-overlay .badge,
.advisor-bench-overlay .badge {
  background: rgba(15, 20, 25, 0.85);
  border: 1px solid var(--brand);
  color: var(--text);
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 90%;
}

/* Portfolio */
.stat-big {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.upside { font-weight: 800; margin-top: 0.75rem; }

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--divider);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.site-footer a { color: var(--brand); }
.site-footer--compact { padding: 1.25rem 0; }

/* Pitch deck viewer (/deck.html) */
.deck-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.deck-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  padding-bottom: 1.5rem;
  min-height: 0;
}
.deck-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 0 1rem;
}
.deck-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin-bottom: 0;
}
.deck-note {
  font-size: 0.85rem;
  margin: 0;
  max-width: 28rem;
  text-align: right;
}
.deck-note a { color: var(--brand); }
.deck-viewer { display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; }
.deck-frame-wrap {
  position: relative;
  flex: 1;
  min-height: calc(100dvh - var(--header-h) - 14rem);
  border: 1px solid var(--divider);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 0 40px rgba(0, 217, 192, 0.06);
}
.deck-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100dvh - var(--header-h) - 14rem);
  border: 0;
}
/* Covers “CEO: Brian Hughes” on slide 1 (inside iframe; cross-origin) */
.deck-fallback {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--energy);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.9rem;
  color: var(--text-body);
}
.deck-fallback a { color: var(--brand); }
/* v2 slide 1: CEO line sits below MISSION block */
.deck-redact {
  position: absolute;
  left: 3.25%;
  bottom: 6.5%;
  width: min(48%, 380px);
  height: 2.85rem;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.deck-redact.is-visible {
  opacity: 1;
  visibility: visible;
}
.deck-redact::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--divider);
}
.deck-redact-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.25;
}
.deck-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--divider);
}
.deck-nav--folder {
  border-top: none;
  margin-top: 1rem;
  padding-top: 0;
}
.deck-frame-wrap--folder {
  min-height: calc(100dvh - var(--header-h) - 12rem);
}
.deck-frame-wrap--folder .deck-frame {
  min-height: calc(100dvh - var(--header-h) - 12rem);
}
.deck-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-body);
  min-width: 8rem;
  text-align: center;
}
.deck-status strong { color: var(--brand); font-weight: 900; }
.btn--deck {
  min-width: 9.5rem;
  border: 1px solid var(--divider);
  background: var(--bg-card);
  color: var(--text);
}
.btn--deck:hover:not(:disabled) {
  text-decoration: none;
  border-color: var(--brand-dim);
  color: var(--brand);
}
.btn--deck:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.deck-hint {
  text-align: center;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}
.deck-hint kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--divider);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 0.85em;
  color: var(--text);
}
@media (max-width: 768px) {
  .deck-toolbar { flex-direction: column; align-items: flex-start; }
  .deck-frame-wrap,
  .deck-frame { min-height: 56dvh; }
  .deck-nav { flex-direction: column; }
  .btn--deck { width: 100%; max-width: 20rem; }
  .deck-redact {
    left: 2.5%;
    bottom: 7%;
    width: 52%;
    height: 3.25rem;
  }
}

/* Animations */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Mobile nav */
@media (max-width: 768px) {
  h2 sup.tm, h3 sup.tm { font-size: 0.5em; }
  .brand-tm { font-size: 0.44em; transform: translateY(-0.3em); }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 0; height: 0; }
  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
  }
  .nav-toggle-label span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
  }
  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.97);
    padding: 1.5rem;
    border-bottom: 1px solid var(--divider);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle:checked ~ .nav-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header-inner { position: relative; flex-wrap: wrap; }
  .grid-3, .grid-2, .grid-diff, .compare-grid, .grid-2x2 { grid-template-columns: 1fr; }
  .matrix {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .matrix-head:first-child, .matrix-label { display: none; }
  .matrix-cell::before {
    display: block;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
  }
  .matrix-cell:nth-of-type(1)::before { content: 'Solutions · Single-sector'; }
  .matrix-cell:nth-of-type(2)::before { content: 'Companies · Single-sector'; }
  .matrix-cell:nth-of-type(3)::before { content: 'Solutions · Multi-sector'; }
  .matrix-cell:nth-of-type(4)::before { content: 'Companies · Multi-sector'; }
}
@media (min-width: 769px) {
  .nav-toggle-label { display: none; }
}
