/* === Variables === */
:root {
  --ink: #0a2851;
  --ink2: #123b6a;
  --blue: #2b74d6;
  --cyan: #74b8e9;
  --gold: #d89a2b;
  --navy: #041b32;
  --navy2: #07345a;
  --paper: #f7fbff;
  --line: #dce8f2;
  --muted: #5b718b;
  --white: #fff;
  --shadow: 0 24px 70px rgba(3,27,50,.12);
  --radius: 22px;
  --radius-sm: 17px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* === Layout === */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}
section { padding: 96px 0; }
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.on {
  opacity: 1;
  transform: none;
}

/* === Header === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10,40,81,.08);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  min-width: 260px;
}
.wordmark span { display: block; }
.wordmark small {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .11em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Share button */
.share-btn {
  position: relative;
  margin-left: 16px;
  padding: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}
.share-icon {
  color: var(--muted);
  transition: color .3s;
  display: block;
}
.share-btn:hover .share-icon {
  color: var(--blue);
}
.share-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  z-index: 50;
}
.share-tooltip.show {
  opacity: 1;
}

.menu {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 15px;
  color: #45617f;
}
.menu a:hover { color: var(--blue); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  transition: .2s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(10,40,81,.2);
}
.btn.outline {
  background: var(--white);
  color: var(--ink);
  border-color: #cbdcea;
}

/* === Typography === */
.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0 0 20px;
  font-weight: 800;
}
h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 0;
  font-weight: 800;
}
h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

