/* ==========================================================================
   Seofonyx Impex – main stylesheet
   Built on Bootstrap 5.3. Brand tokens first, then layout, then components.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --sx-ink: #0a1f26;          /* deep petrol – primary dark */
  --sx-petrol: #10343f;       /* mid petrol – secondary dark */
  --sx-petrol-2: #174654;
  --sx-gold: #f0b43c;         /* logo gold – accent */
  --sx-gold-dark: #d99a1e;
  --sx-sand: #f7f1e6;         /* warm pale background */
  --sx-steel: #c9d6de;        /* cool secondary accent */
  --sx-white: #ffffff;
  --sx-text: var(--sx-ink);
  --sx-muted: rgba(10, 31, 38, 0.62);
  --sx-line: rgba(10, 31, 38, 0.14);
  --sx-line-light: rgba(255, 255, 255, 0.16);

  --sx-font: "Inter Tight", "Segoe UI", Verdana, sans-serif;

  --sx-fs-display: clamp(3rem, 2rem + 5vw, 6rem);
  --sx-fs-h1: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
  --sx-fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --sx-fs-h3: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --sx-fs-h4: 1.375rem;
  --sx-fs-lead: 1.25rem;

  --sx-radius: 0.5rem;
  --sx-radius-lg: 0.75rem;
  --sx-gutter: clamp(1rem, 0.5rem + 2.2vw, 3rem);
  --sx-section: clamp(4rem, 3rem + 4vw, 7rem);
  --sx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sx-header-h: 84px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--sx-font);
  font-weight: 400;
  color: var(--sx-text);
  background: var(--sx-white);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sx-gold); color: var(--sx-ink); }

h1, h2, h3, h4, h5, h6,
.display-heading {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}
.display-heading { font-size: var(--sx-fs-display); line-height: 1; letter-spacing: -0.035em; }
.h1-size { font-size: var(--sx-fs-h1); }
.h2-size { font-size: var(--sx-fs-h2); }
.h3-size { font-size: var(--sx-fs-h3); }
.h4-size { font-size: var(--sx-fs-h4); }
.lead-text { font-size: var(--sx-fs-lead); line-height: 1.45; font-weight: 350; text-wrap: pretty; }
p { text-wrap: pretty; }
.text-muted-sx { color: var(--sx-muted); }
.text-gold { color: var(--sx-gold); }
img { max-width: 100%; height: auto; }
a { color: inherit; }

.sx-container {
  width: 100%;
  max-width: 88rem;
  margin-inline: auto;
  padding-inline: var(--sx-gutter);
}
.section { padding-block: var(--sx-section); }
.section-sm { padding-block: calc(var(--sx-section) * 0.6); }

/* themes */
.theme-dark { background: var(--sx-ink); color: var(--sx-white); }
.theme-petrol { background: var(--sx-petrol); color: var(--sx-white); }
.theme-sand { background: var(--sx-sand); }
.theme-dark .text-muted-sx,
.theme-petrol .text-muted-sx { color: rgba(255, 255, 255, 0.66); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sx-gold);
}

