/* ==========================================================================
   Alpha Media — "داستان ما" page
   Extends styles.css; reuses the same tokens, adds only page-specific parts.
   ========================================================================== */

/* ==========================================================================
   Page hero
   ========================================================================== */
.phero {
  position: relative;
  /* The hero plate is 16:9. Tracking that ratio (capped, so the hero never
     eats the whole viewport) means `cover` crops almost nothing and the
     full studio shot reads — desks, growth line and logo wall together. */
  min-height: clamp(460px, 52vw, 800px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--purple-950);
  padding-block: calc(var(--header-h) + var(--s-16)) var(--s-16);
}
.phero__bg { position: absolute; inset: 0; z-index: 0; }
.phero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Keeps the consoles and the growth line in frame; the gold logo wall
     sits on the right, under the heaviest part of the scrim. */
  object-position: center;
  opacity: 1;
}
.phero__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* Lighter than the other page heroes: the artwork is already dark, so the
     scrim only has to buy contrast for the copy sitting bottom-right. */
  background:
    linear-gradient(270deg, rgba(21,5,32,.82) 0%, rgba(21,5,32,.42) 42%, rgba(21,5,32,.06) 100%),
    linear-gradient(0deg, rgba(21,5,32,.88) 0%, rgba(21,5,32,.20) 38%, transparent 62%);
}
.phero__inner { position: relative; z-index: 3; }

.crumbs {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: .8rem;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--s-4);
}
.crumbs a { transition: color var(--t-fast); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--purple-100); }

.phero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--accent-strong);
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
  margin-bottom: var(--s-3);
}
.phero__sub {
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: var(--text-on-dark);
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}

/* ==========================================================================
   Opening lede
   ========================================================================== */
.lede {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.lede__year {
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--purple-500);
  padding: 5px 18px;
  border: 1px solid rgba(107,47,143,.3);
  border-radius: var(--r-full);
  margin-bottom: var(--s-6);
}
.lede__text {
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
  line-height: 2.1;
  color: var(--text-on-light);
  font-weight: 500;
}
.lede__text strong { color: var(--purple-500); font-weight: 800; }
.lede__note {
  margin-top: var(--s-6);
  font-size: .92rem;
  color: var(--text-on-light-muted);
}

/* ==========================================================================
   Two pillars
   ========================================================================== */
.pillars { background: var(--purple-850); }

.pillars__lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-100);
  margin-bottom: var(--s-8);
  padding-inline-start: var(--s-5);
  border-inline-start: 2px solid var(--accent);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
.pillar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--purple-800), var(--purple-750));
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(240,180,41,.35);
}
.pillar__media { aspect-ratio: 4/3; overflow: hidden; background: var(--purple-700); }
.pillar__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform var(--t-slow);
}
.pillar:hover .pillar__media img { transform: scale(1.05); }

.pillar__body { padding: var(--s-6); position: relative; }
.pillar__no {
  position: absolute;
  inset-block-start: calc(-1 * var(--s-8));
  inset-inline-end: var(--s-6);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 4px 18px rgba(0,0,0,.6);
}
.pillar__title {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.pillar__body p { font-size: .92rem; line-height: 2.1; color: var(--text-on-dark-muted); }
.pillar__body strong { color: var(--text-on-dark); font-weight: 700; }

/* --- pull quote --- */
.pullquote {
  margin: var(--s-12) auto 0;
  max-width: 720px;
  text-align: center;
  position: relative;
  padding-block: var(--s-6);
}
.pullquote::before,
.pullquote::after {
  content: '';
  position: absolute;
  inset-inline: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-500), transparent);
}
.pullquote::before { inset-block-start: 0; }
.pullquote::after  { inset-block-end: 0; }
.pullquote p {
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  line-height: 2;
  color: var(--purple-100);
  font-weight: 500;
  font-style: italic;
}

/* ==========================================================================
   Split section (academy)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
.split__text p {
  font-size: .96rem;
  line-height: 2.2;
  color: var(--text-on-light);
  margin-bottom: var(--s-4);
}
.split__text strong { color: var(--purple-500); font-weight: 700; }
.split__emph {
  font-size: 1.15rem !important;
  font-weight: 800;
  color: var(--purple-500) !important;
  padding-inline-start: var(--s-4);
  border-inline-start: 3px solid var(--accent);
}
.split__text .btn { margin-top: var(--s-3); }

/* two landscape studio shots, offset so they overlap slightly */
.split__media {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
.split__media img {
  width: 100%;
  border-radius: var(--r-md);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--sh-md);
}
.split__media img:first-child  { width: 88%; justify-self: start; }
.split__media img:last-child   { width: 88%; justify-self: end; margin-block-start: calc(-1 * var(--s-10)); }

/* ==========================================================================
   Reach (today)
   ========================================================================== */
