/* Deal Room presentation - aligned to main portfolio tokens */
:root {
  --green: #2ecc71;
  --green-deep: #27ae60;
  --green-tint: #e8f8ef;
  --green-tint-2: #d4f3e2;
  --ink: #111511;
  --ink-soft: #2a2e2a;
  --muted: #6b716b;
  --line: rgba(17, 21, 17, 0.14);
  --line-strong: rgba(17, 21, 17, 0.28);
  --white: #ffffff;
  --paper: #f6f7f4;
  --warn-tint: #fff1f0;
  --warn-line: rgba(180, 60, 50, 0.22);
  --ok-line: rgba(39, 174, 96, 0.35);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-pill: 999px;
  --slide-accent: var(--green-deep);
  --slide-wash: #ffffff;
  --slide-grid: 0;
  --deck-scale: 0.875;
  --deck-slide-max: 1080px;
  --deck-content-width: 60%;
  --deck-content-max: 648px;
}

html {
  font-size: calc(16px * var(--deck-scale));
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body.deck-body {
  background: var(--white);
}

body.deck-body.is-deck-loading {
  overflow: hidden;
}

body.deck-body.is-deck-loading .deck {
  opacity: 0;
  pointer-events: none;
}

.deck-entry-loader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.deck-entry-loader.is-done {
  opacity: 0;
  pointer-events: none;
}

.deck-entry-loader__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(17, 21, 17, 0.08);
}

.deck-entry-loader__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: #2ecc71;
  transition: width 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.deck-entry-loader__bar.is-fill {
  width: 100%;
}

.deck {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--white);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.deck-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 40px) 12px;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.deck-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--white);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.deck-back:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--green);
  transform: translateY(-1px);
}

.deck-brand {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-brand strong {
  color: var(--green-deep);
  font-weight: 700;
}

.deck-stage {
  position: relative;
  min-height: 0;
  padding: 10px clamp(18px, 4vw, 48px) 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y;
  background: var(--slide-wash);
  transition: background 0.45s ease;
}

.deck-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: calc(var(--slide-grid) * 1);
  background-image:
    linear-gradient(rgba(17, 21, 17, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 17, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  transition: opacity 0.45s ease;
}

/* Title slide: Figma product frame as full-bleed atmosphere */
.deck-stage:has(#slide-title.is-active)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("./hero/title-bg-figma.png?v=2");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.4;
}

.deck-slide {
  width: min(1080px, 100%);
  max-height: 100%;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(56px);
  pointer-events: none;
  position: absolute;
  inset: 10px clamp(18px, 4vw, 48px) 14px;
  margin: auto;
  z-index: 2;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.42s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.8vh, 20px);
  padding: 6px 2px 14px;
}

.deck-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}

.deck-slide.is-exit-left {
  opacity: 0;
  transform: translateX(-56px);
}

.deck-slide.is-exit-right {
  opacity: 0;
  transform: translateX(56px);
}

/* Content slides: header + body as two components, stack middle-aligned */
.deck-slide:has(.deck-hero-head) {
  justify-content: center;
  gap: 0;
  min-height: 100%;
  padding-top: clamp(12px, 3vh, 28px);
  padding-bottom: clamp(8px, 2vh, 18px);
}

/* Title slide keeps top/bottom split with larger middle */
#slide-title.deck-slide {
  justify-content: space-between;
}

#slide-title .deck-hero-head,
#slide-title .deck-hero-meta {
  position: relative;
  z-index: 1;
}

/* Title slide: Deal Room is primary; workflow line is secondary */
#slide-title .deck-title--brand {
  width: min(var(--deck-content-width), var(--deck-content-max));
  max-width: 100%;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.92;
  color: var(--ink);
}

#slide-title .deck-title-secondary {
  margin: 0;
  width: min(var(--deck-content-width), var(--deck-content-max));
  max-width: 100%;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-transform: none;
}

.deck-hero-head {
  display: grid;
  gap: 14px;
  width: 100%;
  flex-shrink: 0;
}

.deck-hero-head .deck-title {
  margin: 0;
}

.deck-hero-meta,
.deck-hero-body {
  display: grid;
  gap: 16px;
  width: 100%;
}

/* Title slide keeps a larger middle gap */
.deck-hero-meta {
  gap: 18px;
  margin-top: auto;
  padding-top: clamp(48px, 12vh, 120px);
}

/* Content slides: clearer space between header block and text/content block */
.deck-hero-body {
  margin-top: clamp(28px, 5.5vh, 56px);
  padding-top: 0;
}

