/* ==========================================================
   Actions Logistics: site styles
   Brand: green #0CA64E · teal #024656 · black
   ========================================================== */

:root {
  --green: #0ca64e;
  --green-dark: #08853e;
  --green-light: #8fe3b1;
  --green-soft: #e7f6ed;
  --teal: #024656;
  --teal-deep: #012f3a;
  --teal-ink: #01242c;
  --teal-mid: #0b5a6b;
  --ink: #0f1d22;
  --body: #42545b;
  --muted: #5d6e74;
  --line: #dde6e8;
  --bg-soft: #f2f6f6;
  --white: #fff;

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(2,40,50,.06), 0 10px 30px rgba(2,40,50,.08);
  --shadow-lg: 0 30px 60px -12px rgba(1,36,44,.35);
  --header-h: 80px;
  --container: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--ink); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; position: relative; }
.ta-r { text-align: right; }
.hl { color: var(--green); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: currentColor; opacity: .22; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--green-dark); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico.ico-fill { fill: currentColor; stroke: none; }
:root { --wa: #25d366; --wa-dark: #1da851; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--green-light); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--green), var(--green-light)); z-index: 120; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--green-dark); color: #fff; box-shadow: 0 10px 24px -8px rgba(12,166,78,.6); }
.btn-primary:hover { background: #06703a; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(12,166,78,.7); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-text { background: none; color: var(--muted); padding-inline: .5rem; }
.btn-text:hover { color: var(--ink); }
.btn-text:hover .ico { transform: translateX(-3px); }
.btn-sm { padding: .7rem 1.2rem; font-size: .9rem; }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .35s, box-shadow .35s, height .35s;
}
.site-header.scrolled { background: rgba(255,255,255,.98); box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(2,40,50,.07); --header-h: 68px; height: 68px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; position: relative; flex-shrink: 0; }
.brand img { height: 40px; width: auto; transition: opacity .3s; }
.brand .brand-dark { position: absolute; inset: 0; opacity: 0; }
.site-header.scrolled .brand-light { opacity: 0; }
.site-header.scrolled .brand-dark { opacity: 1; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.btn) { color: rgba(255,255,255,.88); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .92rem; position: relative; padding: .3rem 0; transition: color .2s; }
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a:not(.btn):not(.nav-phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transition: transform .25s var(--ease); }
.site-nav a.active::after, .site-nav a:not(.btn):not(.nav-phone):hover::after { transform: scaleX(1); }
.site-header.scrolled .site-nav a:not(.btn) { color: var(--ink); }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; padding-left: 1.5rem !important; border-left: 1px solid rgba(255,255,255,.2); }
.site-header.scrolled .nav-phone { border-color: var(--line); }
.nav-phone .ico { color: var(--green); width: 1.05em; height: 1.05em; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; position: relative; z-index: 2; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .25s, background .3s; }
.site-header.scrolled .nav-toggle span, .nav-open .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(760px, 100svh); color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(1400px 900px at 75% 40%, #04404d 0%, #01222b 55%, #00141a 100%);
  display: flex; flex-direction: column;
}
.hero-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; }
.hero-aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: #0b5a6b; animation: aur1 18s ease-in-out infinite alternate; }
.hero-aurora i:nth-child(2) { width: 34vw; height: 34vw; left: 30vw; bottom: -20vw; background: #0ca64e; opacity: .28; animation: aur2 22s ease-in-out infinite alternate; }
.hero-aurora i:nth-child(3) { width: 30vw; height: 30vw; right: -6vw; top: 6vw; background: #0d7a86; opacity: .35; animation: aur1 26s ease-in-out infinite alternate-reverse; }
@keyframes aur1 { to { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes aur2 { to { transform: translate(-10vw, -6vw) scale(1.2); } }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
}
.hero-noise {
  position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 1rem; padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 5rem; }
.hero-copy { position: relative; z-index: 2; }
.hero-chip {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.75rem;
  padding: .5rem 1rem .5rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-variant-numeric: tabular-nums;
  /* each part stays on one line; if they don't all fit, the last part moves to a second row */
  white-space: nowrap; flex-wrap: wrap; max-width: 100%; row-gap: .2rem;
}
.hero-chip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(12,166,78,.6); animation: ping 1.8s infinite; }
.hero-chip .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.4); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: 1.6rem; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln > span { display: inline-block; }
.js .hero-title .ln > span { transform: translateY(105%); }
.loaded .hero-title .ln > span { transform: none; transition: transform 1.1s cubic-bezier(.16,1,.3,1) var(--d, 0s); }
.rotator { display: inline-grid; vertical-align: bottom; position: relative; }
.rotator-word {
  grid-area: 1 / 1; opacity: 0; transform: translateY(.5em); transition: opacity .5s var(--ease), transform .5s var(--ease);
  background: linear-gradient(100deg, #46dc82, #8fe3b1 55%, #c9f5dc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rotator-word.is-active { opacity: 1; transform: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-.5em); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); color: rgba(255,255,255,.72); max-width: 32rem; margin-bottom: 2.2rem; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.js .hero-in { opacity: 0; transform: translateY(24px); }
.loaded .hero-in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }

.hero-visual { position: relative; align-self: stretch; min-height: 600px; margin-right: calc((100vw - min(100vw - 2.5rem, var(--container))) / -2); }
.globe-canvas { position: absolute; inset: -4% -2% -4% -6%; width: 108%; height: 108%; cursor: grab; touch-action: pan-y pinch-zoom; }
.globe-canvas.grabbing { cursor: grabbing; }
.js .globe-canvas { opacity: 0; transform: scale(.92); }
.loaded .globe-canvas { opacity: 1; transform: none; transition: opacity 1.6s var(--ease) .2s, transform 1.8s cubic-bezier(.16,1,.3,1) .2s; }
.globe-hint { position: absolute; right: 12%; bottom: 6%; margin: 0; display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); pointer-events: none; }
.globe-hint .ico { width: 1em; height: 1em; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(12,166,78,0); } 100% { box-shadow: 0 0 0 0 rgba(12,166,78,0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 5; margin-top: -3.5rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stats li { padding: 2rem 2rem 1.8rem; position: relative; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 700; color: var(--teal); line-height: 1; margin-bottom: .45rem; letter-spacing: -.03em; }
.stats li:first-child strong { color: var(--green); }
.stats li > span { font-size: .92rem; color: var(--muted); line-height: 1.4; display: block; }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 3.5rem 0 1rem; text-align: center; }
.marquee-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 1.5rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* "Pause animation" buttons (hero and client names) */
.motion-toggle { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .4rem .2rem; border: 0; background: none; color: rgba(255,255,255,.72); font-family: var(--font-head); font-size: .85rem; font-weight: 600; cursor: pointer; transition: color .2s; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: #fff; }
.motion-toggle .ico { width: 1em; height: 1em; }
.motion-toggle:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; border-radius: 8px; }
.motion-toggle.mt-icon { width: 30px; height: 30px; margin: -.3rem 0 0 .7rem; padding: 0; justify-content: center; vertical-align: middle; border-radius: 50%; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.motion-toggle.mt-icon:hover { color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.motion-toggle.mt-icon:focus-visible { outline-color: var(--green); border-radius: 50%; }
.motion-toggle.mt-icon .ico { width: .8rem; height: .8rem; }
.motion-paused .marquee-track,
.motion-paused .tabs.auto .tab-list button::after,
.motion-paused .svc-list button::after { animation-play-state: paused !important; }
.marquee-track li { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); color: #75878c; padding-right: 2.5rem; white-space: nowrap; display: flex; align-items: center; gap: 2.5rem; transition: color .2s; }
.marquee-track li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.marquee-track li:hover { color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.about-media { position: relative; padding: 0 3rem 4rem 0; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-img:hover img { transform: scale(1.05); }
.about-img-main { aspect-ratio: 4/4.6; box-shadow: var(--shadow-lg); }
.about-img-sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4/3; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; left: -1.5rem; top: 2.5rem; display: flex; align-items: center; gap: .9rem;
  background: var(--teal); color: #fff; padding: 1rem 1.3rem; border-radius: 14px; box-shadow: 0 18px 40px -10px rgba(1,36,44,.55);
  border-left: 4px solid var(--green);
  animation: float 7s ease-in-out infinite;
}
.about-badge img { width: 42px; }
.about-badge strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.1; }
.about-badge span { font-size: .8rem; opacity: .9; }
.big { font-size: 1.18rem; line-height: 1.6; color: var(--ink); }

.tabs { margin-top: 2rem; background: var(--bg-soft); border-radius: var(--radius); padding: .5rem; }
.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.tab-list button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem; border: 0; border-radius: 12px;
  background: transparent; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s;
}
.tab-list button:hover { color: var(--ink); }
.tab-list button[aria-selected="true"] { background: #fff; color: var(--teal); box-shadow: var(--shadow); }
.tab-list button[aria-selected="true"] .ico { color: var(--green); }
.tabs.auto .tab-list button { position: relative; overflow: hidden; }
.tabs.auto .tab-list button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--green); border-radius: 0 3px 3px 0; }
.tabs.auto.running .tab-list button[aria-selected="true"]::after { animation: tabTimer 6s linear forwards; }
.tabs.auto.running.paused .tab-list button[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes tabTimer { to { width: 100%; } }
.tab-panel { padding: 1.5rem 1.25rem 1.1rem; animation: fadeUp .45s var(--ease); }
.tab-panel p { font-size: .98rem; }
/* the vision is one sentence: shown as a statement, centred in a panel as tall as the others */
#tab-vision:not([hidden]) { display: flex; flex-direction: column; justify-content: center; }
.tab-panel .vision-statement { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--teal); }
/* core values: the first letters spell ACTIONS, so the list reads down the columns */
.values-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: .75rem 1.25rem; }
.values-list li { display: grid; grid-template-columns: 2.1rem 1fr; gap: .75rem; align-items: start; }
.values-list b { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: var(--teal); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.values-list strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--ink); margin-bottom: .1rem; }
.values-list span { font-size: .88rem; line-height: 1.4; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* one grid for the whole list: every label is as wide as the longest one, and every text starts at the same line */
.vision-list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .9rem 1rem; align-items: start; }
.vision-list div { display: contents; }
.vision-list dt { font-family: var(--font-head); font-weight: 600; font-size: .8rem; line-height: 1.425rem; color: #fff; background: var(--teal); border-radius: 6px; text-align: center; padding: .3rem .85rem; }
/* padding-top matches the badge's padding so the first line sits level with the badge */
.vision-list dd { margin: 0; padding-top: .3rem; font-size: .95rem; line-height: 1.425rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .9rem; font-size: .98rem; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/62% no-repeat; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 3.5rem; max-width: 760px; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; }
.section-head.split > p { margin-bottom: .6rem; font-size: 1.05rem; }
.section-head h2 { margin-bottom: 0; }

/* ---------- Services ---------- */
.services { background: var(--teal-deep); color: rgba(255,255,255,.75); overflow: hidden; overflow: clip; }
.services::before { content: ""; position: absolute; right: -10%; top: -25%; width: 60%; aspect-ratio: 1.15; background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.services h2, .services h3 { color: #fff; }
.svc { display: grid; grid-template-columns: 375px 1fr; gap: 1.5rem; position: relative; }
.svc-list { display: flex; flex-direction: column; gap: .5rem; }
.svc-list button {
  display: grid; grid-template-columns: 1.7rem 1.6rem 1fr; align-items: center; gap: .75rem; text-align: left;
  padding: 1.15rem 1.2rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.7); cursor: pointer; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
  position: relative; overflow: hidden;
}
.svc-list button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--green); }
.svc.running .svc-list button[aria-selected="true"]::after { animation: svcTimer 7s linear forwards; }
.svc.paused .svc-list button::after { animation-play-state: paused; }
@keyframes svcTimer { to { width: 100%; } }
.svc-list button:hover { background: rgba(255,255,255,.07); color: #fff; }
.svc-list button[aria-selected="true"] { background: #fff; color: var(--teal); border-color: #fff; transform: translateX(6px); }
.svc-num { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--green-light); }
.svc-list button[aria-selected="true"] .svc-num { color: var(--green-dark); }
.svc-name { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.svc-list .ico { width: 1.4rem; height: 1.4rem; }
.svc-stage { position: relative; min-height: 520px; border-radius: var(--radius); overflow: hidden; background: var(--teal-ink); }
.svc-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.svc-panel.is-active { opacity: 1; visibility: visible; }
.svc-img { position: absolute; inset: 0; }
.svc-img picture { display: block; height: 100%; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.svc-panel.is-active .svc-img img { transform: scale(1); }
.svc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,36,44,.05) 0%, rgba(1,36,44,.45) 40%, rgba(1,36,44,.96) 100%); }
.svc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.25rem; max-width: 640px; }
.svc-panel.is-active .svc-body > * { animation: fadeUp .6s var(--ease) both; }
.svc-panel.is-active .svc-body > *:nth-child(2) { animation-delay: .08s; }
.svc-panel.is-active .svc-body > *:nth-child(3) { animation-delay: .16s; }
.svc-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: .5rem; }
.svc-body p { color: rgba(255,255,255,.82); }
.svc-includes { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-includes li { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); color: #fff; padding: .5rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.svc-includes .ico { color: var(--green-light); width: 1.05em; height: 1.05em; }

/* ---------- Kinetic type band ---------- */
.kinetic { background: var(--bg-soft); padding: clamp(3rem, 6vw, 5rem) 0; overflow: hidden; display: grid; gap: .4rem; }
.k-row { display: flex; align-items: center; width: max-content; white-space: nowrap; will-change: transform;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 7.5vw, 6.5rem); line-height: 1.05; letter-spacing: -.04em; color: var(--teal); }
.k-row span { padding: 0 .35em; }
.k-row i { width: .32em; height: .32em; flex-shrink: 0; background: var(--green); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.k-outline { color: transparent; -webkit-text-stroke: 1.5px rgba(2,70,86,.45); }
.k-outline i { background: transparent; box-shadow: inset 0 0 0 2px var(--green); clip-path: none; border-radius: 50%; width: .22em; height: .22em; }

/* ---------- Journey (scroll-driven) ---------- */
.journey { position: relative; height: 240vh; background: radial-gradient(1000px 600px at 20% 0%, #04404d, transparent 60%), linear-gradient(180deg, #01222b, #00161c); color: rgba(255,255,255,.72); }
.journey-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.journey-bg {
  position: absolute; left: 0; bottom: 4vh; margin: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 15vw, 14rem); letter-spacing: -.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(143,227,177,.06); transform: translateX(calc(var(--p, 0) * -45%));
}
.journey-inner { position: relative; padding-top: var(--header-h); }
.journey-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 6vh, 4.5rem); }
.journey h2 { color: #fff; margin-bottom: .6rem; }
.journey-lead { max-width: 34rem; margin: 0; }
.journey-count { margin: 0; font-family: var(--font-head); font-weight: 800; line-height: .9; color: #fff; display: flex; align-items: baseline; gap: .4rem; font-variant-numeric: tabular-nums; }
.journey-count b { font-size: clamp(4rem, 9vw, 7.5rem); letter-spacing: -.05em; background: linear-gradient(180deg, #fff, #8fe3b1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.journey-count span { font-size: 1.4rem; color: rgba(255,255,255,.4); }

.journey-track { position: relative; --first: calc(100% / 14); }
.j-line { position: absolute; left: var(--first); right: var(--first); top: 27px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 8px, transparent 8px 14px); }
.j-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--green), #8fe3b1); box-shadow: 0 0 14px rgba(70,220,130,.7); }
.j-cargo { position: absolute; top: -16px; left: calc(var(--first) + var(--p, 0) * (100% - 2 * var(--first))); width: 128px; transform: translateX(-50%); z-index: 0; filter: drop-shadow(0 8px 14px rgba(12,166,78,.4)); pointer-events: none; opacity: min(1, calc(var(--p, 0) * 25), calc((1 - var(--p, 0)) * 25)); }
.j-cargo svg { display: block; width: 128px; height: 47px; animation: bob 1.2s ease-in-out infinite; }
/* wheels turn as the truck moves along the steps */
.j-cargo .jt-rim { transform-box: fill-box; transform-origin: center; transform: rotate(calc(var(--p, 0) * 2520deg)); }
@keyframes bob { 50% { transform: translateY(-1px); } }
.j-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: .75rem; position: relative; align-items: stretch; }
.j-steps li { text-align: center; display: flex; flex-direction: column; align-items: center; transition: opacity .5s var(--ease); opacity: .5; }
.j-steps li.on { opacity: 1; }
.j-dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1.1rem; position: relative; z-index: 1; flex-shrink: 0;
  background: #022a34; border: 1.5px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7); transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.j-dot .ico { width: 1.35rem; height: 1.35rem; }
.j-steps li.on .j-dot { background: var(--green); border-color: var(--green); color: #fff; }
.j-steps li.cur .j-dot { box-shadow: 0 0 0 8px rgba(12,166,78,.15), 0 12px 30px -6px rgba(12,166,78,.7); }
.j-steps li.cur .j-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(70,220,130,.55); animation: jPulse 1.8s ease-out infinite; }
@keyframes jPulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.j-card { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 1.05rem .8rem 1.15rem; border-radius: 16px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); transition: background .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease); }
.j-steps li.cur .j-card { background: linear-gradient(180deg, rgba(12,166,78,.2), rgba(12,166,78,.05)); border-color: rgba(70,220,130,.45); box-shadow: 0 24px 44px -22px rgba(12,166,78,.65); transform: translateY(-4px); }
.j-n { font-family: var(--font-head); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-light); margin-bottom: .45rem; }
.j-steps b { font-family: var(--font-head); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.25; margin-bottom: .45rem; }
.j-txt { font-size: .86rem; line-height: 1.45; color: rgba(255,255,255,.68); max-width: 15rem; }
.journey-foot { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); padding-top: clamp(1.25rem, 3vh, 2rem); border-top: 1px solid rgba(255,255,255,.08); }
.journey-foot p { margin: 0; color: rgba(255,255,255,.7); }

