/* ============================================================
   Dream Lucid Group — warm editorial design system
   Serif display (Fraunces) · grotesk body (Hanken) · mono labels (Plex Mono)
   ============================================================ */

:root {
  /* Surfaces — warm paper */
  --paper: #f5f1e8;
  --paper-2: #faf6ef;
  --card: #fefcf7;
  --ink: #211d17;
  --body: #423c33;
  --muted: #6d665b;
  --faint: #9a9183;
  --line: rgba(33, 29, 23, 0.1);
  --line-2: rgba(33, 29, 23, 0.16);

  /* Accent + tiers */
  --clay: #b6573a;
  --clay-deep: #9c4a30;
  --infra: #b6573a;
  --platform: #4c6072;
  --ok: #5d7350;
  --warn: #9b722f;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(33, 29, 23, 0.05);
  --shadow-md: 0 2px 6px rgba(33, 29, 23, 0.05), 0 14px 34px -14px rgba(33, 29, 23, 0.16);

  --max: 1120px;
  --measure: 64ch;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  color-scheme: light;
  scrollbar-color: color-mix(in srgb, var(--faint) 75%, transparent) transparent;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine paper grain — barely perceptible */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 1; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 0.5em; font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 480; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); line-height: 1.08; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
.muted { color: var(--muted); }

a { color: var(--clay); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--clay-deep); }

::selection { background: rgba(182, 87, 58, 0.18); color: var(--ink); }

/* Eyebrow / kicker — mono uppercase */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
  opacity: 0.6;
}

/* ---------- Layout ---------- */
.shell { max-width: var(--max); margin: 0 auto; padding: 0 1.6rem; }

.section { padding: 5.5rem 0; border-top: 1px solid var(--line); }
[id] { scroll-margin-top: 84px; }
.section-head { margin-bottom: 2.6rem; max-width: var(--measure); }
.section-head h2 { margin: 0 0 0.5rem; }
.section-head .hint { display: block; color: var(--muted); font-size: 1rem; text-wrap: pretty; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(10px);
  background: rgba(245, 241, 232, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--clay); flex: none; }
.brand-mark rect { transform-box: fill-box; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.brand:hover .brand-mark rect:first-child { transform: translateY(-1.5px); }
.brand:hover .brand-mark rect:last-child { transform: translateY(1.5px); }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 7rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.12fr 0.88fr; gap: 3.5rem; }
}
.hero-copy { min-width: 0; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { width: 100%; max-width: 400px; height: auto; overflow: visible; }
@media (max-width: 480px) { .hero-visual svg { max-width: 300px; } }
.stack-layer { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 10px 16px rgba(33, 29, 23, 0.12)); }
.stack-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--faint);
}
.hero::before {
  content: "";
  position: absolute;
  top: -28%;
  left: 50%;
  width: min(1100px, 120%);
  height: 760px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(182, 87, 58, 0.1), transparent 70%),
    radial-gradient(closest-side, rgba(255, 252, 247, 0.9), transparent 72%);
  filter: blur(8px);
}
.hero .shell { position: relative; }
.hero h1 { max-width: 16ch; margin-bottom: 1.6rem; }
.hero h1 em { color: var(--clay); font-style: italic; }
.hero .lede {
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 0;
}

/* Thesis — framed editorial statement */
.thesis {
  margin-top: 3rem;
  max-width: 72ch;
  padding: 1.9rem 2.1rem;
  background: linear-gradient(180deg, var(--card), rgba(254, 252, 247, 0.4));
  border: 1px solid var(--line);
  border-left: 2px solid var(--clay);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 1.07rem;
}
.thesis p { color: var(--body); }
.thesis p:last-child { margin-bottom: 0; }

/* Open-core funnel line */
.funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 2.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.funnel .pill {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: var(--card);
  color: var(--ink);
}
.funnel .pill.paid { border-color: rgba(182, 87, 58, 0.4); color: var(--clay); }
.funnel .arrow { color: var(--faint); }

