:root {
  --navy: #ffffff;
  --navy-mid: #f8fafc;
  --navy-light: #cbd5e1;
  --teal: #009688;
  --teal-dim: rgba(0, 150, 136, 0.08);
  --gold: #b25e00;
  --gold-dim: rgba(178, 94, 0, 0.08);
  --white: #1e293b;
  --slate: #475569;
  --slate-dark: #64748b;
  --glass: #ffffff;
  --glass-border: #e2e8f0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: all 0.4s ease;
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid #cbd5e1;
  height: 64px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Scroll progress bar */
#scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), #00c2a8, #ffd54f, #ff9100);
  z-index: 101;
  transition: width 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
  box-shadow: 0 1px 8px rgba(0, 194, 168, 0.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 38px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.scrolled .nav-logo-img {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: right;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--teal);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 194, 168, 0.3);
}

.mobile-cta-only {
  display: none;
  width: 100%;
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 8px rgba(0, 194, 168, 0.5));
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.82) 0%, rgba(0, 77, 70, 0.88) 100%),
    url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?q=80&w=1600') center/cover no-repeat;
  color: #ffffff;
}

#hero::before {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(rgba(0, 150, 136, 0.2), transparent 70%);
  pointer-events: none;
  animation: pulseGlowTeal 12s infinite alternate ease-in-out;
}

#hero .hero-h1 {
  color: #ffffff;
}

#hero .hero-sub {
  color: rgba(255, 255, 255, 0.9);
}

#hero .stat-number {
  color: #ffffff;
}

#hero .stat-number span {
  color: #ffffff;
}

#hero .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

#hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

#hero .btn-outline:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

#hero .btn-primary {
  background: #ffffff;
  color: #00796b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#hero .btn-primary:hover {
  background: #e0f2f1;
  color: #004d40;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#hero .hero-eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

#hero .hero-eyebrow::before {
  background: #ffffff;
}

#hero .scroll-ind {
  color: rgba(255, 255, 255, 0.7);
}

#hero .scroll-ind-line {
  background: linear-gradient(#ffffff, transparent);
}

#hero .stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

#hero .stat-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 194, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 168, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* ECG Line */
.ecg-container {
  position: absolute;
  bottom: 26%;
  left: 0;
  right: 0;
  height: 80px;
  overflow: hidden;
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
  animation: ecgFadeIn 1s ease 1.5s both;
}

.ecg-svg {
  width: 200%;
  height: 100%;
  animation: ecgScroll 5s linear infinite;
  filter: drop-shadow(0 0 5px rgba(0, 255, 223, 0.8)) drop-shadow(0 0 15px rgba(0, 255, 223, 0.4));
  transition: filter 0.5s ease;
}

#hero:hover .ecg-svg {
  animation-duration: 2.2s;
  filter: drop-shadow(0 0 8px rgba(0, 255, 223, 1)) drop-shadow(0 0 20px rgba(0, 255, 223, 0.6));
}

.ecg-svg polyline {
  stroke: #00ffdf !important;
  stroke-width: 2.5px !important;
}

@keyframes ecgScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  padding-top: 80px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text-wrapper {
  position: relative;
  top: -70px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-dim);
  border: 1px solid rgba(0, 194, 168, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-h1 em {
  font-style: normal;
  color: #ffb300;
  background: linear-gradient(120deg, #ffd54f 0%, #ff9100 25%, #fff176 50%, #ff9100 75%, #ffd54f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  width: fit-content;
  animation: textShimmer 4s linear infinite;
}

.hero-sub {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 0 30px rgba(0, 194, 168, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 194, 168, 0.45), 0 0 15px rgba(0, 194, 168, 0.2);
}

.btn-primary:hover::after {
  animation: btnShimmer 1.2s infinite;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.btn-outline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 150, 136, 0.05);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 194, 168, 0.15), 0 0 12px rgba(0, 194, 168, 0.1);
}

.btn-outline:hover::after {
  opacity: 1;
}

.btn-outline:active {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 20px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s;
  animation: floatCard 4s infinite alternate ease-in-out;
}

.stat-card:nth-child(1) {
  animation-delay: 0s;
}

