/* Taifa Mining & Civils public site (/taifa, the website home page). 0.17.1
 * Light throughout: paper, white and sand grounds, ink type, Taifa yellow #F7D100 as the mark and highlight,
 * blue #0076D1 for the port and focus. Bebas Neue for display, Lato for reading, JetBrains Mono for labels.
 * Motion comes from real material only: the hero map (a 2D canvas), Taifa's own drone film cut into chapters,
 * and site photographs. Reduced motion gets the same content as a still page.
 */
@font-face { font-family: "Taifa Display"; src: url("/assets/taifa_theme/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Taifa Text"; src: url("/assets/taifa_theme/fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Taifa Text"; src: url("/assets/taifa_theme/fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Taifa Mono"; src: url("/assets/taifa_theme/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Taifa Mono"; src: url("/assets/taifa_theme/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F4F2EC; --white: #FFFFFF; --sand: #EAE5D9; --sand-2: #DDD6C6;
  --ink: #121316; --ink-2: #2A2D33; --muted: #5C636E; --soft: #8B8F96;
  --y: #F7D100; --y-l: #FFE34D; --y-ink: #7A6100; --blue: #0076D1;
  --line: rgba(18, 19, 22, .12); --line-2: rgba(18, 19, 22, .22);
  --stripe: linear-gradient(90deg, #1EB53A 0 30%, #FCD116 30% 33%, #000 33% 67%, #FCD116 67% 70%, #00A3DD 70% 100%);
  --f-d: "Taifa Display", "Bebas Neue", "Arial Narrow", sans-serif;
  --f-t: "Taifa Text", "Lato", "Helvetica Neue", Arial, sans-serif;
  --f-m: "Taifa Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gut: clamp(20px, 4vw, 56px); --max: 1440px;
  --sec: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(18,19,22,.06), 0 12px 32px -12px rgba(18,19,22,.18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-t); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
body::before { content: ""; position: fixed; z-index: 90; inset: 0 0 auto; height: 3px; background: var(--stripe); pointer-events: none; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--y); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.mono { font: 400 12px/1.4 var(--f-m); letter-spacing: .06em; text-transform: uppercase; }
.tag { font: 400 12px/1 var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.tag::before { content: ""; width: 9px; height: 9px; background: var(--y); box-shadow: inset 0 0 0 1px rgba(18,19,22,.25); flex: none; }
.tag.center { justify-content: center; }
.display { font: 400 clamp(64px, 11.2vw, 200px)/.86 var(--f-d); text-transform: uppercase; letter-spacing: .005em; color: var(--ink); }
.display em, .title em { font-style: normal; background: linear-gradient(transparent 58%, var(--y) 58%, var(--y) 92%, transparent 92%); padding: 0 .04em; }
.display.sm { font-size: clamp(54px, 8.4vw, 150px); }
.title { font: 400 clamp(46px, 6.2vw, 104px)/.92 var(--f-d); text-transform: uppercase; color: var(--ink); margin-top: 22px; }
.sec-head { margin-bottom: clamp(48px, 6vw, 96px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--y); color: var(--ink); font: 600 13px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(18,19,22,.08); transition: background-color .3s var(--ease), transform .3s var(--ease); }
.btn:hover { background: var(--y-l); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 150; background: var(--paper); color: var(--muted); display: grid; grid-template-columns: 1fr minmax(0, 62vmin) 1fr; grid-template-rows: auto 1fr auto; padding: 32px var(--gut); gap: 16px; font: 400 11px/1.9 var(--f-m); letter-spacing: .08em; text-transform: uppercase; transition: transform 1s var(--ease); }
.loader.out { transform: translateY(-100%); }
.ld-brand { grid-column: 1 / -1; color: var(--ink); font: 400 28px/1 var(--f-d); letter-spacing: .04em; }
.ld-sites { align-self: center; }
.ld-sites li { transition: color .4s; }
.ld-sites li.on { color: var(--ink); }
.ld-sites li.on::before { content: "● "; color: var(--y-ink); }
.loader canvas { width: 100%; height: 62vmin; align-self: center; }
.ld-work { align-self: center; text-align: right; }
.ld-pct { grid-column: 3; justify-self: end; color: var(--ink); font: 400 clamp(64px, 9vw, 140px)/.8 var(--f-d); display: flex; align-items: flex-start; }
.ld-pct span { font-size: .35em; color: var(--y-ink); margin-left: 4px; }
html:not(.js) .loader { display: none; }

/* ---------- ticker and header ---------- */
.ticker { position: fixed; z-index: 60; top: 3px; left: 0; right: 0; height: 34px; display: flex; align-items: center; gap: 24px; padding: 0 var(--gut); background: rgba(18,19,22,.92); border-bottom: 1px solid rgba(255,255,255,.08); font: 400 11px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: #B4B9C0; overflow: hidden; transition: transform .5s var(--ease); }
.tk-win { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { width: max-content; display: flex; gap: 40px; white-space: nowrap; animation: tick 48s linear infinite; }
.tk-track span:first-child { color: var(--y); }
.tk-links { display: flex; gap: 20px; flex: none; }
.tk-links a { text-decoration: none; color: #E7E9EC; }
.tk-links a:hover { color: var(--y); }
@keyframes tick { to { transform: translateX(-50%); } }
.bar { position: fixed; z-index: 55; top: 37px; left: 0; right: 0; display: flex; align-items: center; gap: 24px; padding: 14px var(--gut); color: var(--ink); transition: top .5s var(--ease), background-color .4s, box-shadow .4s; }
body:has(.bar.solid) .ticker { transform: translateY(-140%); }
/* the frosted glass sits on a layer behind the bar, never on the bar itself: a backdrop-filter on the bar would
   trap the full-screen phone menu (a fixed child) inside the bar's 70px box */
.bar::before { content: ""; position: absolute; inset: 0; z-index: -2; background: rgba(244,242,236,.86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .4s; pointer-events: none; }
.bar.solid { top: 3px; }
.bar.solid::before { opacity: 1; }
.brand { display: inline-flex; line-height: 0; flex: none; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav > a { position: relative; color: inherit; text-decoration: none; font: 400 12px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; padding: 8px 0; }
.nav > a i { font-style: normal; color: var(--muted); margin-right: 6px; font-size: 10px; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--y); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-staff { display: none; }
/* SW | EN (Kira, 24 Oct 2026): one switch for the site, the sign-in pages and ESS. The yellow bubble slides to
   the chosen side with a little spring and stretches as it travels; only transform and scale move, so it stays
   smooth on any phone. Reduced motion: it simply moves. */
.lang { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; height: 40px; padding: 3px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.lang button { position: relative; z-index: 1; min-width: 42px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 12px/1 var(--f-m); letter-spacing: .08em; color: var(--muted); transition: color .3s var(--ease); }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-bub { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--y); box-shadow: 0 1px 2px rgba(18,19,22,.2); transition: transform .46s cubic-bezier(.34, 1.45, .64, 1); will-change: transform; }
.lang[data-lang="en"] .lang-bub { transform: translateX(100%); }
.lang.go .lang-bub { animation: lang-stretch .46s cubic-bezier(.34, 1.2, .64, 1); }
@keyframes lang-stretch { 0% { scale: 1 1; } 35% { scale: 1.28 .86; } 70% { scale: .96 1.04; } 100% { scale: 1 1; } }
/* the words that change fade in under the bubble */
html.swapping [data-i18n] { animation: lang-in .32s var(--ease); }
@keyframes lang-in { from { opacity: .2; } to { opacity: 1; } }
.menu { display: none; width: 46px; height: 46px; border: 0; border-radius: 999px; background: var(--y); cursor: pointer; place-items: center; align-content: center; gap: 6px; }
.menu span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .4s var(--ease); }

/* ---------- pinned stages ---------- */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ---------- 1. hero ---------- */
.hero { position: relative; height: 150vh; background: radial-gradient(70% 80% at 78% 45%, var(--white) 0%, var(--paper) 62%); --p: 0; }
.hero-map { position: absolute; top: 0; bottom: 0; right: 0; width: 56%; }
.map { width: 100%; height: 100%; --fx: .6; --fy: .55; --fw: .74; --fh: .74; }
.map-labels { position: absolute; inset: 0; pointer-events: none; overflow: clip; }   /* a label in motion never widens the page */
.map-label { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.map-label .c { position: absolute; left: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; padding: 6px 9px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); border-left: 3px solid var(--y); font: 400 10px/1.2 var(--f-m); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.map-label.l .c { left: auto; right: 12px; }
.map-label.b .c { bottom: auto; top: 10px; }
.map-label.none { display: none; }
.map-label b { color: var(--ink); font-weight: 600; }
.map-label i { font-style: normal; color: var(--muted); }
.map-label.port .c { border-left-color: var(--blue); }
.hero-copy { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-44% - var(--p) * 80px)); opacity: calc(1 - var(--p) * 1.4); pointer-events: auto; }
.hero-copy > * { max-width: 44%; }
.hero-copy .tag { margin-bottom: 28px; }
.hero .display { font-size: clamp(56px, 7.4vw, 140px); max-width: none; }
.lede { max-width: 520px; margin-top: 30px; color: var(--muted); font-size: clamp(16px, 1.25vw, 19px); }
.lede b { color: var(--ink); }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; color: var(--muted); opacity: calc(1 - var(--p) * 3); }
html.still .hero, html:not(.js) .hero { height: auto; }

/* ---------- 2. statement ---------- */
.say { background: var(--white); padding: var(--sec) 0; }
.say-text { margin-top: 36px; font: 400 clamp(42px, 6.2vw, 108px)/.95 var(--f-d); text-transform: uppercase; color: var(--ink); max-width: 1180px; }
.js .say-text .w { color: #8E897F; transition: color .35s; }   /* unlit words still pass 3:1 for large text */
.js .say-text .w.lit { color: var(--ink); }
.numbers { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 110px); margin-top: clamp(72px, 9vw, 140px); align-items: start; }
.say-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); border-radius: 4px; }
.say-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.nums li { display: grid; gap: 6px; padding: 26px 0; border-top: 1px solid var(--line); }
.nums li:last-child { border-bottom: 1px solid var(--line); }
.nums b { font: 400 clamp(64px, 8vw, 132px)/.86 var(--f-d); color: var(--ink); font-variant-numeric: tabular-nums; }
.nums li > span { color: var(--muted); font-size: 15px; }

/* ---------- 2b. nation ---------- */
.nation { background: var(--sand); padding: var(--sec) 0; }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.fig { padding: 36px 32px 8px 0; }
.fig + .fig { padding-left: 32px; border-left: 1px solid var(--line-2); }
.fig b { display: flex; align-items: flex-start; font: 400 clamp(88px, 11vw, 196px)/.82 var(--f-d); color: var(--ink); font-variant-numeric: tabular-nums; }
.fig i { font: 700 clamp(20px, 2vw, 30px)/1 var(--f-t); font-style: normal; color: var(--ink); margin: 10px 0 0 6px; padding: 2px 6px; background: var(--y); }
.fig i.pre { margin: 10px 8px 0 0; }
.fig p { margin-top: 22px; max-width: 300px; color: var(--ink-2); }
.note { margin-top: clamp(56px, 7vw, 100px); max-width: 860px; font-size: clamp(20px, 2vw, 28px); line-height: 1.4; color: var(--ink); }
.src { margin-top: 28px; color: var(--muted); }

/* ---------- 3. fleet: the drone film in chapters ---------- */
.fleet { position: relative; height: 560vh; background: var(--paper); }
.fleet .stage { display: flex; flex-direction: column; padding: 108px 0 3vh; }
.fleet-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.fleet-head .title { font-size: clamp(40px, 4.6vw, 76px); margin-top: 14px; }
.fleet-note { max-width: 340px; color: var(--muted); font-size: 15px; }
.reel-wrap { position: relative; flex: 1; min-height: 0; margin-top: 24px; }
.reel { position: absolute; inset: 0 var(--gut); overflow: hidden; border-radius: 6px; background: var(--sand-2); box-shadow: var(--shadow); }
.reel-poster, .reel-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-v { z-index: 1; opacity: 0; transition: opacity .6s ease; transform: scale(1.02); }
.reel-v.on { opacity: 1; animation: settle 3s var(--ease) both; }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1.02); } }
.reel-ui { position: absolute; z-index: 2; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 18px; }
.reel-rec { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; background: rgba(255,255,255,.9); color: var(--ink); border-radius: 3px; }
.reel-rec i { width: 7px; height: 7px; border-radius: 50%; background: #E0352B; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.ticks { display: flex; gap: 6px; padding: 10px 12px; background: rgba(255,255,255,.9); border-radius: 3px; }
.ticks li { width: 34px; height: 3px; background: rgba(18,19,22,.18); overflow: hidden; }
.ticks i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--f, 0)); }
.chaps { position: absolute; left: calc(var(--gut) * 2); bottom: clamp(20px, 4vh, 40px); width: min(400px, 40%); }
.chap { position: absolute; left: 0; bottom: 0; width: 100%; padding: 22px 24px 24px; background: var(--white); border-radius: 4px; box-shadow: var(--shadow); border-top: 4px solid var(--y); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.chap.on { opacity: 1; transform: none; transition: opacity .55s var(--ease) .15s, transform .55s var(--ease) .15s; }
.chap b { color: var(--muted); }
.chap h3 { margin-top: 10px; font: 400 clamp(34px, 3.2vw, 52px)/.92 var(--f-d); text-transform: uppercase; }
.chap p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- 4. services ---------- */
.services { background: var(--white); padding: var(--sec) 0; }
.svc li { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.svc li:last-child { border-bottom: 1px solid var(--line); }
.svc .mono { color: var(--muted); }
.svc h3 { font: 400 clamp(40px, 5vw, 84px)/.9 var(--f-d); text-transform: uppercase; color: var(--ink); transition: transform .5s var(--ease); }
.svc p { color: var(--muted); max-width: 440px; transition: opacity .4s; }
.svc img { position: absolute; right: 0; top: 50%; width: 300px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); transform: translate(20px, -50%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease), transform .6s var(--ease); z-index: 2; }
@media (hover: hover) and (min-width: 1081px) {
  .svc li:hover h3 { transform: translateX(12px); }
  .svc li:hover h3 { background: linear-gradient(transparent 60%, var(--y) 60%, var(--y) 90%, transparent 90%); }
  .svc li:hover img { opacity: 1; transform: translate(0, -50%) scale(1); }
  .svc li:hover p { opacity: .12; }
}

/* ---------- 5. life of a mine: stages and site photographs ---------- */
.life { position: relative; height: 440vh; background: var(--paper); }
.life-in { height: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; padding-top: 80px; padding-bottom: 4vh; }
.life-copy { display: flex; flex-direction: column; }
.life-copy .title { font-size: clamp(38px, 4vw, 66px); }
.stages { margin-top: 32px; display: grid; }
/* steps not yet reached are greyed with colour, not transparency, so they still pass contrast (3:1 large, 4.5:1 small) */
.lm { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.lm h3 { transition: color .5s var(--ease); }
.lm:not(.on) h3 { color: #8E897F; }
.lm.past h3 { color: var(--muted); }
.lm .mono { color: var(--muted); padding-top: 6px; }
.lm.on .mono { color: var(--ink); }
.lm h3 { font: 400 30px/1 var(--f-d); text-transform: uppercase; color: var(--ink); }
.lm.on h3 span, .lm.on h3 { background: linear-gradient(transparent 62%, var(--y) 62%, var(--y) 92%, transparent 92%); justify-self: start; }
.lm p { margin-top: 6px; font-size: 15px; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.lm.on p { max-height: 160px; }   /* room for the longer Kiswahili lines */
.meter { margin-top: 24px; height: 3px; background: var(--line); }
.meter i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.life-photos { position: relative; height: min(76vh, 760px); border-radius: 6px; overflow: hidden; background: var(--sand-2); box-shadow: var(--shadow); }
.lp { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.lp.on { opacity: 1; }
.lp img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 6s linear; }
.lp.on img { transform: scale(1.0); }
.lp figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 10px; background: rgba(255,255,255,.92); border-radius: 3px; }
html:not(.js) .lp:first-child { opacity: 1; }

/* ---------- 6. why ---------- */
.why { background: var(--white); padding: var(--sec) 0; --pv: 0; }
.why-head { text-align: center; }
.why-head .tag { margin-bottom: 26px; }
.why-photo { margin-top: clamp(48px, 7vw, 100px); aspect-ratio: 21 / 9; overflow: hidden; border-radius: 6px; background: var(--sand); }
.why-photo img { width: 100%; height: 118%; object-fit: cover; transform: translateY(calc(var(--pv) * -15%)); }
.why-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(40px, 5vw, 72px); }
.why-list li { border-top: 2px solid var(--ink); padding-top: 18px; }
.why-list b { color: var(--muted); }
.why-list h3 { margin-top: 10px; font: 400 32px/1 var(--f-d); text-transform: uppercase; }
.why-list p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- 7. projects ---------- */
.projects { background: var(--paper); padding: var(--sec) 0; }
.plist li { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "when h p" "when who p"; column-gap: 32px; row-gap: 6px; padding: 30px 0; border-top: 1px solid var(--line); }
.plist li:last-child { border-bottom: 1px solid var(--line); }
.plist .mono { grid-area: when; color: var(--muted); padding-top: 10px; }
.plist h3 { grid-area: h; font: 400 clamp(36px, 3.8vw, 60px)/.92 var(--f-d); text-transform: uppercase; }
.plist .who { grid-area: who; color: var(--muted); font-size: 14px; }
.plist p { grid-area: p; color: var(--muted); align-self: center; transition: opacity .3s; }
.plist img { position: absolute; right: 0; top: 50%; width: 320px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-50%) scale(.96); transition: opacity .45s var(--ease), transform .6s var(--ease); pointer-events: none; }
@media (hover: hover) and (min-width: 1081px) {
  .plist li.has-img:hover img { opacity: 1; transform: translateY(-50%) scale(1); }
  .plist li.has-img:hover p { opacity: 0; }
}
.beyond { margin-top: 48px; display: grid; grid-template-columns: 160px 1fr; gap: 32px; color: var(--muted); }
.beyond p { font-size: 18px; color: var(--ink); }

/* ---------- 8. strip ---------- */
.strip { background: var(--paper); padding: 0 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.strip-track { display: flex; gap: 12px; width: max-content; animation: slide 80s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip figure { position: relative; width: clamp(240px, 26vw, 400px); aspect-ratio: 3 / 2; overflow: hidden; flex: none; border-radius: 4px; }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 9px; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 3px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 9. careers ---------- */
.careers { background: var(--white); padding: var(--sec) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.split-img { aspect-ratio: 4 / 4.4; overflow: hidden; border-radius: 6px; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.body { margin-top: 28px; max-width: 520px; color: var(--muted); font-size: 18px; }

/* ---------- 10. partners ---------- */
.partners { background: var(--white); padding: 0 0 clamp(72px, 9vw, 130px); }
.names { overflow: hidden; margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.names-track { display: flex; gap: 72px; width: max-content; animation: slide 46s linear infinite; }
.names span { font: 400 clamp(36px, 4.6vw, 72px)/1 var(--f-d); text-transform: uppercase; color: #8E897F; white-space: nowrap; }

/* ---------- 11. faq ---------- */
.faq { background: var(--paper); padding: var(--sec) 0; }
.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 110px); }
.qs details { border-top: 1px solid var(--line); }
.qs details:last-child { border-bottom: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font: 700 19px/1.35 var(--f-t); }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; font: 400 30px/.8 var(--f-d); color: var(--ink); transition: transform .4s var(--ease); }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs p { padding: 0 0 26px; color: var(--muted); max-width: 640px; }

/* ---------- 12. contact ---------- */
.contact { background: var(--y); padding: var(--sec) 0; }
.contact .tag::before { background: var(--ink); box-shadow: none; }
.contact .display { margin-top: 28px; }
.contact .display em { background: none; color: var(--ink); -webkit-text-stroke: 0; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; }
.cgrid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 7vw, 100px); border-top: 1.5px solid var(--ink); }
.cgrid a, .cgrid address { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 26px 0; text-decoration: none; font-style: normal; min-width: 0; }
.cgrid > * + * { padding-left: 24px; border-left: 1px solid rgba(18,19,22,.25); }
.cgrid .mono { color: rgba(18,19,22,.7); }
.cgrid b { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cgrid a:hover b { text-decoration: underline; }
.contact :focus-visible { outline-color: var(--ink); }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--paper); color: var(--muted); padding: 72px 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.foot-in { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.chip { display: inline-flex; }
.chip img { height: 32px; width: auto; }
.foot-in p { margin-top: 16px; font-size: 15px; }
.foot-in nav { display: flex; flex-direction: column; gap: 10px; }
.foot-in nav a { text-decoration: none; color: var(--ink); font-size: 15px; }
.foot-in nav a:hover { text-decoration: underline; text-decoration-color: var(--y); text-decoration-thickness: 2px; }
.foot-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .ticker .tk-links { display: none; }
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 110px var(--gut) 40px; background: var(--paper); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
  .nav > a { font: 400 clamp(44px, 11vw, 80px)/1.05 var(--f-d); letter-spacing: 0; }
  .nav > a i { font: 400 12px/1 var(--f-m); vertical-align: top; }
  .nav-staff { display: flex; gap: 20px; margin-top: 28px; }
  .nav-staff a { font: 400 12px/1 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 10px 0; }
  .bar.open .nav { opacity: 1; visibility: visible; }
  .bar.open::before { opacity: 0; }
  .bar.open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .bar.open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu { display: grid; }
  .bar .lang { margin-left: auto; }
  .bar { gap: 14px; }
  .bar > .btn { display: none; }
  .numbers, .split, .faq-in { grid-template-columns: 1fr; }
  .svc li { grid-template-columns: 60px 1fr; }
  .svc p { grid-column: 2; }
  .svc img { display: none; }
  .plist li { grid-template-columns: 1fr; grid-template-areas: "when" "h" "who" "p"; }
  .plist .mono { padding-top: 0; }
  .plist img { display: none; }
  .beyond { grid-template-columns: 1fr; gap: 12px; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .cgrid { grid-template-columns: 1fr 1fr; }
  .cgrid > :nth-child(3) { padding-left: 0; border-left: 0; }
  .cgrid > :nth-child(n+3) { border-top: 1px solid rgba(18,19,22,.25); }
  .hero-map { width: 100%; height: 56%; top: 70px; bottom: auto; }
  .map { --fx: .5; --fy: .5; --fw: .86; --fh: .9; }
  .hero-copy { top: auto; bottom: 5vh; transform: translateY(calc(var(--p) * -60px)); }
  .hero-copy > * { max-width: 640px; }
  .life-in { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; padding-top: 84px; align-items: stretch; }
  .life-photos { height: auto; min-height: 0; order: -1; }
  .life-copy .title { font-size: clamp(32px, 6vw, 48px); margin-top: 12px; }
  .stages { margin-top: 14px; }
  .lm { display: none; border-top: 0; padding: 0; }
  .lm.on { display: grid; }
  .lm.on p { max-height: none; }
  .meter { margin-top: 14px; }
  .loader { grid-template-columns: 1fr; }
  .ld-sites, .ld-work { display: none; }
  .ld-pct { grid-column: 1; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .ticker { height: 30px; }
  .bar { top: 33px; padding: 10px var(--gut); }
  .brand img { height: 28px; }
  .hero { height: 130vh; }
  .hero-map { height: 34%; top: 92px; }
  .map { --fh: .94; --fw: .9; }
  .hero-copy { bottom: 4vh; }
  .hero .display { font-size: clamp(40px, 11.2vw, 60px); }
  .hero-copy .tag { font-size: 10px; letter-spacing: .08em; }
  .hero-copy .tag { margin-bottom: 14px; }
  .hero-copy .lede { font-size: 15px; margin-top: 18px; }
  .hero-copy .cta { gap: 10px; margin-top: 22px; }
  .map-label .c { font-size: 8.5px; padding: 4px 6px; }
  .hero-foot { display: none; }
  .lede { font-size: 16px; }
  .cta .btn { flex: 1 1 100%; }
  .figs { grid-template-columns: 1fr; }
  .fig, .fig + .fig { padding: 28px 0 22px; border-left: 0; }
  .fig + .fig { border-top: 1px solid var(--line-2); }
  .fleet { height: 520vh; }
  .fleet .stage { padding-top: 100px; }
  .fleet-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fleet-note { display: none; }
  .reel-wrap { display: flex; flex-direction: column; flex: 1; margin-top: 16px; }
  .reel { position: relative; inset: auto; flex: 1; min-height: 0; margin: 0; }
  .reel-ui { padding: 10px; }
  .ticks li { width: 22px; }
  .chaps { position: relative; left: 0; bottom: 0; width: 100%; height: 168px; margin-top: 12px; }
  .chap { padding: 16px 18px 18px; }
  .chap h3 { font-size: 32px; }
  .chap p { font-size: 14px; }
  .life { height: 400vh; }
  .why-photo { aspect-ratio: 4 / 3; }
  .why-list { grid-template-columns: 1fr 1fr; gap: 18px; }
  .why-list p { font-size: 14px; }
  .why-list h3 { font-size: 24px; }
  .cgrid { grid-template-columns: 1fr; }
  .cgrid > * + * { padding-left: 0; border-left: 0; border-top: 1px solid rgba(18,19,22,.25); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: span 2; }
  .qs summary { font-size: 17px; }
}

/* ---------- tablets on their side (e.g. iPad landscape): copy on the left, map beside it, as on a laptop.
   The map script fits the country into the space the copy leaves free. ---------- */
@media (min-width: 721px) and (max-width: 1080px) and (orientation: landscape) and (min-height: 560px) {
  .hero-map { inset: 0; width: auto; height: auto; }
  .hero-copy { top: 50%; bottom: auto; transform: translateY(calc(-44% - var(--p) * 80px)); }
  .hero-copy > * { max-width: 52%; }
  .hero .display { font-size: clamp(48px, 6.4vw, 80px); }
}

/* ---------- short, wide screens (phones on their side): map band, then the copy, in normal flow ---------- */
@media (min-width: 721px) and (max-height: 559px) and (orientation: landscape) {
  .hero { height: auto; }
  .hero .stage { position: relative; height: auto; overflow: visible; padding: 112px 0 36px; }
  .hero-map { position: relative; inset: auto; top: 0; width: 100%; height: 300px; }
  .hero-copy { position: relative; top: auto; bottom: auto; transform: none; opacity: 1; margin-top: 8px; }
  .hero-copy > * { max-width: 640px; }
  .hero .display { font-size: clamp(40px, 6vw, 64px); }
  .hero-foot { display: none; }
}

/* ---------- short phones (under 760px tall): map band, then the copy, in normal flow ---------- */
@media (max-width: 720px) and (max-height: 759px) {
  .hero { height: auto; }
  .hero .stage { position: relative; height: auto; overflow: visible; padding: 84px 0 40px; }
  .hero-map { position: relative; top: 0; height: min(78vw, 320px); }
  .hero-copy { position: relative; bottom: auto; top: auto; transform: none; opacity: 1; margin-top: 10px; }
}

/* ---------- reduced motion: the same content, still ---------- */
@media (prefers-reduced-motion: reduce) {
  .lang-bub { transition: none; } .lang.go .lang-bub, html.swapping [data-i18n] { animation: none; }
  .hero, .fleet, .life { height: auto !important; }
  .stage { position: relative; height: auto; min-height: 100svh; }
  .tk-track, .strip-track, .names-track { animation: none; }
  .js .rv { opacity: 1; transform: none; }
  .js .say-text .w { color: var(--ink); }
  .fleet .stage { min-height: 0; padding: var(--sec) 0; }
  .reel-wrap { flex: none; }
  .reel { position: relative; inset: auto; margin: 0; aspect-ratio: 16 / 9; }
  .reel-ui { display: none; }
  .chaps { position: relative; left: 0; bottom: 0; width: auto; height: auto; margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
  .chap { position: relative; opacity: 1; transform: none; }
  .life .stage { min-height: 0; }
  .life-in { padding-top: var(--sec); }
  .life-photos { height: 60vh; }
  .lp:first-child { opacity: 1; }
  .lm, .lm.on { opacity: 1; display: grid; }
  .lm p { max-height: none; }
  .reel-v.on, .lp img { animation: none; transform: none; transition: none; }
}
