/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: #0A0A0A;
}
::selection { background: #0A0A0A; color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #E2E2E2; }
::-webkit-scrollbar-thumb:hover { background: #007AFF; }

/* ── PAGE LOADER & GLITCH REVEAL ───────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999;
  pointer-events: none;
}
.hero-bg  { opacity: 0; }
.hero-body { opacity: 0; }

@keyframes loader-out {
  0%   { opacity: 1; }
  40%  { opacity: 1; }
  50%  { opacity: 0.05; }
  56%  { opacity: 0.7; }
  66%  { opacity: 0; }
  100% { opacity: 0; }
}
body.is-loaded #page-loader { animation: loader-out 0.75s ease forwards; }

/* ── NAV ───────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 100%);
  width: 100%;
}
.nav--dark {
  position: relative;
  background: transparent;
}
.nav-wordmark {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s ease-out;
}
.nav--dark .nav-wordmark { color: #1A1A1A; }
.nav-wordmark:hover { opacity: 0.5; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  color: #fff;
  opacity: 0.88;
  transition: opacity 0.15s ease-out;
}
.nav--dark .nav-link { color: #1A1A1A; opacity: 0.6; text-shadow: none; }
.nav-link:hover { opacity: 1; }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111;
  background: #fff;
  padding: 9px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}
.nav--dark .nav-cta { color: #fff; background: #0A0A0A; }
.nav-cta:hover { background: rgba(255,255,255,0.84); transform: translateY(-1px); }
.nav--dark .nav-cta:hover { opacity: 0.72; background: #0A0A0A; }

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('richmond.jpg') center 40% / cover no-repeat;
  filter: saturate(0.92) brightness(1.15);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 42% 38% at 50% 48%, rgba(0,0,0,0.68) 0%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.04) 28%, rgba(0,0,0,0.14) 58%, rgba(0,0,0,0.42) 100%);
}
.hero-body {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 32px 64px;
}
.hero-headline {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 820px;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.9);
  max-width: 480px;
}

/* ── BELOW FOLD ────────────────────────────── */
.below {
  background-color: #fff;
  color: #0A0A0A;
}
.rule { border: none; border-top: 1px solid #E2E2E2; margin: 0; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 48px; }

/* ── VALUE SECTION ─────────────────────────── */
.value-section {
  max-width: 1160px; margin: 0 auto;
  background: transparent;
  padding: 96px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  border-bottom: 1px solid #E2E2E2;
}
.value-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0A0A0A;
}
.value-heading em { font-style: italic; color: #007AFF; }
.value-body { font-size: 15px; line-height: 1.75; color: #666; margin-bottom: 20px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #007AFF;
  text-decoration: none;
  transition: gap 0.18s ease-out, opacity 0.18s ease-out;
}
.link-arrow:hover { gap: 14px; opacity: 0.75; }

/* ── SERVICES GRID ─────────────────────────── */
.services-section {
  max-width: 1160px; margin: 0 auto;
  padding: 80px 48px;
  border-bottom: 1px solid #E2E2E2;
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 48px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #E2E2E2;
  border: 1px solid #E2E2E2;
}
.service-card {
  background: #fff;
  padding: 36px 28px;
  border-top: 2px solid transparent;
  transition: border-top-color 0.18s ease-out, transform 0.18s ease-out;
}
.service-card:hover { border-top-color: #007AFF; transform: translateY(-3px); }
.service-num { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: #007AFF; margin-bottom: 20px; }
.service-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem; font-weight: 400; line-height: 1.3;
  color: #0A0A0A; margin-bottom: 12px;
}
.service-desc { font-size: 13px; line-height: 1.7; color: #666; }

/* ── PROMISE BAND ──────────────────────────── */
.promise-band {
  background: #0A0A0A;
  color: #fff;
  padding: 80px 48px;
  text-align: center;
}
.promise-label { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #444; margin-bottom: 20px; }
.promise-text {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  font-weight: 400; line-height: 1.3;
  max-width: 680px; margin: 0 auto 24px;
  text-wrap: balance;
}
.promise-text em { font-style: italic; color: #007AFF; }
.promise-sub { font-size: 14px; line-height: 1.7; color: #666; max-width: 440px; margin: 0 auto 36px; }
.btn-white-pill {
  display: inline-block;
  font-size: 14px; font-weight: 500;
  color: #0A0A0A; background: #fff;
  padding: 13px 28px; border-radius: 100px;
  text-decoration: none; letter-spacing: 0.01em;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}
.btn-white-pill:hover { opacity: 0.88; transform: translateY(-2px); }

/* ── FOOTER ────────────────────────────────── */
.footer {
  background: #fff;
  border-top: 1px solid #E2E2E2;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 24px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-wordmark { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #0A0A0A; }
.footer-copy { font-size: 12px; color: #666; letter-spacing: 0.02em; }
.link-email { font-size: 12px; color: #666; text-decoration: none; letter-spacing: 0.02em; transition: color 0.15s ease-out; }
.link-email:hover { color: #007AFF; }

/* ── DOT GRID FOR INTERIOR PAGES ───────────── */
.interior-body {
}
.interior-body .cta-band,
.interior-body footer { background-image: none; }

/* ── WORDMARK GLITCH ───────────────────────── */
.nav-wordmark { position: relative; }
.nav-wordmark::before,
.nav-wordmark::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  pointer-events: none;
}
.nav-wordmark:hover::before {
  opacity: 0.6;
  color: #fff;
  animation: glitch-top 0.35s steps(2) infinite;
}
.nav-wordmark:hover::after {
  opacity: 0.4;
  color: #000;
  animation: glitch-bot 0.35s steps(2) infinite;
}
@keyframes glitch-top {
  0%   { transform: translate(-2px, 0); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); }
  50%  { transform: translate(2px, 0);  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); }
  100% { transform: translate(-2px, 0); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); }
}
@keyframes glitch-bot {
  0%   { transform: translate(2px, 0);  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); }
  50%  { transform: translate(-2px, 0); clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); }
  100% { transform: translate(2px, 0);  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); }
}

/* ── TYPEWRITER CURSOR ─────────────────────── */

/* ── INTERIOR PAGE HEADER ──────────────────── */
.page-header { border-bottom: 1px solid #E2E2E2; padding: 64px 48px; }
.page-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #666; margin-bottom: 20px; }
.page-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.02em; color: #0A0A0A;
  max-width: 860px;
}
.page-title em { font-style: italic; color: #007AFF; }

/* ── STORY / TWO-COL ───────────────────────── */
.two-col {
  max-width: 1160px; margin: 0 auto;
  padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.two-col-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400; line-height: 1.35; color: #0A0A0A;
}
.body-text { font-size: 15px; line-height: 1.75; color: #666; margin-bottom: 20px; }

/* ── VALUES GRID (2×2) ─────────────────────── */
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: #E2E2E2; border: 1px solid #E2E2E2;
}
.value-card {
  background: #fff; padding: 40px 36px;
  border-top: 2px solid transparent;
  transition: border-top-color 0.18s ease-out, transform 0.18s ease-out;
}
.value-card:hover { border-top-color: #007AFF; transform: translateY(-3px); }
.value-card-num { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: #007AFF; margin-bottom: 20px; }
.value-card-title { font-family: 'Lora', Georgia, serif; font-size: 1.3rem; font-weight: 400; line-height: 1.3; color: #0A0A0A; margin-bottom: 12px; }
.value-card-desc { font-size: 13px; line-height: 1.7; color: #666; }

/* ── CTA BAND ──────────────────────────────── */
.cta-band { background: #0A0A0A; color: #fff; padding: 80px 48px; text-align: center; }
.cta-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  font-weight: 400; line-height: 1.3;
  max-width: 680px; margin: 0 auto 24px;
  text-wrap: balance;
}
.cta-heading em { font-style: italic; color: #007AFF; }
.cta-sub { font-size: 14px; line-height: 1.7; color: #666; max-width: 440px; margin: 0 auto 36px; }

/* ── SERVICES DETAIL PAGE ──────────────────── */
.service-row { border-bottom: 1px solid #E2E2E2; }
.service-row-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 72px 48px;
  display: grid; grid-template-columns: 80px 1fr 1.8fr;
  gap: 48px; align-items: start;
  transition: background 0.18s ease-out;
}
.service-row:hover .service-row-inner { background: #fafafa; }
.service-row-num { font-size: 11px; font-weight: 600; color: #007AFF; letter-spacing: 0.1em; padding-top: 6px; }
.service-row-title { font-family: 'Lora', Georgia, serif; font-size: 1.8rem; font-weight: 400; line-height: 1.2; color: #0A0A0A; }
.service-row-tagline { font-size: 13px; color: #666; font-style: italic; margin-top: 8px; line-height: 1.5; }
.service-row-desc { font-size: 15px; line-height: 1.75; color: #666; margin-bottom: 24px; }
.service-bullets { display: flex; flex-direction: column; gap: 10px; }
.service-bullet { font-size: 13px; color: #666; padding-left: 16px; line-height: 1.6; }

/* ── CONTACT PAGE ──────────────────────────── */
.contact-grid {
  max-width: 1160px; margin: 0 auto;
  padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr;
}
.contact-left { padding: 56px 64px 56px 0; border-right: 1px solid #E2E2E2; }
.contact-right { padding: 56px 0 56px 64px; }
.contact-intro { font-size: 14px; line-height: 1.75; color: #666; max-width: 360px; margin-bottom: 48px; }
.contact-step {
  padding: 20px 0;
  display: grid; grid-template-columns: 40px 1fr;
  gap: 16px; border-top: 1px solid #E2E2E2;
}
.contact-step-num { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: #007AFF; padding-top: 2px; }
.contact-step-title { font-size: 14px; font-weight: 500; color: #0A0A0A; margin-bottom: 4px; }
.contact-step-desc { font-size: 13px; color: #666; line-height: 1.6; }
.contact-meta { margin-top: 40px; padding-top: 24px; border-top: 1px solid #E2E2E2; }
.contact-meta p { font-size: 13px; color: #666; margin-bottom: 4px; }
.contact-meta a { color: #007AFF; text-decoration: none; transition: opacity 0.15s ease-out; }
.contact-meta a:hover { opacity: 0.6; }


/* ── FORM ──────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #999; }
.form-field {
  width: 100%; padding: 10px 0;
  background: transparent; border: none;
  border-bottom: 1px solid #E2E2E2;
  font-size: 14px; font-family: 'DM Sans', sans-serif; color: #0A0A0A;
  outline: none; appearance: none;
  transition: border-bottom-color 0.15s ease-out;
}
.form-field:focus { border-bottom-color: #007AFF; }
.form-field::placeholder { color: #bbb; }
textarea.form-field { resize: none; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: #007AFF;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: gap 0.18s ease-out, opacity 0.18s ease-out;
}
.btn-submit:hover { gap: 14px; opacity: 0.6; }
.form-note { margin-top: 12px; font-size: 11px; color: #999; letter-spacing: 0.04em; }

/* ── THANK YOU STATE ───────────────────────── */
.thankyou { display: none; flex-direction: column; justify-content: center; padding-top: 32px; }
.thankyou-check {
  width: 28px; height: 28px; border: 1px solid #007AFF;
  display: flex; align-items: center; justify-content: center; margin-bottom: 32px;
}
.thankyou-heading {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.2; color: #0A0A0A;
}
.thankyou-sub { margin-top: 16px; font-size: 14px; color: #666; }

/* ── MOBILE NAV ────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-hamburger { color: #fff; }
.nav--dark .nav-hamburger { color: #0A0A0A; }

/* Hamburger → X when open */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu.is-visible { opacity: 1; }
.mobile-menu-link {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.15s ease;
}
.mobile-menu-link:hover { color: #fff; }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
  transition: color 0.15s ease;
}
.mobile-menu-close:hover { color: #fff; }
.mobile-menu-cta-link {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #111;
  background: #fff;
  padding: 13px 32px;
  border-radius: 100px;
  text-decoration: none;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 0 24px; height: 60px; }
  .nav-links { display: none; }
  .nav--dark { padding: 0 24px; }
  .nav-cta { display: none; }
  .nav-wordmark { padding: 11px 0; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-body { padding: 0 24px 56px; }

  /* Below fold sections */
  .value-section {
    grid-template-columns: 1fr;
    padding: 56px 24px;
    gap: 36px;
  }
  .link-arrow { padding: 14px 0; } /* taller tap target */
  .services-section { padding: 56px 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-band { padding: 64px 24px; }
  .cta-band { padding: 64px 24px; }

  /* Page header */
  .page-header { padding: 48px 24px; }
  .section-inner { padding: 0 24px; }

  /* About two-col */
  .two-col {
    grid-template-columns: 1fr;
    padding: 56px 24px;
    gap: 32px;
  }

  /* About values grid */
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 32px 24px; }

  /* Services detail rows */
  .service-row-inner {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    padding: 40px 24px;
    gap: 16px 20px;
  }
  .service-row-inner > div:last-child { grid-column: 2; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .contact-left {
    padding: 48px 0 40px;
    border-right: none;
    border-bottom: 1px solid #E2E2E2;
  }
  .contact-right { padding: 40px 0 48px; }
  .contact-intro { max-width: 100%; }
  .contact-meta a { padding: 14px 0; display: block; }

  /* Form — taller tap targets */
  .form-row { grid-template-columns: 1fr; gap: 24px; }
  .form-field { padding: 13px 0; }
  .btn-submit { padding: 16px 0; }

  /* Footer — taller tap target for email */
  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding: 24px;
  }
  .link-email { padding: 14px 0; display: inline-block; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-row-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service-row-inner > div:last-child { grid-column: 1; }
}
