/* =========================================================
   INJAVA LIMITED — Corporate Website
   Mobile-first stylesheet
   1. Tokens
   2. Reset & base
   3. Layout helpers
   4. Buttons & links
   5. Header / navigation
   6. Hero
   7. Sections: About, Services, Why, Gallery, Contact
   8. Footer & back-to-top
   9. Motion / reveal
   10. Breakpoints
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — derived from the INJAVA logo */
  --navy-900: #151b29;
  --navy-800: #1b2233;
  --navy:     #232c42;   /* primary */
  --navy-700: #2b3550;
  --navy-600: #343e5a;   /* sampled from logo tile */
  --navy-500: #46527a;

  --gold:     #f2d9a0;   /* accent */
  --gold-2:   #e6c684;   /* muted gold — hover */
  --gold-3:   #c9a555;   /* deep gold — on light backgrounds */

  --cream:    #faf6ee;   /* off-white page background */
  --paper:    #ffffff;
  --ink:      #161a24;   /* body text */
  --ink-2:    #4a5468;
  --ink-3:    #78829a;

  --line:       rgba(35, 44, 66, .12);
  --line-2:     rgba(35, 44, 66, .07);
  --line-dark:  rgba(242, 217, 160, .18);
  --line-dark-2:rgba(255, 255, 255, .09);

  /* Type */
  --font-display: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --sh-1: 0 1px 2px rgba(21, 27, 41, .05), 0 4px 14px rgba(21, 27, 41, .06);
  --sh-2: 0 2px 6px rgba(21, 27, 41, .06), 0 14px 34px rgba(21, 27, 41, .10);
  --sh-3: 0 6px 12px rgba(21, 27, 41, .08), 0 26px 56px rgba(21, 27, 41, .18);

  /* Rhythm */
  --header-h: 66px;
  --gutter: 1.25rem;
  --section-y: clamp(3.75rem, 8vw, 7.5rem);

  /* Motion */
  --ease: cubic-bezier(.22, .72, .3, 1);
  --dur: .38s;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: clip;            /* never allow sideways scroll */
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(242, 217, 160, .28);
}

/* Older engines that don't support overflow:clip */
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

