:root {
  --brand-primary: #0f5d63;
  --brand-primary-dark: #0d3f46;
  --brand-ink: #10242e;
  --brand-muted: #5f737b;
  --brand-bg: #f7f5ef;
  --brand-surface: #ffffff;
  --brand-accent: #d8bf84;
  --brand-border: rgba(16, 36, 46, .12);
  --brand-shadow: 0 28px 70px -48px rgba(16, 36, 46, .55);
  --radius-card: 8px;
  --radius-button: 8px;
}

body {
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
.brand span:not(.vertical-badge) {
  font-family: "DM Serif Display", Georgia, serif;
  letter-spacing: 0;
}

p,
a,
button,
li,
span {
  text-wrap: pretty;
}

.brand {
  min-width: 0;
}

.brand img {
  width: clamp(146px, 13vw, 184px) !important;
  height: auto !important;
  max-height: 52px;
  object-fit: contain;
}

.vertical-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(15, 93, 99, .22);
  border-radius: 999px;
  background: #e5f1ef;
  color: var(--brand-primary);
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif !important;
  font-size: .7rem !important;
  font-weight: 900;
  letter-spacing: .08em !important;
}

.main-nav {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}

.main-nav.nav-hidden {
  transform: translateY(-100%);
}

.main-nav.nav-scrolled {
  box-shadow: 0 16px 34px -28px rgba(7, 28, 34, .72);
}

.footer-brand .vertical-badge {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.footer .footer-brand img {
  filter: brightness(0) invert(1);
  opacity: .96;
}

.nav-cta,
.btn,
.package a,
.language-toggle,
.menu-toggle,
.language-options,
.service-card,
.package,
.contact-card {
  border-radius: var(--radius-button);
}

.nav-cta:focus-visible,
.btn:focus-visible,
.package a:focus-visible,
.language-toggle:focus-visible,
.menu-toggle:focus-visible,
.language-options button:focus-visible {
  outline: 3px solid rgba(216, 191, 132, .72);
  outline-offset: 3px;
}

.hero {
  min-height: min(860px, 88dvh);
  background:
    radial-gradient(circle at 74% 28%, rgba(15, 93, 99, .62), transparent 38%),
    radial-gradient(circle at 24% 72%, rgba(216, 191, 132, .10), transparent 34%),
    linear-gradient(135deg, #08191f 0%, #0d252d 48%, #0f5d63 100%) !important;
}

.hero-video {
  filter: none !important;
  opacity: .9;
}

.hero-overlay {
  background: linear-gradient(100deg, rgba(8, 25, 31, .95) 0%, rgba(8, 25, 31, .76) 52%, rgba(15, 93, 99, .32) 100%) !important;
}

.clarified-motion-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.clarified-motion-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}

.it-grid {
  opacity: .1;
}

.it-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, .34);
  stroke-width: 1;
}

.it-links path {
  fill: none;
  stroke: url(#itLine);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 18 28;
  animation: itLineFlow 18s linear infinite;
}

.it-links path:nth-child(2) {
  animation-duration: 24s;
  animation-direction: reverse;
  opacity: .72;
}

.it-links path:nth-child(3) {
  animation-duration: 28s;
  opacity: .58;
}

.it-panel {
  animation: itPanelFloat 14s ease-in-out infinite;
  transform-origin: center;
}

.panel-b {
  animation-delay: -5s;
}

.panel-c {
  animation-delay: -8s;
}

.it-panel rect {
  fill: url(#itPanel);
  stroke: rgba(255, 255, 255, .24);
  stroke-width: 2;
}

.it-panel path,
.it-panel circle {
  fill: none;
  stroke: rgba(255, 255, 255, .35);
  stroke-width: 2;
  stroke-linecap: round;
}

.it-shield {
  animation: shieldPulse 8s ease-in-out infinite;
  transform-origin: center;
}

.it-shield path:first-child {
  fill: rgba(216, 191, 132, .12);
  stroke: rgba(216, 191, 132, .48);
  stroke-width: 3;
}

.it-shield path:last-child {
  fill: none;
  stroke: rgba(255, 255, 255, .78);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.it-nodes circle {
  fill: rgba(216, 191, 132, .76);
  stroke: rgba(255, 255, 255, .32);
  stroke-width: 2;
  animation: nodePulse 5s ease-in-out infinite;
}

.it-nodes circle:nth-child(2n) {
  animation-delay: -2s;
}

@keyframes itLineFlow {
  to { stroke-dashoffset: -220; }
}

@keyframes itPanelFloat {
  0%, 100% { transform: translate3d(0, 9px, 0); opacity: .48; }
  50% { transform: translate3d(-16px, -10px, 0); opacity: .76; }
}

@keyframes shieldPulse {
  0%, 100% { transform: scale(.985); opacity: .54; }
  50% { transform: scale(1.015); opacity: .82; }
}

@keyframes nodePulse {
  0%, 100% { opacity: .42; }
  50% { opacity: .9; }
}

h1 {
  max-width: 980px;
  font-weight: 400 !important;
}

.hero-proof span {
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  .service-card,
  .risk-card,
  .package,
  .step,
  .vertical-card {
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  }

  .service-card:hover,
  .risk-card:hover,
  .package:hover,
  .step:hover,
  .vertical-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 93, 99, .28);
    box-shadow: 0 30px 70px -50px rgba(16, 36, 46, .55);
  }

  .service-card .icon {
    transition: transform .28s ease, background .28s ease;
  }

  .service-card:hover .icon {
    transform: translateY(-2px) scale(1.04);
    background: #dcefeb;
  }
}

.brand-architecture,
.risk-map {
  padding: 86px 0;
}

.brand-architecture {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(247, 245, 239, 1)),
    var(--brand-bg);
  border-bottom: 1px solid var(--brand-border);
}