/* Showcase — finished-product proof blocks */
.showcase { display: flex; flex-direction: column; gap: 3rem; }
.showcase-item { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center; }
@media (min-width: 820px) {
  .showcase-item { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
  .showcase-item.reverse .showcase-media { order: -1; }
  .showcase-item.showcase-item-lg { grid-template-columns: 0.75fr 1.7fr; gap: 2.4rem; }
}
@media (min-width: 1100px) {
  .showcase-item.showcase-item-lg { grid-template-columns: 0.7fr 1.9fr; }
}

/* Mobile: bleed carousel to screen edges past shell padding */
@media (max-width: 819px) {
  .showcase-carousel-wrap {
    margin-left: -1.6rem;
    margin-right: -1.6rem;
  }
  .showcase-carousel {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .showcase-carousel-btn.prev { left: 0.4rem; }
  .showcase-carousel-btn.next { right: 0.4rem; }
  .showcase-carousel-count { right: 0.5rem; bottom: 0.5rem; }
}
.showcase-eyebrow {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay);
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 0.9rem;
}
.showcase-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--clay); opacity: 0.6; }
.showcase-item h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-bottom: 0.55rem; }
.showcase-desc { color: var(--body); margin-bottom: 1.2rem; max-width: 48ch; }
.showcase-media {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, var(--paper-2), var(--card));
  display: flex; align-items: center; justify-content: center;
  color: var(--faint);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.proof-panel {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 36%),
    var(--card);
  box-shadow: var(--shadow-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7rem;
  overflow: hidden;
  position: relative;
}
.proof-panel::before {
  content: "";
  position: absolute;
  inset: 1rem 1rem auto auto;
  width: 86px;
  height: 86px;
  border: 1px solid color-mix(in srgb, var(--proof-color, var(--clay)) 32%, transparent);
  border-radius: 50%;
  opacity: 0.45;
}
.proof-panel::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 1.4rem;
  width: 46%;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--proof-color, var(--clay)) 22%, transparent);
}
.proof-panel-tebian { --proof-color: var(--infra); }
.proof-panel-fylun { --proof-color: var(--platform); }
.proof-panel-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  color: var(--ink);
  line-height: 1;
  position: relative;
}
.proof-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
  position: relative;
}
.proof-panel-row span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.proof-panel-row strong {
  text-align: right;
  font-size: 0.92rem;
  color: var(--ink);
}

/* Showcase screenshot carousel — real product proof in the media slot */
.showcase-carousel-wrap {
  position: relative;
}
.showcase-carousel {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
  background: var(--ink);
  overflow: hidden; /* must stay here — keeps translated track clipped */
}
.showcase-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.showcase-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Prev / next controls — positioned on the wrap so they sit outside the
   clipped carousel while the carousel itself keeps overflow: hidden */
