:root {
  --navy: #0d2b55;
  --deep: #061b36;
  --mid: #1a3f73;
  --gold: #c9a84c;
  --gold-soft: #f2e4b4;
  --ink: #101828;
  --muted: #5f6b7a;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --soft-blue: #eef4fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(8, 30, 61, 0.12);
  --soft-shadow: 0 12px 30px rgba(8, 30, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section-pad {
  padding: 86px 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 225, 234, 0.85);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--deep);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark img {
  width: 184px;
  height: 54px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #445066;
  font-size: 14px;
  font-weight: 700;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--deep);
  padding: 9px 12px;
  font-weight: 800;
}

.hero {
  padding: 80px 0 72px;
  background:
    linear-gradient(90deg, rgba(238, 244, 251, 0.88), rgba(255, 255, 255, 0.7) 48%, rgba(255, 255, 255, 1)),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}

.eyebrow,
.brand-kicker {
  margin: 0 0 12px;
  color: var(--mid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--deep);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--deep);
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  color: var(--deep);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: #415066;
  font-size: 20px;
}

.hero-actions,
.brand-actions,
.connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn.primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(13, 43, 85, 0.18);
}

.btn.secondary {
  background: var(--white);
  color: var(--navy);
}

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

.btn.primary:hover {
  background: var(--deep);
}

.btn.secondary:hover {
  border-color: var(--gold);
  color: var(--deep);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 290px);
  gap: 18px;
  align-items: stretch;
}

.hero-visual > img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-logo-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  border-bottom: 5px solid var(--gold);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 168, 76, 0.13), transparent 32%),
    radial-gradient(circle at 12% 18%, rgba(13, 43, 85, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

.hero-logo-panel::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(201, 168, 76, 0.18), transparent);
  content: "";
  opacity: 0.7;
  transform: translateX(-110%);
  animation: panel-sheen 8s ease-in-out infinite;
}

.keystone-diagram {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 452px;
  isolation: isolate;
}

.diagram-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
}

.diagram-lines .line {
  display: none;
}

.diagram-lines .line-v15 {
  animation: none;
}

.diagram-lines .line-kca {
  animation: none;
}

.diagram-lines .line-kk {
  animation: none;
}

.diagram-lines .ring {
  fill: none;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
}

.ring-one {
  stroke: rgba(201, 168, 76, 0.36);
  animation: ring-pulse 6s ease-in-out infinite;
}

.ring-two {
  stroke: rgba(13, 43, 85, 0.12);
  animation: ring-pulse 7s ease-in-out infinite reverse;
}

