:root {
  --bg: #e4ecf5;
  --bg-soft: #edf3f9;
  --card: #f8fafd;
  --text: #263449;
  --muted: #3e5168;
  --heading: #26384f;
  --slate: #26384f;
  --navy: #26384f;
  --navy-deep: #26384f;
  --blue: #3478d4;
  --blue-dark: #1f5fa8;
  --cyan: #55dfff;
  --glow: #4f8cff;
  --light-blue: #d7e6f6;
  --line: #c5d4e6;
  --focus: #55dfff;
  --shadow: 0 10px 30px rgba(38, 56, 79, 0.1);
  --max: 1120px;
  --header-max: 1360px;
  --header: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-dark);
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.2rem;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  z-index: 20;
  border-radius: 8px;
}

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

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(18, 40, 61, 0.18);
}

.site-header .container {
  width: min(var(--header-max), calc(100% - 1.5rem));
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  min-height: var(--header);
  padding: 0.55rem 0;
}

.logo,
.logo span {
  color: #ffffff;
  text-decoration: none;
  transition: text-shadow 0.2s ease;
}

.logo {
  font-weight: 750;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  letter-spacing: -0.03em;
  flex: 0 0 auto;
  white-space: nowrap;
}

.logo:hover,
.logo:focus-visible,
.logo:hover span,
.logo:focus-visible span {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(85, 223, 255, 0.55);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(85, 223, 255, 0.55);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--navy-deep);
  padding: 0.5rem 1rem 1rem;
  flex-direction: column;
  gap: 0.15rem;
}

.site-nav.is-open {
  display: flex;
  max-height: calc(100vh - var(--header));
  overflow: auto;
}

.site-nav a,
.submenu-toggle {
  color: #f7fbff;
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a {
  padding: 0.7rem 0.35rem;
  border-radius: 8px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-left: 0.05rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.submenu-toggle::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
}

.nav-item.is-open > .submenu-toggle::before {
  transform: translateY(0.1rem) rotate(-135deg);
}

.submenu-toggle:hover,
.submenu-toggle:focus,
.submenu-toggle:focus-visible {
  color: var(--cyan);
  background: rgba(85, 223, 255, 0.12);
  text-shadow: 0 0 8px rgba(85, 223, 255, 0.75);
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 5;
  min-width: 18.5rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 34rem);
  overflow: auto;
  padding: 0.45rem;
  background: #1d2c40;
  border: 1px solid rgba(85, 223, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(12, 24, 40, 0.38), 0 0 14px rgba(79, 140, 255, 0.28);
}

.site-header:not(.force-menu) .submenu {
  top: calc(100% + 1.15rem);
}

.site-header:not(.force-menu) .nav-item:hover > .submenu,
.site-header:not(.force-menu) .nav-item:focus-within > .submenu,
.site-header:not(.force-menu) .nav-item.is-open > .submenu {
  display: grid;
}

.site-nav > a:hover,
.site-nav > a:focus,
.site-nav > a:focus-visible,
.site-nav > a[aria-current="page"],
.nav-item > a:hover,
.nav-item > a:focus,
.nav-item > a:focus-visible,
.nav-item > a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(85, 223, 255, 0.1);
  box-shadow: inset 0 -2px 0 #55dfff;
  text-shadow: 0 0 6px rgba(85, 223, 255, 0.75), 0 0 12px rgba(79, 140, 255, 0.4);
}

.submenu a:hover,
.submenu a:focus,
.submenu a:focus-visible,
.submenu a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(85, 223, 255, 0.12);
  box-shadow: inset 3px 0 0 #55dfff;
  text-shadow: 0 0 6px rgba(85, 223, 255, 0.7);
}

.menu-all {
  font-weight: 750;
}

.menu-label {
  margin: 0.45rem 0.7rem 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(85, 223, 255, 0.28);
  color: #55dfff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.section.service-group {
  padding: 1.35rem 0 0.4rem;
}

.section.service-group:last-of-type {
  padding-bottom: 3rem;
}

.service-group h2 {
  margin-bottom: 0.35rem;
}