/* === Section Header === */
.section-head {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.dark {
  background: linear-gradient(180deg, var(--navy), var(--navy2));
  color: var(--white);
}
.dark .section-head p { color: #a8c4db; }
.dark .eyebrow { color: var(--cyan); }

/* === Hero === */
.hero {
  padding: 64px 0 40px;
  background: linear-gradient(112deg, var(--white) 0 42%, var(--paper) 42%);
}
.hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.hero-sub {
  font-size: 20px;
  color: #476584;
  max-width: 580px;
  margin: 0 0 28px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Slider */
.hero-media {
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #020810;
  box-shadow: var(--shadow);
}
.hero-media .slides { position: relative; width: 100%; height: 100%; }
.hero-media .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero-media .slide.active { opacity: 1; }
.slide-caption {
  position: absolute;
  z-index: 4;
  bottom: 18px;
  right: 18px;
  max-width: 300px;
  text-align: right;
  background: rgba(3,27,50,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: opacity .35s;
}
.slide-caption strong { display: block; font-size: 15px; font-weight: 750; }
.slide-caption span { display: block; margin-top: 4px; font-size: 13px; color: #a8c4db; }
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,14,28,.08), transparent 55%, rgba(2,14,28,.25));
  pointer-events: none;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 42px rgba(10,40,81,.06);
}
.stat { padding: 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; }
.stat b { display: block; font-size: 15px; margin: 6px 0; font-weight: 700; }
.stat span { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* === Capabilities === */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.capability-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  transition: .2s;
}
.capability-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.capability-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  object-fit: contain;
}
.capability-card h3 { font-size: 20px; margin-bottom: 10px; }
.capability-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* === Process Timeline === */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.process-step {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.process-step .number {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.process-step h3 { font-size: 20px; margin-bottom: 10px; }
.process-step p {
  margin: 0 0 16px;
  color: #a8c4db;
  font-size: 14px;
  line-height: 1.5;
}
.process-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.process-meta .label { color: var(--cyan); font-weight: 700; }
.process-meta .value { color: #d7e5ef; }

/* === Case Study === */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.case-visual {
  background: #000;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.case-visual .case-img {
  position: relative;
  overflow: hidden;
}
.case-visual .case-img:first-child { grid-column: 1 / -1; }
.case-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.case-visual .case-img:first-child img { height: 280px; }
.case-visual .img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.case-copy { padding: 40px; }
.case-copy > div { margin-bottom: 24px; }
.case-copy > div:last-child { margin-bottom: 0; }
.case-copy strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 8px;
}
.case-copy p {
  margin: 0;
  color: #3f5873;
  font-size: 15px;
  line-height: 1.6;
}
.case-copy ul {
  margin: 0;
  padding-left: 20px;
  color: #3f5873;
}
.case-copy li { margin: 8px 0; font-size: 15px; line-height: 1.5; }

/* === Formats === */
.formats { background: var(--paper); }
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.format-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 34px rgba(10,40,81,.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.format-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
}
.format-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 16px 48px rgba(43,116,214,.12);
}
.format-card.featured::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.format-card .number {
  font-size: 42px;
  color: #b8cde0;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
}
.format-card h3 { font-size: 22px; margin-bottom: 4px; }
.format-card .subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.format-card .description {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}
.format-budget {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.format-budget .budget {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.format-budget .note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.format-card .btn {
  margin-top: 16px;
  width: 100%;
}

/* === Expertise === */
.expertise-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: stretch;
}
.equipment-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.equipment-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}
.equipment-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}
.equipment-item .spec {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}
.equipment-item .tasks {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}
.locations-panel {
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(145deg, #07233e, #08406d);
  color: var(--white);
}
.locations-panel h3 { font-size: 26px; margin-bottom: 20px; }
.location {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.location:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.location .city {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.location .place {
  font-size: 15px;
  color: var(--cyan);
}
.location .address {
  font-size: 14px;
  color: #a8c4db;
  margin-top: 2px;
}
.location .note {
  font-size: 13px;
  color: #7a9ab5;
  margin-top: 4px;
}
.team-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
  color: #c8d8e5;
  line-height: 1.5;
}

/* === Contact === */
.contact {
  background: var(--navy);
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact .section-head { display: block; margin-bottom: 0; }
.contact .section-head p { color: #a8c4db; margin-top: 16px; }
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.contact-card small {
  display: block;
  color: #8aa7bd;
  font-size: 13px;
  margin-bottom: 8px;
}
.contact-card strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
}
.contact-card a:hover { color: var(--cyan); }

/* Social links */
.social-card {
  grid-column: 1 / -1;
}
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.social-links a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .3s, color .3s, background .3s;
}
.social-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(255,255,255,.06);
}

.footer-socials {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-socials a {
  display: block;
  opacity: .7;
  transition: opacity .3s;
}
.footer-socials a:hover {
  opacity: 1;
}
.footer-socials img {
  height: 36px;
  width: 36px;
  display: block;
}

/* === Modal === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,27,50,.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: calc(100% - 48px);
  box-shadow: var(--shadow);
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
}
.modal-content h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.modal-content p {
  color: var(--muted);
  line-height: 1.6;
}
.modal-content a { color: var(--blue); text-decoration: underline; }
.modal-contact {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-contact a {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 16px;
  background: #f4f8fc;
  border-radius: 8px;
  border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.modal-contact a:hover {
  background: #e8f0f8;
  border-color: var(--blue);
}

/* === Feedback wizard === */
.feedback-content {
  max-width: 520px;
}
.fb-progress {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 20px;
}
.fb-question {
  font-size: 19px;
  font-weight: 700;
  margin: 10px 0 14px;
  line-height: 1.35;
}
.fb-choice {
  display: flex;
  gap: 12px;
}
.fb-choice .btn {
  flex: 1;
  text-align: center;
}
.fb-text {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  resize: vertical;
}
.fb-text:focus {
  outline: none;
  border-color: var(--blue);
}
.fb-next {
  margin-top: 14px;
  width: 100%;
}
.fb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* === Partners === */
.partners {
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.partners-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.partners-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.partners-logos a {
  display: block;
  opacity: .7;
  transition: opacity .3s;
}
.partners-logos a:hover { opacity: 1; }
.partners-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* === Footer === */
footer {
  padding: 28px 0;
  background: #021223;
  color: #6a8aaa;
  font-size: 13px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-left a {
  color: #4a6a8a;
  font-size: 12px;
  text-decoration: none;
  transition: color .3s;
}
.footer-left a:hover {
  color: var(--cyan);
}

/* === Responsive === */
@media (max-width: 980px) {
  .menu { display: none; }
  .hero-grid,
  .section-head,
  .case-grid,
  .contact-grid,
  .expertise-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .format-grid,
  .equipment-list { grid-template-columns: 1fr 1fr; }
  .process-timeline { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .case-visual { grid-template-columns: 1fr; }
  .case-visual .case-img:first-child { grid-column: auto; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 24px); }
  .wordmark { min-width: 0; font-size: 15px; }
  .nav > .btn { display: none; }
  .hero { padding-top: 40px; }
  .hero-media { height: 360px; }
  section { padding: 64px 0; }
  .capability-grid,
  .format-grid,
  .equipment-list,
  .process-timeline,
  .contact-cards { grid-template-columns: 1fr; }
  .case-copy { padding: 24px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .footer-row { flex-wrap: wrap; justify-content: center; text-align: center; }
  .footer-socials { justify-content: center; }
}
