/* Jordan Tinplate Canning, website v2 (round 2): the site is a 3D film.
   Identity (brand/README.md): PANTONE 294 C #002F6C and its tints and shades are the only blues; amber #d98b14 / #f4b34c is the
   only other UI colour (buttons and highlights); champagne gold lives only on the tins. Type: Bricolage Grotesque 700-800 for
   Latin headings, DM Sans 400-600 for Latin text, Readex Pro 300-700 for Arabic. Logical properties throughout (LTR / RTL). */
:root {
  --navy-50: #e9eef6; --navy-100: #d8e0ec; --navy-200: #b5c4d7; --navy-300: #879ebc; --navy-400: #53739d; --navy-500: #274f83;
  --navy: #002F6C; --navy-700: #002a61; --navy-800: #002352; --navy-900: #00193b; --navy-950: #00132d;
  --bg: #eef2f8; --bg2: #e1e8f2; --ink: var(--navy-950); --ink2: var(--navy); --mute: #3b4f6e; --line: rgba(0, 47, 108, .16);
  --card: rgba(245, 248, 253, .94); --accent: #d98b14; --accent-text: #865000; --on-accent: #1a1204; --logo: var(--navy);
  --f-head: "Bricolage Grotesque", "Readex Pro", system-ui, sans-serif;
  --f-body: "DM Sans", "Readex Pro", system-ui, sans-serif;
  --pad: max(16px, 4.2vw);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
:root[data-mode="dark"] {
  --bg: var(--navy-950); --bg2: var(--navy-900); --ink: var(--navy-50); --ink2: var(--navy-100); --mute: #a9bbd2; --line: rgba(181, 196, 215, .2);
  --card: rgba(0, 25, 59, .92); --accent: #f4b34c; --accent-text: #f4b34c; --logo: #fff;
  color-scheme: dark;
}
html[lang="ar"] { --f-head: "Readex Pro", system-ui, sans-serif; --f-body: "Readex Pro", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.num { font-family: "Bricolage Grotesque", var(--f-body); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- loader: the logo, a navy bar */
.loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; align-content: center; gap: 26px; background: var(--bg); transition: opacity .8s var(--ease), visibility .8s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader__logo { width: min(280px, 60vw); color: var(--logo); }
.loader__logo svg, .top__brand svg, .foot__logo svg { display: block; width: 100%; height: auto; }
.loader__bar { width: min(280px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); transition: width .3s; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; z-index: 20; top: env(safe-area-inset-top, 0px); inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); pointer-events: none; }
.top > * { pointer-events: auto; }
.top__brand { width: clamp(150px, 14vw, 200px); color: var(--logo); }
.top__tools { display: flex; gap: 8px; align-items: center; }
.top.solid { background: color-mix(in srgb, var(--bg) 96%, transparent); box-shadow: 0 1px 0 var(--line); }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill[lang="ar"] { font-family: "Readex Pro", sans-serif; }
.pill--icon { width: 40px; padding: 0; }
.pill--icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pill--solid { background: var(--accent); color: var(--on-accent); border-color: transparent; }
@media (max-width: 520px) { .pill--solid { display: none; } }
/* the site navigation (home and inner pages); a full-screen menu on smaller screens */
.top__nav ul { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.top__nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 14px var(--f-body); transition: background .25s, color .25s; }
.top__nav a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.top__nav a[aria-current="page"] { background: var(--navy); color: #fff; }
:root[data-mode="dark"] .top__nav a[aria-current="page"] { background: var(--navy-100); color: var(--navy-950); }
.menu-btn { display: none; }
.menu { position: fixed; inset: 0; z-index: 19; background: var(--bg); padding: 110px max(var(--pad), env(safe-area-inset-right, 0px)) 40px max(var(--pad), env(safe-area-inset-left, 0px)); overflow: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 800 clamp(30px, 7vw, 48px)/1.1 var(--f-head); letter-spacing: -.02em; }
html[lang="ar"] .menu a { letter-spacing: 0; font-weight: 700; }
.menu .num { font-size: 14px; color: var(--accent-text); font-weight: 600; }
@media (max-width: 1280px) { .top__nav { display: none; } .menu-btn { display: inline-flex; } }

/* ---------------------------------------------------------------- shared type */
.kick { margin: 0 0 14px; font: 600 13px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
html[lang="ar"] .kick { letter-spacing: 0; text-transform: none; font-size: 15px; }
.mega { margin: 0; font: 800 clamp(54px, 9.4vw, 176px)/.92 var(--f-head); letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.mega .amb { color: var(--ink2); }
html[lang="ar"] .mega { letter-spacing: 0; line-height: 1.15; font-weight: 700; font-size: clamp(48px, 8vw, 150px); }
.big { margin: 0 0 16px; font: 800 clamp(34px, 4.4vw, 72px)/1 var(--f-head); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
html[lang="ar"] .big { letter-spacing: 0; line-height: 1.25; font-weight: 700; font-size: clamp(30px, 3.8vw, 60px); }
.lead { margin: 0; font-size: clamp(16px, 1.25vw, 19px); color: var(--mute); max-width: 46ch; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--mute); }
.btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding-inline: 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 600 16px var(--f-body); text-decoration: none; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* ---------------------------------------------------------------- the film */
.film { position: relative; height: 1500svh; }
.film__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.ov { position: absolute; z-index: 2; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.ov.on { opacity: 1; transform: none; }
.ov.on .chips, .ov.on .btn { pointer-events: auto; }

.ov--hero { inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 92px max(var(--pad), env(safe-area-inset-right, 0px)) 34px max(var(--pad), env(safe-area-inset-left, 0px)); }
html:not(.no-gl) .ov--hero .mega { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* shown in 3D */
.hero__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 18px 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero__intro .kick { margin-bottom: 8px; }
.hero__intro .lead { font-size: 15px; max-width: 54ch; }
.cue { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--mute); max-width: 24ch; }
.cue__line { width: 34px; height: 1px; background: var(--accent); flex: none; }

.ov--side { top: 50%; inset-inline-start: max(var(--pad), env(safe-area-inset-left, 0px)); width: min(440px, 40vw); transform: translateY(calc(-50% + 18px)); padding: 28px; border-radius: 22px; background: var(--card); box-shadow: 0 1px 0 var(--line) inset, 0 30px 60px -40px rgba(0, 19, 45, .45); }
.ov--side.on { transform: translateY(-50%); }
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 30px 1fr; padding: 9px 0; border-top: 1px solid var(--line); opacity: .38; transition: opacity .35s; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 600 13px "Bricolage Grotesque", sans-serif; color: var(--accent-text); padding-top: 2px; }
.steps { counter-reset: s; }
.steps b { font-weight: 600; }
.steps span { font-size: 14px; color: var(--mute); max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.steps li.on { opacity: 1; }
.steps li.on span { max-height: 4em; }
.steps li.done { opacity: .66; }

.ov--ring { inset: 0; padding: 96px max(var(--pad), env(safe-area-inset-right, 0px)) 40px max(var(--pad), env(safe-area-inset-left, 0px)); display: grid; grid-template-rows: auto auto 1fr auto auto; }
.ov--ring .cap { grid-row: 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ov--ring .cap b { font: 800 clamp(24px, 2.6vw, 40px) var(--f-head); letter-spacing: -.02em; }
.ov--ring .cap .num { color: var(--mute); }
.cap__n { margin-inline-start: auto; }
.ov--ring .fine { grid-row: 5; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip { height: 42px; padding-inline: 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 600 15px var(--f-body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-mode="dark"] .chip[aria-pressed="true"] { background: var(--navy-100); border-color: var(--navy-100); color: var(--navy-950); }
.chip--soon { opacity: .55; cursor: not-allowed; }
.chip small { font-size: 11px; color: var(--accent-text); margin-inline-start: 4px; }
#finDesc { min-height: 3.2em; }

/* from sheet to shelf: the previous site's step design (outlined numeral, one step at a time, a rail of five) in the side card */
.flow { display: grid; margin-top: 6px; }
.flow__step { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.flow__step.on { opacity: 1; transform: none; }
.flow__n { display: block; font: 800 clamp(56px, 6vw, 92px)/.9 "Bricolage Grotesque", sans-serif; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent-text); margin-bottom: 10px; text-align: start; }
.flow__step h3 { margin: 0 0 6px; font: 700 clamp(21px, 1.7vw, 27px)/1.2 var(--f-head); letter-spacing: -.015em; color: var(--ink); }
html[lang="ar"] .flow__step h3 { letter-spacing: 0; line-height: 1.45; }
.flow__step p { margin: 0; color: var(--mute); font-size: 15.5px; }
.flow__rail { position: relative; height: 2px; margin-top: 22px; background: var(--line); display: flex; justify-content: space-between; align-items: center; }
.flow__rail i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform .5s var(--ease); }
html[dir="rtl"] .flow__rail i { transform-origin: right; }
.flow__rail b { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: background .4s, border-color .4s; }
.flow__rail b.done { background: var(--accent); border-color: var(--accent); }

.rail { position: absolute; z-index: 3; inset-inline-end: max(var(--pad), env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 4px; }
.rail button[hidden] { display: none; }
.rail button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; background: none; border: 0; padding: 6px 0; color: var(--mute); font: 500 13px var(--f-body); cursor: pointer; }
.rail button b { font-weight: 600; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; }
html[dir="rtl"] .rail button b { transform: translateX(-6px); }
.rail button .num { order: 2; width: 30px; text-align: center; padding: 3px 0; border-radius: 99px; border: 1px solid var(--line); }
.rail button:hover b, .rail button.on b { opacity: 1; transform: none; }
.rail button.on { color: var(--ink); }
.rail button.on .num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.meter { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; height: 3px; background: var(--line); }
.meter i { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p, 0) * 100%); background: var(--accent); }

@media (max-width: 820px) {
  .film { height: 1320svh; }
  .rail { display: none; }
  .cue { display: none; }
  .hero__bar { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero__intro .lead { display: none; }
  .ov--hero { padding-top: 84px; padding-bottom: 28px; }
  .ov--side { inset-inline: 16px; top: auto; bottom: 18px; width: auto; transform: translateY(18px); padding: 18px; }
  .ov--side.on { transform: none; }
  .ov--side .lead { font-size: 15px; }
  .steps li { display: none; }
  .steps li.on { display: grid; }
  .ov--flow .big { font-size: 26px; margin-bottom: 8px; }
  .ov--flow .kick { margin-bottom: 6px; }
  .flow__n { font-size: 44px; margin-bottom: 4px; }
  .flow__step h3 { font-size: 19px; }
  .flow__step p { font-size: 14px; }
  .flow__rail { margin-top: 14px; }
}

/* ---------------------------------------------------------------- after the film */
#after { position: relative; z-index: 1; background: var(--bg); }
.sect__in { padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); max-width: 1440px; margin-inline: auto; }
.sect { padding-block: clamp(70px, 10vw, 140px); border-top: 1px solid var(--line); }
.sectors { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.sectors li { display: grid; gap: 4px; padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); padding-inline: 0 18px; }
.sectors b { font: 800 clamp(24px, 2.4vw, 36px)/1.1 var(--f-head); letter-spacing: -.02em; color: var(--ink); }
html[lang="ar"] .sectors b { letter-spacing: 0; font-weight: 700; }
.sectors span { color: var(--mute); font-size: 15px; }
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(30px, 6vw, 90px); }
.facts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 36px 0 0; }
.facts dt { font: 800 clamp(34px, 3.4vw, 52px)/1 var(--f-head); color: var(--ink2); }
.facts dd { margin: 6px 0 0; font-size: 14px; color: var(--mute); max-width: 20ch; }
.certs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-content: start; }
.certs .kick { grid-column: 1 / -1; }
.certs figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-width: 0; }
.certs figcaption { display: grid; padding: 10px 4px 2px; font-size: 14px; color: var(--navy-950); }
.certs figcaption span { color: #3b4f6e; font-size: 13px; }
@media (max-width: 820px) { .story { grid-template-columns: minmax(0, 1fr); } }
.cta { background: var(--navy); color: #fff; padding-block: clamp(80px, 11vw, 150px); }
.cta__h { margin: 0 0 18px; font: 800 clamp(44px, 7vw, 120px)/.95 var(--f-head); letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; }
html[lang="ar"] .cta__h { letter-spacing: 0; line-height: 1.2; font-weight: 700; }
.cta .lead { color: var(--navy-200); margin-bottom: 30px; }
.cta .btn { background: #f4b34c; }
.contact { display: flex; flex-wrap: wrap; gap: 18px 56px; margin: 56px 0 0; }
.contact dt { font-size: 13px; color: var(--navy-200); }
.contact dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; user-select: all; }
.foot { background: var(--navy-950); color: var(--navy-100); padding-block: 36px 40px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.foot__logo { width: 190px; color: #fff; }
.foot__name { margin: 0; display: grid; font-size: 14px; }
.foot__name span { font-family: "Readex Pro", sans-serif; color: var(--navy-200); }
.foot__social { margin: 0; margin-inline-start: auto; display: flex; gap: 18px; font-size: 14px; }
.foot__c { flex-basis: 100%; margin: 6px 0 0; font-size: 13px; color: var(--navy-300); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- Arabic display type
   Arabic letters reach far above and below the Latin x-height (ط ل ك, the shadda, the dots), so the tight Latin line heights
   make big Arabic lines touch. Every large heading gets real air in Arabic; letter-spacing stays 0 (it breaks the joins). */
html[lang="ar"] :is(.mega, .big, .cta__h, .sectors b, .menu a, .tile b, .pane .pane__k, .vcard b, .reach__order b, .flow__step h3, .card h3, .facts dt, .ov--ring .cap b, .spec dt) { line-height: 1.45; letter-spacing: 0; }
html[lang="ar"] :is(.mega, .cta__h) { line-height: 1.38; }
/* the home hero: the team in front of the factory, the whole picture, clear (no veil); the 3D film follows */
.hero-photo { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #cfdcea; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
@media (max-aspect-ratio: 4/3) { .hero-photo { height: 64svh; min-height: 420px; } .hero-photo img { object-position: 50% 55%; } }

@media (max-width: 760px) { .foot__logo { width: 150px; } .page .top { padding-block: 10px; } }