.service-group .intro {
  max-width: 40rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.live-bar {
  background: linear-gradient(105deg, #e7f2fb 0%, #c5daf2 46%, #6f9fd4 100%);
  color: var(--navy);
  border-bottom: 1px solid #9eb6d4;
  overflow-x: clip;
  max-width: 100%;
}

.live-bar-row,
.market-note,
.ticker-viewport {
  width: min(var(--header-max), calc(100% - 1.5rem));
  margin-inline: auto;
}

.live-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.45rem;
}

.ticker-pause {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #1f5fa8;
  background: #f8fafd;
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.ticker-pause:hover,
.ticker-pause:focus-visible {
  box-shadow: 0 0 10px rgba(85, 223, 255, 0.75);
}

.live-status,
.market-note {
  margin: 0;
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.4;
}

.ticker-viewport {
  overflow: hidden;
  padding: 0.35rem 0 0.15rem;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0.35rem;
  animation: ticker-move 70s linear infinite;
}

.ticker-track.is-paused {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.92rem;
  padding: 0.15rem 0.2rem;
}

.ticker-item:hover,
.ticker-item:focus-visible {
  color: #12345a;
  text-shadow: 0 0 8px rgba(85, 223, 255, 0.95);
}

.ticker-cat {
  color: #1f5fa8;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker-source {
  color: #3e5168;
  font-size: 0.75rem;
}

.ticker-sep {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #55dfff;
  box-shadow: 0 0 8px rgba(85, 223, 255, 0.95);
  flex: 0 0 auto;
}

.ticker-empty {
  margin: 0;
  padding: 0.2rem 0 0.45rem;
  color: var(--navy);
  font-size: 0.92rem;
}

.market-note {
  padding: 0.2rem 0 0.7rem;
}

.market-note strong {
  color: #1f5fa8;
}

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

.page-hero,
.section {
  padding: 3.25rem 0;
}

.page-hero {
  background:
    radial-gradient(circle at top right, rgba(47, 111, 173, 0.16), transparent 28%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.lede,
.intro {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 42rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
}

.button {
  background: var(--blue);
  color: #fff;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 0 0 2px #ffffff, 0 0 14px rgba(85, 223, 255, 0.75);
}

.button-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  border-color: var(--blue);
  color: var(--navy);
}

.hero-art,
.visual-frame,
.hero-photo {
  background: var(--light-blue);
  border-radius: 22px;
  display: block;
  width: 100%;
  box-shadow: var(--shadow);
}

.hero-photo,
.card-photo,
.article-photo {
  object-fit: cover;
  height: auto;
}

.hero-photo {
  aspect-ratio: 4 / 3;
}

.card-photo,
.article-photo {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  box-shadow: none;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

.card-grid,
.feature-grid,
.insight-grid,
.ref-grid {
  display: grid;
  gap: 1rem;
}

.service-card,
.feature-card,
.insight-card,
.ref-card,
.panel,
.scope,
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.service-card,
.feature-card,
.insight-card,
.ref-card {
  color: inherit;
  text-decoration: none;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
}

.service-card:hover,
.feature-card:hover,
.insight-card:hover,
.ref-card:hover {
  border-color: #b7d0ea;
  color: inherit;
}

.icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--light-blue);
  color: var(--blue-dark);
  margin-bottom: 0.35rem;
}

.icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.more {
  margin-top: auto;
  color: var(--blue-dark);
  font-weight: 700;
}

.panel,
.scope,
.callout {
  padding: 1.25rem 1.3rem;
}

.scope li + li,
.plain-list li + li {
  margin-top: 0.35rem;
}

.callout {
  background: var(--light-blue);
  border-color: #c5dbf1;
}

.callout strong {
  color: var(--heading);
}

.band {
  background: var(--slate);
  color: #eef5fb;
  padding: 3rem 0;
}

.band h2,
.band p,
.band a {
  color: #fff;
}

.band a:hover {
  color: var(--light-blue);
}

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

.contact-lines li + li {
  margin-top: 0.35rem;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2rem;
}

.draft-note {
  background: #fff8e8;
  border: 1px solid #ead7a2;
  color: #3e3420;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.thumb {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: var(--light-blue);
  margin-bottom: 0.75rem;
}

.article + .article {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  background: var(--navy-deep);
  color: #d5e4f2;
  padding: 2.5rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1rem;
}

.site-footer a {
  color: #e7f1fb;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

address {
  font-style: normal;
}

.form-band {
  background: var(--bg-soft);
  padding: 1rem 0 3rem;
}

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

.form-card + .form-card {
  margin-top: 1.5rem;
}

.feedback-card {
  border-top: 4px solid var(--cyan);
}

.inquiry-card {
  border-top: 4px solid var(--blue);
}

.site-form {
  display: grid;
  gap: 1rem;
}

.site-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.field label,
.site-form legend {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--heading);
  font-weight: 700;
}

.required-mark {
  color: #8a2f1d;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #b7c8db;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.site-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error {
  min-height: 1.2rem;
  margin: 0.3rem 0 0;
  color: #8a2f1d;
  font-size: 0.92rem;
}

.check-field {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.check-field input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

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

.rating label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-weight: 650;
}

.rating input {
  width: 1.1rem;
  height: 1.1rem;
}

.form-status {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--light-blue);
  color: var(--text);
}

.form-status[hidden] {
  display: none;
}

@media (min-width: 760px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .card-grid,
  .insight-grid,
  .ref-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 1280px) {
  .site-header:not(.force-menu) .nav-toggle {
    display: none;
  }

  .site-header:not(.force-menu) .header-bar {
    flex-wrap: nowrap;
  }

  .site-header:not(.force-menu) .site-nav {
    display: flex;
    position: static;
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(0.05rem, 0.25vw, 0.35rem);
    background: transparent;
    padding: 0;
    max-height: none;
    overflow: visible;
    min-width: 0;
  }

  .site-header:not(.force-menu) .site-nav a {
    font-size: clamp(0.75rem, 0.68rem + 0.22vw, 0.86rem);
    padding: 0.35rem clamp(0.2rem, 0.32vw, 0.45rem);
    white-space: nowrap;
  }
}

.site-header.nav-fit .nav-toggle {
  display: none;
}

.site-header.nav-fit .header-bar {
  flex-wrap: nowrap;
}

.site-header.nav-fit .site-nav {
  display: flex;
  position: static;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.05rem, 0.25vw, 0.35rem);
  background: transparent;
  padding: 0;
  max-height: none;
  overflow: visible;
  min-width: 0;
}