address { font-style: normal; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Visible focus for keyboard users everywhere */
:focus-visible {
  outline: 3px solid var(--gold-3);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--navy :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  background: var(--gold);
  color: var(--navy);
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Layout helpers ---------- */
.container {
  width: min(100% - (var(--gutter) * 2), 1280px);
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--navy {
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--navy-700), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #e8ebf3;
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section__head { max-width: 62ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title { font-size: clamp(1.75rem, 1.15rem + 2.7vw, 3.1rem); }

.section__intro {
  color: var(--ink-2);
  font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
}
.section__intro--on-dark { color: #b9c1d4; }

.eyebrow {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section__head--center .eyebrow { justify-content: center; }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--on-dark { color: var(--gold); }

.text-gold { color: var(--gold); }

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  position: relative;
  overflow: hidden;           /* clips the gloss sweep (section 11) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;                 /* comfortable touch target */
  padding: .8rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn--lg { min-height: 54px; padding: .95rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---- Animated gradient button ----
   Ported from the shadcn `gradient-button`. The technique is the interesting
   part: registering the gradient's stops and colours with @property makes them
   animatable types rather than opaque strings, so the radial gradient itself
   can transition. Recoloured navy/gold, and kept gold-dominant so the CTA
   still reads as the brand accent with navy text on top.

   Every custom property is also declared explicitly on .btn--gold below, so
   browsers without @property support still render a correct static gradient —
   they simply don't animate it. */
@property --gb-pos-x   { syntax: '<percentage>'; initial-value: 11.14%;  inherits: false; }
@property --gb-pos-y   { syntax: '<percentage>'; initial-value: 140%;    inherits: false; }
@property --gb-spread-x{ syntax: '<percentage>'; initial-value: 150%;    inherits: false; }
@property --gb-spread-y{ syntax: '<percentage>'; initial-value: 180.06%; inherits: false; }
@property --gb-c1      { syntax: '<color>';      initial-value: #fdf3dd; inherits: false; }
@property --gb-c2      { syntax: '<color>';      initial-value: #f2d9a0; inherits: false; }
@property --gb-c3      { syntax: '<color>';      initial-value: #e6c684; inherits: false; }
@property --gb-c4      { syntax: '<color>';      initial-value: #cfa95c; inherits: false; }
@property --gb-c5      { syntax: '<color>';      initial-value: #a9843c; inherits: false; }
@property --gb-stop-1  { syntax: '<percentage>'; initial-value: 37.35%;  inherits: false; }
@property --gb-stop-2  { syntax: '<percentage>'; initial-value: 61.36%;  inherits: false; }
@property --gb-stop-3  { syntax: '<percentage>'; initial-value: 78.42%;  inherits: false; }
@property --gb-stop-4  { syntax: '<percentage>'; initial-value: 89.52%;  inherits: false; }
@property --gb-stop-5  { syntax: '<percentage>'; initial-value: 100%;    inherits: false; }
@property --gb-angle   { syntax: '<angle>';      initial-value: 20deg;   inherits: true;  }
@property --gb-b1      { syntax: '<color>';      initial-value: hsla(43, 85%, 97%, .55); inherits: true; }
@property --gb-b2      { syntax: '<color>';      initial-value: hsla(43, 60%, 42%, .55); inherits: true; }

.btn--gold {
  --gb-pos-x: 11.14%;
  --gb-pos-y: 140%;
  --gb-spread-x: 150%;
  --gb-spread-y: 180.06%;
  --gb-c1: #fdf3dd;
  --gb-c2: #f2d9a0;
  --gb-c3: #e6c684;
  --gb-c4: #cfa95c;
  --gb-c5: #a9843c;
  --gb-stop-1: 37.35%;
  --gb-stop-2: 61.36%;
  --gb-stop-3: 78.42%;
  --gb-stop-4: 89.52%;
  --gb-stop-5: 100%;
  --gb-angle: 20deg;
  --gb-b1: hsla(43, 85%, 97%, .55);
  --gb-b2: hsla(43, 60%, 42%, .55);

  background: radial-gradient(
    var(--gb-spread-x) var(--gb-spread-y) at var(--gb-pos-x) var(--gb-pos-y),
    var(--gb-c1) var(--gb-stop-1),
    var(--gb-c2) var(--gb-stop-2),
    var(--gb-c3) var(--gb-stop-3),
    var(--gb-c4) var(--gb-stop-4),
    var(--gb-c5) var(--gb-stop-5)
  );
  box-shadow: 0 8px 22px rgba(201, 165, 85, .28);
  transition:
    --gb-pos-x .5s, --gb-pos-y .5s, --gb-spread-x .5s, --gb-spread-y .5s,
    --gb-c1 .5s, --gb-c2 .5s, --gb-c3 .5s, --gb-c4 .5s, --gb-c5 .5s,
    --gb-stop-1 .5s, --gb-stop-2 .5s, --gb-stop-3 .5s, --gb-stop-4 .5s, --gb-stop-5 .5s,
    --gb-angle .5s, --gb-b1 .5s, --gb-b2 .5s,
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Gradient hairline border, masked so only the 1px ring paints */
.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(var(--gb-angle), var(--gb-b1), var(--gb-b2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* Dark variant, for gold-on-navy contexts */
.btn--gradient-navy {
  --gb-c1: #10151f;
  --gb-c2: #1b2233;
  --gb-c3: #2b3550;
  --gb-c4: #6d5c34;
  --gb-c5: #c9a555;
  --gb-b1: hsla(43, 80%, 90%, .18);
  --gb-b2: hsla(43, 70%, 60%, .7);
  --btn-fg: #fff;
  color: #fff;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(2px);
}

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }

  /* The gradient itself animates — every stop stays light enough that the
     navy label keeps well above 4.5:1 contrast throughout the transition. */
  .btn--gold:hover {
    --gb-pos-x: 0%;
    --gb-pos-y: 91.51%;
    --gb-spread-x: 120.24%;
    --gb-spread-y: 103.18%;
    --gb-c1: #fffaf0;
    --gb-c2: #f7e6bd;
    --gb-c3: #f2d9a0;
    --gb-c4: #e2c078;
    --gb-c5: #c9a555;
    --gb-stop-1: 0%;
    --gb-stop-2: 8.8%;
    --gb-stop-3: 21.44%;
    --gb-stop-4: 71.34%;
    --gb-stop-5: 85.76%;
    --gb-angle: 190deg;
    --gb-b1: hsla(43, 90%, 99%, .85);
    --gb-b2: hsla(43, 70%, 55%, .8);
    box-shadow: 0 14px 32px rgba(201, 165, 85, .45);
  }

  .btn--gold.btn--gradient-navy:hover {
    --gb-c1: #2b3550;
    --gb-c2: #4a4636;
    --gb-c3: #6d5c34;
    --gb-c4: #c9a555;
    --gb-c5: #f2d9a0;
    --gb-b1: hsla(43, 85%, 95%, .35);
    --gb-b2: hsla(43, 75%, 65%, .9);
  }

  .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--gold); color: var(--gold); }
}
.btn:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  min-height: 44px;
  padding-top: .35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
  border-bottom: 2px solid transparent;
  align-self: flex-start;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-arrow span { transition: transform var(--dur) var(--ease); }
@media (hover: hover) {
  .link-arrow:hover { color: var(--gold-3); border-bottom-color: var(--gold-3); }
  .link-arrow:hover span { transform: translateX(5px); }
}

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  /* Must sit above .nav-scrim: the slide-in panel lives inside this header,
     so the header's stacking context caps how high the panel can paint. */
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.site-header::after {          /* soft scrim so the logo reads over the hero */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(21, 27, 41, .55), transparent);
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.site-header.is-scrolled {
  background: rgba(27, 34, 51, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line-dark-2), 0 10px 30px rgba(10, 14, 24, .28);
}
.site-header.is-scrolled::after { opacity: 0; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
  width: min(100% - (var(--gutter) * 2), 1280px);
}

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(10, 14, 24, .35);
  transition: transform var(--dur) var(--ease);
}
@media (hover: hover) { .brand:hover .brand__icon { transform: rotate(-6deg) scale(1.06); } }

.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: .04em;
  color: #fff;
}
.brand__sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .34em;
  color: var(--gold);
  margin-top: 3px;
}

/* --- mobile slide-in panel --- */
.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2;                 /* within the header's stacking context */
  width: min(86vw, 360px);
  height: 100dvh;
  padding: calc(var(--header-h) + 1.5rem) 1.6rem 2rem;
  background: linear-gradient(165deg, var(--navy-700), var(--navy-900));
  box-shadow: -20px 0 50px rgba(10, 14, 24, .45);
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .42s var(--ease), visibility .42s;
}
.nav-open .nav { transform: translateX(0); visibility: visible; }

.nav__list { display: flex; flex-direction: column; }

.nav__link {
  display: block;
  padding: .95rem .25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: #dfe4ef;
  border-bottom: 1px solid var(--line-dark-2);
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
@media (hover: hover) { .nav__link:hover { color: var(--gold); padding-left: .6rem; } }
.nav__link.is-active { color: var(--gold); }

.nav__cta { margin-top: 1.6rem; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(12, 16, 26, .6);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s var(--ease);
}
.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

/* --- hamburger --- */
.nav-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  cursor: pointer;
  z-index: 3;                 /* above the panel, so the close X stays reachable */
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) { .nav-toggle:hover { background: rgba(242, 217, 160, .16); border-color: var(--gold); } }

.nav-toggle__bars { display: block; width: 22px; height: 15px; position: relative; }
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s var(--ease), width .35s var(--ease);
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 6.5px; width: 72%; }
.nav-toggle__bars i:nth-child(3) { top: 13px; }

.nav-open .nav-toggle__bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle__bars i:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.nav-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(4rem, 12vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
@supports not (min-height: 100svh) { .hero { min-height: 100vh; } }

/* Taller than the hero so the parallax shift never exposes an edge */
.hero__media { position: absolute; top: -8%; left: 0; right: 0; height: 116%; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 27, 41, .74) 0%, rgba(21, 27, 41, .55) 42%, rgba(21, 27, 41, .93) 100%),
    linear-gradient(100deg, rgba(35, 44, 66, .82) 0%, rgba(35, 44, 66, .22) 70%);
}

/* subtle gold hairline grid, echoing the logo tile */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(242, 217, 160, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 217, 160, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 20% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

/* Interactive beams canvas — sits above the photo's dark overlay so the
   beams read as shafts of light. Rendered at half resolution and softened
   with a CSS blur, which is far cheaper than blurring inside the canvas. */
.hero__beams {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  /* Two deliberate omissions, both measured:
     - no CSS filter: blurring a full-viewport element every frame cost more
       than everything else combined (13fps). The blur now happens once on the
       small offscreen buffer in main.js and the upscale finishes the job.
     - no mix-blend-mode: screen: it cost a further ~17fps on a layer this
       size. The hero backdrop is already dark, so bright beams composited
       normally read as light anyway. */
}
.hero__beams.is-live { opacity: .5; }

.hero__inner { position: relative; color: #fff; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 217, 160, .1);
  border: 1px solid rgba(242, 217, 160, .28);
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.72); }
}

.hero__title {
  font-size: clamp(2.1rem, 1.1rem + 4.6vw, 4.35rem);
  font-weight: 800;
  max-width: 17ch;
  margin-bottom: 1rem;
  text-shadow: 0 2px 24px rgba(10, 14, 24, .35);
}

.hero__lead {
  max-width: 58ch;
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  color: #d6dced;
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__lines {
  display: grid;
  gap: .5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__lines a {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  padding: .65rem 0;          /* comfortable touch target */
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #e6eaf4;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__lines a span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
}
@media (hover: hover) { .hero__lines a:hover { color: var(--gold); transform: translateX(4px); } }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(242, 217, 160, .5);
  border-radius: 999px;
  display: none;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrolldot 1.9s var(--ease) infinite;
}
@keyframes scrolldot {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  { opacity: 1; }
  75%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ---------- 7a. About ---------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.about__media::before {           /* gold frame offset */
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--gold-3);
  border-radius: var(--r-lg);
  z-index: -1;
}
.about__badge {
  position: absolute;
  right: -6px;
  bottom: -22px;
  width: 78px;
  height: 78px;
  padding: 9px;
  background: var(--navy);
  border-radius: 18px;
  box-shadow: var(--sh-3);
  display: grid;
  place-items: center;
}
.about__badge img { width: 100%; height: 100%; border-radius: 10px; }

.about__body p { color: var(--ink-2); }

.facts {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.facts__item { background: var(--paper); padding: 1rem 1.15rem; }
.section--light .facts__item { background: var(--paper); }
.facts dt {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: .2rem;
}
.facts dd {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.35;
}

/* ---------- 7b. Services ---------- */
.cards { display: grid; gap: 1.5rem; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-7px); box-shadow: var(--sh-3); border-color: rgba(201, 165, 85, .4); }
  .card:hover { --card-img: 1.07; }
}

.card__media { position: relative; overflow: hidden; background: var(--navy-800); perspective: 600px; }
.card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  /* driven by --card-img so the entrance settle and the hover zoom
     can share one transform without overriding each other */
  transform: scale(var(--card-img, 1));
  transition: transform .7s var(--ease);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 27, 41, .5), transparent 55%);
}
.card__num {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--navy);
  background: var(--gold);
  padding: .3rem .65rem;
  border-radius: 999px;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.4rem 1.6rem;
  position: relative;
}

