/* ==========================================================================
   About page — ENJAZ
   Loaded only by ar/about.html and en/about.html (after responsive.css).
   Every selector is scoped to .about-* so no other page is affected.
   Direction is handled with logical properties; html[lang] selectors are
   used only where Arabic typography needs its own values.
   ========================================================================== */

/* ---- Local tokens ------------------------------------------------------- */
.about-page {
  --about-value: clamp(2.25rem, 1.1rem + 4vw, 5.75rem);
  --about-dim: #7d868d;               /* derived from charcoal/steel — 3.4:1 on steel-50 (large text) */
  --about-rule: var(--line-light-strong);
}

html[lang="ar"] .about-page {
  --about-value: clamp(2.25rem, 1.1rem + 3.8vw, 5.5rem);
}

/* Shared section label with an expanding hairline */
.about-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-block-end: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.about-kicker b {
  color: var(--green);
  font-family: var(--font-latin);
  font-weight: 700;
}

.about-kicker::after {
  content: "";
  flex: 0 1 6rem;
  block-size: 1px;
  background: currentColor;
  opacity: 0.35;
}

html[lang="ar"] .about-kicker {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9375rem;
}

/* ==========================================================================
   02 — WHO WE ARE: statement + paragraphs, then photograph + focus index
   ========================================================================== */
.about-story {
  position: relative;
  padding-block: var(--section-space);
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.about-story__grid {
  row-gap: var(--space-xl);
}

.about-story__head {
  grid-column: 1 / -1;
}

.about-story__statement {
  grid-column: 1 / -1;
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[lang="ar"] .about-story__statement {
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.about-story__copy {
  grid-column: 1 / -1;
  display: grid;
  gap: 1.25rem;
  align-content: start;
  color: var(--ink-muted);
}

.about-story__copy p:first-child {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink);
}

html[lang="ar"] .about-story__copy p:first-child {
  line-height: 1.85;
}

.about-story__media {
  grid-column: 1 / -1;
  margin: 0;
}

.about-story__focus {
  grid-column: 1 / -1;
  align-self: end;
}

.about-focus__title {
  margin-block-end: 1rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-muted);
}

html[lang="ar"] .about-focus__title {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9375rem;
}

.about-focus {
  border-block-start: 1px solid var(--about-rule);
}

.about-focus li {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--line-light);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
}

.about-focus li span {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.about-focus li::after {
  /* green accent that draws in on hover */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  inline-size: 100%;
  block-size: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: var(--origin-start, left);
  transition: transform 0.7s var(--ease-expo);
}

.about-focus li:hover::after {
  transform: scaleX(1);
}

.about-story__pattern {
  inline-size: clamp(16rem, 30vw, 32rem);
  inset-inline-end: -8%;
  inset-block-start: 4%;
  opacity: 0.05;
}

@media (min-width: 900px) {
  .about-story__head {
    grid-column: 1 / -1;
  }

  .about-story__statement {
    grid-column: 1 / span 7;
  }

  .about-story__copy {
    grid-column: 9 / -1;
    padding-block-start: 0.6rem;
  }

  .about-story__media {
    grid-column: 1 / span 7;
  }

  .about-story__focus {
    grid-column: 9 / -1;
  }
}

/* ==========================================================================
   03 — VISUAL BREAK: full-bleed photograph, pattern, one statement
   ========================================================================== */
.about-visual {
  position: relative;
  display: grid;
  min-block-size: clamp(32rem, 88vh, 58rem);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.about-visual__media {
  position: absolute;
  inset: -6% 0;
  z-index: -3;
}

.about-visual__media picture,
.about-visual__media img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.about-visual__media img {
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.8) contrast(1.05);
}

.about-visual__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(17, 24, 29, 0.92) 0%, rgba(17, 24, 29, 0.35) 55%, rgba(17, 24, 29, 0.55) 100%),
    linear-gradient(calc(90deg * var(--dir)), rgba(17, 24, 29, 0.7) 0%, rgba(17, 24, 29, 0) 65%);
}

.about-visual__pattern {
  z-index: -1;
  inline-size: clamp(22rem, 48vw, 50rem);
  inset-inline-end: -10%;
  inset-block-start: 8%;
  opacity: 0.22;
}

.about-visual__inner {
  align-content: end;
  padding-block: var(--section-space) var(--section-space-sm);
}

.about-visual__quote {
  grid-column: 1 / -1;
  margin: 0;
  padding-inline-start: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  border-inline-start: 3px solid var(--green);
}