.brand-architecture-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 36px;
  align-items: stretch;
}

.brand-architecture-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-architecture h2,
.risk-map h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.brand-architecture p {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--brand-muted);
  font-size: 1.05rem;
}

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

.vertical-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-card);
  background: var(--brand-surface);
  box-shadow: var(--brand-shadow);
}

.vertical-card.active {
  background: linear-gradient(160deg, #0d252d, #0f5d63);
  color: #fff;
}

.vertical-card span {
  color: var(--brand-primary);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vertical-card.active span {
  color: var(--brand-accent);
}

.vertical-card h3 {
  margin: 14px 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.vertical-card p {
  margin: 0;
  color: var(--brand-muted);
}

.vertical-card.active p {
  color: rgba(255, 255, 255, .82);
}

.vertical-card a {
  margin-top: auto;
  padding-top: 26px;
  color: var(--brand-primary);
  font-weight: 900;
  text-decoration: none;
}

.vertical-card.active a {
  color: #fff;
}

.risk-map {
  background: var(--brand-surface);
  border-bottom: 1px solid var(--brand-border);
}

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

.risk-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-card);
  background: #f8fbfa;
}

.risk-card b {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e5f1ef;
  color: var(--brand-primary);
  font-size: .8rem;
}

.risk-card h3 {
  margin: 18px 0 10px;
  font-size: 1.14rem;
  line-height: 1.18;
}

.risk-card p {
  margin: 0;
  color: var(--brand-muted);
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 260px;
}

.human-ops {
  padding: 78px 0;
  background:
    linear-gradient(180deg, #fff 0%, #f7f5ef 100%),
    var(--brand-bg);
  border-bottom: 1px solid var(--brand-border);
}

.human-ops-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

.human-ops-media {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-card);
  background: #dfe8e7;
  box-shadow: var(--brand-shadow);
}

.human-ops-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: 42% 50%;
}

.human-ops-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--brand-shadow);
}

.human-ops-copy h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
}

.human-ops-copy p {
  max-width: 62ch;
  color: var(--brand-muted);
}

.readiness-widget {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(15, 93, 99, .16);
  border-radius: var(--radius-card);
  background: #f8fbfa;
}

.widget-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.widget-tabs button {
  min-height: 38px;
  border: 1px solid rgba(15, 93, 99, .2);
  border-radius: var(--radius-button);
  background: #fff;
  color: var(--brand-primary-dark);
  cursor: pointer;
  font: 800 .82rem/1 Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

.widget-tabs button.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.widget-result {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #0d252d, #0f5d63);
  color: #fff;
}

.widget-result strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.widget-result p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
}

.security-media,
.security-media img {
  border-radius: var(--radius-card);
}

.contact-card > img {
  width: 190px;
  height: auto;
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .main-nav {
    grid-template-columns: 1fr auto auto;
  }

  .brand img {
    width: min(54vw, 184px) !important;
    max-height: 56px;
  }

  .vertical-badge {
    min-width: 30px;
    height: 24px;
    padding: 0 7px;
    font-size: .64rem !important;
  }

  .nav-actions {
    align-items: center;
  }

  .nav-cta {
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: .68rem !important;
    white-space: normal;
    line-height: 1.08;
    text-align: center;
  }

  .language-options {
    top: 76px !important;
  }

  .brand-architecture-grid,
  .human-ops-grid,
  .vertical-cards,
  .risk-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .vertical-card,
  .human-ops-media,
  .risk-card,
  .service-card {
    min-height: auto;
  }

  .human-ops-media img {
    min-height: 320px;
  }

  .brand-architecture,
  .human-ops,
  .risk-map {
    padding: 68px 0;
  }

  .hero {
    min-height: max(660px, calc(100svh - 70px));
  }
}

