/* =============================================
   TRIBODENS - GLOBAL STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy:        #0d1b4b;
  --blue:        #1e40af;
  --blue-mid:    #2563eb;
  --cyan:        #06b6d4;
  --grad:        linear-gradient(135deg, #1e40af 0%, #06b6d4 100%);
  --grad-hero:   linear-gradient(160deg, rgba(13,27,75,0.72) 0%, rgba(37,99,235,0.65) 100%);
  --white:       #ffffff;
  --off-white:   #f8f9fb;
  --gray-light:  #f1f3f7;
  --gray:        #6b7280;
  --gray-border: #e5e7eb;
  --dark:        #111827;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow:      0 6px 28px rgba(13,27,75,0.10);
  --shadow-lg:   0 12px 48px rgba(13,27,75,0.14);
  --transition:  0.22s ease;
  --max-w:       1140px;
  --font-main:    'Geist', sans-serif;
  --type-hero:    100px;
  --type-heading: 55px;
  --type-body:    20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); color: var(--dark); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 70px;
}

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 56px 0;
}

/* ---- GLOBAL TYPOGRAPHY: GEIST ---- */
body,
button,
input,
textarea,
select {
  font-family: var(--font-main);
}

/* Main page/hero headings */
h1,
.hero h1,
.page-hero h1 {
  font-family: var(--font-main) !important;
  font-size: var(--type-hero) !important;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -3px;
}

/* Section headings */
h2,
.consultancy-main-heading,
.software-intro-heading,
.facilities-heading,
.hardware-header h2,
.trl-header h2,
.trl46-section > .container > h2,
.phenix-header-copy h2,
.cta-banner h2,
.news-section h2,
.contact-section > .container > h2 {
  font-family: var(--font-main) !important;
  font-size: var(--type-heading) !important;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

/* Smaller component headings remain practical inside cards and lists */
h3 {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

h4,
h5 {
  font-family: var(--font-main);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

/* Standard website text */
p,
li,
label,
input,
textarea,
select,
button,
.btn,
.nav-links a,
.contact-info-item,
.footer-contact-line,
.footer-links a,
.footer-desc,
.footer-copy,
.step-box,
.test-footnote,
.hardware-header p,
.trl-eyebrow,
.trl-card p,
.trl46-card p,
.news-body p,
.cta-address,
.software-intro-description,
.software-solutions-list ul li,
.phenix-header-copy p,
.phenix-step-text p,
.demo-copy p,
.consultancy-label,
.consultancy-list li,
.facility-item {
  font-family: var(--font-main) !important;
  font-size: var(--type-body) !important;
}

p {
  color: var(--gray);
  line-height: 1.65;
}

/* Responsive type scale to prevent overflow */
@media (max-width: 1024px) {
  :root {
    --type-hero: 76px;
    --type-heading: 46px;
    --type-body: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --type-hero: 54px;
    --type-heading: 38px;
    --type-body: 17px;
  }

  h1,
  .hero h1,
  .page-hero h1 {
    letter-spacing: -1.5px;
  }
}

@media (max-width: 480px) {
  :root {
    --type-hero: 42px;
    --type-heading: 32px;
    --type-body: 16px;
  }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 28px; border-radius: 50px; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; border: none;
  transition: var(--transition); letter-spacing: 0.01em;
  font-family: 'Geist', sans-serif;
}
.btn-primary  { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.btn-outline  { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-outline-dark { background: transparent; border: 2px solid var(--blue-mid); color: var(--blue-mid); }
.btn-outline-dark:hover { background: var(--blue-mid); color: #fff; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 0;
  background: transparent;
}
.navbar.sticky {
  position: fixed;
  background: rgba(13,27,75,0.96);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
  transition: all 0.3s ease;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-family: 'Geist', sans-serif;
  font-size: 1.35rem; font-weight: 700;
}
.nav-logo img { height: 34px; width: auto; }
.nav-logo-icon {
  width: 34px; height: 34px;
  background: var(--grad);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.nav-logo-img { height: 34px; width: auto; }
.nav-logo span em { font-style: normal; font-weight: 400; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.85); font-size: 0.88rem;
  padding: 8px 16px; border-radius: 50px; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #fff; background: rgba(255,255,255,0.12);
}
.nav-links .nav-cta {
  background: var(--grad); color: #fff !important;
  margin-left: 4px;
}
.nav-links .nav-cta:hover { opacity: 0.88; background: var(--grad); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }

/* =============================================
   UNIFIED HERO SYSTEM — ALL PAGES
   ============================================= */

:root {
  --hero-edge: 22px;
  --hero-radius: 18px;
  --hero-height: 700px;
}

/* Keep the non-sticky navbar inside the rounded hero */
.navbar:not(.sticky) {
  top: var(--hero-edge);
  left: var(--hero-edge);
  right: var(--hero-edge);
}

/* Sticky navbar returns to the full browser width */
.navbar.sticky {
  top: 0;
  left: 0;
  right: 0;
}

/* Same hero shape, height and spacing on every page */
.hero,
.page-hero {
  position: relative;
  width: calc(100% - (var(--hero-edge) * 2));
  height: var(--hero-height);
  min-height: var(--hero-height);
  margin: var(--hero-edge);

  display: flex;
  align-items: flex-end;

  overflow: hidden;
  border-radius: var(--hero-radius);
  isolation: isolate;
}

/* Shared background layer */
.hero-bg,
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
  background-repeat: no-repeat;
}

/* Same purple-to-blue overlay on every page */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30,50,200,0.72) 0%, rgba(10,20,80,0.35) 100%);
}

/* Same bottom-left content location */
.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 130px;
  padding-bottom: 58px;
}

/* Large bold white star */
.hero-star,
.page-hero-star {
  display: block;
  margin: 0 0 24px;

  color: #ffffff;
  font-family: 'Geist', sans-serif;
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 0.78;

  -webkit-text-stroke: 1.5px #ffffff;
  text-shadow:
    1px 0 #ffffff,
    -1px 0 #ffffff,
    0 1px #ffffff,
    0 -1px #ffffff;
}

/* Same heading treatment */
.hero h1,
.page-hero h1 {
  max-width: 1100px;
  margin: 0;

  color: #ffffff;
  font-family: 'Geist', sans-serif;
  font-size: clamp(3.8rem, 6vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
}

/* Page-specific images — change only filenames when needed */
.home-hero {
  --hero-image: url('../images/Background (1).png');
  --hero-position: center top;
}

.software-hero {
  --hero-image: url('../images/software-intro.png');
  --hero-position: center;
}

.test-hero {
  --hero-image: url('../images/software-intro.png');
  --hero-position: center;
}

.consultancy-hero {
  --hero-image: url('../images/consultancy-hero.png');
  --hero-position: center;
}

.contact-hero {
  --hero-image: url('../images/consultancy-hero.png');
  --hero-position: center;
}

@media (max-width: 1024px) {
  :root {
    --hero-edge: 16px;
    --hero-height: 600px;
  }

  .hero-star,
  .page-hero-star {
    font-size: 4.6rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(3.2rem, 7vw, 4.8rem);
  }
}

@media (max-width: 768px) {
  :root {
    --hero-edge: 0px;
    --hero-height: 420px;
  }

  .navbar:not(.sticky) {
    top: 0;
    left: 0;
    right: 0;
  }

  .hero,
  .page-hero {
    width: 100%;
    margin: 0;
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
  }

  .hero-content,
  .page-hero-content {
    padding-top: 110px;
    padding-bottom: 42px;
  }

  .hero-star,
  .page-hero-star {
    margin-bottom: 18px;
    font-size: 3.8rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 3rem;
    letter-spacing: -1px;
  }
}

@media (max-width: 480px) {
  :root {
    --hero-height: 350px;
  }

  .hero-content,
  .page-hero-content {
    padding-top: 96px;
    padding-bottom: 34px;
  }

  .hero-star,
  .page-hero-star {
    font-size: 3.2rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }
}

/* =============================================
   ABOUT US
   ============================================= */
.about-section { background: #fff; }
.about-section h2 { margin-bottom: 18px; }
.about-section p  { max-width: 1050px;; margin-bottom: 28px; }

/* =============================================
   FIELD OF ACTIVITY
   ============================================= */
.field-section { background: #fff; }
.field-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.field-img { position: relative; }
.field-img img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius-lg); }
.field-text h2 { margin-bottom: 16px; }
.field-text p  { margin-bottom: 28px; }

/* =============================================
   TRL SECTION
   ============================================= */
/* =============================================
   TRL SECTION
   ============================================= */

.trl-section {
  background: #f7f7f7;
  padding: 52px 0 64px;
}

/* Section heading */
.trl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  margin-bottom: 46px;
  border-bottom: 1px solid #e5e7eb;
}

.trl-header h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  color: #050505;
}

.trl-eyebrow {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  color: #4b5563;
  margin-bottom: 8px;
}

/* Large star on right */
.trl-star {
  font-size: 4.5rem;
  color: #18bceb;
  line-height: 0.8;
  margin-top: 8px;
}

