/* TerraTrade - components & sections. Portfolio design language re-toned to the brand. */

/* ================= COMPONENTS ================= */
@layer components {
  /* ---- living background (portfolio blob field, brand-tinted) ----
     Held still: drifting, five viewport-sized blended gradients were repainted on every frame behind everything,
     the single biggest cost on the page (measured ~20 fps → 60 fps on a throttled laptop profile once they stop).
     They now sit where the drift used to pass, so the soft glow is the same, just calm. */
  .space { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
  .blobs { position: absolute; inset: 0; overflow: hidden; opacity: var(--blob-o); }
  .blobs .b { position: absolute; width: 60vmax; height: 60vmax; top: calc(50% - 30vmax); left: calc(50% - 30vmax); mix-blend-mode: normal;
    background: radial-gradient(circle at center, rgba(var(--gc), .5) 0, rgba(var(--gc), .2) 32%, rgba(var(--gc), 0) 62%) no-repeat; }
  html.dark .blobs .b { mix-blend-mode: hard-light; }
  .b1 { --gc: var(--c1); transform: translate(-6%, -30%); }
  .b2 { --gc: var(--c2); transform: translate(-42%, 24%); opacity: .55; }
  .b3 { --gc: var(--c3); transform: translate(46%, -18%); opacity: .5; }
  .b4 { --gc: var(--c4); transform: translate(30%, 34%); opacity: .45; }
  .b5 { --gc: var(--c5); width: 90vmax; height: 90vmax; top: calc(50% - 45vmax); left: calc(50% - 45vmax); transform: translate(-14%, 8%); opacity: .5; }
  .grain { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: var(--grain-o);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  main, .site-foot { position: relative; z-index: 3; }
  main:focus { outline: none; }

  .progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; z-index: 80; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--forest), var(--sprout), var(--amber)); }
  [dir="rtl"] .progress { transform-origin: 100% 50%; }

  /* ---- icons ---- */
  .i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  svg.i.i-wa { fill: currentColor; stroke: none; } /* the WhatsApp glyph is a filled shape, never an outline */
  svg.i:has(use) { fill: currentColor; stroke: none; }

  /* ---- type helpers ---- */
  .kicker, .eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); font-weight: 700; min-height: 1.5em; display: block; }
  .kicker .tcaret { display: inline-block; width: .6em; animation: caret 1s steps(2) infinite; color: var(--warm); }
  @keyframes caret { 50% { opacity: 0; } }
  .section-head { margin-block-end: 40px; max-width: 820px; }
  .section-head .num, .cc-info .num { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent); min-height: 1.4em; }
  .section-head h2 { font-size: clamp(28px, 4.4vw, 52px); margin-top: 12px; text-wrap: balance; }
  .section-head p:not(.num) { color: var(--muted); max-width: 680px; margin-top: 16px; font-size: 16px; }
  .fine { font-size: 12.5px; color: var(--muted); margin-top: 22px; }
  .sec { padding-block: 110px 40px; }

  /* ---- buttons (portfolio .btn) ---- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 14.5px; font-weight: 600; font-family: var(--body);
    color: var(--txt); border: 1px solid var(--card-bd); border-radius: 12px; padding: 12px 20px; background: var(--card);
    transition: border-color .18s, background-color .18s, box-shadow .25s; cursor: pointer; will-change: transform; white-space: nowrap; }
  .btn:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
  .btn.primary { color: var(--on-accent); background: var(--grad-btn); border-color: transparent; box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--leaf) 80%, transparent); }
  .btn.primary:hover { box-shadow: 0 20px 44px -16px color-mix(in srgb, var(--leaf) 90%, transparent); background: var(--grad-btn); }
  .btn.ghost { background: transparent; }
  .btn.wa .i { stroke-width: 1.7; }
  .btn .i { width: 18px; height: 18px; }

  .icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-bd); background: var(--card); display: grid; place-items: center; color: var(--txt); transition: .25s; }
  .icon-btn:hover { border-color: var(--accent); transform: rotate(20deg) scale(1.06); }
  .icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .3s, transform .4s var(--ease); }
  .icon-btn .i-moon { fill: currentColor; stroke: none; }
  .icon-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
  html.dark .icon-btn .i-sun { opacity: 1; transform: none; }
  html.dark .icon-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }

  .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: var(--card); border: 1px solid var(--card-bd); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }

  /* ---- tabs (portfolio pill tabs) ---- */
  .tab { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); border: 1px solid var(--card-bd); background: var(--card);
    padding: 9px 16px; border-radius: 999px; transition: .2s; }
  .tab:hover { color: var(--txt); border-color: color-mix(in srgb, var(--accent) 50%, var(--card-bd)); }
  .tab.active { color: var(--on-accent); background: var(--grad-btn); border-color: transparent; }
  .tab .i { width: 18px; height: 18px; }
  .tab .cnt { font-family: var(--mono); font-size: 11px; }

  /* ---- glass card with spinning conic border + cursor glow (portfolio .card) ---- */
  .card { position: relative; border: 1px solid var(--card-bd); border-radius: var(--r); background: var(--card); transform-style: preserve-3d; transition: transform .18s var(--ease), box-shadow .3s; --a: var(--sprout); }
  .card:hover { box-shadow: 0 28px 60px -32px var(--a); }
  .card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
    background: conic-gradient(from var(--ang), transparent 0%, var(--a) 12%, transparent 30%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity .3s; z-index: 4; pointer-events: none; }
  .card:hover::before, .card:focus-within::before { opacity: 1; animation: spin 3.2s linear infinite; }
  @keyframes spin { to { --ang: 360deg; } }
  .glow { position: absolute; inset: -1px; border-radius: inherit; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 3;
    background: radial-gradient(340px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--a) 22%, transparent), transparent 70%); }
  .card:hover .glow { opacity: 1; }

  /* ---- toast ---- */
  .toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--card-solid); border: 1px solid var(--accent);
    color: var(--txt); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-family: var(--mono); opacity: 0; transition: .3s; z-index: 190; pointer-events: none; box-shadow: var(--shadow); }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ================= NAV ================= */
