/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light theme colors */
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.09);
  --btn-text: #ffffff;
  --text-primary: #191b1f;
  --text-secondary: #52565f;
  --text-muted: #9195a0;
  --bg-primary: #faf9f7;
  --bg-secondary: #f2f0ec;
  --bg-tertiary: #e9e6e0;
  --border-color: #e2dfd8;
  --border-strong: #cfccc4;
  --dot-color: rgba(25, 27, 31, 0.14);
  --nav-bg: rgba(250, 249, 247, 0.86);
  --shadow-sm: 0 1px 2px 0 rgb(20 18 12 / 0.05);
  --shadow-md: 0 6px 20px -8px rgb(20 18 12 / 0.14);

  /* Decorative effects — kept dim in light mode */
  --glow-hero: rgba(15, 118, 110, 0.09);
  --glow-section: rgba(15, 118, 110, 0.06);
  --spotlight-glow: rgba(15, 118, 110, 0.05);
  --spotlight-border: rgba(15, 118, 110, 0.28);
  --grain-opacity: 0.028;
  --headline-from: #14161a;
  --headline-to: #454a53;

  /* Kept for compatibility with existing markup/scripts */
  --primary-color: var(--accent);
  --gradient-primary: none;
}

[data-theme="dark"] {
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.1);
  --btn-text: #0b0d10;
  --text-primary: #f2f3f5;
  --text-secondary: #a4aab6;
  --text-muted: #666d7a;
  --bg-primary: #0b0d10;
  --bg-secondary: #111419;
  --bg-tertiary: #191d24;
  --border-color: #21252d;
  --border-strong: #323845;
  --dot-color: rgba(242, 243, 245, 0.1);
  --nav-bg: rgba(11, 13, 16, 0.82);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 6px 20px -8px rgb(0 0 0 / 0.55);

  --glow-hero: rgba(45, 212, 191, 0.13);
  --glow-section: rgba(45, 212, 191, 0.07);
  --spotlight-glow: rgba(45, 212, 191, 0.06);
  --spotlight-border: rgba(45, 212, 191, 0.32);
  --grain-opacity: 0.05;
  --headline-from: #f6f7f9;
  --headline-to: #a7aeba;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--btn-text);
}

/* Film-grain overlay — kills gradient banding, softens the "AI-slick" look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Type helpers */
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

.section-lede {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom-color: var(--border-color);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 18px;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: -5px;
  left: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Theme toggle icons: show the theme you'd switch to */
.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem 0;
}

.bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.25s;
}

/* Hero Section */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 5rem;
  position: relative;
}

/* Subtle dot grid, fading out radially — the page's one texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot-color) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, black 30%, transparent 90%);
  pointer-events: none;
}

/* Ambient accent glow behind the headline */
.hero::after {
  content: "";
  position: absolute;
  top: -22%;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 100vw);
  height: 640px;
  background: radial-gradient(ellipse 50% 50% at center, var(--glow-hero), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 54rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Radar ping on the availability dot */
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(2.25rem, 4.7vw, 3.625rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}

/* Editorial gradient-clipped headline; accent periods keep their color */
.hero-line {
  display: block;
  background: linear-gradient(180deg, var(--headline-from), var(--headline-to));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-line .accent-period {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

/* Staged hero entrance — one fade-rise, then static */
.hero-eyebrow,
.hero-line,
.hero-subtitle,
.hero-cta {
  opacity: 0;
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-line:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation-delay: 0.3s;
}

.hero-cta {
  animation-delay: 0.4s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-subtitle p + p {
  margin-top: 1rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Buttons */
.btn {
  padding: 0.8125rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

/* Section header */
.section-header {
  margin-bottom: 3.5rem;
}

/* Services Section */
.services {
  padding: 7rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem 4rem;
  align-items: start;
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Cursor spotlight — the page's one interactive flourish.
   JS feeds --mx/--my; both layers are decorative overlays. */
.spotlight-card {
  position: relative;
}

.spotlight-card::before,
.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Soft interior glow following the cursor */
.spotlight-card::before {
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight-glow),
    transparent 65%
  );
}

/* Accent border segment lighting up under the cursor */
.spotlight-card::after {
  padding: 1px;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight-border),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
  opacity: 1;
}

.service-index {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.service-body {
  margin-bottom: 1.5rem;
  max-width: 38rem;
}

.service-body p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.service-body p + p {
  margin-top: 0.875rem;
}

.service-features {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 2rem;
}

.service-features li {
  padding: 0.375rem 0 0.375rem 1.375rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  position: relative;
}

.service-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* About Section */
.about {
  padding: 7rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 5rem;
  align-items: start;
}

.about-main .section-title {
  margin-bottom: 1.75rem;
}

.about-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.375rem;
  max-width: 36rem;
}

.about-description:last-child {
  margin-bottom: 0;
}

.about-description.about-emphasis {
  color: var(--text-primary);
  font-weight: 600;
}

.about-rail {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  position: sticky;
  top: 6rem;
}

.rail-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  color: var(--text-primary);
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.step {
  display: flex;
  gap: 1.125rem;
  align-items: baseline;
}

.step-index {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--accent);
  flex-shrink: 0;
}

.step h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.step p + p {
  margin-top: 0.5rem;
}

/* When to call me */
.when {
  padding: 7rem 0;
  border-top: 1px solid var(--border-color);
}

.when-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 5rem;
  align-items: start;
}

.when-header {
  position: sticky;
  top: 6rem;
}

.when-header .section-title {
  margin-bottom: 1.25rem;
}

.when-groups {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.when-group-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.when-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
}

.when-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.when-index {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--accent);
}

.when-item p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.when-item:hover p {
  color: var(--text-primary);
}

/* FAQ Section */
.faq {
  padding: 7rem 0;
  border-top: 1px solid var(--border-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 4rem;
  max-width: 58rem;
}

.faq-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.9875rem;
  color: var(--text-secondary);
}

.faq-item p + p {
  margin-top: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

/* Faint accent glow behind the closing CTA */
.contact::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100%);
  height: 80%;
  background: radial-gradient(ellipse 50% 50% at center, var(--glow-section), transparent 70%);
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 4rem 5rem;
  align-items: end;
}

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.contact-title em {
  font-style: italic;
  color: var(--accent);
}

