/* ==========================================================================
   Chirist Trading Limited — main stylesheet
   Palette derived from the official logo:
     Royal blue (C + wordmark) · Signal red (arrow + bars) · deep navy ink
   ========================================================================== */

:root {
  --blue: #2B44A7;
  --blue-600: #24399A;
  --blue-700: #1C2E80;
  --blue-50: #EEF1FA;
  --red: #D42222;
  --red-700: #A11D22;
  --red-soft: #F2645E;
  --navy: #0A1230;
  --navy-2: #101B45;
  --ink: #0E1630;
  --text: #3F4864;
  --muted: #6A7390;
  --line: #E3E7F0;
  --surface: #F5F7FB;
  --white: #FFFFFF;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.eyebrow--light { color: rgba(255,255,255,.82); }

.section-title { font-size: clamp(34px, 4.6vw, 58px); max-width: 16ch; text-wrap: balance; }
.section-title em, .hero__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: var(--red);
}
.section-title--light { color: #fff; }
.section-title--light em { color: var(--red-soft); }

.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--text); max-width: 58ch; }
.lead--light { color: rgba(255,255,255,.78); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--center { text-align: center; }
.section-head--center .section-title, .section-head--center .lead { margin-inline: auto; }
.section-head--center .section-title { max-width: 24ch; margin-bottom: 20px; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  color: var(--fg); background: var(--bg);
  border: 1px solid transparent; border-radius: var(--radius);
  overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, var(--blue-700));
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(10,18,48,.45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { --bg: var(--blue); --hover: var(--blue-700); }
.btn--accent { --bg: var(--red); --hover: var(--red-700); }
.btn--ghost { --bg: transparent; --hover: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: #fff; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--blue);
  padding-bottom: 4px;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: background-size .4s var(--ease-out), color .3s;
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 2px; color: var(--ink); }
.link-arrow:hover span { transform: translateX(5px); }

.icon-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover, .icon-btn:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }

.i-play { display: none; }
.is-paused .i-pause { display: none; }
.is-paused .i-play { display: block; }
.i-play path { fill: currentColor; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: 14px;
  transition: padding .45s var(--ease);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--nav-h);
  background: rgba(255,255,255,.93);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 6px;
  max-width: calc(var(--container) - 0px);
  width: calc(100% - 2 * var(--gutter));
  padding-inline: 18px 14px;
  box-shadow: 0 10px 30px -18px rgba(5,10,30,.6);
  transition: height .45s var(--ease), width .45s var(--ease), max-width .45s var(--ease),
              border-radius .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
}
.nav.is-scrolled { padding-top: 0; }
.nav.is-scrolled .nav__inner {
  height: 68px;
  width: 100%; max-width: 100%;
  border-radius: 0;
  background: rgba(255,255,255,.98);
  border-color: transparent;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -14px rgba(10,18,48,.35);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
}
.nav__brand { display: flex; align-items: center; height: 100%; flex: none; }
.nav__brand img { height: 64px; width: auto; transition: height .45s var(--ease); }
.nav.is-scrolled .nav__brand img { height: 52px; }

.nav__menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__links { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__links a {
  position: relative; display: block; padding: 8px 0;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--blue); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 44px; padding: 10px 20px; font-size: 14px; }

.nav__toggle {
  display: none; position: relative; width: 46px; height: 46px;
  background: transparent; border: 0; padding: 0; border-radius: var(--radius);
}
.nav__toggle span {
  position: absolute; left: 11px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .4s var(--ease), opacity .25s, top .4s var(--ease), width .3s;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; width: 16px; }
