/* ==========================================================================
   About — /about
   Paper artboard "19 About" (2GI-0). Everything shared comes from site.css;
   this file holds only what is particular to this page. Tokens only, logical
   properties only, every rule under .page-about.
   ========================================================================== */

/* ---- 01 Editorial hero (3I7-0) ---- */

/* Paper: the breadcrumbs sit 96px under the header (the shared hero has 48).
   The section clips the oversized mark; isolation keeps the mark above the ground and under the copy. */
.page-about .about-hero {
  padding-block-start: calc(var(--header-offset) + clamp(3rem, 6.6667vw, 6rem));
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

.page-about .about-hero__inner { position: relative; }

/* The Monaro mark, enormous and faint (3I8-0): 1240 × 755 at 520 / 170 on the 1440 frame, 7% white.
   Sized and placed against the container so it keeps its relation to the headline at every width.
   The position follows the reading direction; the mark itself is never mirrored. */
.page-about .about-hero .about-hero__mark {
  position: absolute;
  z-index: -1;
  inset-block-start: -1.375rem;            /* 22px above the breadcrumbs */
  inset-inline-start: 34.375%;             /* 440 of 1280 */
  inline-size: 96.875%;                    /* 1240 of 1280 */
  max-inline-size: none;
  block-size: auto;
  aspect-ratio: 294 / 179;
  color: var(--color-on-dark);
  opacity: 0.07;
  pointer-events: none;
}

/* Breadcrumbs 72 above the headline, 72 under it, 128 under the lead row. */
.page-about .about-hero .hero__copy {
  --hero-top: clamp(2.5rem, 5vw, 4.5rem);
  --hero-gap: clamp(2.5rem, 5vw, 4.5rem);
  --hero-bottom: clamp(3.5rem, 8.8889vw, 8rem);
}

/* The oversized headline: 148 / 140 at 1440, -4%. It scales with the viewport, so the first sentence
   keeps to one line down to phone widths and nothing can overflow; it stops growing at 1440. */
.page-about .about-hero__title {
  font-size: clamp(2.25rem, 10.2778vw, 9.25rem);
  line-height: calc(140 / 148);
  letter-spacing: var(--tracking-tight);
}

/* Arabic needs its taller line (the letter-spacing token is already zero). */
.page-about:lang(ar) .about-hero__title { line-height: var(--lh-display); }

/* The label is centred on the first line of the lead (Paper: a 32px label box). */
.page-about .about-hero__label { min-block-size: calc(var(--fs-lead) * var(--lh-lead)); }

/* Paper sets this lead at full white (the shared dark hero softens it to 80%). */
.page-about .about-hero .lead { color: var(--c-text); }

/* The brand rule starts 120px from the page edge here: 40px inside the content edge. */
.page-about .about-hero .rule--brand { --brand-rule-inset: var(--space-10); }

/* Company facts strip (3JM-0): four 302px columns, 40 above, 56 below. */
.page-about .about-facts {
  --grid-row-gap: var(--space-8);
  padding-block: var(--space-10) var(--space-14);
}

.page-about .about-facts dt {
  margin-block-end: var(--space-3);
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--c-muted);
}

.page-about .about-facts dd {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
  color: var(--c-text);
}

/* The address is a link, drawn as Paper's plain value; the underline appears on hover and focus. */
.page-about .about-facts__link {
  position: relative;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard);
}

/* 44px touch target without changing the 27px line */
.page-about .about-facts__link::after {
  content: "";
  position: absolute;
  inset: -0.5625rem 0;
}

.page-about .about-facts__link:focus-visible { text-decoration-color: currentColor; }

@media (hover: hover) {
  .page-about .about-facts__link:hover { text-decoration-color: currentColor; }
}

/* ---- 02 Who we are (3ZQ-0) ---- */

/* Brand atmosphere, as drawn: a teal glow in the top end corner and the faint crest in the lower left.
   Crest: 560px wide at "-70px 1010px" in the 1431px-tall section. The file is 834 × 823, so 553px tall
   at that width: bottom offset = 1431 − (1010 + 553) = −132.
   Physical sides for the crest on purpose: the profile artwork is not mirrored. The glow is: its
   corner follows the reading direction through --about-glow-x. */
.page-about .about-who {
  --about-glow-x: 100%;
  background-image:
    radial-gradient(ellipse 40% 30% at var(--about-glow-x) 0%, rgb(8 127 131 / 0.07) 0%, rgb(8 127 131 / 0) 70%),
    url("/assets/images/brand/waveform-crest-faint.webp");
  background-size: 100% 100%, 560px auto;
  background-position: 50% 50%, left -70px bottom -132px;
  background-repeat: no-repeat;
}

