/* ========================================================
   AKOS Palantir Deck — slide styles (built on design system)
   ======================================================== */

/* Slide frame: each <section> is the full 1920×1080 canvas */
.slide {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  font-family: 'Proxima Nova', 'Inter', system-ui, sans-serif;
}

.slide-inner {
  position: absolute;
  inset: 0;
  padding: 100px;
  display: flex;
  flex-direction: column;
}

/* Subtle radial + honeycomb ambient — the AKOS signature background */
.slide-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 70% 20%, rgba(48,166,36,0.08), transparent 60%),
    radial-gradient(1400px 900px at 10% 100%, rgba(48,166,36,0.05), transparent 60%),
    #000;
}
.slide-bg--pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='160' viewBox='0 0 80 160' fill='%2330a624' opacity='0.25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 61.4517L-40 79.4517L-40.5 79.2267V79.6767L-41.2184 80L-40.5 80.3233V142.323L-0.5 160.323V160.773L0 160.548L0.5 160.773V160.323L40.5 142.323V80.3233L41.2184 80L40.5 79.6767V79.2267L40 79.4517L0 61.4517ZM38.7816 80L0 62.5483L-38.7816 80L0 97.4517L38.7816 80ZM39.5 80.7733L0.5 98.3233V159.227L39.5 141.677V80.7733ZM-0.5 98.3233L-39.5 80.7733V141.677L-0.5 159.227V98.3233Z' /%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M40 -18.5483L0 -0.548296L-0.5 -0.773294V-0.323296L-1.21843 -1.90735e-06L-0.5 0.323292V62.3233L39.5 80.3233V80.7733L40 80.5483L40.5 80.7733V80.3233L80.5 62.3233V0.323292L81.2184 -1.90735e-06L80.5 -0.323296V-0.773294L80 -0.548296L40 -18.5483ZM78.7816 -1.90735e-06L40 -17.4517L1.21843 -1.90735e-06L40 17.4517L78.7816 -1.90735e-06ZM79.5 0.773291L40.5 18.3233V79.2267L79.5 61.6767V0.773291ZM39.5 18.3233L0.5 0.773291V61.6767L39.5 79.2267V18.3233Z' /%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M40 141.452L0 159.452L-0.5 159.227V159.677L-1.21843 160L-0.5 160.323V222.323L39.5 240.323V240.773L40 240.548L40.5 240.773V240.323L80.5 222.323V160.323L81.2184 160L80.5 159.677V159.227L80 159.452L40 141.452ZM78.7816 160L40 142.548L1.21843 160L40 177.452L78.7816 160ZM79.5 160.773L40.5 178.323V239.227L79.5 221.677V160.773ZM39.5 178.323L0.5 160.773V221.677L39.5 239.227V178.323Z' /%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M80 61.4517L40 79.4517L39.5 79.2267V79.6767L38.7816 80L39.5 80.3233V142.323L79.5 160.323V160.773L80 160.548L80.5 160.773V160.323L120.5 142.323V80.3233L121.218 80L120.5 79.6767V79.2267L120 79.4517L80 61.4517ZM118.782 80L80 62.5483L41.2184 80L80 97.4517L118.782 80ZM119.5 80.7733L80.5 98.3233V159.227L119.5 141.677V80.7733ZM79.5 98.3233L40.5 80.7733V141.677L79.5 159.227V98.3233Z'/%3E%3C/svg%3E%0A");
  background-repeat: repeat;
}

/* ── Typography utilities scaled for 1920×1080 ── */
.t-display-xl { font: 700 160px/1.02 'Gilroy', sans-serif; letter-spacing: -0.02em; }
.t-display-lg { font: 600 120px/1.02 'Gilroy', sans-serif; letter-spacing: -0.015em; }
.t-display-md { font: 600 88px/1.05 'Gilroy', sans-serif; letter-spacing: -0.01em; }
.t-title      { font: 600 64px/1.1  'Gilroy', sans-serif; letter-spacing: -0.005em; }
.t-subtitle-lg{ font: 600 44px/1.2  'Gilroy', sans-serif; }
.t-body-lg    { font: 400 34px/1.45 'Proxima Nova', sans-serif; }
.t-body-md    { font: 400 28px/1.5  'Proxima Nova', sans-serif; }
.t-body-sm    { font: 400 24px/1.5  'Proxima Nova', sans-serif; }
.t-caption    { font: 600 24px/1.5 'Proxima Nova', sans-serif; }
.t-mono       { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-feature-settings: "tnum" 1; }