.showcase-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 241, 232, 0.18);
  border-radius: 50%;
  background: rgba(13, 11, 8, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 0;
  z-index: 2;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
.showcase-carousel-btn svg { width: 18px; height: 18px; display: block; }
.showcase-carousel-btn:hover {
  background: rgba(13, 11, 8, 0.88);
  border-color: rgba(245, 241, 232, 0.42);
  transform: translateY(-50%) scale(1.06);
}
.showcase-carousel-btn.prev { left: 0.85rem; }
.showcase-carousel-btn.next { right: 0.85rem; }
.showcase-carousel-wrap:hover .showcase-carousel-btn,
.showcase-carousel-wrap:focus-within .showcase-carousel-btn { opacity: 0.78; }
.showcase-carousel-btn:hover { opacity: 1 !important; }
.showcase-carousel-btn:focus-visible { opacity: 1 !important; outline: 2px solid var(--clay); outline-offset: 2px; }
@media (hover: none) {
  .showcase-carousel-btn { opacity: 0.78; }
}

/* Position counter — a sense of place inside the 14-frame carousel */
.showcase-carousel-count {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: rgba(245, 241, 232, 0.85);
  background: rgba(13, 11, 8, 0.55);
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* ---------- Portfolio: layers + cards ---------- */
.layer-group { margin-bottom: 3.4rem; }
.layer-group:last-of-type { margin-bottom: 0; }
.layer-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.3rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.layer-label .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.layer-label .layer-count { margin-left: auto; color: var(--faint); letter-spacing: 0.1em; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
  color: var(--body);
  position: relative;
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
  background: var(--accent, var(--clay));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
a.card:hover::before { transform: scaleX(1); }
a.card:hover {
  color: var(--body);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2));
}
a.card:active { transform: translateY(-1px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.7rem; }
.card-name { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.card-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.card-desc { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card-arrow {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
a.card:hover .card-arrow { color: var(--clay); gap: 0.65rem; }

/* Status pills */
.card-status {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card-status.live { color: var(--ok); border-color: rgba(93, 115, 80, 0.32); background: rgba(93, 115, 80, 0.07); }
.card-status.building { color: var(--warn); border-color: rgba(155, 114, 47, 0.32); background: rgba(155, 114, 47, 0.07); }
.card-status.early-access { color: var(--platform); border-color: rgba(76, 96, 114, 0.32); background: rgba(76, 96, 114, 0.07); }
.card-status.concept { color: var(--faint); }
.card-status.signal::before { display: none; }
.card-status.signal { color: var(--clay); border-color: rgba(182, 87, 58, 0.3); background: rgba(182, 87, 58, 0.06); }

/* Tebian range-proof note */
.note {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 2.4rem 0 0;
  padding: 1.2rem 1.4rem;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: rgba(254, 252, 247, 0.5);
}
.note em { font-family: var(--mono); font-style: normal; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--clay); }

/* ---------- Purpose ---------- */
.purpose { position: relative; background: var(--paper-2); }
.purpose::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 80% at 80% 0%, rgba(76, 96, 114, 0.06), transparent 70%);
}
.purpose .shell { position: relative; }
.purpose-body { max-width: var(--measure); }
.purpose-body p { font-size: 1.22rem; line-height: 1.6; color: var(--body); font-family: var(--serif); font-weight: 400; }
.purpose-body p strong { font-weight: 560; }

/* ---------- Buttons / links ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.cta:hover { color: var(--paper); background: var(--clay); border-color: var(--clay); transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(156, 74, 48, 0.55); }
.cta.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.cta.ghost:hover { color: var(--clay); border-color: var(--clay); background: transparent; }

/* ---------- Venture detail ---------- */
.venture-hero { position: relative; padding: 4.5rem 0 3rem; overflow: hidden; }
.venture-hero::before {
  content: "";
  position: absolute;
  top: -40%; left: -10%;
  width: 700px; height: 600px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--vh-color, var(--clay)) 12%, transparent), transparent 70%);
  filter: blur(10px);
}
.venture-back {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.venture-back:hover { color: var(--clay); }
.venture-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.venture-title h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.venture-one { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.45; max-width: 56ch; margin: 0; }
.venture-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.8rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 0.45rem; }

.venture-body { padding: 1rem 0 6rem; }
.venture-body .shell { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 880px) {
  .venture-body .shell { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 4rem; }
}
.venture-prose h3 {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--clay);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.venture-prose h3:first-child { margin-top: 0; }
.venture-prose p { color: var(--body); font-size: 1.06rem; }
.venture-prose .compose-list { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.venture-prose .compose-list li { margin-bottom: 0.6rem; padding-left: 1.3rem; position: relative; }
.venture-prose .compose-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--clay);
  font-family: var(--mono);
}