.reach { background: var(--purple-900); }
.reach__lead {
  max-width: 760px;
  font-size: 1rem;
  line-height: 2.2;
  color: var(--text-on-dark);
  margin-bottom: var(--s-10);
}
.reach__grid {
  display: grid;
  /* Two channels since رسانه ملی came out; auto-fit keeps them centred
     rather than leaving an empty third column. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  justify-content: center;
  gap: var(--s-5);
  margin-bottom: var(--s-10);
}
.reach__item {
  background: rgba(21,5,32,.45);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: var(--s-6);
  transition: border-color var(--t), transform var(--t);
}
.reach__item:hover { border-color: rgba(240,180,41,.4); transform: translateY(-4px); }
.reach__ico {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: var(--purple-950);
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: var(--s-4);
}
.reach__item h3 { font-size: 1.02rem; color: var(--white); margin-bottom: var(--s-2); }
.reach__item p { font-size: .84rem; color: var(--text-on-dark-muted); }

.reach__shot {
  margin: 0 0 var(--s-10);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--border-dark);
}
.reach__shot img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

.reach__foot {
  max-width: 760px;
  font-size: .95rem;
  line-height: 2.2;
  color: var(--purple-100);
  padding-inline-start: var(--s-5);
  border-inline-start: 2px solid var(--accent);
}

/* ==========================================================================
   DNA — legacy + youth
   ========================================================================== */
.dna__lead {
  text-align: center;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--purple-500);
  margin-bottom: var(--s-10);
}

/* overlapping portrait row */
/* The faces band lives in styles.css so index.html can use it too.
   This page just asks for the smaller circles. */
.dna .faces { --face-size: 64px; }

.dna__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  max-width: 860px;
  margin-inline: auto;
}
.dna__card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: var(--s-6);
  text-align: center;
  box-shadow: 0 4px 18px rgba(74,20,110,.08);
  transition: transform var(--t), box-shadow var(--t);
}
.dna__card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(74,20,110,.16); }
.dna__card-pre {
  display: block;
  font-size: .76rem;
  color: var(--text-on-light-muted);
  margin-bottom: var(--s-2);
}
.dna__card h3 {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--purple-500);
  font-weight: 700;
}

/* ==========================================================================
   Closing statement
   ========================================================================== */
.closing {
  position: relative;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(107,47,143,.5), transparent 65%),
    var(--purple-950);
  padding-block: var(--s-24);
  text-align: center;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.closing__inner { position: relative; z-index: 2; }
.closing__pre {
  font-size: .95rem;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--s-5);
}
.closing__word {
  font-size: clamp(2rem, 6vw, 3.75rem);
  letter-spacing: .02em;
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400) 45%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--s-5);
}
.closing__post {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--purple-100);
  margin-bottom: var(--s-10);
}
.closing__cta { display: flex; justify-content: center; gap: var(--s-4); flex-wrap: wrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: var(--s-8); }
  .split__media { max-width: 520px; }
  .reach__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
}

@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar__no { inset-block-start: calc(-1 * var(--s-6)); font-size: 2rem; }
}

@media (max-width: 768px) {
  /* Portrait viewports can't show a 16:9 plate at full width without a
     very tall hero, so pan to the console bay instead of centring. */
  .phero { min-height: clamp(340px, 68vw, 460px); padding-block: calc(var(--header-h) + var(--s-10)) var(--s-12); }
  .phero__bg img { object-position: 62% 55%; }

  .reach__grid { grid-template-columns: 1fr; }
  .dna__grid { grid-template-columns: 1fr; }

  .pullquote::before, .pullquote::after { inset-inline: 10%; }
  .closing { padding-block: var(--s-16); }
  .closing__cta { flex-direction: column; align-items: stretch; padding-inline: var(--s-6); }
}

@media (max-width: 480px) {
  .split__media img:first-child,
  .split__media img:last-child { width: 100%; margin-block-start: 0; justify-self: stretch; }
  .reach__shot img { aspect-ratio: 16/9; }
  .lede__text { font-size: 1rem; }
}

/* brand line under the page title */
.phero__note {
  margin-top: var(--s-3);
  font-size: .88rem;
  color: var(--text-on-dark-muted);
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
}

/* ==========================================================================
   Creed, inline variant
   On the homepage the creed is its own dark band. Here it lives inside the
   opening light section — it reads as a continuation of the founding belief,
   and the page keeps its strict light / dark alternation.
   ========================================================================== */
.creed--inline {
  background: none;
  padding-block: var(--s-12) 0;
  margin-top: var(--s-10);
  border-top: 1px solid var(--border-light);
}
.creed--inline::before,
.creed--inline::after { display: none; }
.creed--inline .creed__lead {
  color: var(--text-on-light);
  text-shadow: none;
  margin-bottom: 0;
}
.creed--inline .creed__lead em { color: var(--purple-500); }
.creed--inline .creed__card {
  background: var(--white);
  border-color: var(--border-light);
  box-shadow: 0 4px 18px rgba(74, 20, 110, .07);
}
.creed--inline .creed__card:hover {
  background: var(--white);
  border-color: rgba(107, 47, 143, .35);
  box-shadow: 0 12px 32px rgba(74, 20, 110, .15);
}
.creed--inline .creed__no { color: var(--purple-500); }
.creed--inline .creed__card p { color: var(--text-on-light); }