.nav__toggle span:nth-child(3) { top: 28px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; width: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --nav-h: 70px; }
  .nav__brand img { height: 54px; }
  .nav.is-scrolled .nav__inner { height: 62px; }
  .nav.is-scrolled .nav__brand img { height: 46px; }
  /* backdrop-filter would trap the fixed full-screen menu inside the bar */
  .nav__inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.96); }
  .nav__toggle { display: block; z-index: 2; }
  .nav__menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: 100px var(--gutter) 48px;
    background: #fff;
    clip-path: circle(0 at calc(100% - 46px) 46px);
    visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s linear .6s;
  }
  .nav.is-open .nav__menu {
    clip-path: circle(150% at calc(100% - 46px) 46px);
    visibility: visible;
    transition: clip-path .7s var(--ease-out), visibility 0s;
  }
  .nav__links { flex-direction: column; gap: 4px; }
  .nav__links li { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease-out); }
  .nav.is-open .nav__links li { opacity: 1; transform: none; }
  .nav.is-open .nav__links li:nth-child(1) { transition-delay: .12s; }
  .nav.is-open .nav__links li:nth-child(2) { transition-delay: .17s; }
  .nav.is-open .nav__links li:nth-child(3) { transition-delay: .22s; }
  .nav.is-open .nav__links li:nth-child(4) { transition-delay: .27s; }
  .nav.is-open .nav__links li:nth-child(5) { transition-delay: .32s; }
  .nav.is-open .nav__links li:nth-child(6) { transition-delay: .37s; }
  .nav__links a { font-size: clamp(28px, 7vw, 40px); font-weight: 700; letter-spacing: -0.02em; padding: 4px 0; }
  .nav__links a::after { bottom: 0; }
  .nav__cta { min-height: 52px; padding: 14px 28px; font-size: 15px; }
  .nav__brand { position: relative; z-index: 2; }
  body.nav-locked { overflow: hidden; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 120px;
  color: #fff; overflow: hidden; isolation: isolate;
  background: var(--navy);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img {
  position: absolute; inset: -2%;
  background-size: cover; background-position: 62% 50%;
  animation: heroDrift 28s var(--ease) infinite alternate;
  will-change: transform;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,10,30,.35) 0%, rgba(5,10,30,0) 30%, rgba(5,10,30,0) 70%, rgba(5,10,30,.55) 100%);
}
@keyframes heroDrift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.0) translate3d(-1.5%, -1%, 0); }
}

.hero__routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.route {
  fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.4;
  stroke-dasharray: 6 10;
  animation: routeFlow 6s linear infinite;
}
.route--2 { stroke: rgba(242,100,94,.75); animation-duration: 5s; }
.route--3 { stroke: rgba(150,170,255,.5); animation-duration: 8s; animation-direction: reverse; }
@keyframes routeFlow { to { stroke-dashoffset: -160; } }
.node { fill: #fff; transform-box: fill-box; transform-origin: center; animation: nodePulse 3.2s var(--ease) infinite; }
.node--d1 { animation-delay: .8s; fill: var(--red-soft); }
.node--d2 { animation-delay: 1.6s; }
.node--d3 { animation-delay: 2.4s; }
@keyframes nodePulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50% { opacity: .35; transform: scale(1.9); }
}

