/* ============================================================
   AZIST — ABOUT US
   ============================================================ */

/* HERO ------------------------------------------------------ */
.about-hero {
  padding-top: calc(var(--nav-height) + clamp(64px, 8vw, 100px));
  padding-bottom: clamp(64px, 8vw, 100px);
  background-color: var(--color-white);
  /* Animated moving gradient — subtle blue / sky / grey */
  background-image:
    radial-gradient(55% 50% at 16% 24%, rgba(65,100,254,0.16), transparent 60%),
    radial-gradient(52% 50% at 84% 76%, rgba(125,196,255,0.16), transparent 60%),
    radial-gradient(48% 46% at 60% 50%, rgba(206,166,252,0.13), transparent 62%);
  background-size: 200% 200%;
  animation: about-hero-drift 18s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}
@keyframes about-hero-drift {
  0%   { background-position: 0% 0%,   100% 100%, 50% 50%; }
  50%  { background-position: 100% 35%, 0% 65%,   40% 60%; }
  100% { background-position: 55% 100%, 35% 0%,   70% 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .about-hero { animation: none; }
}
.about-hero__ghost {
  bottom: -15%;
  right: -4%;
  font-size: clamp(100px, 16vw, 200px);
}
.about-hero__content {
  position: relative;
  z-index: 1;
}
/* Two-column hero: large title left, body text right (mirrors .about-who__grid).
   Stacks to single column at ≤1024px (see RESPONSIVE block). */
.about-hero__grid {
  display: grid;
  grid-template-columns: auto 1fr;   /* title column sized to "About us" (nowrap) → no overflow; body takes the rest */
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}
.about-hero__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(64px, 10.6vw, 136px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--color-near-black);
  margin-bottom: var(--space-8);
  white-space: nowrap;   /* never break "About Us" mid-word, at any breakpoint */
}
/* "Us" in PP Eiko Light Italic, brand blue accent */
.about-hero__em {
  font-family: var(--font-eiko);
  font-weight: 300;
  font-style: italic;
  color: var(--color-blue);
  position: relative;
  top: 0.035em;   /* drop the eiko "Us" onto Urbanist's baseline */
}
.about-hero__title:hover .about-hero__em { color: var(--color-blue); }   /* keep the accent on hover */
/* Per-letter build-in on load + organic hover (no quote mark, no italic) */
.about-hero__title .al {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(6px);
  animation: about-letter-in 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 0.05s + 0.15s);
  transition: transform 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.about-hero__title .al--sp { width: 0.28em; filter: none; animation: none; opacity: 1; }
@keyframes about-letter-in {
  from { opacity: 0; transform: translateY(0.55em); filter: blur(6px); }
  to   { opacity: 1; transform: none;               filter: blur(0); }
}
/* Hover: organic colour shift + subtle staggered wave */
.about-hero__title:hover .al {
  color: var(--color-blue);
  transform: translateY(-0.08em);
  transition-delay: calc(var(--i, 0) * 0.035s);
}
@media (prefers-reduced-motion: reduce) {
  .about-hero__title .al { animation: none; opacity: 1; transform: none; filter: none; }
}
.about-hero__intro {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 20px);   /* reflow to 2 lines, not 3 */
  line-height: 1.5;
  color: var(--color-grey);
  margin-bottom: var(--space-8);
  text-wrap: balance;
  max-width: 680px;
}
.about-hero__intro strong {
  font-weight: 400;
  color: var(--color-near-black);
}
.about-hero__intro--bold { font-weight: 600; }
.about-hero__intro--bold strong { font-weight: 600; }
.about-hero__intro--sub {
  font-size: clamp(13px, 1.1vw, 15px);
  max-width: 460px;
  opacity: 0.65;
  margin-top: var(--space-5);
  margin-bottom: 0;
}

