/* Iclass Logistics, version 4. Colour and type follow the brand guidelines (draft v0.1, November 2026). */

@font-face { font-family: "Mona Sans"; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; src: url("../assets/fonts/mona-sans-variable.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono";font-weight: 100 900; font-display: swap; src: url("../assets/fonts/geist-mono-variable.woff2") format("woff2"); }

:root {
  --yellow: #fbcd05; --ink: #0d0d0d; --white: #fff; --paper: #faf9f6;
  --navy: #12233d; --teal: #15c1a1; --blue: #2b59f0; --steel: #6e6e6c; --graphite: #4a4a48;
  --font: "Mona Sans", system-ui, sans-serif;   /* the brand file is trimmed: rare characters come from the system */
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --gut: clamp(1.15rem, 3.4vw, 4rem);
  --out: cubic-bezier(.16, 1, .3, 1);
  --giant: clamp(2.7rem, 9.2vw, 11.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.45; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
[data-ground="light"] :focus-visible { outline-color: var(--blue); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .8rem 1.2rem; background: var(--yellow); color: var(--ink); font-weight: 600; }
.skip:focus { top: 1rem; }

/* type */
.giant { font-size: var(--giant); font-weight: 900; font-stretch: 125%; line-height: .9; letter-spacing: -.045em; text-transform: uppercase; }
.giant > span { display: block; }
.giant--two { font-size: clamp(2rem, 7.1vw, 9.4rem); }      /* a scrollbar narrows the page but not vw: leave it room */
.title { font-size: clamp(2.1rem, 4.4vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.link { display: inline-block; padding-bottom: .2em; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .5s var(--out); }
.link:hover { background-size: 0 2px; background-position: 100% 100%; }

/* the mark's 45-degree cut */
.btn { display: inline-block; padding: 1.05em 1.5em 1.05em 1.35em; background: var(--yellow); color: var(--ink); font-weight: 700; line-height: 1; letter-spacing: -.01em; clip-path: polygon(0 0, calc(100% - .95em) 0, 100% .95em, 100% 100%, 0 100%); transition: background .25s, color .25s; }
.btn:hover { background: var(--white); }
.btn:focus-visible { outline-offset: -5px; outline-color: var(--ink) !important; }
.btn--small { font-size: .875rem; padding-block: .95em; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--white); color: var(--ink); }
.btn--ink:focus-visible { outline-color: var(--yellow) !important; }

/* the client's approved logo, put into the pages by tools/put-logo.py. --logo-a colours the diamond, the first chevron and LOGISTICS,
   --logo-b the second chevron and ICLASS. Only the client's three versions are used. Whatever holds the logo sets its height, --logo-h */
:root { --logo-a: #fff; --logo-b: #fbcd05; }            /* on dark */
/* a phone's address bar comes and goes. What is held still is as high as the window without it (100vh), or the page would show under it;
   words and buttons at its foot stand --bar higher, so that they are above the bar when it is there. js/win.js reads both */
:root { --bar: 0px; }
@supports (height: 100svh) { :root { --bar: calc(100vh - 100svh); } }
.win-probe { position: fixed; left: 0; top: 0; width: 0; height: 100vh; visibility: hidden; pointer-events: none; }
.win-probe i { display: block; height: var(--bar); }

.logo { flex: none; width: auto; height: var(--logo-h); }

/* header: a small floating bar of dark glass, the same over every ground. It leaves on the way down and comes back on the way up.
   The glass is a layer of its own: a blur on .top itself would trap the phone menu, which is fixed to the window */
.top { --logo-h: 2.25rem; position: fixed; inset: 1rem 0 auto; z-index: 30; display: flex; align-items: center; width: fit-content; max-width: calc(100% - 2 * var(--gut)); margin-inline: auto; padding: .625rem .625rem .625rem 1.25rem; color: var(--white); transition: transform .6s var(--out); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px; background: rgb(16 18 22 / .74); -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25); transition: opacity .25s; }
.top.is-away:not(:focus-within) { transform: translateY(calc(-100% - 2rem)); }
.top__nav { display: flex; gap: clamp(.9rem, 1.5vw, 1.5rem); margin: 0 clamp(1rem, 1.9vw, 1.9rem) 0 clamp(2rem, 4vw, 4.2rem); font-size: .8125rem; font-weight: 500; }
.top__nav a { padding: .6em 0; white-space: nowrap; transition: color .2s; }
.top__nav a:hover, .top__nav [aria-current] { color: var(--yellow); }
.top__navcta { display: none; }
/* a link with a menu under it (js/nav.js). The menu is the same dark glass, and the space above it belongs to it, so that the pointer can cross */
.top__has { position: relative; display: flex; align-items: center; }
.top__has button { display: grid; place-items: center; width: 1.5rem; height: 2rem; margin-right: -.4rem; }
.top__has svg { width: .6rem; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; transition: rotate .3s var(--out); }
.top__nav .is-here { color: var(--yellow); }
@media (min-width: 1081px) {
  .top__sub { position: absolute; left: -1.15rem; top: 100%; display: grid; min-width: 12.5rem; padding: 1.35rem 0 0; visibility: hidden; opacity: 0; translate: 0 -.4rem; transition: opacity .2s, translate .35s var(--out), visibility 0s .2s; }
  .top__sub::before { content: ""; position: absolute; inset: .85rem 0 0; z-index: -1; border-radius: 10px; background: rgb(16 18 22 / .94); }
  .top__sub a { padding: .62em 1.15rem; }
  .top__sub a:first-child { margin-top: .1rem; } .top__sub a:last-child { margin-bottom: .55rem; }
  .top__has.is-on .top__sub { visibility: visible; opacity: 1; translate: none; transition-delay: 0s; }
  .top__has.is-on svg { rotate: 180deg; }
}
@media (min-width: 1081px) and (hover: hover) {
  .top__has:hover .top__sub { visibility: visible; opacity: 1; translate: none; transition-delay: 0s; }
  .top__has:hover svg { rotate: 180deg; }
}
.top__cta { padding: .86em 1.15em .86em 1em; }
.top__menu { display: none; font-weight: 600; padding: .6rem .7rem .6rem 1rem; }

/* 1. film */
.film { position: relative; background: var(--ink); color: var(--white); }
.film__pin { position: relative; }
.live .film__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #04141f; }
.film__canvas { display: none; }
.live .film__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.film__shade { display: none; }
.live .film__shade { display: block; position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, rgb(13 20 30 / .62), rgb(13 20 30 / 0) 34%, rgb(13 20 30 / 0) 64%, rgb(13 20 30 / .68) 84%), linear-gradient(0deg, rgb(13 20 30 / .6), rgb(13 20 30 / 0) 22%); }
.live .beat { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.live .beat__still { display: none; }
.live .beat:not(.beat--hero) { opacity: 0; visibility: hidden; }


.say { position: absolute; max-width: 8.6em; font-size: clamp(2.1rem, 4.7vw, 5.6rem); font-weight: 600; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.beat--left .say { left: var(--gut); top: 17vh; }
.beat--right .say { right: var(--gut); bottom: 17vh; text-align: right; }
.beat[data-beat="3"] .say { top: 15vh; }
.beat[data-beat="5"] .say { top: 17vh; bottom: auto; }
.live .film__canvas { opacity: 0; transition: opacity .5s; }
.live .is-ready .film__canvas { opacity: 1; }
/* a soft shade behind the words, only where the picture is busy or pale */
.beat[data-beat="2"]::before, .beat[data-beat="4"]::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 75% at 100% 88%, rgb(10 18 28 / .86), rgb(10 18 28 / 0)); }
.beat[data-beat="5"]::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 100% 10%, rgb(10 18 28 / .6), rgb(10 18 28 / 0)); }
.say .w { display: inline-block; }
.say--big { left: var(--gut); right: var(--gut); top: 50%; max-width: none; display: flex; justify-content: space-between; align-items: center; transform: translateY(-50%); font-size: clamp(1.9rem, 4.5vw, 5.4rem); }
.say--big > span { max-width: 5.3em; }
.say--big > span:last-child { text-align: right; }
.tick small { display: block; font-size: .875rem; color: #b4bfce; }
.tick b { font-weight: inherit; }
.tick b.is-long { font-size: .64em; letter-spacing: -.03em; }
html:not([class]) .tick { display: none; }      /* without scripts nothing is counting */
/* the beacon: the logo's diamond. On every count (js/main.js) it flashes white and sends out two rings; they fade before they reach the words */
.beacon { position: relative; display: inline-block; width: .7rem; height: .7rem; margin-left: 1.1rem; vertical-align: middle; translate: 0 -.12rem; background: var(--yellow); rotate: 45deg; }
.beacon::before, .beacon::after { content: ""; position: absolute; inset: -.6rem; border: 2px solid var(--yellow); opacity: 0; }
.live .beacon { animation: lamp 2s infinite; }
.live .beacon::before, .live .beacon::after { animation: ring 2s cubic-bezier(.2, .6, .35, 1) infinite; }
.live .beacon::after { animation-delay: .26s; }
@keyframes lamp { 0% { background-color: var(--white); box-shadow: 0 0 1.3em .3em rgb(251 205 5 / .7); } 40%, 100% { background-color: var(--yellow); box-shadow: 0 0 1.3em .3em rgb(251 205 5 / 0); } }
@keyframes ring { 0% { opacity: 1; scale: .26; } 35% { opacity: .75; } 72%, 100% { opacity: 0; scale: 1; } }

/* the light sections are a drawing sheet: hairlines at the quarters, and a small cross where a row meets one */
:root { --sheet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='1' height='100%25' fill='%230d0d0d' fill-opacity='.13'/%3E%3Cg fill='%230d0d0d' fill-opacity='.6'%3E%3Crect y='50%25' width='1' height='11' transform='translate(0 -5)'/%3E%3Crect y='50%25' width='6' height='1'/%3E%3Crect x='100%25' y='50%25' width='5' height='1' transform='translate(-5 0)'/%3E%3C/g%3E%3C/svg%3E"); }

/* the hero: the crane hook over two films (js/crane.js) */
.hero__stage, .hero__grab, .hero__pause { display: none; }
.live.hero-crane .hero__stage { display: block; position: absolute; left: 0; top: 0; width: calc(100% + 1px); height: calc(100% + 1px); background: #0b1522; box-shadow: 0 1.2rem 3.2rem rgb(2 7 14 / .8); }
.hero__clip { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.live.hero-crane .hero__grab { display: block; position: absolute; left: 0; top: 0; z-index: 2; cursor: grab; touch-action: pan-y; border-radius: 4px; }
.live.hero-crane .hero__grab.is-held { cursor: grabbing; }
.live.hero-crane .hero__pause { display: grid; place-items: center; position: absolute; right: calc(var(--gut) - .7rem); bottom: 1.7rem; z-index: 2; width: 2.75rem; height: 2.75rem; opacity: .8; transition: opacity .3s; }
.live.hero-crane :is(.hero__grab, .hero__pause)[hidden] { display: none; }
.hero__pause:hover { opacity: 1; }
.hero__pause i { width: 13px; height: 15px; border: solid var(--white); border-width: 0 4px; }
.hero__pause[aria-pressed="true"] i { width: 0; height: 0; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent var(--white); margin-left: 3px; }
.hero-crane .top { transition: transform .6s var(--out), opacity .7s; }
/* still version: the hook hangs at rest over the first picture */
.hero__hang { display: none; }
html:not(.live) .beat--hero .beat__still img { object-position: 50% 3%; }
html:not(.live) .hero__hang { display: block; position: absolute; z-index: 1; top: -2%; left: 17%; width: auto; height: 50vh; }   /* between the logo and the menu */
html:not(.live).hero-crane .beat--hero::before, html:not([class]) .beat--hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(6 12 22 / .42), rgb(6 12 22 / 0) 24%), linear-gradient(0deg, rgb(6 12 22 / .9), rgb(6 12 22 / .66) 30%, rgb(6 12 22 / 0) 66%); }

@media (max-width: 800px), (max-aspect-ratio: 9/10) {
  .live.hero-crane .hero__pause { right: calc(50% - 1.375rem); bottom: calc(.6rem + env(safe-area-inset-bottom)); }
  html:not(.live) .hero__hang { left: 9%; height: min(31vh, 52vw); }
}

.is-opening .top { opacity: 0; }
.is-opening .beat--hero::before { opacity: 0 !important; }

/* still version: the same story as a stack of pictures */
html:not(.live) .beat { position: relative; min-height: 70vh; display: grid; overflow: hidden; }
html:not(.live) .beat__still, html:not(.live) .beat__still img { width: 100%; height: 100%; object-fit: cover; }
html:not(.live) .beat__still { position: absolute; inset: 0; }
html:not(.live) .beat--hero { min-height: 100vh; }
html:not(.live) .beat--end { min-height: 92vh; }
html:not(.live) .beat--end img { object-position: 50% 0; }
html:not(.live) .beat--end::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 20 30 / .6), rgb(13 20 30 / 0) 34%, rgb(13 20 30 / 0) 64%, rgb(13 20 30 / .68) 84%); }
html:not(.live) .beat .say { z-index: 1; }

