/* About: "The Quiet Editorial". Black, white and generous space; the only colour
   comes from Asif's portrait and his photographs. */
.ab-page .wrap { width: min(1180px, 100% - 48px); }

.ab { --ink-soft: #5c5c5c; --hair: #e4e4e4; --gut: clamp(16px, 4vw, 24px); overflow-x: clip; }
.ab-in { width: min(1180px, 100% - 48px); margin-inline: auto; }

.ab-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.ab-h2 {
  max-width: 15em;
  margin-top: 16px;
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.ab-sec { padding-top: clamp(80px, 11vw, 150px); }

.ab-split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.ab-fig { overflow: hidden; background: #f1f1f1; }
.ab-fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.ab-hero { padding-top: clamp(40px, 6vw, 84px); border-bottom: 1px solid var(--hair); }

.ab-hero-in {
  display: grid;
  grid-template-columns: 1fr 47%;
  gap: 32px;
  align-items: end;
}

.ab-hero-copy { padding-bottom: clamp(48px, 7vw, 96px); align-self: end; }

.ab-statement {
  margin-top: 24px;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.ab-ln { display: block; overflow: hidden; padding-block: 0.12em 0.2em; margin-block: -0.12em -0.2em; }
.ab-ln > span { display: block; }

.ab-por { position: relative; justify-self: end; width: 100%; }
.ab-portrait { width: 100%; height: auto; }

/* the "!" is a traced vector: it drops in, then gives a small nod now and then */
.ab-ex { position: absolute; overflow: visible; height: auto; animation: ab-ex-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both; }
.ab-ex-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: ab-ex-nod 5s ease-in-out 2.2s infinite; }
.ab-ex-dot { transform-box: fill-box; transform-origin: 50% 50%; animation: ab-ex-hop 5s ease-in-out 2.2s infinite; }

@keyframes ab-ex-in {
  from { opacity: 0; transform: translateY(-34%) rotate(-14deg) scale(0.7); }
  to { opacity: 1; transform: none; }
}
@keyframes ab-ex-nod {
  0%, 66%, 100% { transform: none; }
  74% { transform: rotate(-11deg) scaleY(1.05); }
  82% { transform: rotate(8deg); }
  90% { transform: rotate(-3deg); }
}
@keyframes ab-ex-hop {
  0%, 66%, 100% { transform: none; }
  74% { transform: translateY(16%) scale(1.08, 0.92); }
  82% { transform: translateY(-14%); }
  90% { transform: translateY(4%); }
}
@media (prefers-reduced-motion: reduce) {
  .ab-ex, .ab-ex-bar, .ab-ex-dot { animation: none; }
}

/* ---------- Story ---------- */
.ab-story-text { max-width: 720px; }
.ab-story-text p { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; letter-spacing: -0.01em; color: #1d1d1d; }
.ab-story-text p + p { margin-top: 1.1em; }
.ab-story-text .about-links { margin-top: 40px; flex-wrap: wrap; row-gap: 14px; }

/* ---------- Numbers ---------- */
.ab-band { margin-top: clamp(80px, 11vw, 150px); background: #0b0b0b; color: #fff; }

.ab-stats.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 0;
  margin-top: 0;
  margin-inline: auto;
  padding-block: clamp(44px, 6vw, 80px);
}

.ab-stats > div { padding-left: clamp(16px, 2.6vw, 36px); border-left: 1px solid #333; }
.ab-stats > div:first-child { padding-left: 0; border-left: 0; }
.ab-stats .stat-num {
  font-family: var(--font-sans);
  font-size: clamp(36px, 5.2vw, 76px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ab-stats .stat-label { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: #a8a8a8; }

/* ---------- Career ---------- */
.ab-career { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.ab-career li {
  display: grid;
  grid-template-columns: 150px 1fr 130px;
  gap: 20px;
  align-items: center;
  min-height: 104px;
  padding-block: 20px;
  border-bottom: 1px solid var(--hair);
}
.ab-edu { padding-top: clamp(48px, 6vw, 80px); }
.ab-edu .ab-career li { grid-template-columns: 150px 1fr; }
.ab-role small { display: block; margin-top: 6px; font-size: 15px; line-height: 1.4; letter-spacing: 0; color: var(--ink-soft); }
.ab-yr { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.ab-role { font-size: clamp(21px, 2.3vw, 30px); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.ab-career img { justify-self: end; width: auto; max-width: 130px; height: 22px; object-fit: contain; }
.ab-career img.tall { height: 34px; }

/* ---------- Impact ---------- */
.ab-case {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin-top: clamp(56px, 8vw, 110px);
}
.ab-case.ab-flip { grid-template-columns: 6fr 7fr; }
.ab-case .ab-tall { aspect-ratio: 4 / 5; }
.ab-case .ab-wide { aspect-ratio: 3 / 2; }

.ab-big {
  font-size: clamp(56px, 8.4vw, 124px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.ab-big.ab-word { font-size: clamp(46px, 6vw, 86px); line-height: 1.1; letter-spacing: -0.04em; }
.ab-case h3 { margin-top: 8px; font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1.4; }
.ab-case-copy > p:not(.ab-big) { max-width: 500px; margin-top: 22px; font-size: 17px; line-height: 1.55; color: #333; }

.ab-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 500px; margin: 30px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--hair); }
.ab-mini b { display: block; font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.ab-mini span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }

.ab-pair { display: grid; grid-template-columns: 8fr 5fr; gap: 12px; }
.ab-pair .ab-fig { aspect-ratio: 4 / 3; }
.ab-pair .ab-fig:last-child { aspect-ratio: auto; height: 100%; }

.ab-also { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(56px, 8vw, 110px); padding-top: 32px; border-top: 1px solid var(--hair); }
.ab-also .ab-fig { aspect-ratio: 3 / 2; }
.ab-also figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Capabilities: a bento in the portrait's own colours ---------- */
.ab-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin-top: 28px; }
.ab-card { display: flex; flex-direction: column; min-height: clamp(440px, 38vw, 520px); padding: clamp(24px, 3vw, 40px); overflow: hidden; }
.ab-card-ink { grid-column: span 4; background: #0b0b0b; color: #fff; }
.ab-card-yellow { grid-column: span 4; background: #f2be4a; }
.ab-card-blue { grid-column: span 4; background: #4a9de3; }
.ab-cap-n { font-family: var(--font-mono); font-size: 13px; opacity: 0.65; }
.ab-card h3 { margin-top: 10px; font-size: clamp(28px, 2.8vw, 38px); font-weight: 400; line-height: 1.12; letter-spacing: -0.03em; }
.ab-card ul { margin: auto 0 0; padding: 28px 0 0; list-style: none; font-size: 16px; line-height: 1.35; }
.ab-card li { padding-block: 8px; border-top: 1px solid rgba(0, 0, 0, 0.22); }
.ab-card-ink li { border-color: rgba(255, 255, 255, 0.24); }
.ab-card .ab-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ab-card .ab-tools li { padding: 6px 13px; font-size: 14px; border: 1px solid rgba(0, 0, 0, 0.5); border-radius: 100px; }

/* ---------- Lens: a dark room for the photographs ---------- */
.ab-lens { margin-top: clamp(80px, 11vw, 150px); padding-block: clamp(72px, 10vw, 130px); background: #0b0b0b; color: #fff; }
.ab-lens .ab-label { color: #a8a8a8; }
.ab-lens .lens-sub { max-width: 620px; margin-top: 18px; font-size: 17px; color: #bdbdbd; }
.ab-lens .lens-sub a { color: #fff; text-underline-offset: 3px; }
.ab-lens .lens-wrap { margin-top: clamp(36px, 5vw, 60px); }
.ab-lens .lens-slot { background: #1c1c1c; }

/* ---------- Beyond ---------- */
.ab-beyond-in { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.ab-beyond-copy .ab-h2 { font-size: clamp(30px, 3.4vw, 46px); }
.ab-beyond-copy > p:last-child { margin-top: 16px; font-size: 17px; line-height: 1.55; color: #333; }
.ab-beyond-imgs { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; height: clamp(220px, 26vw, 340px); }

/* ---------- Quotes ---------- */
.ab-quotes { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--ink); }
.ab-names { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ab-names button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px 7px 7px;
  font: inherit;
  font-size: 15px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ab-names img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; filter: grayscale(1); transition: filter var(--dur) var(--ease); }
.ab-names button:hover { color: var(--ink); }
.ab-names [aria-selected="true"] { color: var(--ink); background: #f2f2f2; }
.ab-names [aria-selected="true"] img { filter: none; }

.ab-panels { display: grid; }
.ab-quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.ab-quote.is-on { opacity: 1; visibility: visible; }
.ab-quote > figure { margin: 0; }
.ab-pull { font-size: clamp(30px, 3.6vw, 50px); font-weight: 400; line-height: 1.16; letter-spacing: -0.028em; }
.ab-quote blockquote { max-width: 680px; margin: 24px 0 0; font-size: 16px; line-height: 1.6; color: #444; }
.ab-quote blockquote p + p { margin-top: 0.9em; }
.ab-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.ab-quote figcaption img { display: none; width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; }
.ab-quote cite { display: block; font-style: normal; font-weight: 600; line-height: 1.3; }
.ab-quote figcaption span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }

/* ---------- Clients ---------- */
.ab-clients { padding-top: clamp(80px, 11vw, 150px); }
.ab-logos { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; justify-items: center; gap: 38px 28px; margin-top: 28px; padding-top: 36px; border-top: 1px solid var(--hair); }
.ab-logos img { width: auto; height: 44px; max-width: 130px; object-fit: contain; transition: transform .35s var(--ease); }
.ab-logos img:hover { transform: scale(1.08); }

/* ---------- Close ---------- */
.ab-close { padding-block: clamp(90px, 13vw, 170px) clamp(70px, 9vw, 110px); }
.ab-close h2 { max-width: 12em; font-size: clamp(42px, 7vw, 100px); font-weight: 400; line-height: 1.08; letter-spacing: -0.04em; }
.ab-close-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.ab-close-cta .pill { height: 46px; padding: 0 22px; font-size: 14px; }

@media (max-width: 960px) {
  .ab-logos { grid-template-columns: repeat(4, 1fr); }
  .ab-logos img { max-width: 100%; }
  .ab-statement { font-size: min(8.8vw, 72px); }
  .ab-split, .ab-quotes { grid-template-columns: 1fr; gap: 24px; }
  .ab-hero-in { grid-template-columns: 1fr; gap: 0; }
  .ab-hero-copy { padding-bottom: 32px; }
  .ab-por { width: min(100%, 640px); justify-self: center; }
  .ab-case, .ab-case.ab-flip, .ab-beyond-in { grid-template-columns: 1fr; }
  .ab-case.ab-flip .ab-case-copy { order: 1; }
  .ab-case.ab-flip .ab-pair { order: 2; }
  .ab-card { grid-column: 1 / -1; min-height: 0; }
  .ab-card ul { margin-top: 28px; }
  .ab-names { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .ab-in, .ab-page .wrap { width: calc(100% - 32px); }
  .ab-stats.stats { grid-template-columns: 1fr 1fr; gap: 30px 0; justify-content: stretch; }
  .ab-stats > div { padding-left: 16px; }
  .ab-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .ab-career li { grid-template-columns: 1fr auto; gap: 6px 14px; min-height: 0; }
  .ab-career .ab-yr { grid-column: 1; }
  .ab-career .ab-role { grid-column: 1; grid-row: 2; }
  .ab-edu .ab-career li { grid-template-columns: 1fr; }
  .ab-career img { grid-column: 2; grid-row: 1 / span 2; max-width: 92px; }
  .ab-pair { grid-template-columns: 1fr; }
  .ab-pair .ab-fig:last-child { aspect-ratio: 4 / 3; height: auto; }
  .ab-also { grid-template-columns: 1fr; }
  .ab-beyond-imgs { grid-template-columns: 1fr 1fr; grid-template-rows: 56vw 62vw; height: auto; }
  .ab-beyond-imgs > :first-child { grid-column: 1 / -1; }
  .ab-names { display: none; }
  .ab-panels { display: block; }
  .ab-quote { opacity: 1; visibility: visible; padding-block: 28px; border-bottom: 1px solid var(--hair); }
  .ab-quote:first-child { padding-top: 0; }
  .ab-quote:last-child { border-bottom: 0; padding-bottom: 0; }
  .ab-quote figcaption img { display: block; }
  .ab-logos { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .ab-logos img { max-width: 100%; height: 36px; }
}

