/* Header menu (desktop + phone), full footer, and the About / Projects / Careers pages. Loaded after style.css on every page. */
header.nav.scrolled { background: rgba(28,20,16,.96); box-shadow: 0 1px 0 rgba(230,194,114,.25); }
.nav nav { gap: 24px; align-items: center; }
.nav nav a.in { display: inline-flex; opacity: .85; padding: 6px; margin: -6px; }
.nav .right { gap: 22px; }
.burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(248,244,236,.5); border-radius: 3px; background: transparent; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--cream); transition: transform .25s, opacity .2s, top .25s; }
.burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 28px; }
body.menu .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu .burger i:nth-child(2) { opacity: 0; }
body.menu .burger i:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .burger { display: block; }
  .nav nav { display: flex; position: fixed; inset: 76px 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 28px 40px; background: rgba(20,13,8,.985); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
  body.menu .nav nav { transform: none; opacity: 1; visibility: visible; }
  .nav nav a { font-size: 21px; font-weight: 600; padding: 17px 0; border-bottom: 1px solid rgba(230,194,114,.2); opacity: 1; }
  .nav nav a.in { border-bottom: 0; padding-top: 24px; }
  body.menu { overflow: hidden; }
  body.menu header.nav { background: rgba(20,13,8,.985); }
}

/* footer */
footer.foot2 { background: var(--deep); color: #CFC3AE; padding: 64px 0 0; font-size: 15px; }
.foot2 .cols { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 44px; align-items: start; }
.foot2 img { height: 40px; width: auto; }
.foot2 .fb p { margin: 16px 0 18px; max-width: 30em; line-height: 1.65; }
.foot2 .fh { font-family: Mono, monospace; font-weight: 500; line-height: 1.65; font-size: 12.5px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold2); margin-bottom: 14px; }
.foot2 ul { list-style: none; }
.foot2 li { margin-bottom: 3px; line-height: 1.55; }
.foot2 li a { display: inline-block; padding: 3px 0; }     /* a taller target for the finger and the mouse, same spacing to the eye */
.foot2 a:hover { color: var(--gold2); }
.foot2 .inl { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-weight: 600; border: 1px solid rgba(248,244,236,.35); border-radius: 3px; padding: 9px 14px; }
.foot2 .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid rgba(230,194,114,.2); font-size: 13.5px; }
.foot2 .base span:last-child { color: var(--gold2); font-weight: 600; }
[dir=rtl] .foot2 .fh { font-family: PlexAr, Mont, sans-serif; letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 600; }
@media (max-width: 900px) { .foot2 .cols { grid-template-columns: 1fr 1fr; gap: 34px 24px; } .foot2 .fb { grid-column: 1 / -1; } }