.icon-badge {
  position: absolute;
  top: -30px;
  right: 1.3rem;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold);
  border-radius: 18px;
  box-shadow: var(--sh-2);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.icon-badge .ico { width: 32px; height: 32px; }
@media (hover: hover) {
  .card:hover .icon-badge { transform: translateY(-4px) rotate(-5deg); background: var(--navy-700); }
}

.card__title { font-size: 1.22rem; margin-bottom: .55rem; padding-right: 3.5rem; color: var(--navy); }
.card__text { color: var(--ink-2); font-size: .98rem; margin-bottom: 1rem; }

.card__list { display: grid; gap: .5rem; margin-bottom: 1.35rem; }
.card__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold-3);
  rotate: 45deg;
}

/* ---------- 7c. Why choose us ---------- */
.values { display: grid; gap: 1.25rem; }

.value {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r);
  padding: 1.6rem 1.4rem;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .value:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .085);
    border-color: var(--line-dark);
  }
}

.value__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(242, 217, 160, .12);
  border: 1px solid rgba(242, 217, 160, .26);
  color: var(--gold);
  margin-bottom: 1.05rem;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.value__icon .ico { width: 28px; height: 28px; }
@media (hover: hover) {
  .value:hover .value__icon { background: rgba(242, 217, 160, .2); transform: scale(1.06); }
}

