:root {
  /* Light mode (Recovered Palette A: Slate + Steel Blue) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --primary: #2f5d8a;
  --primary-hover: #244a6d;
  --primary-ink: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

/* Dark-photo mode for IMG_5290-style portraits */
.theme-dark {
  --bg: #0b1020;
  --surface: #121a2b;
  --ink: #e6ecf8;
  --muted: #9caac4;
  --primary: #4f8ccf;
  --primary-hover: #3c76b7;
  --primary-ink: #ffffff;
  --border: #23314a;
  --shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

.hero-img-dark {
  display: none;
}

.theme-dark .hero-img-light {
  display: none;
}

.theme-dark .hero-img-dark {
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 92%, white 8%);
  backdrop-filter: blur(4px);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

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

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

.hero {
  padding: 5.1rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Manrope", "Inter", sans-serif;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 2.8vw + 1rem, 3rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.2rem);
}

h3 {
  margin: 0;
  font-size: 1.22rem;
}

p {
  margin: 0;
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.08rem;
}

.tagline {
  margin-top: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.08rem;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 8px 20px rgba(47, 93, 138, 0.24);
}

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

.btn-secondary {
  border-color: var(--border);
  color: var(--ink);
  background: color-mix(in oklab, white 80%, var(--bg) 20%);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 0%;
}

.card-caption {
  padding: 1rem 1rem 1.15rem;
}

.card-caption p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: color-mix(in oklab, var(--bg) 90%, white 10%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.text-block {
  max-width: 760px;
}

.text-block p {
  margin-top: 0.95rem;
  color: var(--muted);
}

.emphasis {
  border-left: 3px solid var(--primary);
  padding-left: 0.9rem;
  color: var(--ink) !important;
  font-weight: 500;
}

.focus-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.focus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.focus-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.focus-card p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.elsewhere-links {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.elsewhere-links a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: color-mix(in oklab, var(--surface) 88%, var(--bg) 12%);
}

.elsewhere-links a:hover {
  color: var(--primary);
  border-color: color-mix(in oklab, var(--primary) 45%, var(--border) 55%);
}

.elsewhere-links svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-copy p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.small-note {
  font-size: 0.92rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.field + .field {
  margin-top: 0.85rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.94rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: white;
  padding: 0.72rem 0.78rem;
}

input {
  min-height: 46px;
}

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

input:focus,
textarea:focus,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--primary) 70%, white 30%);
  outline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile {
  margin-top: 0.9rem;
}

.contact-form .btn {
  margin-top: 0.95rem;
}

.form-help {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.25rem;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status.is-success {
  color: #3fbf7f;
}

.form-status.is-error {
  color: #ff8e8e;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
  background: color-mix(in oklab, var(--bg) 92%, white 8%);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Dark mode component tuning */
.theme-dark .site-header,
.theme-dark .site-footer {
  background: color-mix(in oklab, var(--bg) 94%, black 6%);
}

.theme-dark .section-alt {
  background: color-mix(in oklab, var(--bg) 88%, black 12%);
}

.theme-dark .btn-secondary {
  background: color-mix(in oklab, var(--surface) 84%, black 16%);
  color: var(--ink);
  border-color: var(--border);
}

.theme-dark input,
.theme-dark textarea {
  background: color-mix(in oklab, var(--surface) 90%, black 10%);
  color: var(--ink);
}

/* Mobile behavior locked at <= 768px */
@media (max-width: 768px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero-grid,
  .focus-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1.2rem;
  }

  .hero-card {
    order: 2;
  }

  .hero-copy {
    order: 1;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .btn {
    text-align: center;
  }

  .footer-wrap {
    flex-direction: column;
  }
}
