/* Athar art direction: a generous silhouette, then a single idea per scene. */
.home main {
  overflow: clip;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  line-height: 1.8;
}
html[lang="ar"] .eyebrow {
  letter-spacing: 0;
  font-size: 12px;
}
/* The opening pairs a readable wordmark-sized headline with the eclipse. */
.hero {
  --eclipse-travel: clamp(340px, 72svh, 680px);
  --eclipse-progress: 0;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-sticky {
  position: relative;
  background: radial-gradient(ellipse at 45% 43%, #1c170e40, transparent 68%);
}
.hero.eclipse-active .hero-sticky {
  position: sticky;
  top: var(--eclipse-sticky-top, 82px);
}
.hero.eclipse-active::after {
  display: block;
  height: var(--eclipse-travel);
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 32px;
  min-height: clamp(540px, calc(100svh - 145px), 820px);
  padding-block: 36px 22px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 20px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: #c3baaa;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 13px #e8c87566;
}

.hero h1 {
  font-size: clamp(58px, 6.55vw, 117px);
  line-height: 1.04;
  letter-spacing: -0.069em;
  font-weight: 550;
  margin-bottom: 24px;
}

.hero h1 span,
.story-copy h2 span,
.closing h2 span {
  color: var(--gold);
}

html[lang="ar"] .hero h1 {
  font-size: clamp(63px, 7.4vw, 128px);
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 17px;
}

.hero-description {
  font-size: 16px;
  color: #b0afaa;
  line-height: 1.85;
  margin-bottom: 27px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 25px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 12px;
  font-size: 12px;
}

.text-link span {
  font-size: 17px;
  color: var(--gold);
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 20px;
}

.hero-art {
  width: 100%;
  height: clamp(330px, min(46vw, 100svh - 200px), 660px);
}

.object-stage {
  position: relative;
  isolation: isolate;
}

.scene-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.object-stage.is-live .scene-poster {
  opacity: 0;
  visibility: hidden;
}

.eclipse-sequence {
  display: grid;
  grid-template-columns: auto minmax(40px, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(100%, 440px);
  margin-inline: auto;
  padding: 0 10px;
  color: #aaa496;
  font-size: 10px;
}
.eclipse-meter {
  height: 1px;
  background: #e8c87529;
}
.eclipse-meter span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 7px #e8c87566;
  transform: scaleX(max(0.04, var(--eclipse-progress)));
  transform-origin: left;
}
html[dir="rtl"] .eclipse-meter span {
  transform-origin: right;
}
.eclipse-phase {
  color: #e5cc96;
  min-width: 75px;
  text-align: end;
}
.hero-baseline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  min-height: 64px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.065em;
  color: #a3a29b;
}

.hero-baseline > div {
  display: flex;
  gap: 24px;
}

.hero-baseline > div span + span::before {
  content: "·";
  margin-inline-end: 24px;
  color: var(--gold);
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
}

.scroll-cue > span {
  font-size: 18px;
  color: var(--gold);
}

.edition {
  font-size: 9px;
  letter-spacing: 0.18em;
}

html[lang="ar"] .hero-baseline {
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .hero {
    --eclipse-travel: clamp(275px, 63svh, 475px);
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-block: 34px 0;
  }

  .hero-copy {
    text-align: center;
    padding-block: 12px 0;
  }

  .hero-eyebrow,
  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 540px);
    padding-bottom: 24px;
  }

  .hero-art {
    height: clamp(300px, 55vw, 420px);
  }

  .edition {
    display: none;
  }
}

@media (max-width: 540px) {
  .hero-inner {
    padding-top: 20px;
    gap: 0;
  }

  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 65px);
    margin-bottom: 16px;
  }

  html[lang="ar"] .hero h1 {
    font-size: clamp(49px, 13.2vw, 69px);
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 13px;
    margin-bottom: 17px;
  }

  .hero-actions {
    column-gap: 16px;
  }

  .hero-actions .button {
    font-size: 11px;
    min-height: 44px;
    padding-inline: 14px;
  }

  .text-link {
    gap: 7px;
    font-size: 11px;
  }

  .hero-visual {
    width: calc(100% + 20px);
    padding-bottom: 18px;
  }

  .hero-art {
    height: clamp(254px, 82vw, 390px);
  }

  .hero-baseline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 18px;
    padding-block: 4px;
    font-size: 9px;
  }

  .hero-baseline > div {
    gap: 12px;
  }

  .hero-baseline > div span + span::before {
    margin-inline-end: 12px;
  }
}

