/* ════════════ About Oman sub page ════════════
   Uses tokens, .nav, .btn, .footer, .eyebrow, .scene__title from style.css.
   Own prefix: .ab-  */

.about-page {
  position: relative;
  overflow-x: hidden;
  background: var(--ink);
  min-height: 100vh;
}
.ab-main { position: relative; z-index: 1; }
.ab-wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* Reveal defaults: JS animates in; if JS/GSAP is absent everything shows. */
.ab-reveal { opacity: 0; }
html.ab-static .ab-reveal { opacity: 1; transform: none; }

/* ── Hero ── */
.ab-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a0705;
}
.ab-hero__media {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 45%;
  transform: scale(1.001);
  will-change: transform;
}
.ab-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 7, 5, .78) 0%, rgba(10, 7, 5, .1) 30%, rgba(10, 7, 5, 0) 50%, rgba(10, 7, 5, .55) 74%, rgba(14, 10, 8, .96) 100%),
    linear-gradient(90deg, rgba(10, 7, 5, .55) 0%, rgba(10, 7, 5, 0) 60%);
  pointer-events: none;
}
.ab-hero__content {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 clamp(3rem, 8vh, 6rem);
}
.ab-hero .eyebrow { margin-bottom: 1.4rem; }
.ab-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.01em;
  max-width: 14ch;
  margin: 0 0 1.6rem;
  color: #fff;
  text-shadow: 0 2px 40px rgba(14, 10, 8, .6);
}
.ab-hero__title .ab-word { display: inline-block; white-space: pre; }
.ab-hero__title .ab-accent { color: var(--gold); }
.ab-hero__sub {
  max-width: 52ch;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 16px rgba(14, 10, 8, .6);
  margin: 0 0 2rem;
}
.ab-hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.ab-hero__hint {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: 1.6rem;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.ab-hero__hint span { display: inline-block; margin-left: .3rem; animation: ab-bob 1.8s ease-in-out infinite; }
@keyframes ab-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Stats band ── */
.ab-stats {
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid rgba(245, 249, 250, .1);
}
.ab-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 900px) { .ab-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.ab-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1;
  color: #fff;
  margin-bottom: .55rem;
  font-variant-numeric: tabular-nums;
}
.ab-stat span {
  display: block;
  font-size: .86rem;
  line-height: 1.5;
  letter-spacing: .03em;
  color: rgba(243, 241, 237, .72);
  max-width: 22ch;
}

/* ── Section scaffolding ── */
.ab-section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.ab-section + .ab-section { border-top: 1px solid rgba(245, 249, 250, .08); }
.ab-section .eyebrow { color: rgba(255, 255, 255, .78); text-shadow: none; }
.ab-section .scene__title { text-shadow: none; margin-bottom: 1.4rem; }
.ab-lead {
  max-width: 56ch;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.65;
  color: rgba(243, 241, 237, .8);
  margin: 0 0 2rem;
}