.about-visual__quote p {
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

html[lang="ar"] .about-visual__quote p {
  line-height: 1.6;
  letter-spacing: 0;
}

@media (min-width: 900px) {
  .about-visual__quote {
    grid-column: 1 / span 9;
  }
}

/* ==========================================================================
   04 — VISION & MESSAGE: two editorial brand panels, asymmetric rhythm
   Scoped to .about-vision-message / .vm-* only.
   ========================================================================== */
.about-vision-message {
  position: relative;
  padding-block: var(--section-space);
  background: var(--black);
  color: var(--on-dark);
}

html[lang="ar"] .about-vision-message {
  direction: rtl;
  text-align: right;
}

html[lang="en"] .about-vision-message {
  direction: ltr;
  text-align: left;
}

.vm-panels {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
}

.vm-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(2rem, 1rem + 4vw, 5rem) clamp(1.5rem, 0.8rem + 3.5vw, 4.5rem);
  background: var(--charcoal);
  overflow: hidden;
  isolation: isolate;
}

.message-panel {
  background: var(--charcoal-2);
}

/* Message: long vertical green accent on the reading edge, drawn on reveal */
.message-panel::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  inline-size: 3px;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.4s var(--ease-expo) 0.2s;
}

.message-panel.is-visible::before {
  transform: scaleY(1);
}

.vm-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 0.9rem + 1.2vw, 2.25rem);
  min-inline-size: 0;
}

/* Number + label + short green line */
.vm-head {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 0.6rem + 0.8vw, 1.25rem);
}

.vm-number {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
  transition: filter 0.45s var(--ease);
}

.vm-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--steel);
}