/* Cards grid */
.trl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Individual card */
.trl-card {
  position: relative;
  min-height: 286px;
  aspect-ratio: auto;
  padding: 30px 30px 24px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  overflow: hidden;
  transition: var(--transition);
}

.trl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(13, 27, 75, 0.08);
}

/* Active gradient card */
.trl-card.active {
  background: linear-gradient(
    135deg,
    #18d5e4 0%,
    #239be9 52%,
    #4338f5 100%
  );
  border-color: transparent;
}

/* TRL badge */
.trl-badge {
  position: absolute;
  top: 22px;
  right: 22px;

  min-width: 62px;
  height: 25px;
  padding: 0 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
}

.trl-card:not(.active) .trl-badge {
  background: #f4f5f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.trl-card.active .trl-badge {
  background: #ffffff;
  color: #111827;
}

/* Circular icon container */
.trl-icon {
  width: 92px;
  height: 92px;
  padding: 24px;
  margin: 0;

  background: #f7f7f7;
  border: 1px solid #e5e7eb;
  border-radius: 50%;

  object-fit: contain;
  color: #111827;
}

.trl-card.active .trl-icon {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
}

/* Use this if the icon is an inline SVG */
.trl-icon path,
.trl-icon line,
.trl-icon circle,
.trl-icon rect,
.trl-icon polyline {
  stroke: currentColor;
}

/* Push title and description to bottom */
.trl-card h4 {
  margin-top: auto;
  margin-bottom: 7px;

  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: #050505;
}

.trl-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #4b5563;
}

.trl-card.active h4 {
  color: #ffffff;
}

.trl-card.active p {
  color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   TRL RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .trl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trl-card {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .trl-section {
    padding: 44px 0 50px;
  }

  .trl-header {
    margin-bottom: 32px;
    padding-bottom: 22px;
  }

  .trl-header h2 {
    font-size: 2rem;
  }

  .trl-star {
    font-size: 3.2rem;
  }

  .trl-grid {
    grid-template-columns: 1fr;
  }

  .trl-card {
    min-height: 280px;
    padding: 26px 24px 22px;
  }

  .trl-icon {
    width: 82px;
    height: 82px;
    padding: 22px;
  }
}

/* =============================================
   HARDWARE SOLUTIONS
   ============================================= */
.hardware-section { background: #0a0e1a; }
.hardware-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hardware-section h2 { color: #fff; margin-bottom: 14px; }
.hardware-section .intro-text { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 16px; }
.hardware-list { padding-left: 0; margin-bottom: 16px; }
.hardware-list li {
  color: rgba(255,255,255,0.8); font-size: 0.86rem;
  padding: 5px 0 5px 18px; position: relative; line-height: 1.5;
}
.hardware-list li::before { content: '•'; position: absolute; left: 0; color: var(--cyan); font-size: 1.1rem; line-height: 1.4; }
.hardware-footnote { color: rgba(255,255,255,0.5); font-size: 0.78rem; margin-top: 14px; }
.hardware-img img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius-lg); }

/* =============================================
   TRL 4-6 GRID
   ============================================= */


.trl46-section {
  background: #ffffff;
  padding: 72px 0;
}

/* Section title */
.trl46-section > .container > h2 {
  max-width: 760px;
  margin: 0 0 46px;
  padding-bottom: 28px;

  border-bottom: 1px solid #e5e7eb;

  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  text-align: left;
  color: #050505;
}

/* Cards grid */
.trl46-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Card */
.trl46-card {
  position: relative;
  min-height: 286px;
  aspect-ratio: auto;

  padding: 30px 30px 24px;

  background: #f7f7f7;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  overflow: hidden;
  transition: var(--transition);
}

.trl46-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(13, 27, 75, 0.08);
}

/* Active gradient card */
.trl46-card.active {
  background: linear-gradient(
    135deg,
    #18d5e4 0%,
    #239be9 52%,
    #4338f5 100%
  );

  border-color: transparent;
}

/* TRL badge */
.trl46-badge {
  position: absolute;
  top: 22px;
  right: 22px;

  min-width: 62px;
  height: 25px;
  padding: 0 13px;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50px;

  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
}