.deck-hero-meta .deck-sub,
.deck-hero-body .deck-sub {
  margin: 0;
}

.deck-hero-meta .deck-meta {
  margin-top: 0;
}

.deck-hero-body > .deck-grid,
.deck-hero-body > .deck-quotes,
.deck-hero-body > .deck-insights,
.deck-hero-body > .deck-assumptions,
.deck-hero-body > .deck-decision-flow,
.deck-hero-body > .deck-flowmap,
.deck-hero-body > .deck-list,
.deck-hero-body > .deck-steps,
.deck-hero-body > .deck-metrics {
  margin: 0;
}

.deck-eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slide-accent);
  transition: color 0.45s ease;
}

.deck-title {
  margin: 0;
  width: min(var(--deck-content-width), var(--deck-content-max));
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 82%;
  font-size: clamp(1.35rem, 3.6vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.deck-title--wide {
  width: min(var(--deck-content-width), var(--deck-content-max));
  max-width: 100%;
}

.deck-sub {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(0.88rem, 1.25vw, 0.98rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}

.deck-slide > p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.deck-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 4px;
}

.deck-meta div {
  min-width: 118px;
}

.deck-meta dt {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.deck-meta dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.deck-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 62ch;
}

.deck-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: clamp(0.88rem, 1.15vw, 0.95rem);
  line-height: 1.42;
}

.deck-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 980px;
}

.deck-grid--research {
  width: 100%;
  max-width: 980px;
  align-items: stretch;
}

.deck-grid--research .deck-card {
  min-height: 0;
}

.deck-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.deck-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deck-grid--challenge {
  width: 100%;
  max-width: 980px;
  align-items: stretch;
}

.deck-grid--challenge .deck-card {
  display: flex;
  flex-direction: column;
  min-height: clamp(260px, 38vh, 360px);
  padding: 18px 18px 22px;
}

.deck-grid--challenge .deck-card h3 {
  margin: 0;
  flex-shrink: 0;
}

/* Keep titles at top; place body content in the middle band of the taller card */
.deck-grid--challenge .deck-card > .deck-sub,
.deck-grid--challenge .deck-card > .deck-list {
  margin-top: auto;
  margin-bottom: auto;
  max-width: none;
  width: 100%;
}

.deck-grid--challenge .deck-card > .deck-sub {
  padding-top: 28px;
  line-height: 1.55;
}

.deck-grid--challenge .deck-card > .deck-list {
  padding-top: 28px;
  gap: 18px;
}

.deck-grid--screens {
  width: 100%;
  max-width: 1040px;
  align-items: stretch;
}

.deck-card--screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px;
}

.deck-card--screen h3 {
  margin: 0;
  font-family: var(--font-body);
  font-stretch: normal;
  font-size: 0.92rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.deck-screen-frame {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(160px, 28vh, 260px);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}

.deck-screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(200px, 34vh, 300px);
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 10px;
}

.deck-screen-frame--center {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: clamp(180px, 32vh, 280px);
  background: var(--paper);
  overflow: hidden;
  padding: 20px 14px;
}

.deck-screen-frame--center img {
  width: min(100%, 440px);
  height: auto;
  max-height: min(240px, 34vh);
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 10px;
}

.deck-screen-pending {
  margin: 0;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: clamp(180px, 32vh, 280px);
  border-radius: 12px;
  border: 1.5px dashed var(--line-strong);
  background: color-mix(in srgb, var(--paper) 80%, var(--white));
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
}

.deck-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 16px 13px;
  min-height: 104px;
}

.deck-slide > h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.deck-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.deck-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.42;
}

.deck-participants {
  max-width: none;
}

.deck-list--in-card {
  margin-top: 10px;
  max-width: none;
  width: 100%;
}

.deck-grid--conversations {
  width: 100%;
  max-width: 980px;
  align-items: stretch;
}

.deck-grid--conversations .deck-card {
  min-height: 0;
}

.deck-participants-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.deck-participant {
  display: flex;
  align-items: center;
  gap: 14px;
}

.deck-participant__avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deck-participant__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.deck-participant__name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.deck-participant__role {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.deck-card--warn {
  background: var(--warn-tint);
  border-color: var(--warn-line);
}

.deck-card--ok {
  background: var(--green-tint);
  border-color: var(--ok-line);
}

.deck-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  border: 1px solid rgba(46, 204, 113, 0.35);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  margin-bottom: 10px;
}

.deck-quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1040px;
  align-items: stretch;
}

