:root {
  --color-primary: #1b3a6b;
  --color-secondary: #1b4d2e;
  --color-accent: #c9a227;
  --color-bg: #f8fafc;
  --color-text: #334155;
  --color-heading: #0f172a;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-secondary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

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

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--color-secondary);
  font-weight: 500;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text);
  padding: 0.35rem 0;
}

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

.nav-cta {
  display: inline-block;
  padding: 0.6rem 1.1rem !important;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 999px;
  font-size: 0.875rem !important;
}

.nav-cta:hover {
  background: var(--color-secondary);
  color: var(--color-white) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4.5rem 0 5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(15, 39, 68, 0.93) 0%,
    rgba(27, 58, 107, 0.88) 45%,
    rgba(27, 77, 46, 0.86) 100%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 85% 20%, rgba(201, 162, 39, 0.15), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(27, 77, 46, 0.25), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1.25rem;
}

.hero-lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary:hover {
  background: #dbb84a;
  color: var(--color-heading);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.hero-card img {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  object-fit: contain;
  background: transparent;
  display: block;
}

.hero-card p {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Sections */

section {
  padding: 5rem 0;
}

.section-header {
  max-width: 42rem;
  margin-bottom: 3rem;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.section-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.section-header p {
  margin: 0;
  font-size: 1.1rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.about-grid p {
  margin: 0 0 1.25rem;
}

.highlight-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.highlight-panel h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.highlight-panel p:last-child {
  margin-bottom: 0;
}

/* Visual break */

.visual-break {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  padding: 0;
}

.visual-break img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.visual-break-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(
    90deg,
    rgba(15, 39, 68, 0.82),
    rgba(27, 77, 46, 0.72)
  );
}

.visual-break-overlay p {
  margin: 0;
  max-width: 36rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.45;
  color: var(--color-white);
}

/* Services */

.services {
  background: var(--color-white);
  border-block: 1px solid var(--color-border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.04);
}

.service-card h3 {
  margin: 0 0 1rem;
  padding: 1.5rem 1.5rem 0;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.service-card ul {
  margin: 0;
  padding: 0 1.5rem 1.5rem 2.7rem;
}

.service-card li {
  margin-bottom: 0.5rem;
}

.service-card li:last-child {
  margin-bottom: 0;
}

/* Differentiators */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.diff-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.diff-card::before {
  content: "★";
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 1.1rem;
}

.diff-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
}

/* Expertise */

.expertise {
  background: linear-gradient(180deg, #eef4f8 0%, var(--color-bg) 100%);
}

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

.tag-list li {
  padding: 0.55rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

/* Founder */

.founder-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: stretch;
}

.founder-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  max-height: 520px;
}

.founder-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 15%;
}

.founder-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-note {
  margin: 0;
  padding: 1.5rem;
  border-left: 4px solid var(--color-accent);
  background: var(--color-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.founder-panel {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.founder-panel h3 {
  color: var(--color-white);
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.founder-title {
  margin: 0 0 1.5rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.founder-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

/* Contact */

.contact {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}

.mission-quote {
  margin: 0;
  padding: 2rem;
  border-left: 4px solid var(--color-secondary);
  background: linear-gradient(90deg, rgba(27, 77, 46, 0.06), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-heading);
}

/* Footer */

.site-footer {
  background: var(--color-heading);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0;
  font-size: 0.9375rem;
}

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

.site-footer strong {
  color: var(--color-white);
}

.site-footer a {
  color: var(--color-accent);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .services-grid,
  .diff-grid,
  .founder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image img,
  .founder-image {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .visual-break img {
    height: 260px;
  }

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

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

  .hero-card {
    max-width: 22rem;
  }
}

@media (max-width: 600px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }

  .brand-tagline {
    display: none;
  }
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.reveal-group .reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-group.is-visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group.is-visible .reveal-child:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible .reveal-child:nth-child(2) { transition-delay: 90ms; }
.reveal-group.is-visible .reveal-child:nth-child(3) { transition-delay: 180ms; }
.reveal-group.is-visible .reveal-child:nth-child(4) { transition-delay: 270ms; }
.reveal-group.is-visible .reveal-child:nth-child(5) { transition-delay: 360ms; }
.reveal-group.is-visible .reveal-child:nth-child(6) { transition-delay: 450ms; }
.reveal-group.is-visible .reveal-child:nth-child(7) { transition-delay: 540ms; }
.reveal-group.is-visible .reveal-child:nth-child(8) { transition-delay: 630ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-group .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