/* ---------- Buttons ---------- */
.btn-sx {
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 100vw;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: background-color .3s var(--sx-ease), color .3s var(--sx-ease), border-color .3s var(--sx-ease);
}
.btn-sx .bi { transition: transform .35s var(--sx-ease); }
.btn-sx:hover .bi { transform: translateX(4px); }
.btn-sx-gold { background: var(--sx-gold); color: var(--sx-ink); }
.btn-sx-gold:hover, .btn-sx-gold:focus-visible { background: var(--sx-gold-dark); color: var(--sx-ink); }
.btn-sx-dark { background: var(--sx-ink); color: var(--sx-white); }
.btn-sx-dark:hover, .btn-sx-dark:focus-visible { background: var(--sx-petrol-2); color: var(--sx-white); }
.btn-sx-outline { background: transparent; border-color: currentColor; color: inherit; }
.btn-sx-outline:hover, .btn-sx-outline:focus-visible { background: var(--sx-white); color: var(--sx-ink); border-color: var(--sx-white); }
.theme-sand .btn-sx-outline:hover, .bg-white .btn-sx-outline:hover { background: var(--sx-ink); color: var(--sx-white); border-color: var(--sx-ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--sx-line);
  transition: border-color .3s var(--sx-ease);
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow .bi { transition: transform .35s var(--sx-ease); }
.link-arrow:hover .bi { transform: translateX(4px); }
.theme-dark .link-arrow, .theme-petrol .link-arrow { border-color: var(--sx-line-light); }

.icon-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--sx-gold);
  color: var(--sx-ink);
  font-size: 1.15rem;
  text-decoration: none;
  transition: background-color .3s var(--sx-ease), transform .3s var(--sx-ease);
}
.icon-btn:hover { background: var(--sx-gold-dark); color: var(--sx-ink); transform: translateY(-2px); }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--sx-ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
}
.topbar .sx-container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar a { text-decoration: none; transition: color .2s; }
.topbar a:hover { color: var(--sx-gold); }
.topbar-links { display: flex; gap: 1.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--sx-ink);
  color: var(--sx-white);
  border-bottom: 1px solid var(--sx-line-light);
  transition: box-shadow .3s var(--sx-ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.site-header .sx-container { display: flex; align-items: center; justify-content: space-between; height: var(--sx-header-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.brand img { height: 56px; width: auto; }
.brand-name { font-size: 1.125rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1.1; }
.brand-name small { display: block; font-size: 0.7rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; opacity: .65; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav > li { position: relative; }
.main-nav .nav-link-sx {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  border-radius: 100vw;
  text-decoration: none;
  font-weight: 450;
  transition: background-color .25s var(--sx-ease);
}
.main-nav .nav-link-sx:hover,
.main-nav .nav-link-sx.active,
.main-nav .has-flyout:focus-within > .nav-link-sx { background: rgba(255, 255, 255, 0.08); }
.main-nav .nav-link-sx.active { color: var(--sx-gold); }
.main-nav .bi-chevron-down { font-size: .7rem; transition: transform .3s var(--sx-ease); }
.main-nav .has-flyout:hover .bi-chevron-down { transform: rotate(180deg); }

/* products flyout */
.flyout {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  width: min(44rem, 90vw);
  transform: translate(-50%, 8px);
  background: var(--sx-white);
  color: var(--sx-ink);
  border-radius: var(--sx-radius-lg);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  box-shadow: 0 24px 60px rgba(10, 31, 38, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--sx-ease), transform .3s var(--sx-ease), visibility .25s;
}
.flyout::before { content: ""; position: absolute; inset: -0.75rem 0 auto; height: 0.75rem; }
.has-flyout:hover .flyout,
.has-flyout:focus-within .flyout { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.flyout-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: var(--sx-radius);
  text-decoration: none;
  transition: background-color .2s;
}
.flyout-item:hover { background: var(--sx-sand); }
.flyout-item img { width: 4.5rem; height: 3.5rem; object-fit: cover; border-radius: 0.375rem; flex-shrink: 0; }
.flyout-item strong { display: block; font-weight: 500; }
.flyout-item span { font-size: 0.85rem; color: var(--sx-muted); line-height: 1.35; display: block; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border: 0;
  border-radius: 100vw;
  padding: 0.6rem 1.1rem;
  font-weight: 500;
}

/* mobile offcanvas menu */
.offcanvas.mobile-menu { background: var(--sx-ink); color: var(--sx-white); width: min(24rem, 100vw); }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--sx-line-light); }
.mobile-menu .btn-close { filter: invert(1); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu .m-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  font-size: 1.375rem;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--sx-line-light);
}
.mobile-menu .m-sub a { display: block; padding: 0.55rem 0 0.55rem 1rem; text-decoration: none; color: rgba(255, 255, 255, 0.75); }
.mobile-menu .m-sub a:hover { color: var(--sx-gold); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 2rem + 4vw, 6rem); padding-bottom: var(--sx-section); overflow: hidden; }
/* headline lines slide up out of a mask on load */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--sx-ease); }
.is-loaded .hero-title .line > span { transform: none; }
.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-title em { font-style: normal; color: var(--sx-gold); }
.hero-media {
  position: relative;
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
/* hero product slider – slides stack; the active one wipes up over the previous */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--sx-ease);
}
.hero-slide.is-prev { z-index: 1; clip-path: inset(0); transition: none; }
.hero-slide.is-active { z-index: 2; clip-path: inset(0); }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero-slide.is-active img { transform: scale(1.02); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 31, 38, 0.35) 0%, transparent 25%, transparent 50%, rgba(10, 31, 38, 0.85)); }
.hero-badge {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font-size: 0.9rem;
}
.hero-badge-text > * { display: block; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--sx-ease), transform .7s var(--sx-ease); }
.hero-badge-num { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-gold); margin-bottom: 0.35rem; }
.hero-badge strong { font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.hero-badge-text span:last-child { color: rgba(255, 255, 255, 0.75); }
.hero-badge .icon-btn { opacity: 0; transform: scale(0.6) rotate(-45deg); transition: opacity .5s var(--sx-ease), transform .6s var(--sx-ease), background-color .3s; }
.hero-slide.is-active .hero-badge-text > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-badge-text > :nth-child(1) { transition-delay: .45s; }
.hero-slide.is-active .hero-badge-text > :nth-child(2) { transition-delay: .55s; }
.hero-slide.is-active .hero-badge-text > :nth-child(3) { transition-delay: .65s; }
.hero-slide.is-active .hero-badge .icon-btn { opacity: 1; transform: none; transition-delay: .6s; }

.hero-progress {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.hero-progress button { height: 1.25rem; padding: 0; background: none; border: 0; display: flex; align-items: center; cursor: pointer; }
.hero-progress span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hero-progress span::after { content: ""; position: absolute; inset: 0; background: var(--sx-gold); transform: scaleX(0); transform-origin: left; }
.hero-progress button.is-done span::after { transform: scaleX(1); }
.hero-progress button.is-active span::after { animation: heroProgress var(--slide-time, 5.5s) linear forwards; }
[data-hero-slider].is-paused .hero-progress button.is-active span::after { animation-play-state: paused; }
@keyframes heroProgress { to { transform: scaleX(1); } }

.hero-nav { position: absolute; top: 3rem; right: 1.25rem; z-index: 3; display: flex; gap: 0.5rem; opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--sx-ease), transform .35s var(--sx-ease); }
.hero-media:hover .hero-nav, .hero-media:focus-within .hero-nav { opacity: 1; transform: none; }
.hero-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 31, 38, 0.35);
  backdrop-filter: blur(6px);
  color: var(--sx-white);
  display: grid;
  place-items: center;
  transition: background-color .25s, border-color .25s, color .25s;
}
.hero-nav-btn:hover { background: var(--sx-gold); border-color: var(--sx-gold); color: var(--sx-ink); }
@media (hover: none) { .hero-nav { opacity: 1; transform: none; } }

