/* Canopy founding deck — 16 Aug 2026
   Charcoal / cream / gold. 16:9 artboard. No build step. */

:root {
  --bg: #12100c;
  --bg-deep: #0c0b09;
  --ink: #f3ead3;
  --gold: #c4a35a;
  --muted: #8a8070;
  --rule: #3e3426;
  --card: #1c1814;
  --card-hover: #221e19;
  --hair: rgba(196, 163, 90, 0.35);
  --serif: "Fraunces", "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "IBM Plex Sans", "IBM Plex Sans Var", "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  cursor: default;
  user-select: none;
}

::selection { background: rgba(196, 163, 90, 0.28); color: var(--ink); }

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

/* —— Stage / 16:9 artboard —— */
.stage {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 80% at 50% 0%, #1a1712 0%, var(--bg-deep) 55%);
}

.artboard {
  --w: min(100vw, calc(100vh * 16 / 9));
  --h: min(100vh, calc(100vw * 9 / 16));
  width: var(--w);
  height: var(--h);
  position: relative;
  background: var(--bg);
  overflow: hidden;
  container-type: size;
  container-name: slide;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.artboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 20;
  background: rgba(196, 163, 90, 0.12);
}
.progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.45s var(--ease);
}

/* —— Chrome —— */
.chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.4cqi 3.4cqi 0;
  pointer-events: none;
}
.chrome a { pointer-events: auto; }

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15cqi;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7cqi;
}
.wordmark svg { width: 1.35cqi; height: 1.35cqi; display: block; }
.wordmark:hover { color: var(--ink); }

.nav-product {
  font-size: 0.92cqi;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15cqi;
}
.nav-product:hover { color: var(--gold); border-bottom-color: var(--gold); }

