:root {
  --navy: #0a2148;
  --navy-deep: #061a3b;
  --navy-muted: #304463;
  --ivory: #fbfaf7;
  --paper: #ffffff;
  --mist: #edf4fb;
  --sand: #f8ecd8;
  --amber: #d89221;
  --line: #dfe5ec;
  --shadow: 0 16px 40px rgba(10, 33, 72, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--ivory);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: relative;
  z-index: 10;
  width: min(1440px, 100%);
  height: 88px;
  margin: 0 auto;
  padding: 0 clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(251, 250, 247, 0.9);
}
.wordmark {
  width: max-content;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a,
.login-link {
  position: relative;
  color: #1d3153;
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--navy);
  transition: right 180ms ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { right: 0; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.login-link {
  padding: 13px 22px;
  border: 1px solid rgba(10, 33, 72, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.82);
}
.nav-primary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 650;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.nav-primary {
  min-width: 166px;
  gap: 26px;
  padding: 14px 20px;
  color: #fff;
  background: var(--navy-deep);
  border-radius: 9px;
  font-size: 14px;
}
.nav-primary:hover,
.nav-primary:focus-visible,
.button-primary:hover,
.button-primary:focus-visible { transform: translateY(-2px); background: #0f315f; }

.hero {
  width: min(1440px, 100%);
  min-height: 602px;
  margin: 0 auto;
  padding-left: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(500px, 46%) minmax(0, 54%);
  align-items: stretch;
  overflow: hidden;
  background: var(--ivory);
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 50px clamp(30px, 4vw, 70px) 58px 0;
}
.eyebrow {
  display: inline-flex;
  padding: 9px 15px;
  color: #17355e;
  background: var(--mist);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.hero h1 {
  max-width: 690px;
  margin: 24px 0 20px;
  color: var(--navy-deep);
  font-size: clamp(53px, 4.75vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 760;
}
.hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: var(--navy-muted);
  font-size: 17px;
  line-height: 1.52;
}
.hero-actions { display: flex; gap: 14px; margin-top: 29px; }
.button {
  min-height: 54px;
  min-width: 190px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 15px;
}
.button-primary { justify-content: space-between; gap: 28px; color: #fff; background: var(--navy-deep); box-shadow: 0 12px 25px rgba(6, 26, 59, 0.13); }
.button-secondary { gap: 13px; color: var(--navy-deep); background: rgba(255, 255, 255, 0.9); border: 1px solid var(--navy-deep); }
.button-secondary:hover,
.button-secondary:focus-visible { transform: translateY(-2px); background: #fff; box-shadow: 0 10px 24px rgba(10, 33, 72, 0.08); }
.play {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding-left: 2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
}
.hero-visual { position: relative; min-width: 0; overflow: hidden; }
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 23%;
  background: linear-gradient(90deg, var(--ivory) 0%, rgba(251, 250, 247, 0.82) 30%, transparent 100%);
  pointer-events: none;
}
.hero-visual img { width: 100%; height: 100%; min-height: 602px; object-fit: cover; object-position: 62% center; }
.editorial-note {
  position: absolute;
  z-index: 2;
  left: 8%;
  top: 13%;
  color: var(--navy-deep);
  transform: rotate(-7deg);
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.editorial-note::after {
  content: "";
  display: block;
  width: 120px;
  height: 16px;
  margin: 2px 0 0 40px;
  border-top: 3px solid var(--amber);
  border-radius: 50%;
  transform: rotate(-3deg);
}

.capability-strip {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 18px clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 54px);
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(10, 33, 72, 0.06);
  border-bottom: 1px solid rgba(10, 33, 72, 0.08);
}
.capability { min-height: 88px; display: flex; align-items: center; gap: 18px; }
.capability-icon {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #7a4e1c;
  background: var(--sand);
  border-radius: 50%;
}
.capability-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.capability strong { color: #243b60; font-size: 16px; line-height: 1.45; font-weight: 560; }

.industries {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 52px clamp(28px, 4vw, 64px) 70px;
  background: #fff;
}
.industries-heading {
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
}
.industries-heading > div > span { color: #6c7d95; font-size: 10px; font-weight: 750; letter-spacing: 0.18em; }
.industries-heading h2 { margin: 9px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.industries-heading > p { max-width: 570px; margin: 0; color: #5b6c84; font-size: 14px; line-height: 1.6; }
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.industry-card {
  min-width: 0;
  overflow: hidden;
  display: block;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.industry-card:hover,
.industry-card:focus-visible { transform: translateY(-4px); border-color: #c5d1df; box-shadow: var(--shadow); outline: none; }
.industry-card img { width: 100%; height: clamp(180px, 15vw, 220px); object-fit: cover; transition: transform 350ms ease; }
.industry-card:hover img { transform: scale(1.015); }
.industry-body { min-height: 126px; padding: 20px 20px 18px; display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.industry-body > span { display: grid; gap: 8px; }
.industry-body strong { color: var(--navy-deep); font-size: 17px; font-weight: 720; }
.industry-body small { max-width: 225px; color: #64748b; font-size: 13px; line-height: 1.45; }
.industry-body b { padding-bottom: 3px; color: var(--navy-deep); font-size: 24px; font-weight: 400; transition: transform 180ms ease; }
.industry-card:hover .industry-body b { transform: translateX(4px); }

.motion-rise { animation: rise-in 420ms ease both; }
.motion-fade { animation: fade-in 520ms 80ms ease both; }
.reveal { opacity: 1; transform: none; transition: opacity 360ms ease, transform 360ms ease; }
.motion-enabled .reveal { opacity: 0; transform: translateY(10px); }
.motion-enabled .reveal.is-visible { opacity: 1; transform: none; }
.capability:nth-child(2), .industry-card:nth-child(2) { transition-delay: 45ms; }
.capability:nth-child(3), .industry-card:nth-child(3) { transition-delay: 90ms; }
.capability:nth-child(4), .industry-card:nth-child(4) { transition-delay: 135ms; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .nav-links { justify-content: center; gap: 24px; }
  .nav-links a { font-size: 13px; }
  .hero { grid-template-columns: minmax(460px, 47%) minmax(0, 53%); }
  .hero h1 { font-size: clamp(48px, 5vw, 61px); }
  .editorial-note { left: 4%; }
  .capability { gap: 12px; }
  .capability-icon { flex-basis: 52px; width: 52px; height: 52px; }
  .capability strong { font-size: 14px; }
  .industry-grid { gap: 15px; }
  .industry-body { padding: 17px; }
}

@media (max-width: 940px) {
  .site-header { height: 76px; }
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 40px 55px; }
  .hero h1 { font-size: clamp(48px, 8vw, 67px); }
  .hero-visual { height: 460px; }
  .hero-visual::before { inset: 0 0 auto; width: 100%; height: 18%; background: linear-gradient(180deg, var(--ivory), transparent); }
  .hero-visual img { min-height: 0; }
  .editorial-note { left: 8%; top: 11%; }
  .capability-strip { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries-heading { align-items: start; flex-direction: column; gap: 18px; }
}

@media (max-width: 620px) {
  .site-header { height: 68px; padding: 0 18px; }
  .wordmark { font-size: 26px; }
  .login-link { padding: 10px 13px; border: 0; background: transparent; }
  .nav-primary { min-width: 0; padding: 11px 14px; }
  .nav-primary span { display: none; }
  .hero-copy { padding: 55px 20px 42px; }
  .eyebrow { padding: 8px 10px; font-size: 9px; letter-spacing: 0.16em; }
  .hero h1 { margin-top: 20px; font-size: clamp(41px, 12vw, 53px); line-height: 1.01; }
  .hero-copy > p { font-size: 15px; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { height: 330px; }
  .hero-visual img { object-position: 67% center; }
  .editorial-note { top: 9%; font-size: 19px; }
  .capability-strip { padding: 18px 20px; gap: 8px 16px; }
  .capability { min-height: 78px; gap: 10px; }
  .capability-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .capability-icon svg { width: 24px; height: 24px; }
  .capability strong { font-size: 12px; }
  .industries { padding: 46px 20px 55px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card img { height: 230px; }
  .industry-body { min-height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