.deck-quotes .deck-quote {
  margin: 0;
  max-width: none;
  height: 100%;
  padding: 16px 16px 14px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deck-quotes .deck-quote p {
  font-family: var(--font-body);
  font-stretch: normal;
  font-weight: 500;
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  flex: 1;
}

.deck-quotes .deck-quote footer {
  margin-top: auto;
}

.deck-quote {
  margin: 0;
  max-width: 48ch;
  padding: 8px 0 0;
  border-left: 3px solid var(--green);
  padding-left: 18px;
}

.deck-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: none;
}

.deck-quote footer {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 1040px;
  align-items: stretch;
}

.deck-insight {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: clamp(260px, 40vh, 360px);
  padding: 20px 18px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.deck-insight__mark {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 0.8;
  color: color-mix(in srgb, var(--green-deep) 55%, var(--muted));
}

.deck-insight__quote {
  margin: 0;
  flex: 1;
  font-family: var(--font-body);
  font-stretch: normal;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink);
}

.deck-insight__who {
  margin: 16px 0 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.deck-insight__rule {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
}

.deck-insight__context {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.deck-assumptions {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 920px;
}

.deck-assumption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.deck-assumption__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.deck-assumption__copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.deck-assumption__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}

.deck-assumption__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-weight: 400;
}

/* Key Decision - highlighted three-step ladder */
#slide-tension .deck-title {
  color: #ffffff;
}

#slide-tension .deck-eyebrow {
  color: var(--slide-accent);
}

.deck-decision-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 1040px;
}

.deck-decision-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: clamp(160px, 26vh, 220px);
  padding: 20px 18px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.deck-decision-step__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--slide-accent);
}

.deck-decision-step__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
}

.deck-decision-step__body {
  margin: 0;
  margin-top: auto;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.deck-decision-flow__arrow {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slide-accent);
  line-height: 1;
}

/* Ideation user flow - Host then Investor, top to bottom */
.deck-flowmap {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1040px;
}

.deck-flowmap__lane {
  display: grid;
  gap: 10px;
}

.deck-flowmap__role {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-flowmap__row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 10px;
  align-items: stretch;
}

.deck-flowmap__stage {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.deck-flowmap__lane--host .deck-flowmap__stage {
  background: var(--green-deep);
}

.deck-flowmap__lane--investor .deck-flowmap__stage {
  background: var(--ink);
}

.deck-flowmap__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.deck-flowmap__step {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-soft);
}

.deck-flowmap__lane--host .deck-flowmap__step {
  background: var(--green-tint);
  border-color: rgba(39, 174, 96, 0.22);
  color: var(--ink);
}

.deck-flowmap__lane--investor .deck-flowmap__step {
  background: #eef0ee;
  border-color: rgba(17, 21, 17, 0.12);
}

.deck-flowmap__banner {
  margin: 2px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid rgba(39, 174, 96, 0.22);
  background: var(--green-tint);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.deck-flowmap__banner strong {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.deck-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(720px, 100%);
}

.deck-metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 20px;
}

.deck-metric strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: clamp(1.65rem, 3.8vw, 2.2rem);
  color: var(--green-deep);
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.deck-metric span {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.38;
}

.deck-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.deck-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--green-tint);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.deck-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.deck-step-sep {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Screen upload placeholder - portfolio-aligned frame */
.deck-slot {
  width: 100%;
  max-width: 920px;
  margin: 0;
  border-radius: var(--radius-card);
  border: 1.5px dashed color-mix(in srgb, var(--slide-accent) 42%, rgba(17, 21, 17, 0.28));
  background: color-mix(in srgb, var(--slide-wash) 88%, var(--paper));
  min-height: clamp(220px, 42vh, 420px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.45s ease, background 0.45s ease;
}

.deck-slot::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 21, 17, 0.06);
  pointer-events: none;
}

.deck-slot-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 36ch;
}

.deck-slot-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-tint);
  border: 1px solid rgba(46, 204, 113, 0.35);
  display: grid;
  place-items: center;
  color: var(--green-deep);
  margin-bottom: 4px;
}

.deck-slot-icon svg {
  width: 26px;
  height: 26px;
}

.deck-slot strong {
  font-family: var(--font-display);
  font-stretch: 88%;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.deck-slot span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.38;
}

.deck-slot-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.deck-slot.has-image {
  border-style: solid;
  border-color: var(--line);
  padding: 0;
  background: #0f120f;
}