.venture-aside { align-self: start; }
@media (min-width: 880px) { .venture-aside { position: sticky; top: 90px; } }
.venture-aside .box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.venture-aside .box h4 { margin: 0 0 1rem; }
.venture-aside .box ul { margin: 0; padding: 0; list-style: none; }
.venture-aside .box li {
  font-size: 0.92rem;
  color: var(--body);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.venture-aside .box li:last-child { border-bottom: none; padding-bottom: 0; }
.venture-aside .box li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 0.5em; border-radius: 50%; background: var(--clay); opacity: 0.7; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .about-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 4rem; } }
.about-prose p { color: var(--body); font-size: 1.08rem; }
.about-prose p strong { color: var(--ink); }
.stack-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); }
.stack-list h4 { margin: 0 0 1rem; }
.stack-list ul { margin: 0; padding: 0; list-style: none; }
.stack-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; color: var(--body); }
.stack-list li:last-child { border-bottom: none; padding-bottom: 0; }
.stack-list code { color: var(--clay); font-family: var(--mono); font-size: 0.86rem; }

/* ---------- Footer ---------- */
.footer { padding: 3.5rem 0 3rem; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer .dogfood { margin-top: 0.9rem; color: var(--faint); font-size: 0.88rem; }
.footer .dogfood a { color: var(--muted); }
.footer .dogfood a:hover { color: var(--clay); }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.92rem; font-family: var(--mono); letter-spacing: 0.02em; }
.footer-links a:hover { color: var(--clay); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
  line-height: 1.5;
}
.footer-legal span:last-child { max-width: 56ch; }

/* ---------- Investors ---------- */
.traction-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.traction-list li {
  font-size: 0.92rem;
  color: var(--body);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.1rem;
  position: relative;
}
.traction-list li:last-child { border-bottom: none; padding-bottom: 0; }
.traction-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.6;
}

.model-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.model-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
}
.model-tier-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.model-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.model-card p { color: var(--body); font-size: 1rem; }
.model-comp {
  font-size: 0.9rem !important;
  color: var(--muted) !important;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}

.doc-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.doc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.doc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}
.doc-card-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.doc-card p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.doc-card .cta { margin-top: auto; align-self: flex-start; }
.doc-card-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: auto; }

/* ---------- One-Pager ---------- */
.op-wrap { max-width: 900px; margin: 0 auto; padding: 3rem 1.6rem 4rem; }
.op-page {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 3rem 3.2rem;
  box-shadow: var(--shadow-md);
}
.op-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.op-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.12;
}
.op-tagline { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-top: 0.3rem; }
.op-header-right { text-align: right; }
.op-meta-line { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); line-height: 1.8; }
.op-meta-line a { color: var(--muted); }

.op-section { margin-bottom: 1.4rem; }
.op-section-title {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.op-thesis p { font-size: 0.97rem; color: var(--body); margin-bottom: 0.5em; }
.op-thesis { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }

.op-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
@media (max-width: 680px) { .op-columns { grid-template-columns: 1fr; } }

.op-layer-label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.op-venture { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; margin-bottom: 0.2rem; }
.op-venture-name { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--ink); }
.op-pill {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
}
.op-pill-live { color: var(--ok); border-color: rgba(93,115,80,0.4); background: rgba(93,115,80,0.07); }
.op-pill-building { color: var(--warn); border-color: rgba(155,114,47,0.4); background: rgba(155,114,47,0.07); }
.op-pill-early { color: var(--platform); border-color: rgba(76,96,114,0.4); background: rgba(76,96,114,0.07); }
.op-venture-desc { font-size: 0.84rem; color: var(--muted); margin: 0 0 0.2rem; line-height: 1.45; }

.op-model-row { margin-bottom: 0.8rem; }
.op-model-label { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }
.op-model-row p { font-size: 0.88rem; color: var(--body); margin: 0; line-height: 1.5; }

.op-list { margin: 0; padding: 0 0 0 1rem; }
.op-list li { font-size: 0.88rem; color: var(--body); line-height: 1.55; margin-bottom: 0.15rem; }

.op-ask p { font-size: 0.92rem; color: var(--body); }
.op-contact { font-family: var(--mono); font-size: 0.78rem !important; color: var(--muted) !important; }
.op-contact a { color: var(--muted); }