@media (max-width: 390px) {
  .brand img {
    width: min(50vw, 160px) !important;
  }

  .nav-cta {
    font-size: .62rem !important;
    padding: 0 8px !important;
  }
}

html,
body {
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
}

.trust-band,
.brand-architecture,
.intro,
.security {
  display: none !important;
}

.hero {
  order: 1;
}

.risk-map {
  order: 2;
}

.human-ops {
  order: 3;
}

.services {
  order: 4;
}

.packages {
  order: 5;
}

.process {
  order: 6;
}

.it-case-studies {
  order: 7;
}

.contact {
  order: 8;
}

.nav-actions .main-site-pill {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(15, 93, 99, .32);
  border-radius: 8px;
  background: #e5f1ef;
  color: var(--brand-primary-dark) !important;
  box-shadow: 0 10px 24px -20px rgba(16, 36, 46, .52);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-actions .main-site-pill:hover {
  border-color: var(--brand-primary);
  background: #fff;
  color: var(--brand-primary) !important;
  transform: translateY(-1px);
}

.nav-actions .main-site-pill:focus-visible {
  outline: 3px solid rgba(216, 191, 132, .72);
  outline-offset: 3px;
}

.btn,
.nav-cta,
.package a {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.btn.primary,
.nav-cta,
.package a {
  background: var(--brand-primary-dark);
  color: #fff;
  border: 1px solid var(--brand-primary-dark);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.hero {
  min-height: min(760px, 84dvh);
  align-items: center;
}

.hero-video {
  opacity: .82;
  transform: none !important;
  contain: paint;
}

.hero-overlay {
  background: linear-gradient(98deg, rgba(8, 25, 31, .94) 0%, rgba(8, 25, 31, .78) 52%, rgba(15, 93, 99, .26) 100%) !important;
}

.hero-inner {
  padding-top: 96px;
  padding-bottom: 80px;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 5.2vw, 4.25rem);
  line-height: .98;
}

.lead {
  max-width: 58ch;
}

.hero-proof {
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  min-height: 34px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .1);
}

.risk-map,
.human-ops,
.services,
.packages,
.process,
.contact {
  padding: 78px 0;
}

@media (max-width: 767px) {
  .main-nav {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    min-height: 64px !important;
    padding: 8px 16px !important;
  }

  .brand img {
    width: min(48vw, 162px) !important;
    max-height: 48px !important;
  }

  .nav-actions {
    gap: 7px !important;
  }

  .nav-actions .nav-cta {
    display: none !important;
  }

  .nav-actions .main-site-pill {
    min-height: 36px;
    max-width: 104px;
    padding: 0 10px;
    border-color: rgba(15, 93, 99, .34);
    border-radius: 8px;
    background: #e5f1ef;
    overflow: hidden;
    font-size: .66rem;
    line-height: 1.08;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
  }

  .language-toggle,
  .menu-toggle {
    width: 38px !important;
    min-width: 38px !important;
    height: 36px !important;
  }

  .nav-links {
    top: 74px !important;
    left: 16px !important;
    right: 16px !important;
    inset: 74px 16px auto !important;
  }

  .language-options {
    top: 74px !important;
    right: 16px !important;
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .hero-video {
    display: none !important;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 25, 31, .86) 0%, rgba(8, 25, 31, .68) 46%, rgba(8, 25, 31, .88) 100%) !important;
  }

  .hero-inner {
    padding-top: 50px;
    padding-bottom: 44px;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
    font-size: .62rem;
    letter-spacing: .12em;
  }

  h1 {
    max-width: 12ch;
    margin-bottom: 22px;
    font-size: clamp(2.15rem, 9.2vw, 2.9rem) !important;
    line-height: 1;
  }

  .lead {
    display: none !important;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 360px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    font-size: 15px;
  }

  .hero-actions .btn.ghost {
    display: none !important;
  }

  .hero-proof {
    display: none !important;
  }

  .risk-map,
  .human-ops,
  .services,
  .packages,
  .process,
  .contact {
    padding: 66px 0;
  }

  .human-ops-copy {
    padding: 24px;
  }

  .widget-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .clarified-motion-scene {
    display: none !important;
  }
}