.chrome-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 16;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 3.4cqi 1.7cqi;
  pointer-events: none;
  border-top: 0;
}
.chrome-foot::before {
  content: "";
  position: absolute;
  left: 3.4cqi; right: 3.4cqi;
  top: 0;
  height: 1px;
  background: var(--rule);
  opacity: 0.85;
}
.confidential {
  font-size: 0.72cqi;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.85cqi;
}
.slide-num {
  font-size: 0.72cqi;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: right;
  padding-top: 0.85cqi;
  font-variant-numeric: tabular-nums;
}
.dots {
  display: flex;
  gap: 0.42cqi;
  justify-content: center;
  padding-top: 0.85cqi;
  pointer-events: auto;
}
.dots button {
  width: 0.55cqi;
  height: 0.55cqi;
  min-width: 7px;
  min-height: 7px;
  border-radius: 50%;
  border: 0;
  background: var(--rule);
  cursor: pointer;
  padding: 0;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.dots button[aria-current="true"] {
  background: var(--gold);
  transform: scale(1.35);
}
.dots button:hover { background: var(--ink); }

/* —— Slides —— */
.slides {
  position: absolute;
  inset: 0;
}
.slide {
  position: absolute;
  inset: 0;
  padding: 7.2cqi 3.6cqi 6.4cqi;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(2.2cqi, 0, 0);
  transition: opacity 0.48s var(--ease), transform 0.55s var(--ease), visibility 0.48s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.slide.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  z-index: 2;
}
.slide.is-back {
  transform: translate3d(-2.2cqi, 0, 0);
}

.kicker {
  font-size: 0.88cqi;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1cqi;
}
.headline {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: 2.85cqi;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 28ch;
}
.lede {
  margin-top: 1.35cqi;
  font-size: 1.12cqi;
  line-height: 1.45;
  color: var(--muted);
  max-width: 68cqi;
}

/* —— Cards —— */
.grid {
  display: grid;
  gap: 1.3cqi;
  margin-top: auto;
  min-height: 0;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-23 { grid-template-columns: 1fr 1fr 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  padding: 1.45cqi 1.5cqi 1.4cqi;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: background 0.25s, border-color 0.25s;
}
.card:hover { background: var(--card-hover); }
.card .step {
  font-size: 0.72cqi;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55cqi;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.32cqi;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.55cqi;
}
.card p {
  font-size: 0.92cqi;
  line-height: 1.42;
  color: var(--muted);
}
.card .who {
  font-size: 0.82cqi;
  color: var(--gold);
  margin-bottom: 0.45cqi;
  line-height: 1.35;
}

/* —— Title —— */
.slide-title {
  justify-content: center;
  padding-top: 8cqi;
}
.slide-title .eyebrow {
  font-size: 0.88cqi;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2cqi;
}
.slide-title h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 7.4cqi;
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.gold-rule {
  width: 6.4cqi;
  height: 2px;
  background: var(--gold);
  margin: 1.8cqi 0 2cqi;
}
.slide-title .tag {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.05cqi;
  line-height: 1.28;
  max-width: 22ch;
}
.slide-title .body {
  margin-top: 2.4cqi;
  font-size: 1.12cqi;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62cqi;
}
.slide-title .sell {
  margin-top: 2.6cqi;
  font-size: 1.02cqi;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.mark {
  position: absolute;
  right: 6cqi;
  top: 50%;
  transform: translateY(-54%);
  width: 26cqi;
  height: 26cqi;
  pointer-events: none;
  opacity: 0.9;
}
.mark svg { width: 100%; height: 100%; }

/* —— Image / viz slides —— */
.slide-viz { padding-top: 6.2cqi; padding-bottom: 5.6cqi; }
.slide-viz .kicker { margin-bottom: 0.45cqi; }
.slide-viz .headline { font-size: 1.85cqi; max-width: none; }
.viz {
  position: relative;
  margin-top: 0.85cqi;
  flex: 1 1 auto;
  min-height: 0;
  background: #0e0c0a;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.viz img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.viz-fallback {
  position: absolute;
  inset: 0;
  padding: 1.6cqi 2cqi;
  display: none;
}
.viz.is-fallback img { display: none; }
.viz.is-fallback .viz-fallback { display: block; }

/* Job OS fallback */
.os {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.2cqi;
}
.os-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.7cqi;
}
.os-node {
  flex: 1;
  max-width: 14cqi;
  border: 1px solid var(--gold);
  background: rgba(196, 163, 90, 0.05);
  padding: 1cqi 0.8cqi;
  text-align: center;
}
.os-node strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05cqi;
  margin-bottom: 0.3cqi;
}
.os-node span {
  display: block;
  font-size: 0.72cqi;
  color: var(--muted);
  line-height: 1.3;
}
.os-hub {
  align-self: center;
  justify-self: center;
  width: 22cqi;
  border: 1.5px solid var(--gold);
  padding: 1.4cqi 1.6cqi;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(196,163,90,0.16), transparent 70%);
}
.os-hub em {
  font-style: normal;
  font-size: 0.72cqi;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.os-hub strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6cqi;
  margin: 0.3cqi 0 0.4cqi;
}
.os-hub p { font-size: 0.78cqi; color: var(--muted); }

