/* ============================================================
   AlHoot × Hulul — slides.css
   Per-slide layout + animation END-STATES.
   Builder 1 ships S01 (cover). Builder 2: append S02–S16
   below the marker — keep the .sXX-- class prefix pattern.

   Rule of thumb: markup/CSS always describes the slide's
   FINISHED, visible state; js/main.js applies the hidden
   "from" states. With JS off (or reduced motion) every slide
   must read perfectly as static content.
   ============================================================ */

/* ---------------- S01 — Cover ---------------- */

.s01-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(1.25rem, 3svh, 2.25rem);
  text-align: center;
  max-width: var(--content-max);
}

.s01-glyph {
  width: clamp(9.5rem, 22vw, 17rem);
  height: auto;
  color: var(--ink);
  /* static teal underwater glow — set once, not animated */
  filter: drop-shadow(0 0 42px rgba(0, 157, 172, 0.35));
}

.s01-wordmark {
  width: clamp(13rem, 30vw, 24rem);
}

.s01-title {
  color: var(--ink);
}
.s01-title .s01-x { color: var(--accent); } /* large display type — teal ok */

.s01-lead {
  color: var(--ink-soft);
  max-width: 36ch;
  text-wrap: balance;
}

/* faint bubble trail left behind the rising glyph (scrubbed by JS) */
.s01-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.s01-trail i {
  position: absolute;
  top: 55%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(176, 229, 234, 0.45);
  opacity: 0;
}
.s01-trail i:nth-child(1) { inset-inline-start: 44%; width: 6px;  height: 6px; }
.s01-trail i:nth-child(2) { inset-inline-start: 50%; width: 10px; height: 10px; }
.s01-trail i:nth-child(3) { inset-inline-start: 56%; width: 5px;  height: 5px; }
.s01-trail i:nth-child(4) { inset-inline-start: 47%; width: 7px;  height: 7px; }
.s01-trail i:nth-child(5) { inset-inline-start: 53%; width: 6px;  height: 6px; }
.s01-trail i:nth-child(6) { inset-inline-start: 41%; width: 5px;  height: 5px; }

.s01-footer {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(1.5rem, 5svh, 3rem);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}
.s01-caption { color: var(--ink-faint); }

.scroll-cue {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-bright);
  animation: cue-drift 2.8s var(--ease-water) infinite;
}
@keyframes cue-drift {
  0%   { transform: translateY(-8px); opacity: 0; }
  35%  { opacity: 0.85; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ============================================================
   BUILDER 2 — per-slide layout for S02–S16 goes below.
   ============================================================ */

/* ---------------- Shared patterns (S02–S16) ---------------- */

.sec-title {
  color: var(--ink);
  margin-block-end: clamp(1.25rem, 3.5svh, 2.25rem);
  text-wrap: balance;
}

.prose {
  display: grid;
  gap: 1.15rem;
  max-width: var(--prose-max);
  color: var(--ink-soft);
}
.prose strong { color: var(--ink); font-weight: 600; }

.prose-solo {
  max-width: var(--prose-max);
  color: var(--ink-soft);
}
.prose-solo strong { color: var(--ink); font-weight: 600; }

/* pull-quote beat — large teal line (accent on navy: large type only, §3) */
.pull {
  color: var(--accent-bright);
  max-width: 32ch;
  text-wrap: balance;
}
.pull strong { color: inherit; }

/* flowing breadcrumb line (S05 address, S07 path, S14 timeline) */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
  max-width: var(--content-max);
}
.flow-sep { color: var(--accent); font-weight: 600; }

.chip {
  padding: 0.4em 0.95em;
  background: var(--bg-raised);
  border: 1px solid var(--navy-500);
  border-radius: 999px;
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  color: var(--ink);
  white-space: nowrap;
}
.chip--wide { white-space: normal; }

/* skeleton pill — deliberately blank cell in decorative table fragments */
.skel-pill {
  display: inline-block;
  block-size: 0.6em;
  inline-size: 100%;
  max-inline-size: 4.5rem;
  border-radius: 999px;
  background: var(--navy-500);
  opacity: 0.55;
  align-self: center;
}

/* ---------------- S02 — We built the store ---------------- */

.s02-wrap {
  width: 100%;
  max-width: var(--prose-max);
  display: grid;
  gap: 1.25rem;
}
.s02-pull { margin-block: clamp(0.75rem, 2.5svh, 1.75rem); }

/* ---------------- S03 — Three things AlHoot cannot do (pinned) ---------------- */

/* pinned: the whole scene must fit ~100svh, so spacing runs tighter */
#s03 { padding-block: clamp(2.5rem, 6svh, 4rem); }

.s03-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  gap: clamp(1rem, 3svh, 2rem);
}
.s03-head {
  text-align: center;
  max-width: 60rem;
  margin-inline: auto;
}
.s03-head .sec-title { margin-block-end: 0.9rem; }
.s03-intro { color: var(--ink-soft); }

