/* A company page: what I did there. Reuses the tokens of site.css and the blocks of case.css. */
.co { background: var(--paper); }
.co-head { min-height: 92svh; padding: clamp(120px, 15vw, 200px) var(--gutter) clamp(36px, 5vw, 70px); display: flex; flex-direction: column; justify-content: flex-end;
  background: repeating-linear-gradient(180deg, transparent 0 9px, rgba(14,14,14,.13) 9px 10px), var(--paper); }
.co-head h1 { font-size: clamp(64px, 17.5vw, 300px); line-height: .8; font-weight: 900; font-stretch: 75%; letter-spacing: -.03em; text-transform: uppercase; margin: 18px 0 26px -.04em; }
.co-head__meta { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; font-size: clamp(17px, 1.6vw, 24px); font-weight: 600; }
.co-head__meta b { color: var(--clay); font-weight: 800; }
.co-block { padding: clamp(64px, 9vw, 130px) var(--gutter); }
.co-block.dark { border-radius: clamp(26px, 4.6vw, 78px) clamp(26px, 4.6vw, 78px) 0 0; }
.co-block h2 { font-size: clamp(34px, 5.3vw, 84px); line-height: 1; font-weight: 800; font-stretch: 88%; letter-spacing: -.025em; text-transform: uppercase; max-width: 16em; margin-bottom: clamp(30px, 4vw, 60px); }
.co-rows { list-style: none; padding: 0; counter-reset: row; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.co-rows li { counter-increment: row; display: grid; grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 14px clamp(16px, 3vw, 48px); padding: clamp(18px, 2.2vw, 30px) 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); align-items: baseline; transition: padding-left .45s cubic-bezier(.65,.01,.05,.99); }
.co-rows li::before { content: counter(row, decimal-leading-zero); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--clay); }
.co-rows li:hover { padding-left: 16px; }
.co-rows h3 { font-size: clamp(20px, 2.3vw, 36px); line-height: 1.05; font-weight: 800; font-stretch: 86%; letter-spacing: -.02em; text-transform: uppercase; }
.co-rows p { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.5; opacity: .82; }
.co-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: color-mix(in srgb, currentColor 22%, transparent); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.co-list li { background: var(--paper); padding: 22px 22px 26px; transition: background-color .3s, color .3s; }
.dark .co-list li { background: var(--slate); }
.co-list li:hover { background: var(--clay-fill); color: #fff; }
.co-list b { display: block; font-size: clamp(26px, 3vw, 46px); line-height: .95; font-weight: 900; font-stretch: 76%; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 10px; }
.co-list span { font-size: 15px; line-height: 1.45; opacity: .85; }
@media (max-width: 760px) { .co-rows li { grid-template-columns: 2.6rem 1fr; } .co-rows p { grid-column: 2; } }

/* the name always fits the screen, whatever its length; the first screen says what I did */
.co-head { min-height: 78svh; }
.co-head h1 { font-size: min(clamp(64px, 17.5vw, 300px), calc(215vw / var(--chars, 6))); }
.co-head__lead { margin-top: 22px; max-width: 30em; font-size: clamp(20px, 2.1vw, 32px); line-height: 1.25; font-weight: 600; background: var(--paper); padding: 6px 10px 8px 0; }

/* a photograph in the head of each company page */
.co-head { position: relative; overflow: hidden; }
.co-head > *:not(.co-head__photo) { position: relative; z-index: 1; }
.co-head__photo { position: absolute; right: var(--gutter); top: clamp(96px, 12vw, 150px); width: min(38vw, 560px); aspect-ratio: 16 / 11; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.co-head__photo:hover { filter: none; }
.co--on .co-head__photo { aspect-ratio: 4 / 5; width: min(24vw, 360px); top: clamp(84px, 9vw, 120px); }
@media (max-width: 900px) { .co-head__photo { position: relative; right: auto; top: auto; width: 100%; margin-bottom: 26px; } .co--on .co-head__photo { width: 62%; } }

/* each company page takes its accent from that company. Colour only: no logos. */
.co--on { --paper: #FFFFFF; --slate: #0B0B0B; --slate-2: #1B1B1B; --clay: #0B0B0B; --ember: #E8FA80; --clay-fill: #E8FA80; --wash: #F4FBD0; --ink: #0B0B0B; }
.co--on .co-head__meta b { background: #E8FA80; color: #0B0B0B; padding: 0 .3em; }
.co--on .co-list li:hover, .co--on .case__foot .pill:hover, .co--on .pill:hover { color: #0B0B0B; --clay: #0B0B0B; }
.co--on .eyebrow::before { background: #0B0B0B; } .co--on .dark .eyebrow::before, .co--on .co-block.dark .eyebrow::before { background: #E8FA80; }
.co--fq { --paper: #EFF1EF; --slate: #0A0B0E; --slate-2: #16181D; --clay: #6E5923; --ember: #C5A55A; --clay-fill: #C5A55A; --wash: #E4D2AB; --ink: #0A0B0E; }
.co--fq .co-list li:hover, .co--fq .pill:hover { color: #0A0B0E; --clay: #0A0B0E; }
.co--tp { --slate: #14102B; --slate-2: #211A45; --clay: #6A2BD9; --ember: #C9A8FF; --clay-fill: #6A2BD9; --wash: #ECE4FB; }

/* the photograph sits above the name, at the right, and never covers it */
.co-head__photo { position: static; align-self: flex-end; width: min(26vw, 400px); margin: 0 0 clamp(8px, 1.6vw, 22px); top: auto; right: auto; }
.co--on .co-head__photo { width: min(17vw, 250px); top: auto; }
@media (max-width: 900px) { .co-head__photo, .co--on .co-head__photo { align-self: stretch; width: 100%; aspect-ratio: 16 / 10; } }

.co--fq .co-head__photo, .co--on .co-head__photo { aspect-ratio: 4 / 5; width: min(17vw, 250px); object-position: 50% 12%; }

/* FQ Central's picture is wide again */
.co--fq .co-head__photo { aspect-ratio: 16 / 11; width: min(26vw, 400px); object-position: 50% 50%; }