/* contact card (reused in hero & CTAs) */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem 1rem 1rem;
  background: var(--sx-white);
  color: var(--sx-ink);
  border-radius: var(--sx-radius-lg);
  max-width: 26rem;
}
.contact-card-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: var(--sx-radius);
  background: var(--sx-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-card-avatar img { width: 3rem; height: auto; }
.contact-card-body { flex: 1; min-width: 0; line-height: 1.3; }
.contact-card-body strong { display: block; font-weight: 500; }
.contact-card-body span { font-size: 0.875rem; color: var(--sx-muted); }
.contact-card-actions { display: flex; gap: 0.5rem; }
.contact-card .icon-btn { width: 2.75rem; height: 2.75rem; font-size: 1rem; }
.theme-sand .contact-card { box-shadow: 0 10px 30px rgba(10, 31, 38, 0.06); }

/* ---------- Product cards ---------- */
.intro-heading a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sx-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  transition: color .25s;
}
.intro-heading a:hover { color: var(--sx-gold-dark); }

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.product-card-media {
  position: relative;
  border-radius: var(--sx-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  background: var(--sx-sand);
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sx-ease); }
.product-card:hover .product-card-media img { transform: scale(1.06); }
.product-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sx-ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100vw;
}
.product-card-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--sx-gold);
  color: var(--sx-ink);
  display: grid;
  place-items: center;
  transform: translateY(0.75rem);
  opacity: 0;
  transition: opacity .35s var(--sx-ease), transform .35s var(--sx-ease);
}
.product-card:hover .product-card-arrow,
.product-card:focus-visible .product-card-arrow { opacity: 1; transform: translateY(0); }
.product-card h3 { font-size: var(--sx-fs-h4); font-weight: 500; margin-bottom: 0.4rem; }
.product-card p { color: var(--sx-muted); margin: 0; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--sx-line); padding-block: 1.5rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 350;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--sx-gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Help band ---------- */
.help-band { border-radius: var(--sx-radius-lg); padding: clamp(2rem, 1.5rem + 3vw, 4rem); }

/* ---------- Stats ---------- */
.stat-big { font-size: clamp(5rem, 3rem + 9vw, 11rem); font-weight: 300; letter-spacing: -0.05em; line-height: 0.9; }
.stat-big sup { font-size: 0.4em; top: -1.1em; color: var(--sx-gold); }
.stat-list { border-top: 1px solid var(--sx-line-light); }
.stat-item { padding-block: 1.5rem; border-bottom: 1px solid var(--sx-line-light); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.stat-item strong { font-size: var(--sx-fs-h3); font-weight: 400; letter-spacing: -0.02em; }
.stat-item span { color: rgba(255, 255, 255, 0.66); text-align: right; }

/* ---------- Industry cards ---------- */
.industry-card {
  height: 100%;
  border: 1px solid var(--sx-line);
  border-radius: var(--sx-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--sx-white);
  transition: border-color .3s var(--sx-ease), transform .4s var(--sx-ease), box-shadow .4s var(--sx-ease);
}
.industry-card:hover { border-color: var(--sx-gold); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(10, 31, 38, 0.08); }
.industry-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--sx-radius);
  background: var(--sx-sand);
  color: var(--sx-ink);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.industry-card-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sx-muted); }