html[lang="ar"] .vm-label {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.vm-line {
  flex: none;
  inline-size: 3.5rem;
  block-size: 2px;
  background: var(--green);
  transition: inline-size 0.8s var(--ease-expo);
}

.vm-title {
  font-size: clamp(2.75rem, 1.2rem + 4.6vw, 6.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: var(--white);
}

html[lang="ar"] .vm-title {
  font-size: clamp(2.75rem, 1.2rem + 4.8vw, 6.75rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.vm-copy {
  max-inline-size: 560px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--steel);
}

html[lang="ar"] .vm-copy {
  line-height: 1.95;
}

/* Pattern: large, cropped, on the side opposite the text */
.vm-aside {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.vm-pattern {
  inline-size: clamp(16rem, 34vw, 34rem);
  opacity: 0.12;
  transform: translate3d(0, 1.5rem, 0) rotate(-10deg);
  transition: transform 2.4s var(--ease-expo);
}

.vision-panel .vm-pattern {
  inset-inline-end: -12%;
  inset-block-end: -34%;
}

.message-panel .vm-pattern {
  inset-inline-end: -10%;
  inset-block-start: -34%;
  opacity: 0.1;
}

.vm-panel.is-visible .vm-pattern {
  transform: none;
}

/* Micro detail: the line extends, the number brightens, the pattern drifts */
@media (hover: hover) and (pointer: fine) {
  .vm-panel:hover .vm-line {
    inline-size: 6rem;
  }

  .vm-panel:hover .vm-number {
    filter: brightness(1.2);
  }

  .vm-panel.is-visible:hover .vm-pattern {
    transform: translate3d(calc(-10px * var(--dir)), -8px, 0);
    transition-duration: 1.2s;
  }
}

/* ---- Desktop: editorial two-column composition --------------------------- */
@media (min-width: 1024px) {
  .vm-panel {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 30vw, 480px);
    column-gap: var(--gutter);
    min-block-size: 520px;
  }

  .vm-main {
    grid-column: 1;
  }

  /* Vision: title high, copy beneath */
  .vision-panel .vm-main {
    justify-content: flex-start;
  }

  /* Vision & Message: number → title → copy, and the copy uses the panel's full width */
  .vision-panel,
  .message-panel {
    min-block-size: auto;
  }

  .vision-panel .vm-main,
  .message-panel .vm-main {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Vision & Message copy spans the full width of the panel at every breakpoint
   (the panel's own padding keeps it off the edges) */
.vision-panel .vm-copy,
.message-panel .vm-copy {
  inline-size: 100%;
  max-inline-size: none;
}

html[lang="ar"] .vision-panel .vm-main,
html[lang="ar"] .message-panel .vm-main {
  direction: rtl;
  text-align: right;
}

html[lang="en"] .vision-panel .vm-main,
html[lang="en"] .message-panel .vm-main {
  direction: ltr;
  text-align: left;
}

/* ---- Tablet --------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .vm-pattern {
    inline-size: clamp(16rem, 44vw, 24rem);
    opacity: 0.1;
  }
}

/* ---- Mobile: stacked, generous but tighter ------------------------------- */
@media (max-width: 767px) {
  .vm-pattern {
    inline-size: 16rem;
    opacity: 0.08;
  }

  .vision-panel .vm-pattern {
    inset-inline-end: -22%;
    inset-block-end: -18%;
  }

  .message-panel .vm-pattern {
    inset-inline-end: -22%;
    inset-block-start: -18%;
  }
}

/* ==========================================================================
   05 — VALUES: oversized interactive index + changing photograph
   ========================================================================== */
.about-values {
  position: relative;
  padding-block: var(--section-space);
  background: var(--steel-50);
  color: var(--ink);
  overflow: hidden;
}

.about-values__grid {
  row-gap: var(--space-l);
}

.about-values__aside {
  grid-column: 1 / -1;
}

.about-values__title {
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

html[lang="ar"] .about-values__title {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.about-values__intro {
  margin-block-start: 1.25rem;
  max-inline-size: 30ch;
  color: var(--ink-muted);
}

.about-values__media {
  display: none;
}

.about-values__list {
  grid-column: 1 / -1;
  border-block-start: 1px solid var(--about-rule);
}

.about-value {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  inline-size: 100%;
  padding-block: clamp(0.85rem, 0.5rem + 1vw, 1.5rem);
  border-block-end: 1px solid var(--line-light);
  text-align: start;
  color: var(--ink);
  transition: border-color 0.45s var(--ease), color 0.45s var(--ease);
}

.about-value__num {
  display: inline-grid;
  place-items: center;
  min-inline-size: 2.75rem;
  block-size: 2rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--about-rule);
  font-family: var(--font-latin);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), color 0.45s var(--ease);
}

.about-value__word {
  font-size: var(--about-value);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.045em;
  transition: transform 0.7s var(--ease-expo);
}

html[lang="ar"] .about-value__word {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.about-value__mark {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-expo);
}

.about-value::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  inline-size: 100%;
  block-size: 2px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: var(--origin-start, left);
  transition: transform 0.8s var(--ease-expo);
}

/* Interactive state — desktop with a real pointer only */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .about-values__list.is-interactive .about-value {
    color: var(--about-dim);
  }

  .about-values__list.is-interactive .about-value.is-active {
    color: var(--ink);
    border-block-end-color: var(--about-rule);
  }

  .about-value.is-active .about-value__word {
    transform: translateX(calc(0.5rem * var(--dir)));
  }

  .about-value.is-active .about-value__num {
    background: var(--green);
    border-color: var(--green);
    color: var(--black);
  }

  .about-value.is-active .about-value__mark {
    opacity: 1;
    transform: none;
  }

  .about-value.is-active::after {
    transform: scaleX(1);
  }
}

.about-value:focus-visible {
  outline-offset: -2px;
}

@media (min-width: 1024px) {
  .about-values__aside {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
    align-self: start;
    position: sticky;
    inset-block-start: calc(var(--header-height) + 2rem);
  }

  .about-values__media {
    display: block;
  }

  .about-values__list {
    grid-column: 6 / -1;
  }

  .about-values__stack {
    position: relative;
    aspect-ratio: 4 / 5;
    max-block-size: 52vh;
    overflow: hidden;
    background: var(--steel-100);
  }

  .about-values__stack picture {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.8s var(--ease), transform 1.4s var(--ease-expo);
  }

  .about-values__stack picture.is-active {
    opacity: 1;
    transform: none;
  }

  .about-values__stack img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    filter: saturate(0.8);
  }

  .about-values__stack-label {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    z-index: 2;
    padding: 0.45rem 0.85rem;
    background: var(--green);
    color: var(--black);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  html[lang="ar"] .about-values__stack-label {
    letter-spacing: 0;
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   06 — APPROACH: portrait photograph + three principles from the profile
   ========================================================================== */
.about-approach {
  position: relative;
  padding-block: var(--section-space);
  background: var(--white);
  color: var(--ink);
}

.about-approach__grid {
  row-gap: var(--space-l);
}

.about-approach__media {
  grid-column: 1 / -1;
  margin: 0;
}

.about-approach__body {
  grid-column: 1 / -1;
}

.about-approach__title {
  font-size: var(--fs-h2);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

html[lang="ar"] .about-approach__title {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.about-approach__intro {
  margin-block-start: 1.5rem;
  max-inline-size: 56ch;
  color: var(--ink-muted);
}

.about-principles {
  margin-block-start: var(--space-l);
  border-block-start: 1px solid var(--about-rule);
}

.about-principle {
  display: grid;
  grid-template-columns: clamp(3rem, 2.2rem + 2.5vw, 5rem) 1fr;
  gap: 0.5rem 1.25rem;
  padding-block: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-block-end: 1px solid var(--line-light);
}

.about-principle__num {
  grid-row: 1 / span 2;
  font-family: var(--font-latin);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.25rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--charcoal);
}

.about-principle__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.35;
}

.about-principle__text {
  color: var(--ink-muted);
  max-inline-size: 52ch;
}

@media (min-width: 1024px) {
  .about-approach__media {
    grid-column: 1 / span 5;
    align-self: start;
    position: sticky;
    inset-block-start: calc(var(--header-height) + 2rem);
  }

  .about-approach__body {
    grid-column: 7 / -1;
  }
}


