/* Redlab — company pages: Industries and About. Loaded after base.css, blocks.css, service.css (crumbs, hero proof)
   and hub.css (the index hero and the sticky index with its chapters). This file adds the case cards both pages
   share, the industry chapters, and About's facts, long-running clients, rules and people. */

/* ==========================================================================
   1. Case cards: the Work page cover in a rounded card, then name, one line and the market as tags.
      Two to a row; three when a market has three cases; one wide card with the text beside it.
   ========================================================================== */
.icases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); }
.icases.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icase { display: grid; align-content: start; gap: 20px; text-decoration: none; }
.icase-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-l); background: var(--surface); }
.icase-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease); }
.icase-body { position: relative; display: grid; gap: 6px; padding-right: 52px; }
.icase-body::after { content: '→'; position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--hair); border-radius: 50%; background: var(--white); transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.icase-name { font-size: var(--t-h3); line-height: 36px; letter-spacing: -.02em; transition: color .25s var(--ease); }
.icase-text { font-size: var(--t-body); line-height: 1.5; color: var(--muted); }
.icase-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.icase-tags i { padding: 4px 10px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--surface); font-size: var(--t-small); font-style: normal; color: var(--ink-2); }
.icase:hover .icase-media img { transform: scale(1.03); }
.icase:hover .icase-name { color: var(--red); }
.icase:hover .icase-body::after { border-color: var(--ink); background: var(--ink); color: var(--white); transform: rotate(-45deg); }
.icases.is-three .icase-text { font-size: var(--t-small); }

.icases.is-one { grid-template-columns: minmax(0, 1fr); }
.icases.is-one .icase { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--gap) clamp(24px, 3vw, 48px); }

/* ==========================================================================
   2. Industry chapters, in the services hub's index: the market as a label over its promise, why it's hard,
      the cases, then what we've built there as open rows, each naming the case it comes from.
   ========================================================================== */
.ind-title { margin-bottom: 20px; font-size: var(--t-h2); font-weight: 400; line-height: 1.1; letter-spacing: -.03em; }
.ind-promise { max-width: 30em; margin-bottom: 16px; font-size: var(--t-h3); line-height: 1.35; letter-spacing: -.015em; color: var(--ink); }
.ind-lead { max-width: 40em; margin-bottom: 40px; font-size: var(--t-body); line-height: 1.6; color: var(--ink-2); }