@layer components {
  .nav { position: fixed; top: 0; inset-inline: 0; z-index: 60; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
  .nav.scrolled { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg) 55%, transparent));
    backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--card-bd); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: var(--nav-h); }
  .brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
  .brand-logo { height: 38px; width: auto; aspect-ratio: 752 / 264; }
  html.dark { --logo-ink: #EEFAE9; }
  html.dark .brand-logo, html.dark .foot-logo { filter: drop-shadow(0 0 1px rgba(233, 255, 229, .35)); }
  .links { display: flex; align-items: center; gap: 2px; }
  .links a { font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; white-space: nowrap; }
  .links a:hover, .links a.on { color: var(--txt); background: color-mix(in srgb, var(--accent) 9%, transparent); }
  .nav-tools { display: flex; align-items: center; gap: 8px; }
  .lang { font-family: system-ui, "Segoe UI", "Geeza Pro", sans-serif; /* one Arabic word: system Arabic font, no 40KB web-font download on the English page */ font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--card-bd); background: var(--card); transition: .2s; }
  .lang:lang(en) { font-family: var(--body); }
  .lang:hover { border-color: var(--accent); }
  .nav-cta { padding: 10px 16px; font-size: 13.5px; }
  .burger { display: none; flex-direction: column; gap: 4.5px; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--card-bd); background: var(--card); align-items: center; justify-content: center; }
  .burger span { display: block; width: 17px; height: 2px; background: var(--txt); border-radius: 2px; transition: .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .mnav { position: fixed; top: var(--nav-h); inset-inline: 0; z-index: 59; display: flex; flex-direction: column; padding: 8px 22px 18px;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--card-bd);
    transform: translateY(-8px); opacity: 0; transition: transform .35s var(--ease), opacity .25s; }
  .mnav.is-open { transform: none; opacity: 1; }
  .mnav a { padding: 13px 4px; font-family: var(--disp); font-size: 17px; font-weight: 600; border-bottom: 1px solid color-mix(in srgb, var(--card-bd) 70%, transparent); }
  .mnav a:last-child { border-bottom: 0; }
  @media (max-width: 1000px) { .links { display: none; } .burger { display: flex; } }
  @media (max-width: 520px) { .nav-cta { display: none; } .brand-logo { height: 32px; } }
  /* no-JS: keep a usable menu on small screens */
  .no-js .burger { display: none; }
  @media (max-width: 1000px) { .no-js .links { display: flex; overflow-x: auto; max-width: 46vw; } }
}