.s03-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.4rem);
  align-items: stretch;
}
.s03-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  background: rgba(47, 41, 75, 0.55);   /* navy-700 glass */
  border: 1px solid rgba(96, 184, 193, 0.16);
  border-radius: var(--radius-lg);
  text-align: start;
}
.s03-card h3 {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.35;
}
.s03-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

.s03-closing {
  max-width: 52ch;
  margin-inline: auto;
  text-align: center;
  color: var(--ink-faint);
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
}

@media (max-width: 820px) {
  .s03-cards { grid-template-columns: 1fr; }
  .s03-card { padding: 1rem 1.1rem; gap: 0.55rem; }
  .s03-card h3 { font-size: 1.05rem; }
  .s03-card p { font-size: 0.9rem; line-height: 1.55; }
  .s03-intro { font-size: 0.95rem; }
}

/* ---------------- S04 — HululOS (the turn) ---------------- */

.s04-watermark {
  position: absolute;
  top: 50%;
  inset-inline-end: -10%;
  translate: 0 -50%;
  width: min(62vw, 46rem);
  height: auto;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
}
.s04-wrap {
  position: relative;
  width: 100%;
  max-width: var(--prose-max);
  display: grid;
  gap: 1.25rem;
}
.s04-lead { color: var(--ink); }
.s04-pull { margin-block: clamp(0.75rem, 2.5svh, 1.5rem); }

/* ---------------- S05 — Your customer, unblocked ---------------- */

.s05-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  gap: clamp(1.5rem, 3.5svh, 2.5rem);
}
.s05-beat {
  display: grid;
  gap: 0.85rem;
  max-width: var(--prose-max);
  color: var(--ink-soft);
}
.s05-claim { color: var(--ink); font-weight: 700; }
.s05-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: none;
}
.s05-chip--rail {
  border-color: var(--accent-bright);
  color: #fff;
  background: rgba(0, 78, 86, 0.45); /* teal-700 glass — the five Iraqi rails stand out */
}
.s05-landmark strong { color: var(--accent-bright); font-weight: 700; }

/* ---------------- S06 — A storefront worthy (brand tide) ---------------- */

.s06-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  gap: clamp(1.25rem, 3svh, 2rem);
}
.s06-pull { margin-block: clamp(0.5rem, 2svh, 1.25rem); }

.s06-marquee {
  display: grid;
  gap: clamp(1.1rem, 2.5svh, 1.75rem);
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.s06-row { overflow: hidden; }
.s06-track {
  display: flex;
  width: max-content;
  animation: s06-tide 55s linear infinite;
}
.s06-row--ebb .s06-track {
  animation-direction: reverse;
  animation-duration: 63s;
}
.s06-marquee:hover .s06-track { animation-play-state: paused; }
.s06-set {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding-inline-end: clamp(2.5rem, 6vw, 4.5rem);
}
.s06-set img {
  height: clamp(1.5rem, 2.4vw, 2.25rem);
  width: auto;
  filter: brightness(0) invert(1); /* monochrome white per design.md §9 */
  opacity: 0.7;
}
@keyframes s06-tide {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .s06-track { animation: none; }
}

.s06-slot { min-height: clamp(12rem, 30svh, 17rem); }

/* ---------------- S07 — Nineteen brands, a real structure ---------------- */

.s07-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  gap: clamp(1.25rem, 3svh, 2rem);
}
.s07-ar {
  /* the centerpiece — generous size, warm sand, never letterspaced (§3/§4) */
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  margin-block: clamp(0.75rem, 3svh, 1.75rem);
}
.s07-path { padding-block: 0.25rem; }

/* ---------------- S08 — Inventory that survives an audit ---------------- */