.diagram-core {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  display: grid;
  width: min(80%, 228px);
  min-height: 160px;
  place-items: center;
  border: 1px solid rgba(217, 225, 234, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(8, 30, 61, 0.14);
  padding: 20px 18px 16px;
  transform: translate(-50%, -50%);
  animation: core-hold 17s ease-in-out infinite;
}

.diagram-core::after {
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  animation: gold-sweep 1.1s ease 0.75s forwards;
}

.keystone-core-logo {
  width: 100%;
  max-height: 116px;
  object-fit: contain;
  animation: logo-settle 0.8s ease both;
}

.diagram-core span {
  margin: 12px 0 10px;
  color: #536176;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 98px;
  height: 74px;
  border: 1px solid rgba(217, 225, 234, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(8, 30, 61, 0.11);
  padding: 10px;
  opacity: 1;
  transform: translateY(0);
}

.diagram-node img {
  width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.node-v15 img {
  width: 106%;
  max-height: 62px;
  filter: saturate(1.08) brightness(1.04) contrast(1.04);
}

.node-v15 {
  top: 26px;
  left: 16px;
  animation: brand-cycle-v15 17s ease-in-out infinite;
}

.node-kca {
  top: 26px;
  right: 16px;
  animation: brand-cycle-kca 17s ease-in-out infinite;
}

.node-kca img {
  max-height: 58px;
}

.node-kk {
  left: 50%;
  bottom: 24px;
  width: 152px;
  transform: translateX(-50%);
  animation: brand-cycle-kk 17s ease-in-out infinite;
}

.node-kk img {
  max-height: 62px;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-cycle-v15 {
  0%,
  13% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  18%,
  85% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  93%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes line-cycle-v15 {
  0%,
  13% {
    opacity: 1;
  }
  18%,
  85% {
    opacity: 0;
  }
  93%,
  100% {
    opacity: 1;
  }
}

@keyframes brand-cycle-kca {
  0%,
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  25%,
  85% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  93%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes line-cycle-kca {
  0%,
  20% {
    opacity: 1;
  }
  25%,
  85% {
    opacity: 0;
  }
  93%,
  100% {
    opacity: 1;
  }
}

@keyframes brand-cycle-kk {
  0%,
  27% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  32%,
  85% {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(0.96);
  }
  93%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes line-cycle-kk {
  0%,
  27% {
    opacity: 1;
  }
  32%,
  85% {
    opacity: 0;
  }
  93%,
  100% {
    opacity: 1;
  }
}

@keyframes core-hold {
  0%,
  32%,
  100% {
    box-shadow: 0 18px 42px rgba(8, 30, 61, 0.14);
    transform: translate(-50%, -50%) scale(1);
  }
  48% {
    box-shadow: 0 22px 58px rgba(201, 168, 76, 0.24);
    transform: translate(-50%, -50%) scale(1.1);
  }
  68%,
  85% {
    box-shadow: 0 26px 68px rgba(201, 168, 76, 0.28);
    transform: translate(-50%, -50%) scale(1.18);
  }
  93% {
    box-shadow: 0 18px 42px rgba(8, 30, 61, 0.14);
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes logo-settle {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gold-sweep {
  to {
    width: 74%;
  }
}

@keyframes ring-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.02);
  }
}

@keyframes panel-sheen {
  0%,
  62% {
    transform: translateX(-110%);
  }
  78%,
  100% {
    transform: translateX(110%);
  }
}

.company-summary {
  background: var(--white);
}

.summary-grid,
.model-grid {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: 56px;
  align-items: start;
}

.summary-copy {
  display: grid;
  gap: 18px;
  color: #415066;
  font-size: 20px;
}

.summary-copy p {
  margin-bottom: 0;
}

.brands {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.brand-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.brand-photo {
  height: 205px;
  overflow: hidden;
  background: var(--soft-blue);
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
  margin-bottom: 24px;
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 251, 0.92)),
    var(--white);
}

.brand-logo-wrap img {
  width: min(82%, 260px);
  max-height: 98px;
  object-fit: contain;
}

.v15-logo-wrap {
  height: 118px;
}

.v15-logo-wrap img {
  width: min(92%, 300px);
  max-height: 106px;
  filter: saturate(1.08) brightness(1.04) contrast(1.04);
}

.shield-logo img {
  max-height: 108px;
}

.wide-logo img {
  width: 92%;
}

.brand-summary {
  color: #475467;
  font-size: 16px;
}

.brand-points {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  color: #3d4858;
  list-style: none;
}

.brand-points li {
  position: relative;
  padding-left: 20px;
}

.brand-points li::before {
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.brand-actions {
  margin-top: auto;
  padding: 0 26px 26px;
}

.brand-actions .btn {
  flex: 1 1 130px;
}

.model {
  background: var(--deep);
  color: var(--white);
}

.model .eyebrow,
.model h2,
.model h3 {
  color: var(--white);
}

.model .eyebrow {
  color: var(--gold-soft);
}

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

.model-list article {
  min-height: 245px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 26px;
}

.model-list span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 950;
}

.model-list p {
  margin-bottom: 0;
  color: #d7e0ec;
}

.about {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 38px;
  align-items: stretch;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.about-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 5px solid var(--gold);
  background:
    linear-gradient(135deg, rgba(238, 244, 251, 0.92), rgba(255, 255, 255, 0.96)),
    var(--white);
  padding: 34px 38px;
}

.about-card > p {
  margin-bottom: 0;
  color: #475467;
  font-size: 18px;
}

.about-copy {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #415066;
  font-size: 18px;
}

.about-copy p {
  margin-bottom: 0;
}

.about-divider {
  width: min(100%, 520px);
  height: auto;
  margin-top: 32px;
  color: var(--navy);
}

.about-divider path,
.about-divider circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.about-divider circle {
  fill: var(--gold);
  stroke: var(--gold);
}

.people-band {
  padding: 34px 0;
  background: var(--white);
}

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

.people-grid figure {
  margin: 0;
}

.people-grid img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.people-grid figcaption {
  margin-top: 12px;
  color: #5b6676;
  font-size: 14px;
}

.connect {
  background: var(--soft-blue);
}

.connect-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  border: 1px solid #ccd9e8;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  padding: 38px;
}

.connect-panel p {
  max-width: 720px;
  margin-bottom: 0;
  color: #475467;
  font-size: 18px;
}

.connect-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  background: var(--deep);
  color: var(--white);
  padding: 46px 0 26px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 28px;
}

.footer-grid img {
  width: 150px;
  margin-bottom: 14px;
}

.footer-grid p {
  max-width: 520px;
  margin-bottom: 0;
  color: #d7e0ec;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  color: #e7eef9;
  font-weight: 700;
}

.copyright {
  padding-top: 22px;
  color: #b8c5d5;
  font-size: 13px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 30, 0.64);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.26);
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 850;
}

.modal-logo {
  max-width: 220px;
  max-height: 130px;
  margin: 10px 0 22px;
  object-fit: contain;
}

.modal-panel p {
  color: #475467;
  font-size: 18px;
}

.modal-panel ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 28px;
  padding-left: 20px;
  color: #313b4b;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .hero-grid,
  .summary-grid,
  .model-grid,
  .about-grid,
  .connect-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero-visual > img,
  .hero-logo-panel {
    min-height: auto;
    height: auto;
  }

  .hero-visual > img {
    height: 390px;
  }

  .hero-logo-panel {
    min-height: 430px;
  }

  .keystone-diagram {
    min-height: 382px;
  }

  .brand-grid,
  .model-list {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: auto;
  }

  .connect-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .section-pad {
    padding: 64px 0;
  }

  .nav-wrap {
    min-height: 70px;
  }

  .brand-mark img {
    width: 152px;
    height: 48px;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

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

  .hero {
    padding: 52px 0 58px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 31px;
  }

  .lead,
  .summary-copy {
    font-size: 18px;
  }

  .hero-visual > img {
    height: 310px;
  }

  .hero-logo-panel {
    min-height: 440px;
    padding: 18px;
  }

  .keystone-diagram {
    min-height: 400px;
  }

  .diagram-core {
    width: min(88%, 238px);
    min-height: 162px;
    padding: 20px 16px 14px;
  }

  .keystone-core-logo {
    max-height: 116px;
  }

  .diagram-node {
    width: 96px;
    height: 72px;
    padding: 10px;
  }

  .node-v15 {
    top: 18px;
    left: 12px;
  }

  .node-kca {
    top: 18px;
    right: 12px;
  }

  .node-kk {
    bottom: 16px;
    width: 146px;
  }

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

  .people-grid img {
    height: 255px;
  }

  .brand-body,
  .brand-actions,
  .about-card,
  .connect-panel,
  .modal-panel {
    padding: 24px;
  }

  .footer-grid {
    display: block;
  }

  .site-footer nav {
    margin-top: 26px;
  }
}

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

  .diagram-lines .line {
    stroke-dashoffset: 0;
  }

  .diagram-node,
  .keystone-core-logo {
    opacity: 1;
    transform: none;
  }

  .node-kk {
    transform: translateX(-50%);
  }

  .diagram-core::after {
    width: 74%;
  }
}