/* ================= SECTIONS ================= */
@layer sections {
  /* ---- HERO ---- */
  .hero { position: relative; padding-top: calc(var(--nav-h) + 48px); padding-bottom: 40px; overflow-x: clip; } /* sideways only: the bubble glow fades out below the hero instead of stopping at a hard edge */
  .grid-overlay { position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%); mask-image: radial-gradient(120% 80% at 50% 0%, #000 25%, transparent 75%); }
  .hero-inner { position: relative; z-index: 3; }
  .hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
  .hero h1 { position: relative; z-index: 2; font-size: clamp(38px, 5.4vw, 70px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin-top: 18px; }
  .h1-line { display: block; }
  /* hero accent: an all-green gradient (no harvest amber in the headline) */
  .hero { --grad-hero: linear-gradient(100deg, var(--forest) 0%, #0A7A33 25%, #3E9E3A 50%, #0A7A33 75%, var(--forest) 100%); }
  html.dark .hero { --grad-hero: linear-gradient(100deg, #EEFAE9 0%, #9BE88C 25%, var(--sprout) 50%, #9BE88C 75%, #EEFAE9 100%); }
  .h1-accent { background: var(--grad-hero); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
  .h1-accent.split { background: none; color: inherit; }
  .h1-accent .ltr { display: inline-block; background: var(--grad-hero);
    background-size: 300% 100%; background-position: calc(var(--p, 0) * 100%) 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .35s var(--ease);
    padding-block: .14em .3em; margin-block: -.14em -.3em; } /* grow the text-clip box so descenders aren't sliced */
  [dir="rtl"] .h1-accent .ltr { padding-block: .3em .45em; margin-block: -.3em -.45em; }
  [dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.38; font-size: clamp(32px, 4.8vw, 62px); }
  .h1-accent .ltr:hover { transform: translateY(-8px) rotate(-4deg); }
  .role { display: flex; align-items: center; gap: .45em; flex-wrap: wrap; font-family: var(--disp); font-weight: 600; font-size: clamp(18px, 2.4vw, 26px); margin-top: 22px; }
  .morphbox { position: relative; display: inline-block; min-width: 11ch; height: 1.6em; line-height: 1.6; color: var(--accent); }
  .morphbox .mword { position: absolute; inset-inline-start: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(.35em); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .morphbox .mword.on { opacity: 1; transform: none; }
  .morphbox .mword.is-static, .no-js .morphbox .mword { position: static; opacity: 1; }
  .lede { max-width: 600px; color: var(--muted); font-size: 16.5px; margin-top: 18px; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 34px 0 0; max-width: 700px; }
  .fact { border: 1px solid var(--card-bd); border-radius: 14px; background: var(--card); padding: 12px 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
  .fact dd { margin: 0; font-family: var(--disp); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; color: var(--txt); }
  /* "5,000+ MT": the number scales to its box (container units), the unit is set small beside it and wraps under
     it rather than ever spilling out of the box */
  .fact { container-type: inline-size; }
  .fact dd.cap { font-size: min(clamp(22px, 2.6vw, 30px), 21cqi); }
  .fact dd.cap .unit { font-size: .55em; font-weight: 600; color: var(--muted); }
  .fact dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .hero-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; padding: 7px 12px; border-radius: 999px;
    background: var(--card-solid); border: 1px solid var(--card-bd); box-shadow: var(--shadow); white-space: nowrap; }
  .hero-chip b { color: var(--accent); }
  .hero-chip .i { width: 16px; height: 16px; color: var(--accent); }
  .hero-chip.c1 { top: 8%; inset-inline-start: -18%; }
  .hero-chip.c2 { bottom: 10%; inset-inline-end: -12%; }
  .scroll-cue { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; display: none; flex-direction: column; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
  .scroll-cue i { width: 1px; height: 30px; background: linear-gradient(var(--accent), transparent); animation: cue 1.8s ease-in-out infinite; }
  @keyframes cue { 0%, 100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
  @media (max-width: 960px) {
    .hero-row { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    .hero { padding-top: calc(var(--nav-h) + 26px); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .actions .btn { flex: 1 1 auto; }
  }

  /* ---- marquee band (portfolio) ---- */
  .band { position: relative; z-index: 3; border-block: 1px solid var(--card-bd); background: linear-gradient(180deg, color-mix(in srgb, var(--bg-2) 70%, transparent), transparent);
    padding: 20px 0; overflow: hidden; transform: rotate(-1.2deg) scale(1.02); margin: 56px 0 10px; }
  .marquee { display: flex; width: max-content; white-space: nowrap; font-family: var(--mono); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; margin: 0; padding: 0; list-style: none; direction: ltr; }
  .marquee li { padding: 0 18px; }
  .marquee.m1 li { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .marquee li::after { content: '✦'; margin-inline-start: 36px; color: var(--warm); -webkit-text-fill-color: var(--warm); }
  .marquee.m1 { animation: marq 38s linear infinite; }
  .marquee.m2 { animation: marq 46s linear infinite reverse; opacity: .55; font-size: 13px; margin-top: 8px; color: var(--muted); }
  [dir="rtl"] .marquee.m1 { animation-direction: reverse; }
  [dir="rtl"] .marquee.m2 { animation-direction: normal; }
  [dir="rtl"] .marquee li { direction: rtl; font-family: var(--disp); }
  @keyframes marq { to { transform: translateX(-50%); } }
  @media (max-width: 760px) { .band { transform: none; } }

  /* ---- PRODUCTS ---- */
  .filter { display: flex; flex-wrap: wrap; gap: 8px; }
  .panel-h { font-family: var(--disp); font-weight: 600; font-size: clamp(18px, 2.2vw, 26px); margin: 24px 0 30px; min-height: 1.4em; overflow: hidden; max-width: 900px; }
  .panel-h .ch { display: inline-block; will-change: transform; }
  .pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
  .pcard { position: relative; }
  .pcard[hidden] { display: none; }
  /* card faces, frame and flip: fx.css [data-fx="flip"] */
  .idx { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent); }
  .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .blurb { color: var(--muted); font-size: 13.5px; margin: 8px 0 16px; flex: 1; }
  .open { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--txt); border: 1px solid var(--card-bd); border-radius: 10px; padding: 8px 12px; background: none; transition: .2s; }
  .open .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
  .open:hover { border-color: var(--a); background: color-mix(in srgb, var(--a) 14%, transparent); }
  .open:hover .i { transform: translateX(3px); }
  [dir="rtl"] .open:hover .i { transform: scaleX(-1) translateX(3px); }
  @media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 820px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 460px) { .pgrid { grid-template-columns: 1fr; } }

  /* ---- ABOUT ---- */
  .about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 44px; align-items: start; }
  .big { font-family: var(--disp); font-weight: 500; font-size: clamp(19px, 2.4vw, 29px); line-height: 1.5; }
  .big .w { color: var(--muted); transition: color .25s var(--ease); } /* unlit words stay ≥4.5:1 */
  .big .w.lit { color: var(--txt); }
  .big .w.accent.lit { color: var(--accent); }
  .fgrid { display: grid; gap: 12px; margin: 0; }
  .fitem { border: 1px solid var(--card-bd); border-radius: 14px; padding: 14px 16px; background: var(--card); }
  .fitem dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
  .fitem dd { margin: 4px 0 0; font-weight: 600; }
  @media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

  /* About: heading above the mission / vision / values banners (the banners themselves: fx.css [data-fx="banners"]) */
  .values-h { margin: 70px 0 8px; font-size: 14px; font-family: var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); text-align: center; }

  /* ---- MANIFESTO (portfolio) ---- */
  .manifesto { padding: 26px 0 10px; }
  .core-h { margin-top: 64px; }
  .mline { position: relative; font-family: var(--disp); font-weight: 700; font-size: clamp(38px, 8vw, 104px); line-height: 1.1; text-transform: uppercase; letter-spacing: -.03em; width: fit-content; cursor: default; }
  [dir="rtl"] .mline { text-transform: none; letter-spacing: 0; line-height: 1.5; }
  .mline .fill { background: linear-gradient(90deg, var(--forest), #0A7A33 50%, var(--amber)) no-repeat, linear-gradient(90deg, color-mix(in srgb, var(--muted) 24%, transparent), color-mix(in srgb, var(--muted) 24%, transparent));
    background-size: 0% 100%, 100% 100%; -webkit-background-clip: text, text; background-clip: text, text; color: transparent; }
  html.dark .mline .fill { background-image: linear-gradient(90deg, #EEFAE9, var(--sprout) 50%, var(--amber)), linear-gradient(90deg, color-mix(in srgb, var(--muted) 24%, transparent), color-mix(in srgb, var(--muted) 24%, transparent)); }
  [dir="rtl"] .mline .fill { background-position: 100% 0, 0 0; }
  @supports (animation-timeline: view()) {
    .mline .fill { animation: mreveal linear forwards; animation-timeline: view(); animation-range: entry 60% cover 42%; }
    @keyframes mreveal { to { background-size: 100% 100%, 100% 100%; } }
  }
  @supports not (animation-timeline: view()) { .mline.in .fill { background-size: 100% 100%, 100% 100%; transition: background-size 1.1s var(--ease); } }
  .no-js .mline .fill { background-size: 100% 100%, 100% 100%; }
  .mline .alt { position: absolute; inset: 0; display: flex; align-items: center; padding: .3em .85em; background: var(--grad-btn); color: var(--on-accent); font-size: max(.2em, 14px);
    font-family: var(--mono); font-weight: 400; letter-spacing: .02em; text-transform: none; clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%); transition: clip-path .45s var(--ease); border-radius: 10px; }
  .mline:hover .alt { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  @media (prefers-reduced-motion: reduce) { .mline .fill { background-size: 100% 100%, 100% 100%; animation: none; } }

  /* ---- OPERATIONS (Nigeria map story) ---- */
  .ops-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 50px; align-items: center; }
  .ngmap { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--card-bd); box-shadow: var(--shadow); background: var(--sea); aspect-ratio: 1000 / 837; }
  .ngmap-svg { width: 100%; height: 100%; }
  .ng-sea { fill: var(--sea); }
  .ng-neigh path { fill: var(--land-2); stroke: var(--land-2-bd); stroke-width: 1.2; }
  .ng-land { fill: var(--forest); }
  html.dark .ng-land { fill: #0F5A38; }
  .ng-outline { fill: none; stroke: var(--sprout); stroke-width: 3; stroke-linejoin: round; }
  .ng-zone { fill: color-mix(in srgb, var(--amber) 22%, transparent); stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 7 7; }
  .ng-route { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; }
  .ng-sea-route { fill: none; stroke: var(--forest); stroke-width: 4.5; stroke-dasharray: 1 11; stroke-linecap: round; }
  html.dark .ng-sea-route { stroke: #9BE88C; }
  .hub { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; }
  .hub i { width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); position: relative; }
  .hub i::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--amber); animation: hubping 2.4s ease-out infinite; }
  @keyframes hubping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
  .hub b { font-family: var(--disp); font-size: clamp(12px, 1.3vw, 15px); color: #fff; background: rgba(1, 30, 18, .78); padding: 3px 10px; border-radius: 8px; white-space: nowrap; transform: translateX(8px); }
  .hub-kano b { position: absolute; left: 100%; }
  .hub-lagos { flex-direction: row; }
  .hub-lagos b { position: absolute; left: 100%; top: -14px; }
  .map-note { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; white-space: nowrap;
    padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--card-solid) 88%, transparent); border: 1px solid var(--card-bd); display: inline-flex; gap: 6px; align-items: center; }
  .map-note .i { width: 15px; height: 15px; color: var(--accent); }
  .map-compass { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px; background: var(--card-solid); border: 1px solid var(--card-bd); }
  .map-compass::before { content: ''; position: absolute; top: -7px; border: 6px solid transparent; border-bottom: 8px solid var(--amber); border-top: 0; }
  .ops-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
  .ops-step { border: 1px solid var(--card-bd); border-radius: var(--r); padding: 20px 22px; background: var(--card); transition: border-color .3s, box-shadow .3s, opacity .3s; }
  .ops-step.on { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: var(--shadow); }
  .js .ops-stage.pinning .ops-step:not(.on) h3 { color: var(--muted); }
  .ops-step h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-top: 6px; }
  .ops-step h3 .i { width: 26px; height: 26px; color: var(--accent); }
  .ops-step p:last-child { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
  @media (max-width: 900px) {
    .ops-stage { grid-template-columns: 1fr; gap: 24px; }
    .ngmap { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 2; }
    .ops-steps { position: relative; z-index: 3; }
    .hub b { font-size: 11px; padding: 2px 7px; }
    .map-note { font-size: 9.5px; }
    .zone-note { display: none; }
  }

  /* ---- PROCESS (portfolio scroll cube) ---- */
  .process { padding-bottom: 0; }
  .cube-wrap { position: relative; height: 320vh; }
  .cube-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .cube-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; width: 100%; }
  .cube-scene { perspective: 1100px; display: grid; place-items: center; height: min(56vh, 460px); }
  .cube { --s: min(40vh, 330px); width: var(--s); height: var(--s); position: relative; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(28deg); }
  .face { position: absolute; inset: 0; border-radius: 22px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; backface-visibility: hidden;
    border: 1px solid color-mix(in srgb, #fff 18%, transparent); color: #fff; overflow: hidden;
    background: radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(135deg, var(--fc0, var(--forest)), var(--fc1, #0A7A33)); box-shadow: inset 0 0 60px rgba(0, 0, 0, .18); }
  .face .fnum { font-family: var(--mono); font-size: 13px; font-weight: 700; opacity: .85; }
  .face .fword { font-family: var(--disp); font-weight: 700; font-size: calc(var(--s) * .13); line-height: 1.05; overflow-wrap: anywhere; }
  .face svg { width: 38%; height: 38%; fill: currentColor; align-self: flex-end; opacity: .95; }
  .face.intro { justify-content: center; align-items: flex-start; gap: 12px; }
  .face.intro .fword { font-size: calc(var(--s) * .13); }
  .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
  .step:not(.on) h3 { color: var(--muted); }
  .step:not(.on) .snum { color: var(--muted); }
  .step .snum { grid-row: span 2; font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 13px; padding-top: 4px; }
  .step h3 { font-size: 20px; }
  .step p { color: var(--muted); font-size: 14px; margin-top: 2px; }
  .step.on { background: var(--card); border-color: color-mix(in srgb, var(--accent) 40%, var(--card-bd)); box-shadow: var(--shadow); }
  .cube-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
  .cube-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: var(--card-bd); transition: .3s; }
  .cube-dots button.on { background: var(--accent); transform: scale(1.3); }
  /* static fallback: phones, no-JS, reduced motion */
  .cube-static .cube-wrap, .no-js .cube-wrap { height: auto; }
  .cube-static .cube-sticky, .no-js .cube-sticky { position: static; height: auto; padding: 10px 0 60px; }
  .cube-static .cube-scene, .no-js .cube-scene, .cube-static .cube-dots, .no-js .cube-dots { display: none; }
  .cube-static .cube-grid, .no-js .cube-grid { grid-template-columns: 1fr; }
  .cube-static .steps, .no-js .steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
  .cube-static .step, .no-js .step { opacity: 1; background: var(--card); border-color: var(--card-bd); }

  /* ---- WHY ---- */
  .scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
  .scard { padding: 28px 26px 30px; overflow: hidden; }
  .scard > * { position: relative; z-index: 5; }
  .sico { width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--a) 16%, transparent); margin-bottom: 20px; }
  .sico svg { width: 64%; height: 64%; fill: var(--forest); }
  html.dark .sico svg { fill: var(--txt); }
  .scard h3 { font-size: 21px; }
  .scard p { color: var(--muted); margin-top: 10px; font-size: 14.5px; }
  @media (max-width: 900px) { .scards { grid-template-columns: 1fr; } }


  /* ---- MARKETS (globe) ---- */
  .mk-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .globe-box { position: relative; width: min(100%, 580px); margin-inline: auto; aspect-ratio: 1; }
  #globe { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
  #globe:active { cursor: grabbing; }
  .globe-tip { position: absolute; transform: translate(-50%, -140%); pointer-events: none; font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
    background: var(--forest); color: #fff; box-shadow: var(--shadow); }
  .globe-hint { position: absolute; bottom: 4px; inset-inline: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
  .regions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .mk-origin { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
  .mk-h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; font-weight: 700; }
  .swatch { width: 26px; height: 4px; border-radius: 4px; flex: none; }
  .sw-origin { width: 12px; height: 12px; border-radius: 50%; background: var(--sprout); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sprout) 25%, transparent); }
  .sw-active { background: var(--amber); }
  .sw-asia { background: var(--sprout); }
  .mk-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .mk-btn { display: inline-flex; align-items: center; gap: 8px; padding-block: 7px; padding-inline: 8px 12px; border-radius: 999px; border: 1px solid var(--card-bd); background: var(--card); font-size: 14px; color: var(--txt); transition: .2s; }
  .mk-btn:hover, .mk-list li.on .mk-btn { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
  .mk-list .cc { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--amber) 22%, transparent); color: var(--warm-ink); }
  .mk-list li[data-region="asia"] .cc { background: color-mix(in srgb, var(--sprout) 20%, transparent); color: var(--accent); }
  .mk-list li.dim .mk-btn { color: var(--muted); background: transparent; border-style: dashed; }
  .mk-list li.dim .cc { background: transparent; }
  html.dark .mk-list .cc { color: #FFD27A; background: color-mix(in srgb, var(--amber) 14%, transparent); }
  @media (max-width: 900px) { .mk-grid { grid-template-columns: 1fr; } }

  /* ---- PARTNERS ---- */
  .plogos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .plogos li { display: grid; place-items: center; height: 120px; padding: 20px; border-radius: var(--r); border: 1px solid var(--card-bd); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
  .plogos img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.15); transition: filter .35s; }
  .plogos img[src*="nepc"] { max-height: 84px; transform: scale(1.2); }
  .plogos li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .plogos li:hover img { filter: none; opacity: 1; }
  html.dark .plogos li { background: color-mix(in srgb, #F4FBF0 88%, var(--bg)); }
  @media (max-width: 900px) { .plogos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 520px) { .plogos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plogos li { height: 96px; } }


  /* ---- CONTACT ---- */
  .contact { padding-bottom: 120px; }
  .contact-card { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; border: 1px solid var(--card-bd); border-radius: 28px; padding: 48px;
    overflow: hidden; background: radial-gradient(700px 320px at 0% -10%, color-mix(in srgb, var(--sprout) 20%, transparent), transparent 70%), var(--card); box-shadow: var(--shadow); }
  .contact-card .spot { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(240px 240px at var(--sx, 50%) var(--sy, 30%), color-mix(in srgb, var(--amber) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; }
  .contact-card:hover .spot { opacity: 1; }
  .cc-info h2 { font-size: clamp(34px, 5vw, 64px); margin-top: 10px; }
  .cc-info .lede { margin-top: 14px; }
  .channels { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
  .channels li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--card-bd); background: color-mix(in srgb, var(--card-solid) 60%, transparent); }
  .ch-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
  .ch-v { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; flex-wrap: wrap; }
  .ch-v a { color: var(--txt); text-decoration: none; }
  .copy { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--card-bd); background: var(--card); transition: .2s; font-family: var(--body); }
  .copy:hover { border-color: var(--accent); }
  .cc-photo { margin-top: 22px; }
  .cc-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }
  .rfq { position: relative; display: grid; gap: 14px; align-content: start; }
  .rfq-h { font-size: 24px; }
  .hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .field { display: grid; gap: 6px; }
  .field label { font-size: 13px; font-weight: 600; }
  .req { color: var(--warm-ink); }
  .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--card-bd); background: color-mix(in srgb, var(--card-solid) 80%, transparent);
    color: var(--txt); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
  .field textarea { resize: vertical; min-height: 100px; }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
  .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
  [dir="rtl"] .field input[dir="ltr"] { text-align: right; }
  .field [aria-invalid="true"] { border-color: #C2410C; }
  .rfq-note { font-size: 13px; color: var(--muted); }
  .rfq-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
  .submit[disabled] { opacity: .7; cursor: progress; }
  .form-status { font-size: 13.5px; color: var(--muted); }
  .form-status.err { color: #C2410C; }
  html.dark .form-status.err, html.dark .field [aria-invalid="true"] { color: #FB923C; border-color: #FB923C; }
  .rfq-done { display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 20px; }
  .rfq-done[hidden] { display: none; }
  .rfq-done:focus { outline: none; }
  .done-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-btn); box-shadow: 0 16px 40px -14px var(--leaf); }
  .done-ico svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .rfq-done h3 { font-size: 26px; }
  .rfq-done p { color: var(--muted); max-width: 420px; }
  @media (max-width: 960px) { .contact-card { grid-template-columns: 1fr; padding: 32px 24px; } .cc-photo { display: none; } }
  @media (max-width: 560px) { .row { grid-template-columns: 1fr; } .contact-card { padding: 26px 18px; border-radius: 22px; } }

  /* ---- FOOTER ---- */
  .site-foot { border-top: 1px solid var(--card-bd); padding: 46px 0 0; overflow: hidden; }
  .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
  .foot-logo { height: 46px; width: auto; aspect-ratio: 752 / 264; }
  .foot-brand p { color: var(--muted); margin-top: 12px; max-width: 320px; font-size: 14px; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; font-size: 14px; }
  .foot-links a { color: var(--muted); }
  .foot-links a:hover { color: var(--txt); }
  .foot-contact { font-style: normal; display: grid; gap: 8px; align-content: start; font-size: 14px; color: var(--muted); }
  .foot-contact a:hover { color: var(--txt); }
  .foot-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
  .foot-bottom::before { content: ''; position: absolute; top: 0; inset-inline: 24px; border-top: 1px solid var(--card-bd); }
  .foot-meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .foot-meta a:hover { color: var(--txt); text-decoration-color: var(--accent); }
  .foot-word { font-family: var(--disp); font-weight: 700; font-size: clamp(64px, 17vw, 250px); line-height: .8; letter-spacing: -.05em; text-align: center; margin: 26px 0 -.12em;
    color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 38%, transparent); user-select: none; white-space: nowrap; pointer-events: none; }
  @media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

  /* ---- HUD side dots (portfolio) ---- */
  .hud { position: fixed; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); z-index: 65; display: flex; flex-direction: column; gap: 12px; }
  .hud a { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); transition: .3s; }
  .hud a.on { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
  .hud a span { position: absolute; inset-inline-start: 20px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; padding: 3px 8px; border-radius: 6px;
    background: var(--card-solid); border: 1px solid var(--card-bd); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .hud a:hover span, .hud a:focus-visible span { opacity: 1; }
  @media (max-width: 1300px) { .hud { display: none; } }

  /* ---- SPEC SHEET dialog (portfolio case-file shell) ---- */
  .spec { width: min(1080px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--card-bd); border-radius: 26px; background: var(--card-solid); color: var(--txt);
    box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .6); overflow: hidden; }
  .spec::backdrop { background: rgba(2, 20, 12, .62); backdrop-filter: blur(12px); }
  .spec[open] { animation: cfin .45s var(--ease); }
  @keyframes cfin { from { opacity: 0; transform: translateY(26px) scale(.96); } }
  .spec-ghost { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: flex; align-items: flex-end; opacity: .35; }
  .spec-ghost span { font-family: var(--disp); font-weight: 700; font-size: 14vw; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 30%, transparent); animation: ghost 46s linear infinite; }
  @keyframes ghost { from { transform: translate(0, 28%); } to { transform: translate(-50%, 28%); } }
  @media (max-width: 820px) { .spec-ghost { display: none; } }
  .spec-wrap { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; padding: 34px; max-height: calc(100dvh - 34px); overflow: auto; }
  .spec-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 6; box-shadow: var(--shadow); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--card-bd); background: var(--card-solid); display: grid; place-items: center; z-index: 5; }
  .spec-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .spec-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; background: var(--bg-2); }
  .season { display: grid; grid-template-columns: auto repeat(12, 1fr); gap: 3px; margin-top: 14px; }
  .season-cap { grid-column: 1 / -1; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .season span { display: grid; place-items: center; height: 34px; border-radius: 6px; font-family: var(--mono); font-size: 10px; background: var(--bg-2); color: var(--muted); }
  .season span.season-m { background: none; height: 34px; padding-inline-end: 6px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
  .season span.on { background: var(--grad-btn); color: var(--on-accent); font-weight: 700; }
  .spec-body h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 8px; }
  .spec-blurb { color: var(--muted); margin-top: 10px; }
  .spec-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 22px; }
  .spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
  .spec-table th, .spec-table td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--card-bd); }
  .spec-table th { font-weight: 500; color: var(--muted); width: 50%; }
  .spec-table td { font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
  .spec-pack { margin-top: 16px; font-size: 14px; color: var(--muted); }
  .spec-pack b { color: var(--txt); }
  .spec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  @media (max-width: 820px) { .spec-wrap { grid-template-columns: 1fr; padding: 22px 18px 26px; gap: 18px; } .spec-media img { aspect-ratio: 16 / 10; } }
}

