/* ============================================================
   Pioneera — Deck System styles
   Layered on colors_and_type.css + technical-drawing.css.
   Slide canvas: 1920×1080. All sizes in px so projection is
   true to the brand-book type ramp at 100% zoom.
   ============================================================ */

@import url("colors_and_type.css");
@import url("technical-drawing.css");

/* ---- Deck-wide type scale (projection sizes) ---- */
:root {
  --d-display:  176px;  /* cover only */
  --d-title:     88px;  /* statement / hero slide */
  --d-h1:        72px;  /* primary slide headline */
  --d-h2:        52px;  /* section heading */
  --d-h3:        36px;  /* card titles */
  --d-lede:      30px;  /* serif lede */
  --d-body:      24px;
  --d-small:     20px;
  --d-mono:      18px;  /* mono caption */
  --d-eyebrow:   16px;  /* tracked mono eyebrow */

  --d-pad-x:    120px;
  --d-pad-y:     96px;
  --d-gap-title: 56px;
  --d-gap-item:  32px;
}

/* ---- Slide shell ---- */
deck-stage > section {
  background: var(--paper);
  color: var(--iron);
  font-family: var(--font-sans);
  font-size: var(--d-body);
  line-height: 1.5;
  overflow: hidden;
  position: relative;
}
deck-stage > section.iron { background: var(--iron); color: var(--fg-on-iron); }
deck-stage > section.soft { background: var(--bg-soft); }

/* ---- Universal slide chrome (top + bottom rails) ----
   On every slide:
     · top-left: PIONEERA / VENTURES wordmark
     · top-right: figure number + section
     · bottom-left: section title
     · bottom-right: page number (auto-injected) */
.chrome {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 5;
}
.chrome__top, .chrome__bot {
  position: absolute; left: 56px; right: 56px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.chrome__top { top: 36px; }
.chrome__bot { bottom: 36px; }
.iron .chrome__top, .iron .chrome__bot { color: rgba(242,239,232,0.55); }
.chrome__wm {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--iron);
}
.iron .chrome__wm { color: var(--paper); }
.chrome__wm em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  margin-left: 10px;
  text-transform: lowercase;
}
.iron .chrome__wm em { color: var(--gold-light); }
.chrome__sep { width: 1px; height: 12px; background: currentColor; opacity: 0.4; }
.chrome__rule {
  position: absolute; left: 56px; right: 56px; height: 1px;
  background: rgba(11,11,13,0.08);
}
.iron .chrome__rule { background: rgba(242,239,232,0.12); }
.chrome__rule--top { top: 64px; }
.chrome__rule--bot { bottom: 64px; }

/* Hide chrome on full-bleed cover-style slides */
.no-chrome .chrome { display: none; }

/* ---- Frame: standard slide content area ---- */
.frame {
  position: absolute;
  inset: 96px 120px 96px 120px;
  display: flex;
  flex-direction: column;
}

/* ---- Eyebrow / section label ---- */
.eyebrow-line {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 28px;
}
.eyebrow-line__roman {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: 22px;
  color: var(--gold-deep);
}
.iron .eyebrow-line__roman { color: var(--gold-light); }
.eyebrow-line__rule {
  width: 48px; height: 2px; background: var(--gold);
}
.eyebrow-line__mono {
  font-family: var(--font-mono);
  font-size: var(--d-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.iron .eyebrow-line__mono { color: rgba(242,239,232,0.65); }

/* ---- Slide titles ---- */
.s-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--d-h1);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--iron);
  margin: 0;
  max-width: 22ch;
}
.iron .s-title { color: var(--paper); }
.s-title em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  color: var(--gold-deep);
}
.iron .s-title em { color: var(--gold-light); }

.s-title--xl { font-size: var(--d-title); }
.s-title--display {
  font-family: var(--font-serif);
  font-weight: 400; font-style: normal;
  font-size: var(--d-display);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.s-title--display em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--gold);
}

.s-lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--d-lede);
  line-height: 1.45;
  color: var(--iron);
  margin: 32px 0 0;
  max-width: 28ch;
  text-wrap: pretty;
}
.iron .s-lede { color: rgba(242,239,232,0.82); }