.hero__content { position: relative; }
.hero__title {
  color: #fff; font-size: clamp(40px, 5.4vw, 78px); line-height: 1.02; font-weight: 800;
  letter-spacing: -0.035em; margin-bottom: 28px; max-width: 19ch;
  text-shadow: 0 2px 30px rgba(5,10,30,.35);
}
.hero__line { display: block; }
.hero__title em { color: var(--red-soft); font-size: 1.06em; }
.hero__lead { font-size: clamp(17px, 1.6vw, 21px); color: rgba(255,255,255,.86); text-shadow: 0 1px 16px rgba(5,10,30,.6); max-width: 44ch; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* entrance */
.hero__anim { opacity: 0; transform: translateY(26px); }
.is-loaded .hero__anim { animation: heroIn 1.1s var(--ease-out) forwards; }
.is-loaded .hero__anim:nth-child(1) { animation-delay: .15s; }
.is-loaded .hero__title .hero__anim:nth-child(1) { animation-delay: .3s; }
.is-loaded .hero__title .hero__anim:nth-child(2) { animation-delay: .45s; }
.is-loaded .hero__lead { animation-delay: .65s; }
.is-loaded .hero__actions { animation-delay: .8s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.hero__scroll-line { position: relative; width: 1px; height: 46px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff;
  animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue { to { top: 100%; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; aspect-ratio: 5 / 6; overflow: hidden; border-radius: var(--radius); }
.about__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.about__media.is-visible img { transform: scale(1); }
.about__media:hover img { transform: scale(1.04); }
.about__badge {
  position: absolute; left: 0; bottom: 0;
  background: #fff; color: var(--ink);
  padding: 16px 22px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  border-top: 3px solid var(--red);
}
.about__text .section-title { margin-bottom: 28px; }
.about__pillars {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px;
  border-top: 1px solid var(--line);
}
.about__pillars li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-weight: 700; color: var(--ink); font-size: 15.5px;
  display: flex; align-items: center; gap: 12px;
}
.about__pillars li::before { content: ""; width: 8px; height: 8px; background: var(--blue); transform: rotate(45deg); flex: none; }
.about__pillars li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }

/* ==========================================================================
   IMPORT & EXPORT FEATURES
   ========================================================================== */
.trade { background: var(--surface); }
.trade::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 100% 0%, rgba(43,68,167,.07), transparent 70%);
}
.trade__features { display: grid; gap: clamp(56px, 8vw, 110px); }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(32px, 6vw, 90px); }
.feature--reverse .feature__media { order: 2; }
.feature__media {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 7 / 5; background: var(--navy);
}
.feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 0 0 100%);
  transform: scale(1.12);
  transition: clip-path 1.3s var(--ease-out), transform 1.8s var(--ease-out);
}
.feature--reverse .feature__media img { clip-path: inset(0 100% 0 0); }
.feature.is-visible .feature__media img { clip-path: inset(0 0 0 0); transform: scale(1); }
.feature:hover .feature__media img { transform: scale(1.045); transition: transform 1.1s var(--ease-out), clip-path 1.3s var(--ease-out); }
.feature__media::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--red);
  transition: width .6s var(--ease-out);
}
.feature:hover .feature__media::after { width: 100%; }

.feature__body { position: relative; }
.feature__index {
  position: absolute; right: 0; top: -14px;
  font-family: var(--serif); font-style: italic; font-size: clamp(64px, 8vw, 110px); line-height: 1;
  color: rgba(43,68,167,.10);
}
.feature__icon {
  width: 52px; height: 52px; padding: 12px; margin-bottom: 26px;
  fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  border: 1px solid rgba(43,68,167,.25); border-radius: 50%;
  transition: background .4s, stroke .4s, transform .5s var(--ease);
}
.feature:hover .feature__icon { background: var(--blue); stroke: #fff; transform: rotate(-8deg); }
.feature__title { font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 16px; }
.feature__body p { max-width: 40ch; margin-bottom: 28px; }

/* ==========================================================================
   BRANDS — BANNER CAROUSEL
   ========================================================================== */
.brands { background: var(--navy); color: #fff; overflow: hidden; }
.brands::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(43,68,167,.45), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(212,34,34,.18), transparent 70%);
}
.brands .container { position: relative; }
.carousel__controls { display: flex; gap: 10px; }