.value__title { font-size: 1.1rem; margin-bottom: .4rem; }
.value__text { color: #b9c1d4; font-size: .95rem; }

/* ---------- 7d. Gallery ---------- */
.gallery {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--navy-800);
  box-shadow: var(--sh-1);
  min-width: 0;
  aspect-ratio: 4 / 3;        /* tile owns the ratio; the image just fills it */
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* see --card-img note above: one transform, two sources */
  transform: scale(var(--tile-img, 1));
  transition: transform .8s var(--ease), filter .5s var(--ease);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 32, .88) 0%, rgba(15, 20, 32, .18) 46%, transparent 70%);
  transition: opacity var(--dur) var(--ease);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1rem 1.1rem;
  color: #fff;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease);
}
.gallery__caption b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.gallery__caption { color: var(--gold); }
.gallery__caption b { color: #fff; }

@media (hover: hover) {
  .gallery__item:hover { --tile-img: 1.08; }
  .gallery__item:hover .gallery__caption { transform: translateY(-4px); }
}

/* ---------- 7e. Contact ---------- */
.contact__grid { display: grid; gap: 1.75rem; align-items: start; }

.contact__list { display: grid; gap: .9rem; margin-bottom: 1.5rem; }

.contact__item {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-dark-2);
  border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
@media (hover: hover) {
  .contact__item:hover { border-color: var(--line-dark); background: rgba(255, 255, 255, .08); }
}

.contact__ico {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(242, 217, 160, .13);
  border: 1px solid rgba(242, 217, 160, .26);
  color: var(--gold);
}
.contact__ico svg { width: 22px; height: 22px; }

.contact__item h3 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.contact__item address,
.contact__item p { color: #dce1ee; font-size: 1rem; line-height: 1.55; margin: 0; }
.contact__item a {
  border-bottom: 1px solid rgba(242, 217, 160, .45);
  padding-bottom: 1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (hover: hover) { .contact__item a:hover { color: var(--gold); border-color: var(--gold); } }
.contact__hint { font-size: .82rem !important; color: #8f99b1 !important; margin-top: .25rem !important; }

.map {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line-dark-2);
  background: var(--navy-800);
}
.map iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
  filter: saturate(.85);
}

/* Form */
.contact__form-wrap {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 4vw, 2.25rem);
  box-shadow: var(--sh-3);
}

.form__row { display: grid; gap: 1rem; }

.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field label {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .45rem;
}
.field label span[aria-hidden] { color: var(--gold-3); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 16px;                  /* prevents iOS zoom-on-focus */
  font-family: var(--font-body);
  padding: .8rem .95rem;
  min-height: 50px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field select { appearance: none; background-image: none; cursor: pointer; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--gold-3);
  box-shadow: 0 0 0 4px rgba(201, 165, 85, .18);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.field.has-error input,
.field.has-error textarea { border-color: #c0463c; box-shadow: 0 0 0 4px rgba(192, 70, 60, .12); }
.field__error {
  color: #b03a30;
  font-size: .82rem;
  margin-top: .35rem;
  font-weight: 500;
}

.form__note {
  font-size: .86rem;
  color: var(--ink-3);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}
.form__note a { color: var(--gold-3); font-weight: 600; border-bottom: 1px solid currentColor; }

.form__status {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 500;
  display: none;
}
.form__status.is-shown { display: block; }
.form__status.is-ok {
  background: rgba(46, 125, 90, .1);
  border: 1px solid rgba(46, 125, 90, .3);
  color: #1f6349;
}
.form__status.is-err {
  background: rgba(192, 70, 60, .09);
  border: 1px solid rgba(192, 70, 60, .28);
  color: #a5352c;
}

/* ---------- 8. Footer & back-to-top ---------- */
.site-footer {
  background: var(--navy-900);
  color: #aeb6c9;
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  font-size: .94rem;
}

.footer__grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }

.footer__brand img {
  width: 168px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.footer__brand p { max-width: 42ch; color: #98a1b6; }

.footer__col h3 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: .15rem; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;           /* comfortable touch target on phones */
  padding: 2px 0;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.footer__contact li { padding-block: .2rem; }
@media (hover: hover) { .footer__col a:hover { color: var(--gold); transform: translateX(3px); } }
.footer__contact li { line-height: 1.6; }

.footer__bar {
  border-top: 1px solid var(--line-dark-2);
  padding-block: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  color: #7f89a0;
}
.footer__bar p { margin: 0; }
.footer__loc { letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; }

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 14, 24, .3);
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .to-top:hover { background: var(--gold-2); transform: translateY(-3px); } }

/* ---------- 9. Motion: animated icons & scroll reveal ---------- */

/* Icons animate on card/value hover, and once on reveal */
.ico { overflow: visible; }

/* Agri: leaves scale from the stem, arc draws */
.ico--agri .ico__leaf,
.ico--agri .ico__leaf2 { transform-origin: 24px 40px; transition: transform .5s var(--ease); }
.ico--agri .ico__arc,
.ico--agri .ico__tip {
  stroke-dasharray: 62;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .8s var(--ease), opacity .4s var(--ease);
  opacity: .55;
}
@media (hover: hover) {
  .card:hover .ico--agri .ico__leaf  { transform: rotate(-7deg) scale(1.08); }
  .card:hover .ico--agri .ico__leaf2 { transform: rotate(7deg) scale(1.08); }
  .card:hover .ico--agri .ico__arc,
  .card:hover .ico--agri .ico__tip   { opacity: 1; animation: draw .9s var(--ease); }
}
@keyframes draw {
  from { stroke-dashoffset: 62; }
  to   { stroke-dashoffset: 0; }
}

/* Office: screen lines sweep, desk widens */
.ico--office .ico__glow {
  stroke-dasharray: 22;
  stroke-dashoffset: 0;
  transition: opacity .35s var(--ease);
}
.ico--office .ico__screen,
.ico--office .ico__desk { transition: transform .5s var(--ease); transform-origin: 24px 24px; }
@media (hover: hover) {
  .card:hover .ico--office .ico__glow  { animation: draw2 .8s var(--ease); }
  .card:hover .ico--office .ico__screen { transform: translateY(-2px); }
  .card:hover .ico--office .ico__desk   { transform: scaleX(1.1); }
}
@keyframes draw2 {
  from { stroke-dashoffset: 22; }
  to   { stroke-dashoffset: 0; }
}

/* Parts: cog rotates */
.ico--parts .ico__cog { transform-origin: 24px 24px; transition: transform .9s var(--ease); }
@media (hover: hover) { .card:hover .ico--parts .ico__cog { transform: rotate(120deg); } }

/* Value icons */
.ico--shield .ico__check {
  stroke-dasharray: 26;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .5s var(--ease);
}
.ico--award .ico__star,
.ico--award .ico__medal { transform-origin: 24px 18px; transition: transform .5s var(--ease); }
.ico--pin .ico__pinbody { transform-origin: 24px 40px; transition: transform .45s var(--ease); }
.ico--pin .ico__pindot  { transition: r .45s var(--ease); }
.ico--truck .ico__wheel { transform-origin: 14px 36px; transition: transform .5s var(--ease); }
.ico--truck .ico__wheel--2 { transform-origin: 34px 36px; }
.ico--truck .ico__body,
.ico--truck .ico__cab { transition: transform .5s var(--ease); }

@media (hover: hover) {
  .value:hover .ico--shield .ico__check { animation: draw3 .7s var(--ease); }
  .value:hover .ico--award .ico__star   { transform: rotate(72deg) scale(1.08); }
  .value:hover .ico--award .ico__medal  { transform: scale(1.06); }
  .value:hover .ico--pin .ico__pinbody  { transform: translateY(-3px); }
  .value:hover .ico--truck .ico__wheel  { transform: rotate(180deg); }
  .value:hover .ico--truck .ico__body,
  .value:hover .ico--truck .ico__cab    { transform: translateX(2.5px); }
}
@keyframes draw3 {
  from { stroke-dashoffset: 26; }
  to   { stroke-dashoffset: 0; }
}

/* Scroll reveal — only applied when JS is running, so content never hides without it */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
.js .reveal[data-delay="1"] { transition-delay: .09s; }
.js .reveal[data-delay="2"] { transition-delay: .18s; }
.js .reveal[data-delay="3"] { transition-delay: .27s; }
.js .reveal[data-delay="4"] { transition-delay: .36s; }
.js .reveal[data-delay="5"] { transition-delay: .45s; }
.js .reveal[data-delay="6"] { transition-delay: .54s; }
.js .reveal[data-delay="7"] { transition-delay: .63s; }
.js .reveal[data-delay="8"] { transition-delay: .72s; }

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 10. Breakpoints ---------- */

/* Small phones — tighten a little */
@media (max-width: 380px) {
  :root { --gutter: 1rem; }
  .brand__name { font-size: 1rem; }
  .brand__sub  { font-size: .56rem; letter-spacing: .28em; }
  .hero__actions .btn { width: 100%; }
}

/* Tablet */
@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }

  /* 2 columns: the feature tile runs full width, the other 8 tile evenly */
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--feature { grid-column: span 2; aspect-ratio: 16 / 9; }
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 76px; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  /* 3 columns + a 2x2 feature tile = exactly 4 full rows for 9 images, no gaps */
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .gallery__item--feature {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;       /* stretches to the two rows beside it */
  }

  .to-top { right: 1.75rem; bottom: 1.75rem; width: 52px; height: 52px; }
  .hero__lines { display: flex; gap: 2.25rem; }
}