/* Right to left: the glow moves to the other top corner. The crest is left out: the artwork cannot be
   mirrored, and on its own side it would now lie behind the photograph instead of in an empty corner. */
[dir="rtl"] .page-about .about-who {
  --about-glow-x: 0%;
  background-image: radial-gradient(ellipse 40% 30% at var(--about-glow-x) 0%, rgb(8 127 131 / 0.07) 0%, rgb(8 127 131 / 0) 70%);
  background-size: 100% 100%;
  background-position: 50% 50%;
}

/* Statement: label, 48, headline (this one is set at -4.5%). */
.page-about .about-who__statement {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
}

.page-about .about-who__statement .h2 { letter-spacing: var(--tracking-display); }

/* Copy: starts on the headline's first line (16 label + 48), 28 between the two paragraphs. */
.page-about .about-who__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding-block-start: var(--space-16);
}

/* Two cities (43D-0): 136 under the statement. */
.page-about .about-cities { margin-block-start: clamp(4rem, 9.4444vw, 8.5rem); }

/* The pairing: 152 / 150 at 1440, the two names at the ends of the row and the grey ampersand between them.
   The size follows the viewport, so the three pieces always fit on one row. */
.page-about .about-cities__pair {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block-end: var(--space-10);
  border-block-end: 1px solid var(--c-rule);
  font-size: min(10.5556vw, 9.5rem);
  line-height: calc(150 / 152);
  letter-spacing: var(--tracking-tight);
  color: var(--c-heading);
  white-space: nowrap;
}

.page-about .about-cities__amp { color: var(--c-muted); }

/* Arabic: the two names are longer, so the row is set at 124px to keep the same open spacing,
   on a taller line for the marks above and below the letters. */
.page-about:lang(ar) .about-cities__pair {
  font-size: min(8.6111vw, 7.75rem);
  line-height: 1.2;
}

.page-about .about-cities__context { margin-block-start: var(--space-14); }

.page-about .about-cities__caption {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Tags laid over a picture (Paper: 6 / 12 / 7 padding, 20px from the frame's edges). */
.page-about .about-media-tag {
  position: absolute;
  padding: 6px 12px 7px;
}

.page-about .about-media-tag--place {
  inset-block-end: var(--space-5);
  inset-inline-start: var(--space-5);
}

.page-about .about-media-tag--corner {
  inset-block-start: var(--space-5);
  inset-inline-end: var(--space-5);
}

/* ---- 03 Why design and redesign (4LM-0) ---- */

/* The intro under this headline is full-strength text, 32 under the title, six columns wide. */
.page-about .about-services .section-header__intro {
  max-inline-size: 39.25rem;
  margin-block-start: var(--space-8);
  color: var(--c-text);
}

/* 104 between the header and the two panels. */
.page-about .about-services__grid { margin-block-start: clamp(3rem, 7.2222vw, 6.5rem); }

/* A panel: ink hairline, 32 above the label, then 160 / 40 / 40 between its four parts. */
.page-about .about-service {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-10);
  padding-block-start: var(--space-8);
  border-block-start: 1px solid var(--c-rule-strong);
}

.page-about .about-service > * { position: relative; }

/* Ghost numeral: 260 / 260 in the panel's top end corner, behind the copy. */
.page-about .about-service .about-service__ghost {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  font-size: clamp(8rem, 18.0556vw, 16.25rem);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ghost);
  pointer-events: none;
  user-select: none;
}

/* 88 / 90 at 1440, -4%. The size follows the viewport between 1024 and 1440 so that
   "The next chapter" stays on one line inside its six columns, as drawn. */
.page-about .about-service__title {
  margin-block-start: clamp(3rem, 8.3333vw, 7.5rem);
  font-size: clamp(2.5rem, 6.1111vw, 5.5rem);
  letter-spacing: var(--tracking-tight);
}

.page-about .about-service__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-inline-size: 32.4375rem;             /* 519 */
}

/* ---- 04 Design philosophy (5AT-0) ---- */

/* The label is centred on the first line of the lead (Paper: a 32px label box). */
.page-about .about-philosophy__label { min-block-size: calc(var(--fs-lead) * var(--lh-lead)); }

/* Five rows under hairlines: numeral (3 columns), title (6), one line of copy (3). 96 under the lead. */
.page-about .about-principles {
  margin-block-start: clamp(3.5rem, 6.6667vw, 6rem);
  border-block-end: 1px solid var(--c-rule);
}

.page-about .about-principle {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: start;
  padding-block: var(--space-12) var(--space-14);
  border-block-start: 1px solid var(--c-rule);
}

/* The numeral sits on the first line of the title (2px low, as drawn). */
.page-about .about-principle__num {
  grid-column: 1 / span 3;
  padding-block-start: 0.125rem;
  font-size: var(--fs-lead);
  line-height: calc(var(--fs-h2) * var(--lh-h2));
  letter-spacing: var(--tracking-tight);
  color: var(--c-marker);
}