/* ---- Dimension callout: tick — VALUE — tick ---- */
.dim-row {
  display: inline-flex; align-items: center; gap: 18px;
  font-family: var(--font-sans);
}
.dim-row__tick { width: 1px; height: 28px; background: var(--steel); }
.iron .dim-row__tick { background: rgba(242,239,232,0.55); }
.dim-row__line { height: 1px; background: var(--steel); flex: 1; min-width: 80px; }
.iron .dim-row__line { background: rgba(242,239,232,0.55); }

/* ---- Stat block (Fig. + big number + label) ---- */
.fig-stat {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 24px 0;
  border-top: 1px solid var(--rule-strong);
  position: relative;
  min-height: 220px;
}
.iron .fig-stat { border-top-color: rgba(242,239,232,0.28); }
.fig-stat__fig {
  font-family: var(--font-mono);
  font-size: var(--d-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.iron .fig-stat__fig { color: var(--gold-light); }
.fig-stat__num {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--iron);
  font-feature-settings: "tnum" 1;
}
.iron .fig-stat__num { color: var(--paper); }
.fig-stat__num em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  color: var(--gold-deep);
}
.iron .fig-stat__num em { color: var(--gold-light); }
.fig-stat__lab {
  font-family: var(--font-mono);
  font-size: var(--d-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 8px;
}
.iron .fig-stat__lab { color: var(--gold-light); }
.fig-stat__desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--steel);
  line-height: 1.4;
}
.iron .fig-stat__desc { color: rgba(242,239,232,0.65); }

/* ---- Sector card ---- */
.sec-card {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 8px;
  position: relative;
}
.sec-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.sec-card__img {
  aspect-ratio: 4 / 3;
  background: var(--iron);
  position: relative; overflow: hidden;
}
.sec-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(55%) contrast(1.05);
}
.sec-card__num {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--paper); text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(11,11,13,0.55);
  backdrop-filter: blur(8px);
}
.sec-card__id {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--gold-light); text-transform: uppercase;
}
.sec-card__head {
  display: flex; align-items: baseline; gap: 16px;
}
.sec-card__head-num {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em;
  color: var(--gold-deep); text-transform: uppercase;
}
.sec-card__head-badge {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em;
  color: var(--iron); text-transform: uppercase;
  padding: 4px 10px; border: 1px solid var(--iron);
}
.iron .sec-card__head-badge { color: var(--paper); border-color: var(--paper); }
.sec-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--d-h3);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--iron);
  margin: 0;
}
.iron .sec-card h3 { color: var(--paper); }
.sec-card p {
  font-family: var(--font-sans);
  font-size: var(--d-small);
  color: var(--steel);
  line-height: 1.5;
  max-width: 38ch;
  margin: 0;
}
.iron .sec-card p { color: rgba(242,239,232,0.7); }

/* ---- Photo / full-bleed ---- */
.bleed { position: absolute; inset: 0; overflow: hidden; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.bleed__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.45) 0%, rgba(11,11,13,0.10) 35%, rgba(11,11,13,0.85) 100%);
}
.bleed__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(242,239,232,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242,239,232,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ---- Caption card overlay on photos ---- */
.cap-card {
  position: absolute;
  background: var(--paper); color: var(--iron);
  padding: 28px 32px;
  max-width: 480px;
  border-left: 2px solid var(--gold);
}
.cap-card__eye {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-deep);
}
.cap-card__t {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 28px; letter-spacing: -0.014em;
  margin: 10px 0 8px;
}
.cap-card__b {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px; color: var(--steel);
  line-height: 1.4;
}

