/* ============================================================
   FableGlade About Page — refreshed multilingual layout
   Uses the existing shared header/footer, .container and theme.
   ============================================================ */

.about-page-view .site-main {
  overflow: visible;
}

.about-page {
  --about-cream: #fff5df;
  --about-gold: #f4bb48;
  --about-mint: #8dddb9;
  --about-deep: #071b2e;
  --about-deeper: #061725;
  --about-panel: #0d263b;
  --about-border: rgba(155, 196, 225, .2);
  --about-copy: rgba(236, 243, 247, .8);

  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
  background: #071827;
  color: var(--forest-heading);
}

.about-page .eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--about-mint);
  font-size: clamp(.72rem, .82vw, .9rem);
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.about-page h1,
.about-page h2,
.about-page h3 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.about-page p {
  overflow-wrap: anywhere;
}

/* HERO ------------------------------------------------------ */

.about-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(70px, 8vw, 108px) 0 clamp(70px, 8vw, 104px);
  background:
    linear-gradient(90deg, rgba(4, 20, 33, .97) 0%, rgba(5, 24, 39, .9) 46%, rgba(5, 24, 39, .5) 100%),
    url("../assets/backgrounds/hero-bg-desktop.png") center / cover no-repeat;
}

.about-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 130px;
  background: linear-gradient(transparent, #071827);
  content: "";
}

.about-hero-glow {
  position: absolute;
  z-index: -1;
  top: 13%;
  right: 6%;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 188, 72, .17), transparent 66%);
  filter: blur(12px);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.about-hero-copy {
  min-width: 0;
  max-width: 720px;
}

.about-hero h1 {
  max-width: 12ch;
  margin: 0 0 24px;
  color: var(--about-cream);
  font-size: clamp(3rem, 5.15vw, 5.3rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.about-hero-copy p {
  max-width: 64ch;
  margin: 0 0 15px;
  color: rgba(255, 245, 223, .8);
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.72;
}

.about-cta {
  min-height: 48px;
  margin-top: 18px;
  padding-inline: 24px;
}

.about-hero-art {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
}

.about-image-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 229, 163, .28);
  background: #0b263b;
  box-shadow: 0 28px 74px rgba(0, 0, 0, .35);
}

.about-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-frame-hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
}

.about-image-frame-hero img {
  object-position: 50% 46%;
}

.about-spark {
  position: absolute;
  color: var(--about-gold);
  text-shadow: 0 0 20px rgba(244, 187, 72, .7);
}

.about-spark-one { top: 6%; right: -3%; font-size: 2rem; }
.about-spark-two { bottom: 13%; left: -5%; font-size: 1.3rem; }

/* SHARED SECTIONS ------------------------------------------- */

.about-section {
  padding: clamp(72px, 8vw, 112px) 0;
}

.about-section-story {
  background:
    radial-gradient(circle at 12% 24%, rgba(66, 139, 125, .1), transparent 25%),
    #071827;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(300px, 470px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(52px, 7vw, 92px);
}

.about-split-media {
  min-width: 0;
}