/* ---- print: the spec sheet prints on its own, always in light colours ---- */
@media print {
  body.printing .spec { --txt: #0B2A1C; --muted: #486152; --accent: #0A7A33; --card-bd: rgba(1, 61, 39, .2); --card-solid: #fff; --bg-2: #E6F7E0; color: #0B2A1C; background: #fff; }
  body.printing .season span.on, body.printing .season span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing > *:not(.spec) { display: none !important; }
  body.printing .spec { position: static; display: block; box-shadow: none; border: 0; width: 100%; max-height: none; }
  body.printing .spec::backdrop { display: none; }
  body.printing .spec-ghost, body.printing .spec-close, body.printing .spec-actions { display: none !important; }
  body.printing .spec-wrap { max-height: none; overflow: visible; }
}

/* ================= late additions ================= */
@layer components {
  /* [hidden] must win over component display values */
  .mnav[hidden], .rfq[hidden], .pcard[hidden], .rfq-done[hidden], .globe-tip[hidden] { display: none; }
  .no-js .band { display: none; }
  /* theme sweep (portfolio view-transition reveal) */
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-new(root) { animation: vtreveal .6s ease-out; }
  @keyframes vtreveal { from { clip-path: circle(0% at var(--vx, 90%) var(--vy, 5%)); } to { clip-path: circle(150% at var(--vx, 90%) var(--vy, 5%)); } }
  /* map cargo markers (added by scenes/nigeria-map.js) */
  .ng-cargo { fill: #fff; stroke: var(--amber); stroke-width: 4; }
  .ng-ship { fill: var(--forest); stroke: #fff; stroke-width: 3; }
  html.dark .ng-ship { fill: #9BE88C; stroke: var(--forest); }
}

/* ================= review fixes (layout / a11y) ================= */
@layer sections {
  /* phones & tablets: cards pass UNDER the sticky map, which is capped so the active card stays visible */
  @media (max-width: 900px) {
    .ngmap { z-index: 4; max-width: min(100%, calc(52vh * 1000 / 837)); margin-inline: auto; }
    .ops-steps { z-index: 1; }
  }
  /* process: sticky stage sits under the nav; dots under the cube */
  .cube-sticky { top: var(--nav-h); height: calc(100vh - var(--nav-h)); justify-content: flex-start; padding-top: 4vh; }
  .cube-grid { grid-template-rows: auto auto; }
  .cube-grid .steps { grid-row: 1 / span 2; grid-column: 2; }
  .cube-grid .cube-scene { grid-row: 1; grid-column: 1; }
  .cube-dots { grid-column: 1; grid-row: 2; margin-top: 0; gap: 0; }
  .cube-dots button { width: 24px; height: 24px; display: grid; place-items: center; background: none; border-radius: 50%; }
  .cube-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--card-bd); transition: .3s; }
  .cube-dots button.on { transform: none; background: none; }
  .cube-dots button.on::before { background: var(--accent); transform: scale(1.3); }
  /* static step list (phones, tablets, reduced motion, no JS) - pure CSS so the page height never jumps */
  @media (max-width: 900px), (prefers-reduced-motion: reduce) {
    .cube-wrap { height: auto; }
    .cube-sticky { position: static; height: auto; padding: 10px 0 60px; }
    .cube-scene, .cube-dots { display: none; }
    .cube-grid { grid-template-columns: 1fr; }
    .cube-grid .steps { grid-row: auto; grid-column: auto; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
    .step { background: var(--card); border-color: var(--card-bd); }
  }
  .cube-static .step h3, .no-js .step h3, .cube-static .step .snum, .no-js .step .snum { color: inherit; }
  .cube-static .step .snum, .no-js .step .snum { color: var(--accent); }
  @media (max-width: 900px), (prefers-reduced-motion: reduce) { .step h3 { color: var(--txt) !important; } .step .snum { color: var(--accent) !important; } }
  .step { align-content: start; }

  /* manifesto captions: visible to everyone (small caption under each word), wipe still plays on hover */
  .mline { margin-bottom: 1.1em; }
  .mline .alt { inset: auto; top: 100%; left: 0; font-size: max(.16em, 13px); padding: .35em .8em; clip-path: none; position: absolute; white-space: nowrap; transform-origin: 0 50%; transition: transform .45s var(--ease), background .3s; }
  [dir="rtl"] .mline .alt { left: auto; right: 0; transform-origin: 100% 50%; }
  .mline:hover .alt { transform: scale(1.04); }
  /* phones: a caption can be wider than the screen, so it joins the flow under its word and wraps */
  @media (max-width: 600px) {
    .mline { margin-bottom: .6em; }
    .mline .alt { position: static; display: block; width: fit-content; max-width: 100%; margin-top: .25em; white-space: normal; line-height: 1.45; }
  }

  /* form: focus rings that survive forced colours, visible per-field errors */
  .field :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .field [aria-invalid="true"], .field [aria-invalid="true"]:focus { border-color: #C2410C; border-width: 2px; }
  html.dark .field [aria-invalid="true"] { border-color: #FB923C; }
  .f-err { color: #C2410C; font-size: 13px; font-weight: 600; margin: 2px 0 0; }
  html.dark .f-err { color: #FB923C; }
  .submit[aria-disabled="true"] { opacity: .7; cursor: progress; }
  .rfq-done h3:focus { outline: none; }

  /* HUD: 24px targets around the 10px dots (WCAG 2.5.8) */
  .hud { gap: 0; }
  .hud a { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; }
  .hud a::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--faint); transition: .3s; }
  .hud a.on { transform: none; background: none; }
  .hud a.on::before { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }
  .hud a span { inset-inline-start: 28px; }

  /* "Pause animations" (WCAG 2.2.2) lives in the footer line; aria-pressed carries the state, the icon follows it */
  .icon-btn .i-pause, .icon-btn .i-play { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .icon-btn .i-play { fill: currentColor; stroke-width: 1.4; }
  @media (max-width: 380px) { .nav-tools { gap: 5px; } .icon-btn, .burger { width: 36px; height: 36px; } }

  /* marquee pauses on hover */
  .band:hover .marquee { animation-play-state: paused; }
  /* RTL marquee: grow the gradient text box so Arabic dots aren't clipped */
  [dir="rtl"] .marquee.m1 li { padding-block: .3em .45em; margin-block: -.3em -.45em; }
  .rfq-done { align-self: center; }
}

/* ---- footer crop row (portfolio low-poly flora, remixed) ---- */
@layer sections {
  .site-foot { padding-bottom: 0; }
  .croprow { position: relative; height: 120px; margin-top: -120px; pointer-events: none; overflow: hidden; z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .stalk { position: absolute; bottom: -2px; transform-origin: 50% 100%; animation: stalksway 6.5s ease-in-out infinite; animation-delay: var(--d); }
  @keyframes stalksway { 0%, 100% { transform: rotate(calc(var(--sw) * -1)); } 50% { transform: rotate(var(--sw)); } }
  html.dark .stalk { filter: brightness(.72) saturate(.9); }
  .foot-word { position: relative; z-index: 0; }
}
