:root {
  --bg: #ffffff;
  --surface: #f5f9ff;
  --surface-strong: #e9f2ff;
  --ink: #07111f;
  --muted: #607086;
  --blue-950: #071f4f;
  --blue-800: #0b3b86;
  --blue-650: #1261d6;
  --blue-500: #1b7cff;
  --blue-100: #dcecff;
  --teal: #00a8b5;
  --signal: #f4a51c;
  --line: #d9e5f5;
  --shadow: 0 24px 80px rgba(7, 31, 79, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(360px, 540px) minmax(0, auto) minmax(128px, 1fr);
  align-items: center;
  gap: 24px;
  height: 172px;
  min-height: 172px;
  max-height: 172px;
  padding: 11px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 229, 245, 0.72);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: min(520px, 46vw);
  max-width: min(520px, 46vw);
  height: 150px;
  max-height: 150px;
  overflow: visible;
}

.brand-logo-frame {
  display: grid;
  width: min(520px, 46vw);
  height: 150px;
  max-width: min(520px, 46vw);
  max-height: 150px;
  place-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: min(520px, 46vw);
  max-height: 150px;
  object-fit: contain;
  object-position: center;
}

.desktop-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  max-width: 100%;
  min-height: 46px;
  max-height: 46px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(7, 31, 79, 0.06);
}

.nav-indicator {
  position: absolute;
  inset-block: 5px;
  left: 5px;
  width: 68px;
  border-radius: 7px;
  background: var(--blue-950);
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), width 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link {
  position: relative;
  z-index: 1;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 220ms ease;
}

.nav-link.is-active {
  color: #fff;
}

.top-actions {
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-height: 46px;
  overflow: hidden;
}

.language-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 86px;
  height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.language-option {
  position: relative;
  z-index: 1;
  text-align: center;
  transition: color 220ms ease;
}

.language-option.is-current {
  color: #fff;
}

.language-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 6px;
  background: var(--blue-650);
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.language-toggle[data-lang="en"] .language-knob {
  transform: translateX(100%);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transform: scale(0.92);
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.menu-toggle:hover {
  transform: scale(1);
  border-color: rgba(27, 124, 255, 0.34);
  box-shadow: 0 10px 24px rgba(7, 31, 79, 0.1);
}

body.nav-compact .menu-toggle {
  animation: menu-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--blue-950);
  transition: transform 240ms ease;
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 76px;
  right: 18px;
  left: 18px;
  z-index: 19;
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-18px) scale(0.9);
  transform-origin: top center;
  transition: opacity 220ms ease, transform 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

body.menu-open .mobile-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-nav-link {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue-950);
  font-weight: 800;
  text-align: left;
  padding-inline: 14px;
  transform: translateY(-6px);
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease, color 180ms ease;
}

body.menu-open .mobile-nav-link {
  transform: translateY(0);
}

.mobile-nav-link.is-active {
  background: var(--blue-950);
  color: #fff;
}

body.nav-compact .topbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

body.nav-compact .desktop-nav {
  display: none;
}

body.nav-compact .menu-toggle,
body.nav-compact .mobile-menu {
  display: grid;
}

body.nav-compact .mobile-menu {
  top: 172px;
}

.view-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.view {
  display: none;
  padding: clamp(34px, 6vw, 82px) 0;
}

.view.is-active {
  display: block;
  animation: view-in 520ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100svh - 188px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 10px;
  border-left: 3px solid var(--blue-500);
  background: var(--surface);
  color: var(--blue-800);
  font-size: 0.77rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 730px;
  margin-bottom: 20px;
  font-size: 6.4rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 4rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.lead,
.section-heading p,
.about-copy p,
.contact-panel p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid var(--blue-950);
  background: var(--blue-950);
  color: #fff;
  box-shadow: 0 16px 34px rgba(7, 31, 79, 0.18);
}

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

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 97, 214, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 97, 214, 0.06) 1px, transparent 1px),
    #f7fbff;
  background-size: 34px 34px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(18, 97, 214, 0.28);
  border-radius: 8px;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 154px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(7, 31, 79, 0.12);
  backdrop-filter: blur(12px);
  animation: float-note 4.8s ease-in-out infinite;
}

.floating-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.floating-note strong {
  color: var(--blue-950);
  font-size: 1.28rem;
}

.note-top {
  top: 42px;
  right: 34px;
}

.note-bottom {
  bottom: 40px;
  left: 34px;
  animation-delay: -1.4s;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.quick-strip span {
  min-height: 78px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue-950);
  font-weight: 850;
}

.section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading.compact {
  max-width: 820px;
}

.service-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.service-tabs {
  display: grid;
  gap: 8px;
}

