:root {
  /* Architect palette: warm neutrals + blueprint accent */
  --bg: #faf9f7;
  --bg-alt: #f2f0ec;
  --paper: #ffffff;
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --muted: #6b6b6b;
  --border: rgba(26, 26, 26, 0.08);
  --border-strong: rgba(26, 26, 26, 0.14);
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.06);
  --shadow-hover: 0 12px 40px rgba(26, 26, 26, 0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --max: 1120px;

  /* Accent: deep indigo (blueprint) */
  --accent: #2c3e5a;
  --accent-hover: #1a2744;
  --accent-muted: rgba(44, 62, 90, 0.12);
  --accent-muted-hover: rgba(44, 62, 90, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.muted {
  color: var(--muted);
}

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 249, 247, 0.95);
  border-color: var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(320px, 70vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--accent-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(44, 62, 90, 0.25);
}

.site-nav a.btn--primary,
.site-nav a.btn--primary:visited,
.site-nav a.btn--primary:active {
  color: #fff;
}

.site-nav a.btn--primary:hover {
  color: #fff;
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(44, 62, 90, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(44, 62, 90, 0.35);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-alt);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ----- Hero (video + overlay + content) ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--accent);
  background-image: url('../images/dashboard-image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.5) 0%,
    rgba(26, 26, 26, 0.65) 50%,
    rgba(26, 26, 26, 0.82) 100%
  );
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 20px;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn--hero {
  padding: 14px 28px;
  font-size: 1rem;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn--hero:hover {
  background: var(--bg);
  color: var(--accent-hover);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

/* ----- Sections (shared) ----- */
.section {
  padding: 88px 0;
  text-align: center;
}

.section .container {
  text-align: center;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

h1, h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--text);
}

.section > .container > .muted {
  font-size: 1.0625rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
}

/* ----- Who We Are (profiles) ----- */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.profile-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 20px;
  border: 2px solid var(--border);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  margin: 0 0 12px;
}

.profile-text {
  text-align: left;
  margin-top: 0;
}

.profile-excerpt {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 0.9375rem;
}

.profile-full {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.profile-full p {
  margin: 0 0 12px;
}

.profile-full p:last-child {
  margin-bottom: 0;
}

.read-more-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 6px 0;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: inherit;
  transition: color 0.2s ease;
}

.read-more-btn:hover {
  color: var(--accent-hover);
}

@media (max-width: 640px) {
  .profiles {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-card {
    padding: 24px;
    text-align: center;
  }

  .profile-photo {
    margin-left: auto;
    margin-right: auto;
  }

  .profile-text {
    text-align: center;
  }
}

/* ----- Our Process (numbered steps + blueprint line) ----- */
.process-steps {
  display: grid;
  gap: 0;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-muted) 100%);
  border-radius: 2px;
  pointer-events: none;
}

.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  position: relative;
  z-index: 1;
  border: 3px solid var(--bg);
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-content h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.process-note {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-shadow: var(--shadow);
}

.process-note p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.process-note strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .process-steps::before {
    left: 19px;
    top: 28px;
    bottom: 28px;
  }

  .process-step {
    flex-direction: row;
    gap: 16px;
    padding: 20px 0;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    border-width: 2px;
  }

  .process-note {
    padding: 20px;
    text-align: center;
  }
}

/* ----- Get Vetted ----- */
.vetting-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.vetting-info h3,
.vetting-cta h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--text);
}

.vetting-info p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.vetting-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.vetting-list li {
  color: var(--text-soft);
  line-height: 1.65;
  padding-left: 24px;
  position: relative;
  font-size: 0.9375rem;
}

.vetting-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.vetting-list li strong {
  color: var(--text);
  font-weight: 600;
}

.vetting-cta {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.vetting-cta p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.vetting-cta .btn {
  margin-bottom: 16px;
}

.vetting-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.vetting-disclaimer {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--border-strong);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  border: 1px solid var(--border);
}

.vetting-disclaimer p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.vetting-disclaimer strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 900px) {
  .vetting-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .vetting-info,
  .vetting-cta {
    text-align: center;
  }

  .vetting-list {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
  }

  .vetting-disclaimer {
    text-align: center;
  }

  .vetting-cta {
    padding: 24px;
  }
}

/* ----- Our Work ----- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.work-item {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.work-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.work-image {
  width: 100%;
  height: 200px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-content {
  padding: 24px;
  text-align: left;
}

.work-content h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--text);
}

.work-description {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.work-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-tags li {
  background: var(--accent-muted);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-content {
    text-align: center;
  }

  .work-tags {
    justify-content: center;
  }
}

/* ----- Mobile nav ----- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--paper);
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 14px;
  }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--accent);
  padding: 48px 0;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

@media (max-width: 600px) {
  .footer-inner {
    gap: 12px;
  }

  .footer-nav {
    gap: 16px;
  }
}

/* ----- Section spacing tweaks ----- */
.section h2 + .muted {
  margin-top: 8px;
}

/* ----- Vetting page & form ----- */
.vetting-page .vetting-main {
  padding: 100px 0 80px;
  min-height: 100vh;
}

.vetting-container {
  max-width: 720px;
}

.vetting-header {
  text-align: center;
  margin-bottom: 48px;
}

.vetting-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 8px;
}

.vetting-header .muted {
  margin: 0;
  font-size: 1rem;
}

.vetting-form {
  display: block;
}

.form-section {
  border: none;
  margin: 0 0 40px;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 24px;
}

.form-section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.form-section-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.required {
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.form-radio,
.form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.form-radio input,
.form-checkbox input {
  width: auto;
  margin: 0;
  accent-color: var(--accent);
}

.form-actions {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.btn--submit {
  padding: 14px 32px;
  font-size: 1rem;
}

.form-actions-note {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.vetting-form-wrapper[hidden] {
  display: none !important;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success:not([hidden]) {
  display: block;
}

.form-success h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 12px;
}

.form-success p {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0;
}

.form-success-actions .btn {
  margin: 0;
}

.form-group-conditional[hidden] {
  display: none !important;
}

/* ----- Step-by-step form (one section visible) ----- */
.form-step {
  display: none;
}

.form-step.is-current {
  display: block;
}

.form-step[hidden] {
  display: none !important;
}

.vetting-progress {
  margin: 12px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.form-step {
  border-bottom: none;
}

.form-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.form-step-note {
  margin-top: 12px;
  text-align: center;
}

.btn--secondary {
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: var(--bg-alt);
  border-color: var(--text-soft);
}

.btn--next {
  margin-left: auto;
}