/* ---- Quote ---- */
.quote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 84px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--iron);
  max-width: 22ch;
}
.iron .quote { color: var(--paper); }
.quote em { font-style: italic; color: var(--gold-deep); }
.iron .quote em { color: var(--gold-light); }
.quote__mark {
  font-family: var(--font-serif);
  font-size: 120px;
  color: var(--gold-deep);
  line-height: 0.6;
  display: block;
  margin-bottom: -10px;
}
.iron .quote__mark { color: var(--gold-light); }
.quote__attrib {
  display: flex; align-items: center; gap: 18px;
  margin-top: 56px;
}
.quote__attrib-line { width: 48px; height: 1px; background: var(--steel); }
.iron .quote__attrib-line { background: rgba(242,239,232,0.55); }
.quote__attrib-name { font-weight: 600; font-size: 20px; }
.quote__attrib-role {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.iron .quote__attrib-role { color: rgba(242,239,232,0.65); }

/* ---- Table ---- */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--d-small);
}
.tbl th, .tbl td {
  text-align: left;
  padding: 18px 18px;
  border-bottom: 1px solid var(--rule-strong);
  vertical-align: top;
}
.iron .tbl th, .iron .tbl td { border-bottom-color: rgba(242,239,232,0.18); }
.tbl th {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  border-bottom: 1px solid var(--iron);
  padding-bottom: 14px;
}
.iron .tbl th { color: var(--gold-light); border-bottom-color: rgba(242,239,232,0.55); }
.tbl td.num {
  font-family: var(--font-sans);
  font-weight: 700;
  font-feature-settings: "tnum" 1;
}
.tbl td .sub {
  font-family: var(--font-serif); font-style: italic;
  color: var(--steel);
  font-size: 17px;
  display: block; margin-top: 4px;
}
.tbl tr:last-child td { border-bottom: 0; }

/* ---- Team grid ---- */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.team__card { display: flex; flex-direction: column; gap: 18px; }
.team__img {
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.iron .team__img { background: var(--iron-80); }
.team__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(70%) contrast(1.04);
}
.team__id {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; color: var(--paper);
  padding: 4px 8px; background: rgba(11,11,13,0.55);
}
.team__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.014em;
}
.team__role {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep);
}
.iron .team__role { color: var(--gold-light); }
.team__bio {
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; color: var(--steel);
  line-height: 1.45;
  margin-top: 4px;
}
.iron .team__bio { color: rgba(242,239,232,0.65); }

/* ---- Two-up comparison ---- */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}
.iron .vs { border-color: rgba(242,239,232,0.28); }
.vs__col { padding: 36px 36px 40px; position: relative; }
.vs__col + .vs__col { border-left: 1px solid var(--rule-strong); }
.iron .vs__col + .vs__col { border-left-color: rgba(242,239,232,0.28); }
.vs__col--accent::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--gold);
}
.vs__lab {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel);
}
.vs__col--accent .vs__lab { color: var(--gold-deep); }
.iron .vs__col--accent .vs__lab { color: var(--gold-light); }
.vs__h {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 38px;
  letter-spacing: -0.018em; line-height: 1.1;
  margin: 14px 0 24px;
  color: var(--iron);
}
.iron .vs__h { color: var(--paper); }
.vs__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.vs__list li {
  font-family: var(--font-sans);
  font-size: 22px;
  color: var(--steel);
  line-height: 1.4;
  padding-left: 28px;
  position: relative;
}
.vs__col--accent .vs__list li { color: var(--iron); }
.iron .vs__col--accent .vs__list li { color: var(--paper); }
.vs__list li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 14px; height: 1px; background: currentColor;
}

/* ---- Timeline / phases ---- */
.tl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.tl::before {
  content: ""; position: absolute; top: 16px; left: 0; right: 0;
  height: 1px; background: var(--steel);
}
.iron .tl::before { background: rgba(242,239,232,0.4); }
.tl__step { padding: 0 24px 0 0; position: relative; }
.tl__dot {
  width: 14px; height: 14px;
  border: 2px solid var(--gold);
  background: var(--paper);
  margin-top: 10px;
  position: relative; z-index: 2;
}
.iron .tl__dot { background: var(--iron); }
.tl__phase {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 22px;
}
.iron .tl__phase { color: var(--gold-light); }
.tl__t {
  font-family: var(--font-sans);
  font-weight: 700; font-size: 28px;
  letter-spacing: -0.014em;
  margin: 8px 0 12px;
}
.tl__b {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: var(--steel);
  line-height: 1.5;
  max-width: 26ch;
}
.iron .tl__b { color: rgba(242,239,232,0.7); }