.about-image-frame-story {
  width: min(100%, 470px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
}

.about-image-frame-story img {
  object-position: 50% 48%;
}

.about-split-copy {
  min-width: 0;
  max-width: 720px;
}

.about-split-copy h2,
.about-section-heading h2,
.about-language-copy h2,
.about-finale h2 {
  margin: 0 0 24px;
  color: var(--about-cream);
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -.02em;
}

.about-split-copy p,
.about-section-heading p,
.about-language-copy p {
  margin: 0 0 16px;
  color: var(--about-copy);
  font-size: clamp(1rem, 1.14vw, 1.14rem);
  line-height: 1.72;
}

/* FEATURES -------------------------------------------------- */

.about-section-features {
  background: linear-gradient(180deg, #071827, #061725);
}

.about-section-heading {
  max-width: 820px;
  margin: 0 auto clamp(36px, 5vw, 58px);
  text-align: center;
}

.about-section-heading h2 {
  margin-inline: auto;
}

.about-section-heading p {
  max-width: 68ch;
  margin-inline: auto;
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-feature-card {
  min-width: 0;
  min-height: 225px;
  padding: 26px 24px;
  border: 1px solid var(--about-border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(19, 48, 71, .95), rgba(10, 33, 51, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), 0 18px 42px rgba(0, 0, 0, .12);
}

.about-feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(244, 187, 72, .34);
  border-radius: 50%;
  background: rgba(244, 187, 72, .1);
  color: #ffd36c;
  font-size: 1.35rem;
}

.about-feature-card h3 {
  margin: 0 0 12px;
  color: var(--about-cream);
  font-size: clamp(1.05rem, 1.22vw, 1.3rem);
  line-height: 1.32;
}

.about-feature-card p {
  margin: 0;
  color: rgba(224, 235, 243, .72);
  font-size: .95rem;
  line-height: 1.65;
}

/* LANGUAGE -------------------------------------------------- */

.about-section-language {
  padding-top: clamp(54px, 6vw, 82px);
  background: #071827;
}

.about-language-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  overflow: hidden;
  border: 1px solid var(--about-border);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(12, 39, 59, .98), rgba(7, 29, 45, .98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, .18);
}

.about-language-copy {
  align-self: center;
  padding: clamp(34px, 5vw, 64px);
}

.about-language-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(244, 187, 72, .34);
  border-radius: 50%;
  color: #ffd36c;
  font-size: 1.4rem;
}

.about-language-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.about-language-pills span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(155, 196, 225, .25);
  border-radius: 999px;
  background: rgba(4, 20, 33, .38);
  color: #d9e6ee;
  font-size: .82rem;
  line-height: 1.2;
}

.about-language-media {
  min-height: 100%;
}

.about-image-frame-language {
  width: 100%;
  height: 100%;
  min-height: 410px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-image-frame-language img {
  object-position: 50% 46%;
}

/* FINALE ---------------------------------------------------- */

.about-finale {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 650px;
  place-items: center;
  overflow: hidden;
  padding: clamp(90px, 11vw, 150px) 0;
  text-align: center;
}

.about-finale-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(4, 20, 33, .68), rgba(4, 20, 33, .91)),
    url("../assets/backgrounds/mystic-forest-mixed-bg.png") center / cover no-repeat;
}

.about-finale::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 38%, rgba(244, 187, 72, .14), transparent 38%);
  content: "";
}

.about-finale-inner {
  max-width: 850px;
}

.about-finale-mark {
  width: 68px;
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3));
}

.about-finale p {
  max-width: 66ch;
  margin: 0 auto 13px;
  color: rgba(255, 245, 223, .8);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.72;
}

.about-finale .about-closing-line {
  margin: 32px auto 8px;
  color: var(--about-cream);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.15rem);
  line-height: 1.38;
}

/* MULTILINGUAL DISPLAY BALANCE ------------------------------ */

html:lang(bn) .about-hero h1,
html:lang(bn-BD) .about-hero h1,
html:lang(hi) .about-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 4.15vw, 4.35rem);
  line-height: 1.13;
  letter-spacing: 0;
}

html:lang(bn) .about-split-copy h2,
html:lang(bn-BD) .about-split-copy h2,
html:lang(hi) .about-split-copy h2,
html:lang(bn) .about-section-heading h2,
html:lang(bn-BD) .about-section-heading h2,
html:lang(hi) .about-section-heading h2,
html:lang(bn) .about-language-copy h2,
html:lang(bn-BD) .about-language-copy h2,
html:lang(hi) .about-language-copy h2,
html:lang(bn) .about-finale h2,
html:lang(bn-BD) .about-finale h2,
html:lang(hi) .about-finale h2 {
  font-size: clamp(2rem, 3.05vw, 3.15rem);
  line-height: 1.17;
  letter-spacing: 0;
}