/* WHAT WE DO ----------------------------------------------- */
.about-what {
  padding-block: clamp(80px, 10vw, 130px);
  background-color: var(--color-off-white);
  position: relative;
  overflow: hidden;
}
.about-what__inner {
  max-width: 780px;   /* comfortable reading measure, left-aligned at the container edge */
  position: relative;
  z-index: 1;
}
.about-what__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(52px, 6.8vw, 88px);   /* ~65% of the hero — clear secondary level */
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-blue);
  white-space: nowrap;   /* "What We Do" on a single line */
  margin-bottom: var(--space-6);
}
/* Buttons under "What We Do" — colour change on hover */
.about-what .btn--dark:hover { background-color: var(--color-blue); }
.about-what .btn--outline-dark:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  background-color: rgba(65,100,254,0.06);
}
.about-what__lead {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: clamp(18px, 1.9vw, 20px);
  line-height: 1.5;
  color: var(--color-near-black);
  margin-bottom: var(--space-8);   /* more space before the body copy */
}
.about-what__body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 18px);   /* lighter than the hero intro (secondary level) */
  line-height: 1.8;
  color: var(--color-grey);
  margin-bottom: var(--space-6);
  text-wrap: pretty;   /* no lone "work." widow on the last line (fix 3) */
}
.about-what__body + .about-what__body { margin-top: 0; }
.about-what__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-10);
}

/* SHOWCASE IMAGE BAND (full-width, between hero and "What We Do") -- */
.about-showcase {
  position: relative;
  width: 100%;
  height: 80vh;
  max-height: 80vh;
  overflow: hidden;
  background-color: var(--color-off-white);   /* light letterbox — no black bars */
}
.about-showcase__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;         /* full-bleed — fills the 80vh band edge-to-edge */
  object-position: center;   /* show the centre of the photo */
  display: block;
  opacity: 0.45;             /* faded */
}
.about-showcase__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 18% 28%, rgba(65,100,254,0.55), transparent 60%),
    radial-gradient(55% 75% at 82% 72%, rgba(206,166,252,0.45), transparent 60%),
    radial-gradient(50% 60% at 55% 45%, rgba(125,196,255,0.35), transparent 62%);
  background-size: 200% 200%;
  mix-blend-mode: screen;
  animation: about-showcase-drift 24s ease-in-out infinite alternate;
}
@keyframes about-showcase-drift {
  0%   { background-position: 0% 50%, 100% 50%, 50% 0%; }
  100% { background-position: 100% 50%, 0% 50%, 50% 100%; }
}
.about-showcase__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, var(--color-off-white));
  pointer-events: none;
  z-index: 2;   /* over image + overlay → dissolves into "What We Do" below */
}
@media (prefers-reduced-motion: reduce) {
  .about-showcase__overlay { animation: none; }
}