/* 2. the PUS Network */
.pus { position: relative; background: var(--paper); }
.live .pus { height: 440vh; }
.pus__pin { position: relative; overflow: hidden; }
.live .pus__pin { position: sticky; top: 0; height: 100vh; }
.pus__map, .pus__map img, .pus__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pus__map { background: var(--ink); }
.pus__map img { object-fit: cover; opacity: .8; }
.pus__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(13 13 13 / .86), rgb(13 13 13 / 0) 46%); }
.pus__map svg { z-index: 1; }
.r-door, .r-one { fill: none; stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 1; }
.r-door { stroke: var(--white); }
.r-one { stroke: var(--yellow); stroke-width: 11; }
.r-home path { fill: none; stroke: var(--yellow); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 16; }
.r-home mask path { stroke: var(--white); stroke-width: 20; stroke-linecap: butt; stroke-dasharray: 1; }
.live .r-home:not(.is-on) { visibility: hidden; }
.live .r-home.is-on .r-way { animation: way .9s linear infinite; }      /* towards the station */
@keyframes way { to { stroke-dashoffset: 16; } }
.r-stops circle { fill: var(--white); stroke: var(--ink); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.r-station rect { fill: var(--yellow); }
.pus__flood { position: absolute; inset: 0; background: var(--yellow); display: none; }
.live .pus__flood { display: block; visibility: hidden; }
.pus__title { position: relative; padding: 18vh var(--gut); background: var(--paper); }
.live .pus__title { position: absolute; inset: 0; display: grid; align-content: center; padding-block: 0 var(--bar); }
.pus__title span { white-space: nowrap; }
.stop { position: relative; display: inline-block; width: .36em; height: .36em; margin-left: .07em; vertical-align: -.02em; }
.stop img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; max-width: none; }
.pus__words { position: relative; color: var(--white); }
.live .pus__words { position: absolute; inset: auto 0 0; z-index: 1; }
.pus__step { padding: 2rem var(--gut); font-size: clamp(1.7rem, 3.5vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; }
.pus__step b { display: block; font-weight: inherit; }
.pus__step span { display: block; margin-top: .55em; font-size: max(1.0625rem, .36em); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.pus__step .btn { font-size: 1rem; }
.live .pus__step { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: calc(3rem + var(--bar)); opacity: 0; visibility: hidden; }
div.pus__step { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
div.pus__step .btn { flex: none; }
html:not(.live) .pus__pin { display: flex; flex-direction: column; }
html:not(.live) .pus__title { order: -1; }
html:not(.live) .pus__map { position: relative; aspect-ratio: 16 / 9; }
html:not(.live) .pus__words { background: var(--ink); }
html:not(.live) .r-stops circle { fill: var(--yellow); }

/* 3. five pillars: pictures laid on the sheet, with --space on every side of each. The sheet itself (css/home.css) stands still */
.five { --space: clamp(1rem, 2.2vw, 2.75rem); position: relative; background: var(--paper); color: var(--white); }
.live .five { height: calc(100vh + 185vw); }
.five__pin { position: relative; isolation: isolate; }
.live .five__pin { position: sticky; top: 0; height: 100vh; overflow: clip; }
.live .five__track { display: flex; width: max-content; height: 100%; will-change: transform; }
.five__row { display: contents; }
.five__head { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 17vh var(--gut) calc(var(--space) + 2.6rem + var(--bar)); color: var(--ink); }
.live .five__head { flex: none; width: 44vw; }
.five__head .title { max-width: 7em; font-size: clamp(2.4rem, 5.4vw, 6.4rem); }
.pane { position: relative; overflow: hidden; margin: 0 var(--space) var(--space); }
.live .pane { flex: none; width: 62vw; margin: var(--space) var(--space) var(--space) 0; }
.pane img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.live .pane img { width: 113.7%; will-change: transform; }
.pane::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgb(13 13 13 / .92) 8%, rgb(13 13 13 / .6) 42%, rgb(13 13 13 / 0)); }
/* on a wide screen a picture ends in the logo's chevron and the next one begins with it, so the space between them is a > as well */
@media (min-width: 801px) and (min-aspect-ratio: 1/1) {
  .live .pane { --tip: 25vh; --tip: 25svh; width: calc(62vw + var(--tip)); margin-right: calc(var(--space) * 1.25 - var(--tip)); clip-path: polygon(0 0, calc(100% - var(--tip)) 0, 100% 50%, calc(100% - var(--tip)) 100%, 0 100%, var(--tip) 50%); }
  .live .pane:last-child { width: 62vw; margin-right: var(--space); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--tip) 50%); }
  .live .pane .pane__body { left: calc(var(--tip) * .6 + 1.5rem); right: calc(var(--tip) * .88 + 1.5rem); }
  .live .pane:last-child .pane__body { right: var(--gut); }
}
.pane__body { position: absolute; z-index: 1; left: var(--gut); right: var(--gut); bottom: calc(2.6rem + var(--bar)); display: grid; grid-template-columns: 1fr auto; gap: .9rem 2rem; align-items: end; }
.pane h3 { margin: 0; grid-column: 1 / -1; font-size: clamp(2rem, 4.2vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.pane p { max-width: 25em; }
html:not(.live) .pane { height: 80vh; }

/* 4. distribution as a service */
.daas { background: var(--paper); padding: clamp(5rem, 11vw, 10.5rem) var(--gut) clamp(4rem, 8vw, 8rem); }
.daas__lead { font-size: clamp(1.5rem, 2.35vw, 2.6rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.daas__lead .w { transition: color .35s; }
.live .daas__lead .w:not(.on) { color: #8d8d88; }
.for { margin-top: clamp(4rem, 8vw, 8rem); max-width: 25em; font-size: clamp(1.5rem, 3.3vw, 3.8rem); font-weight: 600; line-height: 1.14; letter-spacing: -.035em; color: var(--steel); }
.for a { color: var(--ink); background: linear-gradient(var(--yellow), var(--yellow)) 0 92% / 0 .16em no-repeat; transition: background-size .45s var(--out); }
.for a:hover, .for a:focus-visible { background-size: 100% .16em; }

/* 5. Nigeria is in css/home.css */

/* 6. invitation */
.go { position: relative; background: var(--yellow); padding: clamp(5rem, 10vw, 9.5rem) 0 clamp(3rem, 5vw, 5rem); overflow: hidden; }
.go { isolation: isolate; --c: clamp(4rem, 6.3vw, 7.5rem); --s: 2; --gx: 5.5; }
/* behind it a grid of broken lines with a point at each crossing, which fades away at its edges, after Terminal Industries'. A light goes along its lines */
.go::before { content: ""; position: absolute; z-index: -1; inset: 0; background: 0 0 / var(--c) var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cg fill='%230d0d0d' fill-opacity='.2'%3E%3Crect y='50%25' width='31%25' height='1'/%3E%3Crect x='69%25' y='50%25' width='31%25' height='1'/%3E%3Crect x='50%25' width='1' height='31%25'/%3E%3Crect x='50%25' y='69%25' width='1' height='31%25'/%3E%3C/g%3E%3Crect x='50%25' y='50%25' width='4' height='4' transform='translate(-1.5 -1.5)' fill='%230d0d0d' fill-opacity='.5'/%3E%3C/svg%3E"); -webkit-mask: radial-gradient(58% 72% at 66% 44%, #000 35%, transparent); mask: radial-gradient(58% 72% at 66% 44%, #000 35%, transparent); }
.live .go::after { content: ""; position: absolute; z-index: -1; left: calc(var(--gx) * var(--c)); top: calc(.5 * var(--c)); width: 8rem; height: 6rem; margin: -3rem -4rem; background: linear-gradient(var(--ink), var(--ink)) 50% 50% / 1.5rem 2px no-repeat, radial-gradient(closest-side, rgb(255 255 255 / .95), rgb(255 255 255 / .45) 40%, rgb(255 255 255 / 0)); animation: go-light 15s linear infinite; }
/* x in steps of --s squares, y in squares; it turns on the spot at each corner */
@keyframes go-light {
  0% { transform: translate(0, calc(1 * var(--c))); opacity: 0; }
  4% { opacity: 1; }
  20% { transform: translate(calc(2 * var(--s) * var(--c)), calc(1 * var(--c))); }
  21% { transform: translate(calc(2 * var(--s) * var(--c)), calc(1 * var(--c))) rotate(90deg); }
  41% { transform: translate(calc(2 * var(--s) * var(--c)), calc(4 * var(--c))) rotate(90deg); }
  42% { transform: translate(calc(2 * var(--s) * var(--c)), calc(4 * var(--c))) rotate(0deg); }
  58% { transform: translate(calc(4 * var(--s) * var(--c)), calc(4 * var(--c))) rotate(0deg); }
  59% { transform: translate(calc(4 * var(--s) * var(--c)), calc(4 * var(--c))) rotate(-90deg); }
  79% { transform: translate(calc(4 * var(--s) * var(--c)), calc(1 * var(--c))) rotate(-90deg); }
  80% { transform: translate(calc(4 * var(--s) * var(--c)), calc(1 * var(--c))) rotate(-180deg); }
  94% { opacity: 1; }
  98%, 100% { transform: translate(calc(2 * var(--s) * var(--c)), calc(1 * var(--c))) rotate(-180deg); opacity: 0; }
}
@media (max-width: 800px) { .go { --s: 1; --gx: .5; } .go::before { -webkit-mask-image: radial-gradient(110% 60% at 60% 42%, #000 35%, transparent); mask-image: radial-gradient(110% 60% at 60% 42%, #000 35%, transparent); } }
.go .giant { padding: 0 var(--gut); font-size: clamp(2.05rem, 7.3vw, 9.3rem); letter-spacing: -.03em; }
.go__road { margin: clamp(1.5rem, 3vw, 3rem) 0; }
.go__road img { width: min(46vw, 56rem); height: auto; margin-block: -4vw; will-change: transform; }
.go__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; padding: 0 var(--gut); }
.go__foot p { margin-right: auto; font-size: clamp(1.6rem, 3.3vw, 3.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }

/* footer, arranged like Terminal Industries': the logo, three short lists, and lines with a light travelling on them. The lines turn the way
   the logo does, at 45 degrees, and the light is one yellow parcel. The words, the links and the lines are in tools/put-footer.py.
   --u is one unit of the drawing. The lines and the light are both measured in it, so they keep to each other at every width */
.foot { --logo-h: 2.9rem; --u: calc(100vw / 1500); position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: 5fr 4fr 3fr; column-gap: 1.5rem; padding: 8.5rem var(--gut) 1.6rem; background: var(--ink); color: var(--white); }
.foot__lines { position: absolute; left: 0; top: 0; z-index: -1; width: calc(1500 * var(--u)); height: auto; fill: none; stroke: rgb(255 255 255 / .17); }
.foot__lines path { vector-effect: non-scaling-stroke; }
/* it rests at a corner, or travels. On a wide window it goes round the chevron, under the edge and up beside the third list */
.foot__light { position: absolute; left: 0; top: 0; z-index: -1; width: 8px; height: 8px; margin: -4px; background: var(--yellow); translate: calc(545 * var(--u)) calc(217 * var(--u)); rotate: 45deg; }
.foot__light::before { content: ""; position: absolute; inset: -72px; background: radial-gradient(closest-side, rgb(251 205 5 / .2), rgb(251 205 5 / .06) 45%, rgb(251 205 5 / 0)); }
.live .foot__light { animation: foot-wide 20s linear infinite; }
@media (min-width: 801px) { .foot__c { display: none; } }
@media (max-width: 1080px) {
  .foot__a { display: none; }
  .foot__light { translate: calc(1300 * var(--u)) calc(72 * var(--u)); }
  .live .foot__light { animation-name: foot-tablet; }
}
@media (max-width: 800px) {
  .foot__b { display: none; }
  .foot__light { translate: calc(560 * var(--u)) calc(152 * var(--u)); }
  .live .foot__light { animation-name: foot-phone; }
}
/* each corner, and how far along the way it comes */
@keyframes foot-wide {
  0% { translate: calc(-20 * var(--u)) calc(72 * var(--u)); }
  17.07% { translate: calc(400 * var(--u)) calc(72 * var(--u)); }
  25.4% { translate: calc(545 * var(--u)) calc(217 * var(--u)); }
  52% { translate: calc(82 * var(--u)) calc(680 * var(--u)); }
  52.01% { translate: calc(1071 * var(--u)) calc(680 * var(--u)); }
  75.08% { translate: calc(1071 * var(--u)) calc(112 * var(--u)); }
  77.38% { translate: calc(1111 * var(--u)) calc(72 * var(--u)); }
  85.06% { translate: calc(1300 * var(--u)) calc(72 * var(--u)); }
  100% { translate: calc(1560 * var(--u)) calc(332 * var(--u)); }
}
@keyframes foot-tablet {
  0% { translate: calc(1071 * var(--u)) calc(1200 * var(--u)); }
  63.95% { translate: calc(1071 * var(--u)) calc(112 * var(--u)); }
  67.28% { translate: calc(1111 * var(--u)) calc(72 * var(--u)); }
  78.39% { translate: calc(1300 * var(--u)) calc(72 * var(--u)); }
  100% { translate: calc(1560 * var(--u)) calc(332 * var(--u)); }
}
@keyframes foot-phone {
  0% { translate: calc(-20 * var(--u)) calc(72 * var(--u)); }
  25.5% { translate: calc(480 * var(--u)) calc(72 * var(--u)); }
  31.26% { translate: calc(560 * var(--u)) calc(152 * var(--u)); }
  100% { translate: calc(560 * var(--u)) calc(1500 * var(--u)); }
}
.foot__logo { justify-self: start; align-self: start; }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.foot h2 { margin: .25rem 0 1.75rem; font: 600 .6875rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.foot :is(li, .foot__reach p) { font-size: 1.25rem; font-weight: 500; letter-spacing: -.012em; line-height: 1.75; }
.foot li { white-space: nowrap; }
.foot a:hover { color: var(--yellow); }
.foot__reach span { display: block; color: #8d8d88; transition: color .2s; }
.foot__reach a:hover span { color: inherit; }
.foot__reach address { max-width: 19em; margin: .5rem 0 1.1rem; font-size: .9375rem; font-style: normal; line-height: 1.45; color: #a1a19c; text-wrap: pretty; }
.foot__reach svg { display: inline-block; width: auto; height: .8em; margin-right: .6em; vertical-align: -.04em; fill: currentColor; }
.foot .foot__social { display: flex; gap: .6rem; margin-top: 1.3rem; }
.foot__social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgb(255 255 255 / .22); transition: background-color .2s, color .2s, border-color .2s; }
.foot .foot__social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.foot .foot__social svg { display: block; width: 1.25rem; height: 1.25rem; margin: 0; }
.foot__social b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* the tagline, from margin to margin. The lines and the light end at its upper edge */
.foot__tag { position: relative; grid-column: 1 / -1; margin: 5.6rem calc(-1 * var(--gut)) 0; padding: 2.1rem var(--gut) 0; font-size: 4.5vw; font-weight: 800; line-height: 1.04; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: var(--ink); -webkit-text-stroke: 1.6px rgb(255 255 255 / .25); paint-order: stroke fill; }   /* an outline that looks the colour of the lines above (.17): it is thinner, .8px, so it needs more white: the fill, the ground's own colour, covers the inner half of the stroke and the seams inside the letters */
.foot__tag canvas { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + 1.6rem); pointer-events: none; }   /* the light and the parcels, js/footer.js */
.foot__tag::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -24rem; background: var(--ink); border-top: 1px solid rgb(255 255 255 / .17); }
.foot__copy, .foot__say { align-self: end; margin-top: 2.2rem; font-size: .8125rem; color: #8d8d88; }
.foot__say { grid-column: 2 / -1; text-align: right; }
.foot__say b { font-weight: 500; color: var(--white); }

@media (max-width: 1080px) {
  .top { --logo-h: 2.1rem; inset: .75rem var(--gut) auto; width: auto; max-width: none; padding: .5rem .5rem .5rem 1rem; }
  .top__nav { display: none; margin: 0; }
  .top__menu { display: block; }
  .top__cta { margin-left: auto; }
  .top.is-open::before { opacity: 0; }
  .top.is-open .top__nav { display: flex; flex-direction: column; justify-content: center; gap: .3rem; position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: -1; padding: 5rem calc(var(--gut) + 1rem) 2rem; background: var(--ink); font-size: clamp(1.3rem, min(8vw, 4.7vh), 2.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
  .top__navcta { display: block; }
  .foot { grid-template-columns: 9fr 3fr; }
  .foot__logo { grid-column: 1 / -1; }
  .foot :is(.foot__nav, .foot__reach) { margin-top: 4.5rem; }
  .foot :is(li, .foot__reach p) { font-size: 1.1875rem; }
  .foot__say { grid-column: 2; text-align: left; }
  .foot__say b { display: block; }
}
@media (max-width: 800px) {
  .top__cta { display: none; }
  .top__menu { margin-left: auto; }
  .say, .beat[data-beat="3"] .say, .beat[data-beat="5"] .say { top: 13vh; bottom: auto; left: var(--gut); right: var(--gut); text-align: left; font-size: 11.5vw; }
  .beat[data-beat="1"]::before, .beat[data-beat="2"]::before, .beat[data-beat="4"]::before, .beat[data-beat="5"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 18 28 / .78) 12%, rgb(10 18 28 / 0) 46%); }
  .pus__title .giant { font-size: 12.9vw; white-space: nowrap; }
  .giant--two, .go .giant { font-size: 8.9vw; }
  .go .giant { font-size: 10vw; text-wrap: balance; }
  .giant--two > span, .go .giant > span { display: inline; }
  div.pus__step { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .live .pus__step { padding-bottom: calc(2rem + var(--bar)); }
  .five__head { padding-bottom: calc(var(--space) + 2rem + var(--bar)); }
  .five__head .title { font-size: 12vw; }
  .pane__body { grid-template-columns: 1fr; bottom: calc(2rem + var(--bar)); }
  .pane h3 { font-size: 9.4vw; }
  .pane__body .link { justify-self: start; }
  .go__road img { width: 105vw; margin-block: -8vw; }
  .go__foot p { width: 100%; }
  .foot { --u: calc(100vw / 600); grid-template-columns: 1fr; padding-top: 5.6rem; }
  .foot :is(.foot__nav, .foot__reach) { grid-column: 1 / -1; }
  .foot .foot__nav { margin-top: 2.2rem; }
  .foot h2 { margin-bottom: .55rem; }
  .foot :is(li, .foot__reach p) { line-height: 1.35; }
  .foot :is(li, .foot__reach p) a { display: block; padding: .53rem 0; }      /* as high as a finger */
  .foot .foot__reach { margin-top: 1.4rem; }
  .foot__reach address { margin: .3rem 0 .5rem; }
  .foot__tag { margin-top: 2.2rem; padding-top: 1.5rem; font-size: 7.65vw; }
  .foot__tag span { display: block; }
  .foot__copy { grid-row: 6; margin-top: .5rem; }
  .foot__say { grid-row: 5; grid-column: 1; margin-top: 1.5rem; }
  .foot__say b { display: inline; }
}
/* five pillars on a phone: an ordinary section, not held still. The cards are swept aside with a finger, and the next one shows at the edge.
   SWIPE in js/main.js is the same condition */
@media (max-width: 800px), (max-aspect-ratio: 1/1), (max-height: 500px) and (pointer: coarse) {
  .live .five, .live .five__pin { height: auto; }
  .live .five__pin { position: relative; padding: clamp(4.2rem, 10vw, 7rem) 0 clamp(3.6rem, 9vw, 6rem); }
  .live .five__track { display: block; width: auto; height: auto; }
  .live .five__head { width: auto; padding: 0 var(--gut) 1.8rem; gap: 1.2rem; }
  .live .five__head .title { max-width: 7em; font-size: min(11.4vw, 4.6rem, 15svh); }
  .live .five__row { display: flex; gap: .8rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding-inline: var(--gut); scrollbar-width: none; }
  .live .five__row::-webkit-scrollbar { display: none; }
  .live .five__row .pane, .live .five__row .pane:last-child { width: min(78vw, 25rem); height: clamp(17.5rem, 58svh, 31rem); margin: 0; clip-path: none; scroll-snap-align: start; }
  .live .five__row .pane img { width: 100%; }
  .live .five__row .pane::after { inset: 22% 0 0; background: linear-gradient(0deg, rgb(13 13 13 / .94) 24%, rgb(13 13 13 / .74) 52%, rgb(13 13 13 / 0)); }
  .live .five__row .pane .pane__body, .live .five__row .pane:last-child .pane__body { grid-template-columns: 1fr; left: 1.2rem; right: 1.2rem; bottom: 1.3rem; gap: .7rem; }
  .live .five__row .pane__body .link { justify-self: start; }
  .live .five__row .pane h3 { font-size: min(8.2vw, 2.6rem); }
}
/* the film's last line: on an upright screen it goes below the box, on a dark ground */
@media (max-width: 800px), (max-aspect-ratio: 1/1) {
  .say--big { top: auto !important; bottom: calc(5.7rem + var(--bar) + env(safe-area-inset-bottom)) !important; display: block; transform: none; font-size: min(10.4vw, 6.4vh); text-align: left; }
  .say--big > span, .say--big > span:last-child { display: inline; text-align: left; }
  .live .beat--end::before, html:not(.live) .beat--end::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(0deg, rgb(10 14 20 / .94) 45%, rgb(10 14 20 / .85) 64%, rgb(10 14 20 / 0)); }
}

.top__navnote { display: none; }

@media (max-width: 1080px) {
  .top.is-open .top__navcta { align-self: flex-start; margin-top: 1.1rem; padding: .62em 1.2em .62em .9em; background: var(--yellow); color: var(--ink); clip-path: polygon(0 0, calc(100% - .7em) 0, 100% .7em, 100% 100%, 0 100%); }
  /* rows that stay where they are when one of them opens. The button lies over the whole row, so a tap on the name opens it too */
  .top.is-open .top__nav { gap: 0; overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; padding-top: 5.6rem; }
  .top__nav > a:not(.top__navcta, .top__navnote), .top__has { flex: none; border-bottom: 1px solid rgb(255 255 255 / .15); }
  .top__nav > a, .top__has > a { display: block; padding: .46em 0; }
  .top__has { display: grid; }
  .top__has > * { grid-area: 1 / 1; }
  .top__has button { width: 100%; height: 100%; margin: 0; justify-items: end; padding-right: .3rem; }
  .top__has svg { width: 1.05rem; stroke-width: 1.5; }
  .top__has.is-on svg { rotate: 180deg; }
  .top__nav .top__sub { grid-area: 2 / 1; display: grid; max-height: 0; overflow: hidden; visibility: hidden; font-size: 1.125rem; font-weight: 500; letter-spacing: -.012em; color: #c9c9c4; transition: max-height .35s var(--out), visibility 0s .35s; }
  .top__nav .is-on .top__sub { max-height: 10rem; visibility: visible; transition-delay: 0s; }
  .top__nav .top__sub a { padding: .62em 0 .62em 1rem; }
  .top__nav .top__sub a:last-child { margin-bottom: .7rem; }
  .top.is-open .top__navnote { display: block; margin-top: .5rem; font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; color: #a1a19c; }
}

/* clients, on the homepages and on About: a square each on the sheet */
.clients { --rule: rgb(13 13 13 / .16); position: relative; background: var(--paper); padding-top: clamp(4.5rem, 8vw, 8.5rem); }
.clients .title { padding: 0 var(--gut); }
.clients__row { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(2.2rem, 4vw, 4.4rem); border: solid var(--rule); border-width: 1px 0; background: var(--white); }
.clients__row li { display: grid; place-items: center; height: clamp(9rem, 16.5vw, 20rem); overflow: clip; }
.clients__row li + li { border-left: 1px solid var(--rule); }
.clients__row img { width: var(--w); max-width: 15rem; height: auto; }
.live .clients__row img { transition: translate 1s var(--out), opacity .5s; }
.live .clients__row li:nth-child(2) img { transition-delay: .09s; } .live .clients__row li:nth-child(3) img { transition-delay: .18s; } .live .clients__row li:nth-child(4) img { transition-delay: .27s; } .live .clients__row li:nth-child(5) img { transition-delay: .36s; }
.live .is-waiting li img { translate: 0 9rem; opacity: 0; }
@media (max-width: 800px) {
  .clients__row { grid-template-columns: repeat(6, 1fr); }
  .clients__row li { grid-column: span 3; height: 34vw; }
  .clients__row li:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .clients__row li:nth-child(odd) { border-left: 0; }
  .clients__row li:last-child { grid-column: 1 / -1; }
  .clients__row li:last-child img { width: 21%; }
}

/* the three routes from Nigeria: js/routes.js */
.routes__ng { fill: var(--yellow); }
.routes__to { fill: rgb(255 255 255 / .05); stroke: rgb(255 255 255 / .55); stroke-width: 1.2; stroke-linejoin: round; transition: fill .6s; }
.routes__to.is-on, html:not(.live) .routes__to { fill: rgb(251 205 5 / .34); }
.routes__way { fill: none; stroke: var(--yellow); stroke-width: 3.5; }
.live .routes__way { stroke-dasharray: 1; stroke-dashoffset: 1; }
.routes__box { fill: var(--white); opacity: 0; }