.t-overline-lg {
  font: 600 26px/1.5 'Gilroy', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #30a624;
}
.t-overline-md {
  font: 600 24px/1.5 'Gilroy', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #30a624;
}
.t-outline {
  -webkit-text-stroke: 2px #30a624;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.t-muted { color: #a3a3a3; }
.t-faint { color: #737373; }
.t-accent { color: #30a624; }
em { font-style: italic; }

.kicker-green {
  color: #30a624;
  font-weight: 700;
}

/* ── Top header band + footer band (parallel on every slide) ── */
.deck-header {
  position: absolute;
  top: 48px;
  left: 100px;
  right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.deck-header .mark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.deck-header .mark-text {
  font: 700 28px/1 'Gilroy', sans-serif;
  letter-spacing: -0.01em;
}
.deck-header .mark-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: #30a624;
  box-shadow: 0 0 12px rgba(48,166,36,0.6);
}
.deck-header .crumb {
  font: 600 24px/1 'Gilroy', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #737373;
}

.deck-footer {
  position: absolute;
  bottom: 44px;
  left: 100px;
  right: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #737373;
  font: 400 24px/1 'Proxima Nova', sans-serif;
  letter-spacing: 0.04em;
  z-index: 5;
}
.deck-footer .sep { color: #30a624; margin: 0 12px; }
.deck-footer .site-link {
  color: #a3a3a3;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 160ms ease;
}
.deck-footer .site-link::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: rgba(48,166,36,0.5);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1), background 160ms ease;
}
.deck-footer .site-link:hover { color: #fff; }
.deck-footer .site-link:hover::before { transform: scaleX(1); background: #30a624; }

/* Cover badge — top-right link, more prominent than footer */
.cover-site-badge {
  position: absolute;
  top: 56px;
  right: 100px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(48,166,36,0.5);
  border-radius: 999px;
  background: rgba(48,166,36,0.06);
  color: #30a624;
  font: 600 22px/1 'Gilroy', sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  z-index: 6;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.cover-site-badge:hover {
  background: #30a624;
  border-color: #30a624;
  color: #000;
}
.cover-site-badge .arrow {
  width: 16px; height: 16px;
}

/* ── Cutout signature surface ── */
.cutout-surface {
  --cutout-radius: 42px;
  position: relative;
  background: #30a624;
  clip-path: polygon(0 var(--cutout-radius), var(--cutout-radius) 0, 100% 0, 100% calc(100% - var(--cutout-radius)), calc(100% - var(--cutout-radius)) 100%, 0 100%);
}
.cutout-surface::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: #000;
  clip-path: polygon(0 var(--cutout-radius), var(--cutout-radius) 0, 100% 0, 100% calc(100% - var(--cutout-radius)), calc(100% - var(--cutout-radius)) 100%, 0 100%);
}
.cutout-surface > * {
  position: relative;
  z-index: 2;
}

/* smaller cutout */
.cutout-sm {
  --cutout-radius: 16px;
}

/* filled green cutout (hero CTA style) */
.cutout-filled {
  --cutout-radius: 42px;
  position: relative;
  background: #30a624;
  clip-path: polygon(0 var(--cutout-radius), var(--cutout-radius) 0, 100% 0, 100% calc(100% - var(--cutout-radius)), calc(100% - var(--cutout-radius)) 100%, 0 100%);
  color: #000;
}

/* ── Stat / metric block ── */
.metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric-num {
  font: 700 88px/1 'Gilroy', sans-serif;
  letter-spacing: -0.015em;
  color: #fff;
}
.metric-num .t-accent { color: #30a624; }
.metric-lbl {
  font: 400 24px/1.3 'Proxima Nova', sans-serif;
  color: #a3a3a3;
  letter-spacing: 0.02em;
  max-width: 300px;
}

/* ── Card ── */
.ak-card {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 36px;
}
.ak-card--accent {
  border-color: #30a624;
}
.ak-card--plain {
  background: transparent;
}

/* ── Pill tag ── */
.ak-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font: 600 24px/1 'Proxima Nova', sans-serif;
  color: #d4d4d4;
  background: rgba(255,255,255,0.02);
}
.ak-tag--accent {
  border-color: #30a624;
  color: #83ca7c;
  background: rgba(48,166,36,0.06);
}
.ak-tag .dot {
  width: 8px; height: 8px; border-radius: 999px; background: #30a624;
}

/* ── Underline link / CTA arrow ── */
.ak-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #30a624;
  font: 600 24px/1 'Gilroy', sans-serif;
  letter-spacing: 0.01em;
}
.ak-link svg { width: 20px; height: 20px; }

/* ── Section header (for section-break slides) ── */
.section-num {
  font: 600 32px/1 'Gilroy', sans-serif;
  color: #30a624;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* ── Tweaks panel ── */
#tweaks {
  position: fixed;
  right: 18px;
  bottom: 72px;
  width: 320px;
  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(48,166,36,0.4);
  border-radius: 8px;
  padding: 18px 18px 16px;
  z-index: 2147483500;
  font: 400 13px/1.4 'Proxima Nova', sans-serif;
  color: #fff;
  display: none;
  backdrop-filter: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
#tweaks.is-open { display: block; }
#tweaks h4 {
  margin: 0 0 4px;
  font: 600 14px/1 'Gilroy', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #30a624;
}
#tweaks .hint { color: #737373; font-size: 12px; margin-bottom: 14px; }
#tweaks .group { margin-top: 14px; }
#tweaks .lbl { font-size: 12px; color: #a3a3a3; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
#tweaks .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#tweaks .opt-btn {
  all: unset;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font: 600 12px/1 'Proxima Nova', sans-serif;
  color: #d4d4d4;
  text-align: center;
  transition: all 160ms;
}
#tweaks .opt-btn:hover { border-color: rgba(48,166,36,0.6); color: #fff; }
#tweaks .opt-btn.is-active {
  background: #30a624;
  color: #000;
  border-color: #30a624;
}

/* ── Cover variants ── */
.cover-v {
  display: none;
  position: absolute;
  inset: 0;
}
.cover-v[data-active] { display: block; }

/* Cover A — big marquee */
.cover-a .cover-top-mark {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 4;
}
.cover-a .cover-top-mark img {
  height: 64px;
  display: block;
}
.cover-a .cover-title {
  position: absolute;
  left: 100px;
  bottom: 200px;
  max-width: 1400px;
}
.cover-a .cover-title .line {
  display: block;
}

/* Cover B — split, with ontology illustration */
.cover-b .split {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.cover-b .split > .left {
  padding: 180px 80px 180px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.cover-b .split > .right {
  position: relative;
  background: radial-gradient(circle at center, rgba(48,166,36,0.14), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-b .split > .right img {
  width: 88%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

/* Cover C — centered with cutout frame */
.cover-c .center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
  text-align: center;
}
.cover-c .cover-c-logo {
  height: 64px;
  display: block;
  margin-bottom: -20px; /* tighten gap to overline */
}

/* ── Palantir primer variants ── */
.primer-v {
  display: none;
}
.primer-v[data-active] { display: flex; }

/* ── Arsenal grid — compact cards ── */
.arsenal-slide .ak-card {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.arsenal-slide .ak-card h4 {
  font-size: 28px !important;
  line-height: 1.15 !important;
}

/* ── Slide 6 — Arsenal hero (3 feature cards) ─────────────── */
.arsenal-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.arsenal-feature-card {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 30px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color 200ms ease;
}
.arsenal-feature-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #30a624;
  transform: scaleY(0.2);
  transform-origin: top;
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
}
.arsenal-feature-card:hover {
  border-color: rgba(48,166,36,0.45);
}
.arsenal-feature-card:hover::before { transform: scaleY(1); }

.arsenal-feature-card .feat-num {
  font: 700 36px/1 'Gilroy', sans-serif;
  color: rgba(48,166,36,0.45);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.arsenal-feature-card .feat-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 14px/1 'Gilroy', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #83ca7c;
}
.arsenal-feature-card .feat-type::before {
  content: "";
  width: 7px; height: 7px; border-radius: 999px;
  background: #30a624;
}
.arsenal-feature-card h3 {
  font: 600 30px/1.18 'Gilroy', sans-serif;
  margin: 0;
  color: #fff;
  letter-spacing: -0.005em;
}
.arsenal-feature-card .feat-body {
  font: 400 19px/1.5 'Proxima Nova', sans-serif;
  color: #a3a3a3;
  margin: 0;
}
.arsenal-feature-card .feat-key {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font: 600 17px/1.4 'Gilroy', sans-serif;
  color: #fff;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.arsenal-feature-card .feat-key::before {
  content: "→";
  color: #30a624;
  flex: 0 0 auto;
  font-weight: 700;
}

/* ── Slide 7 — Arsenal continued (denser grid + spanning CTA) ── */
.arsenal-slide-2 .arsenal-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
  margin-top: 28px;
}

/* Wide CTA spanning 2 cells — inverted green button feel */
.arsenal-mini-cta-wide {
  grid-column: span 2;
  background: #30a624;
  border: 1px solid #30a624;
  border-radius: 8px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: #000;
  position: relative;
  overflow: hidden;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.arsenal-mini-cta-wide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='160' viewBox='0 0 80 160' fill='%23000' opacity='0.08' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 61.4517L-40 79.4517L-40.5 79.2267V79.6767L-41.2184 80L-40.5 80.3233V142.323L-0.5 160.323V160.773L0 160.548L0.5 160.773V160.323L40.5 142.323V80.3233L41.2184 80L40.5 79.6767V79.2267L40 79.4517L0 61.4517ZM38.7816 80L0 62.5483L-38.7816 80L0 97.4517L38.7816 80ZM39.5 80.7733L0.5 98.3233V159.227L39.5 141.677V80.7733ZM-0.5 98.3233L-39.5 80.7733V141.677L-0.5 159.227V98.3233Z' /%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M40 -18.5483L0 -0.548296L-0.5 -0.773294V-0.323296L-1.21843 -1.90735e-06L-0.5 0.323292V62.3233L39.5 80.3233V80.7733L40 80.5483L40.5 80.7733V80.3233L80.5 62.3233V0.323292L81.2184 -1.90735e-06L80.5 -0.323296V-0.773294L80 -0.548296L40 -18.5483ZM78.7816 -1.90735e-06L40 -17.4517L1.21843 -1.90735e-06L40 17.4517L78.7816 -1.90735e-06ZM79.5 0.773291L40.5 18.3233V79.2267L79.5 61.6767V0.773291ZM39.5 18.3233L0.5 0.773291V61.6767L39.5 79.2267V18.3233Z' /%3E%3C/svg%3E%0A");
  background-repeat: repeat;
  pointer-events: none;
}
.arsenal-mini-cta-wide:hover {
  background: #25781d;
  box-shadow: 0 6px 24px rgba(48,166,36,0.32);
}
.arsenal-mini-cta-wide > * { position: relative; z-index: 1; }

.arsenal-mini-cta-wide .wide-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arsenal-mini-cta-wide .wide-overline {
  font: 600 13px/1 'Gilroy', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0,0,0,0.65);
}
.arsenal-mini-cta-wide h5 {
  font: 600 24px/1.2 'Gilroy', sans-serif;
  margin: 0;
  color: #000;
  letter-spacing: -0.005em;
  max-width: 460px;
}
.arsenal-mini-cta-wide .wide-url {
  font: 600 16px/1 'Gilroy', sans-serif;
  color: #000;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.arsenal-mini-cta-wide .wide-arrow {
  width: 56px; height: 56px;
  flex: 0 0 56px;
  border-radius: 999px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 260ms cubic-bezier(0.16,1,0.3,1);
}
.arsenal-mini-cta-wide:hover .wide-arrow {
  transform: translateX(4px) rotate(-8deg);
}
.arsenal-mini-cta-wide .wide-arrow svg {
  width: 22px; height: 22px;
  color: #30a624;
}

/* ── Arsenal — continued (smaller, denser grid) ── */
.arsenal-slide-2 .arsenal-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
  margin-top: 28px;
}
.arsenal-mini-card {
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease;
}
.arsenal-mini-card:hover {
  border-color: rgba(48,166,36,0.4);
  background: #0d0d0d;
}
.arsenal-mini-card .mini-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 14px/1 'Gilroy', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #83ca7c;
}
.arsenal-mini-card .mini-type::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px; background: #30a624;
}
.arsenal-mini-card h5 {
  font: 600 21px/1.2 'Gilroy', sans-serif;
  margin: 0;
  color: #fff;
}
.arsenal-mini-card p {
  font: 400 16px/1.45 'Proxima Nova', sans-serif;
  color: #a3a3a3;
  margin: 0;
}