.op-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.op-actions { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.no-print { }

@media print {
  .no-print { display: none !important; }
  .nav, .footer { display: none !important; }
  body { background: white; font-size: 11pt; }
  body::before { display: none; }
  .op-wrap { padding: 0; max-width: 100%; }
  .op-page { border: none; border-radius: 0; box-shadow: none; padding: 1.2cm 1.4cm; }
  .op-columns { grid-template-columns: 1fr 1fr; }
  .section, main { padding: 0; }
  a { color: inherit; }
}

/* ---------- Pitch Deck ---------- */
.deck-wrap { max-width: 860px; margin: 0 auto; padding: 2rem 1.6rem 4rem; }
.deck-actions { display: flex; gap: 0.8rem; margin-bottom: 2rem; flex-wrap: wrap; }
.deck-actions-bottom { margin-top: 2rem; margin-bottom: 0; }

.deck-slide {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.deck-slide-inner { padding: 2.2rem 2.6rem; }
.deck-slide-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.deck-slide-n {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  opacity: 0.7;
  padding-top: 0.4rem;
  flex: none;
}
.deck-slide-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.25rem; }
.deck-slide-sub { margin: 0; color: var(--muted); font-size: 1rem; }
.deck-slide-body p { font-size: 0.97rem; color: var(--body); }
.deck-slide-body > p:last-child { margin-bottom: 0; }

/* Cover / close slides — dark, set apart from the white card rhythm */
.deck-slide-cover {
  background: var(--ink);
  border-color: var(--ink);
}
.deck-slide-cover .deck-slide-inner {
  padding: 4.5rem 2.6rem;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Soft clay / slate wash so the dark covers read as lit, not flat */
.deck-slide-cover .deck-slide-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 88% at 16% 0%, rgba(182, 87, 58, 0.17), transparent 64%),
    radial-gradient(52% 74% at 86% 100%, rgba(76, 96, 114, 0.16), transparent 70%);
}
.deck-cover-content { text-align: center; max-width: 560px; position: relative; }
.deck-cover-eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.2rem;
}
.deck-cover-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 480;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 0 1.2rem;
  line-height: 1.05;
}
.deck-cover-sub {
  font-size: 1.15rem;
  color: rgba(245, 241, 232, 0.7);
  line-height: 1.5;
  margin: 0 0 2.2rem;
}
.deck-cover-contact {
  font-family: var(--mono);
  font-size: 0.85rem;
}
.deck-cover-contact a { color: var(--paper); border-bottom: 1px solid rgba(245,241,232,0.3); padding-bottom: 2px; }
.deck-cover-contact a:hover { color: var(--clay); border-color: var(--clay); }
.deck-cover-sep { color: rgba(245, 241, 232, 0.35); margin: 0 0.6rem; }
.deck-cover-legal { font-size: 0.72rem; color: rgba(245, 241, 232, 0.4); margin-top: 2rem; }
.deck-slide-n-cover {
  position: absolute;
  bottom: 1.6rem;
  right: 2rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(245, 241, 232, 0.35);
  letter-spacing: 0.08em;
}

/* Ask slide — set apart with a warm tint, not another plain white card */
.deck-slide-ask {
  background: linear-gradient(180deg, rgba(182,87,58,0.05), var(--card) 40%);
  border-color: rgba(182,87,58,0.25);
}

.deck-milestones { display: grid; gap: 0.9rem; }
.deck-milestone {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.deck-milestone:last-child { border-bottom: none; padding-bottom: 0; }
.deck-milestone-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  padding-top: 0.15rem;
}
.deck-milestone-content strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 0.3rem; }
.deck-milestone-content p { margin: 0; font-size: 0.9rem; color: var(--body); }
@media (max-width: 560px) {
  .deck-milestone { grid-template-columns: 1fr; gap: 0.3rem; }
}

