/* MODAC — PPT-faithful renderer */

:root {
  --ink: #141414;
  --muted: #6e6e6e;
  --muted-2: #696969;
  --line: #e6e6e6;
  --paper: #ffffff;
  --topbar-h: 36px;
  --header-h: 52px;
  --chrome-h: calc(var(--topbar-h) + var(--header-h));
  --slide-max: 1280px;
  --sans: Arial, Helvetica, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--chrome-h); }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-topbar {
  position: sticky; top: 0; z-index: 60; height: var(--topbar-h);
  background: var(--ink); color: rgba(255,255,255,0.9); font-size: 11px;
}
.topbar-inner {
  width: min(var(--slide-max), calc(100% - 2rem)); margin-inline: auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar-inner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.site-header {
  position: sticky; top: var(--topbar-h); z-index: 50;
  background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--slide-max), calc(100% - 2rem)); margin-inline: auto;
  min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { font-weight: 700; font-size: 13.3px; letter-spacing: 0.02em; color: var(--ink); }
.nav {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 1.15rem;
  font-size: 9.6px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.nav a.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
}
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem; border: 0; background: transparent; cursor: pointer; padding: 0;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 1.15rem; height: 1.5px; background: var(--ink); margin-inline: auto; position: relative;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 0.5rem 1rem 1rem; }
.mobile-nav a {
  display: block; padding: 0.7rem 0.15rem; border-bottom: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.mobile-nav a.is-active {
  color: var(--ink);
  font-weight: 700;
}

.section { background: var(--paper); }
/* Six chapters are fully segmented — only the active section is shown (JS) */
html.js-ready .section[data-section] {
  display: none;
}
html.js-ready .section[data-section].is-active {
  display: block;
}

.ppt-slide {
  width: min(var(--slide-max), 100%);
  margin-inline: auto;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.ppt-stage {
  --sw: min(var(--slide-max), 100vw);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #fff;
  font-family: var(--sans);
}
.ppt-shape { pointer-events: none; }
.ppt-text-inner { width: 100%; }
.ppt-text span { letter-spacing: 0; }
.ppt-ph { visibility: hidden !important; }
.ppt-img { overflow: hidden; }
.ppt-img img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* Mobile reformatted view — desktop hidden */
.ppt-mobile { display: none; }

.contact {
  padding: 3.5rem 0; border-top: 1px solid var(--line); background: #fafafa; font-family: var(--sans);
}
.contact-inner { width: min(720px, calc(100% - 2rem)); margin-inline: auto; display: grid; gap: 0.75rem; }
.contact .eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.contact .section-title { font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.contact .body { color: var(--muted-2); font-size: 14px; line-height: 1.6; }
.contact-card {
  margin-top: 0.75rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); font-style: normal;
}
.contact-name { font-weight: 700; font-size: 16px; }
.contact-role { color: var(--muted); font-size: 13px; margin-top: 0.2rem; }
.contact-lines { margin-top: 0.75rem; display: grid; gap: 0.25rem; font-size: 14px; }
.contact-lines a:hover { text-decoration: underline; }
.btn {
  display: inline-flex; margin-top: 1rem; width: fit-content; padding: 0.7rem 1rem;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-family: var(--sans); }
.footer-inner {
  width: min(var(--slide-max), calc(100% - 2rem)); margin-inline: auto; display: grid; gap: 0.85rem;
}
.footer-brand .logo { font-size: 13px; }
.footer-brand p { margin-top: 0.3rem; color: var(--muted); font-size: 12px; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.45rem 1rem;
  font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .mobile-nav:not([hidden]) { display: block; }
  .topbar-hq { display: none; }
  .topbar-inner { width: calc(100% - 1.5rem); font-size: 10px; }
  .header-inner { width: calc(100% - 1.5rem); }

  /* No horizontal pan — show stacked mobile layout */
  .ppt-slide {
    width: 100%;
    overflow: visible;
    contain-intrinsic-size: auto 480px;
  }
  .ppt-stage {
    display: none;
  }
  .ppt-mobile {
    display: block;
    padding: 1.6rem 1.15rem 1.85rem;
    text-align: center;
  }
  .ppt-mobile-title {
    font-size: clamp(1.2rem, 5.2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 auto 0.55rem;
    max-width: 22rem;
    text-wrap: balance;
  }
  .ppt-mobile-sub {
    font-size: clamp(0.88rem, 3.6vw, 0.98rem);
    line-height: 1.55;
    color: var(--muted);
    margin: 0 auto 1rem;
    max-width: 22rem;
    text-wrap: balance;
  }
  .ppt-mobile-body {
    display: grid;
    gap: 0.7rem;
    margin: 0 auto 1.25rem;
    max-width: 24rem;
  }
  .ppt-mobile-body p {
    font-size: clamp(0.92rem, 3.8vw, 1rem);
    line-height: 1.65;
    color: var(--ink);
    text-wrap: pretty;
  }
  .ppt-mobile-body p.is-muted {
    color: var(--muted-2);
    font-size: clamp(0.84rem, 3.4vw, 0.92rem);
    line-height: 1.6;
  }
  .ppt-mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-inline: auto;
    max-width: 26rem;
  }
  .ppt-mobile-grid.is-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.65rem;
    max-width: none;
  }
  .ppt-mobile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
  }
  .ppt-mobile-card.is-hidden {
    display: none;
  }
  .ppt-mobile-card figure {
    margin: 0;
    width: 100%;
    background: #f7f7f7;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .ppt-mobile-grid:not(.is-cols-2) .ppt-mobile-card figure {
    aspect-ratio: 16 / 10;
  }
  .ppt-mobile-card img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
  }
  .ppt-mobile-cap {
    font-size: clamp(0.72rem, 3vw, 0.8rem);
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
    max-width: 100%;
    padding-inline: 0.15rem;
  }
  .ppt-more {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  .ppt-more[hidden] { display: none; }
  .ppt-more-btn {
    appearance: none;
    border: 1px solid var(--ink);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.8rem 1.15rem;
    cursor: pointer;
    width: 100%;
    max-width: 16rem;
    text-align: center;
  }
  .ppt-more-btn:hover {
    background: var(--ink);
    color: #fff;
  }

  .contact {
    padding: 2.5rem 0;
    text-align: center;
  }
  .contact-inner {
    justify-items: center;
  }
  .contact .section-title { font-size: 22px; }
  .contact .body,
  .contact-role,
  .contact-lines {
    text-align: center;
  }
  .contact-card {
    padding: 1rem;
    width: 100%;
  }
  .btn {
    justify-content: center;
  }
  .footer-inner { width: calc(100% - 1.5rem); }
  .footer-links { gap: 0.35rem 0.85rem; justify-content: center; }
  .site-footer { text-align: center; }
}

@media (max-width: 480px) {
  :root {
    --topbar-h: 32px;
    --header-h: 48px;
  }
  .ppt-mobile {
    padding: 1.4rem 1rem 1.65rem;
  }
  .contact .section-title { font-size: 20px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (min-width: 901px) {
  .ppt-mobile { display: none !important; }
}