/* "View all" promo tile — green outline, link feel */
.arsenal-mini-cta {
  background: rgba(48,166,36,0.06);
  border: 1px solid rgba(48,166,36,0.45);
  border-radius: 6px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: background 200ms ease, border-color 200ms ease;
}
.arsenal-mini-cta:hover {
  background: rgba(48,166,36,0.12);
  border-color: #30a624;
}
.arsenal-mini-cta .mini-type {
  color: #30a624;
}
.arsenal-mini-cta .mini-type::before {
  background: #30a624;
}
.arsenal-mini-cta h5 {
  font: 600 22px/1.2 'Gilroy', sans-serif;
  margin: 0;
  color: #fff;
}
.arsenal-mini-cta .cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #30a624;
  font: 600 18px/1 'Gilroy', sans-serif;
  letter-spacing: 0.02em;
  transition: transform 220ms cubic-bezier(0.16,1,0.3,1);
}
.arsenal-mini-cta:hover .cta-arrow { transform: translateX(4px); }
.arsenal-mini-cta .cta-arrow svg { width: 16px; height: 16px; }

/* ── Case study layout ── */
.cs-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  flex: 1;
}
.cs-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 56px;
}

/* ── Table ── */
.ak-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}
.ak-table th, .ak-table td {
  text-align: left;
  padding: 22px 20px;
  border-bottom: 1px solid #262626;
  vertical-align: middle;
}
.ak-table thead th {
  font: 600 16px/1 'Gilroy', sans-serif;
  color: #30a624;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-bottom: 1px solid #30a624;
  padding-bottom: 18px;
}
.ak-table tbody td {
  font: 400 22px/1.35 'Proxima Nova', sans-serif;
}
.ak-table tbody td.name {
  font: 600 22px/1.3 'Gilroy', sans-serif;
  color: #fff;
}
.ak-table tbody td.muted {
  color: #a3a3a3;
}