.deck-list { margin: 0.4rem 0; padding-left: 1.2rem; }
.deck-list li { font-size: 0.95rem; color: var(--body); margin-bottom: 0.4rem; line-height: 1.5; }
.deck-list-em { font-style: italic; color: var(--ink) !important; font-weight: 500; list-style: none; margin-left: -1.2rem; margin-top: 0.6rem; }
.deck-list-sm { margin: 0.3rem 0; padding-left: 1rem; }
.deck-list-sm li { font-size: 0.88rem; color: var(--body); margin-bottom: 0.3rem; line-height: 1.45; }

.deck-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .deck-two-col { grid-template-columns: 1fr; } }

.deck-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-2);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.deck-box p { font-size: 0.9rem; color: var(--body); margin-bottom: 0.4em; }
.deck-box p:last-child { margin-bottom: 0; }
.deck-box-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.deck-box-link { color: var(--clay); text-decoration: none; border-bottom: 1px solid rgba(182,87,58,0.35); padding-bottom: 1px; transition: border-color 0.15s ease; }
.deck-box-link:hover { border-color: var(--clay); }
.deck-box-body { font-size: 0.88rem !important; color: var(--muted) !important; margin: 0 !important; }

.deck-note { font-size: 0.88rem !important; color: var(--muted) !important; font-style: italic; border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.8rem; }

.deck-subhead { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.5rem; }

.deck-stack { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.deck-stack-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--sc, var(--clay)) 4%, var(--card));
}
.deck-stack-row:last-child { border-bottom: none; }
.deck-stack-muted { opacity: 0.6; }
.deck-stack-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.deck-stack-status { font-family: var(--mono); font-size: 0.62rem; }
@media (max-width: 580px) {
  .deck-stack-row { grid-template-columns: 1fr auto; }
  .deck-stack-label { display: none; }
}

.deck-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.deck-table th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--line-2); }
.deck-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); color: var(--body); vertical-align: middle; }
.deck-table tr:last-child td { border-bottom: none; }
.deck-table td:first-child { font-weight: 500; color: var(--ink); }

.deck-comps { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.deck-comps span { font-family: var(--mono); font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(182,87,58,0.07); border: 1px solid rgba(182,87,58,0.2); color: var(--clay); }

.deck-advantages { display: grid; gap: 1rem; }
.deck-adv { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.deck-adv-n { font-family: var(--mono); font-size: 0.72rem; color: var(--clay); opacity: 0.7; flex: none; padding-top: 0.15rem; }
.deck-adv strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.2rem; }
.deck-adv p { margin: 0; font-size: 0.9rem; color: var(--body); }

.deck-founder { margin-bottom: 0.8rem; }
.deck-founder-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--ink); }
.deck-founder-title { font-family: var(--mono); font-size: 0.76rem; color: var(--clay); letter-spacing: 0.06em; margin-top: 0.2rem; }

.deck-ask-amount { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4rem); color: var(--ink); font-weight: 480; letter-spacing: -0.02em; }

/* Screenshots — responsive, print-safe figure for real product proof */
.deck-shot {
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  break-inside: avoid;
}
.deck-shot img { display: block; width: 100%; height: auto; }
.deck-shot figcaption,
.deck-carousel figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.7rem;
  border-top: 1px solid var(--line);
}