/* Desktop — full navigation */
@media (min-width: 1024px) {
  :root { --header-h: 84px; }

  .nav-toggle { display: none; }
  .nav-scrim  { display: none; }

  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
  .nav__list { flex-direction: row; align-items: center; gap: .35rem; }
  .nav__link {
    position: relative;
    padding: .55rem .85rem;
    font-size: .95rem;
    border-bottom: none;
    color: #e2e7f1;
    border-radius: 8px;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .28rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav__link.is-active::after { transform: scaleX(1); }
  @media (hover: hover) {
    .nav__link:hover { color: var(--gold); padding-left: .85rem; }
    .nav__link:hover::after { transform: scaleX(1); }
  }
  .nav__cta { margin-top: 0; min-height: 44px; padding: .6rem 1.3rem; font-size: .9rem; }

  .brand__icon { width: 46px; height: 46px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub  { font-size: .66rem; }

  .hero { align-items: center; }
  .hero__scroll { display: grid; }

  .about__grid { grid-template-columns: 1fr 1.08fr; gap: clamp(3rem, 6vw, 5.5rem); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .values { grid-template-columns: repeat(4, 1fr); }
  .contact__grid { grid-template-columns: 1fr 1.02fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
}

/* Large desktop */
@media (min-width: 1440px) {
  :root { --gutter: 3rem; }
  .gallery { gap: 1.2rem; }
}

/* Very large screens — keep the measure comfortable */
@media (min-width: 1800px) {
  .container { max-width: 1320px; }
}

/* Landscape phones: don't force a full-height hero */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3rem; }
  .hero__scroll { display: none; }
  .nav { padding-top: calc(var(--header-h) + .75rem); }
}

/* =========================================================
   11. Creative motion
   Every animation below is tied to the thing it animates:
   goods move, routes draw, pins drop, trucks arrive, phones ring.
   All of it is transform/opacity (or a cheap stroke offset) so it
   composites on the GPU, and all of it is switched off further down
   under prefers-reduced-motion.
   ========================================================= */

/* ---- Reading progress: a gold bar that fills as you move through ---- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 130;               /* above the sticky header */
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---- Headlines: words rise into place, like cargo being set down ---- */
.js [data-split="words"] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .16em;      /* keeps descenders from being clipped */
  margin-bottom: -.16em;
}
.js [data-split="words"] .w > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 48ms);
}
.js [data-split="words"].is-visible .w > i { transform: none; }