.built-label { margin: 48px 0 8px; font-size: var(--t-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.built { border-top: 1px solid var(--hair); }
.built li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 32px; padding-block: 16px; border-bottom: 1px solid var(--hair); }
.built-text { font-size: var(--t-body); line-height: 1.5; }
.built-case { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.built-case::after { content: '→'; transition: transform .25s var(--ease); }
.built-case:hover { color: var(--red); }
.built-case:hover::after { transform: translateX(3px); }

/* The same parts in any industry: hub tiles that don't open a page; the cases are the links. */
.cap-cases { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cap-cases a { padding: 5px 12px; border: 1px solid var(--hair); border-radius: var(--r-pill); background: var(--surface); font-size: var(--t-small); color: var(--ink-2); text-decoration: none; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.cap-cases a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* Tiles without an arrow can run to two lines: the 36 px line only lines up with the arrow. */
.cap .tile-name, .principle .tile-name { line-height: 1.25; }

/* Websites for other markets: the homepage industry rows, opening another site. */
.ind-list.is-external .ind-case::after { content: '↗'; }
.ind-list.is-external a:hover .ind-case::after { transform: none; }
/* A row in the external list that has its own case (Playson) keeps the inside arrow */
.ind-list.is-external a.is-case .ind-case::after { content: '→'; }
.ind-list.is-external a.is-case:hover .ind-case::after { transform: rotate(-45deg); }
.other-where { display: block; margin-top: 2px; font-size: var(--t-small); color: var(--muted); }

/* ==========================================================================
   3. About: the facts under the hero, clients who stay, six rules, the people.
   ========================================================================== */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px clamp(24px, 3vw, 56px); align-items: center; }
.about-hero-copy { display: grid; justify-items: start; gap: 28px; }
.about-hero-copy .hero-copy { max-width: 34em; }
.about-hero-art svg { display: block; width: 100%; height: auto; max-height: min(56vh, 520px); }

.about-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: clamp(20px, 2.4vh, 28px); border-top: 1px solid var(--hair); }
.about-facts dt { font-size: var(--t-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.about-facts dd { margin: 8px 0 0; font-size: var(--t-h3); line-height: 1.3; letter-spacing: -.02em; }
.about-facts a { color: var(--ink); text-underline-offset: 3px; }
.about-facts a:hover { color: var(--red); }

.stay-list { border-top: 1px solid var(--hair); }
.stay-list li { display: grid; grid-template-columns: 96px minmax(0, 4fr) minmax(0, 6fr) 150px; align-items: baseline; gap: 12px 32px; padding-block: 28px; border-bottom: 1px solid var(--hair); }
.stay-year { font-size: var(--t-h3); letter-spacing: -.02em; color: var(--red); font-variant-numeric: tabular-nums; }
.stay-who { display: grid; gap: 2px; }
.stay-who b { font-size: var(--t-h3); font-weight: 400; letter-spacing: -.02em; }
.stay-who span { font-size: var(--t-small); color: var(--muted); }
.stay-text { font-size: var(--t-body); line-height: 1.55; color: var(--ink-2); }
.stay-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .2s var(--ease); }
.stay-link::after { content: '→'; transition: transform .25s var(--ease); }
.stay-link.is-out::after { content: '↗'; }
.stay-link:hover { color: var(--red); }
.stay-link:hover::after { transform: translateX(3px); }
.stay-link.is-out:hover::after { transform: translate(2px, -2px); }

.principles .section-sub a { color: var(--ink); text-underline-offset: 3px; }
.principles .section-sub a:hover { color: var(--red); }
.principle-n { font-family: var(--mono); font-size: var(--t-label); color: var(--red); }

/* People: Eugene's note beside his portrait, then the team as a grid of the same studio portraits. */
.founder { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 32px clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(48px, 5vw, 80px); }
.founder img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 586; object-fit: cover; border-radius: var(--r-l); background: var(--surface); }
.founder-text { display: grid; gap: 28px; }
.founder blockquote p { max-width: 24em; font-size: var(--t-h2); line-height: 1.2; letter-spacing: -.03em; }
.founder blockquote p::before { content: '“'; }
.founder blockquote p::after { content: '”'; }
.founder figcaption { display: grid; gap: 2px; padding-top: 20px; border-top: 1px solid var(--hair); }
.founder figcaption b { font-size: var(--t-lead); font-weight: 500; }
.founder figcaption span { font-size: var(--t-small); color: var(--muted); }

.team-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 32px var(--gap); }
.team-grid li { display: grid; gap: 4px; align-content: start; }
.team-grid img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 586; object-fit: cover; margin-bottom: 10px; border-radius: var(--r-m); background: var(--surface); }
.team-grid b { font-size: var(--t-body); font-weight: 500; }
.team-grid span { font-size: var(--t-small); line-height: 1.35; color: var(--muted); }

.selected .section-aside .section-sub { max-width: 22em; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1080px) {
  .icases.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icases.is-three li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .about-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .about-hero-art svg { max-width: 560px; margin-inline: auto; }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .stay-list li { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .stay-text { grid-column: 2 / -1; grid-row: 2; }
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .founder { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 760px) {
  .icases, .icases.is-three { grid-template-columns: minmax(0, 1fr); }
  .icases.is-one .icase { grid-template-columns: minmax(0, 1fr); }
  .built li { grid-template-columns: minmax(0, 1fr); }
  .stay-list li { grid-template-columns: minmax(0, 1fr) auto; padding-block: 22px; }
  .stay-year { grid-column: 1; grid-row: 1; font-size: var(--t-body); }
  .stay-who { grid-column: 1 / -1; grid-row: 2; }
  .stay-text { grid-column: 1 / -1; grid-row: 3; }
  .stay-link { grid-column: 2; grid-row: 1; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder img { max-width: 280px; }
}
