:root {
  --white: #FFFFFF;
  --surface: #F5F6F7;
  --navy: #16273F;
  --navy-hover: #1F3554;
  --gray: #64748B;
  --gray-border: #E2E5E9;
  --black: #0A0A0B;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  display: block;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 18px;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
}

.nav-mobile.open { display: flex; }

/* Buttons */

.btn {
  display: inline-block;
  border: none;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.btn-cta {
  background: var(--navy);
  color: #fff;
  padding: 11px 20px;
  box-shadow: 0 0 0 rgba(22, 39, 63, 0);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.btn-cta:hover {
  background: var(--navy-hover);
  box-shadow: 0 0 18px rgba(22, 39, 63, 0.35);
}

.btn-large {
  padding: 14px 28px;
  font-size: 0.95rem;
}

.nav-cta { padding: 9px 16px; font-size: 0.88rem; }

/* Sections */

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-border);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* Hero */

.hero { padding: 72px 0; }

.hero-inner { max-width: 720px; }

.hero .eyebrow { color: var(--gray); }

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--navy);
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 540px;
}

/* Services */

.services-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
  border-top: 1px solid var(--gray-border);
}

.service-row {
  display: grid;
  grid-template-columns: 56px minmax(200px, 280px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  margin: 0 -24px;
  border-radius: 8px;
  border-bottom: 1px solid var(--gray-border);
  box-shadow: 0 0 0 rgba(22, 39, 63, 0);
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.service-row:hover {
  background: var(--surface);
  box-shadow: 0 0 22px rgba(22, 39, 63, 0.12);
}

.service-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
}

.service-row h3 {
  font-size: 1.02rem;
  color: var(--navy);
}

.service-row p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Work / case study */

.case-study {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 32px;
}

.case-visual {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-border);
  line-height: 0;
  box-shadow: 0 0 0 rgba(22, 39, 63, 0);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.case-visual:hover {
  box-shadow: 0 0 28px rgba(22, 39, 63, 0.28);
  transform: translateY(-2px);
}

.case-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.case-content h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.case-content p {
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.link-out {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.link-out:hover { text-decoration: underline; }

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 0 0 rgba(22, 39, 63, 0);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.faq-item:hover {
  border-color: rgba(22, 39, 63, 0.25);
  box-shadow: 0 0 20px rgba(22, 39, 63, 0.14);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--gray);
  margin-left: 16px;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  color: var(--gray);
  line-height: 1.6;
  margin-top: 12px;
  font-size: 0.92rem;
}

/* Footer */

.footer {
  background: var(--black);
  color: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-links a:hover { color: #fff; }

/* Legal pages */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-page h1 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-page .updated {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 32px;
  display: block;
}

.legal-page h2 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 32px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-page ul {
  margin: 0;
  padding-left: 20px;
}

.legal-page a.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-page a.back-link:hover { text-decoration: underline; }

/* Modal — the one place on this site with motion */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(10, 10, 11, 0.22);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal h2 { font-size: 1.3rem; margin-bottom: 8px; color: var(--navy); }

.modal-sub {
  color: var(--gray);
  font-size: 0.88rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.15s ease, transform 0.15s ease;
}

.modal-close:hover {
  color: var(--navy);
  transform: rotate(90deg);
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--navy);
}

.label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-optional {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  background: var(--surface);
  border: 1px solid var(--gray-border);
  border-radius: 20px;
  padding: 2px 8px;
}

.modal input,
.modal select,
.modal textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22, 39, 63, 0.12);
}

.modal-note {
  color: var(--gray);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: -2px 0 2px;
}

.modal button[type="submit"] {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.modal button[type="submit"]:active { transform: scale(0.98); }

.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-success-view {
  text-align: center;
  padding: 8px 0 4px;
}

.modal-success-view h2 { margin-bottom: 6px; }

.modal-success-view .modal-sub { margin-bottom: 10px; }

.modal-success-view .modal-note { margin-bottom: 22px; }

.modal-success-view #modalDone { width: 100%; }

.success-check {
  width: 56px;
  height: 56px;
  margin: 4px auto 18px;
  display: block;
}

.success-check-circle {
  stroke: var(--navy);
  stroke-width: 2;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: successCircle 0.5s ease forwards;
}

.success-check-mark {
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: successMark 0.3s ease forwards 0.45s;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes successMark {
  to { stroke-dashoffset: 0; }
}

/* Responsive */

@media (max-width: 860px) {
  .case-study { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; row-gap: 4px; }
  .service-row p { grid-column: 2; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 44px 0; }
  .hero { padding: 52px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
