/* About Iclass. Loaded after site.css and page.css. */

/* ---------- 1. the line-up ---------- --k: one pixel of the fleet picture */
.lineup { position: relative; --h: min(4.75vw, 10.3svh); --k: min(.0406vw, .0888svh); background: var(--paper) var(--sheet) -1px 0 / 25% 22rem; }
.opening { position: relative; height: 100svh; min-height: 36rem; overflow: clip; }
.opening__h { position: absolute; left: var(--gut); top: max(6.4rem, 15.5svh); font-size: var(--h); }
.opening__lead { position: absolute; left: var(--gut); bottom: 3rem; max-width: 18.4em; font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 500; line-height: 1.32; letter-spacing: -.012em; text-wrap: pretty; }
.opening__lead .link { margin-top: 1.1em; }

.fleet { position: absolute; right: calc(-40 * var(--k)); bottom: 8.4svh; width: calc(1622 * var(--k)); height: 0; }
.fleet img { position: absolute; left: calc(var(--x) * var(--k)); top: calc(var(--y) * var(--k)); width: calc(var(--w) * var(--k)); max-width: none; height: auto; }

/* the vehicles roll up to the line when the page opens */
.live .fleet img { translate: 0 -130svh; will-change: transform; }
.live .is-in .fleet img { translate: none; transition: translate calc(1.25s + var(--i) * .16s) cubic-bezier(.16, .84, .3, 1); transition-delay: calc(var(--i) * 70ms); }
.live .opening__h span { animation: about-rise 1s var(--out) backwards; }
.live .opening__h span:nth-child(2) { animation-delay: .08s; }
.live .opening__h span:nth-child(3) { animation-delay: .16s; }
.live .opening__lead { animation: about-rise 1.1s .35s var(--out) backwards; }
@keyframes about-rise { from { opacity: 0; translate: 0 .35em; } }