.stat-card:nth-child(2) {
  animation-delay: -1s;
}

.stat-card:nth-child(3) {
  animation-delay: -2s;
}

.stat-card:nth-child(4) {
  animation-delay: -3s;
}

.stat-card:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(0, 194, 168, 0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  z-index: 2;
}

.stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.stat-card:nth-child(4)::before {
  background: linear-gradient(90deg, #8b5cf6, transparent);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--teal);
}

.stat-card:nth-child(2) .stat-number span {
  color: #ffffff;
}

.stat-card:nth-child(4) .stat-number span {
  color: #8b5cf6;
}

.stat-label {
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.stat-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  opacity: 0.15;
}

/* ── SCROLL INDICATOR ── */
.scroll-ind {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 2.5s both;
  z-index: 3;
}

.scroll-ind-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(var(--teal), transparent);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.3);
    opacity: 0.3;
  }
}

/* ── SECTIONS SHARED ── */
section {
  padding: 120px 5%;
  scroll-margin-top: 70px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--slate);
  max-width: 560px;
  line-height: 1.75;
}

#vision {
  background: var(--navy-mid);
  padding: 70px 5% 60px 5%;
}

.vision-grid {
  max-width: 800px;
  margin: 0 auto;
}

.vision-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.vision-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.9);
}

.vision-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 20px;
}

.vision-badge-val {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--teal);
}

.vision-badge-label {
  font-size: 12px;
  color: var(--slate);
  margin-top: 2px;
}

.vision-pillars {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  transition: all 0.3s;
  cursor: default;
}

.pillar:hover {
  border-color: rgba(0, 194, 168, 0.3);
  background: rgba(0, 194, 168, 0.05);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--teal-dim);
  color: var(--teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.pillar-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.6;
}

/* ── STRATEGY ── */
#strategy {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 40px 5% 20px 5%;
}

#strategy::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(var(--teal-dim), transparent 70%);
  pointer-events: none;
  animation: pulseGlowTeal 12s infinite alternate ease-in-out;
}

.strategy-header {
  max-width: 640px;
  margin-bottom: 16px;
}

.strategy-header .section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 10px;
}

.strategy-header .section-subtitle {
  font-size: 15px;
  line-height: 1.6;
}

.strategy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.s-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px 16px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.s-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 150, 136, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.s-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 150, 136, 0.3);
  box-shadow: 0 12px 25px rgba(0, 150, 136, 0.08);
}

.s-card:hover::after {
  opacity: 1;
}

.s-num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: block;
}

.s-card-icon {
  color: var(--teal);
  margin-bottom: 6px;
  display: inline-flex;
}

.s-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.25;
}

.s-card-text {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
}

#portfolio {
  background: var(--navy-mid);
  padding: 50px 5% 40px 5%;
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.port-item {
  flex: 1 1 calc(20% - 10px);
  /* 5 columns on desktop by default */
  min-width: 190px;
  max-width: 228px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.port-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 150, 136, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.port-item:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 150, 136, 0.4);
  box-shadow: 0 16px 35px rgba(0, 150, 136, 0.12), 0 0 25px rgba(0, 150, 136, 0.05);
  background: #ffffff;
}

.port-item:hover::before {
  opacity: 1;
}

.port-item:active {
  transform: translateY(-4px) scale(0.98);
}

.port-logo-wrap {
  height: 90px;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  margin-bottom: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  position: relative;
  z-index: 2;
}

.port-logo-wrap.dark-logo {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 12px;
}

.port-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.port-item:hover .port-logo-wrap {
  transform: scale(1.04);
}

.port-item:hover .port-logo-wrap:not(.dark-logo) {
  box-shadow: 0 10px 25px rgba(0, 150, 136, 0.2);
  background: #ffffff;
}

.port-item:hover .port-logo-wrap.dark-logo {
  border-color: rgba(0, 150, 136, 0.4);
  background: #0f172a;
}

.port-item:hover .port-logo-img {
  transform: scale(1.05);
}

.port-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--white);
  letter-spacing: 0.01em;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
  display: block;
}