.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: var(--radius); background: var(--navy-2); touch-action: pan-y;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px rgba(0,0,0,.7); }
.carousel__track {
  display: flex;
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.carousel.is-dragging .carousel__track { transition: none; }

.slide {
  position: relative; flex: 0 0 100%;
  aspect-ratio: 16 / 7; min-height: 360px;
  overflow: hidden; isolation: isolate;
}
.slide__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.slide.is-active .slide__img { transform: scale(1); }
.slide--overlay::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,11,32,.78) 0%, rgba(6,11,32,.45) 45%, rgba(6,11,32,0) 75%);
}
.slide__content {
  height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(28px, 6vw, 80px); max-width: 680px;
}
.slide__content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__content > *:nth-child(2) { transition-delay: .12s; }
.slide.is-active .slide__content > *:nth-child(3) { transition-delay: .22s; }
.slide.is-active .slide__content > *:nth-child(4) { transition-delay: .32s; }
.slide.is-active .slide__content > *:nth-child(5) { transition-delay: .42s; }
.slide__logo { max-height: 56px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: 22px; }
.slide__eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red-soft); margin-bottom: 14px; }
.slide__headline { color: #fff; font-size: clamp(28px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.slide__text { color: rgba(255,255,255,.82); font-size: clamp(15px, 1.4vw, 18px); max-width: 46ch; margin-bottom: 28px; }
.slide__cta { min-height: 48px; }
.slide__link { position: absolute; inset: 0; z-index: 1; }

.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.carousel__dot {
  position: relative; width: 44px; height: 24px; padding: 0; border: 0; background: transparent;
}
.carousel__dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.25);
}
.carousel__dot::after {
  content: ""; position: absolute; left: 0; top: 11px; height: 3px; width: 0; border-radius: 2px; background: #fff;
}
.carousel__dot[aria-current="true"]::after { width: 100%; }
.carousel.is-autoplay .carousel__dot[aria-current="true"]::after {
  width: 0; background: var(--red-soft);
  animation: dotProgress var(--interval, 6500ms) linear forwards;
}
.carousel.is-held .carousel__dot[aria-current="true"]::after { animation-play-state: paused; }
@keyframes dotProgress { to { width: 100%; } }

/* ==========================================================================
   PARTNERS — LOGO MARQUEE
   ========================================================================== */
