:root {
  color-scheme: light;
  --primary: #003366;
  --primary-dark: #001f3f;
  --secondary: #c0c0c0;
  --accent: #dc143c;
  --accent-dark: #a50f2d;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2833;
  --muted: #5b6472;
  --border: rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(135deg, #003366 0%, #00528f 50%, #0a8dda 100%);
  --shadow-soft: 0 20px 45px rgba(0, 25, 56, 0.08);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.08);
  --radius: 1rem;
  --transition: 250ms ease;
  --ticker-duration: 45s;
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #7fc3ff;
  --primary-dark: #6bb2f0;
  --secondary: #8895a7;
  --accent: #ff5c8d;
  --accent-dark: #cc4a70;
  --bg: #050c1a;
  --surface: #0f1a2b;
  --text: #f4f7ff;
  --muted: #bdc7da;
  --border: rgba(255, 255, 255, 0.12);
  --gradient: linear-gradient(135deg, #00172c 0%, #003d5c 60%, #115c92 100%);
  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 14px 30px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 1000;
  border-radius: 999px;
  transition: var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(5, 12, 26, 0.85);
}

.site-header.is-scrolled {
  border-color: var(--border);
}

.utility-bar {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.35rem 1rem;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  gap: 1.5rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-icon {
  font-size: 1.6rem;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  font-weight: 500;
}

.primary-nav a {
  position: relative;
  padding-bottom: 0.25rem;
}

.primary-nav a[aria-current="page"] {
  color: var(--accent);
}

.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-switch {
  display: inline-flex;
  gap: 0.3rem;
  font-weight: 600;
}

.language-switch a[aria-current="page"] {
  color: var(--accent);
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: none;
  color: inherit;
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.btn-solid:hover {
  background: var(--accent-dark);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  border-color: transparent;
  color: var(--primary);
}

.btn-ghost:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 24, 48, 0.8), rgba(0, 0, 0, 0.75));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--secondary);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  text-align: left;
}

.hero-stats article {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(6px);
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
}

section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--muted);
}

.about {
  background: var(--surface);
}

.about-grid,
.division-grid,
.investor-grid,
.news-grid,
.career-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-grid article,
.division-card,
.news-card,
.career-grid article,
.contact-grid article {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.divisions {
  background: var(--bg);
}

.division-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.division-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.division-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
}

.division-card:hover::after {
  border-color: var(--accent);
}

.division-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.virtual-tour {
  background: var(--surface);
}

.tour-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.tour-viewport {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow-card);
}

.tour-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition);
}

.tour-frame.is-active {
  opacity: 1;
}

#officeSlider {
  width: 100%;
  accent-color: var(--accent);
}

.business-map {
  background: var(--bg);
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(280px, 500px) minmax(260px, 1fr);
  gap: 2rem;
  align-items: center;
}

.map-visual {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.map-region {
  fill: #d2e9ff;
  stroke: var(--primary);
  stroke-width: 2;
  cursor: pointer;
  transition: fill var(--transition), transform var(--transition);
}

.map-region:hover,
.map-region.is-active {
  fill: var(--accent);
}

.map-detail {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.detail-stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  font-weight: 600;
}

.detail-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.map-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.map-stats article {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.investors {
  background: var(--surface);
}

.investor-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.metric {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.investor-cta {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stock-ticker {
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.75rem 1rem;
  min-width: 100%;
  animation: ticker var(--ticker-duration) linear infinite;
}

.ticker-item {
  display: inline-flex;
  gap: 0.75rem;
  align-items: baseline;
  font-weight: 600;
}

.ticker-item span {
  font-size: 0.95rem;
}

.ticker-item .change {
  font-weight: 700;
}

.ticker-item .change.positive {
  color: #4ade80;
}

.ticker-item .change.negative {
  color: #f87171;
}

.news {
  background: var(--bg);
}

.news-card {
  min-height: 200px;
}

.news-date {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.careers {
  background: var(--surface);
  text-align: center;
}

.career-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact {
  background: var(--bg);
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}

.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 3rem clamp(1.5rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.site-footer a {
  color: #fff;
  opacity: 0.85;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  opacity: 0.75;
}

.ai-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.ai-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: min(360px, calc(100% - 2rem));
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.ai-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
}

.ai-panel__body {
  background: var(--bg);
  border-radius: 0.75rem;
  padding: 0.75rem;
  height: 150px;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.ai-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.75rem;
  background: transparent;
  color: inherit;
  font-family: inherit;
}

.sub-hero {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--gradient);
  color: #fff;
}

.sub-hero .breadcrumbs {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.sub-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.sub-hero .lead {
  font-size: 1.1rem;
  max-width: 720px;
}

.breadcrumbs {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

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

.detail-card h3 {
  margin-bottom: 0.5rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

.pill.is-dark {
  border-color: var(--border);
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.metrics-grid .metric-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.metrics-grid .metric-card p {
  margin: 0;
}

.metrics-grid .metric-card .metric-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding-left: 1.5rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline li {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.contact-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-grid label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input:not([type="range"]),
select,
textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  background: transparent;
  color: inherit;
  font-family: inherit;
}

.insight-card {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  text-align: left;
}

.table th {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--text);
  display: block;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 1.5rem;
    flex-direction: column;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .map-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 75vh;
  }
  .utility-bar {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

[data-theme="dark"] body,
[data-theme="dark"] .primary-nav,
[data-theme="dark"] .map-visual,
[data-theme="dark"] .map-detail,
[data-theme="dark"] .about-grid article,
[data-theme="dark"] .division-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .career-grid article,
[data-theme="dark"] .contact-grid article,
[data-theme="dark"] .ai-panel,
[data-theme="dark"] .tour-wrapper {
  background: var(--surface);
  color: var(--text);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
