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

  :root {
    --bg: #1A1A1A;
    --bg-alt: #2A2826;
    --white: #F0ECE6;
    --text: #F0ECE6;
    --text-muted: #8C8680;
    --blue: #B8A88A;
    --green: #8B9A6B;
    --red: #A85C5C;
    --border: #3A3836;
    --shadow: none;
    --shadow-lg: none;
    --font-head: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
  }

  html { font-size: 22px; }

  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
  }

  #deck {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.2rem 4rem 3rem;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    overflow: hidden;
  }

  .slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
  }

  .slide.prev {
    opacity: 0;
    transform: translateX(-60px);
  }

  #progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: var(--blue);
    transition: width 0.4s ease;
    z-index: 100;
  }

  #nav {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    transform: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 100;
    background: rgba(26,26,26,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    box-shadow: none;
  }

  .nav-btn {
    width: 32px; height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    transition: background 0.2s;
  }

  .nav-btn:hover { background: var(--border); }
  .nav-btn:disabled { opacity: 0.3; cursor: default; }

  #slide-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 48px;
    text-align: center;
    font-weight: 500;
  }

  .conf-footer {
    position: absolute;
    bottom: 0.7rem;
    left: 0; right: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .act-label {
    position: absolute;
    top: 1.25rem;
    left: 4rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
  }

  .slide-num {
    display: none;
  }

  .card {
    background: #1E1E1E;
    border-radius: 0;
    box-shadow: none;
    padding: 1.25rem 1.5rem;
    border: 1px solid #3A3836;
  }

  .slide-title {
    font-family: var(--font-head);
    font-family: var(--font-body);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 0.2rem;
  }

  .slide-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
  }

  .section-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 0.4rem;
  }

  .cite {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-muted);
    font-weight: 400;
  }

  .bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.4;
  }

  .bullet-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: 0.42em;
  }

  /* ===== RESPONSIVE: TABLET / MOBILE ===== */
  @media (max-width: 768px) {
    html { font-size: 16px; }

    body { overflow: auto; }

    #deck { overflow: auto; height: auto; min-height: 100vh; }

    .slide {
      position: relative;
      top: auto; left: auto;
      width: 100%;
      height: auto;
      min-height: 100vh;
      padding: 1.2rem 1rem 3.5rem;
      opacity: 1;
      transform: none;
      pointer-events: all;
      overflow-y: auto;
      display: none;
    }

    .slide.active { display: flex; }
    .slide.prev { display: none; opacity: 0; transform: none; }

    .slide-title {
    font-family: var(--font-head); font-size: 1.3rem; }
    .slide-subtitle { font-size: 0.72rem; }

    .title-main { font-size: 2.4rem; }

    .partner-layout { grid-template-columns: 1fr; }

    .partner-hero { padding: 1rem 1.25rem; }

    .metrics-grid { grid-template-columns: 1fr 1fr; }

    .crisis-layout,
    .tam-layout,
    .gap-grid,
    .position-layout,
    .roadmap-layout,
    .tech-layout,
    .growth-layout,
    .raise-layout { grid-template-columns: 1fr; }

    /* New slides responsive */
    #slide-9 > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    #slide-17 div[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
    #slide-18 > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

    .bullet-list li { font-size: 0.72rem; }

    .partner-stat { font-size: 1.6rem; }
    .partner-name { font-size: 1.2rem; }

    .metric-value { font-size: 1.4rem; }
    .metric-label { font-size: 0.65rem; }

    /* Slide 3 hero banner */
    #slide-3 [style*="height:8.5rem"],
    #slide-3 [style*="height: 8.5rem"] { height: 6rem !important; }

    /* Slide 3 two-column grid */
    #slide-3 [style*="grid-template-columns:1.15fr"] { grid-template-columns: 1fr !important; }

    /* Slide 4 video container */
    #slide-4 [style*="max-height:7.5rem"] { max-height: 5rem !important; }

    /* Canvas charts */
    canvas { width: 100% !important; max-height: 220px; }
    .tam-chart-wrap,
    .growth-chart-wrap { height: 220px; }

    /* Tables */
    table { font-size: 0.6rem; }
    td, th { white-space: normal; word-break: break-word; }

    #nav {
      bottom: 0.75rem;
      padding: 0.4rem 1rem;
      gap: 0.75rem;
    }

    .nav-btn { width: 44px; height: 44px; }

    .conf-footer { font-size: 0.48rem; padding: 0 0.5rem; }

    .act-label { font-size: 0.54rem; left: 1rem; }
    .slide-num { font-size: 0.54rem; right: 1rem; }

    /* tehiru-answer full-width inner grid */
    .tehiru-answer { grid-template-columns: 1fr 1fr 1fr; }
  }

  /* ===== RESPONSIVE: SMALL PHONES ===== */
  @media (max-width: 480px) {
    html { font-size: 14px; }

    .slide { padding: 1rem 0.75rem 3.5rem; }

    .slide-title {
    font-family: var(--font-head); font-size: 1.1rem; }

    .metrics-grid { grid-template-columns: 1fr; }

    .title-main { font-size: 2rem; }

    .tehiru-answer { grid-template-columns: 1fr; }

    .comp-row { grid-template-columns: 1fr 1fr 1fr; }
    .comp-row.header .comp-cell,
    .comp-cell { font-size: 0.55rem; padding: 0.4rem 0.35rem; }

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

    .use-grid { grid-template-columns: 1fr; }
  }

  /* ── Comments Panel ──────────────────────────────────────────────────────── */
  #comments-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0.45rem 0.85rem;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, box-shadow 0.2s;
  }
  #comments-btn:hover { background: #1E1E1E; box-shadow: none; }

  #comments-badge {
    background: var(--blue);
    color: white;
    border-radius: 0;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.38rem;
    min-width: 16px;
    text-align: center;
    display: none;
  }
  #comments-badge.visible { display: inline-block; }

  #comments-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 150;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.25);
  }
  #comments-panel.open { right: 0; }

  #comments-header {
    padding: 1.1rem 1.1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }
  #comments-header h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
  }
  #comments-slide-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    margin-left: 0.3rem;
  }
  #comments-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    line-height: 0;
    transition: color 0.2s;
  }
  #comments-close:hover { color: rgba(255,255,255,0.9); }

  #comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  #comments-list::-webkit-scrollbar { width: 4px; }
  #comments-list::-webkit-scrollbar-track { background: transparent; }
  #comments-list::-webkit-scrollbar-thumb { background: rgba(30,30,30,0.15); border-radius: 4px; }

  .comment-item {
    background: rgba(30,30,30,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0;
    padding: 0.6rem 0.7rem;
  }
  .comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
    gap: 0.5rem;
  }
  .comment-author {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .comment-time {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    color: rgba(255,255,255,0.32);
    flex-shrink: 0;
  }
  .comment-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    word-break: break-word;
  }
  .comment-empty {
    text-align: center;
    color: rgba(255,255,255,0.28);
    font-size: 0.7rem;
    font-family: var(--font-mono);
    padding: 2rem 0;
  }

  #comments-form {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-shrink: 0;
  }
  #comments-form input,
  #comments-form textarea {
    background: rgba(30,30,30,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-head);
    font-size: 0.7rem;
    padding: 0.48rem 0.6rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }
  #comments-form input::placeholder,
  #comments-form textarea::placeholder { color: rgba(255,255,255,0.28); }
  #comments-form input:focus,
  #comments-form textarea:focus { border-color: var(--blue); }
  #comments-form textarea { height: 62px; line-height: 1.45; }

  #comments-submit {
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: opacity 0.2s;
  }
  #comments-submit:hover { opacity: 0.85; }
  #comments-submit:disabled { opacity: 0.4; cursor: default; }

  @media (max-width: 700px) {
    #comments-panel { width: 100%; right: -100%; }
    #comments-btn { bottom: 0.75rem; right: 0.75rem; }
  }

/* ===== Force landscape on mobile portrait ===== */
#rotate-device {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0e18;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  font-family: 'Montserrat', sans-serif;
  color: #F0ECE6;
}
#rotate-device .rotate-icon {
  width: 80px; height: 80px;
  margin-bottom: 1.75rem;
  animation: rotate-hint 2.2s ease-in-out infinite;
}
#rotate-device .rotate-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #F0ECE6;
  margin-bottom: 0.75rem;
}
#rotate-device .rotate-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(240,236,230,0.7);
  line-height: 1.5;
  max-width: 280px;
}
#rotate-device .rotate-accent {
  width: 40px; height: 2px; background: #B8A88A;
  margin: 1.25rem 0 1.25rem;
}
@keyframes rotate-hint {
  0%, 20%   { transform: rotate(0deg); }
  50%, 70%  { transform: rotate(90deg); }
  100%      { transform: rotate(0deg); }
}
@media (max-width: 900px) and (orientation: portrait) {
  #rotate-device { display: flex; }
  #deck, #nav, #progress-bar, #comments-btn, #comments-panel { display: none !important; }
}
