/* ==========================================================================
   GS Graphx — Studio / About Page Styles (EN + AR)
   Editorial Bento Grid, Kinetic Marquee, Global Markets Radar & Process.
   Strict minimum 14px typography throughout.
   ========================================================================== */

:root {
  --green: #b6f419 !important;
  --light-green: #b6f419 !important;
  --orange: #f98421 !important;
  --bg: #121518 !important;
  --grey: #262c32 !important;

  --ab-bg: #121518;
  --ab-surface: #171b20;
  --ab-surface-2: #1c2128;
  --ab-border: rgba(255, 255, 255, 0.09);
  --ab-border-strong: rgba(255, 255, 255, 0.16);
  --ab-text: #f3f5f7;
  --ab-muted: rgba(243, 245, 247, 0.68);
  --ab-faint: rgba(243, 245, 247, 0.46);
  --ab-lime: #b6f419;
  --ab-lime-rgb: 182, 244, 25;
  --ab-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.gs-about-page {
  overflow-y: auto !important;
  overflow-x: clip !important;
  background-color: var(--ab-bg);
  color: var(--ab-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body.gs-about-page,
html[lang="ar"] body.gs-about-page button,
html[lang="ar"] body.gs-about-page input,
html[lang="ar"] body.gs-about-page textarea {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif;
}

html[lang="en"] body.gs-about-page {
  font-family: "IBM Plex Sans", sans-serif;
}

body.gs-about-page.is-modal-open {
  overflow: hidden !important;
}

body.gs-about-page.is-scrolled .gs-site-header.o-header {
  padding-top: clamp(12px, 1.5vw, 18px) !important;
  padding-bottom: clamp(12px, 1.5vw, 18px) !important;
  background: rgba(18, 21, 24, 0.86) !important;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gs-ab-main {
  position: relative;
  flex: 1 0 auto;
  isolation: isolate;
}

.gs-ab-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 58px);
}

/* ==========================================================================
   Editorial Manifesto Hero
   ========================================================================== */
.gs-ab-hero {
  position: relative;
  padding: clamp(138px, 15vw, 192px) clamp(18px, 4vw, 58px) clamp(56px, 6.5vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(58% 54% at 50% 0%, rgba(var(--ab-lime-rgb), 0.14) 0%, rgba(var(--ab-lime-rgb), 0.03) 44%, transparent 78%),
    linear-gradient(180deg, #0d1013 0%, var(--ab-bg) 100%);
}

.gs-ab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(78% 72% at 50% 28%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(78% 72% at 50% 28%, #000 0%, transparent 100%);
}

.gs-ab-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gs-ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(var(--ab-lime-rgb), 0.32);
  background: rgba(var(--ab-lime-rgb), 0.08);
  color: var(--ab-lime);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
}

.gs-ab-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ab-lime);
  box-shadow: 0 0 14px rgba(var(--ab-lime-rgb), 0.95);
}

.gs-ab-hero__title {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 20ch;
}

html[lang="en"] .gs-ab-hero__title {
  font-family: "ZimulaStandard", "IBM Plex Sans", sans-serif;
}

html[lang="ar"] .gs-ab-hero__title {
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.gs-ab-hero__title em {
  font-style: normal;
  color: var(--ab-lime);
}

.gs-ab-hero__lead {
  margin: 24px auto 0;
  max-width: 720px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
  color: var(--ab-muted);
}

/* Metrics Strip */
.gs-ab-metrics {
  margin-top: clamp(38px, 4.5vw, 54px);
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gs-ab-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--ab-border);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.35s var(--ab-ease);
}

.gs-ab-metric:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ab-lime-rgb), 0.42);
}

.gs-ab-metric__val {
  display: block;
  font-family: "IBM Plex Mono", "IBM Plex Sans", sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ab-lime);
  margin-bottom: 8px;
}

.gs-ab-metric__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ab-muted);
}

/* ==========================================================================
   Kinetic Typographic Marquee
   ========================================================================== */
.gs-ab-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--ab-border);
  border-bottom: 1px solid var(--ab-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px 0;
  direction: ltr;
}

.gs-ab-marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: gsAbMarquee 28s linear infinite;
}

.gs-ab-marquee:hover .gs-ab-marquee__track {
  animation-play-state: paused;
}

.gs-ab-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.gs-ab-marquee__star {
  color: var(--ab-lime);
  font-size: 18px;
}

@keyframes gsAbMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .gs-ab-marquee__track { animation: none; }
}

/* ==========================================================================
   Bento Grid — Philosophy, Manifesto, Why Us, Craft & Global Markets
   ========================================================================== */
.gs-ab-section {
  padding-top: clamp(56px, 6.5vw, 96px);
}

.gs-ab-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

.gs-ab-sec-kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--ab-lime);
  margin-bottom: 8px;
}

.gs-ab-sec-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.16;
  font-weight: 700;
  color: #ffffff;
}

html[lang="en"] .gs-ab-sec-title {
  font-family: "ZimulaStandard", "IBM Plex Sans", sans-serif;
}

.gs-ab-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}

.gs-ab-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.4s var(--ab-ease), border-color 0.35s ease, background-color 0.35s ease;
}

.gs-ab-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ab-lime-rgb), 0.38);
  background: var(--ab-surface-2);
}