/* ---------- Incoterms tool ---------- */
.incoterms { background: #fff; }
.ic-terms { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.ic-terms button {
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  padding: .7rem 1.05rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--teal); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.ic-terms button:hover { border-color: var(--green); transform: translateY(-2px); }
.ic-terms button[aria-checked="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.ic-terms .ic-sep { width: 1px; background: var(--line); margin: 0 .5rem; }
/* the most common rules carry a small dot, explained at the end of the row */
.ic-terms button.pop { position: relative; }
.ic-terms button.pop::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ic-pop-key { align-self: center; margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.ic-pop-key::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ic-card { border-radius: var(--radius); background: var(--bg-soft); padding: clamp(1.5rem, 3vw, 2.5rem); container-type: inline-size; }
.ic-head { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.ic-code { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--teal); margin: 0; letter-spacing: -.02em; }
.ic-name { margin: .3rem 0 0; font-weight: 600; color: var(--green-dark); font-size: .95rem; }
.ic-desc { margin: 0; color: var(--body); font-size: .98rem; max-width: 560px; }
.ic-place { margin: 0 0 .45rem; color: var(--muted); font-size: .82rem; }
.ic-place b { color: var(--teal); font-weight: 600; }
.ic-tip { margin: .55rem 0 0; color: var(--muted); font-size: .86rem; max-width: 560px; }
.ic-tip:empty { display: none; }
.ic-legend { display: grid; gap: .35rem; font-size: .82rem; color: var(--muted); }
.ic-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sw-s { background: var(--green); }
.sw-b { background: var(--teal); }
.sw-d { background: repeating-linear-gradient(135deg, var(--green) 0 4px, var(--teal) 4px 8px); }
.sw-o { background: #fff; border: 1.5px dashed var(--teal); }
.sw-x { background: linear-gradient(90deg, var(--green) 50%, var(--teal) 50%); }
.sw-r { width: 3px; height: 16px; background: #f2a33a; border-radius: 2px; margin-inline: 5px 6px; }

.ic-journey { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: end; margin: 0 0 .25rem; }
/* one icon per stage, coloured by who pays it */
.ij-slot { color: var(--teal); transition: color .45s var(--ease); }
.ij-slot.s { color: var(--green); }
.ij-slot.n { color: #7f969b; }
.ij-slot svg { display: block; width: 100%; max-width: 124px; height: auto; margin: 0 auto; filter: drop-shadow(0 6px 8px rgba(2,40,50,.12)); }

.ic-stages { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.ic-stage { position: relative; display: flex; flex-direction: column; gap: .55rem; }
.ic-bar { height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; transition: background .45s var(--ease), transform .45s var(--ease); }
.ic-stage.s .ic-bar { background: var(--green); }
.ic-stage.b .ic-bar { background: var(--teal); }
/* depends on the contract of carriage, or split between both */
.ic-stage.d .ic-bar { background: repeating-linear-gradient(135deg, var(--green) 0 9px, var(--teal) 9px 18px); text-shadow: 0 1px 2px rgba(2,40,50,.35); }
/* split by the rule itself (FAS) */
.ic-stage.x .ic-bar { background: linear-gradient(90deg, var(--green) 50%, var(--teal) 50%); text-shadow: 0 1px 2px rgba(2,40,50,.35); }
/* optional: no one has to insure */
.ic-stage.o .ic-bar { background: #fff; color: var(--teal); border: 1.5px dashed var(--teal); }
.ic-stage.flip .ic-bar { animation: flip .5s var(--ease); }
@media (max-width: 1180px) { .ic-bar { font-size: .68rem; letter-spacing: .02em; } }
@media (max-width: 1000px) { .ic-bar { font-size: .62rem; letter-spacing: 0; } }
@keyframes flip { 0% { transform: scaleY(.4); } 100% { transform: none; } }
.ic-label { font-size: .8rem; line-height: 1.35; color: var(--body); font-weight: 500; }
.ic-label::before { counter-increment: st; content: counter(st, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: .7rem; margin-bottom: .1rem; }
.ic-stage.risk::before { content: ""; position: absolute; left: -5px; top: calc(-2rem - 108px); top: calc(-2rem - .25rem - 6px - min(95px, (100cqw - 54px) / 10 * .7667)); bottom: -6px; width: 4px; border-radius: 4px; background: #f2a33a; z-index: 2; }
.ic-stage.risk::after { content: attr(data-risk); position: absolute; left: -5px; top: -27px; z-index: 3; transform: translateX(-50%); white-space: nowrap; font-size: .68rem; font-weight: 700; color: #9a5f10; background: #fff3e0; padding: .1rem .45rem; border-radius: 999px; }
.ic-stage.risk.first::after { transform: none; left: -2px; }
.ic-stage.risk.last::before { left: auto; right: -5px; }
/* risk passes partway through a stage (FAS: once the goods are alongside the ship) */
.ic-stage.risk.mid::before { left: calc(50% - 2px); bottom: calc(100% + 4px); }
.ic-stage.risk.mid::after { left: 50%; }
.ic-stage.risk.last::after { left: auto; right: -2px; transform: none; }
.ic-stages { padding-top: 2rem; }
.ic-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.ic-note { margin: 0; font-size: .88rem; color: var(--muted); }
.ic-risk-note { display: flex; align-items: flex-start; gap: .35rem; margin: 1.1rem 0 0; font-size: .86rem; color: var(--body); }
.ic-risk-note .sw-r { flex: none; margin-top: 2px; }
.incoterms .ic-gloss { margin: 0 0 1.5rem; }

/* ---------- Container guide ---------- */
.containers { background: var(--bg-soft); }
.ct-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.ct-seg { position: relative; display: inline-flex; padding: 5px; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -22px rgba(2,40,50,.45); }
.ct-seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--muted); padding: .66rem 1.25rem; border-radius: 999px; transition: color .35s var(--ease); }
.ct-seg button:hover { color: var(--teal); }
.ct-seg button[aria-checked="true"] { color: #fff; }
.ct-thumb { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--teal); box-shadow: 0 10px 20px -10px rgba(2,70,86,.8); transition: transform .5s var(--ease), width .5s var(--ease); }
.ct-sizes .ct-thumb { background: var(--green); box-shadow: 0 10px 20px -10px rgba(12,166,78,.8); }
.ct-panel { display: grid; grid-template-columns: 1.5fr 1fr; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 50px 90px -60px rgba(2,40,50,.55), 0 0 0 1px rgba(2,40,50,.05); }
.ct-stage { position: relative; display: flex; flex-direction: column; min-height: 540px; padding: clamp(1.5rem, 3vw, 2.5rem); overflow: hidden;
  background: radial-gradient(90% 70% at 52% 62%, #ffffff 0%, #f1f6f7 48%, #e2ebed 100%); }
.ct-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(2,70,86,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(2,70,86,.06) 1px, transparent 1px); background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(60% 55% at 52% 66%, #000 10%, transparent 75%); mask-image: radial-gradient(60% 55% at 52% 66%, #000 10%, transparent 75%); }
.ct-stage > * { position: relative; }
.ct-kicker { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dark); }
.ct-stage h3 { margin: .35rem 0 .7rem; font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.05; letter-spacing: -.035em; color: var(--teal); }
.ct-code { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .12em; color: var(--teal); background: rgba(2,70,86,.07); padding: .38rem .75rem; border-radius: 999px; }
.ct-draw { flex: 1; display: grid; place-items: center; margin: .5rem -1rem; }
.ct-draw svg { display: block; width: 100%; height: auto; max-height: 360px; overflow: visible; }
.ct-draw svg.in { animation: ctIn .7s var(--ease) both; }
@keyframes ctIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.ct-draw text { font-family: var(--font-body); font-size: 15px; font-weight: 600; fill: var(--ink); }
.ct-draw tspan.k { font-weight: 500; fill: var(--muted); }
.ct-dimnote { display: none; }
.ct-row dt small { font-size: inherit; }
.ct-desc { margin: 0; max-width: 36rem; color: var(--body); }
.ct-sheet { display: flex; flex-direction: column; gap: 1.35rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.ct-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 1.35rem; border-bottom: 1px solid var(--line); }
.ct-stat { padding: 0 1rem; border-left: 1px solid var(--line); min-width: 0; }
.ct-stat:first-child { padding-left: 0; border-left: 0; }
.ct-stat b { display: block; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 1.85vw, 1.7rem); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ct-stat b small { margin-left: .18em; font-size: .52em; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.ct-stat > span { display: block; margin-top: .45rem; font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.ct-table { margin: 0; }
.ct-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.ct-row:last-child { border-bottom: 0; }
.ct-row dt { color: var(--muted); }
.ct-row dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ct-best { display: flex; flex-direction: column; gap: .6rem; }
.ct-best > span { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.ct-best ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.ct-best li { font-size: .84rem; color: var(--teal); background: rgba(2,70,86,.06); border-radius: 999px; padding: .32rem .75rem; }
.ct-cta { margin-top: auto; width: 100%; justify-content: center; }
.ct-note { margin: 1.1rem 0 0; font-size: .86rem; color: var(--muted); }
@media (max-width: 1024px) {
  .ct-panel { grid-template-columns: 1fr; }
  .ct-sheet { border-left: 0; border-top: 1px solid var(--line); }
  .ct-stage { min-height: 0; }
}
@media (max-width: 600px) {
  .ct-controls { flex-direction: column; align-items: stretch; gap: .6rem; }
  .ct-seg { display: flex; }
  .ct-seg button { flex: 1; padding: .6rem .4rem; font-size: .84rem; }
  .ct-panel { border-radius: 20px; }
  .ct-draw { margin: .75rem 0; }
  .ct-draw text { font-size: 26px; }
  .ct-stats { grid-template-columns: 1fr; gap: .2rem; }
  .ct-stat, .ct-stat:first-child { display: flex; justify-content: space-between; align-items: baseline; padding: .35rem 0; border-left: 0; }
  .ct-stat b { order: 2; font-size: 1.3rem; }
  .ct-stat > span { margin: 0; }
  .ct-row { font-size: .88rem; }
  .ct-row dt small { display: block; }
  .ct-row dd { white-space: nowrap; }
  .ct-dimnote:not([hidden]) { display: block; margin: -.5rem 0 .9rem; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
  .ct-cta { padding-left: 1.1rem; padding-right: 1.1rem; font-size: .95rem; text-align: center; }
}

/* ---------- Container load calculator ---------- */
.loadcalc { background: #fff; }
.lc { display: grid; grid-template-columns: minmax(300px, 1fr) 1.65fr; border-radius: 26px; overflow: hidden; overflow: clip; background: #e4ecee; box-shadow: 0 50px 90px -60px rgba(2,40,50,.55), 0 0 0 1px rgba(2,40,50,.08); }
.lc-form { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.25rem, 2.4vw, 1.9rem); background: var(--bg-soft); border-right: 1px solid var(--line); }
.lc-title { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dark); }
.lc-lines { display: flex; flex-direction: column; gap: .75rem; }
.lc-line { position: relative; margin: 0; padding: .95rem 1rem 1rem; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -20px rgba(2,40,50,.4); display: grid; gap: .6rem; min-width: 0; }
.lc-line legend { float: left; width: 100%; display: flex; align-items: center; gap: .5rem; padding: 0; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.lc-line legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.lc-del { position: absolute; top: .65rem; right: .65rem; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.lc-del:hover { background: #fdeaea; color: #c03a3a; }
.lc-del .ico { width: 14px; height: 14px; }
.lc-line label { display: flex; flex-direction: column; gap: .28rem; min-width: 0; font-size: .74rem; font-weight: 600; color: var(--muted); }
.lc-line select, .lc-in input { width: 100%; min-width: 0; font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem .65rem; transition: border-color .2s, box-shadow .2s; }
.lc-line select { appearance: none; -webkit-appearance: none; padding-right: 2rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b7c82' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .75rem center; }
.lc-line select:focus, .lc-in input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(12,166,78,.14); }
.lc-in { position: relative; display: block; }
.lc-in input { padding-right: 2.1rem; font-variant-numeric: tabular-nums; }
.lc-in input[readonly] { background: var(--bg-soft); color: var(--muted); }
.lc-in input[aria-invalid] { border-color: #d64545; background: #fff7f7; }
.lc-in em { position: absolute; right: .65rem; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .76rem; font-weight: 500; color: var(--muted); pointer-events: none; }
.lc-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.lc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.lc-line .lc-check { flex-direction: row; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 500; color: var(--body); cursor: pointer; width: max-content; }
.lc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); cursor: pointer; }
.lc-tip { margin: -.2rem 0 0; font-size: .74rem; color: var(--muted); }
.lc-add { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; border: 1.5px dashed #b9c9cd; background: transparent; border-radius: 999px; padding: .55rem 1rem; font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--teal); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.lc-add:hover { border-color: var(--green); color: var(--green-dark); background: #fff; }
.lc-add .ico { width: 18px; height: 18px; color: var(--green); }
.lc-count { font-family: var(--font-body, inherit); font-weight: 500; font-size: .76rem; color: var(--muted); }
.lc-pick { display: flex; flex-direction: column; gap: .55rem; margin-top: .35rem; }
.lc-box { display: flex; }
.lc-box button { flex: 1; padding: .6rem .5rem; font-size: .86rem; }

/* on desktop the result stays in view while a long cargo list scrolls past */
.lc-stage { position: sticky; top: 84px; align-self: start; min-height: min(100%, calc(100vh - 104px)); display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; padding: clamp(1.25rem, 2.6vw, 2.1rem);
  background: radial-gradient(90% 60% at 50% 40%, #ffffff 0%, #f1f6f7 52%, #e4ecee 100%); }
.lc-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: .6rem 1rem; }
.lc-head h3 { margin: .3rem 0 0; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; color: var(--teal); }
.lc-view { position: relative; flex: 1 1 auto; min-height: 360px; margin: 0 -.75rem; border-radius: 18px; }
.lc-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y pinch-zoom; border-radius: 18px; }
.lc-view.dragging .lc-canvas { cursor: grabbing; }
.lc-canvas:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.lc-hint { position: absolute; right: 1rem; bottom: .4rem; margin: 0; display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.lc-hint .ico { width: 1em; height: 1em; }
.lc-tabs { position: absolute; left: 1rem; top: .5rem; display: flex; align-items: center; gap: .35rem; }
.lc-tabs::before { content: "Container"; margin-right: .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lc-tabs button { min-width: 32px; height: 32px; padding: 0 .5rem; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--teal); cursor: pointer; }
.lc-tabs button[aria-pressed="true"] { background: var(--teal); color: #fff; box-shadow: none; }
.lc-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.75rem; }
.lc-meter { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .35rem .5rem; }
.lc-meter > span { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.lc-meter > b { font-family: var(--font-head); font-size: 1.35rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lc-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(2,70,86,.1); overflow: hidden; }
.lc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), #46cf86); transition: width .7s var(--ease), background .3s; }
.lc-meter.weight .lc-bar i { background: linear-gradient(90deg, var(--teal), #1b86a0); }
.lc-meter.full .lc-bar i { background: linear-gradient(90deg, #d98a1c, #efb04a); }
.lc-meter > small { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-legend { display: flex; flex-direction: column; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.lc-legend li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--body); }
.lc-legend i { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.lc-legend b { font-weight: 600; color: var(--ink); margin-right: .25rem; }
.lc-legend em { margin-left: auto; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lc-legend.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 5), auto); grid-auto-flow: column; gap: .4rem 1.75rem; }
.lc-legend.many li { min-width: 0; font-size: .85rem; }
.lc-legend.many li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-msg { margin: 0; padding: .8rem 1rem .8rem 2.2rem; border-radius: 14px; background: #fff7e8; color: #7a4f0c; font-size: .87rem; line-height: 1.5; }
.lc-msg li + li { margin-top: .3rem; }
.lc-cta { margin-top: auto; width: 100%; justify-content: center; }
.lc-cta.disabled { opacity: .5; pointer-events: none; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: start; }
.faq .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq .section-head > p:last-child { margin-top: 1rem; font-size: 1.05rem; }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border-radius: 16px; background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; }
.faq-item[open] { background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -28px rgba(2,40,50,.45); }
.faq-item > summary { position: relative; padding: 1.1rem 3.2rem 1.1rem 1.35rem; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.4rem; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .25s var(--ease), margin .25s; }
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq-item > summary:hover { color: var(--green-dark); }
.faq-item > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 16px; }
.faq-item > p { margin: 0; padding: 0 1.35rem 1.2rem; font-size: .96rem; line-height: 1.65; color: var(--body); }
.faq-item a, .faq .section-head a { color: var(--green-dark); font-weight: 600; }
@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
}

/* ---------- "At a glance" lists (plain HTML copies of the guides, for readers and search engines) ---------- */
.glance { margin-top: 1.5rem; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.incoterms .glance { background: var(--bg-soft); }
.glance > summary { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--teal); }
.glance > summary::-webkit-details-marker { display: none; }
.glance > summary::before { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); transition: transform .2s; }
.glance[open] > summary::before { transform: rotate(45deg); }
.glance > summary:hover { color: var(--green-dark); }
.glance > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 16px; }
.gl-terms { margin: 0; padding: 0 1.25rem 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: .9rem 1.75rem; }
.gl-term dt { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.gl-term dt b { color: var(--green-dark); margin-right: .3rem; }
.gl-term dd { margin: .25rem 0 0; font-size: .88rem; line-height: 1.55; color: var(--body); }
.gl-pay { display: block; margin-top: .3rem; font-size: .82rem; color: var(--muted); }
.gl-scroll { overflow-x: auto; padding: 0 1.25rem; }
.gl-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.gl-table th, .gl-table td { padding: .55rem .6rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.gl-table thead th { font-size: .78rem; font-weight: 600; color: var(--muted); }
.gl-table tbody th { font-family: var(--font-head); font-weight: 600; color: var(--ink); white-space: nowrap; }
.gl-table tbody th small { font-family: inherit; font-weight: 500; font-size: .72rem; color: var(--muted); margin-left: .2rem; }
.gl-table td { color: var(--body); }
.gl-table tbody tr:last-child > * { border-bottom: 0; }
.gl-foot { margin: 0; padding: .75rem 1.25rem 1.1rem; font-size: .8rem; color: var(--muted); }
@media (max-width: 1024px) {
  .lc { grid-template-columns: 1fr; }
  .lc-stage { position: relative; top: auto; align-self: stretch; min-height: 0; }
  .lc-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .lc-lines { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
  .lc-view { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .lc { border-radius: 20px; }
  .lc-lines { display: flex; }
  .lc-view { aspect-ratio: 4 / 3.4; margin: 0 -1rem; }
  .lc-meters { grid-template-columns: 1fr; }
  .lc-legend.many { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .lc-head h3 { font-size: 1.55rem; }
  .lc-legend li { flex-wrap: wrap; }
  .lc-cta { font-size: .95rem; }
}

/* ---------- Projects (stacked cards) ---------- */
.projects { background: linear-gradient(180deg, var(--teal-deep), var(--teal-ink)); color: rgba(255,255,255,.75); }
.projects h2 { color: #fff; }
.stack { display: grid; gap: 2rem; }
.pcard {
  position: sticky; top: calc(96px + var(--i) * 26px);
  display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; border-radius: 24px; overflow: hidden;
  background: #fff; color: var(--body); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.45);
}
.pcard-img { position: relative; overflow: hidden; }
.pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-img::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 90px; background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.pcard-body { padding: clamp(2rem, 4vw, 3.25rem); display: flex; flex-direction: column; justify-content: center; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.pcard-num { font-family: var(--font-head); font-weight: 800; color: var(--line); font-size: 2.6rem; line-height: 1; }
.tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; color: var(--green-dark); background: var(--green-soft); border-radius: 999px; padding: .4rem .85rem; }
.tag .ico { width: 1em; height: 1em; }
.pcard-figure { font-family: var(--font-head); font-weight: 800; color: var(--teal); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; margin-bottom: 1rem; letter-spacing: -.03em; }
.pcard-route { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; font-family: var(--font-head); color: var(--ink); }
.pcard-route b { font-size: 1rem; background: var(--bg-soft); padding: .3rem .6rem; border-radius: 8px; letter-spacing: .06em; }
.pcard-route .dash { flex: 0 1 60px; height: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 10px); }
.pcard-route .ico { color: var(--green); }
.pcard h3 { font-size: 1.2rem; }
.pcard p:last-child { margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; grid-auto-flow: dense; }
.g-item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--line); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(1,36,44,.55)); opacity: 0; transition: opacity .3s; }
.g-item .ico { position: absolute; right: 1rem; bottom: 1rem; color: #fff; z-index: 1; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after, .g-item:hover .ico, .g-item:focus-visible .ico { opacity: 1; transform: none; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-quote { border-radius: var(--radius); background: var(--green-dark); color: #fff; padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.g-quote::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; aspect-ratio: 1.15; background: rgba(255,255,255,.12); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.g-quote .ico { width: 2rem; height: 2rem; margin-bottom: .8rem; }
.g-quote p { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.45; color: #fff; margin-bottom: .5rem; }
.g-quote span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: 100vw; height: 100vh; height: 100dvh; }
.lightbox::backdrop { background: rgba(1,20,25,.92); }
.lightbox[open] { display: grid; place-items: center; animation: fadeUp .3s var(--ease); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lb-cap { position: absolute; bottom: 2rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); margin: 0; font-size: .95rem; }
.lb-close, .lb-nav { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--green); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- Contact / wizard ---------- */
.contact { background: var(--teal); color: rgba(255,255,255,.78); overflow: hidden; }
.contact h2 { color: #fff; }
.contact strong { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); position: relative; z-index: 1; align-items: start; }
.contact-list { margin-top: 2.25rem; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .ico { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--green-light); }
.contact-list span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.72); }
.contact-list div { color: #fff; font-weight: 500; line-height: 1.5; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--green-light); }
.contact-list .cl-review { display: flex; width: fit-content; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .85rem; font-weight: 600; color: var(--green-light); }
.contact-list .cl-review .ico { width: 1em; height: 1em; padding: 0; border-radius: 0; background: none; fill: currentColor; stroke: none; }
.contact-list .cl-review:hover { color: #fff; }
.contact-list .cl-note { display: block; font-size: .82rem; font-weight: 400; color: rgba(255,255,255,.55); }

.wizard { scroll-margin-top: calc(var(--header-h) + 20px); background: #fff; color: var(--body); border-radius: 24px; padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg); position: relative; }
.wz-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.wz-head h3 { margin: 0; font-size: 1.45rem; }
.wz-count { font-size: .85rem; color: var(--muted); }
.wz-count b { color: var(--green-dark); }
.wz-bar { height: 6px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; margin-bottom: 1.75rem; }
.wz-bar span { display: block; height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--green), var(--green-light)); border-radius: 6px; transition: width .5s var(--ease); }
.wz-step { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.wz-step.is-active { animation: fadeUp .45s var(--ease); }
.wz-step legend { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.08rem; margin-bottom: 1rem; padding: 0; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode span {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.25rem .5rem; border-radius: 14px; border: 1.5px solid var(--line);
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; text-align: center; transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.mode .ico { width: 30px; height: 30px; color: var(--teal); stroke-width: 1.5; transition: color .2s; }
.mode span:hover { border-color: var(--green); transform: translateY(-2px); }
.mode input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(12,166,78,.15); }
.mode input:checked + span .ico { color: var(--green); }
.mode input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.seg-group { margin-top: .5rem; border-radius: 14px; transition: box-shadow .2s; }
.seg-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; margin: 0 0 .55rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.wizard .seg label { display: block; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.seg b { font-family: var(--font-head); font-size: .92rem; color: var(--ink); }
.seg small { font-size: .78rem; font-weight: 400; color: var(--muted); line-height: 1.3; }
.seg span:hover { border-color: var(--green); }
.seg input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(12,166,78,.15); }
.seg input:checked + span b { color: var(--green-dark); }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.seg-group.invalid .seg span { border-color: #d64545; }
.seg-group.invalid .seg-title { color: #c03a3a; }

.wizard select {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 2.4rem .8rem .95rem; background: #fff;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23024656' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem;
}
.wizard select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(12,166,78,.14); }
.field-hint { font-size: .78rem; font-weight: 400; color: var(--muted); }
.field-hint a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.field-hint a:hover { text-decoration: underline; }
.wizard label:not(.mode) { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.wizard input:not([type=radio]), .wizard textarea {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem .95rem; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.wizard textarea { resize: vertical; }
.wizard input:focus, .wizard textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(12,166,78,.14); }
.wizard .invalid { border-color: #d64545 !important; }
.wz-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; }
.form-error { margin: .75rem 0 0; color: #c03a3a; font-size: .9rem; min-height: 0; }
.form-error:empty { display: none; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; }
.form-note { margin: .6rem 0 0; font-size: .8rem; color: var(--muted, #6b7c80); text-align: right; }
.form-note a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--green-dark); }
.wizard .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wizard button[disabled] { opacity: .7; cursor: progress; }
.wz-done { text-align: center; padding: 1.5rem 0 .5rem; animation: fadeUp .5s var(--ease); }
.done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 1.25rem; box-shadow: 0 14px 30px -10px rgba(12,166,78,.7); }
.done-ico .ico { width: 34px; height: 34px; stroke-width: 2.5; }
.form-status { margin-bottom: 1.5rem; }
.done-actions { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.btn-wa { background: #11843f; color: #fff; box-shadow: 0 10px 24px -8px rgba(37,211,102,.6); }
.btn-wa:hover { background: #0d6e34; transform: translateY(-2px); }
.btn-wa:hover .ico { transform: none; }
.contact-list .cl-wa .ico { background: var(--wa); color: #fff; padding: 11px; }
.contact-list .cl-wa span { color: #8ff0b5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-ink); color: rgba(255,255,255,.6); padding: 5rem 0 0; font-size: .95rem; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 3.5rem; }
.footer-cta h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0; font-weight: 800; letter-spacing: -.04em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.footer-grid img { width: 120px; height: auto; margin-bottom: 1rem; }
.footer-tag { max-width: 240px; }
.site-footer .f-head { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer li { margin-bottom: .6rem; line-height: 1.5; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--green-light); }
.social { display: inline-flex; align-items: center; gap: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding: 1.6rem 0; font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating ---------- */
/* WhatsApp floating chat (desktop) */
.wa-float { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 91; display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.wa-btn { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7); transition: transform .25s var(--ease), background .2s; }
.wa-btn .ico { width: 32px; height: 32px; }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: waRing 2.4s ease-out infinite; }
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover .wa-btn { transform: scale(1.06); background: var(--wa-dark); }
.wa-bubble {
  background: #fff; color: var(--body); font-size: .88rem; padding: .6rem 1rem; border-radius: 999px; box-shadow: var(--shadow-lg); white-space: nowrap;
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.wa-bubble b { color: var(--green-dark); }
.wa-float:hover .wa-bubble, .wa-float:focus-visible .wa-bubble, .wa-float.peek .wa-bubble { opacity: 1; transform: none; }

.to-top { position: fixed; right: 1.85rem; bottom: 6.25rem; z-index: 90; width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(12,166,78,.7); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .2s; }
.to-top:hover { background: var(--green-dark); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.mobile-cta { display: none; }

/* ---------- Split headings, spotlight ---------- */
h2.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
h2.split .w > span { display: inline-block; }
.js h2.split .w > span { transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; }
.js h2.split.in .w > span { transform: none; transition: transform 1s cubic-bezier(.16,1,.3,1) calc(var(--wi, 0) * 55ms); }
h2.split .hl::after { transform: scaleX(0); transform-origin: 0 50%; }
h2.split.in .hl::after { transform: none; transition: transform .8s var(--ease) .6s; }
.spot { position: relative; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(12,166,78,.13), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.magnetic, .wa-btn { transition: transform .35s cubic-bezier(.16,1,.3,1), background .25s, box-shadow .25s; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js h2.split .w > span, .js .reveal, .js .hero-in, .js .globe-canvas, .js .hero-title .ln > span { opacity: 1; transform: none; }
  .hero-aurora i { animation: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
/* desktop menu: the same links in every language. The phone number is left to the phone menu, and
   Gallery and Projects, then Calculator, give way on narrower screens. main.js drops more only if a font still overflows. */
@media (min-width: 1025px) {
  .nav-phone { display: none !important; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .site-nav > :is(a[href$="#gallery"], a[href$="#projects"]) { display: none; }
}
@media (min-width: 1025px) and (max-width: 1179px) {
  .site-nav > a[href$="#load-calculator"] { display: none; }
}
@media (min-width: 1025px) and (max-width: 1120px) {
  .site-nav { gap: 1rem; }
  .site-nav a:not(.btn) { font-size: .88rem; }
}

/* tablets and phones: the full menu does not fit on one line, so use the menu button */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; gap: 1.5rem;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .site-nav a:not(.btn) { color: var(--ink) !important; font-size: 1.5rem; font-weight: 600; }
  .nav-phone { display: inline-flex !important; border: 0 !important; padding-left: 0 !important; font-size: 1.1rem !important; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open .brand { z-index: 2; }
  .nav-open .brand-light { opacity: 0; }
  .nav-open .brand-dark { opacity: 1; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 4.5rem; }
  .hero-copy { max-width: 680px; }
  .hero-visual { min-height: 0; aspect-ratio: 1.1; margin: 0 -1.25rem; }
  .globe-canvas { inset: 0; width: 100%; height: 100%; }
  .globe-hint { right: 1.5rem; bottom: auto; top: 4%; }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3)::before { display: none; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 620px; }
  .section-head.split { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: .25rem; }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-list button { flex: 0 0 auto; grid-template-columns: auto auto; }
  .svc-list button .svc-num { display: none; }
  .svc-list button[aria-selected="true"] { transform: none; }
  .ic-head { grid-template-columns: auto 1fr; }
  .ic-legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }

  .ic-journey { display: none; }
  .ic-stages { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .ic-stage { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .ic-bar { width: 84px; height: 32px; flex-shrink: 0; }
  .ic-bar { letter-spacing: .02em; font-size: .72rem; }
  .ic-label::before { display: inline; margin-right: .5rem; }
  .ic-stage.risk::before { left: 0; right: 0; top: -2px; bottom: auto; width: auto; height: 3px; }
  .ic-stage.risk::after, .ic-stage.risk.first::after { left: auto; right: 96px; top: -11px; transform: none; }
  .ic-stage.risk.last::before { left: 0; right: 0; top: auto; bottom: -2px; }
  .ic-stage.risk.last::after { left: auto; right: 96px; top: auto; bottom: -11px; }
  .ic-stage.risk.mid::before { left: 0; right: 0; top: -2px; bottom: auto; }
  .ic-stage.risk.mid::after { left: auto; right: 96px; }
  .ic-code { font-size: 2.4rem; }

  .journey { height: auto; padding: 5rem 0 4rem; }
  .journey-pin { position: relative; height: auto; display: block; }
  .journey-inner { padding-top: 0; }
  .journey-head { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 2.5rem; }
  .journey-count { display: none; }
  .journey-bg { bottom: auto; top: 1rem; font-size: 6rem; }
  .journey-track { --first: 0px; }
  .j-line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.18) 0 8px, transparent 8px 14px); }
  .j-fill { inset: 0 0 auto 0; width: 100%; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, var(--green), #8fe3b1); }
  .j-cargo { display: none; }
  .j-steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .j-steps { gap: 1rem; }
  .j-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1rem; text-align: left; align-items: start; }
  .j-dot { margin: 0; }
  .j-card { align-items: flex-start; padding: .95rem 1.1rem 1.05rem; }
  .j-steps li.cur .j-card { transform: none; }
  .j-txt { max-width: none; }
  .journey-foot { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .k-row { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .pcard { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; }
  .pcard-img { aspect-ratio: 16/9; }
  .pcard-img::after { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .g-quote, .g-wide-m { grid-column: 1 / -1; }
  .wa-float { display: none; }
  .mobile-cta {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; display: flex; gap: .6rem;
    transform: translateY(150%); transition: transform .4s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mc-quote {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--green-dark); color: #fff; font-family: var(--font-head); font-weight: 600; text-decoration: none; padding: 1rem; border-radius: 999px;
    box-shadow: 0 14px 30px -10px rgba(12,166,78,.8);
  }
  .mc-wa { flex: 0 0 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.8); }
  .mc-wa .ico { width: 28px; height: 28px; }
  .to-top { right: 1.5rem; bottom: 5.75rem; width: 44px; height: 44px; }
}

@media (max-width: 600px) {
  .journey-foot { display: none; }
  body { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.1rem); }
  .hero-chip { font-size: .74rem; gap: .45rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { aspect-ratio: .92; margin-top: .5rem; }
  .globe-hint { display: none; }
  .stats li { padding: 1.4rem 1.2rem; }
  .about-media { padding: 0 1.5rem 3rem 0; }
  .about-badge { left: -.5rem; top: 1rem; padding: .75rem 1rem; }
  .about-badge img { width: 32px; }
  .tab-list button { font-size: .85rem; padding: .7rem .4rem; }
  .tab-list .ico { display: none; }
  .vision-list { grid-template-columns: 1fr; row-gap: .4rem; }
  .values-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .vision-list dt { justify-self: start; padding: .2rem .75rem; }
  .vision-list dd { padding-top: 0; margin-bottom: .6rem; }
  .vision-list div:last-child dd { margin-bottom: 0; }
  .svc-stage { min-height: 560px; }
  .svc-body { padding: 1.5rem; }
  .ic-head { grid-template-columns: 1fr; gap: 1rem; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .seg { grid-template-columns: 1fr; }
  .seg span { flex-direction: row; align-items: baseline; gap: .5rem; }
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .g-wide, .g-tall, .g-quote, .g-wide-m { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .lb-nav { top: auto; bottom: 4.5rem; transform: none; }
}
[data-parallax] { transition: none !important; will-change: transform; }

/* ---------- Privacy notice page ---------- */
.legal-header { background: var(--teal-ink); padding: 1.1rem 0; }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-back { display: inline-flex; align-items: center; gap: .45rem; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.legal-back:hover { color: var(--green-light); }
.legal-back .ico { width: 1.05em; height: 1.05em; }
.legal { padding: 4rem 0 5rem; }
.legal-inner { max-width: 780px; }
.legal h1, .legal .legal-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4rem; }
.legal h2, #bm h3 { font-size: 1.2rem; margin: 2.2rem 0 .7rem; letter-spacing: -.01em; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal li::marker { color: var(--green); }
.legal li { margin-bottom: .45rem; }
.legal a { color: var(--teal); text-underline-offset: 2px; }
.legal a:hover { color: var(--green-dark); }
.legal-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal-contact { font-style: normal; line-height: 1.8; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.legal-rule { border: 0; border-top: 1px solid var(--line); margin: 4rem 0 3rem; }
.legal-footer { padding-top: 0; }
@media (max-width: 600px) { .legal { padding: 2.5rem 0 3.5rem; } .legal-header .brand img { height: 32px; } }

/* ---------- Services menu (dropdown on desktop, short list in the phone menu) ---------- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-top { display: inline-flex; align-items: center; gap: .3rem; }
.nav-caret { width: .85em; height: .85em; transition: transform .25s var(--ease); }
.nav-drop-menu {
  position: absolute; top: calc(100% + .9rem); left: -1.1rem; min-width: 270px; padding: .55rem;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -18px rgba(1,36,44,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
.site-nav .nav-drop-menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 9px; color: var(--ink); font-size: .92rem; }
.site-nav .nav-drop-menu a::after { display: none; }
.site-nav .nav-drop-menu a:hover, .site-nav .nav-drop-menu a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.nav-drop-menu .ico { width: 1.1rem; height: 1.1rem; color: var(--green-dark); flex-shrink: 0; }
.nav-drop-btn, .nav-drop-all { display: none; }
@media (max-width: 1024px) {
  .site-nav { gap: 1.25rem; overflow-y: auto; justify-content: safe center; padding: calc(var(--header-h) + 1rem) 1.25rem 2.5rem; }
  .nav-drop { flex-direction: column; align-items: center; width: min(100%, 24rem); }
  .nav-drop-top { display: none !important; }
  .nav-drop-btn { display: inline-flex; align-items: center; gap: .5rem; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
  .nav-drop-btn .ico { width: 1.1rem; height: 1.1rem; color: var(--green-dark); transition: transform .3s var(--ease); }
  .nav-drop.open .nav-drop-btn .ico { transform: rotate(180deg); }
  .nav-drop-menu { position: static; display: none; width: 100%; min-width: 0; margin-top: 1rem; padding: .35rem; opacity: 1; visibility: visible; transform: none; background: var(--bg-soft); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
  .nav-drop.open .nav-drop-menu { display: block; animation: navIn .35s var(--ease) both; }
  .nav-drop-menu::before { display: none; }
  .nav-drop-menu li + li { border-top: 1px solid var(--line); }
  .site-nav .nav-drop-menu a { gap: .85rem; padding: .7rem .75rem; border-radius: 12px; font-size: 1rem; font-weight: 500; text-align: left; }
  .site-nav .nav-drop-menu a::before { content: ""; order: 3; margin-left: auto; width: .45rem; height: .45rem; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); opacity: .6; }
  .nav-drop-menu .ico { box-sizing: content-box; width: 1.1rem; height: 1.1rem; padding: .5rem; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(2,40,50,.08); }
  .nav-drop-all { display: block; }
  .site-nav .nav-drop-all a { justify-content: center; font-size: .9rem; font-weight: 600; color: var(--green-dark) !important; }
  .site-nav .nav-drop-all a::before { display: none; }
}
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* "Learn more" link in each service on the home page */
.svc-more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: .15rem; }
.svc-more:hover { color: var(--green-light); }
.svc-more .ico { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.svc-more:hover .ico { transform: translateX(3px); }
.svc-panel.is-active .svc-body > *:nth-child(4) { animation-delay: .24s; }
.site-footer ul a { text-decoration: none; }

/* ---------- Service pages ---------- */
.page-hero { position: relative; isolation: isolate; min-height: min(780px, 94vh); display: flex; align-items: flex-end; background: var(--teal-ink); color: rgba(255,255,255,.85); overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; z-index: -2; }
.page-hero-img picture { display: block; height: 100%; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(1,36,44,.94) 0%, rgba(1,36,44,.82) 38%, rgba(1,36,44,.35) 75%, rgba(1,36,44,.2) 100%), linear-gradient(0deg, rgba(1,36,44,.7), transparent 45%); }
.page-hero-inner { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-hero-copy { max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 1.1rem; }
.page-hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 40rem; margin-bottom: 1.6rem; }
.page-hero .svc-includes { margin-bottom: 2rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-bottom: 1.4rem; font-size: .88rem; color: rgba(255,255,255,.7); }
.crumbs a { color: #fff; text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--green-light); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: rgba(255,255,255,.4); }
.crumbs [aria-current] { color: rgba(255,255,255,.7); }

.sp-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: start; }
.sp-prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1.2rem; }
.sp-prose p { font-size: 1.05rem; }
.sp-prose a, .sp-docs a:not(.btn), .sp-tip a, .sp-card a { color: var(--green-dark); font-weight: 600; }
.service-page .section-head h2 + p { margin: 1rem 0 0; font-size: 1.05rem; }
.sp-glance { position: sticky; top: 100px; background: var(--bg-soft); border-radius: var(--radius); padding: 1.8rem; box-shadow: inset 0 0 0 1px var(--line); }
.sp-glance h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.sp-glance dl { margin: 0 0 1.5rem; }
.sp-glance dl > div { padding: .75rem 0; border-top: 1px solid var(--line); }
.sp-glance dt { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .15rem; }
.sp-glance dd { margin: 0; color: var(--ink); font-weight: 500; font-size: .98rem; line-height: 1.5; }
.sp-glance .btn { width: 100%; justify-content: center; }

.sp-features { background: var(--bg-soft); }
.sp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sp-cards.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: inset 0 0 0 1px var(--line); }
.sp-card .sp-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); margin-bottom: 1.1rem; }
.sp-card .sp-ico .ico { width: 1.4rem; height: 1.4rem; }
.sp-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.sp-card p { margin: 0; font-size: .97rem; }

.sp-process { background: linear-gradient(180deg, var(--teal-deep), var(--teal-ink)); color: rgba(255,255,255,.75); }
.sp-process h2 { color: #fff; }
.sp-process .section-head > p { color: rgba(255,255,255,.75); }
.sp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1.25rem; counter-reset: step; }
.sp-steps li { position: relative; padding: 1.6rem 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); counter-increment: step; }
.sp-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--green-light); margin-bottom: .8rem; letter-spacing: .04em; }
.sp-steps h3 { color: #fff; font-size: 1.08rem; margin-bottom: .4rem; }
.sp-steps p { margin: 0; font-size: .95rem; }
.sp-note { margin: 2rem 0 0; font-size: .95rem; color: rgba(255,255,255,.7); }

.sp-docs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 5rem; align-items: center; }
.sp-docs h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.sp-checks { display: grid; gap: .8rem; margin: 1.5rem 0; }
.sp-checks li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.55; }
.sp-checks .ico { flex-shrink: 0; width: 1.35rem; height: 1.35rem; color: var(--green-dark); margin-top: .1rem; }
.sp-story { border-radius: var(--radius); overflow: hidden; background: var(--teal-ink); color: rgba(255,255,255,.8); box-shadow: var(--shadow-lg); }
.sp-story-img { aspect-ratio: 16 / 9; overflow: hidden; }
.sp-story-img img { width: 100%; height: 100%; object-fit: cover; }
.sp-story-body { padding: 1.8rem 2rem 2rem; }
.sp-story .tag { background: rgba(143,227,177,.14); color: var(--green-light); margin-bottom: 1rem; }
.sp-story h3 { color: #fff; font-size: 1.3rem; margin-bottom: .5rem; }
.sp-story p { margin: 0; font-size: .97rem; }
.sp-story .sp-story-fig { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 2rem; letter-spacing: -.03em; margin-bottom: .2rem !important; }
.sp-tip { border-radius: var(--radius); background: var(--green-soft); padding: 2rem; }
.sp-tip h3 { font-size: 1.15rem; color: var(--teal); }
.sp-tip p:last-child { margin-bottom: 0; }

.sp-related { background: var(--bg-soft); }
.sp-related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sp-related-list a { display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.3rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; transition: box-shadow .2s, transform .2s var(--ease); }
.sp-related-list a:hover { box-shadow: inset 0 0 0 1px var(--green), 0 14px 30px -20px rgba(2,40,50,.5); transform: translateY(-2px); }
.sp-related-list .ico { width: 1.35rem; height: 1.35rem; color: var(--green-dark); flex-shrink: 0; }
.sp-related-list .ico:last-child { margin-left: auto; width: 1.1rem; height: 1.1rem; color: var(--muted); }
@media (max-width: 1024px) {
  .sp-overview-grid, .sp-docs-grid { grid-template-columns: 1fr; }
  .sp-glance { position: static; }
  .sp-cards, .sp-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sp-cards, .sp-cards.n4, .sp-related-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero { min-height: 0; }
  .page-hero::before { background: linear-gradient(0deg, rgba(1,36,44,.96) 0%, rgba(1,36,44,.85) 55%, rgba(1,36,44,.55) 100%); }
  .page-hero-inner { padding-top: calc(var(--header-h) + 2rem); }
  .sp-glance, .sp-card, .sp-tip { padding: 1.4rem; }
  .sp-story-body { padding: 1.4rem; }
}

/* ---------- Page not found (404.html) ---------- */
.nf-hero { min-height: 0; align-items: center; background: radial-gradient(900px 500px at 85% 20%, #0b5a6b, transparent 60%), var(--teal-ink); }
.nf-hero::before { display: none; }
.nf-hero .page-hero-inner { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }

/* ---------- Language menu (EN / BM / 中文), in the header bar on every screen size ---------- */
.site-nav { margin-left: auto; }
.nav-lang { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.nav-lang-btn {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  background: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .02em; color: rgba(255,255,255,.92);
  transition: color .2s, border-color .2s, background .2s;
}
.nav-lang-btn:hover { color: #fff; border-color: rgba(255,255,255,.6); }
.nav-lang-btn .ico { width: 1.05em; height: 1.05em; }
.nav-lang-btn .nav-caret { width: .8em; height: .8em; transition: transform .25s var(--ease); }
.site-header.scrolled .nav-lang-btn { color: var(--ink); border-color: var(--line); }
.site-header.scrolled .nav-lang-btn:hover { border-color: var(--teal); }
.nav-lang-menu {
  position: absolute; top: calc(100% + .75rem); right: 0; min-width: 190px; padding: .45rem; margin: 0; list-style: none; z-index: 5;
  background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 24px 50px -18px rgba(1,36,44,.4);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-lang-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav-lang.open .nav-lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-lang.open .nav-caret { transform: rotate(180deg); }
@media (hover: hover) {
  .nav-lang:hover .nav-lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-lang:hover .nav-caret { transform: rotate(180deg); }
}
.nav-lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .75rem; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-family: var(--font-head); font-size: .92rem; font-weight: 500; white-space: nowrap;
}
.nav-lang-menu a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav-lang-menu a[aria-current="true"] { color: var(--green-dark); font-weight: 600; }
.nav-lang-menu a[aria-current="true"]::after {
  content: ""; width: .5rem; height: .85rem; margin-right: .2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px);
}
@media (max-width: 1024px) {
  .header-inner { gap: .6rem; }
  .nav-lang { margin-left: auto; }
  .nav-lang-btn { padding: .3rem .7rem; }
  /* stays usable, in dark ink, while the full-screen menu is open */
  .nav-open .nav-lang { z-index: 2; }
  .nav-open .nav-lang-btn { color: var(--ink); border-color: var(--line); }
}

/* ---------- Chinese pages ---------- */
/* Latin letters and numbers keep the site fonts; Chinese characters use the system's Chinese font */
html:lang(zh) {
  --font-head: "Poppins", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
}
html:lang(zh) body { line-height: 1.75; line-break: strict; }
html:lang(zh) :is(h1, h2, h3, h4, .hero h1, .ct-stage h3, .stats strong, .ic-code) { letter-spacing: 0; }
html:lang(zh) :is(h1, h2, h3) { line-height: 1.3; }
/* On the smallest phones "1,500+ t" would break onto two lines while it counts up, making the page jump */
@media (max-width: 360px) { .stats strong { font-size: min(2rem, 8vw); white-space: nowrap; } }
/* "1,500+ 吨" is wider than "1,500+ t": on phones keep it on one line, so the count-up doesn't make the page jump */
@media (max-width: 600px) { html:lang(zh) .stats strong { font-size: min(1.7rem, 7vw); white-space: nowrap; } }
html:lang(zh) .hero h1 { line-height: 1.15; }
html:lang(zh) :is(.eyebrow, .marquee-title, .j-n, .ct-kicker, .ct-stat > span, .ct-best > span, .ic-bar, .globe-hint) { letter-spacing: .06em; }
@media (min-width: 1025px) { .site-nav > .nav-hide { display: none !important; } }
/* on small phones leave out the badge's clock so it stays on one line (sooner for the longer Malay text) */
@media (max-width: 420px) { html:lang(ms) .hero-chip > .sep:nth-of-type(2), html:lang(ms) .hero-chip > span:last-child { display: none; } }
@media (max-width: 374px) { .hero-chip > .sep:nth-of-type(2), .hero-chip > span:last-child { display: none; } }
