:root {
  --bg: #f4f8fc;
  --surface: rgba(255, 255, 255, 0.92);
  --line: #d5e4f4;
  --text: #12243c;
  --muted: #44586d;
  --primary: #0a67d8;
  --accent: #00b8cf;
  --shadow: 0 18px 40px rgba(18, 56, 104, 0.1);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(960px, calc(100vw - 48px));
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(122, 186, 255, 0.28), transparent 60%),
    radial-gradient(800px 420px at 100% 0%, rgba(64, 214, 188, 0.18), transparent 55%),
    var(--bg);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

body.page-ready { opacity: 1; }
body.menu-open { overflow: hidden; }

body.snap-page {
  scroll-snap-type: y proximity;
}

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

a { color: var(--primary); text-decoration: none; }

.container {
  width: var(--container);
  max-width: 960px;
  margin-inline: auto;
  padding-inline: 0;
}

.section {
  position: relative;
  padding: 88px 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.alt {
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(234,244,255,.78));
  border-block: 1px solid #fff;
}

/* ===== NAV ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(247, 251, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  color: inherit;
  max-width: calc(100% - 56px);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #c9def3;
  flex: 0 0 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.2;
}

.brand-line {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: clamp(10px, 2.6vw, 12px);
}

.menu-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.menu a {
  color: #3e5772;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
}

.menu a:hover,
.menu a.active {
  background: #dcebff;
  color: #0b5fc9;
}

.nav-login {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #18466f;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: .28;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(244,248,252,.94) 0%, rgba(244,248,252,.82) 48%, rgba(236,246,255,.74) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.hero-copy,
.hero-panel {
  min-width: 0;
  max-width: 100%;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 4.5vw, 2.45rem);
  line-height: 1.2;
  max-width: 100%;
}

.hero-name {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-height: 1.2em;
}

.typing-copy,
[data-typing].is-typing {
  position: relative;
}

[data-typing].is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: currentColor;
  animation: caretBlink .8s steps(1) infinite;
}

@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.lead {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
  margin: 0 0 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 12px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0a5f53;
  background: #ddfff4;
  border: 1px solid #9aefd5;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.gradient-shift {
  background: linear-gradient(90deg, #0a67d8, #00b8cf, #1ccda3, #0a67d8);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 7s linear infinite;
}

@keyframes gradientShift {
  from { background-position: 0 0; }
  to { background-position: 280% 0; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  max-width: 100%;
}

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

.btn-outline {
  color: #16486f;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
}

.uiverse-btn {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0689b8);
  box-shadow: 0 10px 24px rgba(10, 103, 216, 0.32);
}

.uiverse-btn-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .55s ease;
}

.uiverse-btn:hover .uiverse-btn-shine {
  transform: translateX(100%);
}

.uiverse-glass,
.feature-card,
.card,
.media-card,
.map-wrap {
  max-width: 100%;
  overflow: hidden;
}

.uiverse-glass {
  position: relative;
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(213,228,244,.9);
  box-shadow: var(--shadow);
}

.feature-card { padding: 12px; }

.feature-photo {
  width: 100%;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

.feature-photo.tall { height: 260px; }

.feature-body { padding: 14px 8px 8px; }
.feature-label { margin: 0; font-size: 13px; font-weight: 700; color: #3f668c; }
.feature-number { margin: 4px 0 8px; font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; color: var(--primary); }
.feature-caption,
.muted,
.small { color: var(--muted); line-height: 1.7; }
.small { font-size: 14px; }

.section-head { margin-bottom: 24px; }
h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 4vw, 2.1rem); overflow-wrap: anywhere; }
h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
h4 { margin: 0 0 10px; color: #0f5da7; }

.grid { display: grid; gap: 16px; width: 100%; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.uiverse-card { transition: transform .25s ease, box-shadow .25s ease; }
.uiverse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(30, 84, 140, 0.14);
}

.story-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.timeline {
  margin-top: 20px;
  border-left: 3px solid #95d1ff;
  padding-left: 16px;
}
.timeline-item { margin-bottom: 18px; }
.timeline-item .year { color: #0a62c8; font-weight: 800; margin-bottom: 6px; }

.media-card { padding: 12px; }
.media-caption { padding: 12px 6px 4px; }
.kpi { margin: 0 0 8px; font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 800; color: var(--primary); }

.contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-list li {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  overflow-wrap: anywhere;
}
.phone-link { font-weight: 700; font-size: 1.05rem; }

.map-title { margin: 0 0 12px; }
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  max-width: 100%;
}

.footer {
  padding: 36px 0 0;
  background: linear-gradient(180deg, #f8fcff, #e8f3ff);
  border-top: 1px solid #d2e6f8;
  scroll-snap-align: end;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .9fr);
  gap: 22px;
  padding-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 36px;
}
.footer-brand h3 {
  margin: 0;
  font-size: .92rem;
  color: #0c4f97;
  overflow-wrap: anywhere;
}
.footer-links {
  display: grid;
  gap: 10px;
}
.footer-links a {
  color: #2f5476;
  font-weight: 700;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer .muted,
.footer .small,
.footer-bottom {
  color: #3d536a;
}
.footer-bottom {
  border-top: 1px solid #d2e6f8;
  padding: 14px 0 22px;
  text-align: center;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.show { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }

.call-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a67d8, #00a8c4);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(10, 103, 216, 0.4);
  z-index: 120;
}
.call-pulse,
.call-pulse.delay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(10, 103, 216, 0.45);
  animation: callPulse 2s ease-out infinite;
}
.call-pulse.delay { animation-delay: .7s; }
@keyframes callPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.75); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-shift,
  .call-pulse,
  .call-pulse.delay { animation: none !important; }
  html { scroll-behavior: auto; }
  body.snap-page { scroll-snap-type: none; }
}

/* ===== TABLET / MOBILE ===== */
@media (max-width: 900px) {
  :root {
    --container: min(100%, calc(100vw - 28px));
    --nav-h: 64px;
  }

  body.snap-page {
    scroll-snap-type: y proximity;
  }

  .section {
    padding: 52px 0;
    min-height: auto;
  }

  .hero {
    min-height: calc(100dvh - var(--nav-h));
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .nav {
    min-height: var(--nav-h);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .menu-wrap {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 18px;
    background: rgba(247, 251, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 50, 90, 0.12);
    z-index: 99;
  }

  body.menu-open .menu-wrap {
    display: flex;
  }

  .menu {
    width: 100%;
    flex-direction: column;
  }

  .menu a,
  .nav-login {
    width: 100%;
    justify-content: center;
  }

  .brand-text {
    display: flex;
  }

  .brand-line {
    font-size: 10px;
  }

  .hero-grid,
  .story-grid,
  .contact-grid,
  .cards-2,
  .cards-3,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-photo,
  .feature-photo.tall {
    width: 100%;
    height: 200px;
  }

  .map-frame {
    aspect-ratio: 16 / 12;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn,
  .btn-outline,
  .uiverse-btn {
    width: 100%;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 1.35;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  :root {
    --container: min(100%, calc(100vw - 20px));
  }

  .brand-line {
    font-size: 9.5px;
  }

  .hero-title {
    font-size: clamp(1.2rem, 6.5vw, 1.55rem);
  }

  .feature-photo,
  .feature-photo.tall {
    height: 180px;
  }
}