.partners { background: #fff; padding-bottom: calc(var(--section-y) * .7); }
.marquee {
  position: relative; overflow: hidden;
  padding-block: 28px;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; width: max-content; align-items: center;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

.logo-item {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 116px; padding-inline: clamp(28px, 4vw, 56px);
  position: relative;
}
.logo-item::before {
  content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line);
}
.logo-item img {
  height: calc(76px * var(--s, 1)); width: auto; max-width: 300px; object-fit: contain;
  opacity: 1; transition: opacity .3s, transform .4s var(--ease);
}
.logo-item a { display: flex; align-items: center; border-radius: var(--radius); }
.logo-item:hover img, .logo-item a:focus-visible img { opacity: 1; transform: scale(1.05); }
.logo-item--dark .logo-tile { background: var(--ink); padding: 10px 18px; border-radius: var(--radius); display: flex; }

.marquee__footer { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.marquee__notice {
  margin: 0; font-size: 13px; font-weight: 600; color: var(--red-700);
  background: #FDF1F1; padding: 6px 12px; border-radius: var(--radius);
}
.pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .3s, background .3s;
}
.pill-btn:hover { border-color: var(--blue); background: var(--blue-50); }
.pill-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--surface); }
.testimonials__intro { max-width: 34ch; margin: 0; color: var(--muted); }
.testimonials__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.quote {
  position: relative; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 28px; border-top: 1px solid #D5DBE8;
}
.quote::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 3px; background: var(--red);
  transition: width .6s var(--ease-out);
}
.quote:hover::before { width: 100%; }
.quote__tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.quote__tag:empty { display: none; }
.quote__text { margin: 0; flex: 1; position: relative; padding-top: 22px; }
.quote__text::before {
  content: "\201C"; position: absolute; left: -4px; top: -34px;
  font-family: var(--serif); font-size: 96px; line-height: 1; color: rgba(43,68,167,.12);
  pointer-events: none;
}
.quote__text p {
  position: relative; margin: 0;
  font-family: var(--serif); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; color: var(--ink);
}
.quote__by { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.quote__by strong { display: block; color: var(--ink); font-size: 15.5px; }
.quote__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.quote__avatar--initials {
  display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .04em;
}
.quote:nth-child(3n+2) .quote__avatar--initials { background: var(--red); }
.quote:nth-child(3n) .quote__avatar--initials { background: var(--ink); }
.quote__sample {
  align-self: flex-start;
  font-size: 12px; font-weight: 700; color: var(--red-700);
  background: #FDF1F1; padding: 4px 10px; border-radius: var(--radius);
}
.quote--sample .quote__text p { color: var(--muted); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: linear-gradient(135deg, var(--navy) 0%, var(--blue-700) 120%); color: #fff; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -12%; top: -30%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 80px rgba(255,255,255,.02), 0 0 0 160px rgba(255,255,255,.015);
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact .section-title { margin-bottom: 24px; }
.contact__card {
  display: grid; gap: 6px; margin: 36px 0;
  padding: 24px 0 24px 22px; border-left: 3px solid var(--red);
  color: rgba(255,255,255,.82);
}
.contact__card strong { color: #fff; font-size: 19px; }
.contact__card a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.3); transition: border-color .3s; }
.contact__card a:hover { border-color: var(--red-soft); }
.contact__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.form {
  background: #fff; color: var(--text);
  padding: clamp(26px, 4vw, 44px); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
  border-top: 4px solid var(--red);
}
.form__title { font-size: 24px; margin-bottom: 24px; }
.form__row { display: grid; gap: 6px; margin-bottom: 18px; }
.form label { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43,68,167,.15);
}
.form [aria-invalid="true"] { border-color: var(--red); background: #FFF7F7; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form__status { font-size: 14px; font-weight: 600; margin: 10px 0 0; min-height: 1px; }
.form__status.is-error { color: var(--red-700); }
.form__status.is-success { color: #1E6B3A; }
.form__status.is-info { color: var(--blue-700); }
.form__status a { text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--surface); color: var(--text); padding-top: 64px; font-size: 15px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer__logo img { height: 76px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; margin: 0; }
.footer__brand strong { color: var(--ink); }
.footer__links { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; align-content: start; }
.footer__links a, .footer__contact a { color: var(--ink); font-weight: 600; transition: color .25s; width: fit-content; }
.footer__links a:hover, .footer__contact a:hover { color: var(--red); }
.footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 22px; font-size: 13.5px; color: var(--muted); }
.footer__bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--blue); color: #fff; border-radius: 50%;
  box-shadow: 0 10px 24px -10px rgba(10,18,48,.6);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s, transform .35s var(--ease), visibility 0s linear .35s, background .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s var(--ease), background .25s; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; max-height: 520px; }
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 110px; align-items: flex-end; }
  .hero__img { background-position: 72% 50%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(5,10,30,.35) 0%, rgba(5,10,30,.15) 25%, rgba(5,10,30,.72) 55%, rgba(5,10,30,.9) 100%); }
  .footer__bottom { padding-right: 80px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .slide { aspect-ratio: auto; min-height: 440px; }
  .slide--overlay::before { background: linear-gradient(180deg, rgba(6,11,32,.25) 0%, rgba(6,11,32,.85) 70%); }
  .slide__content { justify-content: flex-end; }
  .section-head--split { align-items: flex-start; }
  .carousel__controls { order: 2; }
  .logo-item { height: 92px; }
  .logo-item img { height: calc(58px * var(--s, 1)); max-width: 230px; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__pillars { grid-template-columns: 1fr; }
  .about__pillars li:nth-child(even) { padding-left: 0; border-left: 0; }
}
@media (max-width: 380px) {
  .nav__brand img { height: 46px; }
}

/* ==========================================================================
   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; transition-delay: 0s !important; }
  .hero__img { animation: none; transform: none; }
  .route, .node, .hero__scroll-line::after { animation: none !important; }
  .hero__anim { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .feature__media img { clip-path: none !important; transform: none !important; }
  .slide__img { transform: none !important; }
  /* Partner logos become a static, wrapped row */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .marquee__track [data-clone] { display: none; }
  .logo-item::before { display: none; }
}
.reduced-motion .marquee__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
.reduced-motion .marquee__track [data-clone] { display: none; }
