/* ==========================================================================
   Milkinmelanin — page-about.css
   Complements (never replaces) the shared system: it only adds the blocks the
   About page needs on top of the existing .about__* / .pagehead / .band kit.
   Every colour is taken from a token in tokens.css.
   ========================================================================== */

/* The About spread is the third .about instance in the site, so it carries a
   modifier: it runs a three-track layout (media / copy / side note) and is a
   little tighter vertically than the homepage band. */
.about--page { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.about--page .about__media { align-self: start; }
.about--page .about__media .frame { height: 100%; }

/* Grid areas are declared once so the side note keeps its own track on wide
   screens and reflows under the copy (or below everything) on narrow ones. */
@media (min-width: 1081px) {
  .about--page .about__grid {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.14fr) minmax(0, 0.76fr);
    align-items: start;
    row-gap: clamp(1.4rem, 3vw, 2.2rem);
    grid-template-areas:
      "media copy aside"
      "media points aside";
  }
  .about--page .about__media { grid-area: media; }
  .about--page .about__copy { grid-area: copy; }
  .about--page .about__aside { grid-area: aside; }
  .about--page .about__points { grid-area: points; }
}

/* Tablet / small desktop: the side note drops under the copy, so the two upper
   columns stay wide enough to keep their measure comfortable. */
@media (min-width: 861px) and (max-width: 1080px) {
  .about--page .about__grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    grid-template-areas:
      "media copy"
      "media points"
      "aside aside";
  }
  .about--page .about__media { grid-area: media; }
  .about--page .about__copy { grid-area: copy; }
  .about--page .about__points { grid-area: points; }
  .about--page .about__aside { grid-area: aside; }
  .about--page .about__aside { max-width: 640px; }
}

/* Media + copy while the aside reflows around them. */
@media (max-width: 1080px) {
  .about--page .about__grid { gap: clamp(1.4rem, 4vw, 2.4rem); }
}

/* Slightly tighter than the shared xl step: the third track steals width that
   the headline would otherwise spend on a fourth line. */
.about--page .about__title { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.75rem); }

/* --- "what you will not find here" note: offset amber plate, no soft card --- */
.about__aside { position: relative; margin-top: clamp(1.2rem, 3vw, 1.8rem); }
.about__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(9px, 9px);
  border: 1px solid var(--amber-500);
  pointer-events: none;
}
.about__fill {
  position: relative;
  padding: clamp(1.1rem, 2.6vw, 1.5rem);
  background: var(--cocoa-900);
  color: var(--text-on-deep);
}
.about__fill-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-300);
}
.about__fill-list { display: grid; gap: 0.55rem; }
.about__fill-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.5;
  color: var(--cream-100);
}
.about__fill-list li::before {
  content: "";
  width: 12px;
  height: 1.5px;
  margin-top: 0.62em;
  background: var(--clay-600);
}
.about__fill-text {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-on-deep);
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--text-on-deep-soft);
}

/* --- head of the dark history band: intro column + numbered facts ---------- */
.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3.6rem);
  align-items: start;
}
.about__facts { display: grid; gap: 1px; background: var(--line-on-deep); border: 1px solid var(--line-on-deep); }
.about__fact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.9rem;
  padding: clamp(0.8rem, 2vw, 1.05rem);
  background: var(--bg-deep);
}
.about__fact-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 0.9rem + 1.6vw, 1.9rem);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--amber-300);
}
.about__fact-text {
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-on-deep-soft);
}

/* Pull quote sitting on the ink-blue field instead of on cream. */
.about__pull {
  color: var(--cream-100);
  border-left-color: var(--amber-500);
}
.about__pull cite { color: var(--text-on-deep-soft); }

/* --- project timeline: year in the margin, a hairline rail on the left ----- */
.timeline {
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line-on-deep);
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(74px, 11vw, 130px) minmax(0, 1fr);
  gap: 0.7rem clamp(1rem, 3vw, 2.4rem);
  padding-block: clamp(1.1rem, 2.8vw, 1.7rem);
  padding-left: clamp(1rem, 2.4vw, 1.7rem);
  border-bottom: 1px solid var(--line-on-deep);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(1.55rem, 3.4vw, 2.2rem);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber-500);
  transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease-out);
}
.timeline__item:hover::before { transform: scale(1.45); background: var(--clay-600); }
.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 0.7rem + 1.7vw, 1.85rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--amber-300);
}
.timeline__label {
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 0.45rem;
}
.timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.timeline__text {
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--text-on-deep-soft);
  max-width: 78ch;
}

/* --- principles: text-led rows, hairline separated, no card grid ---------- */
.principles__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.6rem, 5vw, 4.2rem);
  align-items: start;
}
.principles__media { position: relative; }
.principles__media .frame__media { aspect-ratio: 3 / 4; }
.principles { border-top: 1px solid var(--line-strong); }
.principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(0.9rem, 2.4vw, 1.8rem);
  padding-block: clamp(1rem, 2.6vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.principle__num {
  grid-row: 1 / 3;
  padding-top: 0.2rem;
  font-family: var(--font-ui);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.principle__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.principle__text { font-size: var(--t-sm); line-height: 1.66; color: var(--text-soft); max-width: 68ch; }

/* --- team roles: staggered offset blocks, deliberately uneven -------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.6vw, 1.6rem);
  align-items: start;
}
.team__role {
  padding: clamp(1.1rem, 2.6vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber-500);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.team__role:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.team__role:nth-child(even) { margin-top: clamp(0.5rem, 2.4vw, 2.2rem); }
.team__icon { width: 34px; height: 34px; color: var(--cocoa-600); margin-bottom: 0.9rem; }
.team__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-md);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.team__text { font-size: var(--t-sm); line-height: 1.66; color: var(--text-soft); }
.team__foot {
  margin-top: 1.1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* --- wide, low-aspect slots: workspace shot + the meter tail -------------- */
.about__workspace { margin-top: clamp(1.8rem, 4.5vw, 3rem); }
.about__workspace .frame__media { aspect-ratio: 21 / 9; min-height: 200px; }

.about__meter { margin-top: clamp(1.4rem, 3.4vw, 2.1rem); max-width: 640px; }
.about__meter .meter__bar { min-width: 130px; }

/* --- closing action row on the cream band --------------------------------- */
.about__sign { margin-top: clamp(1.6rem, 4vw, 2.4rem); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }

/* ==========================================================================
   Responsive — nothing may overflow horizontally at any width
   ========================================================================== */
@media (max-width: 1080px) {
  .principles__grid { grid-template-columns: 1fr; }
  .principles__media { max-width: 520px; }
  .principles__media .frame__media { aspect-ratio: 16 / 10; }
  .about__intro { grid-template-columns: 1fr; }
  .about__aside { max-width: 460px; }
}

@media (max-width: 720px) {
  .timeline__item {
    grid-template-columns: 1fr;
    padding-left: clamp(0.9rem, 4vw, 1.2rem);
  }
  .timeline__item::before { top: clamp(1.55rem, 6vw, 1.8rem); }
  .about__workspace .frame__media { aspect-ratio: 16 / 10; }
  .about__aside { max-width: none; }
  .about__sign .link-draw { flex-basis: 100%; }
}

@media (max-width: 480px) {
  .about__meter { flex-wrap: wrap; row-gap: 0.5rem; }
  .about__meter .meter__bar { order: 3; flex-basis: 100%; }
}