.trl46-card:not(.active) .trl46-badge {
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.trl46-card.active .trl46-badge {
  background: #ffffff;
  color: #111827;
}

/* Circular icon area */
.trl46-icon {
  width: 92px;
  height: 92px;
  padding: 24px;
  margin: 0;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;

  object-fit: contain;
  color: #111827;
}

.trl46-card.active .trl46-icon {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
}

/* Inline SVG support */
.trl46-icon path,
.trl46-icon line,
.trl46-icon circle,
.trl46-icon rect,
.trl46-icon polyline {
  stroke: currentColor;
}

/* Push content to bottom */
.trl46-card h4 {
  margin-top: auto;
  margin-bottom: 7px;

  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: #050505;
}

.trl46-card p {
  margin: 0;

  font-size: 0.78rem;
  line-height: 1.5;
  color: #4b5563;
}

.trl46-card.active h4 {
  color: #ffffff;
}

.trl46-card.active p {
  color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .trl46-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trl46-card {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .trl46-section {
    padding: 56px 0;
  }

  .trl46-section > .container > h2 {
    margin-bottom: 32px;
    padding-bottom: 22px;
    font-size: 2rem;
  }

  .trl46-grid {
    grid-template-columns: 1fr;
  }

  .trl46-card {
    min-height: 280px;
    padding: 26px 24px 22px;
  }

  .trl46-icon {
    width: 82px;
    height: 82px;
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .trl46-section > .container > h2 {
    font-size: 1.7rem;
  }

  .trl46-card {
    min-height: 270px;
  }
}

/* News cards grid */
.news-grid {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 40px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* Perfect square card */
.news-card {
  width: 100%;
  aspect-ratio: 1 / 1;

  display: flex;
  flex-direction: column;

  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Image occupies the upper part of the square */
.news-card img {
  width: 100%;
  height: 58%;

  object-fit: cover;
  flex-shrink: 0;
}

/* Text area fills the remaining space */
.news-body {
  flex: 1;
  padding: 22px 24px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-body h3 {
  margin-bottom: 10px;

  font-size: 1rem;
  line-height: 1.3;
  color: var(--dark);
}

.news-body p {
  margin: 0;

  font-size: 0.82rem;
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 1024px) {
  .news-grid {
    max-width: 900px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .news-grid {
    max-width: 420px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-card {
    aspect-ratio: 1 / 1;
  }

  .news-body {
    padding: 20px;
  }
}

/* =============================================
   CTA BANNER
   ============================================= */

.cta-wrap {
  width: 100%;
  padding: 80px 50px 90px;
  background: #ffffff;
}

.cta-banner {
  width: 100%;
  max-width: 1500px;
  min-height: 360px;

  margin: 0 auto;
  padding: 64px 60px;

  background: linear-gradient(
    120deg,
    #2747bd 0%,
    #177fc6 52%,
    #10b8cf 100%
  );

  border-radius: 22px;
  overflow: hidden;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Main heading */
.cta-banner h2 {
  margin: 0 0 44px;
  color: #ffffff;
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
}

/* Bottom content row */
.cta-row {
  width: 100%;

  display: grid;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  align-items: center;
  gap: 38px;
}

/* Decorative star */
.cta-star {
  color: #ffffff;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-text-stroke: 1.5px #ffffff;
}

.cta-star svg {
  width: 88px;
  height: 88px;
}

.cta-star svg path,
.cta-star svg line,
.cta-star svg circle,
.cta-star svg polyline {
  stroke: #ffffff;
  stroke-width: 4;
  opacity: 1;
}

/* Address */
.cta-address {
  max-width: 540px;

  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.75;
}

/* Buttons area */
.cta-btns {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* CTA buttons */
.cta-btns .btn {
  min-width: 150px;
  min-height: 56px;

  padding: 14px 30px;

  border: 2px solid #ffffff;
  border-radius: 50px;

  color: #ffffff;
  background: transparent;

  font-size: 0.95rem;
  font-weight: 600;
}

.cta-btns .btn:hover {
  background: #ffffff;
  color: #187fc5;
  transform: translateY(-2px);
}

/* =============================================
   CTA RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .cta-wrap {
    padding: 70px 32px 80px;
  }

  .cta-banner {
    min-height: 340px;
    padding: 56px 44px;
  }

  .cta-row {
    grid-template-columns: auto 1fr;
    gap: 28px;
  }

  .cta-btns {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 88px;
  }
}

@media (max-width: 768px) {
  .cta-wrap {
    padding: 56px 20px 64px;
  }

  .cta-banner {
    min-height: auto;
    padding: 46px 28px;
    border-radius: 18px;
  }

  .cta-banner h2 {
    margin-bottom: 32px;
    font-size: 2.4rem;
  }

  .cta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .cta-star {
    font-size: 3.2rem;
  }

  .cta-address {
    max-width: 100%;
    font-size: 0.92rem;
  }

  .cta-btns {
    width: 100%;
    padding-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .cta-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cta-banner {
    padding: 38px 22px;
  }

  .cta-banner h2 {
    font-size: 2rem;
  }

  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btns .btn {
    width: 100%;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--gray-light); padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.footer-logo-text { font-family: 'Geist', sans-serif; font-weight: 700; font-size: 1.2rem; }
.footer-logo-text em { font-style: normal; font-weight: 400; }
.footer-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.footer-btns { display: flex; gap: 10px; }
.footer-col h4 { font-size: 0.84rem; font-weight: 700; margin-bottom: 16px; color: var(--dark); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.82rem; color: var(--gray); transition: var(--transition); }
.footer-links a:hover { color: var(--blue-mid); }
.footer-contact-line { font-size: 0.82rem; color: var(--gray); margin-bottom: 8px; line-height: 1.5; }
.footer-contact-line strong { display: block; color: var(--dark); margin-bottom: 2px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--gray-border);
}
.footer-copy { font-size: 0.79rem; color: var(--gray); }
.footer-copy a { color: var(--blue-mid); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--dark); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-links a:hover { background: var(--blue-mid); }
.social-links svg { width: 15px; height: 15px; fill: #fff; }


/* =============================================
   SOFTWARE SOLUTIONS INTRO
   ============================================= */

.software-intro {
  width: 100%;
  padding: 48px 0 72px;
  background: #ffffff;
}

.software-intro > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 50px;
  padding-right: 50px;
}

/* Heading above both columns */
.software-intro-heading {
  margin: 0 0 28px;

  color: #050505;
  font-family: 'Geist', sans-serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

/* Image and right content share the same row */
.software-intro-grid {
  width: 100%;

  display: grid;
  grid-template-columns: minmax(420px, 42%) minmax(0, 1fr);
  align-items: stretch;
  gap: 44px;
}

/* Left image */
.software-intro-image {
  width: 100%;
  height: 100%;
  min-height: 350px;

  overflow: hidden;
  border-radius: 12px;
}

.software-intro-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: 12px;
}

/* Right side has exactly the same height as the image */
.software-intro-content {
  width: 100%;
  height: 100%;
  min-height: 350px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top paragraph */
.software-intro-description {
  max-width: 760px;
  margin: 0;

  color: #525b6f;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* Lower heading and list group */
.software-solutions-list {
  margin-top: 24px;
}

.software-solutions-list h3 {
  margin: 0 0 18px;

  color: #050505;
  font-family: 'Geist', sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.software-solutions-list ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.software-solutions-list ul li {
  margin-bottom: 5px;

  color: #525b6f;
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.software-solutions-list ul li::marker {
  color: #525b6f;
  font-size: 0.7em;
}

/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1024px) {
  .software-intro > .container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .software-intro-grid {
    grid-template-columns: minmax(340px, 42%) minmax(0, 1fr);
    gap: 32px;
  }

  .software-intro-image,
  .software-intro-content {
    min-height: 380px;
  }

  .software-intro-heading {
    font-size: 38px;
  }

  .software-intro-description,
  .software-solutions-list ul li {
    font-size: 13px;
  }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {
  .software-intro {
    padding: 40px 0 56px;
  }

  .software-intro > .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .software-intro-heading {
    margin-bottom: 24px;
    font-size: 34px;
  }

  .software-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .software-intro-image {
    height: 280px;
    min-height: 0;
  }

  .software-intro-content {
    height: auto;
    min-height: 0;
  }

  .software-solutions-list {
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .software-intro > .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .software-intro-heading {
    font-size: 30px;
  }

  .software-intro-image {
    height: 220px;
  }

  .software-solutions-list h3 {
    font-size: 22px;
  }
}


/* =============================================
   TRIBODENS PHENIX TIMELINE
   ============================================= */

.phenix-timeline-section {
  width: 100%;
  padding: 34px 0 80px;
  background: #f8f8f8;
}

.phenix-timeline-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
}

/* =============================================
   HEADER
   ============================================= */

.phenix-timeline-header {
  width: 100%;
  margin-bottom: 64px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.phenix-header-copy h2 {
  margin: 0 0 8px;

  color: #111827;
  font-family: 'Geist', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.phenix-header-copy p {
  max-width: 570px;
  margin: 0;

  color: #596174;
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
}

.phenix-contact-btn {
  min-width: 122px;
  min-height: 40px;
  padding: 10px 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #4468ff 0%, #07b9d5 100%);
  border-radius: 50px;

  color: #ffffff;
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;

  transition: 0.22s ease;
}

.phenix-contact-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* =============================================
   TIMELINE
   ============================================= */

.phenix-timeline {
  position: relative;
  width: 100%;

  display: flex;
  flex-direction: column;
  gap: 82px;
}

/* Continuous vertical line */
.phenix-timeline::before {
  content: '';

  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;

  width: 1px;
  background: #1558ff;

  transform: translateX(-50%);
}

/* Timeline row */
.phenix-step {
  position: relative;
  width: 100%;
  min-height: 420px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: center;
}

/* Timeline dot */
.phenix-timeline-dot {
  position: absolute;
  left: 50%;
  z-index: 3;

  width: 18px;
  height: 18px;

  background: #0754e8;
  border-radius: 50%;

  transform: translate(-50%, -50%);
}

/* First dot at top */
.phenix-step-one .phenix-timeline-dot {
  top: 10px;
}

/* Second dot in the centre */
.phenix-step-two .phenix-timeline-dot {
  top: 50%;
}

/* Third dot at bottom */
.phenix-step-three .phenix-timeline-dot {
  top: calc(100% - 10px);
}

/* Grid positioning */
.phenix-left {
  grid-column: 1;
}

.phenix-right {
  grid-column: 3;
}

/* =============================================
   TEXT
   ============================================= */

.phenix-step-text {
  width: 100%;
  max-width: 370px;
}

.phenix-step-one .phenix-step-text {
  align-self: start;
  padding-top: 98px;
}

.phenix-step-two .phenix-step-text {
  justify-self: end;
}

.phenix-step-three .phenix-step-text {
  align-self: end;
  padding-bottom: 54px;
}

.phenix-step-number {
  display: block;
  margin-bottom: 36px;

  color: #0057ff;
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

.phenix-step-text p {
  margin: 0;

  color: #111111;
  font-family: 'Geist', sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.55;
}

.phenix-text-right {
  text-align: right;
}

/* =============================================
   IMAGES
   ============================================= */

.phenix-step-image {
  width: 100%;
  max-width: 430px;

  overflow: hidden;
  border-radius: 10px;
}

.phenix-step-image img {
  display: block;

  width: 100%;
  aspect-ratio: 1 / 1.03;

  object-fit: cover;
  object-position: center;
}

.phenix-step-one .phenix-step-image {
  align-self: start;
}

.phenix-step-two .phenix-step-image {
  justify-self: start;
}

.phenix-step-three .phenix-step-image {
  align-self: end;
  justify-self: end;
}

/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1024px) {
  .phenix-timeline-container {
    padding: 0 32px;
  }

  .phenix-step {
    min-height: 360px;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  .phenix-step-image {
    max-width: 360px;
  }

  .phenix-step-text {
    max-width: 320px;
  }

  .phenix-step-text p {
    font-size: 0.86rem;
  }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {
  .phenix-timeline-section {
    padding: 44px 0 60px;
  }

  .phenix-timeline-container {
    padding: 0 20px;
  }

  .phenix-timeline-header {
    margin-bottom: 44px;
    flex-direction: column;
    gap: 22px;
  }

  .phenix-timeline {
    gap: 52px;
    padding-left: 28px;
  }

  /* Timeline moves to the left */
  .phenix-timeline::before {
    left: 7px;
  }

  .phenix-step {
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .phenix-timeline-dot,
  .phenix-step-one .phenix-timeline-dot,
  .phenix-step-two .phenix-timeline-dot,
  .phenix-step-three .phenix-timeline-dot {
    top: 7px;
    left: -21px;
  }

  .phenix-step-text,
  .phenix-step-image {
    width: 100%;
    max-width: 100%;
  }

  .phenix-step-one .phenix-step-text,
  .phenix-step-three .phenix-step-text {
    padding: 0;
  }

  .phenix-text-right {
    text-align: left;
  }

  .phenix-step-number {
    margin-bottom: 18px;
  }

  /* Maintain alternating order */
  .phenix-step-two .phenix-step-image {
    order: 2;
  }

  .phenix-step-two .phenix-step-text {
    order: 1;
  }

  .phenix-step-image img {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  .phenix-timeline-container {
    padding: 0 18px;
  }

  .phenix-header-copy h2 {
    font-size: 2rem;
  }

  .phenix-step-text p {
    font-size: 0.84rem;
  }
}

/* =============================================
   DEMOS SECTION
   ============================================= */

.demos-section {
  width: 100%;
  padding: 72px 0;
  background: #ffffff;
}

/* Dark main panel */
.demos-panel {
  position: relative;
  width: 100%;
  padding: 48px 42px 24px;

  background:
    radial-gradient(
      circle at 0% 100%,
      rgba(37, 99, 235, 0.10),
      transparent 28%
    ),
    #05070b;

  overflow: hidden;
}

/* Each demo row */
.demo-item {
  width: 100%;
  margin: 0;
  padding: 0 0 34px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.demo-item + .demo-item {
  padding-top: 34px;
}

.demo-item:last-child {
  padding-bottom: 24px;
  border-bottom: none;
}

/* Title sits above image and text */
.demo-title {
  max-width: 1050px;
  margin: 0 0 22px;

  color: #ffffff;
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.15;
}

/* Thumbnail and description */
.demo-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 38px;
}

/* Thumbnail */
.demo-thumb {
  position: relative;
  display: block;

  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.demo-thumb img {
  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;

  object-fit: cover;
  object-position: center;
}

/* Remove the old full-image overlay */
.demo-thumb::after {
  display: none;
}

/* Circular play button */
.demo-play {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #19c5ea;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;

  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1;

  transform: translate(-50%, -50%);
  transition: 0.22s ease;
}

.demo-thumb:hover .demo-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #0aa8d0;
}

/* Description */
.demo-copy {
  width: 100%;
  max-width: 600px;
}

.demo-copy p {
  margin: 0 0 16px;

  color: rgba(255, 255, 255, 0.72);
  font-family: 'Geist', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.65;
}

.demo-copy p:last-child {
  margin-bottom: 0;
}

/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1024px) {
  .demos-panel {
    padding: 42px 32px 20px;
  }

  .demo-content {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
  }

  .demo-copy p {
    font-size: 0.8rem;
  }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {
  .demos-section {
    padding: 56px 0;
  }

  .demos-panel {
    padding: 34px 24px 16px;
  }

  .demo-item {
    padding-bottom: 30px;
  }

  .demo-item + .demo-item {
    padding-top: 30px;
  }

  .demo-title {
    margin-bottom: 18px;
    font-size: 1.35rem;
  }

  .demo-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .demo-copy {
    max-width: 100%;
  }

  .demo-copy p {
    font-size: 0.84rem;
  }
}

/* =============================================
   SMALL MOBILE
   ============================================= */

@media (max-width: 480px) {
  .demos-panel {
    padding: 28px 18px 12px;
  }

  .demo-title {
    font-size: 1.15rem;
  }

  .demo-play {
    width: 46px;
    height: 46px;
    font-size: 0.95rem;
  }
}


/* =============================================
   SOFTWARE PAGE RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {

  .software-intro-grid,
  .phenix-item,
  .demo-item {
    gap: 40px;
  }
}

@media (max-width: 768px) {

  .software-intro-grid,
  .phenix-item,
  .phenix-item.reverse,
  .demo-item {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .phenix-item.reverse {
    direction: ltr;
  }

  .software-intro-grid img,
  .software-image-placeholder,
  .phenix-item img,
  .phenix-image-placeholder,
  .demo-thumb img,
  .demo-placeholder {
    height: 260px;
  }

  .phenix-items {
    margin-top: 42px;
    gap: 54px;
  }

  .demo-item {
    margin-bottom: 42px;
    padding-bottom: 42px;
  }
}

@media (max-width: 480px) {

  .software-intro-grid img,
  .software-image-placeholder,
  .phenix-item img,
  .phenix-image-placeholder,
  .demo-thumb img,
  .demo-placeholder {
    height: 220px;
  }
}

/* =============================================
   TEST SOLUTIONS PAGE
   ============================================= */
/* =============================================
   HARDWARE SOLUTIONS — UPDATED
   ============================================= */

.test-hardware {
  width: 100%;
  padding: 44px 0 72px;
  background: #ffffff;
}

/* Center the complete Hardware Solutions section */
.test-hardware > .container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 50px;
  padding-right: 50px;
}


/* =============================================
   SECTION HEADING
   ============================================= */

.hardware-header {
  margin: 0 0 32px;
}

.hardware-header h2 {
  margin: 0 0 10px;

  color: #0d1020;
  font-family: 'Geist', sans-serif;
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.7px;
}

.hardware-header p {
  margin: 0;

  color: #596174;
  font-family: 'Geist', sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* =============================================
   MAIN LAYOUT
   ============================================= */

.test-grid {
  width: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(500px, 680px) minmax(420px, 520px);
  align-items: center;
  justify-content: center;

  gap: 64px;
}

/* =============================================
   LEFT COLUMN
   ============================================= */

.hardware-left {
  width: 100%;
  min-height: 520px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
}

.test-steps {
  position: relative;

  width: 100%;
  max-width: 590px;
  margin-left: auto;
  margin-right: auto;
}

.step-box {
  width: calc(100% - 160px);
  min-height: 110px;
  margin-left: 160px;
  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f2f2f3;
  border: 1px solid #e9e9eb;
  border-radius: 14px;

  color: #111111;
  font-family: 'Geist', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Continuous vertical line */
.test-steps::before {
  content: '';

  position: absolute;
  top: 55px;
  bottom: 55px;
  left: 90px;

  width: 1px;
  background: #1763ff;
}

/* Individual row */
.test-step {
  position: relative;

  width: 100%;
  min-height: 110px;
  margin: 0 0 20px;
}

.test-step:last-child {
  margin-bottom: 0;
}

/* Number circle */
.step-num {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 3;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #0754d5;
  border-radius: 50%;

  color: #ffffff;
  font-family: 'Geist', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;

  transform: translateY(-50%);
}

/* Hide an existing HTML dot, if present */
.step-dot {
  display: none;
}

/* Small dot on the vertical line */
.test-step::after {
  content: '';

  position: absolute;
  top: 50%;
  left: 87px;
  z-index: 3;

  width: 7px;
  height: 7px;

  background: #0754d5;
  border-radius: 50%;

  transform: translateY(-50%);
}



/* Footnote */
.test-footnote {
  width: 100%;
  max-width: 560px;
  margin: 44px 0 0;

  color: #596174;
  font-family: 'Geist', sans-serif;
  font-size: 20px;
  line-height: 1.65;
}

/* =============================================
   SQUARE IMAGE
   ============================================= */

.test-img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;

  justify-self: center;
  align-self: center;

  overflow: hidden;
  border-radius: 14px;
}

.test-img img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: 14px;
}

/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1100px) {
  .test-grid {
    grid-template-columns: minmax(430px, 1fr) minmax(360px, 460px);
    gap: 44px;
  }

  .hardware-left {
    min-height: 460px;
  }

  .test-steps::before {
    left: 72px;
  }

  .test-step::after {
    left: 69px;
  }

  .step-box {
    width: calc(100% - 125px);
    margin-left: 125px;
    padding: 18px 20px;
    font-size: 0.9rem;
  }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {
  .test-hardware {
    padding: 42px 0 56px;
  }

  .hardware-header {
    margin-bottom: 30px;
  }

  .hardware-header h2 {
    font-size: 2.3rem;
  }

  .test-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hardware-left {
    min-height: 0;
  }

  .test-steps {
    max-width: 100%;
  }

  .test-steps::before {
    left: 68px;
  }

  .test-step::after {
    left: 65px;
  }

  .step-box {
    width: calc(100% - 120px);
    margin-left: 120px;
  }

  .test-footnote {
    margin-top: 36px;
  }

  .test-img {
    width: min(100%, 520px);
    max-width: 520px;
    justify-self: start;
    aspect-ratio: 1 / 1;
  }
}

/* =============================================
   SMALL MOBILE
   ============================================= */

@media (max-width: 480px) {
  .hardware-header h2 {
    font-size: 2rem;
  }

  .test-step {
    min-height: 100px;
    margin-bottom: 16px;
  }

  .test-steps::before {
    top: 50px;
    bottom: 50px;
    left: 52px;
  }

  .step-num {
    width: 27px;
    height: 27px;
    font-size: 0.76rem;
  }

  .test-step::after {
    left: 49px;
  }

  .step-box {
    width: calc(100% - 88px);
    min-height: 100px;
    margin-left: 88px;
    padding: 16px;

    font-size: 0.82rem;
  }

  .test-footnote {
    font-size: 0.78rem;
  }
}


/* =============================================
   FACILITIES SECTION
   ============================================= */
.facilities-section {
  width: 100%;
  padding: 58px 0 80px;
  background: #f5f5f5;
}

.facilities-section > .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* HEADING */
.facilities-heading {
  max-width: 1080px;
  margin: 0 0 36px;
  color: #0d1020;
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-align: left;
}

/* TWO-COLUMN LAYOUT */
.facilities-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 32px;
}

/* =============================================
   OVERLAPPING IMAGE COLLAGE
   ============================================= */

.facility-collage {
  position: relative;

  width: 100%;
  max-width: 620px;
  height: 620px;

  overflow: visible;
}

/* Shared image styling */
.facility-photo {
  position: absolute;
  display: block;
  margin: 0;

  object-fit: cover;
  object-position: center;

  box-sizing: border-box;
  border-radius: 18px;
}

/* Large top image */
.facility-photo-main {
  top: 0;
  right: 0;
  z-index: 1;

  width: 92%;
  height: 54%;

  border: 0;
}

/* Large bottom-left image */
.facility-photo-left {
  top: 47%;
  left: 0;
  z-index: 2;

  width: 54%;
  height: 53%;

  border: 6px solid #f5f5f5;
}

/* Bottom-right image */
.facility-photo-right {
  top: 54%;
  right: 0;
  bottom: auto;
  z-index: 3;

  width: 53%;
  height: 46%;

  border: 6px solid #f5f5f5;
}

/* RIGHT LIST CARD */
.facility-list-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e4e4e6;
  border-radius: 14px;
  padding: 8px 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* Each row */
.facility-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e7;
  color: #111111;
  font-family: 'Geist', sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
}

.facility-item:last-child {
  border-bottom: none;
}

/* Circular icon */
.facility-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f1;
  border-radius: 50%;
  color: #697181;
  flex-shrink: 0;
}

.facility-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* TABLET */
@media (max-width: 1024px) {
  .facilities-layout { gap: 24px; }
  .facility-collage { height: 440px; }
}

/* MOBILE */
@media (max-width: 768px) {
  .facilities-layout { grid-template-columns: 1fr; }
  .facility-collage { height: 420px; }
  .facilities-section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .facility-collage { height: 340px; }
  .facilities-heading { font-size: 1.7rem; }
}


/* =============================================
   CONSULTANCY INTRO
   ============================================= */

.consultancy-intro {
  background: #ffffff;
}

.consultancy-intro h2.consultancy-main-heading {
  width: 100%;
  max-width: 1250px;
  margin: 0 0 54px;

  color: #0d1020;
  font-family: 'Geist', sans-serif;
  font-size: clamp(2.6rem, 3.4vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1px;
  text-align: left;
}

.consultancy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 56px;
}

.consultancy-intro p {
  margin-bottom: 16px;
}

.consultancy-list {
  padding-left: 20px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  list-style: disc;
}

.consultancy-list li {
  color: var(--gray);
  font-size: 0.87rem;
  line-height: 1.6;
}

.consultancy-img img {
  width: 100%;
  height: 380px;

  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1024px) {

  .consultancy-grid {
    gap: 40px;
  }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {

  .consultancy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =============================================
   SMALL MOBILE
   ============================================= */

@media (max-width: 480px) {
}
/* =============================================
   CONSULTANCY INTRO
   ============================================= */

.consultancy-intro {
  width: 100%;
  padding: 54px 0 72px;
  background: #f7f7f7;
}

/* Same spacing as the rest of the website */
.consultancy-intro > .container {
  width: 100%;
  max-width: none;
  margin: 0;

  padding-left: var(--page-padding, 50px);
  padding-right: var(--page-padding, 50px);
}

/* =============================================
   FULL-WIDTH HEADING
   ============================================= */

.consultancy-main-heading {
  width: 100%;
  max-width: none;
  margin: 0 0 54px;

  color: #0d1020;
  font-family: 'Geist', sans-serif;
  font-size: clamp(2.6rem, 3.4vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1px;
  text-align: left;
}

/* =============================================
   PARAGRAPH/LIST + IMAGE ROW
   ============================================= */

.consultancy-content-row {
  width: 100%;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: start;

  gap: 64px;
}

/* =============================================
   LEFT CONTENT
   ============================================= */

.consultancy-content {
  width: 100%;
  max-width: 690px;
}

.consultancy-label {
  margin: 0 0 26px;

  color: #596174;
  font-family: 'Geist', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
}

.consultancy-list {
  margin: 0;
  padding-left: 18px;

  display: flex;
  flex-direction: column;
  gap: 5px;

  list-style: disc;
}

.consultancy-list li {
  color: #525b6f;
  font-family: 'Geist', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.45;
}

.consultancy-list li::marker {
  color: #334155;
  font-size: 0.75em;
}

/* =============================================
   RIGHT IMAGE
   ============================================= */

.consultancy-image {
  width: 100%;
  height: 520px;

  overflow: hidden;
  border-radius: 16px;
}

.consultancy-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius: 16px;
}

/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1024px) {
  .consultancy-main-heading {
    margin-bottom: 42px;
    font-size: 3rem;
  }

  .consultancy-content-row {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 40px;
  }

  .consultancy-image {
    height: 340px;
  }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {
  .consultancy-intro {
    padding: 46px 0 58px;
  }

  .consultancy-main-heading {
    margin-bottom: 34px;

    font-size: 2.3rem;
    line-height: 1.12;
  }

  .consultancy-main-heading br {
    display: none;
  }

  .consultancy-content-row {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .consultancy-content {
    max-width: 100%;
  }

  .consultancy-label {
    font-size: 0.86rem;
  }

  .consultancy-list li {
    font-size: 0.82rem;
  }

  .consultancy-image {
    height: 300px;
  }
}

/* =============================================
   SMALL MOBILE
   ============================================= */

@media (max-width: 480px) {
  .consultancy-main-heading {
    font-size: 1.9rem;
  }

  .consultancy-image {
    height: 240px;
    border-radius: 12px;
  }

  .consultancy-image img {
    border-radius: 12px;
  }
}
/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section { background: #fff; }
.contact-section > .container > h2 { text-align: center; margin-bottom: 44px; }
.contact-box {
  background: var(--gray-light); border-radius: var(--radius-lg);
  padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
}
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-full { grid-column: 1/-1; }
.form-group label { display: block; font-size: 0.79rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group label span { color: #ef4444; margin-left: 2px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm); font-size: 0.86rem; color: var(--dark);
  background: #fff; transition: var(--transition); font-family: 'Geist', sans-serif;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(37,99,235,0.10); }
.form-group textarea { height: 120px; resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; font-size: 0.86rem; color: var(--gray); line-height: 1.5; }
.contact-info-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-mid); margin-top: 2px; }
.contact-map { border-radius: var(--radius); overflow: hidden; height: 180px; margin-top: 8px; }
.contact-map iframe { width: 100%; height: 100%; border: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .trl-grid, .trl46-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section  { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,27,75,0.97); padding: 16px 28px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; }
  .hamburger { display: flex; }


  .field-grid,
  .hardware-grid,
  .software-intro-grid,
  .phenix-item,
  .phenix-item.reverse,
  .demo-item,
  .test-grid,
  .facilities-grid,
  .consultancy-grid,
  .contact-box { grid-template-columns: 1fr; gap: 32px; }

  .phenix-item.reverse { direction: ltr; }

  .trl-grid,
  .trl46-grid,
  .news-grid { grid-template-columns: 1fr; }
  .trl-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  .cta-banner { padding: 40px 28px; margin: 0; }
  .cta-wrap { padding: 0 20px 56px; }
  .cta-btns { flex-wrap: wrap; }
  .cta-row  { gap: 20px; }

  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .contact-form { grid-template-columns: 1fr; }
  .contact-box  { padding: 28px 20px; }

  .facility-images { grid-template-columns: 1fr; }
  .facility-images img:first-child { height: 180px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  .cta-banner h2 { font-size: 1.7rem; }
  .container { padding: 0 18px; }
}


/* Force all main website content to start 50px from the left */
:root {
  --page-padding: 70px;
}

.container,
.nav-inner,
.hero-content,
.page-hero-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--page-padding) !important;
  padding-right: var(--page-padding) !important;
}

@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
  }
}


/* =============================================
   NEWS SECTION ALIGNMENT FIX
   ============================================= */

/* Add space between heading and cards */
.news-section > .container > h2 {
  width: 100%;
  max-width: 1500px;

  margin: 0 auto 48px !important;
  padding-bottom: 28px;

  border-bottom: 1px solid #e5e7eb;

  text-align: left;
}

/* Keep cards centered */
.news-grid {
  width: 100%;
  max-width: 1500px;

  margin: 0 auto 48px;
}

/* Center Learn More button */
.news-footer {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-top: 0;
  text-align: center;
}

.news-footer .btn {
  margin: 0 auto;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .news-section > .container > h2 {
    margin-bottom: 32px !important;
    padding-bottom: 22px;
  }

  .news-grid {
    margin-bottom: 36px;
  }
}

/* =============================================
   GLOBAL WEBSITE LEFT AND RIGHT SPACING
   ============================================= */

:root {
  --page-padding: 50px;
}

.container,
.nav-inner,
.hero-content,
.page-hero-content,
.phenix-timeline-container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.trl46-section > .container > h2,
.trl46-grid,
.news-section > .container > h2,
.news-grid,
.phenix-section > .container > h2,
.phenix-section > .container > p,
.phenix-items,
.demo-item {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.cta-wrap {
  width: 100%;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.cta-banner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 1024px) {
  :root {
    --page-padding: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding: 18px;
  }
}

/* =============================================
   PHENIX IMAGE AND TEXT ALIGNMENT FIX
   ============================================= */

.phenix-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: start;
}

/* Give images and text the same width */
.phenix-step-text,
.phenix-step-image {
  width: 100%;
  max-width: 520px;

  margin: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;

  align-self: start !important;
}

/* Align everything in the left column */
.phenix-left {
  grid-column: 1;
  justify-self: start;
}

/* Align everything in the right column */
.phenix-right {
  grid-column: 3;
  justify-self: end;
}

/* Remove old different vertical positions */
.phenix-step-one .phenix-step-text,
.phenix-step-two .phenix-step-text,
.phenix-step-three .phenix-step-text,
.phenix-step-one .phenix-step-image,
.phenix-step-two .phenix-step-image,
.phenix-step-three .phenix-step-image {
  align-self: start !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Keep the number spacing consistent */
.phenix-step-number {
  margin-top: 0;
  margin-bottom: 24px;
}

/* Right-side text remains right aligned */
.phenix-text-right {
  text-align: right;
}

/* Mobile */
@media (max-width: 768px) {
  .phenix-step-text,
  .phenix-step-image {
    max-width: 100%;
  }

  .phenix-text-right {
    text-align: left;
  }
}
/* Reduce gap between Demos and CTA */
.demos-section {
  padding-bottom: 30px;
}

.cta-wrap {
  padding-top: 30px;
}


/* =============================================
   HARDWARE SECTION FINAL ADJUSTMENTS
   ============================================= */

/* Bring the image closer to the left content */
.test-grid {
  width: 100%;

  display: grid;
  grid-template-columns: minmax(480px, 620px) 500px;
  justify-content: start;
  align-items: start;

  gap: 38px;
}

/* Left side matches the square image height */
.hardware-left {
  width: 100%;
  min-height: 500px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Make the main heading slightly larger */
.hardware-header h2 {
  font-size: clamp(2.6rem, 3.7vw, 3.6rem);
}

/* Make the subtitle slightly larger */
.hardware-header p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Slightly larger number circles */
.step-num {
  width: 30px;
  height: 30px;

  font-size: 0.85rem;
}

/* Centre all text inside the grey boxes */
.step-box {
  min-height: 110px;
  padding: 20px 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  font-size: 1rem;
  line-height: 1.5;
}

/* Make the footnote slightly larger */
.test-footnote {
  max-width: 580px;

  font-size: 0.84rem;
  line-height: 1.65;
}

/* Keep the image perfectly square */
.test-img {
  width: 500px;
  max-width: 100%;
  aspect-ratio: 1 / 1;

  justify-self: start;

  overflow: hidden;
  border-radius: 14px;
}

/* Image fills the square */
.test-img img {
  display: block;

  width: 100%;
  height: 100%;
  min-height: 0;

  object-fit: cover;
  object-position: center;

  border-radius: 14px;
}

/* =============================================
   TABLET
   ============================================= */

@media (max-width: 1100px) {
  .test-grid {
    grid-template-columns: minmax(420px, 1fr) 430px;
    gap: 28px;
  }

  .hardware-left {
    min-height: 430px;
  }

  .test-img {
    width: 430px;
  }

  .step-box {
    padding: 18px 20px;
    font-size: 0.92rem;
  }

  .hardware-header p {
    font-size: 0.86rem;
  }

  .test-footnote {
    font-size: 0.8rem;
  }
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 768px) {
  .test-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hardware-left {
    min-height: 0;
  }

  .step-box {
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
  }

  .test-img {
    width: min(100%, 500px);
    aspect-ratio: 1 / 1;
    justify-self: start;
  }

  .hardware-header p {
    font-size: 0.84rem;
  }

  .test-footnote {
    font-size: 0.8rem;
  }
}

/* =============================================
   SMALL MOBILE
   ============================================= */

@media (max-width: 480px) {
  .step-box {
    padding: 15px;
    font-size: 0.82rem;
  }

  .hardware-header p {
    font-size: 0.8rem;
  }

  .test-footnote {
    font-size: 0.76rem;
  }
}

/* Move hardware image slightly to the right */
.test-img {
  transform: translateX(150px);
}

/* Remove the shift on smaller screens */
@media (max-width: 1024px) {
  .test-img {
    transform: translateX(0);
  }
}

/* =========================================================
   FINAL RESPONSIVE SYSTEM
   Desktop, laptop, tablet and mobile
   Keep this block as the final section of the stylesheet.
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 320px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
p,
li,
a,
span,
label {
  overflow-wrap: anywhere;
}

:root {
  --page-padding: clamp(50px, 4.25vw, 82px);
  --section-space: 88px;
  --type-hero: 70px;
  --type-heading: 45px;
  --type-body: 20px;
}

.container,
.nav-inner,
.hero-content,
.page-hero-content,
.phenix-timeline-container,
.test-hardware > .container,
.software-intro > .container,
.consultancy-intro > .container {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: var(--page-padding) !important;
  padding-right: var(--page-padding) !important;
}

.section {
  padding: var(--section-space) 0;
}

.hero h1,
.page-hero h1 {
  max-width: min(1100px, 92vw);
}

.nav-inner {
  gap: 28px;
}

.nav-links {
  flex-wrap: nowrap;
}

.nav-links a {
  white-space: nowrap;
}

/* Flexible desktop grids */
.field-grid,
.hardware-grid,
.software-intro-grid,
.consultancy-content-row,
.contact-box,
.facilities-layout,
.demo-content,
.test-grid {
  min-width: 0;
}

.field-grid > *,
.hardware-grid > *,
.software-intro-grid > *,
.consultancy-content-row > *,
.contact-box > *,
.facilities-layout > *,
.demo-content > *,
.test-grid > * {
  min-width: 0;
}

.news-card,
.trl-card,
.trl46-card,
.contact-box,
.cta-banner,
.demos-panel {
  max-width: 100%;
}

/* Remove the old forced hardware image offset */
.test-img {
  transform: translateX(90px) !important;
}

/* Large desktop */
@media (min-width: 1441px) {
  :root {
    --page-padding: clamp(64px, 4.5vw, 90px);
  }

  .nav-inner {
    max-width: none;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 1200px;
  }

  .news-grid,
  .cta-banner {
    max-width: none;
  }
}

/* Laptop and small desktop */
@media (max-width: 1280px) {
  :root {
    --page-padding: 42px;
    --section-space: 76px;
    --type-hero: 82px;
    --type-heading: 48px;
    --type-body: 18px;
    --hero-height: 610px;
  }

  .nav-inner {
    padding-left: 42px !important;
    padding-right: 42px !important;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 16px !important;
  }

  .field-grid,
  .hardware-grid {
    gap: 44px;
  }

  .trl-grid,
  .trl46-grid {
    gap: 16px;
  }

  .news-grid {
    gap: 22px;
  }

  .test-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr) !important;
    gap: 36px !important;
  }

  .test-img {
    width: 100% !important;
    max-width: 500px !important;
    justify-self: end !important;
  }

  .facilities-section > .container {
    max-width: none;
  }

  .facilities-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  }

  .consultancy-content-row {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
    gap: 44px;
  }

  .contact-box {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 38px;
  }
}

/* Tablet landscape and compact laptop */
@media (max-width: 1024px) {
  :root {
    --page-padding: 32px;
    --section-space: 64px;
    --type-hero: 68px;
    --type-heading: 44px;
    --type-body: 18px;
    --hero-edge: 16px;
    --hero-height: 540px;
  }

  .section-sm {
    padding: 44px 0;
  }

  .navbar {
    padding: 14px 0;
  }

  .nav-inner {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .nav-logo img,
  .nav-logo-img {
    height: 31px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 14px !important;
  }

  .hero-content,
  .page-hero-content {
    padding-top: 110px;
    padding-bottom: 48px;
  }

  .hero-star,
  .page-hero-star {
    font-size: 4.3rem;
  }

  .field-grid,
  .hardware-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .field-img img,
  .hardware-img img {
    height: clamp(300px, 36vw, 380px);
  }

  .trl-grid,
  .trl46-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .trl-card,
  .trl46-card {
    min-height: 300px;
  }

  .software-intro-grid {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
  }

  .software-intro-image,
  .software-intro-content {
    min-height: 360px;
  }

  .phenix-timeline-container {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .phenix-step {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    min-height: 350px;
  }

  .phenix-step-image {
    max-width: 350px;
  }

  .phenix-step-text {
    max-width: 315px;
  }

  .demo-content {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
  }

  .test-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px) !important;
    gap: 28px !important;
  }

  .hardware-left {
    min-height: 430px !important;
  }

  .test-img {
    width: 100% !important;
    max-width: 430px !important;
  }

  .step-box {
    font-size: 17px !important;
  }

  .facilities-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: 24px;
  }

  .facility-collage {
    height: 520px;
  }

  .facility-list-card {
    padding: 8px 16px;
  }

  .consultancy-content-row {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.9fr);
    gap: 34px;
  }

  .consultancy-image {
    height: 380px;
  }

  .contact-box {
    padding: 36px;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 32px;
  }

  .cta-wrap {
    padding: 60px 32px 72px;
  }

  .cta-banner {
    min-height: 320px;
    padding: 48px 40px;
  }

  .cta-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cta-btns {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

/* Switch navigation before it becomes crowded */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
    position: relative;
    z-index: 102;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: var(--page-padding);
    right: var(--page-padding);
    z-index: 101;

    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    background: rgba(13, 27, 75, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    font-size: 16px !important;
  }

  .nav-links .nav-cta {
    margin: 4px 0 0;
  }
}

/* Tablet portrait and mobile */
@media (max-width: 768px) {
  :root {
    --page-padding: 20px;
    --section-space: 54px;
    --type-hero: 52px;
    --type-heading: 36px;
    --type-body: 17px;
    --hero-edge: 0px;
    --hero-height: 430px;
    --hero-radius: 16px;
  }

  html {
    font-size: 16px;
  }

  .section-sm {
    padding: 38px 0;
  }

  .navbar:not(.sticky),
  .navbar.sticky {
    left: 0;
    right: 0;
  }

  .navbar:not(.sticky) {
    top: 0;
  }

  .nav-inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .nav-links {
    left: 20px;
    right: 20px;
  }

  .hero,
  .page-hero {
    width: 100%;
    margin: 0;
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
  }

  .hero-content,
  .page-hero-content {
    padding-top: 100px;
    padding-bottom: 38px;
  }

  .hero-star,
  .page-hero-star {
    margin-bottom: 16px;
    font-size: 3.6rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    line-height: 1;
    letter-spacing: -1.5px;
  }

  .field-grid,
  .hardware-grid,
  .software-intro-grid,
  .consultancy-content-row,
  .contact-box,
  .facilities-layout,
  .demo-content,
  .test-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .field-grid > *,
  .hardware-grid > *,
  .software-intro-grid > *,
  .consultancy-content-row > *,
  .contact-box > *,
  .facilities-layout > *,
  .demo-content > *,
  .test-grid > * {
    width: 100%;
    max-width: 100%;
  }

  .field-img img,
  .hardware-img img {
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: 420px;
    aspect-ratio: 4 / 3;
  }

  .trl-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
  }

  .trl-grid,
  .trl46-grid,
  .news-grid {
    grid-template-columns: 1fr !important;
  }

  .trl-card,
  .trl46-card {
    min-height: 280px;
    aspect-ratio: auto;
  }

  .news-grid {
    width: 100%;
    max-width: 520px;
  }

  .news-card {
    aspect-ratio: auto;
    min-height: 0;
  }

  .news-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .software-intro {
    padding: 46px 0 56px;
  }

  .software-intro-image,
  .software-intro-content {
    height: auto;
    min-height: 0;
  }

  .software-intro-image img {
    aspect-ratio: 4 / 3;
  }

  .software-solutions-list {
    margin-top: 28px;
  }

  .phenix-timeline-section {
    padding: 48px 0 58px;
  }

  .phenix-timeline-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .phenix-timeline-header {
    flex-direction: column;
    margin-bottom: 42px;
    gap: 20px;
  }

  .phenix-timeline {
    padding-left: 28px;
    gap: 48px;
  }

  .phenix-timeline::before {
    left: 7px;
  }

  .phenix-step {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .phenix-timeline-dot,
  .phenix-step-one .phenix-timeline-dot,
  .phenix-step-two .phenix-timeline-dot,
  .phenix-step-three .phenix-timeline-dot {
    top: 7px;
    left: -21px;
  }

  .phenix-step-text,
  .phenix-step-image {
    width: 100%;
    max-width: none;
  }

  .phenix-step-one .phenix-step-text,
  .phenix-step-two .phenix-step-text,
  .phenix-step-three .phenix-step-text {
    padding: 0 !important;
    justify-self: auto;
    align-self: auto;
  }

  .phenix-text-right {
    text-align: left;
  }

  .phenix-step-two .phenix-step-text {
    order: 1;
  }

  .phenix-step-two .phenix-step-image {
    order: 2;
  }

  .phenix-step-image img {
    aspect-ratio: 4 / 3;
  }

  .demos-section {
    padding: 48px 0;
  }

  .demos-panel {
    padding: 30px 20px 14px;
  }

  .demo-content {
    display: grid;
  }

  .demo-thumb img {
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .test-hardware {
    padding: 46px 0 56px;
  }

  .hardware-left {
    min-height: 0 !important;
  }

  .test-steps {
    max-width: 100%;
  }

  .test-step {
    min-height: 108px;
  }

  .test-steps::before {
    left: 62px;
  }

  .test-step::after {
    left: 59px;
  }

  .step-box {
    width: calc(100% - 108px) !important;
    min-height: 108px;
    margin-left: 108px !important;
    padding: 18px !important;
    font-size: 16px !important;
  }

  .test-footnote {
    margin-top: 30px;
  }

  .test-img {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    justify-self: start !important;
    aspect-ratio: 1 / 1;
  }

  .facilities-section {
    padding: 48px 0 58px;
  }

  .facilities-section > .container {
    width: 100%;
    max-width: none;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .facility-collage {
    width: min(100%, 600px);
    max-width: 600px;
    height: min(calc(100vw - 40px), 560px);
    margin: 0 auto;
  }

  .facility-list-card {
    width: 100%;
    height: auto;
  }

  .facility-item {
    min-height: 64px;
  }

  .consultancy-intro {
    padding: 48px 0 58px;
  }

  .consultancy-main-heading,
  .consultancy-intro h2.consultancy-main-heading {
    max-width: 100%;
    margin-bottom: 36px;
  }

  .consultancy-content {
    max-width: 100%;
  }

  .consultancy-image {
    width: 100%;
    height: auto;
  }

  .consultancy-image img {
    aspect-ratio: 4 / 3;
  }

  .contact-section > .container > h2 br {
    display: none;
  }

  .contact-box {
    padding: 28px 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .form-group input,
  .form-group textarea {
    min-height: 50px;
  }

  .form-group textarea {
    min-height: 140px;
  }

  .contact-map {
    height: 240px;
  }

  .cta-wrap {
    padding: 48px 20px 58px;
  }

  .cta-banner {
    min-height: 0;
    padding: 38px 24px;
    border-radius: 18px;
  }

  .cta-banner h2 {
    margin-bottom: 28px;
  }

  .cta-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cta-star {
    font-size: 3.4rem;
  }

  .cta-address {
    max-width: 100%;
  }

  .cta-address br {
    display: none;
  }

  .cta-btns {
    width: 100%;
    padding-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cta-btns .btn {
    min-width: 140px;
  }

  .footer {
    padding: 50px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --page-padding: 16px;
    --section-space: 46px;
    --type-hero: 40px;
    --type-heading: 30px;
    --type-body: 16px;
    --hero-height: 360px;
  }

  .nav-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .nav-links {
    left: 16px;
    right: 16px;
    padding: 14px;
  }

  .nav-logo img,
  .nav-logo-img {
    max-width: 175px;
    height: 29px;
  }

  .hero-content,
  .page-hero-content {
    padding-top: 92px;
    padding-bottom: 30px;
  }

  .hero-star,
  .page-hero-star {
    font-size: 3rem;
  }

  .trl-header {
    flex-direction: column;
  }

  .trl-star {
    font-size: 3rem;
  }

  .trl-card,
  .trl46-card {
    min-height: 260px;
    padding: 24px 20px 20px;
  }

  .trl-icon,
  .trl46-icon {
    width: 76px;
    height: 76px;
    padding: 20px;
  }

  .news-body {
    padding: 18px;
  }

  .phenix-timeline-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .phenix-timeline {
    padding-left: 24px;
  }

  .test-step {
    min-height: 96px;
    margin-bottom: 14px;
  }

  .test-steps::before {
    top: 48px;
    bottom: 48px;
    left: 48px;
  }

  .test-step::after {
    left: 45px;
  }

  .step-num {
    width: 26px;
    height: 26px;
    font-size: 12px !important;
  }

  .step-box {
    width: calc(100% - 78px) !important;
    min-height: 96px;
    margin-left: 78px !important;
    padding: 14px !important;
    font-size: 15px !important;
  }

  .facility-collage {
    height: min(calc(100vw - 32px), 440px);
  }

  .facility-photo {
    border-radius: 13px;
  }

  .facility-photo-left,
  .facility-photo-right {
    border-width: 4px;
  }

  .facility-list-card {
    padding: 6px 14px;
  }

  .facility-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
  }

  .facility-icon {
    width: 36px;
    height: 36px;
  }

  .consultancy-image img {
    aspect-ratio: 1 / 0.78;
  }

  .contact-box {
    padding: 22px 16px;
  }

  .contact-info-item {
    align-items: flex-start;
  }

  .cta-banner {
    padding: 32px 20px;
  }

  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btns .btn,
  .footer-btns .btn {
    width: 100%;
  }

  .footer-btns {
    flex-direction: column;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  :root {
    --page-padding: 14px;
    --type-hero: 36px;
    --type-heading: 28px;
    --type-body: 15px;
  }

  .nav-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .nav-logo img,
  .nav-logo-img {
    max-width: 150px;
  }

  .hero-star,
  .page-hero-star {
    font-size: 2.7rem;
  }

  .step-box {
    width: calc(100% - 70px) !important;
    margin-left: 70px !important;
    padding: 12px !important;
    font-size: 14px !important;
  }

  .test-steps::before {
    left: 42px;
  }

  .test-step::after {
    left: 39px;
  }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* STARS */
.hero-star,
.page-hero-star {
  width: 48px;
  height: 48px;
  display: block;
  margin-bottom: 16px;
}

.trl-star {
  width: 48px;
  height: 48px;
  display: block;
}

.cta-star {
  width: 56px;
  height: 56px;
  display: block;
  flex-shrink: 0;
}

.hero-star path,
.page-hero-star path {
  stroke: #ffffff;
  stroke-width: 3.5;
}


.cta-star path {
  stroke: rgba(255,255,255,0.5);
  stroke-width: 3.5;
}

.trl-star path {
  stroke: #2563eb;
  stroke-width: 3.5;
}
@media (max-width: 768px) {

  /* Fix facility list card position */
  .facility-list-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Fix test image position */
  .test-img {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    position: relative !important;
  }

  .test-img img {
    width: 100% !important;
    margin-left: 0 !important;
    left: 0 !important;
  }

  /* Prevent any horizontal overflow */
  .facilities-section,
  .test-hardware,
  .facilities-layout,
  .test-grid {
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .facilities-section .container,
  .test-hardware .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden !important;
  }
}
@media (max-width: 900px) {
  .test-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
}

@media (max-width: 768px) {
  .hardware-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .test-img {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 260px !important;
    transform: translateX(0) !important;
  }

  .test-img img {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
  }

  .hw-img {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 260px !important;
    transform: translateX(0) !important;
  }

  .hw-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    left: 0 !important;
    margin: 0 !important;
  }
}

@media (min-width: 901px) {
  .test-img {
    transform: translateX(160px) !important;
  }
}


/* FORCE FONT SIZES */
h1,
.hero h1,
.page-hero h1 {
  font-size: 90px !important;
}

h2,
.consultancy-main-heading,
.software-intro-heading,
.facilities-heading,
.hardware-header h2,
.trl-header h2,
.trl46-section > .container > h2,
.phenix-header-copy h2,
.cta-banner h2,
.news-section h2,
.contact-section > .container > h2 {
  font-size: 42px !important;
}

p, li, label, input, textarea,
.step-box, .test-footnote,
.cta-address, .facility-item,
.consultancy-list li,
.phenix-step-text p,
.demo-copy p {
  font-size: 18px !important;
}

@media (max-width: 1024px) {
  h1, .hero h1, .page-hero h1 { font-size: 72px !important; }
  h2 { font-size: 36px !important; }
}

@media (max-width: 768px) {
  h1, .hero h1, .page-hero h1 { font-size: 48px !important; }
  h2 { font-size: 30px !important; }
  p, li { font-size: 16px !important; }
}

@media (max-width: 480px) {
  h1, .hero h1, .page-hero h1 { font-size: 38px !important; }
  h2 { font-size: 26px !important; }
  p, li { font-size: 15px !important; }
}

/* REVERT FOOTER FONT SIZES */
.footer-desc {
  font-size: 18px !important;
}

.footer-links a {
  font-size: 18px !important;
}

.footer-contact-line {
  font-size: 18px !important;
}

.footer-contact-line strong {
  font-size: 18px !important;
}

.footer-copy {
  font-size: 18px !important;
}

.footer-grid > div > h4 {
  font-size: 18px !important;
}

.footer-btns .btn {
  font-size: 18px !important;
  padding: 11px 28px !important;
}

/* NAVBAR FONT SIZE */
.nav-links a {
  font-size: 18px !important;
}

.nav-links .nav-cta {
  font-size: 18px !important;
}

.nav-logo {
  font-size: 20px !important;
}
/* =============================================
   FORCE QUICK LINKS TO ALIGN WITH HEADING
   ============================================= */

.footer-grid > :nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

/* Heading */
.footer-grid > :nth-child(2) h4 {
  width: 100% !important;
  margin: 0 0 16px 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Links container */
.footer-grid > :nth-child(2) ul,
.footer-grid > :nth-child(2) .footer-links {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;

  list-style: none !important;
  text-align: left !important;
}

/* Individual links */
.footer-grid > :nth-child(2) li,
.footer-grid > :nth-child(2) a {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;

  align-self: flex-start !important;
  text-align: left !important;
  transform: none !important;
}

/* Space between links */
.footer-grid > :nth-child(2) li + li {
  margin-top: 12px !important;
}

/* =============================================
   TRIBODENS — PREMIUM ANIMATION SYSTEM
   ============================================= */

:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 0.8s;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* =============================================
   HEADER ENTRANCE
   ============================================= */

@keyframes navbarEntrance {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar:not(.sticky) .nav-inner {
  animation: navbarEntrance 0.85s var(--motion-ease) both;
}

/* Navigation hover */
.nav-links a {
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s var(--motion-ease),
    box-shadow 0.25s ease !important;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

.nav-links .nav-cta:hover {
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.25);
}

/* =============================================
   HERO ANIMATIONS
   ============================================= */

/* Slow, subtle hero background movement */
@keyframes heroBackgroundMove {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.06);
  }
}

.hero-bg,
.page-hero-bg {
  animation: heroBackgroundMove 14s ease-in-out infinite alternate;
  will-change: transform;
}

/* Hero heading entrance */
@keyframes heroHeadingEntrance {
  from {
    opacity: 0;
    transform: translateY(45px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.page-hero h1 {
  opacity: 0;
  animation: heroHeadingEntrance 1s 0.25s var(--motion-ease) forwards;
}

/* Star entrance and floating movement */
@keyframes heroStarEntrance {
  from {
    opacity: 0;
    transform: translateY(25px) rotate(-20deg) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes heroStarFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(8deg);
  }
}

.hero-star,
.page-hero-star {
  animation:
    heroStarEntrance 0.8s 0.05s var(--motion-ease) both,
    heroStarFloat 4.5s 1s ease-in-out infinite;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(38px);

  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);

  will-change: opacity, transform;
}

.reveal-on-scroll.from-left {
  transform: translateX(-45px);
}

.reveal-on-scroll.from-right {
  transform: translateX(45px);
}

.reveal-on-scroll.scale-in {
  transform: scale(0.94);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* =============================================
   CARD ANIMATIONS
   ============================================= */

.motion-card {
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease !important;
}

.motion-card.is-visible:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 18px 42px rgba(13, 27, 75, 0.13) !important;
}

/* =============================================
   IMAGE ANIMATIONS
   ============================================= */

.motion-image {
  overflow: hidden;
}

.motion-image img {
  transition: transform 0.85s var(--motion-ease);
  will-change: transform;
}

.motion-image:hover img {
  transform: scale(1.045);
}

/* =============================================
   BUTTON ANIMATIONS
   ============================================= */

.btn {
  position: relative;
  overflow: hidden;

  transition:
    transform 0.25s var(--motion-ease),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease !important;
}

.btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.18);
}

.btn:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Light movement passing through buttons */
.btn::after {
  content: "";

  position: absolute;
  top: -50%;
  left: -80%;

  width: 45%;
  height: 200%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );

  transform: rotate(18deg);
  transition: left 0.65s var(--motion-ease);
  pointer-events: none;
}

.btn:hover::after {
  left: 130%;
}

/* =============================================
   CTA ANIMATION
   ============================================= */

@keyframes ctaGradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.cta-banner {
  background-size: 180% 180% !important;
  animation: ctaGradientMove 10s ease infinite;
}

@keyframes ctaStarFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) rotate(10deg);
  }
}

.cta-star {
  animation: ctaStarFloat 4s ease-in-out infinite;
  transform-origin: center;
}

/* =============================================
   FOOTER INTERACTIONS
   ============================================= */

.footer-links a {
  position: relative;
  display: inline-block;

  transition:
    color 0.25s ease,
    transform 0.25s var(--motion-ease) !important;
}

.footer-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -3px;

  width: 0;
  height: 1px;

  background: var(--blue-mid);
  transition: width 0.3s var(--motion-ease);
}

.footer-links a:hover {
  transform: translateX(4px);
}

.footer-links a:hover::after {
  width: 100%;
}

.social-links a {
  transition:
    transform 0.3s var(--motion-ease),
    background-color 0.3s ease,
    box-shadow 0.3s ease !important;
}

.social-links a:hover {
  transform: translateY(-5px) rotate(4deg);
  box-shadow: 0 10px 22px rgba(13, 27, 75, 0.2);
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}