/* the per-word motion replaces the block-level fade */
.js .reveal[data-split] { opacity: 1; transform: none; transition: none; }

/* ---- Hero: the port drifts slowly, as if seen from a moving deck ---- */
.hero__media { will-change: transform; }
.hero__media img { animation: portDrift 32s ease-in-out infinite alternate; }
@keyframes portDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.11) translate3d(-1.6%, 0, 0); }
}

/* Business lines arrive one after another */
.js .hero__lines.is-visible li { animation: lineIn .7s var(--ease) backwards; }
.js .hero__lines.is-visible li:nth-child(1) { animation-delay: .45s; }
.js .hero__lines.is-visible li:nth-child(2) { animation-delay: .57s; }
.js .hero__lines.is-visible li:nth-child(3) { animation-delay: .69s; }
@keyframes lineIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Section eyebrow rule draws out from the left ---- */
.js .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease) .15s;
}
.js .eyebrow.is-visible::before { transform: scaleX(1); }

/* ---- Gloss sweep across buttons on hover ---- */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-220%) skewX(-18deg);
  pointer-events: none;
}
@media (hover: hover) { .btn:hover::after { animation: gloss .8s var(--ease); } }
@keyframes gloss { to { transform: translateX(430%) skewX(-18deg); } }

/* ---- Trading ticker: goods moving past, like a market board ---- */
.ticker {
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding-block: .85rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerRun 55s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; }
.ticker__list li {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-right: 1.4rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c3cbdd;
}
.ticker__list li::after {         /* gold diamond separator */
  content: "";
  width: 6px;
  height: 6px;
  rotate: 45deg;
  background: var(--gold);
  flex: none;
}
/* the duplicated list is exactly half the track, so -50% loops seamlessly */
@keyframes tickerRun { to { transform: translateX(-50%); } }