.gs-ab-card--span-7 { grid-column: span 7; }
.gs-ab-card--span-5 { grid-column: span 5; }
.gs-ab-card--span-4 { grid-column: span 4; }

/* Card 1: Philosophy with subtle ambient geometric glow */
.gs-ab-card--philosophy {
  background:
    radial-gradient(65% 80% at 90% 10%, rgba(var(--ab-lime-rgb), 0.12) 0%, transparent 70%),
    var(--ab-surface);
}

.gs-ab-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(var(--ab-lime-rgb), 0.1);
  border: 1px solid rgba(var(--ab-lime-rgb), 0.28);
  color: var(--ab-lime);
  font-size: 14px;
  font-weight: 600;
}

.gs-ab-card__title {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.24;
  font-weight: 700;
  color: #ffffff;
}

html[lang="en"] .gs-ab-card__title {
  font-family: "ZimulaStandard", "IBM Plex Sans", sans-serif;
}

.gs-ab-card__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ab-muted);
}

/* Card 2: Signature Lime Manifesto Card */
.gs-ab-card--lime {
  background: var(--ab-lime);
  border-color: var(--ab-lime);
  color: #0c0e10;
}

.gs-ab-card--lime:hover {
  background: #c4fb33;
  border-color: #c4fb33;
}

.gs-ab-card--lime .gs-ab-card__tag {
  background: rgba(12, 14, 16, 0.1);
  border-color: rgba(12, 14, 16, 0.2);
  color: #0c0e10;
}

.gs-ab-card--lime .gs-ab-card__title {
  color: #0c0e10;
  font-size: clamp(26px, 2.7vw, 38px);
}

.gs-ab-card--lime .gs-ab-card__text {
  color: rgba(12, 14, 16, 0.78);
  font-weight: 500;
}

.gs-ab-lime-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 13px 22px;
  border-radius: 100px;
  background: #0c0e10;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s var(--ab-ease), box-shadow 0.25s ease;
}

.gs-ab-lime-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

/* Card 3: Why GS Graphx list */
.gs-ab-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gs-ab-why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(243, 245, 247, 0.88);
}

.gs-ab-why-list li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--ab-lime);
}

/* Card 4: Core Crafts pills */
.gs-ab-craft-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gs-ab-craft-pill {
  padding: 9px 15px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.gs-ab-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ab-lime);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.gs-ab-link-inline:hover {
  text-decoration: underline;
}

/* Card 5: Global Markets Pulse Grid */
.gs-ab-markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gs-ab-market {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
}

.gs-ab-market__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ab-lime);
  box-shadow: 0 0 0 4px rgba(var(--ab-lime-rgb), 0.18);
  flex: none;
}

/* ==========================================================================
   4-Step Craft Process
   ========================================================================== */
.gs-ab-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.gs-ab-step {
  position: relative;
  border-radius: 22px;
  padding: clamp(24px, 2.5vw, 30px);
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s var(--ab-ease), border-color 0.3s ease;
}

.gs-ab-step:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ab-lime-rgb), 0.45);
}

.gs-ab-step__num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--ab-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(var(--ab-lime-rgb), 0.1);
  border: 1px solid rgba(var(--ab-lime-rgb), 0.3);
}

.gs-ab-step__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.gs-ab-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ab-muted);
}

/* ==========================================================================
   Closing Studio CTA
   ========================================================================== */
.gs-ab-cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(38px, 5vw, 68px) clamp(24px, 4.5vw, 60px);
  background:
    radial-gradient(55% 95% at 85% 15%, rgba(var(--ab-lime-rgb), 0.16) 0%, transparent 72%),
    #171b20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
}

.gs-ab-cta-copy {
  max-width: 640px;
}

.gs-ab-cta-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.18;
  font-weight: 700;
  color: #ffffff;
}

html[lang="en"] .gs-ab-cta-title {
  font-family: "ZimulaStandard", "IBM Plex Sans", sans-serif;
}

.gs-ab-cta-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ab-muted);
}

.gs-ab-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gs-ab-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.gs-ab-btn-ghost:hover {
  border-color: var(--ab-lime);
  color: var(--ab-lime);
  background: rgba(var(--ab-lime-rgb), 0.08);
}

/* Scroll reveal animation */
.gs-ab-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ab-ease), transform 0.65s var(--ab-ease);
}

.gs-ab-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Enforce >= 14px footer readability */
body.gs-about-page .o-footer {
  margin-top: clamp(64px, 7vw, 96px);
  padding-top: clamp(64px, 7vw, 92px);
}

body.gs-about-page .a-text--xxs,
body.gs-about-page .a-text--s,
body.gs-about-page .gs-footer-contact a,
body.gs-about-page .gs-footer-navigation a {
  font-size: max(14px, 0.92rem) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .gs-ab-card--span-7,
  .gs-ab-card--span-5 {
    grid-column: span 12;
  }

  .gs-ab-card--span-4 {
    grid-column: span 6;
  }

  .gs-ab-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gs-ab-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gs-ab-card--span-4 {
    grid-column: span 12;
  }

  .gs-ab-process-grid,
  .gs-ab-markets {
    grid-template-columns: 1fr;
  }
}