.page-about .about-principle__title { grid-column: 4 / span 6; }

.page-about .about-principle__text {
  grid-column: 10 / span 3;
  padding-block-start: 1.125rem;
}

/* ---- 05 Who we design for (65B-0) ---- */

/* 104 between the header, the people and the sectors. */
.page-about .about-audience__group { margin-block-start: clamp(3rem, 7.2222vw, 6.5rem); }

.page-about .about-group-label {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-inline-end: var(--space-10);
}

/* Audience grid: three columns, 48 between the rows; each item is an icon over a title, under a hairline. */
.page-about .about-people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12) var(--grid-gap);
}

.page-about .about-people__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--c-rule);
  color: var(--c-ink);
}

/* Sector index: six rows under hairlines, 27 / 29, numeral in a 60px column, the arrow at the end. */
.page-about .about-sectors { border-block-end: 1px solid var(--c-rule); }

.page-about .about-sector {
  display: flex;
  align-items: center;
  gap: var(--grid-gap);
  padding-block: 1.6875rem 1.8125rem;
  border-block-start: 1px solid var(--c-rule);
  color: var(--c-ink);
}

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

.page-about .about-sector__num {
  flex: none;
  inline-size: 3.75rem;
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  color: var(--c-muted);
}

.page-about .about-sector__name {
  flex: 1 1 0;
  min-inline-size: 0;
}

.page-about .about-sector .icon { transition: translate var(--dur-base) var(--ease-out); }

@media (hover: hover) {
  .page-about .about-sector:hover .icon { translate: calc(4px * var(--dir)) 0; }
}

/* ---- 06 How we collaborate (6S2-0) ---- */

/* 96 under the header. Four columns under ink hairlines. */
.page-about .about-commitments { margin-block-start: clamp(3rem, 6.6667vw, 6rem); }

.page-about .about-commitment {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-block-start: var(--space-6);
  padding-inline-end: var(--space-6);
  border-block-start: 1px solid var(--c-rule-strong);
}

.page-about .about-commitment__num {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  color: var(--c-muted);
}

/* 56 above the title; two lines are kept for it so the four paragraphs start on one line. */
.page-about .about-commitment__title {
  min-block-size: calc(2 * var(--fs-h4) * var(--lh-h4));
  margin-block-start: var(--space-14);
}

/* ---- 08 Selected work (7H6-0) ---- */

/* Header: label, headline with a body-sized intro (519px), and the link at the end of the first line. */
.page-about .about-work__header .section-header__title { grid-column: 4 / span 6; }

.page-about .about-work__header .section-header__intro {
  grid-column: 4 / span 6;
  max-inline-size: 32.4375rem;             /* 519 */
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
}

.page-about .about-work__all {
  grid-column: 10 / -1;
  grid-row: 1;
  justify-content: flex-end;
  min-block-size: calc(var(--fs-h2) * var(--lh-h2));
}

/* Gallery: two rows, 72 apart (7 + 5 columns, then 4 + 8); the wide card sits 72 lower, the tall one 32. */
.page-about .about-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 5vw, 4.5rem);
}

.page-about .about-card--wide { padding-block-start: clamp(0px, 5vw, 4.5rem); }
.page-about .about-card--tall { padding-block-start: clamp(0px, 2.2222vw, 2rem); }

/* Paper: 12 above the link under a card (the shared card has 18). */
.page-about .about-card .project-card__actions { padding-block-start: var(--space-3); }

/* Wide and feature cards: name and line at the start, the link at the end of the same row. */
.page-about .about-card--split .project-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--grid-gap);
}

.page-about .about-card--split .project-card__title,
.page-about .about-card--split .project-card__meta { grid-column: 1; }

.page-about .about-card--split .project-card__actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  padding-block-start: var(--space-2);
}

/* ---- 09 Final CTA (7LV-0) ---- */

/* Paper sets this closing statement at -5% (the shared banner has -4.5%); at that tracking the first
   sentence keeps to one line at 1440 with room to spare. Arabic has no tracking (typography.css). */
.page-about .cta-closing__statement { letter-spacing: -0.05em; }