html:lang(ja) .about-hero h1 {
  font-size: clamp(2.7rem, 4.2vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

html[dir="rtl"] .about-hero-copy,
html[dir="rtl"] .about-split-copy,
html[dir="rtl"] .about-language-copy {
  text-align: start;
}

/* TABLET ---------------------------------------------------- */

@media (max-width: 1050px) {
  .about-hero-grid,
  .about-split,
  .about-language-card {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .about-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  }

  .about-language-copy {
    padding: 36px;
  }
}

@media (max-width: 820px) {
  .about-hero {
    padding-top: 58px;
    background:
      linear-gradient(rgba(4, 20, 33, .9), rgba(5, 24, 39, .76)),
      url("../assets/backgrounds/hero-bg-mobile.png") center / cover no-repeat;
  }

  .about-hero-grid,
  .about-split,
  .about-language-card {
    grid-template-columns: 1fr;
  }

  .about-hero-copy,
  .about-split-copy,
  .about-language-copy {
    max-width: 680px;
  }

  .about-hero-art {
    width: min(82vw, 500px);
    justify-self: center;
    margin-top: 16px;
  }

  .about-split-media {
    display: flex;
    justify-content: center;
  }

  .about-image-frame-story {
    width: min(100%, 560px);
  }

  .about-language-copy {
    padding: 34px;
  }

  .about-image-frame-language {
    min-height: 390px;
  }
}

/* MOBILE ---------------------------------------------------- */

@media (max-width: 600px) {
  .about-hero {
    padding: 42px 0 62px;
  }

  .about-hero h1 {
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(2.45rem, 12vw, 3.4rem);
    line-height: 1.03;
  }

  html:lang(bn) .about-hero h1,
  html:lang(bn-BD) .about-hero h1,
  html:lang(hi) .about-hero h1,
  html:lang(ja) .about-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 2.9rem);
    line-height: 1.14;
  }

  .about-page .eyebrow {
    margin-bottom: 11px;
    font-size: .71rem;
  }

  .about-hero-copy p,
  .about-split-copy p,
  .about-section-heading p,
  .about-language-copy p {
    font-size: 1rem;
    line-height: 1.68;
  }

  .about-section {
    padding: 62px 0;
  }

  .about-split-copy h2,
  .about-section-heading h2,
  .about-language-copy h2,
  .about-finale h2 {
    font-size: clamp(1.95rem, 8.8vw, 2.7rem);
    line-height: 1.1;
  }

  html:lang(bn) .about-split-copy h2,
  html:lang(bn-BD) .about-split-copy h2,
  html:lang(hi) .about-split-copy h2,
  html:lang(bn) .about-section-heading h2,
  html:lang(bn-BD) .about-section-heading h2,
  html:lang(hi) .about-section-heading h2,
  html:lang(bn) .about-language-copy h2,
  html:lang(bn-BD) .about-language-copy h2,
  html:lang(hi) .about-language-copy h2,
  html:lang(bn) .about-finale h2,
  html:lang(bn-BD) .about-finale h2,
  html:lang(hi) .about-finale h2 {
    font-size: clamp(1.85rem, 8.2vw, 2.4rem);
    line-height: 1.18;
  }

  .about-image-frame,
  .about-language-card {
    border-radius: 22px;
  }

  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .about-feature-card {
    min-height: auto;
    padding: 22px;
  }

  .about-language-copy {
    padding: 28px 22px;
  }

  .about-image-frame-language {
    min-height: 330px;
    border-radius: 0;
  }

  .about-finale {
    min-height: 590px;
    padding-block: 82px;
  }
}

@media (max-width: 390px) {
  .about-hero h1 {
    font-size: 2.3rem;
  }

  .about-cta {
    width: 100%;
    justify-content: center;
  }

  .about-language-pills {
    gap: 7px;
  }

  .about-language-pills span {
    padding-inline: 10px;
  }
}

/* SHORT LANDSCAPE ------------------------------------------- */

@media (max-height: 600px) and (orientation: landscape) {
  .about-hero {
    padding-block: 52px;
  }

  .about-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .76fr);
    gap: 38px;
  }

  .about-hero h1 {
    font-size: clamp(2.8rem, 6.7vw, 4.3rem);
  }

  .about-hero-art {
    width: min(36vw, 370px);
    margin: 0;
  }
}

/* REDUCED MOTION -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .about-page *,
  .about-page *::before,
  .about-page *::after {
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   Final shell alignment pass — 2026-08-11
   Match public-page gutters/hero start and prevent mobile x-overflow.
   ============================================================ */
.about-page {
  max-width: 100%;
  overflow-x: hidden;
}
.about-hero {
  overflow: hidden;
}

@media (min-width: 992px) {
  .about-hero {
    min-height: calc(100svh - 76px);
    display: flex;
    align-items: center;
    padding-block: 60px;
  }
}

@media (max-width: 820px) {
  .about-hero {
    padding-top: 45px;
  }
}

@media (max-width: 600px) {
  .about-hero {
    padding: 34px 0 58px;
  }
  .about-hero-grid {
    width: min(100% - 28px, 1180px);
  }
  .about-page .eyebrow {
    margin-bottom: 15px;
  }
  .about-spark-one { right: 0; }
  .about-spark-two { left: 0; }
}