.port-name::after {
  content: ' →';
  opacity: 0;
  display: inline-block;
  transform: translateX(-6px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  color: var(--teal);
}

.port-item:hover .port-name {
  color: var(--teal);
}

.port-item:hover .port-name::after {
  opacity: 1;
  transform: translateX(4px);
}

.port-desc {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.port-item:hover .port-desc {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

/* ── PORTFOLIO MODAL ── */
.port-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  padding: 20px;
}

.port-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.port-modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 30px rgba(0, 150, 136, 0.05);
  display: flex;
  flex-direction: column;
}

.port-modal-overlay.active .port-modal-card {
  transform: scale(1) translateY(0);
}

.port-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--slate);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.port-modal-close:hover {
  background: var(--teal);
  color: #ffffff;
  transform: rotate(90deg);
  border-color: var(--teal);
}

.port-modal-close:active {
  transform: scale(0.9) rotate(90deg);
}

.port-modal-header {
  padding: 40px 40px 20px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.modal-ecg-container {
  width: 100%;
  height: 48px;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
  background-image:
    linear-gradient(rgba(0, 150, 136, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 136, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.modal-ecg-svg {
  display: block;
  width: 200%;
  min-width: 200%;
  flex-shrink: 0;
  height: 100%;
  animation: modalEcgScroll 6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(0, 150, 136, 0.4));
}

.modal-ecg-svg polyline {
  stroke: #009688 !important;
  stroke-width: 2.5px !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes modalEcgScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.port-modal-logo-wrap {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.port-modal-logo-wrap.dark-logo {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 12px;
}

.port-modal-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.port-modal-title-area h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.port-modal-title-area p {
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.port-modal-body {
  padding: 30px 40px 40px 40px;
  flex: 1 1 auto;
  overflow-y: auto;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.75;
}

.port-modal-body p {
  margin-bottom: 20px;
}

.port-modal-body strong {
  color: var(--white);
}

.port-modal-body a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.3s;
  border-bottom: 1px dotted var(--teal);
}

.port-modal-body a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.port-modal-body::-webkit-scrollbar {
  width: 6px;
}

.port-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.port-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 194, 168, 0.3);
  border-radius: 3px;
}

.port-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 194, 168, 0.6);
}

@keyframes modalItemSlide {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.port-modal-overlay.active .port-modal-header {
  animation: modalItemSlide 0.5s ease 0.1s both;
}

.port-modal-overlay.active .port-modal-body {
  animation: modalItemSlide 0.5s ease 0.25s both;
}

/* ── NETWORK ── */
#network {
  background: var(--navy);
}

.network-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.benefit-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.benefit-item:hover .benefit-num {
  color: var(--teal);
}

.benefit-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  color: var(--navy-light);
  line-height: 1;
  min-width: 50px;
  transition: color 0.3s;
}

.benefit-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.benefit-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
}

.network-visual {
  position: relative;
  height: 480px;
}

#network-canvas {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* ── CONTACT ── */
#contact {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy));
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(var(--gold-dim), transparent 70%);
  pointer-events: none;
  animation: pulseGlowGold 15s infinite alternate ease-in-out;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  max-width: 440px;
}

.contact-info p {
  font-size: 16px;
  color: var(--slate);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--slate);
}

.c-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.c-detail strong {
  display: block;
  color: var(--white);
  font-size: 14px;
}

.c-detail span {
  font-size: 13px;
  color: var(--slate);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.field-group input,
.field-group select,
.field-group textarea {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s;
  backdrop-filter: blur(10px);
}

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--slate-dark);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--teal);
}

.field-group select option {
  background: var(--navy-mid);
  color: var(--white);
}

.field-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  background: var(--teal);
  color: var(--navy);
  padding: 16px 40px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
  box-shadow: 0 0 30px rgba(0, 194, 168, 0.25);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 194, 168, 0.4);
}

/* Icon micro-interactions */
.pillar-icon svg,
.s-card-icon svg,
.c-icon {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
}

.pillar:hover .pillar-icon svg,
.s-card:hover .s-card-icon svg,
.c-detail:hover .c-icon {
  transform: scale(1.2) rotate(8deg);
  color: #ff9100;
}