/* ── Small helpers ── */
.grow { flex: 1; }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.gap-xl { gap: 64px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.divider-green { width: 120px; height: 2px; background: #30a624; margin: 0; }
.divider-thin { height: 1px; background: rgba(255,255,255,0.12); }

/* Discovery CTA link on close slide — animated arrow nudge on hover */
.discovery-cta { transition: opacity 160ms ease; }
.discovery-cta:hover { opacity: 0.82; }
.discovery-cta svg { transition: transform 220ms cubic-bezier(0.16,1,0.3,1); }
.discovery-cta:hover svg { transform: translateX(4px); }

/* Slide 3 (Our belief) — kill default paragraph margins on display-md paragraphs */
.slide .t-display-md { margin: 0; }
.t-display-md + .t-display-md { margin-top: 6px; }

/* Print: remove Tweaks panel when printing */
@media print {
  #tweaks, #tweaks-toggle { display: none !important; }

  /* Force arsenal application cards visible in PDF export —
     fade-in-up only triggers on the active slide via [data-deck-active];
     in print, every slide must render its cards regardless of active state. */
  .arsenal-app-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Flatten slide backgrounds for clean PDF rendering.
     The screen treatment stacks a radial-gradient glow and a tiled
     SVG honeycomb at 25% opacity over solid black — Acrobat paints
     these as separate transparent layers per page, which reads as
     a 2-second flutter while the document opens. Collapse to a
     single solid color so each page flattens to one layer. */
  .slide,
  .slide-bg {
    background: #000 !important;
  }
  .slide-bg--pattern::before {
    display: none !important;
  }
}

/* ── Arsenal Applications grid ────────────────────────────── */
.arsenal-apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
.arsenal-app-card {
  position: relative;
  background: #000;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    box-shadow 240ms ease;
}
.arsenal-app-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.arsenal-app-card:hover {
  border-color: rgba(48,166,36,0.45);
  box-shadow: 0 6px 28px rgba(48,166,36,0.16), 0 4px 18px rgba(0,0,0,0.5);
}

/* fade-in-up: inactive slides start hidden+below, active slides ease in */
.arsenal-app-slide .arsenal-app-card {
  opacity: 0;
  transform: translateY(48px);
}
.arsenal-app-slide[data-deck-active] .arsenal-app-card {
  opacity: 1;
  transform: translateY(0);
}
.arsenal-app-slide[data-deck-active] .arsenal-app-card:nth-child(1) { transition-delay: 120ms; }
.arsenal-app-slide[data-deck-active] .arsenal-app-card:nth-child(2) { transition-delay: 260ms; }
.arsenal-app-slide[data-deck-active] .arsenal-app-card:nth-child(3) { transition-delay: 400ms; }

/* ── Slide content reveal: fade-up on slide entry ──────────────
   Cards, metric columns, and supporting blocks fade up when their
   parent slide becomes active. Header, footer, pre-title overline,
   and main display headings stay put. The existing arsenal-app-card
   animation above (slides 8–10) is preserved unchanged. */

.slide .ak-card,
.slide .arsenal-feature-card,
.slide .arsenal-mini-card,
.slide .arsenal-mini-cta-wide,
.slide .cs-layout > .col,
.slide .primer-v > .row > div,
.slide .slide-inner > .row[style*="border:1px"],
.slide .slide-inner > .row.gap-lg > *,
.slide .row.gap-xl > .col,
.slide .row.gap-xl > .cutout-surface {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.slide[data-deck-active] .ak-card,
.slide[data-deck-active] .arsenal-feature-card,
.slide[data-deck-active] .arsenal-mini-card,
.slide[data-deck-active] .arsenal-mini-cta-wide,
.slide[data-deck-active] .cs-layout > .col,
.slide[data-deck-active] .primer-v > .row > div,
.slide[data-deck-active] .slide-inner > .row[style*="border:1px"],
.slide[data-deck-active] .slide-inner > .row.gap-lg > *,
.slide[data-deck-active] .row.gap-xl > .col,
.slide[data-deck-active] .row.gap-xl > .cutout-surface {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger — left-to-right reveal across row/grid layouts */
.slide[data-deck-active] .ak-card:nth-child(1),
.slide[data-deck-active] .arsenal-feature-card:nth-child(1),
.slide[data-deck-active] .cs-layout > .col:nth-child(1),
.slide[data-deck-active] .primer-v > .row > div:nth-child(1),
.slide[data-deck-active] .slide-inner > .row.gap-lg > *:nth-child(1),
.slide[data-deck-active] .row.gap-xl > *:nth-child(1) {
  transition-delay: 140ms;
}
.slide[data-deck-active] .ak-card:nth-child(2),
.slide[data-deck-active] .arsenal-feature-card:nth-child(2),
.slide[data-deck-active] .cs-layout > .col:nth-child(2),
.slide[data-deck-active] .primer-v > .row > div:nth-child(2),
.slide[data-deck-active] .slide-inner > .row.gap-lg > *:nth-child(2),
.slide[data-deck-active] .row.gap-xl > *:nth-child(2) {
  transition-delay: 260ms;
}
.slide[data-deck-active] .ak-card:nth-child(3),
.slide[data-deck-active] .arsenal-feature-card:nth-child(3),
.slide[data-deck-active] .primer-v > .row > div:nth-child(3),
.slide[data-deck-active] .slide-inner > .row.gap-lg > *:nth-child(3) {
  transition-delay: 380ms;
}
.slide[data-deck-active] .slide-inner > .row[style*="border:1px"] {
  transition-delay: 480ms;
}

/* Arsenal mini-card stagger — slide 7 (10 cards + 1 wide CTA) */
.slide[data-deck-active] .arsenal-mini-card:nth-child(1)  { transition-delay: 120ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(2)  { transition-delay: 180ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(3)  { transition-delay: 240ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(4)  { transition-delay: 300ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(5)  { transition-delay: 360ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(6)  { transition-delay: 420ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(7)  { transition-delay: 480ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(8)  { transition-delay: 540ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(9)  { transition-delay: 600ms; }
.slide[data-deck-active] .arsenal-mini-card:nth-child(10) { transition-delay: 660ms; }
.slide[data-deck-active] .arsenal-mini-cta-wide           { transition-delay: 720ms; }

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .slide .ak-card,
  .slide .arsenal-feature-card,
  .slide .arsenal-mini-card,
  .slide .arsenal-mini-cta-wide,
  .slide .cs-layout > .col,
  .slide .primer-v > .row > div,
  .slide .slide-inner > .row[style*="border:1px"],
  .slide .slide-inner > .row.gap-lg > *,
  .slide .row.gap-xl > .col,
  .slide .row.gap-xl > .cutout-surface {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Print: render everything visible regardless of active state */
@media print {
  .slide .ak-card,
  .slide .arsenal-feature-card,
  .slide .arsenal-mini-card,
  .slide .arsenal-mini-cta-wide,
  .slide .cs-layout > .col,
  .slide .primer-v > .row > div,
  .slide .slide-inner > .row[style*="border:1px"],
  .slide .slide-inner > .row.gap-lg > *,
  .slide .row.gap-xl > .col,
  .slide .row.gap-xl > .cutout-surface {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

