:root {
  --navy-950: #070d18;
  --navy-900: #0b1424;
  --navy-800: #13203a;
  --navy-700: #1e2e4f;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --accent: #e0a458;
  --accent-strong: #c98a3d;
  --accent-ink: #1a1206;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --shadow-lg: 0 30px 60px -20px rgba(7, 13, 24, .45);
  --container: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.scrolled {
  background: rgba(11, 20, 36, .88);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.brand strong { font-weight: 800; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-mark rect { fill: var(--navy-800); stroke: rgba(255, 255, 255, .12); }
.brand-mark path { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; fill: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 4px; }
  .nav-links .btn { margin-top: 10px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(224, 164, 88, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(59, 91, 160, .25), transparent 60%),
    var(--navy-900);
  color: rgba(255, 255, 255, .78);
  padding: calc(var(--header-h) + 72px) 0 96px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.hero h1 .accent { color: var(--accent); }
.hero .eyebrow { color: var(--accent); }

.hero-summary {
  margin-top: 22px;
  font-size: 18px;
  max-width: 560px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 40px;
  margin: 48px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-stats dt {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stats dd {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
}
.mosaic-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.mosaic-tile:nth-child(2), .mosaic-tile:nth-child(4) { transform: translateY(32px); }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic-tile span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 13, 24, .72);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { transform: none; }
  .mosaic-tile:nth-child(2), .mosaic-tile:nth-child(4) { transform: none; }
}
@media (max-width: 520px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero-stats dt { font-size: 26px; }
  .hero-stats dd { font-size: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Trust bar ---------- */
.trust {
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.trust-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 48px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.trust-list li {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #94a3b8;
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--navy-900); color: rgba(255, 255, 255, .72); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.section-lead { margin-top: 16px; font-size: 17px; color: var(--muted); }
.section-dark .section-lead { color: rgba(255, 255, 255, .62); }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-900);
  margin-bottom: 22px;
}
.service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--muted); }

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

/* ---------- Tags / meta / links ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-list li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1f5;
  color: #475569;
  font-size: 12.5px;
  font-weight: 500;
}

.project-meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.project-links { display: flex; flex-wrap: wrap; gap: 16px; }
.project-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.project-links a:hover { color: var(--accent-strong); }

.text-link { font-size: 14px; font-weight: 600; color: var(--ink); }

/* ---------- Case studies ---------- */
.case-list { display: grid; gap: 32px; }
.case {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
}
.case:hover, .case:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.case:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.case:nth-child(even) .case-media { order: 2; }
.case-media { position: relative; min-height: 340px; background: var(--navy-900); }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.case-body h3 { font-size: 28px; font-weight: 800; }
.case-body > p:not(.project-meta) { font-size: 15.5px; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }
.case:hover .text-link { color: var(--accent-strong); }

@media (max-width: 860px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
  .case-media { min-height: 0; aspect-ratio: 16 / 9; }
  .case-body { padding: 28px 24px; }
  .case-body h3 { font-size: 24px; }
}

/* ---------- Portfolio grid ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filter-bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-bar button:hover { border-color: #cbd5e1; }
.filter-bar button[aria-selected="true"] {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.filter-count {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(100, 116, 139, .14);
}
.filter-bar button[aria-selected="true"] .filter-count { background: rgba(255, 255, 255, .16); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.project-card[hidden] { display: none; }
.project-card:hover, .project-card:focus-visible {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.project-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.project-card:hover .project-cover img { transform: scale(1.05); }

.project-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
  flex: 1;
}
.project-body h3 { font-size: 18px; }
.project-desc { font-size: 14.5px; color: var(--muted); flex: 1; }
.project-body .tag-list { margin-top: 4px; }

.video-thumb {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(7, 13, 24, .6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .3);
}
.video-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.industries h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.industry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.industry-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.industry-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
@media (max-width: 860px) {
  .industries { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.process-grid li {
  padding: 28px;
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  background: var(--surface-alt);
}
.process-step {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.process-grid h3 { font-size: 19px; margin-bottom: 10px; }
.process-grid p { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 22px; }
.about-text p + p { margin-top: 16px; }
.cert-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.cert-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.cert-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--accent);
  font-size: 13px;
  flex: none;
}
.capabilities {
  display: grid;
  gap: 16px;
}
.cap-group {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cap-group h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(224, 164, 88, .18), transparent 60%),
    var(--navy-800);
  padding: 88px 0;
  color: rgba(255, 255, 255, .72);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 12px; }
.cta p { max-width: 560px; font-size: 17px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
  .cta-actions, .cta-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .5);
  padding: 40px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .7); }
.footer-links a:hover { color: #fff; }
.footer-copy { flex-basis: 100%; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 13, 24, .78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.open { opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(.98);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(7, 13, 24, .65);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(7, 13, 24, .9); }

.modal-carousel {
  position: relative;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-image {
  width: 100%;
  height: min(60vh, 520px);
  object-fit: contain;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.carousel-btn:hover { background: rgba(255, 255, 255, .26); }
.carousel-btn[hidden] { display: none; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots[hidden] { display: none; }
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.carousel-dots button.active { width: 22px; background: var(--accent); }

.modal-body {
  padding: 32px 36px 36px;
  display: grid;
  gap: 14px;
}
.modal-body h3 { font-size: 26px; font-weight: 800; }
.modal-body > p:not(.project-meta) { font-size: 16px; }
@media (max-width: 600px) {
  .modal-overlay { padding: 12px; }
  .modal-body { padding: 24px 20px 28px; }
}

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