/* ---- About: the photo uncovers top-down, like a shutter lifting ---- */
.about__wipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--navy);
  border-radius: var(--r-lg);
  transform: scaleY(0);           /* invisible when JS is unavailable */
}
.js .about__wipe {
  transform-origin: bottom center;
  transform: scaleY(1);
  transition: transform 1.05s var(--ease) .1s;
}
.js .about__media.is-visible .about__wipe { transform: scaleY(0); }

.js .about__media::before { opacity: 0; transform: scale(.95); transition: opacity .9s var(--ease) .5s, transform .9s var(--ease) .5s; }
.js .about__media.is-visible::before { opacity: 1; transform: none; }

.js .about__badge { opacity: 0; transform: scale(.4) rotate(-14deg); transition: opacity .5s var(--ease) .8s, transform .7s var(--ease) .8s; }
.js .about__media.is-visible .about__badge { opacity: 1; transform: none; }

/* Facts strip counts in one cell at a time */
.js .facts.is-visible .facts__item { animation: lineIn .6s var(--ease) backwards; }
.js .facts.is-visible .facts__item:nth-child(1) { animation-delay: .1s; }
.js .facts.is-visible .facts__item:nth-child(2) { animation-delay: .22s; }
.js .facts.is-visible .facts__item:nth-child(3) { animation-delay: .34s; }

/* ---- Service cards ---- */
.js .card.reveal { transform: translateY(34px) scale(.985); --card-img: 1.14; }
.js .card.is-visible { transform: none; --card-img: 1; }
@media (hover: hover) { .js .card.is-visible:hover { --card-img: 1.07; } }

/* the 01/02/03 badge flips down onto the image */
.js .card__num { opacity: 0; transform: translateY(-12px) rotateX(-90deg); }
.js .card.is-visible .card__num {
  opacity: 1;
  transform: none;
  transition: opacity .4s var(--ease) .45s, transform .6s var(--ease) .45s;
}

/* Service icons act out their own trade when they scroll into view.
   `backwards` fill means the element returns to its resting CSS afterwards,
   so the existing hover animations still work. */

/* 01 — export: leaves grow from the stem, then the shipping arc draws */
.js .card.is-visible .ico--agri .ico__leaf  { animation: leafGrow .8s var(--ease) .35s backwards; }
.js .card.is-visible .ico--agri .ico__leaf2 { animation: leafGrow .8s var(--ease) .48s backwards; }
.js .card.is-visible .ico--agri .ico__arc,
.js .card.is-visible .ico--agri .ico__tip   { animation: routeDraw 1.1s var(--ease) .6s backwards; }
@keyframes leafGrow  { from { transform: scale(.15); } to { transform: scale(1); } }
@keyframes routeDraw { from { stroke-dashoffset: 62; opacity: .2; } to { stroke-dashoffset: 0; opacity: .55; } }