@media (max-width: 540px) and (max-height: 720px) {
  .hero-inner {
    min-height: 0;
    padding-block: 13px 0;
  }
  .hero-copy {
    padding-top: 7px;
  }
  .hero-eyebrow {
    margin-bottom: 10px;
  }
  .hero h1,
  html[lang="ar"] .hero h1 {
    font-size: clamp(41px, 11.8vw, 52px);
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
  .hero-art {
    height: clamp(205px, 70vw, 295px);
  }
  .hero-visual {
    padding-bottom: 10px;
  }
  .hero-baseline {
    min-height: 44px;
    padding: 0;
  }
  .hero-baseline > div {
    display: none;
  }
}

@media (min-width: 541px) and (max-width: 900px) and (max-height: 760px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    min-height: 0;
    gap: 16px;
    padding-block: 18px 12px;
  }
  .hero-copy {
    padding: 0;
    text-align: start;
  }
  .hero-eyebrow,
  .hero-actions {
    justify-content: flex-start;
  }
  .hero h1,
  html[lang="ar"] .hero h1 {
    font-size: clamp(37px, 6.55vw, 65px);
    line-height: 1.16;
  }
  .hero-description {
    font-size: 13px;
    margin-bottom: 15px;
  }
  .hero-visual {
    width: 100%;
    padding-bottom: 8px;
  }
  .hero-art {
    height: clamp(195px, calc(100svh - 182px), 405px);
  }
  .hero-baseline {
    min-height: 44px;
  }
}