.industry-card h3 { font-size: var(--sx-fs-h4); font-weight: 500; }
.industry-card p { color: var(--sx-muted); margin: 0; font-size: 0.975rem; }

/* ---------- Statement ---------- */
.statement-icons { display: flex; gap: 0.75rem; margin-bottom: 2rem; }
.statement-icons span {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid var(--sx-line);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--sx-gold-dark);
}
.statement-text { font-size: var(--sx-fs-h2); font-weight: 350; letter-spacing: -0.025em; line-height: 1.15; }
.statement-text .dim { color: rgba(10, 31, 38, 0.35); }

.pillar { border-top: 1px solid var(--sx-line); padding-top: 1.5rem; height: 100%; }
.pillar-label { font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sx-gold-dark); font-weight: 500; margin-bottom: 0.75rem; }
.pillar p { margin: 0; font-size: 1.125rem; }

/* ---------- Expertise (hover tabs) ---------- */
.expertise-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sx-line-light); }
.expertise-item { border-bottom: 1px solid var(--sx-line-light); }
.expertise-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
}
.expertise-num { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); width: 2rem; flex-shrink: 0; }
.expertise-title { font-size: var(--sx-fs-h3); font-weight: 350; letter-spacing: -0.02em; flex: 1; transition: color .3s; }
.expertise-trigger .bi { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--sx-ease); color: var(--sx-gold); font-size: 1.5rem; }
.expertise-item.is-active .expertise-title { color: var(--sx-gold); }
.expertise-item.is-active .bi { opacity: 1; transform: none; }
.expertise-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--sx-ease);
}
.expertise-body > div { overflow: hidden; }
.expertise-body p { padding: 0 0 1.5rem 3.25rem; margin: 0; color: rgba(255, 255, 255, 0.7); max-width: 38rem; }
.expertise-item.is-active .expertise-body { grid-template-rows: 1fr; }
.expertise-visual { position: relative; border-radius: var(--sx-radius-lg); overflow: hidden; aspect-ratio: 5 / 6; }
.expertise-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .6s var(--sx-ease), transform 1.2s var(--sx-ease);
}
.expertise-visual img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Steps ---------- */
.step-card {
  height: 100%;
  background: var(--sx-white);
  border-radius: var(--sx-radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.step-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--sx-ink);
  color: var(--sx-gold);
  display: grid;
  place-items: center;
  font-weight: 500;
}
.step-card-media { border-radius: var(--sx-radius); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 1.5rem; }
.step-card-media img { width: 100%; height: 100%; object-fit: cover; }
.step-card h3 { font-size: var(--sx-fs-h4); font-weight: 500; margin-bottom: 0.5rem; }
.step-card p { color: var(--sx-muted); margin: 0; }

/* ---------- Final CTA ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final-bg { position: absolute; inset: 0; }
.cta-final-bg img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.cta-final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 38, 0.94) 0%, rgba(10, 31, 38, 0.75) 55%, rgba(10, 31, 38, 0.35) 100%); }
.cta-final .sx-container { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sx-ink); color: rgba(255, 255, 255, 0.72); font-size: 0.975rem; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--sx-gold); }
.footer-top { padding-block: clamp(3.5rem, 3rem + 3vw, 6rem) 3rem; }
.footer-title { color: var(--sx-white); font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 1.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-big { font-size: var(--sx-fs-h2); color: var(--sx-white); font-weight: 350; letter-spacing: -0.025em; line-height: 1.1; }
.footer-contact li { display: flex; gap: 0.75rem; }
.footer-contact .bi { color: var(--sx-gold); margin-top: 0.15rem; }
.footer-bottom { border-top: 1px solid var(--sx-line-light); padding-block: 1.5rem; font-size: 0.875rem; }
.footer-bottom .sx-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--sx-ease), transform .9s var(--sx-ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* image wipe-in */
.reveal-clip { clip-path: inset(0 0 100% 0 round var(--sx-radius-lg)); transition: clip-path 1.2s var(--sx-ease); }
.reveal-clip.is-visible { clip-path: inset(0 0 0 0 round var(--sx-radius-lg)); }
.product-card-media.reveal-clip > img,
.step-card-media.reveal-clip > img { transform: scale(1.2); transition: transform 1.6s var(--sx-ease); }
.product-card-media.reveal-clip.is-visible > img,
.step-card-media.reveal-clip.is-visible > img { transform: scale(1); }
.product-card:hover .reveal-clip.is-visible > img { transform: scale(1.06); }