/* 02 — office: the desk extends, then text appears on the screen */
.js .card.is-visible .ico--office .ico__desk { animation: deskOut .7s var(--ease) .35s backwards; }
.js .card.is-visible .ico--office .ico__glow { animation: typeIn .9s var(--ease) .55s backwards; }
@keyframes deskOut { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes typeIn  { from { stroke-dashoffset: 22; } to { stroke-dashoffset: 0; } }

/* 03 — parts: the cog turns over, like an engine catching */
.js .card.is-visible .ico--parts .ico__cog { animation: cogStart 1.5s var(--ease) .35s backwards; }
@keyframes cogStart { from { transform: rotate(-170deg); } to { transform: rotate(0); } }

/* ---- Why choose us: each icon performs its own promise ---- */
.js .value.is-visible .ico--shield .ico__check { animation: checkDraw .8s var(--ease) .35s backwards; }
@keyframes checkDraw { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }

.js .value.is-visible .ico--award .ico__medal { animation: medalIn .7s var(--ease) .3s backwards; }
.js .value.is-visible .ico--award .ico__star  { animation: starIn .9s var(--ease) .45s backwards; }
@keyframes medalIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes starIn  { from { transform: rotate(-150deg) scale(.2); } to { transform: none; } }

/* the map pin actually drops and settles */
.js .value.is-visible .ico--pin .ico__pinbody { animation: pinDrop 1s var(--ease) .3s backwards; }
.js .value.is-visible .ico--pin .ico__pindot  { animation: medalIn .5s var(--ease) .8s backwards; }
@keyframes pinDrop {
  0%   { transform: translateY(-190%); opacity: 0; }
  45%  { opacity: 1; }
  60%  { transform: translateY(9%); }
  78%  { transform: translateY(-4%); }
  100% { transform: none; }
}

/* the delivery truck drives in, wheels turning */
.js .value.is-visible .ico--truck .ico__body,
.js .value.is-visible .ico--truck .ico__cab   { animation: driveIn .9s var(--ease) .3s backwards; }
.js .value.is-visible .ico--truck .ico__wheel { animation: wheelRoll .9s var(--ease) .3s backwards; }
@keyframes driveIn   { from { transform: translateX(-170%); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes wheelRoll { from { transform: translateX(-170%) rotate(-540deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }

/* ---- Gallery: tiles rise and their photos settle out of a slow zoom ---- */
.js .gallery__item.reveal { transform: translateY(30px) scale(.965); --tile-img: 1.16; }
.js .gallery__item.is-visible { transform: none; --tile-img: 1; }
@media (hover: hover) { .js .gallery__item.is-visible:hover { --tile-img: 1.08; } }

.js .gallery__item .gallery__caption { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease) .35s, transform .5s var(--ease) .35s; }
.js .gallery__item.is-visible .gallery__caption { opacity: 1; transform: none; }
@media (hover: hover) {
  .js .gallery__item.is-visible:hover .gallery__caption { transform: translateY(-4px); }
}

/* ---- Contact: the icons behave like the channel they represent ---- */
.contact__ico { position: relative; }

/* address — a locator ring pulsing outward */
.contact__ico--pin::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1.5px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}
.js .contact__item.is-visible .contact__ico--pin::after { animation: locate 2.4s var(--ease) .9s 2; }
@media (hover: hover) { .contact__item:hover .contact__ico--pin::after { animation: locate 2.4s var(--ease) infinite; } }
@keyframes locate {
  0%        { transform: scale(1);   opacity: .75; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* mobile — the handset rings */
.js .contact__item.is-visible .contact__ico--phone svg { animation: ringShake 3.2s var(--ease) .7s 2; }
@media (hover: hover) { .contact__item:hover .contact__ico--phone svg { animation: ringShake 1.6s var(--ease) infinite; } }
@keyframes ringShake {
  0%, 32%, 100% { transform: rotate(0); }
  4%  { transform: rotate(-15deg); }
  9%  { transform: rotate(13deg); }
  14% { transform: rotate(-10deg); }
  19% { transform: rotate(8deg); }
  25% { transform: rotate(0); }
}

/* email — the envelope flap lifts */
.contact__ico--mail .ico__flap { transform-origin: 12px 6.5px; transition: transform .45s var(--ease); }
.js .contact__item.is-visible .contact__ico--mail .ico__flap { animation: flapOpen 2.2s var(--ease) 1s 1; }
@media (hover: hover) { .contact__item:hover .contact__ico--mail .ico__flap { transform: scaleY(-.7); } }
@keyframes flapOpen { 0%, 100% { transform: none; } 35%, 60% { transform: scaleY(-.7); } }

/* ---- Mobile menu: links slide in behind the panel ---- */
@media (max-width: 1023px) {
  .js .nav__list li,
  .js .nav__cta {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
  }
  .js .nav-open .nav__list li,
  .js .nav-open .nav__cta { opacity: 1; transform: none; }
  .js .nav-open .nav__list li:nth-child(1) { transition-delay: .10s; }
  .js .nav-open .nav__list li:nth-child(2) { transition-delay: .16s; }
  .js .nav-open .nav__list li:nth-child(3) { transition-delay: .22s; }
  .js .nav-open .nav__list li:nth-child(4) { transition-delay: .28s; }
  .js .nav-open .nav__list li:nth-child(5) { transition-delay: .34s; }
  .js .nav-open .nav__cta                  { transition-delay: .42s; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal { opacity: 1 !important; transform: none !important; }
  .dot, .hero__scroll span { animation: none !important; }
  .nav { transition: none; }

  /* Section 11: stop looping motion outright rather than running it fast */
  .ticker__track,
  .hero__media img,
  .btn::after,
  .contact__ico--pin::after,
  .contact__ico--phone svg,
  .contact__ico--mail .ico__flap,
  .hero__lines li,
  .facts__item,
  .card__num,
  .ico g, .ico path, .ico circle, .ico rect { animation: none !important; }

  /* Show split headlines and revealed content in their final state */
  .js [data-split="words"] .w > i { transform: none !important; }
  .js [data-split="words"] .w { overflow: visible; }
  .about__wipe { display: none !important; }
  .js .about__badge,
  .js .about__media::before,
  .js .card__num,
  .js .gallery__item .gallery__caption { opacity: 1 !important; transform: none !important; }
  .js .eyebrow::before { transform: scaleX(1) !important; }
  .js .nav__list li, .js .nav__cta { opacity: 1 !important; transform: none !important; }

  /* The ticker still reads as a list, it just holds still */
  .ticker__track { transform: none !important; }

  /* JS already skips the beams loop; this keeps the canvas invisible either way */
  .hero__beams { display: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav, .to-top, .hero__scroll, .map, .contact__form-wrap { display: none !important; }
  body { background: #fff; color: #000; }
  .section--navy { background: #fff !important; color: #000 !important; }
  .section--navy h2, .section--navy h3 { color: #000 !important; }
}