.intro {
  padding-block: 160px 120px;
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 2;
}
.intro h2 {
  font-size: clamp(32px, 4.1vw, 58px);
  margin-block: 25px;
  line-height: 1.25;
  font-weight: 500;
}
.intro > p:last-of-type {
  max-width: 560px;
  margin-inline: auto;
  font-size: 15px;
}
.intro-line {
  --intro-line-height: 70px;
  position: relative;
  display: block;
  height: var(--intro-line-height);
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
  margin: 60px auto 0;
}
/* The sticky viewport gives the visitor room to see a single visual idea change. */
.story-section {
  position: relative;
  min-height: 120svh;
  border-top: 1px solid var(--line);
}
.story-sticky {
  position: sticky;
  top: 82px;
  min-height: calc(100svh - 82px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 60px;
  position: relative;
  min-height: calc(100svh - 82px);
  padding-block: 80px 35px;
}
.story-copy {
  position: relative;
  z-index: 3;
  padding-bottom: 55px;
}
.chapter-label {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
  color: #b6b2a8;
  margin-bottom: 35px;
}
.chapter-number {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  color: var(--gold);
  direction: ltr;
}
.chapter-rule {
  height: 1px;
  width: 42px;
  background: #e8c8754a;
  margin-inline-start: 8px;
}
.story-copy h2 {
  font-size: clamp(40px, 4.1vw, 64px);
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 26px;
}
.story-copy > p {
  max-width: 405px;
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 35px;
  color: #b1b1ad;
}
html[lang="ar"] .story-copy h2 {
  font-size: clamp(36px, 4.1vw, 61px);
  line-height: 1.5;
  font-weight: 550;
  margin-bottom: 20px;
}
.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}
.plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid #ffffff29;
  border-radius: 50%;
  font-size: 21px;
  font-family: Arial, sans-serif;
  line-height: 1;
  transition:
    background 0.2s,
    transform 0.2s;
}
.feature-link:hover .plus {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
  transform: rotate(90deg);
}
.scene-visual {
  position: relative;
  height: 570px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.scene-visual .object-stage {
  height: 470px;
  width: 115%;
  max-width: 780px;
}
.scene-visual::before {
  content: "";
  position: absolute;
  width: 105%;
  height: 100%;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, #6f562815, transparent 64%);
  pointer-events: none;
}
.scene-caption {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: -15px;
  pointer-events: none;
}
.scene-caption > span {
  font-size: 10px;
  color: #a49e8d;
}
.scene-caption strong {
  font-family: "Plus Jakarta Sans", "Noto Sans Arabic", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.02em;
}
.scene-footnote {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.scene-footnote > span:first-child {
  font-size: 10px;
  color: #c9c5ba;
  flex-shrink: 0;
}
.scene-footnote > span:last-child {
  font-size: 9px;
  color: #959690;
  max-width: 380px;
  text-align: end;
}
.scene-prep .story-copy,
.scene-workout .story-copy {
  grid-column: 2;
  grid-row: 1;
}
.scene-prep .scene-visual,
.scene-workout .scene-visual {
  grid-column: 1;
  grid-row: 1;
}
.scene-prep .story-grid,
.scene-workout .story-grid {
  grid-template-columns: 1.1fr 0.9fr;
}
.scene-cycling {
  background: linear-gradient(180deg, #10110f70, transparent);
}
.scene-cycling .scene-caption strong {
  font-size: 39px;
  color: var(--gold);
}
.scene-nutrition .scene-caption strong {
  font-size: 18px;
}
.scene-nutrition .scene-caption {
  margin-top: 16px;
}
.macro-labels {
  position: absolute;
  bottom: 100px;
  display: flex;
  gap: 22px;
  z-index: 3;
  direction: ltr;
}
.macro {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #bdc0bb;
  font-size: 10px;
}
.macro i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.macro-0 i {
  background: #42c9ff;
}
.macro-1 i {
  background: #86d74c;
}
.macro-2 i {
  background: #a477ff;
}
.scene-progress .scene-caption strong {
  font-size: 23px;
}
.chat-composition {
  position: relative;
  width: 95%;
  max-width: 490px;
  padding: 32px;
  border: 1px solid #ffffff16;
  border-radius: 28px;
  background: linear-gradient(145deg, #1c1e20, #0d0e10 65%);
  box-shadow: 0 30px 90px #0005;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
}
html[dir="rtl"] .chat-composition {
  transform: perspective(1400px) rotateY(6deg) rotateX(3deg);
}
.chat-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  margin-bottom: 40px;
}
.chat-heading img {
  border-radius: 10px;
}
.chat-heading small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.chat-star {
  margin-inline-start: auto;
  color: var(--gold);
  font-size: 22px;
}
.chat-message {
  font-size: 14px;
  padding: 18px 20px;
  line-height: 1.9;
  margin-bottom: 22px;
  border-radius: 18px;
  position: relative;
}
.chat-message.question {
  background: #272a2c;
  color: #edebe4;
  margin-inline-start: 40px;
  border-end-end-radius: 5px;
}
.chat-message.answer {
  margin-inline-end: 18px;
  background: #e8c87509;
  border: 1px solid #e8c87525;
  border-end-start-radius: 5px;
  color: #e1d3ad;
  padding-top: 38px;
}
.chat-spark {
  position: absolute;
  top: 9px;
  inset-inline-start: 18px;
  color: var(--gold);
  font-size: 17px;
}
.chat-topics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.chat-topics span {
  border: 1px solid #ffffff12;
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 8px;
  color: #b3b4b0;
}
.example-label {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 9px;
  color: #959690;
}
.feature-guide {
  padding-block: 140px 130px;
  position: relative;
  z-index: 3;
  background: var(--bg);
}
.feature-guide header {
  max-width: 760px;
  margin-bottom: 65px;
}
.feature-guide h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  margin-block: 18px;
}
.feature-guide header > p:last-child {
  font-size: 14px;
}
.guide-group {
  border-top: 1px solid #ffffff20;
}
.guide-group:last-child {
  border-bottom: 1px solid #ffffff20;
}
.guide-group > summary {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 27px 0;
  font-size: 23px;
  font-weight: 500;
}
.group-index {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  color: var(--gold);
  min-width: 30px;
}
.group-count {
  font-size: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #9b9d99;
  margin-inline-start: auto;
}
.guide-group > summary .plus {
  margin-inline-start: 20px;
}
.guide-group[open] > summary .plus {
  transform: rotate(45deg);
  color: var(--gold);
}
.guide-topics {
  padding: 0 60px 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 55px;
  align-items: start;
}
.guide-topic {
  border-top: 1px solid var(--line);
  min-width: 0;
}
.guide-topic > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  font-size: 12px;
}
.guide-topic > summary > span:last-child {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 18px;
}
.guide-topic[open] > summary > span:last-child {
  transform: rotate(45deg);
}
.guide-answer {
  font-size: 13px;
  padding-bottom: 15px;
}
.guide-answer p {
  line-height: 1.95;
}
.feature-path {
  font-size: 11px;
  color: var(--gold);
  border-inline-start: 1px solid var(--gold-dim);
  padding-inline-start: 14px;
  line-height: 2 !important;
}
.feature-example {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e8c87525;
  margin-top: 18px;
}
.feature-example h3 {
  font-size: 15px;
}
.feature-example p:last-child {
  margin-bottom: 0;
}
.closing {
  text-align: center;
  position: relative;
  z-index: 3;
  padding: 105px 0 120px;
  background: radial-gradient(
    ellipse 45% 60% at 50% 100%,
    #6c542119,
    transparent
  );
}
.closing::before {
  content: "";
  width: 65%;
  height: 1px;
  position: absolute;
  top: 0;
  left: 17.5%;
  background: linear-gradient(90deg, transparent, #e8c87555, transparent);
}
.closing img {
  margin: 0 auto 30px;
  border-radius: 20px;
}
.closing h2 {
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 500;
}
.closing p {
  font-size: 14px;
  margin-bottom: 30px;
}
.closing-platform {
  display: block;
  font-size: 9px;
  margin-top: 22px;
  color: #96958d;
}
.feature-dialog {
  position: fixed;
  border: 1px solid #e8c87533;
  border-radius: 25px;
  background: #151719;
  color: var(--text);
  width: min(600px, calc(100% - 36px));
  max-height: 85svh;
  padding: 32px;
  box-shadow: 0 40px 120px #0008;
  font-family: var(--font);
  overscroll-behavior: contain;
}
.feature-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(8px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 11px;
  margin-bottom: 25px;
}
.dialog-close {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background: #ffffff07;
  border: 1px solid #ffffff22;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}
.feature-dialog h2 {
  font-size: 30px;
}
.feature-dialog [data-dialog-content] {
  font-size: 15px;
}
.feature-dialog [data-dialog-content] p {
  line-height: 2;
}
.feature-dialog .feature-path {
  margin-bottom: 25px;
}
.feature-dialog .feature-example h3 {
  font-size: 18px;
}
.scene-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  contain: strict;
}
.motion-disabled .story-section {
  min-height: 100svh;
}
.motion-disabled .story-sticky {
  position: relative;
}
.motion-disabled .scene-poster {
  opacity: 1 !important;
}
@media (min-width: 1600px) {
  .story-copy h2 {
    font-size: 68px;
  }
  .scene-visual {
    height: 650px;
  }
  .scene-visual .object-stage {
    height: 540px;
  }
}
@media (max-width: 1100px) {
  .story-grid {
    column-gap: 25px;
  }
  .story-copy h2 {
    font-size: 45px;
  }
  html[lang="ar"] .story-copy h2 {
    font-size: 43px;
  }
  .scene-visual {
    height: 500px;
  }
  .scene-visual .object-stage {
    height: 410px;
  }
  .story-copy > p {
    font-size: 14px;
  }
  .chat-composition {
    padding: 24px;
  }
  .macro-labels {
    bottom: 85px;
  }
  .chat-message {
    font-size: 12px;
  }
}
@media (max-width: 760px) {
  .intro {
    padding-block: 90px 75px;
  }
  .intro h2 {
    font-size: 30px;
    margin-block: 20px;
  }
  .intro > p:last-of-type {
    font-size: 12px;
    max-width: 335px;
  }
  .intro-line {
    --intro-line-height: 45px;
    margin-top: 35px;
  }
  .eyebrow {
    font-size: 9px;
  }
  html[lang="ar"] .eyebrow {
    font-size: 10px;
  }
  .story-section {
    min-height: 0;
  }
  .story-sticky {
    position: relative;
    top: auto;
    min-height: 0;
  }
  .story-grid,
  .scene-prep .story-grid,
  .scene-workout .story-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding-block: 55px 25px;
  }
  .story-copy,
  .scene-prep .story-copy,
  .scene-workout .story-copy {
    width: 100%;
    padding: 0;
    max-width: 530px;
  }
  .chapter-label {
    font-size: 10px;
    margin-bottom: 20px;
    gap: 12px;
  }
  .chapter-number {
    font-size: 9px;
  }
  .story-copy h2,
  html[lang="ar"] .story-copy h2 {
    font-size: clamp(31px, 8.5vw, 46px);
    margin-bottom: 18px;
  }
  .story-copy > p {
    font-size: 13px;
    line-height: 2;
    max-width: 100%;
    margin-bottom: 22px;
  }
  .feature-link {
    font-size: 11px;
    gap: 13px;
  }
  .plus {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .scene-visual {
    width: 100%;
    height: 385px;
    margin-top: 15px;
  }
  .scene-visual .object-stage {
    width: 115%;
    height: 330px;
  }
  .scene-caption {
    margin-top: -8px;
    gap: 4px;
  }
  .scene-caption > span {
    font-size: 9px;
  }
  .scene-caption strong {
    font-size: 26px;
  }
  .scene-footnote {
    width: 100%;
    gap: 14px;
    margin-top: 20px;
    padding-top: 17px;
    align-items: flex-start;
  }
  .scene-footnote > span:first-child {
    font-size: 8px;
    max-width: 40%;
    white-space: normal;
    flex-shrink: 1;
  }
  .scene-footnote > span:last-child {
    font-size: 8px;
    max-width: 60%;
  }
  .scene-caption strong {
    font-size: 26px;
  }
  .scene-cycling .scene-caption strong {
    font-size: 30px;
  }
  .scene-nutrition .scene-caption {
    margin-top: 6px;
  }
  .scene-nutrition .scene-caption strong {
    font-size: 15px;
  }
  .macro-labels {
    bottom: 72px;
    font-size: 9px;
    gap: 16px;
  }
  .macro {
    font-size: 9px;
  }
  .chat-composition {
    width: 96%;
    max-width: 430px;
    padding: 25px;
    transform: none !important;
    margin-block: 25px;
  }
  .scene-chat .scene-visual {
    height: auto;
    margin-block: 20px;
  }
  .chat-heading {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .chat-message {
    font-size: 12px;
    padding: 15px 17px;
  }
  .chat-message.answer {
    padding-top: 33px;
  }
  .chat-topics {
    margin-top: 22px;
    gap: 6px;
  }
  .chat-topics span {
    font-size: 8px;
    padding: 4px 10px;
  }
  .feature-guide {
    padding-block: 85px 75px;
  }
  .feature-guide header {
    margin-bottom: 40px;
  }
  .feature-guide h2 {
    font-size: 30px;
    margin-block: 18px;
  }
  .feature-guide header > p:last-child {
    font-size: 12px;
  }
  .guide-group > summary {
    font-size: 18px;
    gap: 15px;
    padding: 22px 0;
  }
  .group-index {
    font-size: 9px;
    min-width: 19px;
  }
  .group-count {
    font-size: 9px;
  }
  .guide-group > summary .plus {
    margin-inline-start: 3px;
  }
  .guide-topics {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 20px 0;
  }
  .guide-topic > summary {
    font-size: 12px;
  }
  .guide-answer {
    font-size: 12px;
  }
  .closing {
    padding: 70px 0 85px;
  }
  .closing h2 {
    font-size: 40px;
  }
  .closing img {
    width: 65px;
    height: 65px;
    border-radius: 16px;
  }
  .closing p {
    font-size: 12px;
    max-width: 310px;
    margin-inline: auto;
  }
  .closing .button {
    font-size: 11px;
  }
  .feature-dialog {
    padding: 24px;
    border-radius: 20px;
    max-height: 85svh;
  }
  .feature-dialog h2 {
    font-size: 25px;
  }
  .feature-dialog [data-dialog-content] {
    font-size: 13px;
  }
  .motion-disabled .story-section {
    min-height: 0;
  }
}
@media (max-height: 740px) and (min-width: 761px) {
  .story-grid {
    padding-top: 35px;
  }
  .scene-visual {
    height: 430px;
  }
  .scene-visual .object-stage {
    height: 355px;
  }
  .story-copy {
    padding-bottom: 20px;
  }
  .chapter-label {
    margin-bottom: 20px;
  }
  .story-copy h2,
  html[lang="ar"] .story-copy h2 {
    font-size: 43px;
  }
  .story-copy > p {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .scene-caption strong {
    font-size: 26px;
  }
  .macro-labels {
    bottom: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-section {
    min-height: 0;
  }
  .story-sticky {
    position: relative;
  }
  .chat-composition {
    transform: none !important;
  }
  .scene-poster {
    opacity: 1 !important;
  }
  .scene-canvas {
    display: none !important;
  }
}
.story-copy > p {
  font-size: 16px;
}
.chapter-label {
  font-size: 12px;
}
.scene-caption > span {
  font-size: 12px;
}
.scene-footnote > span:first-child,
.scene-footnote > span:last-child {
  font-size: 11px;
}
.macro {
  font-size: 11px;
}
.example-label {
  font-size: 11px;
}
.chat-heading small {
  font-size: 11px;
}
.chat-topics span {
  font-size: 10px;
}
@media (max-width: 760px) {
  .story-copy > p {
    font-size: 14px;
  }
  .chapter-label {
    font-size: 11px;
  }
  .scene-caption > span {
    font-size: 11px;
  }
  .scene-footnote > span:first-child,
  .scene-footnote > span:last-child {
    font-size: 10px;
  }
  .chat-topics span {
    font-size: 9px;
  }
}

/* Decorative motion stays in the region the reader can see. */
.intro-line::after {
  position: absolute;
  top: 0;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 11px #e8c87588;
  content: "";
  animation: intro-pulse 3.8s ease-in-out infinite paused;
}
@keyframes intro-pulse {
  0% {
    transform: translateY(0);
    opacity: 0.35;
  }
  70%,
  100% {
    transform: translateY(calc(var(--intro-line-height) - 5px));
    opacity: 0.15;
  }
  30% {
    opacity: 1;
  }
}
.chat-composition {
  animation: chat-breathe 5.2s ease-in-out infinite paused;
}
@keyframes chat-breathe {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}
.chat-star,
.chat-spark {
  animation: gold-glimmer 3.4s ease-in-out infinite paused;
}
.chat-spark {
  animation-delay: -1.6s;
}
.feature-guide .eyebrow::after {
  display: inline-block;
  width: 32px;
  height: 1px;
  margin-inline-start: 14px;
  vertical-align: middle;
  background: var(--gold);
  content: "";
  animation: gold-glimmer 4.6s ease-in-out infinite paused;
}
.closing img {
  animation: chat-breathe 5.6s ease-in-out infinite paused;
}
.closing::before {
  animation: gold-glimmer 4.1s ease-in-out infinite paused;
}
@keyframes gold-glimmer {
  0%,
  100% {
    opacity: 0.46;
  }
  50% {
    opacity: 1;
  }
}
html[data-motion="playing"]:not([data-page-hidden])
  [data-in-view]
  .intro-line::after,
html[data-motion="playing"]:not([data-page-hidden])
  [data-in-view]
  .chat-composition,
html[data-motion="playing"]:not([data-page-hidden]) [data-in-view] .chat-star,
html[data-motion="playing"]:not([data-page-hidden]) [data-in-view] .chat-spark,
html[data-motion="playing"]:not([data-page-hidden])
  .feature-guide[data-in-view]
  .eyebrow::after,
html[data-motion="playing"]:not([data-page-hidden]) .closing[data-in-view] img,
html[data-motion="playing"]:not([data-page-hidden])
  .closing[data-in-view]::before {
  animation-play-state: running;
}