/* ============================================================
   LIGHT THEME ONLY — About page
   Keeps the existing dark theme unchanged.
   ============================================================ */

[data-theme="light"] .about-page {
  --about-cream: #0a2340;
  --about-gold: #e7a92f;
  --about-mint: #177d69;
  --about-deep: #fff8e9;
  --about-deeper: #f8efdd;
  --about-panel: #fffdf8;
  --about-border: rgba(10, 35, 64, .14);
  --about-copy: #43566d;

  background: #fff8e9;
  color: #0a2340;
}

[data-theme="light"] .about-page .eyebrow {
  color: #177d69;
}

[data-theme="light"] .about-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(244, 187, 72, .16), transparent 30%),
    radial-gradient(circle at 14% 76%, rgba(83, 159, 137, .11), transparent 30%),
    linear-gradient(135deg, #fffaf0 0%, #fff6e3 58%, #f8efdb 100%);
}

[data-theme="light"] .about-hero::after {
  background: linear-gradient(transparent, #fff8e9);
}

[data-theme="light"] .about-hero-glow {
  background: radial-gradient(circle, rgba(244, 187, 72, .18), transparent 66%);
}

[data-theme="light"] .about-hero h1,
[data-theme="light"] .about-split-copy h2,
[data-theme="light"] .about-section-heading h2,
[data-theme="light"] .about-language-copy h2,
[data-theme="light"] .about-finale h2,
[data-theme="light"] .about-feature-card h3,
[data-theme="light"] .about-finale .about-closing-line {
  color: #0a2340;
}

[data-theme="light"] .about-hero-copy p,
[data-theme="light"] .about-split-copy p,
[data-theme="light"] .about-section-heading p,
[data-theme="light"] .about-language-copy p,
[data-theme="light"] .about-finale p {
  color: #43566d;
}

[data-theme="light"] .about-image-frame {
  border-color: rgba(10, 35, 64, .14);
  background: #fffdf8;
  box-shadow: 0 24px 60px rgba(87, 67, 34, .16);
}

[data-theme="light"] .about-section-story {
  background:
    radial-gradient(circle at 12% 24%, rgba(66, 139, 125, .08), transparent 26%),
    #fff8e9;
}

[data-theme="light"] .about-section-features {
  background: linear-gradient(180deg, #fff8e9, #f8efdd);
}

[data-theme="light"] .about-feature-card {
  border-color: rgba(10, 35, 64, .12);
  background: linear-gradient(145deg, #fffdf8, #fbf4e7);
  box-shadow: 0 15px 38px rgba(87, 67, 34, .09);
}

[data-theme="light"] .about-feature-icon,
[data-theme="light"] .about-language-mark {
  border-color: rgba(213, 154, 40, .34);
  background: rgba(244, 187, 72, .14);
  color: #b87409;
}

[data-theme="light"] .about-feature-card p {
  color: #53647a;
}

[data-theme="light"] .about-section-language {
  background: #fff8e9;
}

[data-theme="light"] .about-language-card {
  border-color: rgba(10, 35, 64, .12);
  background: linear-gradient(135deg, #fffdf8, #f8efdd);
  box-shadow: 0 22px 54px rgba(87, 67, 34, .11);
}

[data-theme="light"] .about-language-pills span {
  border-color: rgba(10, 35, 64, .14);
  background: #fffaf0;
  color: #233b55;
}

[data-theme="light"] .about-finale {
  background: #f8efdd;
}

[data-theme="light"] .about-finale-art {
  background:
    linear-gradient(rgba(255, 248, 233, .78), rgba(255, 248, 233, .94)),
    url("../assets/backgrounds/mystic-forest-mixed-bg.png") center / cover no-repeat;
}

[data-theme="light"] .about-finale::after {
  background: radial-gradient(circle at 50% 38%, rgba(244, 187, 72, .16), transparent 40%);
}

[data-theme="light"] .about-finale-mark {
  filter: drop-shadow(0 8px 18px rgba(87, 67, 34, .14));
}

@media (max-width: 820px) {
  [data-theme="light"] .about-hero {
    background:
      radial-gradient(circle at 80% 18%, rgba(244, 187, 72, .15), transparent 30%),
      linear-gradient(180deg, #fffaf0, #fff6e3);
  }
}

