:root {
  --navy: #0f2634;
  --navy-2: #223e4f;
  --accent: #9dbdd0;        /* light steel blue, for use on navy */
  --accent-dark: #3f6d88;   /* steel blue, for use on white */
  --ink: #0f2634;
  --text: #4a5560;
  --muted: #7a858f;
  --line: #e4e9ed;
  --tint: #f4f7f9;
  --radius: 18px;
  --max: 1180px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --font: "Titillium Web", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font); font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: #fff; color: var(--navy); }
.btn-accent:hover { background: var(--accent); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-lg { padding: 18px 34px; font-size: 20px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.text-link { font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--accent-dark); padding-bottom: 2px; transition: color .2s; }
.text-link:hover { color: var(--accent-dark); }
.text-link span { display: inline-block; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 80px; padding: 0 32px; color: #fff;
  transition: background .3s, height .3s, color .3s, box-shadow .3s;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(15, 38, 52, .96); backdrop-filter: blur(14px);
  color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -15px rgba(0, 0, 0, .5);
}
.site-header.scrolled { height: 66px; }
.brand { display: block; position: relative; height: 30px; }
.brand img { height: 30px; width: auto; transition: opacity .3s; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { position: relative; text-decoration: none; font-size: 16px; font-weight: 600; opacity: .9; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after, .site-nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: 9px 20px; border-radius: 999px; border: 1.5px solid currentColor; opacity: 1 !important; transition: background .25s, border-color .25s, color .25s; }
.nav-cta:hover, .nav-cta:focus-visible { background: #fff; border-color: #fff; color: var(--navy); }

.menu-toggle { display: none; position: relative; width: 40px; height: 40px; padding: 0; margin-right: -8px; background: none; border: 0; cursor: pointer; color: inherit; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--navy); color: #fff; text-align: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.1); animation: kenburns 14s var(--ease) forwards; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 38, 52, .9), rgba(15, 38, 52, .78) 50%, rgba(15, 38, 52, .95)); }
.hero-content { position: relative; max-width: 900px; padding: 120px 24px 100px; }
.hero-eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(40px, 7vw, 82px); font-weight: 700; letter-spacing: -.01em; }
.hero-sub { margin: 18px 0 0; font-size: clamp(20px, 2.6vw, 28px); font-style: italic; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s ease-in-out infinite; }

.hero-eyebrow, .hero h1, .hero-sub, .hero-actions, .scroll-cue { opacity: 0; animation: rise 1s var(--ease) forwards; }
.hero-eyebrow { animation-delay: .2s; }
.hero h1 { animation-delay: .4s; }
.hero-sub { animation-delay: .7s; }
.hero-actions { animation-delay: 1s; }
.scroll-cue { animation: fade 1s ease 1.6s forwards; }

@keyframes kenburns { to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); }
.eyebrow-light { color: var(--accent); }
h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 300; margin-bottom: 26px; }
h2 em { font-style: normal; font-weight: 700; }
.section-head h2 { margin-bottom: 0; font-weight: 700; }
.lead { font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }

/* Approach */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.steps { display: flex; gap: 12px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 28px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--tint); font-weight: 600; color: var(--ink); }
.steps span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.approach-image img { width: 100%; border-radius: 24px; box-shadow: 0 30px 60px -25px rgba(15, 38, 52, .45); }

/* Platforms strip */
.platforms { background: var(--navy); color: #fff; padding: 36px 0; }
.platforms-inner { display: flex; align-items: center; justify-content: center; gap: 40px; text-align: center; }
.platforms p { margin: 0; font-size: 22px; }
.platforms img { width: 200px; height: auto; flex: none; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border-radius: var(--radius); padding: 32px 30px;
  box-shadow: 0 1px 2px rgba(15, 38, 52, .05), 0 12px 32px -18px rgba(15, 38, 52, .25);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 38, 52, .05), 0 24px 40px -20px rgba(15, 38, 52, .35); }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(63, 109, 136, .1); color: var(--accent-dark); margin-bottom: 18px; }
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.service p { margin: 0; font-size: 16px; line-height: 1.65; }

/* Work */
.projects { display: grid; gap: 80px; }
.project { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.project-flip .project-image { order: 2; }
.project-image { display: block; border-radius: 22px; overflow: hidden; background: #ececec; box-shadow: 0 30px 60px -30px rgba(15, 38, 52, .45); }
.project-image img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.project-image:hover img { transform: scale(1.03); }
.project-label { margin: 0 0 6px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); }
.project h3 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; margin-bottom: 14px; }
.project-text p:not(.project-label) { margin: 0 0 22px; }

/* Contact */
.contact { position: relative; background: var(--navy); color: rgba(255, 255, 255, .85); text-align: center; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -350px; border-radius: 50%; background: radial-gradient(circle, rgba(157, 189, 208, .22), transparent 65%); }
.contact-inner { position: relative; padding-top: 120px; padding-bottom: 120px; max-width: 760px; }
.contact h2 { color: #fff; font-weight: 700; }
.contact p { font-size: 20px; margin: 0 0 36px; }

/* Footer */
.site-footer { background: #0a1b25; color: rgba(255, 255, 255, .6); font-size: 15px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--navy); color: #fff; text-decoration: none; border-radius: 50%; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none; transition: opacity .3s, background .2s;
}
.to-top:hover { background: var(--accent-dark); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .split, .project { grid-template-columns: 1fr; gap: 40px; }
  .project-flip .project-image { order: 0; }
  .section { padding: 88px 0; }
}
@media (max-width: 820px) {
  .site-header { padding: 0 16px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; color: var(--ink); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .25);
  }
  .menu-open .site-nav { display: flex; }
  .site-nav a { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 17px; transition: background .2s, padding-left .25s var(--ease); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav a:not(.nav-cta):hover, .site-nav a:not(.nav-cta):active { background: var(--tint); padding-left: 28px; }
  .site-nav .nav-cta { margin: 12px 16px 16px; justify-content: center; text-align: center; border: 1.5px solid var(--navy); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .services { grid-template-columns: 1fr; gap: 16px; }
  .service { padding: 26px 22px; }
  .section { padding: 72px 0; }
  .projects { gap: 64px; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { font-size: 17px; padding: 16px 22px; }
  .platforms { padding: 38px 0 44px; }
  .platforms-inner { flex-direction: column; gap: 22px; }
  .platforms p { font-size: 19px; line-height: 1.5; max-width: 300px; }
  .platforms img { width: 170px; }
  .contact-inner { padding-top: 88px; padding-bottom: 88px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