/* --------------------------------------------------------------------------
   ≤ 1024: tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Who we are: the copy follows the statement. The photograph now spans the section, so the lower
     corner the crest was drawn for is gone: the glow stays, the crest is left out. */
  .page-about .about-who {
    background-image: radial-gradient(ellipse 40% 30% at var(--about-glow-x) 0%, rgb(8 127 131 / 0.07) 0%, rgb(8 127 131 / 0) 70%);
    background-size: 100% 100%;
    background-position: 50% 50%;
  }

  .page-about .about-who__statement { gap: var(--space-6); }
  .page-about .about-who__copy { padding-block-start: 0; max-inline-size: 39.25rem; }
  .page-about .about-cities__context { margin-block-start: var(--space-10); }
  .page-about .about-cities__caption { max-inline-size: 30rem; }

  /* Two services: the intro follows the shared stacked header */
  .page-about .about-services .section-header__intro { margin-block-start: 0; }

  /* Principles: numeral in a narrow column, the copy under its title */
  .page-about .about-principle {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    row-gap: var(--space-4);
    padding-block: var(--space-10) var(--space-12);
  }

  .page-about .about-principle__num { grid-column: 1; grid-row: 1 / span 2; }
  .page-about .about-principle__title { grid-column: 2; }

  .page-about .about-principle__text {
    grid-column: 2;
    max-inline-size: 32.4375rem;
    padding-block-start: 0;
  }

  /* Who we design for: each group label sits above its list */
  .page-about .about-group-label { max-inline-size: 30rem; padding-inline-end: 0; }
  .page-about .about-audience__group { --grid-row-gap: var(--space-8); }

  .page-about .about-commitment__title { margin-block-start: var(--space-8); }

  /* Selected work: the header stacks; the link follows the intro */
  .page-about .about-work__header .section-header__title,
  .page-about .about-work__header .section-header__intro,
  .page-about .about-work__all { grid-column: 1 / -1; }

  .page-about .about-work__all {
    grid-row: auto;
    justify-content: flex-start;
    min-block-size: 0;
  }
}

/* --------------------------------------------------------------------------
   ≤ 768: one column
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-about .about-hero__title { line-height: var(--lh-display); }
  .page-about .about-hero__row { --grid-row-gap: var(--space-4); }
  .page-about .about-hero__label { min-block-size: 0; }

  .page-about .about-cities__pair { padding-block-end: var(--space-6); }

  /* Text links standing by themselves get a 44px touch target */
  .page-about .about-service .link,
  .page-about .about-work__all .link { min-block-size: 2.75rem; }

  .page-about .about-media-tag--place {
    inset-block-end: var(--space-4);
    inset-inline-start: var(--space-4);
  }

  .page-about .about-media-tag--corner {
    inset-block-start: var(--space-4);
    inset-inline-end: var(--space-4);
  }

  /* Two services: one panel per row */
  .page-about .about-services__grid { --grid-row-gap: var(--space-14); }
  .page-about .about-service { gap: var(--space-6); padding-block-start: var(--space-6); }
  .page-about .about-service__title { margin-block-start: var(--space-10); }

  .page-about .about-philosophy__label { min-block-size: 0; }

  .page-about .about-principle {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding-block: var(--space-8) var(--space-10);
  }

  /* Audience grid: two columns */
  .page-about .about-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-8);
  }

  .page-about .about-sector {
    gap: var(--space-4);
    padding-block: var(--space-5) 1.375rem;
  }

  .page-about .about-sector__num { inline-size: 1.75rem; }

  /* Commitments: one per row, no reserved second line */
  .page-about .about-commitment { padding-inline-end: 0; }

  .page-about .about-commitment__title {
    min-block-size: 0;
    margin-block-start: var(--space-4);
  }

  /* Gallery: one card per row, evenly spaced; the tall card keeps its drawn width */
  .page-about .about-gallery { gap: var(--space-12); }
  .page-about .about-gallery__row { --grid-row-gap: var(--space-12); }
  .page-about .about-card--wide,
  .page-about .about-card--tall { padding-block-start: 0; }
  .page-about .about-card--tall { max-inline-size: 25.6875rem; }   /* 411 */
}

/* --------------------------------------------------------------------------
   ≤ 480: phone
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* The place photograph is a little taller on a phone; the tower stays in the frame */
  .page-about .about-cities .media { aspect-ratio: 3 / 2; }

  /* Facts: one per row */
  .page-about .about-facts { --grid-row-gap: var(--space-6); }
  .page-about .about-facts > .about-facts__item { grid-column: 1 / -1; }

  /* Audience: one per row, the icon beside its title */
  .page-about .about-people {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .page-about .about-people__item {
    flex-direction: row;
    gap: var(--space-4);
    padding-block: var(--space-5);
  }

  .page-about .about-people__item .icon { margin-block-start: 0.1875rem; }

  /* Split cards: the link drops under the name and line */
  .page-about .about-card--split .project-card__body { display: flex; }
  .page-about .about-card--split .project-card__actions { padding-block-start: var(--space-3); }
}

/* --------------------------------------------------------------------------
   Reduced motion: the sector rows' arrow stays still, as in the shared links
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page-about .about-sector .icon { transition: none; }
  .page-about .about-sector:hover .icon { translate: 0 0; }
}