/* HOW WE WORK ---------------------------------------------- */
.about-how {
  padding-block: clamp(80px, 10vw, 130px);
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.about-how__header {
  max-width: 560px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.about-how__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.15;
  color: var(--color-near-black);
  margin-bottom: var(--space-5);
}
.about-how__sub {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-grey);
}
.about-how__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.about-pillar {
  padding: clamp(28px, 3vw, 40px);
  background-color: var(--color-off-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-xl);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.about-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* Iconos: animación de entrada + hover */
.about-pillar__icon img {
  transition: transform 0.55s var(--ease-out), opacity 0.5s ease;
  transform: translateY(12px);
  opacity: 0;
}
.about-pillar.revealed .about-pillar__icon img {
  transform: translateY(0);
  opacity: 1;
}
.about-pillar:nth-child(1) .about-pillar__icon img { transition-delay: 0.0s; }
.about-pillar:nth-child(2) .about-pillar__icon img { transition-delay: 0.1s; }
.about-pillar:nth-child(3) .about-pillar__icon img { transition-delay: 0.2s; }
.about-pillar:nth-child(4) .about-pillar__icon img { transition-delay: 0.3s; }
.about-pillar:hover .about-pillar__icon img {
  transform: translateY(-5px) scale(1.1);
  opacity: 1;
  transition-delay: 0s;
}
.about-pillar__icon {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: var(--space-5);
}
/* Brand illustration (flat multicolor) inside pillar icon */
.brand-illu {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* Brand-style line-art icons — "draw on reveal" */
.brand-icon__stroke {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.9s var(--ease-out);
}
.brand-icon__dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transform-box: fill-box;
  transition: opacity var(--duration-base) var(--ease-out) 0.7s,
              transform var(--duration-base) var(--ease-out) 0.7s;
}
.about-pillar.revealed .brand-icon__stroke { stroke-dashoffset: 0; }
.about-pillar.revealed .brand-icon__stroke:nth-of-type(2) { transition-delay: 0.12s; }
.about-pillar.revealed .brand-icon__stroke:nth-of-type(3) { transition-delay: 0.24s; }
.about-pillar.revealed .brand-icon__stroke:nth-of-type(4) { transition-delay: 0.36s; }
.about-pillar.revealed .brand-icon__dot {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .brand-icon__stroke {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .brand-icon__dot {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.about-pillar__title {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-near-black);
  margin-bottom: var(--space-3);
}
.about-pillar__body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-grey);
}

/* WHO WE ARE + STORY ---------------------------------------- */
.about-who {
  padding-block: clamp(80px, 10vw, 130px);
  background-color: var(--color-near-black);
  position: relative;
  overflow: hidden;
}
.about-who__ghost {
  top: -10%;
  right: -4%;
  color: rgba(255,255,255,0.03);
  -webkit-text-stroke: none;
  font-size: clamp(100px, 15vw, 200px);
}
.about-who__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 96px);
  position: relative;
  z-index: 1;
}
.about-who__block {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.about-who__block::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-blue);
  transition: width 0.45s var(--ease-out);
}
.about-who__block:hover {
  transform: translateY(-6px);
  border-color: rgba(65,100,254,0.28);
  box-shadow: 0 24px 64px rgba(0,0,0,0.30);
}
.about-who__block:hover::after {
  width: 100%;
}
.about-who__block-label {
  font-family: var(--font-manrope);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.about-who__block-title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}
.about-who__block-body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  text-wrap: pretty;   /* no single-word widows in Who We Are / Our Story */
}
.about-who__block-body + .about-who__block-body {
  margin-top: var(--space-4);
}
.about-who__block-body em {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-style: italic;
  color: var(--color-sky-blue);
}

/* PROCESO --------------------------------------------------- */
.about-process {
  padding-block: clamp(80px, 10vw, 130px);
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.about-process__ghost {
  bottom: -15%;
  left: -3%;
  font-size: clamp(90px, 13vw, 170px);
}
.about-process__header {
  max-width: 560px;
  margin-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  z-index: 1;
}
.about-process__title {
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.1;
  color: var(--color-near-black);
  margin-bottom: var(--space-5);
}
.about-process__sub {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-grey);
  text-wrap: pretty;   /* no lone "time." on the last line */
}
.about-process__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.about-process__timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right,
    var(--color-light-grey) 0%,
    var(--color-blue) 50%,
    var(--color-light-grey) 100%);
  z-index: 0;
}
.about-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--space-3);
  position: relative;
  z-index: 1;
}
.about-step__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-light-grey);
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-family: var(--font-frama);
  font-weight: 200;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-mid-grey);
  flex-shrink: 0;
  transition: border-color var(--duration-base) var(--ease-out),
              background-color var(--duration-base) var(--ease-out);
}
.about-step:nth-child(3) .about-step__dot {
  border-color: var(--color-blue);
  background-color: var(--color-blue);
  color: var(--color-white);
}
.about-step__title {
  font-family: var(--font-manrope);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-near-black);
  margin-bottom: var(--space-2);
}
.about-step__body {
  font-family: var(--font-manrope);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-grey);
}

/* RESPONSIVE ------------------------------------------------ */
@media (max-width: 1024px) {
  .about-hero__grid { grid-template-columns: 1fr; }
  .about-what__grid { grid-template-columns: 1fr; }
  .about-what__title { position: static; }
  .about-how__pillars { grid-template-columns: repeat(2, 1fr); }
  .about-who__grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .about-process__timeline { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .about-process__timeline::before { display: none; }
}
@media (max-width: 600px) {
  .about-how__pillars { grid-template-columns: 1fr; }
  .about-process__timeline { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-step { align-items: flex-start; text-align: left; flex-direction: row; gap: var(--space-4); }
  .about-step__dot { flex-shrink: 0; margin-bottom: 0; }
}