/* AI stack fallback */
.ai-col {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 18cqi;
  gap: 1.4cqi;
}
.ai-steps { display: grid; gap: 0.55cqi; }
.ai-step {
  display: grid;
  grid-template-columns: 2.4cqi 1fr;
  gap: 0.8cqi;
  align-items: center;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--gold);
  padding: 0.55cqi 1cqi;
}
.ai-step b {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.1cqi;
}
.ai-step span { font-size: 0.82cqi; color: var(--muted); }
.ai-aside {
  border: 1px solid var(--gold);
  padding: 1.4cqi;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ai-aside em {
  font-style: normal;
  font-size: 0.72cqi;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.ai-aside p { margin-top: 0.7cqi; font-size: 0.95cqi; color: var(--muted); line-height: 1.4; }

/* Money fallback */
.money {
  height: 100%;
  display: grid;
  grid-template-columns: 18cqi 1fr 22cqi;
  gap: 1.2cqi;
  align-items: center;
}
.money-box, .money-out > div {
  border: 1px solid var(--rule);
  padding: 1.2cqi 1.3cqi;
}
.money-box strong, .money-out strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15cqi;
  margin-bottom: 0.35cqi;
}
.money-box p, .money-out p { font-size: 0.82cqi; color: var(--muted); line-height: 1.35; }
.money-hub {
  justify-self: center;
  width: 22cqi;
  height: 22cqi;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.6cqi;
  background: radial-gradient(circle at 50% 40%, rgba(196,163,90,0.22), transparent 68%);
}
.money-hub strong {
  font-family: var(--serif);
  font-size: 1.55cqi;
  line-height: 1.15;
}
.money-hub p { margin-top: 0.5cqi; font-size: 0.78cqi; color: var(--muted); }
.money-out { display: grid; gap: 0.7cqi; }
.money-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.78cqi;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Option C fallback */
.optc {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  gap: 1cqi;
}
.optc-top, .optc-bot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1cqi;
}
.optc-box {
  border: 1px solid var(--rule);
  padding: 1.1cqi 1.2cqi;
}
.optc-box.goldish { border-color: var(--gold); }
.optc-box strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1cqi;
  margin-bottom: 0.35cqi;
}
.optc-box p { font-size: 0.8cqi; color: var(--muted); line-height: 1.35; }
.optc-mid {
  text-align: center;
  font-size: 0.82cqi;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* —— Market table —— */
.table-wrap {
  margin-top: 1.3cqi;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
table.market {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95cqi;
}
table.market thead th {
  text-align: left;
  font-size: 0.72cqi;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 1cqi 0.7cqi;
  border-bottom: 1px solid var(--rule);
}
table.market td {
  padding: 0.52cqi 1cqi;
  border-bottom: 1px solid rgba(62, 52, 38, 0.55);
  vertical-align: middle;
}
table.market tbody tr:nth-child(odd) td { background: rgba(28, 24, 20, 0.65); }
table.market td.job {
  font-weight: 600;
  width: 28%;
}
table.market td.price {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  width: 28%;
}
table.market td.src { color: var(--muted); }
.footnote {
  margin-top: 1cqi;
  font-size: 0.78cqi;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Close / moonshot —— */
.slide-close {
  justify-content: center;
  padding-top: 6cqi;
}
.slide-close h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4.4cqi;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.slide-close .body {
  margin-top: 2cqi;
  font-size: 1.25cqi;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62cqi;
}
.slide-close .contact {
  margin-top: 2.6cqi;
  font-size: 1.02cqi;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.slide-close .contact a:hover { color: var(--ink); }

.weapons {
  margin-top: 1.4cqi;
  font-size: 0.95cqi;
  color: var(--gold);
}

/* —— Help overlay —— */
.help {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(12, 11, 9, 0.78);
  display: none;
  place-items: center;
  backdrop-filter: blur(6px);
}
.help.is-on { display: grid; }
.help-card {
  width: min(52cqi, 640px);
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  padding: 2.4cqi 2.6cqi;
}
.help-card h2 {
  font-family: var(--serif);
  font-size: 1.8cqi;
  margin-bottom: 1.2cqi;
}
.help-card dl {
  display: grid;
  grid-template-columns: 14cqi 1fr;
  gap: 0.55cqi 1.2cqi;
  font-size: 0.95cqi;
}
.help-card dt { color: var(--gold); font-weight: 600; }
.help-card dd { color: var(--muted); }

.hint {
  position: absolute;
  right: 3.4cqi;
  bottom: 5.4cqi;
  z-index: 15;
  font-size: 0.72cqi;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.hint.is-on { opacity: 1; }

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .slide, .progress > i, .dots button { transition: none; }
}

/* Print: one slide per page */
@media print {
  html, body { overflow: visible; background: var(--bg); }
  .stage { display: block; width: auto; height: auto; }
  .artboard {
    width: 338.67mm;
    height: 190.5mm;
    box-shadow: none;
    break-after: page;
    overflow: visible;
  }
  .slide {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    page-break-after: always;
    height: 190.5mm;
  }
  .chrome, .chrome-foot, .progress, .help, .hint { position: relative; }
  .nav-product, .dots, .hint, .help { display: none !important; }
}