/* 3D tilt on product images */
[data-tilt] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--sx-ease), clip-path 1.2s var(--sx-ease); will-change: transform; }

/* spotlight that follows the pointer on industry cards */
.industry-card { position: relative; overflow: hidden; }
.industry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(240, 180, 60, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.industry-card:hover::before { opacity: 1; }
.industry-card > * { position: relative; }
.industry-card-icon { transition: background-color .3s, color .3s, transform .5s var(--sx-ease); }
.industry-card:hover .industry-card-icon { background: var(--sx-gold); transform: rotate(-8deg) scale(1.08); }

/* scroll-lit statement words */
[data-scroll-words] .w { color: rgba(10, 31, 38, 0.2); transition: color .4s; }
[data-scroll-words] .w.is-lit { color: var(--sx-ink); }

/* stat rows: gold line grows on hover */
.stat-item { position: relative; }
.stat-item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--sx-gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--sx-ease); }
.stat-item:hover::after { transform: scaleX(1); }
.stat-item strong { transition: color .3s, transform .4s var(--sx-ease); }
.stat-item:hover strong { color: var(--sx-gold); transform: translateX(6px); }

/* step number pops in */
.reveal.is-visible .step-number { animation: stepPop .8s var(--sx-ease) both; animation-delay: inherit; }
@keyframes stepPop { from { transform: scale(0) rotate(-180deg); } to { transform: none; } }
.step-card { transition: transform .5s var(--sx-ease), box-shadow .5s var(--sx-ease); }
.step-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10, 31, 38, 0.1); }

/* JS-driven marquee (scroll-velocity aware) */
.js-marquee .marquee-track { animation: none; will-change: transform; }

/* header hides on scroll down, returns on scroll up */
.site-header { transition: box-shadow .3s var(--sx-ease), transform .45s var(--sx-ease); }
.site-header.is-hidden { transform: translateY(-100%); }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--sx-gold); transform: scaleX(0); transform-origin: left; }

/* cursor follower */
.cursor-view {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1090;
  width: 5.5rem;
  height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
  border-radius: 50%;
  background: var(--sx-gold);
  color: var(--sx-ink);
  display: grid;
  place-items: center;
  font-weight: 500;
  pointer-events: none;
  transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(0);
  transition: transform .35s var(--sx-ease);
}
.cursor-view.is-on { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
.has-cursor-view [data-cursor="view"] { cursor: none; }
@media (hover: none) { .cursor-view { display: none; } }

/* back to top with progress ring */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1080;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--sx-ink);
  color: var(--sx-gold);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(10, 31, 38, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s var(--sx-ease), visibility .35s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 2; }
.to-top .to-top-ring { stroke: var(--sx-gold); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.to-top .bi { position: relative; transition: transform .3s var(--sx-ease); }
.to-top:hover .bi { transform: translateY(-3px); }

/* magnetic elements ease back */
[data-magnetic] { transition: transform .4s var(--sx-ease), background-color .3s var(--sx-ease), color .3s var(--sx-ease), border-color .3s var(--sx-ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-clip { clip-path: none; transition: none; }
  .reveal-clip > img, .hero-slide img { transform: none !important; transition: none; }
  .hero-title .line > span { transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-slide { transition: none; }
  .reveal.is-visible .step-number { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .main-nav, .header-actions .btn-sx { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 991.98px) {
  :root { --sx-header-h: 72px; }
  .brand img { height: 46px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .expertise-visual { aspect-ratio: 16 / 10; }
}
@media (max-width: 575.98px) {
  /* keep row gutters within the container padding so nothing overflows */
  .row.g-5 { --bs-gutter-x: 2rem; --bs-gutter-y: 2.5rem; }
  .topbar-links { display: none; }
  .topbar .sx-container { justify-content: center; }
  .brand-name small { display: none; }
  .contact-card { flex-wrap: wrap; }
  .stat-item { flex-direction: column; gap: 0.25rem; }
  .stat-item span { text-align: left; }
  .expertise-body p { padding-left: 0; }
  .btn-sx { width: 100%; justify-content: center; }
}