.s08-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.s08-emph { color: var(--accent-bright); font-weight: 600; }
.s08-side {
  display: grid;
  gap: 1.5rem;
  align-content: center;
}
.s08-ledger {
  display: grid;
  gap: 0.45rem;
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
}
.s08-ledger__row {
  display: grid;
  grid-template-columns: 1.3fr 0.6fr 0.6fr 0.8fr 0.8fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: rgba(47, 41, 75, 0.5);
  border: 1px solid rgba(96, 184, 193, 0.14);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}
.s08-ledger__row--head {
  background: none;
  border-color: transparent;
  color: var(--ink-faint);
  padding-block: 0.15rem;
}
.s08-note {
  padding: 1.2rem 1.4rem;
  border-inline-start: 3px solid var(--accent);
  background: rgba(47, 41, 75, 0.5);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-soft);
}
.s08-note strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .s08-wrap { grid-template-columns: 1fr; }
}

/* ---------------- S09 — Catalogue depth ---------------- */

.s09-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.s09-figures {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2rem);
  margin-block-end: clamp(1rem, 3svh, 1.75rem);
}
.s09-fig { display: grid; justify-items: center; gap: 0.3rem; }
.s09-num {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
}
.s09-fig--wix .s09-num { color: var(--sand-300); }
.s09-fig--os .s09-num { color: var(--accent); } /* large display type — teal ok (§3) */
.s09-fig small { font-size: var(--text-caption); color: var(--ink-faint); }
.s09-arrow { font-size: var(--text-title); color: var(--accent-bright); }

.s09-slot { min-height: clamp(16rem, 42svh, 24rem); }
.s09-dots { display: flex; gap: 0.55rem; margin-block-start: 0.25rem; }
.s09-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(221, 216, 196, 0.5); /* sand-100 ring */
}
.s09-dot--red { background: #8f3a3a; }
.s09-dot--black { background: #0c0b14; }

@media (max-width: 900px) {
  .s09-wrap { grid-template-columns: 1fr; }
  .s09-slot { min-height: 13rem; }
}

/* ---------------- S10 — Delivery and cash ---------------- */

.s10-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.s10-rates {
  display: grid;
  gap: 0.45rem;
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
}
.s10-rates__row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr 0.8fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  background: rgba(47, 41, 75, 0.5);
  border: 1px solid rgba(96, 184, 193, 0.14);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
}
.s10-rates__row--head {
  background: none;
  border-color: transparent;
  color: var(--ink-faint);
  padding-block: 0.15rem;
}
.s10-close {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  color: var(--ink);
  max-width: 40ch;
  margin-block-start: clamp(0.5rem, 2svh, 1.25rem);
}
@media (max-width: 900px) {
  .s10-wrap { grid-template-columns: 1fr; }
}

/* ---------------- S11 — Side by side (pinned) ---------------- */

/* pinned: the whole table + follow-up must fit ~100svh */
#s11 { padding-block: clamp(2rem, 5svh, 4rem); }

.s11-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  gap: clamp(1rem, 2.5svh, 1.75rem);
}
.s11-head .sec-title { margin-block-end: 0; }

.s11-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  line-height: 1.45;
}
.s11-table th,
.s11-table td {
  padding: 0.5em 0.8em;
  border-block-end: 1px solid rgba(190, 186, 210, 0.12);
  text-align: start;
  vertical-align: top;
}
.s11-table thead th {
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  border-block-end-color: rgba(190, 186, 210, 0.28);
}
.s11-table tbody th[scope='row'] {
  font-weight: 400;
  color: var(--ink-soft);
}
.s11-wix { color: var(--sand-300); }
.s11-os { color: var(--ink); white-space: nowrap; }
.s11-os::before {
  /* teal accent mark */
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.75em;
  margin-inline-end: 0.55em;
  border-inline-end: 2px solid var(--accent);
  border-block-end: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-12%);
}
/* the held final row — "Access to your own data" */
.s11-table tbody tr:last-child { background: rgba(0, 157, 172, 0.08); }
.s11-table tbody tr:last-child th,
.s11-table tbody tr:last-child td {
  padding-block: 0.85em;
  border-block-end: none;
}
.s11-table tbody tr:last-child th[scope='row'] { color: var(--ink); font-weight: 600; }
.s11-table tbody tr:last-child .s11-os { color: var(--accent-bright); font-weight: 600; }

.s11-after {
  max-width: var(--prose-max);
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .s11-table { font-size: 0.72rem; line-height: 1.4; }
  .s11-table th, .s11-table td { padding: 0.45em 0.45em; }
  .s11-os { white-space: normal; }
  .s11-after { font-size: 0.85rem; }
}