.service-tab {
  position: relative;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-950);
  font-weight: 850;
  text-align: left;
  padding-inline: 18px;
  transition: border-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.service-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue-500);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.service-tab.is-active {
  border-color: rgba(18, 97, 214, 0.32);
  background: var(--surface);
}

.service-tab.is-active::before {
  transform: scaleY(1);
}

.service-detail {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-950);
  color: #fff;
  padding: clamp(24px, 4vw, 44px);
}

.service-detail::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
}

.service-detail.animate {
  animation: detail-in 360ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.service-detail h3 {
  max-width: 520px;
  font-size: 3rem;
  line-height: 1;
}

.service-detail p:not(.service-kicker) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-kicker {
  color: var(--signal);
  font-weight: 900;
}

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

.service-card,
.values-grid article,
.timeline article,
.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card,
.values-grid article {
  min-height: 210px;
  padding: 24px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.values-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 97, 214, 0.32);
  box-shadow: 0 18px 44px rgba(7, 31, 79, 0.09);
}

.card-index,
.timeline span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue-500);
  font-weight: 900;
}

.service-card p,
.values-grid p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline article {
  min-height: 280px;
  border-width: 0 1px 0 0;
  padding: 26px;
  border-radius: 0;
}

.timeline article:last-child {
  border-right: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  margin-bottom: clamp(32px, 6vw, 72px);
}

.about-copy {
  display: grid;
  gap: 16px;
  padding-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.contact-panel,
.contact-form {
  padding: clamp(24px, 4vw, 42px);
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-methods a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.contact-methods a:hover {
  transform: translateX(4px);
  border-color: rgba(18, 97, 214, 0.34);
}

.contact-methods span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-methods strong {
  color: var(--blue-950);
}

.contact-form {
  display: grid;
  gap: 16px;
  background: var(--surface);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-950);
  font-weight: 820;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.file-upload {
  position: relative;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  white-space: nowrap;
}

.file-upload-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 46px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-950);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.file-upload:hover .file-upload-control,
.file-upload-input:focus-visible + .file-upload-control {
  border-color: rgba(27, 124, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(27, 124, 255, 0.12);
}

.file-upload-plus {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  background: #eaf4ff;
  color: var(--blue-650);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1), background 180ms ease;
}

.file-upload:hover .file-upload-plus,
.file-upload-input:focus-visible + .file-upload-control .file-upload-plus {
  background: #dcecff;
  transform: scale(1.06);
}

.file-upload-count {
  color: var(--blue-800);
  font-size: 0.92rem;
  font-weight: 850;
}

.file-upload small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.contact-form textarea {
  resize: vertical;
  min-height: 136px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(27, 124, 255, 0.14);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-800);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  color: var(--blue-950);
  font-weight: 900;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-contact a {
  color: var(--blue-800);
  font-weight: 800;
}

.footer-contact-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--blue-950);
  border-radius: 8px;
  background: var(--blue-950);
  color: #fff;
  font-weight: 850;
}

::view-transition-old(root) {
  animation: page-out 220ms ease both;
}

::view-transition-new(root) {
  animation: page-in 420ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float-note {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes menu-pop {
  0% {
    opacity: 0;
    transform: translateX(12px) scale(0.7);
  }
  70% {
    opacity: 1;
    transform: translateX(0) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(0.92);
  }
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle,
  .mobile-menu {
    display: grid;
  }

  .mobile-menu {
    top: 172px;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-grid,
  .service-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 440px;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .service-detail h3 {
    font-size: 2.5rem;
  }

  .service-grid,
  .values-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .timeline article {
    border-width: 0 1px 1px 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    padding-inline: 14px;
  }

  .brand {
    width: min(230px, 48vw);
    max-width: min(230px, 48vw);
    height: 90px;
    max-height: 90px;
  }

  .brand-logo-frame {
    width: min(230px, 48vw);
    height: 90px;
    max-width: min(230px, 48vw);
    max-height: 90px;
  }

  .brand-logo {
    max-width: min(230px, 48vw);
    max-height: 90px;
  }

  .view-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

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

  .footer-contact {
    justify-content: flex-start;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .lead,
  .section-heading p,
  .about-copy p,
  .contact-panel p {
    font-size: 1rem;
  }

  .service-detail h3 {
    font-size: 2rem;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .quick-strip,
  .service-grid,
  .values-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .quick-strip span {
    min-height: 58px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .floating-note {
    min-width: 138px;
  }

  .note-top {
    top: 18px;
    right: 18px;
  }

  .note-bottom {
    bottom: 18px;
    left: 18px;
  }

  .language-toggle {
    width: 78px;
  }

  .mobile-menu {
    top: 118px;
    right: 14px;
    left: 14px;
  }

  body.nav-compact .mobile-menu {
    top: 118px;
  }
}

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