.site-header.nav-fit .site-nav a {
  font-size: clamp(0.75rem, 0.68rem + 0.22vw, 0.86rem);
  padding: 0.35rem clamp(0.2rem, 0.32vw, 0.45rem);
  white-space: nowrap;
}

.site-header.force-menu .nav-toggle {
  display: inline-flex;
}

.site-header.force-menu .site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  background: var(--navy-deep);
  padding: 0.5rem 1rem 1rem;
}

.site-header.force-menu .site-nav.is-open {
  display: flex;
  max-height: calc(100vh - var(--header));
  overflow: auto;
}

.site-header.force-menu .site-nav a {
  font-size: 1rem;
  white-space: normal;
  padding: 0.7rem 0.35rem;
}

.site-header.force-menu .nav-item {
  flex-wrap: wrap;
}

.site-header.force-menu .submenu-toggle {
  width: 2.75rem;
  height: 2.75rem;
}

.site-header.force-menu .submenu {
  position: static;
  display: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0 0 0.25rem;
  padding: 0.15rem 0 0.25rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.site-header.force-menu .nav-item.is-open > .submenu {
  display: grid;
}

.site-header .submenu a {
  white-space: normal;
}

@media (min-width: 1040px) {
  .hero-grid,
  .split {
    grid-template-columns: 1.15fr 0.85fr;
  }

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

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .live-bar-row {
    align-items: flex-start;
  }

  .live-status {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo,
  .logo span,
  .site-nav a,
  .submenu-toggle,
  .button,
  .nav-toggle,
  .ticker-pause,
  .ticker-item {
    transition: none;
  }

  .ticker-viewport {
    max-height: 12rem;
    overflow: auto;
  }

  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    gap: 0.45rem 0.75rem;
  }
}