/* ---------------- S12 — What it costs ---------------- */

.s12-wrap {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  gap: clamp(1.5rem, 3.5svh, 2.25rem);
}
.s12-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.s12-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(47, 41, 75, 0.55);
  border: 1px solid rgba(96, 184, 193, 0.2);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
}
.s12-price {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
}
.s12-num {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
}
.s12-unit {
  display: inline-block;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--accent-bright);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .s12-cards { grid-template-columns: 1fr; }
}

/* ---------------- S13 — What we're not claiming (still) ---------------- */

.s13-wrap {
  width: 100%;
  max-width: var(--prose-max);
  display: grid;
  gap: clamp(1.6rem, 4svh, 2.5rem);
  color: var(--ink-soft);
}
.s13-wrap .sec-title { margin-block-end: 0; }
.s13-intro { color: var(--ink); }
.s13-item strong { color: var(--ink); font-weight: 600; }
.s13-close {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  max-width: 56ch;
}

/* ---------------- S14 — Migration is our problem ---------------- */

.s14-wrap {
  width: 100%;
  max-width: var(--prose-max);
  display: grid;
  gap: 1.25rem;
}
.s14-pull { margin-block: clamp(0.5rem, 2svh, 1.25rem); }
.s14-checklist {
  display: grid;
  gap: 0.7rem;
  color: var(--ink-soft);
  margin-block: 0.25rem;
}
.s14-checklist li {
  position: relative;
  padding-inline-start: 2rem;
}
.s14-checklist li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.4rem;
  top: 0.42em;
  width: 0.42em;
  height: 0.8em;
  border-inline-end: 2px solid var(--accent);
  border-block-end: 2px solid var(--accent);
  transform: rotate(45deg);
}
.s14-timeline {
  padding: 1.1rem 1.4rem;
  background: rgba(47, 41, 75, 0.4);
  border: 1px dashed rgba(96, 184, 193, 0.35);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
}
.s14-timeline strong { color: var(--ink); font-weight: 600; }
.s14-step { white-space: nowrap; }

/* ---------------- S15 — What we're proposing (surfacing) ---------------- */

.s15-wrap {
  width: 100%;
  max-width: var(--prose-max);
  display: grid;
  gap: 1.25rem;
}
.s15-pull {
  color: var(--ink);
  margin-block: clamp(0.75rem, 3svh, 1.75rem);
}

/* ---------------- S16 — FAQ + closing ---------------- */

#s16 { interpolate-size: allow-keywords; }

.s16-glyph {
  position: absolute;
  inset-inline-start: 50%;
  bottom: -5rem;
  translate: -50% 0;
  width: min(70vw, 40rem);
  height: auto;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  animation: s16-sink 36s var(--ease-water) infinite alternate;
}
@keyframes s16-sink {
  from { transform: translateY(-1.5rem); }
  to   { transform: translateY(2.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .s16-glyph { animation: none; }
}

.s16-wrap {
  position: relative;
  width: 100%;
  max-width: var(--prose-max);
  display: grid;
  gap: clamp(1.75rem, 4.5svh, 2.75rem);
}

.s16-faq details {
  border-block-end: 1px solid rgba(190, 186, 210, 0.15);
}
.s16-faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.s16-faq summary::-webkit-details-marker { display: none; }
.s16-faq summary::after {
  content: '+';
  flex: none;
  color: var(--accent-bright);
  font-weight: 500;
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.35s var(--ease-water);
}
.s16-faq details[open] > summary::after { transform: rotate(45deg); }
/* smooth height animation where ::details-content + interpolate-size are
   supported; elsewhere the accordion simply snaps open (still native) */
.s16-faq details::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.5s var(--ease-water), content-visibility 0.5s allow-discrete;
}
.s16-faq details[open]::details-content { block-size: auto; }
.s16-faq details p {
  padding-block-end: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.s16-closing {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-block-start: clamp(1.5rem, 4svh, 2.5rem);
  border-block-start: 1px solid rgba(190, 186, 210, 0.12);
  text-align: center;
}
.s16-note {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
  max-width: 58ch;
}
.s16-wordmark { width: clamp(8.5rem, 16vw, 12rem); opacity: 0.9; }
.s16-lockline { font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.s16-lockline .s16-x { color: var(--accent); }
.s16-tm {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  line-height: var(--lh-caption);
}