/* ── Map ── */
.ab-map__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .ab-map__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }
  .ab-map__text { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.ab-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ab-legend button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1rem;
  text-align: left;
  font: inherit;
  font-size: .92rem;
  color: rgba(243, 241, 237, .85);
  background: rgba(243, 236, 221, .04);
  border: 1px solid rgba(243, 236, 221, .12);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.ab-legend button:hover,
.ab-legend button:focus-visible,
.ab-legend button.is-on {
  background: rgba(243, 236, 221, .08);
  border-color: rgba(231, 86, 59, .5);
  transform: translateX(4px);
  outline: none;
}
.ab-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.ab-legend__count { margin-left: auto; font-size: .74rem; letter-spacing: .14em; color: rgba(243, 241, 237, .5); }
.ab-legend__hint { margin: 1rem 0 0; font-size: .78rem; color: rgba(243, 241, 237, .5); }

.ab-map__figure { margin: 0; position: relative; }
.ab-map__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 84vh;
  overflow: visible;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
}
.ab-map__land {
  fill: rgba(243, 241, 237, .05);
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ab-map__fill { fill: rgba(243, 241, 237, .06); opacity: 0; }
.ab-map__sea {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  fill: rgba(243, 241, 237, .42);
}
.ab-map__route { fill: none; stroke: rgba(177, 186, 222, .55); stroke-width: 1.2; stroke-dasharray: 3 5; }
.ab-pin { cursor: default; transition: opacity .35s; transform-box: fill-box; transform-origin: center; }
.ab-pin__halo { fill: rgba(255, 255, 255, .12); }
.ab-pin__dot { stroke: rgba(14, 10, 8, .9); stroke-width: 1.5; }
.ab-pin__pulse { fill: none; stroke-width: 1.2; opacity: 0; }
html:not(.ab-static) .ab-pin--pulse .ab-pin__pulse { animation: ab-pulse 2.6s ease-out infinite; }
@keyframes ab-pulse {
  0% { r: 5; opacity: .8; }
  100% { r: 22; opacity: 0; }
}
.ab-pin__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, .88);
  paint-order: stroke fill;
  stroke: rgba(14, 10, 8, .92);
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.ab-pin[data-groups~="ports"] .ab-pin__dot, .ab-pin[data-groups~="ports"] .ab-pin__pulse { fill: #B1BADE; stroke: #B1BADE; }
.ab-pin[data-groups~="ports"] .ab-pin__dot { stroke: rgba(14, 10, 8, .9); }
.ab-pin[data-groups~="tourism"] .ab-pin__dot { fill: #F79A6A; }
.ab-pin[data-groups~="heritage"] .ab-pin__dot { fill: #F3F1ED; }
.ab-pin[data-groups~="capital"] .ab-pin__dot { fill: #E7563B; }
.ab-map.is-focused .ab-pin { opacity: .18; }
.ab-map.is-focused .ab-pin.is-lit { opacity: 1; }
.ab-map.is-focused .ab-pin.is-lit .ab-pin__halo { fill: rgba(255, 255, 255, .22); }
.ab-map__sea--sm { font-size: 10px; }
/* Phone: the SVG shrinks to about half, so labels and dots scale up and the
   crowded inland cluster keeps its pins but drops its labels. */
@media (max-width: 700px) {
  .ab-pin__label { font-size: 21px; letter-spacing: .08em; stroke-width: 5px; }
  .ab-pin__label--minor { display: none; }
  .ab-pin__dot { r: 8; }
  .ab-pin__halo { r: 16; }
  .ab-pin[data-groups~="capital"] .ab-pin__dot { r: 9; }
  .ab-map__sea { font-size: 19px; letter-spacing: .16em; }
  .ab-map__sea--sm { font-size: 16px; }
  .ab-map__route { stroke-width: 2; stroke-dasharray: 5 7; }
  .ab-map__land { stroke-width: 1.3; }
  .ab-map__svg { max-height: none; }
}
.ab-legend__dot--ports { background: #B1BADE; }
.ab-legend__dot--industry { background: #CCCB2B; }
.ab-legend__dot--tourism { background: #F79A6A; }
.ab-legend__dot--heritage { background: #F3F1ED; }
.ab-legend__dot--capital { background: #E7563B; }

/* ── Pillars ── */
.ab-pillars__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ab-pillar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 3rem;
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  border-top: 1px solid rgba(245, 249, 250, .1);
}
.ab-pillar:last-child { border-bottom: 1px solid rgba(245, 249, 250, .1); }
@media (min-width: 820px) {
  .ab-pillar { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 17rem); align-items: start; }
}
.ab-pillar__index {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.ab-pillar__kicker {
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(243, 241, 237, .55);
  margin: 0 0 .7rem;
}
.ab-pillar__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 .9rem;
}
.ab-pillar__body {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(243, 241, 237, .8);
  max-width: 58ch;
  margin: 0;
}
.ab-pillar__links { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
@media (min-width: 820px) { .ab-pillar__links { padding-top: .35rem; } }
.ab-pillar__links small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 241, 237, .5); }
.ab-pill {
  display: inline-block;
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .04em;
  font-weight: 600;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 249, 250, .85);
  background: rgba(14, 10, 8, .35);
  color: #E7563B;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.ab-pill:hover { background: #E7563B; border-color: #E7563B; color: #12030B; transform: translateY(-2px); }

/* ── Why Oman ── */
.ab-why__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) {
  .ab-why__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .ab-why__text { position: sticky; top: calc(var(--nav-h) + 2rem); }
}
.ab-why__list { list-style: none; margin: 0; padding: 0; }
.ab-why__item {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(245, 249, 250, .1);
}
.ab-why__item:last-child { border-bottom: 1px solid rgba(245, 249, 250, .1); }
.ab-why__word {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  color: #fff;
}
.ab-why__item p { margin: .2rem 0 0; font-size: 1rem; line-height: 1.65; color: rgba(243, 241, 237, .8); }
.ab-why__item p small { display: block; margin-top: .4rem; font-size: .74rem; letter-spacing: .06em; color: rgba(243, 241, 237, .5); }
@media (max-width: 520px) { .ab-why__item { grid-template-columns: 1fr; gap: .4rem; } }

/* ── Closing band ── */
.ab-close { padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(5rem, 10vw, 8rem); }
.ab-close__card {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}
.ab-close__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(52% 70% at 88% 0%, rgba(231, 86, 59, .22), transparent 70%),
    radial-gradient(40% 60% at 10% 110%, rgba(72, 76, 147, .22), transparent 70%);
  pointer-events: none;
}
.ab-close__inner { position: relative; max-width: 62ch; }
.ab-close__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1.2rem;
}
.ab-close__copy { font-size: 1.05rem; line-height: 1.65; color: rgba(243, 241, 237, .82); margin: 0 0 2rem; }
.ab-close__ctas { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.ab-sources {
  margin: 2.2rem 0 0;
  font-size: .76rem;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(243, 241, 237, .48);
}
.ab-sources a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ab-sources a:hover { color: #E7563B; }

@media (prefers-reduced-motion: reduce) {
  .ab-reveal { opacity: 1 !important; transform: none !important; }
  .ab-hero__hint span { animation: none; }
  .ab-pin__pulse { animation: none !important; }
}