/* Auto-sliding screenshot carousel — CSS-only seamless loop (last frame clones the first) */
.deck-carousel {
  margin: 0.9rem 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  break-inside: avoid;
}
.deck-carousel-track {
  display: flex;
  width: calc(100% * 14);
  animation: deck-carousel 56s infinite;
}
.deck-carousel-track img {
  flex: none;
  width: calc(100% / 14);
  height: auto;
  display: block;
}
.deck-carousel:hover .deck-carousel-track,
.deck-carousel:focus-within .deck-carousel-track { animation-play-state: paused; }
@keyframes deck-carousel {
  0%,     6.4% { transform: translateX(0); }
  7.1%,  13.5% { transform: translateX(calc(-100% / 14)); }
  14.3%, 20.7% { transform: translateX(calc(-200% / 14)); }
  21.4%, 27.8% { transform: translateX(calc(-300% / 14)); }
  28.6%, 35.0% { transform: translateX(calc(-400% / 14)); }
  35.7%, 42.1% { transform: translateX(calc(-500% / 14)); }
  42.9%, 49.3% { transform: translateX(calc(-600% / 14)); }
  50.0%, 56.4% { transform: translateX(calc(-700% / 14)); }
  57.1%, 63.5% { transform: translateX(calc(-800% / 14)); }
  64.3%, 70.7% { transform: translateX(calc(-900% / 14)); }
  71.4%, 77.8% { transform: translateX(calc(-1000% / 14)); }
  78.6%, 85.0% { transform: translateX(calc(-1100% / 14)); }
  85.7%, 92.1% { transform: translateX(calc(-1200% / 14)); }
  92.9%, 99.3% { transform: translateX(calc(-1300% / 14)); }
  100%         { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .deck-carousel-track { animation: none; }
}

/* Narrow / mobile — reclaim the width the heavy slide padding eats */
@media (max-width: 600px) {
  .deck-wrap { padding: 1.2rem 1rem 3rem; }
  .deck-slide { border-radius: 12px; }
  .deck-slide-inner { padding: 1.5rem 1.25rem; }
  .deck-slide-header { gap: 0.8rem; padding-bottom: 1.1rem; margin-bottom: 1.3rem; }
  .deck-slide-cover .deck-slide-inner { padding: 3rem 1.25rem; min-height: 280px; }
  .deck-slide-n-cover { right: 1.25rem; bottom: 1.2rem; }
  .deck-cover-contact { font-size: 0.78rem; word-break: break-word; }
  .deck-adv { padding: 0.9rem 1rem; gap: 0.85rem; }
  .deck-table { font-size: 0.85rem; }
  .deck-table th, .deck-table td { padding: 0.5rem 0.55rem; }
}

@media print {
  /* Standard 16:9 widescreen slide size (matches PowerPoint/Keynote/Google Slides defaults) —
     avoids the dead-space-at-bottom look of forcing short slides onto tall portrait Letter pages. */
  @page { size: 13.333in 7.5in; margin: 0; }
  .no-print { display: none !important; }
  .nav, .footer { display: none !important; }
  body { background: white; font-size: 9.5pt; }
  .deck-wrap { padding: 0; max-width: 100%; }
  .deck-slide {
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #ddd;
    page-break-after: always;
    break-after: page;
    margin: 0;
    min-height: 7.5in;
    display: flex;
  }
  .deck-slide:last-of-type { page-break-after: avoid; break-after: auto; }
  .deck-slide-inner {
    padding: 1cm 1.6cm;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .deck-slide-header { flex: none; }
  .deck-slide-cover .deck-slide-inner { justify-content: center; align-items: center; }
  /* minmax(0, 1fr), not 1fr — otherwise a wide image's min-content size can blow out its
     grid track and crush the sibling column (exactly what happened before this fix) */
  .deck-two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .deck-slide-cover { background: var(--ink) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .deck-slide-cover .deck-slide-inner { padding: 1.4cm 2cm; }
  .deck-shot, .deck-carousel { break-inside: avoid; }
  .deck-shot img, .deck-carousel img { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .deck-carousel-track { animation: none !important; transform: none !important; }
  /* Carousel/shot figures cap height so a slide with a screenshot still fits one 7.5in page,
     and max-width keeps a wide image from forcing its grid column wider than the layout allows */
  .deck-carousel { max-height: 2.5in; max-width: 100%; }
  .deck-carousel img { max-height: 2.5in; max-width: 100%; object-fit: contain; width: auto; margin: 0 auto; }
  /* Team slide has more text above its two screenshots than Solution does above its one,
     so it needs a smaller image cap to still fit on a single 7.5in page */
  .deck-shot { max-height: 1.7in; max-width: 100%; }
  .deck-shot img { max-height: 1.7in; max-width: 100%; object-fit: contain; width: auto; margin: 0 auto; }
  /* Tighter vertical rhythm — reclaims just enough space to keep dense slides (Solution, Team)
     on a single 7.5in page instead of spilling one line onto an otherwise-blank second page */
  .deck-slide-header { padding-bottom: 0.8rem; margin-bottom: 0.9rem; }
  .deck-slide-body p { margin-bottom: 0.6em; }
  .deck-box { padding: 0.75rem 0.95rem; }
  .deck-two-col { gap: 0.9rem; }
  .deck-note { margin-top: 0.5rem; padding-top: 0.5rem; }
  /* Paper-grain noise texture is a full-viewport raster overlay — fine on screen, but printed
     per-page it compresses badly and was the single biggest contributor to PDF file size */
  body::before { display: none; }
}

/* ---------- Legal pages ---------- */
.legal-hero { padding: 5.5rem 0 3rem; }
.legal-updated { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); margin: 1.4rem 0 0; }
.legal-prose { max-width: var(--measure); }
.legal-prose h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 2.4rem 0 0.6rem;
}
.legal-prose h3:first-child { margin-top: 0; }
.legal-prose p { color: var(--body); }

.contact-line { margin-top: 1.2rem; font-family: var(--mono); font-size: 0.9rem; }
.contact-line a { color: var(--muted); }
.contact-line a:hover { color: var(--clay); }

/* ============================================================
   Motion — zero-JS, enhancement only
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* Cross-page fade — zero-JS, ignored where unsupported */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 0.18s; }
  ::view-transition-new(root) { animation-duration: 0.24s; }

  /* Hero load-in */
  .hero .eyebrow,
  .hero h1,
  .hero .lede,
  .hero .thesis,
  .venture-hero > .shell > * {
    animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero h1 { animation-delay: 0.06s; }
  .hero .lede { animation-delay: 0.14s; }
  .hero .thesis { animation-delay: 0.28s; }

  /* Assembling stack — builds bottom-up with a springy settle (metal, infra, platforms) */
  .stack-layer {
    animation: stack-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: calc(0.18s + var(--i) * 0.15s);
  }
  .stack-ground { animation: fade-in 0.6s ease both; }
  .stack-label {
    animation: fade-in 0.7s ease both;
    animation-delay: calc(0.6s + var(--i) * 0.15s);
  }

  /* Scroll-driven reveals (modern browsers only; gated so content is never hidden without support) */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 20%;
    }
    /* Stagger siblings within a grid as they scroll in */
    .grid .reveal:nth-child(2) { animation-range: entry 8% cover 26%; }
    .grid .reveal:nth-child(3) { animation-range: entry 14% cover 32%; }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes stack-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(7px) drop-shadow(0 10px 16px rgba(33, 29, 23, 0));
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0) drop-shadow(0 10px 16px rgba(33, 29, 23, 0.12));
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   Micro-interactions & polish
   ============================================================ */

/* Animated underline on plain content links (warm editorial, à la Anthropic) */
main a:not([class]),
.footer a:not([class]) {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  padding-bottom: 1px;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}
main a:not([class]):hover,
.footer a:not([class]):hover { background-size: 100% 1px; }

/* Tactile button press */
.cta:active { transform: translateY(0) scale(0.975); }
.nav-links a:active { color: var(--clay-deep); }

/* Keyboard focus — soft clay ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 5px;
}
.card:focus-visible {
  outline: 2px solid var(--accent, var(--clay));
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  /* Nav gains a soft shadow as you scroll (zero-JS scroll-driven) */
  @supports (animation-timeline: scroll()) {
    .nav {
      animation: nav-lift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 110px;
    }
  }
  /* Hero stack breathes gently once it has settled */
  .hero-visual svg { animation: float 7s ease-in-out 1.8s infinite; }
}

@keyframes nav-lift {
  to {
    background: rgba(245, 241, 232, 0.9);
    box-shadow: 0 1px 0 var(--line), 0 8px 24px -14px rgba(33, 29, 23, 0.22);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 3.5rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.86rem; }
  .brand-name { font-size: 1rem; }
  .thesis { padding: 1.5rem 1.4rem; }
}