.deck-slot[data-slot="screen-profile"] {
  /* No placeholder strokes/borders for the direct Figma frame. */
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.deck-slot[data-slot="screen-profile"]::before {
  /* Remove the inner extra stroke line entirely. */
  border: none !important;
  inset: 0 !important;
}

.deck-slot[data-slot="screen-profile"].has-image {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.deck-slot[data-slot="screen-profile"].has-image img {
  object-fit: contain; /* don't cut left/right UI */
  background: transparent !important;
  min-height: 0 !important; /* avoid forcing extra height */
  border-radius: inherit !important;
}

.deck-slot[data-slot="screen-create"] {
  /* No placeholder strokes/borders for the direct Figma frame. */
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.deck-slot[data-slot="screen-create"]::before {
  /* Remove the inner extra stroke line entirely. */
  border: none !important;
  inset: 0 !important;
}

.deck-slot[data-slot="screen-create"].has-image {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.deck-slot[data-slot="screen-create"].has-image img {
  object-fit: contain; /* don't cut left/right UI */
  background: transparent !important;
  min-height: 0 !important; /* avoid forcing extra height */
  border-radius: inherit !important;
}

.deck-slot.has-image img {
  width: 100%;
  height: 100%;
  min-height: clamp(220px, 42vh, 420px);
  object-fit: contain;
  display: block;
  background: #0f120f;
}

.deck-slot.has-image .deck-slot-inner {
  display: none;
}

.deck-two {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  width: 100%;
}

.deck-two .deck-slot {
  min-height: clamp(200px, 38vh, 360px);
}

.deck-slide--with-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.deck-illustration {
  margin: 0;
  align-self: center;
  justify-self: end;
  width: min(280px, 100%);
  min-height: 180px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--slide-wash) 70%, var(--white));
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.deck-slide.is-active .deck-illustration.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.deck-illustration img,
.deck-illustration svg {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

.deck-lottie {
  width: min(120px, 100%);
  height: 120px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  :root {
    --deck-content-width: 100%;
    --deck-content-max: 100%;
  }

  .deck-title,
  .deck-title--wide {
    width: 100%;
    max-width: none;
  }

  /* Keep tablet view stable: avoid internal scrolling. */
  .deck-slide {
    overflow: hidden;
    gap: clamp(12px, 1.8vh, 18px);
    padding: 6px 2px 10px;
  }

  .deck-sub {
    font-size: clamp(0.84rem, 1.15vw, 0.92rem);
    line-height: 1.42;
  }

  .deck-list li {
    font-size: clamp(0.84rem, 1.05vw, 0.92rem);
    line-height: 1.38;
  }

  .deck-slide--with-art {
    grid-template-columns: 1fr;
  }

  .deck-illustration {
    justify-self: start;
    width: 100%;
    min-height: 140px;
    order: -1;
  }
}

.deck-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(18px, 4vw, 40px) 18px;
  z-index: 5;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.deck-mobile-hint {
  display: none;
  place-items: center;
  text-align: center;
  padding: 24px 18px;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.deck-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.deck-progress-track {
  height: 3px;
  background: rgba(17, 21, 17, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.deck-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--slide-accent);
  border-radius: inherit;
  transition: width 0.3s ease, background 0.45s ease;
}

.deck-counter {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.deck-nav {
  display: inline-flex;
  gap: 10px;
  justify-self: center;
}

.deck-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.deck-btn:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--green);
  transform: translateY(-1px);
}

.deck-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.deck-btn svg {
  width: 18px;
  height: 18px;
}

.deck-hint {
  margin: 0;
  justify-self: end;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.deck-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 0 2px;
  color: var(--ink-soft);
  background: var(--paper);
  font-family: inherit;
  font-weight: 700;
}

@media (max-width: 900px) {
  .deck-grid,
  .deck-grid--3,
  .deck-quotes,
  .deck-insights,
  .deck-two,
  .deck-metrics {
    grid-template-columns: 1fr;
  }

  .deck-decision-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .deck-decision-flow__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .deck-flowmap__row {
    grid-template-columns: 1fr;
  }

  .deck-flowmap__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deck-hint {
    display: none;
  }

  .deck-footer {
    grid-template-columns: 1fr auto;
  }

  .deck-progress-wrap {
    grid-column: 1 / -1;
    order: 2;
  }
}

@media (max-width: 640px) {
  .deck-top {
    padding: 12px 14px 8px;
  }

  .deck-stage {
    padding-inline: 14px;
  }

  .deck-slide.is-active {
    justify-content: flex-start;
    padding-top: 8px;
  }

  .deck-footer {
    padding: 10px 14px 14px;
  }

  .deck-brand {
    display: none;
  }

  .deck-back {
    padding: 8px 12px;
    font-size: 11px;
  }

  .deck-stage {
    display: none;
  }

  .deck-mobile-hint {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deck-slide {
    transition: none;
  }
}