/* shared bits of the inner pages */
.psec { padding: 72px 0; }
.psec.alt { background: var(--sand); }
.psec.dark { background: var(--deep); color: var(--cream); }
.psec.dark .eyebrow { color: var(--gold2); }
.psec h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cols2 img { width: 100%; border-radius: 6px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.psec.dark .tile { background: rgba(255,255,255,.04); border-color: rgba(230,194,114,.22); }
.tile i { font-style: normal; font-family: Mono, monospace; font-size: 13px; letter-spacing: 2px; color: var(--goldtxt); }
.psec.dark .tile i { color: var(--gold2); }
.tile h3 { margin: 6px 0 8px; font-size: 19px; }
.tile p { font-size: 15.5px; line-height: 1.65; color: #4A3829; }
.psec.dark .tile p { color: #D6CAB4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn.dark { background: var(--brown); color: var(--cream); }
.btn.line { border: 1.5px solid var(--brown); color: var(--brown); }

/* projects index */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px; transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(42,26,16,.12); }
.pcard .st { align-self: flex-start; font-family: Mono, monospace; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; background: var(--sand); color: var(--soft); }
.pcard .st.now { background: var(--gold2); color: #1C1410; }
.pcard h3 { font-family: Playfair, Georgia, serif; font-size: 25px; margin: 14px 0 2px; }
.pcard small { color: var(--soft); }
.pcard dl { margin: 16px 0 18px; font-size: 15px; gap: 6px 16px; }
.pcard .go { margin-top: auto; }
[dir=rtl] .pcard h3 { font-family: PlexAr, Mont, sans-serif; line-height: 1.5; }
[dir=rtl] .pcard .st, [dir=rtl] .tile i { font-family: PlexAr, Mont, sans-serif; letter-spacing: 0; text-transform: none; font-size: 13.5px; font-weight: 600; }

/* careers */
.jobs { margin-top: 26px; display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; }
.job h3 { font-size: 20px; } .job p { color: var(--soft); font-size: 15px; }
.nojobs { background: #fff; border: 1px dashed var(--gold); border-radius: 6px; padding: 26px; font-size: 17px; }
.steps3 { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; list-style: none; }
.steps3 li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.steps3 li::before { counter-increment: s; content: "0" counter(s); font-family: Mono, monospace; font-size: 13px; letter-spacing: 2px; color: var(--goldtxt); }
.steps3 h3 { margin: 6px 0 8px; font-size: 19px; } .steps3 p { font-size: 15.5px; color: #4A3829; }

/* the 3D core section (core3d.js) */
.c3 { position: relative; height: 260vh; background: #130c08; color: var(--cream); padding: 0; }
.c3-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.c3 .wrap { height: 100%; display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 40px; align-items: center; }
.c3-pill { position: relative; height: min(84vh, 780px); aspect-ratio: 14 / 27; justify-self: center; border-radius: 999px; border: 1.5px solid rgba(230,194,114,.55); box-shadow: inset 0 0 60px rgba(230,194,114,.08), 0 0 70px rgba(230,194,114,.07); overflow: hidden; }
.c3-pill canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.c3-pill small { position: absolute; left: 0; right: 0; bottom: 5%; text-align: center; font-size: 12px; color: rgba(226,216,198,.7); padding: 0 16%; line-height: 1.4; }
.c3-list { list-style: none; position: relative; }
.c3-list::before { content: ""; position: absolute; inset-inline-start: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(248,244,236,.16); }
.c3-list li { position: relative; padding: 0 0 26px; padding-inline-start: 36px; opacity: .56; transition: opacity .4s; }
.c3-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #3A2A1C; border: 2px solid rgba(230,194,114,.5); transition: background .4s, box-shadow .4s; }
.c3-list li.on { opacity: 1; }
.c3-list li.on::before { background: var(--gold2); box-shadow: 0 0 0 6px rgba(230,194,114,.18); }
.c3-list b { display: block; font-family: Playfair, Georgia, serif; font-size: clamp(20px, 2vw, 26px); color: var(--gold2); line-height: 1.25; }
.c3-list span { font-size: clamp(15px, 1.3vw, 17.5px); color: #EDE4D2; }
.c3 h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 28px; }
.c3 .eyebrow { color: var(--gold2); }
[dir=rtl] .c3-list b { font-family: PlexAr, Mont, sans-serif; }
@media (max-width: 900px) {
  .cols2, .grid2 { grid-template-columns: 1fr; gap: 28px; } .grid4 { grid-template-columns: 1fr 1fr; } .pcards, .steps3 { grid-template-columns: 1fr; } .job { grid-template-columns: 1fr; }
  .c3 .wrap { grid-template-columns: 1fr 124px; gap: 16px; align-items: center; }
  .c3-pill { width: 100%; height: auto; } .c3-pill small { display: none; }
  .c3 .wrap { padding-top: 92px; padding-bottom: 20px; align-items: start; }
  .c3 h2 { margin-bottom: 16px; font-size: 26px; } .c3-list li { padding-bottom: 12px; padding-inline-start: 28px; }
  .c3-pill { align-self: center; }
}

.tile { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

/* projects page: the licence fly-over as a full-width opening film (muted loop) */
.flight { position: relative; background: #0d0806; line-height: 0; padding: 0; }
.fl-v { height: min(56.25vw, 84vh); overflow: hidden; }     /* the film sits 3 px larger than this frame on every side: some graphics cards draw a coloured line along the edge of a scaled video, and the frame cuts it off */
.flight video { display: block; width: calc(100% + 6px); height: calc(100% + 6px); max-width: none; margin: -3px; object-fit: cover; }
.fl-btn { position: absolute; inset-inline-end: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(248,244,236,.7); background: rgba(20,13,8,.55); cursor: pointer; padding: 0; }
.fl-btn i { position: absolute; left: 50%; top: 50%; width: 12px; height: 14px; transform: translate(-50%, -50%); border-left: 4px solid var(--cream); border-right: 4px solid var(--cream); }
.fl-btn.paused i { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--cream); border-right: 0; transform: translate(-40%, -50%); }
.flight + .phead { padding-top: 48px; }

/* News: the "All news" button on the home page, the news index, and rich text written in the /admin editor. */
.allnews { margin-top: 36px; text-align: center; }
.allnews .btn.sec { border-color: var(--deep); color: var(--deep); transition: background .2s, color .2s; }
.allnews .btn.sec:hover { background: var(--deep); color: var(--cream); }
.nidx { padding: 64px 0 96px; }
.nidx .cards { margin-top: 0; }
.art h2 { font-size: 26px; line-height: 1.3; margin: 40px 0 14px; }
.art ul, .art ol { margin: 20px 0; padding-inline-start: 26px; font-size: 18.5px; line-height: 1.8; color: #33231A; }
.art li + li { margin-top: 8px; }
.art p a, .art li a { color: var(--goldtxt); text-decoration: underline; text-underline-offset: 3px; }
.art blockquote { margin: 28px 0; padding-inline-start: 22px; border-inline-start: 3px solid var(--gold); }
.art p + ul, .art p + ol, .art ul + p, .art ol + p, .art blockquote + p, .art h2 + p { margin-top: 20px; }
.art h2 + p { margin-top: 0; }

/* Soft entrances: blocks rise a little as they come into view. Driven by the scroll position itself (no script), only where the
   browser supports it and the visitor has not asked for less motion; everywhere else the blocks are simply there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes rise { from { opacity: .001; translate: 0 34px; } to { opacity: 1; translate: 0 0; } }
    .tile, .card, .pcard, .belt, .feature, .cfig, .clist li, .values li { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
  /* photos answer the pointer with a slow, slight zoom */
  @media (hover: hover) { .tile img, .card img { transition: scale 1.2s cubic-bezier(.2, .6, .2, 1); } .tile:hover img, .card:hover img { scale: 1.045; } }
}


/* Netlify adds its own review toolbar at the bottom of preview links only (never on the real site). The page's security rule
   blocks its content, which left an empty white strip, so the strip is hidden. */
div:has(> iframe[src^="https://app.netlify.com/cdp"]) { display: none !important; }

/* Project pages: the text with the licence map beside it (the map stays in view while the text scrolls; on a phone it comes first). */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.pgrid .facts2 { grid-template-columns: 1fr 1fr; }
.pgrid .facts2 div:nth-child(2) { border-inline-end: 0; }
.pgrid .facts2 div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.pmap { position: sticky; top: 104px; margin: 0; }
.pmap img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 18px 44px rgba(42,26,16,.16); }
.pmap figcaption { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--soft); }
.pmap figcaption b { font-weight: 600; color: var(--ink); }
@media (max-width: 980px) { .pgrid { grid-template-columns: 1fr; gap: 28px; } .pmap { position: static; order: -1; } }

/* ---- Leadership: three leaders each stand inside their family name, set across the foot of their band; the two other board members follow as cards.
   The name is written twice: softly filled behind the portrait, and as a fine outline in front of its foot only (never over the face).
   Its size comes from the measured width of the word (--w, in em, set by scripts/build_lead.py), so the whole name always fits the page.
   The portraits are background-free copies of the official ones (scripts/lead_cut.py). Motion is added by fx.js (class "fx" on <html>):
   it gives each band, name and card a number --p from 0 to 1 as it comes up the screen; the styles below turn that into the portrait rising
   and the letters rising one after another. */
.lheroes { padding: 0; }
.lhero { position: relative; overflow: hidden; overflow: clip; color: var(--cream); --cap: 14vw; --ph: clamp(400px, 44vw, 580px); --fs: min(var(--cap), calc((min(100vw, var(--max)) - 64px) / var(--w, 5))); padding-bottom: calc(var(--fs) * .2); background: radial-gradient(52% 78% at 26% 100%, rgba(200,150,60,.24), transparent 72%), var(--deep); }
.lhero:first-child { --ph: clamp(340px, 34vw, 460px); }
[dir=rtl] .lhero { --cap: 19vw; }
.lhero.flip { background: radial-gradient(52% 78% at 74% 100%, rgba(200,150,60,.2), transparent 72%), #241711; }
[dir=rtl] .lhero { background: radial-gradient(52% 78% at 74% 100%, rgba(200,150,60,.24), transparent 72%), var(--deep); }
[dir=rtl] .lhero.flip { background: radial-gradient(52% 78% at 26% 100%, rgba(200,150,60,.2), transparent 72%), #241711; }
.lh-pin { position: sticky; bottom: 0; }     /* in a tall band the portrait stays at the foot of the screen while the text is read, then comes to rest in the name */
.lh-pin::before { content: ""; position: absolute; z-index: 0; left: 50%; bottom: 6%; width: 118%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(230,194,114,.2), rgba(230,194,114,.1) 35%, rgba(230,194,114,.035) 62%, transparent 92%); transform: translateX(-50%); }
.lh-name { position: absolute; z-index: 0; inset-inline: 0; bottom: 0; pointer-events: none; user-select: none; }
.lh-name.f, .lc-big.f { z-index: 2; -webkit-mask-image: linear-gradient(to top, #000 34%, transparent 52%); mask-image: linear-gradient(to top, #000 34%, transparent 52%); }
.lh-big, .lc-big { font-family: Playfair, Georgia, serif; font-weight: 700; line-height: 1; white-space: nowrap; }
.lh-big { display: block; font-size: var(--fs); }
.lhero.flip .lh-big { text-align: end; }
.lh-big i, .lc-big i { display: inline-block; font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(230,194,114,.34); background: linear-gradient(to bottom, rgba(230,194,114,.3), rgba(230,194,114,.07) 78%); -webkit-background-clip: text; background-clip: text; }
.lh-name.f i, .lc-big.f i { background: none; -webkit-text-stroke: 1.4px rgba(238,206,134,.82); }
[dir=rtl] .lh-big, [dir=rtl] .lc-big { font-family: PlexAr, Mont, sans-serif; }
[dir=rtl] .lh-big i, [dir=rtl] .lc-big i { padding: .12em .04em .4em; margin: -.12em -.04em -.4em; }     /* the painted box must reach the dots and tails below the line */
[dir=rtl] .lh-big i, [dir=rtl] .lc-big i { -webkit-text-stroke: 0; background-image: linear-gradient(to bottom, rgba(230,194,114,.3), rgba(230,194,114,.18)); }     /* joined Arabic letters take no outline: a softly filled word, brighter where it passes in front of the foot of the portrait */
[dir=rtl] .lh-name.f i, [dir=rtl] .lc-big.f i { background-image: linear-gradient(rgba(238,206,134,.5), rgba(238,206,134,.5)); -webkit-background-clip: text; background-clip: text; }
[dir=rtl] .lh-name.f, [dir=rtl] .lc-big.f { -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 62%); mask-image: linear-gradient(to top, #000 40%, transparent 62%); }
[dir=rtl] .lh-name { bottom: calc(var(--fs) * .34); }     /* room for the letters that go below the line */
[dir=rtl] .lc-big { bottom: 20px; }
.lh-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(280px, .85fr) 1.15fr; gap: 60px; align-items: stretch; min-height: 660px; }
.lhero.flip .lh-grid { grid-template-columns: 1.15fr minmax(280px, .85fr); }
.lhero.flip .lh-fig { order: 2; }
.lh-fig { margin: 0; display: flex; justify-content: center; align-items: flex-end; }
.lh-fig img { position: relative; z-index: 1; display: block; transform-origin: 50% 100%; width: auto; max-width: none; height: var(--ph); filter: drop-shadow(0 26px 36px rgba(0,0,0,.5)); }
.lh-txt { align-self: center; padding: 84px 0 calc(var(--fs) * .6 + 30px); }
.lh-txt .eyebrow { color: var(--gold2); }
.lh-txt .lh-lead { font-family: Playfair, Georgia, serif; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.42; color: #F3E3BE; max-width: 27em; margin-top: 16px; }
[dir=rtl] .lh-txt .lh-lead { font-family: PlexAr, Mont, sans-serif; font-weight: 600; line-height: 1.75; }
.lh-txt h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; margin: 8px 0 4px; }
.lh-txt h2 + small { display: block; color: #C9BBA3; font-size: 14px; margin-bottom: 6px; }
.lh-txt p { font-size: 16.5px; line-height: 1.78; color: #E2D8C6; max-width: 58ch; margin-top: 14px; }
[dir=rtl] .lh-txt h2 { line-height: 1.5; }
.lh-txt h3 { font-family: Mono, monospace; font-weight: 500; font-size: 12.5px; line-height: 1.65; letter-spacing: 2px; text-transform: uppercase; color: var(--gold2); margin: 20px 0 6px; }
.lh-txt ul { list-style: none; }
.lh-txt li { position: relative; padding-inline-start: 16px; font-size: 16px; line-height: 1.65; color: #E2D8C6; margin-bottom: 5px; max-width: 58ch; }
.lh-txt li::before { content: ""; position: absolute; inset-inline-start: 0; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
[dir=rtl] .lh-txt h3 { font-family: PlexAr, Mont, sans-serif; letter-spacing: 0; text-transform: none; font-size: 14.5px; font-weight: 600; }
.lhero:nth-child(3) { background: radial-gradient(52% 78% at 26% 100%, rgba(200,150,60,.2), transparent 72%), #1f1510; }
[dir=rtl] .lhero:nth-child(3) { background: radial-gradient(52% 78% at 74% 100%, rgba(200,150,60,.2), transparent 72%), #1f1510; }
.lboard { background: var(--cream); padding: 84px 0 96px; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: start; max-width: 860px; margin-inline: auto; }
.lcard { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.lc-top { position: relative; height: 330px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; background: radial-gradient(70% 90% at 50% 100%, rgba(200,150,60,.26), transparent 72%), var(--deep); }
.lc-big { position: absolute; z-index: 0; left: 50%; bottom: 2px; pointer-events: none; user-select: none; font-size: clamp(64px, 7.4vw, 104px); transform: translate3d(calc(-50% + var(--lx, 0) * 1px), 0, 0); }
.lc-big.lg { font-size: clamp(38px, 3.6vw, 50px); bottom: 10px; }
.lc-top img { position: relative; z-index: 1; transform-origin: 50% 100%; display: block; height: 292px; width: auto; max-width: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.lc-txt { padding: 24px 26px 28px; }
.lc-txt h2 { font-size: 25px; line-height: 1.2; }
.lc-txt h2 + small { display: block; color: var(--soft); font-size: 14px; }
.lc-txt .pos { font-weight: 600; color: var(--goldtxt); margin: 4px 0 10px; }
.lc-txt h3 { font-family: Mono, monospace; font-weight: 500; line-height: 1.65; font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--goldtxt); margin: 16px 0 6px; }
.lc-txt ul { list-style: none; }
.lc-txt li { position: relative; padding-inline-start: 16px; font-size: 15.5px; line-height: 1.6; margin-bottom: 4px; }
.lc-txt li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
[dir=rtl] .lc-txt h2 { line-height: 1.5; }
[dir=rtl] .lc-txt h3 { font-family: PlexAr, Mont, sans-serif; letter-spacing: 0; text-transform: none; font-size: 14.5px; font-weight: 600; }
.fx .lhero, .fx .lh-name, .fx .lcard { --p: 0; }
.fx .lh-big i, .fx .lc-big i { --k: clamp(0, var(--p) * 2.3 - var(--i, 0) * .13, 1); transform: translate3d(0, calc((1 - var(--k)) * 46%), 0); opacity: var(--k); transition: transform .7s cubic-bezier(.16,.8,.24,1), opacity .5s linear; }
.lh-big i:nth-child(2), .lc-big i:nth-child(2) { --i: 1; } .lh-big i:nth-child(3), .lc-big i:nth-child(3) { --i: 2; } .lh-big i:nth-child(4), .lc-big i:nth-child(4) { --i: 3; } .lh-big i:nth-child(5), .lc-big i:nth-child(5) { --i: 4; }
.lh-big i:nth-child(6), .lc-big i:nth-child(6) { --i: 5; } .lh-big i:nth-child(7), .lc-big i:nth-child(7) { --i: 6; } .lh-big i:nth-child(8), .lc-big i:nth-child(8) { --i: 7; } .lh-big i:nth-child(9), .lc-big i:nth-child(9) { --i: 8; } .lh-big i:nth-child(10), .lc-big i:nth-child(10) { --i: 9; }
.fx .lh-fig img, .fx .lc-top img { --q: clamp(0, var(--p) * 1.5 - .3, 1); transform: translate3d(0, calc((1 - var(--q)) * 30%), 0) scale(calc(1.06 - var(--q) * .06)); opacity: clamp(0, var(--p) * 4 - 1.2, 1); transition: transform .9s cubic-bezier(.16,.8,.24,1), opacity .45s linear; }
.fx .lh-pin::before { opacity: var(--p); transform: translateX(-50%) scale(calc(.72 + var(--p) * .28)); transition: transform 1.1s cubic-bezier(.16,.8,.24,1), opacity .8s linear; }
.fx .lh-txt > * { transform: translateY(26px); opacity: .001; transition: transform .95s cubic-bezier(.16,.8,.24,1), opacity .8s; }
.fx .lh-txt > .in { transform: none; opacity: 1; }
.fx .lh-txt > :nth-child(2) { transition-delay: .07s; } .fx .lh-txt > :nth-child(3) { transition-delay: .14s; } .fx .lh-txt > :nth-child(n+4) { transition-delay: .2s; }
@media print { .fx .lh-big i, .fx .lc-big i, .fx .lh-fig img, .fx .lc-top img, .fx .lh-txt > * { transform: none; opacity: 1; } }
@media (max-width: 900px) {
  .lh-grid, .lhero.flip .lh-grid { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .lhero, .lhero:first-child { --cap: 22vw; --ph: 360px; padding-bottom: 0; } .lhero:first-child { --ph: 320px; } [dir=rtl] .lhero { --cap: 30vw; }
  .lhero.flip .lh-fig { order: 0; } .lh-fig { padding-top: 70px; padding-bottom: calc(var(--fs) * .2); }
  .lh-pin { position: relative; }
  .lh-name, [dir=rtl] .lh-name { bottom: auto; top: calc(70px + var(--ph) - var(--fs) * .7); } [dir=rtl] .lh-name { top: calc(70px + var(--ph) - var(--fs) * .86); } [dir=rtl] .lh-fig { padding-bottom: calc(var(--fs) * .3); } .lh-big, .lhero.flip .lh-big { text-align: center; }
  .lh-txt { padding: 30px 0 56px; }
  .lgrid { grid-template-columns: 1fr; } .lboard { padding: 56px 0 64px; }
}

/* ---- Projects film: with fx.js it starts as a window between two halves of a title and grows to the full screen while the page scrolls.
   Without the script (or with reduced motion) it is the plain full-width film it was. */
.fl-stick { position: relative; }
.fl-t { display: none; }
.fl-btn { z-index: 3; }
.fx .flight { height: 172vh; }
.fx .fl-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.fx .fl-v { width: 100%; height: 100%; transform: scale(calc(.56 + .44 * var(--e, 0))); border-radius: calc(38px * (1 - var(--e, 0))); box-shadow: 0 40px 90px rgba(0,0,0,.6); will-change: transform; }     /* grown with a transform, not by resizing: nothing on the page is laid out again while it grows */
.fx .fl-t { display: flex; position: absolute; inset: 0; z-index: 2; align-items: center; justify-content: center; gap: .32em; pointer-events: none; line-height: 1.15; white-space: nowrap; font-family: Playfair, Georgia, serif; font-weight: 700; font-size: clamp(28px, 4.7vw, 74px); color: var(--cream); text-shadow: 0 2px 34px rgba(0,0,0,.7); opacity: calc(1 - var(--e, 0) * 1.25); }
.fx[dir=rtl] .fl-t { font-family: PlexAr, Mont, sans-serif; }
.fx .fl-a { transform: translateX(calc(var(--e, 0) * -36vw)); } .fx .fl-b { transform: translateX(calc(var(--e, 0) * 36vw)); color: var(--gold2); }
.fx[dir=rtl] .fl-a { transform: translateX(calc(var(--e, 0) * 36vw)); } .fx[dir=rtl] .fl-b { transform: translateX(calc(var(--e, 0) * -36vw)); }
@media (max-width: 760px) {     /* on a phone the film stays the plain full-width film */
  .fx .flight { height: auto; } .fx .fl-stick { position: relative; height: auto; display: block; overflow: visible; }
  .fx .fl-v { height: min(56.25vw, 84vh); transform: none; border-radius: 0; box-shadow: none; } .fx .fl-t { display: none; }
}

/* ---- Figures of the facts row as a mechanical counter: each digit is a drum that turns to its number (fx.js builds the drums). */
.odo { display: inline-flex; direction: ltr; unicode-bidi: isolate; overflow: hidden; height: 1.18em; line-height: 1.18; vertical-align: bottom; font-style: normal; font-variant-numeric: lining-nums tabular-nums; }
.odo i { font-style: normal; display: block; height: 1.18em; }
.odo .dr { height: auto; transition: transform 2.1s cubic-bezier(.14,.82,.2,1); will-change: transform; }
.odt { font-style: normal; }
/* ---- "Our goal": the headline fills from pale to ink, word by word, while it scrolls up the screen (fx.js sets each word's opacity). */
.fw { transition: opacity .25s linear; }

/* ---- Accessibility (audit of 2026-11-27): a link that jumps over the menu for keyboard users, one visible focus ring everywhere, the current page marked in the menu, larger footer targets on phones. */
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 1000; background: var(--gold2); color: #1C1410; font-weight: 600; padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--goldtxt); outline-offset: 3px; }
.nav :focus-visible, .h3 :focus-visible, .foot2 :focus-visible, .lhero :focus-visible, .band :focus-visible, .phead :focus-visible { outline-color: var(--gold2); }
.nav nav a[aria-current] { color: var(--gold2); opacity: 1; }
@media (max-width: 760px) { .foot2 li a { padding: 10px 0; } .foot2 li { margin-bottom: 0; } }

/* ---- Audit points 1, 2 and 4 (2026-11-27). 1: --goldtxt is now dark enough for small text (4.5:1 on cream and sand); the large figures keep the brand gold. */
.proof b, .nums b, .tl b, .proof .ico { color: var(--goldbig); }
/* 2: a pause button for the two things that move on their own (the milestone strip and the film behind the tagline). Shown only where they really move. */
.tickw { position: relative; }
.mv-btn { display: none; position: absolute; z-index: 3; inset-inline-end: 14px; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.mv-btn::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1.5px solid rgba(248,244,236,.65); background: rgba(20,13,8,.72); }
.mv-btn i { position: absolute; left: 50%; top: 50%; width: 9px; height: 11px; transform: translate(-50%, -50%); border-left: 3px solid var(--cream); border-right: 3px solid var(--cream); }
.mv-btn.paused i { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid var(--cream); border-right: 0; transform: translate(-38%, -50%); }
.fx .tickw .mv-btn { display: block; top: 50%; transform: translateY(-50%); }
.tickw::after { content: ""; position: absolute; inset-inline-end: 0; top: 1px; bottom: 0; width: 96px; pointer-events: none; background: linear-gradient(to right, transparent, #1b120c 62%); }
[dir=rtl] .tickw::after { background: linear-gradient(to left, transparent, #1b120c 62%); }
.tickw.paused .tick-run { animation-play-state: paused; }
.band { position: relative; } .bandv.on + .mv-btn { display: block; bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .mv-btn, .tickw::after { display: none !important; } }
/* 4: on a phone every link and button is at least about 44 px tall under the finger. */
.contact a { display: inline-block; padding: 3px 0; }
.nav nav a { padding: 3px 0; }
@media (max-width: 760px) {
  .lang { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; } .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .card h3 a { display: block; padding: 11px 0; margin: -4px 0; } .prow { min-height: 44px; } .card div > a:last-child, .go, .ev-more, .back, .feature .go { display: inline-flex; align-items: center; min-height: 44px; }
  .contact a { padding: 10px 0; }
}

/* ---- Text for screen readers only (the plain figure beside the counter drums). */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- Home, second section: the problem and our method (the solution is the goal section that follows).
   The picture of the problem is 353 dots, one for each major gold discovery in the world since 1990, in the order of time: the last six are gold.
   Vision 2030 figures sit in the Enablement band further down. Every outside figure has its source beside it. */
.why { background: radial-gradient(60% 50% at 78% 0%, rgba(200,150,60,.13), transparent 70%), #130c08; color: var(--cream); padding: 92px 0 84px; }
.why { overflow: hidden; overflow: clip; }     /* the mark of the time bar is moved with a transform: nothing may widen the page */
.why .eyebrow { color: var(--gold2); }
.why-top { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: center; }
.why h2 { font-size: clamp(30px, 3.3vw, 45px); line-height: 1.14; max-width: 12.5em; text-wrap: balance; }
.why .lead { color: #E2D8C6; margin-top: 16px; max-width: 31em; }
.why-rate { display: flex; align-items: flex-end; gap: 22px; margin-top: 30px; }
.why-rate b { display: block; font-family: Playfair, Georgia, serif; font-size: clamp(40px, 4.6vw, 64px); line-height: 1; color: #CDBFA8; white-space: nowrap; }
.why-rate .hot b { color: var(--gold2); }
.why-rate span { display: block; font-size: 14.5px; line-height: 1.45; color: #D6CAB4; margin-top: 8px; max-width: 13em; }
.why-rate > i { flex: 0 0 54px; height: 1px; margin-bottom: 46px; background: linear-gradient(to right, rgba(230,194,114,.2), var(--gold2)); position: relative; }
.why-rate > i::after { content: ""; position: absolute; inset-inline-end: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--gold2); border-inline-end: 1px solid var(--gold2); transform: rotate(45deg); }
[dir=rtl] .why-rate > i { background: linear-gradient(to left, rgba(230,194,114,.2), var(--gold2)); } [dir=rtl] .why-rate > i::after { transform: rotate(-45deg); }
.dots { margin: 0; }
.dots svg { display: block; width: 100%; height: auto; overflow: visible; }
[dir=rtl] .dots svg { transform: scaleX(-1); }
.dots pattern circle { fill: #6E6052; } .dots pattern.g circle { fill: var(--gold2); }
.dots .hot circle { fill: var(--gold2); filter: drop-shadow(0 0 3px rgba(255,200,90,.9)); }
.dots figcaption { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: #D6CAB4; }
.dots figcaption i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 8px; background: #6E6052; }
.dots figcaption i.g { background: var(--gold2); box-shadow: 0 0 6px rgba(255,200,90,.9); } .dots figcaption i.n { background: none; border: 1px solid #8E7F6E; }
.why .src, .ev-ksa .src { font-size: 12.5px; line-height: 1.55; color: #B9AC96; margin-top: 14px; max-width: 62em; }
.ev-cap .wrap { flex-wrap: nowrap; } .ev-cap .wrap > div { flex: 1 1 0; min-width: 0; } .ev-cap .ev-more { flex: none; }
.ev-ksa { border-top: 1px solid rgba(230,194,114,.22); padding: 22px 0 20px; }
.ev-ksa .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 14px 48px; align-items: start; }
.ev-ksa .kh { font-family: Playfair, Georgia, serif; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; color: #F3E3BE; }
[dir=rtl] .ev-ksa .kh { font-family: PlexAr, Mont, sans-serif; font-weight: 600; line-height: 1.7; }
.ev-ksa .kn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ev-ksa .kn b { display: block; font-family: Playfair, Georgia, serif; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.2; color: var(--gold2); }
[dir=rtl] .ev-ksa .kn b { font-family: PlexAr, Mont, sans-serif; }
.ev-ksa .kn span { display: block; font-size: 14px; line-height: 1.5; color: #D6CAB4; margin-top: 6px; }
.ev-ksa .src { grid-column: 2; margin-top: 4px; }
.goal { padding: 92px 0 84px; }
/* With the script (fx.js "problem") the dots are drawn on a canvas laid over the same box: they fall like grains and settle in the order of time, while a large year
   counts above them. The SVG stays underneath for screen readers, for print, and as the picture when the script or the motion is off. */
.dots-s { position: relative; }
.dots canvas { position: absolute; left: 0; bottom: 0; width: 100%; pointer-events: none; }
[dir=rtl] .dots canvas { transform: scaleX(-1); }
.dots.cv svg { opacity: 0; }
.dots-y { display: none; }
/* the highest column is named on the chart itself (1995 is the sixth of thirty-six columns); it appears when the count has passed it */
.dots-pk { position: absolute; inset-inline-start: 15.28%; bottom: 100%; transform: translate(-50%, -13px); font: 500 12.5px/1 Mono, monospace; letter-spacing: .5px; white-space: nowrap; color: #D6CAB4; transition: opacity .5s; }
[dir=rtl] .dots-pk { transform: translate(50%, -13px); font-family: PlexAr, Mont, sans-serif; font-size: 13px; letter-spacing: 0; }
.dots.cv:not(.pk) .dots-pk { opacity: 0; }
.dots.cv .dots-y { display: block; position: absolute; inset-inline-end: -4px; top: -6px; font-family: Playfair, Georgia, serif; font-weight: 700; font-size: clamp(72px, 9.6vw, 140px); line-height: .86; letter-spacing: -1px; font-variant-numeric: tabular-nums lining-nums; color: rgba(205,191,168,.07); -webkit-text-stroke: 1px rgba(205,191,168,.55); opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .8s cubic-bezier(.16,.8,.24,1), color .5s, -webkit-text-stroke-color .5s, text-shadow .5s; }
.dots.cv.run .dots-y { opacity: 1; transform: none; }
.dots.cv.late .dots-y { color: rgba(230,194,114,.16); -webkit-text-stroke-color: var(--gold2); text-shadow: 0 0 34px rgba(255,190,70,.35); }
.dots-re[hidden] { display: none; } .dots-re { visibility: hidden; } .dots.done .dots-re { visibility: visible; }
.dots-re { margin-inline-start: auto; padding: 9px 2px; background: none; border: 0; border-bottom: 1px solid rgba(230,194,114,.5); color: var(--gold2); font: 600 13.5px Mont, Arial, sans-serif; cursor: pointer; }
.dots-re:hover { border-bottom-color: var(--gold2); }
@media print { .dots canvas, .dots-y, .dots-re { display: none !important; } .dots.cv svg { opacity: 1; } }
.dots figcaption b { font-weight: 600; color: var(--cream); font-variant-numeric: tabular-nums; } .dots figcaption span:nth-child(2) b { color: var(--gold2); }
.dots figcaption { align-items: center; } .dots figcaption span { transition: color .4s; } 
/* the time bar under the dots: thirty-five years, the last five in gold; the mark moves with the scroll (fx.js sets --t) */
.dots-t { position: relative; height: 32px; margin-top: 14px; border-top: 1px solid #6E6052; }
.dots-t::before { content: ""; position: absolute; top: -1px; inset-inline-end: 0; width: 16.67%; border-top: 1px solid var(--gold2); }
.dots-t span { position: absolute; top: 9px; font-family: Mono, monospace; font-size: 12.5px; line-height: 1; color: #B9AC96; transform: translateX(-50%); }
[dir=rtl] .dots-t span { transform: translateX(50%); }
.dots-t span:nth-child(2) { inset-inline-start: 0; transform: none; } .dots-t span:nth-child(3) { inset-inline-start: 27.78%; } .dots-t span:nth-child(4) { inset-inline-start: 55.56%; }
.dots-t span:nth-child(5) { inset-inline-start: 83.33%; color: var(--gold2); } .dots-t span:nth-child(6) { inset-inline-end: 0; transform: none; color: var(--gold2); }
.dots-t i { position: absolute; top: -5px; left: 0; right: 0; height: 9px; pointer-events: none; transform: translateX(calc(var(--t, 1) * 100%)); }
[dir=rtl] .dots-t i { transform: translateX(calc(var(--t, 1) * -100%)); }
.dots-t i::before { content: ""; position: absolute; inset-inline-start: -4.5px; top: 0; width: 9px; height: 9px; border-radius: 50%; background: #CDBFA8; transition: background .3s, box-shadow .3s; }
.dots.late .dots-t i::before { background: var(--gold2); box-shadow: 0 0 10px rgba(255,200,90,.9); }
.why h2 .wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; } .why h2 .wi { display: inline-block; }
[dir=rtl] .why h2 .wm { padding: .28em 0 .3em; margin: -.28em 0 -.3em; }
.fx .why h2 .wi { transform: translateY(112%); transition: transform .95s cubic-bezier(.16,.8,.24,1); } .fx .why.in h2 .wi { transform: none; }
.fx .why .why-txt > .eyebrow, .fx .why .why-txt > .lead, .fx .why-rate > div:first-child { opacity: .001; transform: translateY(16px); transition: opacity .7s, transform .9s cubic-bezier(.16,.8,.24,1); }
.fx .why.in .why-txt > .eyebrow { opacity: 1; transform: none; } .fx .why.in .why-txt > .lead { opacity: 1; transform: none; transition-delay: .35s; } .fx .why.in .why-rate > div:first-child { opacity: 1; transform: none; transition-delay: .55s; }
.fx .why-rate > i { transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s 1.1s cubic-bezier(.3,.1,.2,1); } .fx[dir=rtl] .why-rate > i { transform-origin: 100% 50%; }
.fx .why-rate .hot { opacity: .001; transform: scale(.82); transform-origin: 0 100%; transition: opacity .5s 1.5s, transform .8s 1.5s cubic-bezier(.2,1.5,.4,1); } .fx[dir=rtl] .why-rate .hot { transform-origin: 100% 100%; }
.fx .why.in .why-rate > i { transform: none; } .fx .why.in .why-rate .hot { opacity: 1; transform: none; }
.fx .why.done .why-rate .hot b { animation: whyglow 2.4s ease-out 1; }
@keyframes whyglow { 0% { text-shadow: 0 0 0 rgba(255,190,70,0); } 30% { text-shadow: 0 0 34px rgba(255,190,70,.75); } 100% { text-shadow: 0 0 0 rgba(255,190,70,0); } }
@media print { .fx .why h2 .wi, .fx .why .why-txt > *, .fx .why-rate > *, .fx .why-rate > div:first-child { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .why { padding: 64px 0 60px; } .why-top { grid-template-columns: 1fr; gap: 34px; }
  .dots.cv .dots-y { font-size: 58px; top: -2px; }
  .ev-cap .wrap { flex-wrap: wrap; } .ev-cap .wrap > div { flex: 1 1 100%; }
  .ev-ksa .wrap { grid-template-columns: 1fr; gap: 12px; } .ev-ksa .kn { grid-template-columns: 1fr 1fr; gap: 14px 18px; } .ev-ksa .kn div:first-child { grid-column: 1 / -1; } .ev-ksa .src { grid-column: auto; }
  .why-rate { margin-top: 22px; } .why-rate > i { flex-basis: 34px; } .why .src { margin-top: 10px; }
  .goal { padding: 64px 0 60px; }
}

/* ---- Home, 02 our method: the field file (site/solve.js). The six stages are prints; with the script they start inside a folder that opens when it
   comes on screen. Without the script, or with reduced motion, there is no folder and the prints are a plain grid. */
.file { background: #1a120d; color: var(--cream); padding: 88px 0 92px; overflow: hidden; overflow: clip; }
.file .eyebrow { color: var(--gold2); }
.file-hd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 44px; }
.file-hd h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; }
.file-hd .lead { color: #E2D8C6; margin: 0; max-width: 30em; }
.ff { position: relative; }
.ff-under, .ff-over, .ff-btn { display: none; }
.ff-prints { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ff-prints figure { margin: 0; height: 100%; display: flex; flex-direction: column; background: #F3EEE3; color: var(--ink); padding: 9px 9px 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 16px 30px -14px rgba(0,0,0,.75); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.ff-prints img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #2b1a10; }
.ff-prints figcaption { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 11px 3px 13px; }
.ff-prints figcaption i { font: 500 12.5px Mono, monospace; font-style: normal; letter-spacing: 1.5px; color: var(--goldtxt); }
.ff-prints figcaption b { font-family: Playfair, Georgia, serif; font-size: 18px; line-height: 1.25; }
.ff-prints figcaption span { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; color: var(--soft); }
[dir=rtl] .ff-prints figcaption b { font-family: PlexAr, Mont, sans-serif; line-height: 1.5; } [dir=rtl] .ff-prints figcaption span { line-height: 1.7; }
.ff.js { display: grid; grid-template-columns: clamp(210px, 23vw, 290px) minmax(0, 1fr); gap: 0 52px; align-items: center; }
.ff.js .ff-under, .ff.js .ff-over { display: block; grid-column: 1; grid-row: 1; align-self: end; position: relative; aspect-ratio: 3 / 4; cursor: pointer; }
.ff.js .ff-under { z-index: 1; } .ff.js .ff-over { z-index: 3; perspective: 1500px; pointer-events: none; }
.ff.js .ff-prints { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 2; }
[dir=rtl] .ff.js .ff-under, [dir=rtl] .ff.js .ff-over, [dir=rtl] .ff-face { transform: scaleX(-1); }
.ff-back { position: absolute; inset: 0; border-radius: 3px 10px 10px 3px; background: linear-gradient(180deg, #3b2616, #1f130b 70%, #2c1b10); box-shadow: inset 0 0 0 1px rgba(230,194,114,.3), 0 34px 60px -26px rgba(0,0,0,.9); }
.ff-pp { position: absolute; inset: 4% 4% 3% 10%; background: linear-gradient(180deg, #EDE5D4, #DDD2BC); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); transform: rotate(-1.4deg); }
.ff-pp.b { inset: 3% 6% 4% 11%; transform: rotate(1.1deg); background: repeating-linear-gradient(180deg, transparent 0 17px, rgba(60,40,20,.1) 17px 18px), linear-gradient(180deg, #F1EADB, #E3D9C5); }
.ff-cover { position: absolute; inset: 0 0 0 7%; transform-origin: 0 50%; transform-style: preserve-3d; border-radius: 2px 10px 10px 2px; background: linear-gradient(155deg, #58391f, #2e1c10 46%, #3f2817); box-shadow: inset 0 0 0 1px rgba(230,194,114,.42), inset 0 0 40px rgba(0,0,0,.35); transition: transform 1s cubic-bezier(.3,.1,.2,1) .6s; }
.ff-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255,236,190,.14) 50%, transparent 70%); pointer-events: none; }
.ff.open .ff-cover { transform: rotateY(-126deg); transition-delay: .3s; }
.ff-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; padding: 30% 10% 8% 14%; text-transform: uppercase; color: #E9D9B4; }
.ff-face b { font-family: Playfair, Georgia, serif; font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); letter-spacing: .2em; line-height: 1.2; color: var(--gold2); padding-top: 1em; margin-bottom: .9em; border-top: 1px solid rgba(230,194,114,.7); align-self: flex-start; }
.ff-face i { font: 500 10.5px/1.9 Mono, monospace; font-style: normal; letter-spacing: .24em; }
.ff-face em { margin-top: auto; font: 500 9.5px/1.4 Mono, monospace; font-style: normal; letter-spacing: .24em; color: rgba(233,217,180,.78); }
[dir=rtl] .ff-face { text-transform: none; } [dir=rtl] .ff-face b, [dir=rtl] .ff-face i, [dir=rtl] .ff-face em { font-family: PlexAr, Mont, sans-serif; letter-spacing: 0; } [dir=rtl] .ff-face i { font-size: 13px; } [dir=rtl] .ff-face em { font-size: 12px; }
.ff-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 7%; border-radius: 3px 0 0 3px; background: linear-gradient(90deg, #7a5a2a, #c8a55a 35%, #6b4d22 70%, #3a2614); box-shadow: -8px 0 22px -12px rgba(230,194,114,.5); }
.ff-clip { position: absolute; right: -9px; top: 38%; width: 30px; height: 46px; border-radius: 5px; background: linear-gradient(90deg, #1c1c1c, #3d3d3d 45%, #141414); box-shadow: 0 6px 10px rgba(0,0,0,.5); transition: transform .5s cubic-bezier(.3,.1,.2,1) 1.5s, opacity .3s 1.5s; }
.ff-clip::before { content: ""; position: absolute; right: 100%; top: 9px; width: 30px; height: 28px; border: 2px solid #c9ccd0; border-right: 0; border-radius: 14px 0 0 14px; }
.ff.open .ff-clip { transform: translate(46px, 26px) rotate(24deg); opacity: 0; transition-delay: 0s, .25s; }
.ff.js .ff-prints li { transition: transform .95s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--j, 0) * 70ms); }
.ff.js:not(.open) .ff-prints li { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r0, 0deg)) scale(var(--sc, .5)); }
.ff.js.open .ff-prints li { transition-delay: calc(.95s + var(--i, 0) * 90ms); }
.ff.js.open .ff-prints li:nth-child(odd) figure { transform: rotate(-.9deg); } .ff.js.open .ff-prints li:nth-child(even) figure { transform: rotate(.8deg); }
.ff.js.open .ff-prints li figure:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 26px 40px -14px rgba(0,0,0,.85); }
.ff.still .ff-prints li, .ff.still .ff-cover, .ff.still .ff-clip { transition: none !important; }
.ff.js .ff-btn { display: inline-flex; align-items: center; gap: 10px; grid-column: 1; grid-row: 2; align-self: start; justify-self: center; margin-top: 20px; padding: 12px 14px; background: none; border: 0; cursor: pointer; color: #E2D8C6; font: 500 12.5px Mono, monospace; letter-spacing: 2.4px; text-transform: uppercase; }
.ff-btn i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); box-shadow: 0 0 10px var(--gold2); } .ff-btn:hover { color: #fff; }
[dir=rtl] .ff.js .ff-btn { font: 600 14px PlexAr, Mont, sans-serif; letter-spacing: 0; text-transform: none; }
/* ---- Home, 03 the solution: the licence areas as a plan that rises into a skyline with the scroll (site/solve.js). The list under it is the text of the picture. */
.sky { margin: 40px 0 0; }
.sky canvas { display: none; width: 100%; height: clamp(150px, 24vw, 300px); }
.sky.js canvas { display: block; }
.sky-l { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 18px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.sky-l li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: baseline; }
.sky-l i { font: 500 12.5px Mono, monospace; font-style: normal; letter-spacing: 1px; color: var(--soft); }
.sky-l b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.sky-l span { grid-column: 2; font-size: 13px; line-height: 1.5; color: var(--soft); }
.sky-l em { font-style: normal; }
.sky-l li.hot i, .sky-l li.hot span { color: var(--goldtxt); font-weight: 600; }
.sky figcaption { font-size: 12.5px; line-height: 1.55; color: var(--soft); margin-top: 12px; max-width: 62em; }
.goal .proof { margin-top: 40px; }
@media print { .ff.js:not(.open) .ff-prints li { transform: none; } .ff.js .ff-under, .ff.js .ff-over, .ff.js .ff-btn { display: none; } .ff.js { display: block; } }
@media (max-width: 900px) {
  .file { padding: 62px 0 64px; } .file-hd { grid-template-columns: 1fr; margin-bottom: 30px; }
  .ff-prints { grid-template-columns: 1fr 1fr; gap: 12px; } .ff-prints figure { padding: 6px 6px 0; } .ff-prints figcaption { padding: 8px 2px 10px; } .ff-prints figcaption b { font-size: 15.5px; } .ff-prints figcaption span { font-size: 13px; }
  .ff.js { grid-template-columns: 1fr; justify-items: center; } .ff.js .ff-under, .ff.js .ff-over { width: 180px; } .ff.js .ff-btn { margin: 10px 0 14px; } .ff.js .ff-prints { grid-column: 1; grid-row: 3; }
  .sky { margin-top: 28px; } .sky-l { grid-template-columns: 1fr 1fr; } .goal .proof { margin-top: 30px; }
}

/* ---- Phones: the three new parts of the home page, tuned for a narrow screen.
   Problem: the text first, then the chart with room above it for the falling grains, then the two figures as its conclusion, then legend and source.
   Method: the prints are one row that is swiped sideways (the next print always shows at the edge), so the section is one screen high.
   Solution: the six blocks stand in two rows (solve.js), and the list keeps only names and areas. */
@media (max-width: 900px) {
  .why-top { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .why-txt, .why .dots { display: contents; }
  .why .eyebrow { order: 1; } .why h2 { order: 2; } .why .lead { order: 3; }
  .why .dots-s { order: 4; margin-top: 84px; } .why .dots-t { order: 5; }
  .why .why-rate { order: 6; margin-top: 26px; align-items: flex-end; } .why-rate b { font-size: 52px; } .why-rate > i { margin-bottom: 40px; }
  .why .dots figcaption { order: 7; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(230,194,114,.2); } .why .src { order: 8; }
}
@media (max-width: 600px) {
  .dots.cv .dots-s { aspect-ratio: 360 / 221; } .dots.cv svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .dots.cv .dots-y { font-size: 54px; top: -62px; } .dots-pk { font-size: 12px; }
  .ff-prints, .ff.js .ff-prints { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-self: stretch; width: calc(100% + 56px); margin-inline: -28px; padding: 6px 28px 18px; scroll-padding-inline: 28px; }
  .ff-prints::-webkit-scrollbar { display: none; }
  .ff-prints li { flex: 0 0 72%; scroll-snap-align: start; }
  .ff.js .ff-prints li { transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s; transition-delay: 0s; }
  .ff.js:not(.open) .ff-prints li { transform: translateX(46px); opacity: 0; } [dir=rtl] .ff.js:not(.open) .ff-prints li { transform: translateX(-46px); }
  .ff.js.open .ff-prints li { transition-delay: calc(.8s + var(--i, 0) * 80ms); }
  .ff.js .ff-under, .ff.js .ff-over { width: 150px; } .ff.js .ff-btn { margin: 6px 0 10px; }
  .ff-prints figcaption b { font-size: 17px; } .ff-prints figcaption span { font-size: 14px; }
  .sky canvas { height: 168px; } .sky-l li:not(.hot) em { display: none; } .sky-l { gap: 8px 14px; }
}

/* ---- The idea of the problem section in two lines, and the three difficulties geology names, each with our answer (head of the method section). */
.why-say { margin-top: 58px; padding-top: 34px; border-top: 1px solid rgba(230,194,114,.24); font-family: Playfair, Georgia, serif; font-size: clamp(24px, 3vw, 40px); line-height: 1.25; text-align: center; text-wrap: balance; color: #CDBFA8; }
.why-say b { font-weight: 700; color: var(--gold2); }
[dir=rtl] .why-say { font-family: PlexAr, Mont, sans-serif; font-weight: 600; line-height: 1.7; }
.fx .why-say span, .fx .why-say b { display: inline-block; opacity: .001; transform: translateY(16px); transition: opacity .8s, transform .9s cubic-bezier(.16,.8,.24,1); }
.fx .why-say.in span { opacity: 1; transform: none; transition-delay: .15s; } .fx .why-say.in b { opacity: 1; transform: none; transition-delay: .7s; }
.ans { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 34px; margin: -10px 0 46px; }
.ans li { padding-top: 14px; border-top: 1px solid rgba(230,194,114,.3); }
.ans span { display: block; font-size: 14px; line-height: 1.45; color: #B9AC96; }
.ans b { display: block; margin-top: 8px; padding-inline-start: 14px; border-inline-start: 2px solid var(--gold2); font-family: Playfair, Georgia, serif; font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.3; color: var(--cream); }
[dir=rtl] .ans b { font-family: PlexAr, Mont, sans-serif; font-weight: 600; line-height: 1.6; } [dir=rtl] .ans span { line-height: 1.7; }
.fx .ans li { opacity: .001; transform: translateY(16px); transition: opacity .7s, transform .8s cubic-bezier(.16,.8,.24,1); } .fx .ans.in li { opacity: 1; transform: none; }
.fx .ans.in li:nth-child(2) { transition-delay: .15s; } .fx .ans.in li:nth-child(3) { transition-delay: .3s; }
@media print { .fx .why-say span, .fx .why-say b, .fx .ans li { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .why-say { margin-top: 30px; padding-top: 26px; text-align: start; } .why-say b { display: block; }
  .ans { grid-template-columns: 1fr; gap: 14px; margin: 0 0 32px; }
}

/* ---- CEO's edits, 2026-11-29: three facts in the row (on a phone the first one takes the whole width), and his word in the opening line */
@media (max-width: 900px) { .proof > div:first-child { grid-column: 1 / -1; } }
.h3-step p b { font-weight: 600; color: var(--gold2); }

/* ---- first load, 2026-11-29: the field file's photographs are not fetched until the section is near (class "near", set by solve.js).
   Until then a box of the same shape stands in for each one, so nothing moves when they arrive. Without the script class (fx) nothing is hidden. */
.fx .file:not(.near) .ff-prints img { display: none; }
.fx .file:not(.near) .ff-prints figure::before { content: ""; display: block; width: 100%; aspect-ratio: 4 / 3; background: #2b1a10; }
