:root {
  --bg: #f7f2e8;
  --bg-soft: #efe6d5;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdfa;
  --surface-dark: #122033;
  --text: #172130;
  --muted: #5d6878;
  --brand: #ca4124;
  --brand-deep: #932917;
  --accent: #1d5f98;
  --line: rgba(23, 33, 48, 0.12);
  --shadow: 0 18px 48px rgba(16, 30, 44, 0.12);
  --shadow-soft: 0 12px 30px rgba(16, 30, 44, 0.08);
  --radius: 1.4rem;
  --radius-sm: 1rem;
  --container: min(1120px, calc(100vw - 2rem));
  --header-height: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 95, 152, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(202, 65, 36, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, #f4eee2 46%, #fbf8f2 100%);
  font-family: "Trebuchet MS", "Aptos", "Segoe UI", sans-serif;
  line-height: 1.6;
  min-width: 320px;
}

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

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

p,
li {
  color: var(--muted);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--surface-dark);
  color: white;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 6vw, 6rem) 0;
}

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

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.hero h1,
.intro-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 232, 0.76);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  background: rgba(251, 248, 242, 0.92);
}

.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 10px 20px rgba(29, 95, 152, 0.18);
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  color: var(--text);
  font-size: 0.98rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(29, 95, 152, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta {
  padding: 0.78rem 1rem;
  background: var(--surface-dark);
  color: white;
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
}

.header-cta:hover,
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.menu-toggle-line {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  margin: 0.22rem auto;
  border-radius: 999px;
}

.hero {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-grid,
.intro-grid,
.contact-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  margin-bottom: 1rem;
  max-width: 12ch;
}

.hero-summary {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  max-width: 42rem;
}

.role-rotator {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 95, 152, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.4rem;
}

.role-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.button {
  min-height: 3.2rem;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: white;
  box-shadow: 0 16px 24px rgba(147, 41, 23, 0.22);
}

.button-secondary {
  border-color: rgba(23, 33, 48, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

button {
  cursor: pointer;
}

.hero-points {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero-points li::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  flex: none;
}

.hero-contact-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-contact-strip a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(18, 32, 51, 0.06);
  color: var(--text);
  font-weight: 600;
}

.hero-card {
  position: relative;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: calc(var(--radius) + 0.4rem);
  background: linear-gradient(160deg, rgba(18, 32, 51, 0.96) 0%, rgba(24, 55, 89, 0.96) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-card::before {
  inset: auto auto -7rem -5rem;
  width: 15rem;
  height: 15rem;
  background: rgba(202, 65, 36, 0.25);
}

.hero-card::after {
  inset: -6rem -4rem auto auto;
  width: 13rem;
  height: 13rem;
  background: rgba(255, 216, 141, 0.18);
}

.hero-card img {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius) - 0.2rem);
}

.floating-metric {
  position: absolute;
  z-index: 2;
  max-width: 13rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.metric-top {
  top: 1rem;
  right: 1rem;
}

.metric-bottom {
  left: 1rem;
  bottom: 1rem;
}

.metric-value {
  display: block;
  color: var(--surface-dark);
  font-size: 1.5rem;
  font-weight: 800;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.intro-band {
  position: relative;
}

.intro-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(135deg, rgba(29, 95, 152, 0.03) 0, rgba(29, 95, 152, 0.03) 12px, transparent 12px, transparent 24px);
  pointer-events: none;
}

.intro-visual,
.intro-copy,
.tab-shell,
.stat-card,
.approval-card,
.contact-panel,
.contact-card,
.info-card {
  position: relative;
  z-index: 1;
}

.intro-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-copy {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.intro-copy blockquote {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 1rem 1rem 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

.card-grid,
.approval-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

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

.info-card,
.approval-card,
.stat-card,
.contact-card,
.tab-shell,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.info-card,
.approval-card,
.stat-card,
.contact-card {
  padding: 1.35rem;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(29, 95, 152, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.info-card h3,
.approval-card h3,
.contact-card h3,
.tab-panel h3,
.timeline-item h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.badge-row span {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(18, 32, 51, 0.06);
  border: 1px solid rgba(18, 32, 51, 0.08);
  color: var(--text);
  font-weight: 600;
}

.tab-shell {
  padding: 1rem;
}

.tab-list {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-button {
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 700;
}

.tab-button.is-active {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: white;
}

.tab-panel {
  padding: 1rem 0.4rem 0.2rem;
}

.feature-list {
  counter-reset: service-item;
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.feature-list li {
  counter-increment: service-item;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.feature-list li::before {
  content: counter(service-item, decimal-leading-zero);
  min-width: 1.5rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.impact-section {
  background: linear-gradient(180deg, rgba(18, 32, 51, 0.96), rgba(10, 19, 31, 0.96));
  color: white;
}

.impact-section .section-heading h2,
.impact-section .section-heading p,
.impact-section .stat-card span,
.impact-section .stat-card strong {
  color: white;
}

.impact-section .section-heading .eyebrow {
  color: #ffb8a8;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.timeline-dot {
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.timeline-dot::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 2px;
  height: calc(100% + 2.2rem);
  background: rgba(29, 95, 152, 0.18);
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-dot::after {
  display: none;
}

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

.contact-shell {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: calc(var(--radius) + 0.2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at top right, rgba(202, 65, 36, 0.16), transparent 30%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.contact-card p {
  margin: 0;
}

.contact-card a {
  color: var(--accent);
  font-weight: 700;
}

.site-footer {
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-brand p,
.footer-nav a,
.footer-contact a,
.footer-contact p {
  color: var(--muted);
}

.footer-nav,
.footer-contact {
  display: grid;
  gap: 0.55rem;
}

.footer-nav strong,
.footer-contact strong {
  color: var(--text);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 980px) {
  .hero-grid,
  .intro-grid,
  .contact-shell,
  .footer-grid,
  .qualifications-grid,
  .approval-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-nav-wrap {
    position: fixed;
    inset: var(--header-height) 1rem auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(251, 248, 242, 0.96);
    border: 1px solid var(--line);
    border-radius: 1.3rem;
    box-shadow: var(--shadow);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.menu-open .site-nav-wrap {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a,
  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-actions,
  .hero-contact-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .floating-metric {
    position: static;
    max-width: none;
    margin-top: 0.85rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