/* who we are */
.who-we { position: relative; border-top: 12px solid var(--ink); padding: clamp(5rem, 8.2vw, 8.5rem) var(--gut) clamp(4rem, 6.6vw, 7.4rem); }
.who-we .title { max-width: 12em; font-size: clamp(2.1rem, 5vw, 6rem); letter-spacing: -.042em; }
.who-we__text { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 0; margin: clamp(2rem, 4vw, 4.4rem) 0 0 calc(50% - var(--gut) / 2 + .6rem); font-size: clamp(1.0625rem, 1.35vw, 1.6rem); font-weight: 500; line-height: 1.38; letter-spacing: -.012em; }
.who-we__text p { padding-right: 1.6rem; text-wrap: pretty; }
.aims { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 0; margin-top: clamp(3.4rem, 6vw, 6.6rem); }
.aims dt { font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 600; letter-spacing: -.015em; }
.aims dt::before { content: ""; display: inline-block; width: .62em; height: .62em; margin: 0 .8em .02em .16em; rotate: 45deg; background: var(--yellow); }
.aims dd { max-width: 21em; margin-top: 1rem; font-size: clamp(1.35rem, 2.15vw, 2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; text-wrap: pretty; }

/* the people, in formation: one, three, four and four, and every row is full. Twelve columns */
.crew { position: relative; border-top: 12px solid var(--ink); padding: 0 var(--gut) clamp(4rem, 6.6vw, 7.4rem); }
.crew__h { padding: clamp(5rem, 8.2vw, 8.5rem) 0 clamp(2rem, 3.4vw, 3.6rem); font-size: var(--h); }
.crew__h span { display: inline; }
.crew__grid { --rule: rgb(13 13 13 / .2); background: var(--paper); display: grid; grid-template-columns: repeat(12, 1fr); padding: 1px 0 0 1px; }
.who { grid-column: span 3; display: flex; flex-direction: column; margin: -1px 0 0 -1px; border: 1px solid var(--rule); }
.who:nth-child(-n + 4) { grid-column: span 4; }
.who__pic { position: relative; display: block; aspect-ratio: .8; overflow: clip; background: #eceae3; transition: background-color .45s var(--out); }
.who:nth-child(-n + 4) .who__pic { aspect-ratio: .94; }
.who__pic img { position: absolute; left: 50%; bottom: 0; width: auto; max-width: none; height: 100%; translate: -50%; }
.who p { padding: 1.05rem 1.1rem 1.5rem 1.2rem; }
/* the founder has the whole first row, with the name beside the picture */
.who:first-child { position: relative; grid-column: 1 / -1; }
.who:first-child .who__pic { aspect-ratio: auto; height: clamp(26rem, 47vw, 56rem); background: var(--yellow); isolation: isolate; }
/* large arrows behind the portrait, in two shades of the yellow, over the top and the bottom edge */
.who__arrows { position: absolute; z-index: -1; left: 0; top: -14%; width: auto; max-width: none; height: 128%; overflow: visible; }
.who__arrows path:nth-child(odd) { fill: #ffe15c; }
.who__arrows path:nth-child(even) { fill: #efb100; }
.who b { display: block; font-size: clamp(1.0625rem, 1.4vw, 1.65rem); font-weight: 600; letter-spacing: -.022em; line-height: 1.18; }
.who p span { display: block; margin-top: .3rem; color: #55554f; font-size: clamp(.9375rem, 1.05vw, 1.2rem); line-height: 1.35; text-wrap: balance; }
@media (min-width: 801px) {
  .who:first-child .who__pic img { left: 70%; height: 96%; }
  .who:first-child p { position: absolute; left: 0; bottom: 0; width: 52%; padding: 0 0 clamp(1.6rem, 2.6vw, 3rem) clamp(1.4rem, 2.4vw, 2.8rem); }
  .who:first-child b { font-size: clamp(2.4rem, 5vw, 6rem); line-height: 1; letter-spacing: -.042em; }
  .who:first-child p span { margin-top: 1rem; color: var(--ink); font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 500; }
}
@media (hover: hover) {
  .who:hover .who__pic { background-color: var(--yellow); }
}

/* ---------- 2. the aisle ---------- --w: the width of the picture; its aisle is 10.7% of that */
.aisle { --w: max(100vw, 162svh); position: relative; margin-top: -1px; height: 112svh; min-height: 40rem; overflow: clip; background: #040405; color: var(--white); }
.aisle__bg { position: absolute; left: 50%; top: 50%; width: var(--w); max-width: none; height: auto; transform: translate(-50%, -50%); }
.aisle__trolley { position: absolute; left: 46%; top: 50%; width: calc(.1854 * var(--w)); max-width: none; height: auto; margin-top: calc(-.0474 * var(--w)); }
.live .aisle__trolley { left: 0; will-change: transform; }
.aisle__say { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(50% + .109 * var(--w)); margin: 0; font-size: min(5vw, 10.4svh); font-weight: 600; line-height: 1; letter-spacing: -.042em; }
.aisle__say span { display: block; }
.aisle__say span + span { color: #8d8d88; }

/* ---------- 3. values ---------- */
.values { padding: clamp(4.5rem, 7.4vw, 8rem) 0 0; background: var(--paper); }
.values .title { padding: 0 var(--gut); }
.values__list { margin-top: clamp(2rem, 3.6vw, 4rem); }
.values li { position: relative; isolation: isolate; display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: .5rem 2rem; padding: clamp(1rem, 1.75vw, 2rem) var(--gut); border-top: 1px solid rgb(13 13 13 / .16); }
.values li::before { content: ""; position: absolute; z-index: -1; inset: -1px 0 0; background: var(--yellow); transform: scaleX(0); transform-origin: 0 0; transition: transform .7s var(--out); }
.values li.is-on::before { transform: none; }
.values b { font-size: clamp(2rem, 4.6vw, 5.6rem); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.values span { max-width: 25em; font-size: clamp(1.0625rem, 1.35vw, 1.6rem); font-weight: 500; line-height: 1.34; letter-spacing: -.012em; text-wrap: pretty; }
.live .values span { color: #55554f; transition: color .4s; }
.live .values .is-on span { color: var(--ink); }
.values + .clients { border-top: 12px solid var(--ink); }

/* ---------- 5. the map ---------- */
.map { position: relative; background: var(--navy); color: var(--white); }
.map__pin { position: relative; height: 100svh; min-height: 36rem; overflow: clip; }
.live .map { height: 178vh; }
.live .map__pin { position: sticky; top: 0; height: 100vh; }
.map__svg { position: absolute; right: 0; top: 0; width: 56%; height: 100%; }
.live .map__svg { inset: 0; width: 100%; }
.map__africa { fill: rgb(255 255 255 / .05); stroke: rgb(255 255 255 / .7); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map__ng { fill: var(--yellow); }
.map__text { position: absolute; left: var(--gut); top: 50%; width: min(47vw, 60rem); transform: translateY(-50%); }
.map__text .title { font-size: min(5vw, 10.6svh); line-height: .99; letter-spacing: -.042em; }
.map__text p:not(.title) { margin-top: 1.1rem; font-size: clamp(1.0625rem, 1.5vw, 1.8rem); font-weight: 500; }
.map__text p.title { margin-top: .62em; color: var(--yellow); }

/* ---------- smaller and upright screens: the fleet and the team are two ordinary sections ---------- */
@media (max-width: 1080px), (max-aspect-ratio: 5/4) {
  .lineup { --h: min(7.95vw, 7svh); --k: min(.0585vw, .0372svh); }
  .opening { min-height: 34rem; }
  .opening__h { top: max(5.4rem, 10.5svh); }
  .opening__lead { top: calc(max(5.4rem, 10.5svh) + 3.25 * var(--h)); bottom: auto; max-width: 25em; right: var(--gut); font-size: clamp(1.0625rem, 2.4vw, 1.5rem); }
  .fleet { right: calc(50% - 811 * var(--k)); bottom: 8.5svh; }
  .crew__h span { display: block; }
  .who-we__text { margin-left: 0; }

  .aisle { --w: max(128vw, 118svh); height: 80svh; min-height: 30rem; }
  .aisle__say { font-size: min(8vw, 6.4svh); }
  .map__text { top: max(5rem, 11svh); width: auto; right: var(--gut); transform: none; }
  .map__text .title { font-size: min(9.6vw, 6.4svh); }
  .map__svg { inset: auto 0 2vh; width: 100%; height: 50%; }
  .live .map__svg { inset: 0; height: 100%; }
}
@media (max-width: 800px) {
  .lineup { background-size: 50% 22rem; }
  .who-we__text, .aims { grid-template-columns: 1fr; }
  .values li { grid-template-columns: 1fr; padding-block: 1.3rem; }
  .crew__grid { grid-template-columns: 1fr 1fr; }
  .who { grid-column: auto; }
  .who:nth-child(-n + 2) { grid-column: 1 / -1; }
  .who:nth-child(3), .who:nth-child(4) { grid-column: auto; }
  .who:first-child .who__pic { aspect-ratio: .94; height: auto; }
  .who:nth-child(2) .who__pic { aspect-ratio: 1.1; }
  .who:nth-child(3) .who__pic, .who:nth-child(4) .who__pic { aspect-ratio: .8; }
  .who p { padding: .8rem .7rem 1.2rem .9rem; }
  .aisle { --w: max(128vw, 138svh); }
}