.contact-lede {
  font-size: 1.1875rem;
  color: var(--text-secondary);
  max-width: 32rem;
}

.contact-lede p + p {
  margin-top: 0.75rem;
}

.contact-ask {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.contact-promise {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 26rem;
  margin-bottom: 2.25rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.contact-methods {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-method {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.contact-method svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-method:hover {
  color: var(--text-primary);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  inset: 0;
  background-color: rgba(8, 9, 11, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-primary);
  margin: 2rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.25s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.close-modal:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.contact-form {
  padding: 1.75rem;
}

.contact-form .btn {
  margin-top: 0.5rem;
  width: 100%;
}

.form-group {
  margin-bottom: 1.125rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.15s ease;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: block;
  width: auto;
  height: 18px;
}

/* Theme-specific W37 mark files, both on a transparent ground: dark letters
   on the light theme, light letters on the dark theme. */
.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}

[data-theme="dark"] .logo-light {
  display: none;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-role {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 960px) {
  .hero {
    min-height: 0;
    padding: 8rem 0 4rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-rail {
    position: static;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .when-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .when-header {
    position: static;
  }

}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 68px;
    flex-direction: column;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
    transition: 0.25s;
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0.875rem 0;
  }

  .services,
  .about,
  .when,
  .faq {
    padding: 4.5rem 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact {
    padding: 5rem 0;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .modal-content {
    margin: 1rem;
    max-height: 95vh;
  }

  .modal-header,
  .contact-form {
    padding: 1.25rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }

  .footer-links a {
    white-space: nowrap;
  }

  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
  }

  .service-features {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

.services-grid .scroll-animate:nth-child(2) {
  transition-delay: 0.08s;
}

.services-grid .scroll-animate:nth-child(3) {
  transition-delay: 0.16s;
}

.faq-grid .scroll-animate:nth-child(2) {
  transition-delay: 0.06s;
}

.faq-grid .scroll-animate:nth-child(3) {
  transition-delay: 0.12s;
}

.faq-grid .scroll-animate:nth-child(4) {
  transition-delay: 0.18s;
}

.faq-grid .scroll-animate:nth-child(5) {
  transition-delay: 0.24s;
}

.faq-grid .scroll-animate:nth-child(6) {
  transition-delay: 0.3s;
}

.faq-grid .scroll-animate:nth-child(7) {
  transition-delay: 0.36s;
}

.faq-grid .scroll-animate:nth-child(8) {
  transition-delay: 0.42s;
}

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

  .scroll-animate,
  .fade-in-up,
  .modal.active,
  .modal-content,
  .hero-eyebrow,
  .hero-line,
  .hero-subtitle,
  .hero-cta {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .status-dot::after {
    animation: none;
    opacity: 0;
  }

  .spotlight-card::before,
  .spotlight-card::after {
    display: none;
  }
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
