:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f8fb;
  --panel: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #d9e2ef;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #10b981;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 8px;
  --header-h: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #111827;
  --panel: #141c2f;
  --text: #f8fafc;
  --muted: #a9b4c7;
  --line: #283548;
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --accent: #34d399;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.08), transparent 35%),
    linear-gradient(240deg, rgba(16, 185, 129, 0.07), transparent 30%);
}

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

img, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span, .eyebrow {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.header-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: 56px;
  align-items: center;
  padding-block: clamp(42px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.24);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 0;
}

.quick-stats div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.quick-stats dt {
  font-size: 1.35rem;
  font-weight: 800;
}

.quick-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-media {
  position: relative;
  justify-self: end;
  width: min(410px, 100%);
}

.hero-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.availability-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(290px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.availability-card strong,
.availability-card span {
  display: block;
}

.availability-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding-block: clamp(62px, 8vw, 104px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.06rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-weight: 800;
}

.band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 48px;
  align-items: start;
}

.outcome-list, .check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.outcome-list {
  display: grid;
  gap: 14px;
}

.outcome-list li,
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.outcome-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  border-left: 3px solid var(--primary);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px;
  box-shadow: 0 1px 0 var(--line);
}

.timeline time {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.credential-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
}

.check-list {
  display: grid;
  gap: 12px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}

.contact-panel p {
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font-weight: 700;
}

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

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  padding: 13px 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--primary) 25%, transparent);
  border-color: var(--primary);
}

.contact-form input[name="_gotcha"] {
  position: absolute;
  left: -9999px;
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  margin-left: 18px;
  font-weight: 700;
}

.cv-dialog {
  width: min(960px, calc(100% - 28px));
  height: min(86vh, 780px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.cv-dialog::backdrop {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.dialog-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cv-dialog iframe {
  width: 100%;
  height: calc(100% - 138px);
  border: 0;
  background: var(--surface);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .results-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-self: start;
    width: min(440px, 100%);
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

  .menu-button {
    display: inline-grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    padding: 10px 16px 18px;
  }

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

  .nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    gap: 34px;
    padding-block: 38px 58px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

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

  .service-card,
  .credential-block,
  .timeline article {
    padding: 20px;
  }

  .footer-inner {
    display: grid;
  }

  .footer a {
    margin: 0 18px 0 0;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    font-size: 1.18rem;
  }

  .icon-button {
    width: 40px;
    height: 40px;
  }

  .availability-card {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}