/* ---- Cover specifics ---- */
.cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 96px 120px;
}
.cover__hdr, .cover__ftr {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cover__wordmark img { height: 56px; }
.cover__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 168px;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--paper);
  max-width: 16ch;
}
.cover__title em { font-style: italic; color: var(--gold); }
.cover__lede {
  font-family: var(--font-serif);
  font-size: 28px;
  color: rgba(242,239,232,0.78);
  margin-top: 36px;
  max-width: 52ch;
  line-height: 1.5;
}

/* ---- Index of templates (intro slide) ---- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: 36px;
}
.index-grid__item {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 22px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 130px;
}
.index-grid__id {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--gold-deep); text-transform: uppercase;
}
.index-grid__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 21px;
  color: var(--iron);
  letter-spacing: -0.01em;
}
.index-grid__desc {
  font-family: var(--font-serif); font-style: italic;
  font-size: 16px; color: var(--steel); line-height: 1.4;
}

/* ---- Map slide ---- */
.map {
  position: relative;
  background: var(--bg-soft);
  flex: 1;
  border: 1px solid var(--rule);
  background-image:
    linear-gradient(to right, rgba(11,11,13,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,11,13,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map__pin {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--gold);
  border: 2px solid var(--iron);
  transform: translate(-50%, -50%);
}
.map__pin--lg { width: 22px; height: 22px; }
.map__label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iron);
  transform: translate(20px, -50%);
  white-space: nowrap;
}
.map__label em {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--gold-deep);
  text-transform: lowercase; margin-left: 8px;
}

/* ---- Divider slide ---- */
.divider {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 120px;
}
.divider__num {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 56px; color: var(--gold);
}
.divider__rule {
  width: 96px; height: 2px; background: var(--gold);
  margin: 36px 0;
}
.divider__h {
  font-family: var(--font-sans); font-weight: 800;
  font-size: 144px; line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--paper); margin: 0;
  max-width: 12ch;
}
.divider__h em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--gold);
}
.divider__sub {
  font-family: var(--font-serif);
  font-size: 26px; color: rgba(242,239,232,0.7);
  margin-top: 36px;
  max-width: 48ch;
  line-height: 1.5;
}
.divider__caption {
  position: absolute; bottom: 96px; left: 120px; right: 120px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.2em;
  color: rgba(242,239,232,0.55);
  text-transform: uppercase;
}
.divider__caption em {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold-light); text-transform: lowercase;
  font-size: 16px;
}

/* ---- Closing slide ---- */
.closing__primary {
  font-family: var(--font-serif);
  font-size: 96px; line-height: 1.04; letter-spacing: -0.025em;
  color: var(--paper); max-width: 18ch;
}
.closing__primary em { font-style: italic; color: var(--gold); }
.closing__contacts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid rgba(242,239,232,0.22);
  margin-top: 72px;
  padding-top: 36px;
}
.closing__contact {
  display: flex; flex-direction: column; gap: 8px;
  padding-right: 24px;
}
.closing__contact-lab {
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.18em;
  color: var(--gold-light); text-transform: uppercase;
}
.closing__contact-val {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 28px;
  color: var(--paper);
  letter-spacing: -0.014em;
}
.closing__contact-sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: 18px; color: rgba(242,239,232,0.65);
}

/* ---- Generic utilities ---- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.spacer { flex: 1; }
.mt-auto { margin-top: auto; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.gap-32 { gap: 32px; } .gap-48 { gap: 48px; } .gap-72 { gap: 72px; }

/* parts-grid sizes for deck */
.parts-grid--deck { font-size: var(--d-body); }
.parts-grid--deck .parts-grid__id { font-size: 13px; }
.parts-grid--deck .parts-grid__label { font-size: 22px; }
.parts-grid--deck .parts-grid__item { padding: 22px; min-height: 120px; }

/* gold-foil text accent */
.foil {
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Speaker-template ribbon — identifies each slide as a layout */
.tpl-tag {
  position: absolute; top: 36px; right: 56px; z-index: 6;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  display: none;
}
body.show-tags .tpl-tag { display: inline-block; }
body.show-tags .chrome__top { right: 240px; }