/* ── FOOTER ── */
footer {
  background: #0f172a;
  padding: 48px 5%;
  border-top: 1px solid #e2e8f0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-h1 {
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-sub {
  animation: fadeInUp 0.8s ease 0.7s both;
}

/* ── EXTRA ULTRA ANIMATIONS ── */
@keyframes floatCard {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-6px);
  }
}

@keyframes pulseGlowTeal {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-80px, 60px) scale(1.15);
    opacity: 0.5;
  }
}

@keyframes pulseGlowGold {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  100% {
    transform: translate(60px, -50px) scale(1.2);
    opacity: 0.4;
  }
}

@keyframes btnShimmer {
  0% {
    left: -50%;
  }

  100% {
    left: 150%;
  }
}

@keyframes textShimmer {
  to {
    background-position: 200% center;
  }
}

/* Mouse glow drop-in overlays */
.stat-card::after,
.port-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 194, 168, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}

.stat-card:hover::after,
.port-item:hover::after {
  opacity: 1;
}

.hero-actions {
  animation: fadeInUp 0.8s ease 2.3s both;
}

.hero-stats {
  animation: fadeInUp 0.8s ease 2.0s both;
}

@keyframes ecgFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.25;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .port-item {
    flex: 1 1 calc(33.333% - 12px);
    max-width: 260px;
  }
}

@media (max-width: 900px) {
  .hero-content,
  .vision-grid,
  .network-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .vision-pillars {
    grid-template-columns: 1fr;
  }

  .strategy-cards {
    grid-template-columns: 1fr 1fr;
  }

  .network-visual {
    height: 350px;
  }

  .hero-text-wrapper {
    top: 0;
  }

  /* Hide Scroll Indicator on mobile to prevent overlaps */
  .scroll-ind {
    display: none;
  }

  /* Adjust stats cards gaps on tablets */
  .hero-stats {
    gap: 12px;
  }

  .stat-card {
    padding: 16px 12px;
  }

  /* Hide Desktop CTA */
  .nav-cta {
    display: none;
  }

  /* Mobile Toggle Button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
  }

  .nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 2px;
  }

  /* Toggle open morphing lines */
  .nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Mobile Drawer Links Overlay */
  .nav-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid #cbd5e1;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    padding: 80px 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
    font-weight: 600;
  }

  .mobile-cta-only {
    display: block;
    margin-top: 10px;
  }

  .mobile-cta-only a {
    text-align: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    color: #ffffff;
  }

  /* Backdrop Overlay */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1040;
  }

  .nav-backdrop.open {
    opacity: 1;
    pointer-events: all;
  }

  section {
    padding: 80px 5%;
  }
}

@media (max-width: 768px) {
  .port-item {
    flex: 1 1 calc(50% - 20px);
  }

  .hero-h1 {
    font-size: 38px;
  }

  /* Adjust card padding & text size on mobile landscape */
  .stat-card {
    padding: 12px 8px;
    border-radius: 12px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
    line-height: 1.25;
  }

  /* Modal Mobile Responsiveness */
  .port-modal-card {
    max-height: 90vh;
    border-radius: 16px;
  }

  .port-modal-header {
    padding: 30px 24px 15px 24px;
    gap: 16px;
  }

  .port-modal-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .port-modal-title-area h3 {
    font-size: 20px;
  }

  .port-modal-body {
    padding: 20px 24px 30px 24px;
    font-size: 14px;
  }

  .port-modal-close {
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .strategy-cards {
    grid-template-columns: 1fr;
  }

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

  /* Stack stats cards vertically on mobile devices to prevent truncation */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }

  .stat-card {
    padding: 16px 20px;
    text-align: left;
  }

  .stat-number {
    font-size: 32px;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .port-item {
    flex: 1 1 100%;
    max-width: 320px;
  }

  .hero-h1 {
    font-size: 32px;
  }

  .port-modal-header {
    padding: 24px 16px 12px 16px;
    gap: 12px;
  }

  .port-modal-logo-wrap {
    width: 60px;
    height: 60px;
  }

  .port-modal-title-area h3 {
    font-size: 18px;
  }

  .port-modal-body {
    padding: 16px 16px 24px 16px;
  }
}
