:root {
  --paper: #faf6ef;
  --paper2: #f1e8da;
  --navy: #2e2a78;
  --navy2: #221f5c;
  --ink: #2b2940;
  --muted: #6e695f;
  --line: #e1d7c6;
  --accent: #ee5a2b;
  --container: 1180px;
  --section-pad: clamp(5rem, 8vw, 6.5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7.2rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Mulish", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

button,
a { -webkit-tap-highlight-color: transparent; }

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 78%, white);
  outline-offset: 4px;
  border-radius: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--navy2);
  border-radius: 0.3rem;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: rgba(250, 246, 239, 0.85);
  border-bottom: 1px solid rgba(225, 215, 198, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.brand-link {
  display: inline-flex;
  flex: 0 1 25rem;
  min-width: 12rem;
}

.header-logo {
  display: block;
  width: 100%;
  max-width: 24rem;
  height: auto;
  max-height: 5.1rem;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.2vw, 1.9rem);
  white-space: nowrap;
}

.nav-link {
  position: relative;
  padding-block: 0.5rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.18rem;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.88rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-small {
  min-height: 2.6rem;
  padding: 0.68rem 1.15rem;
  font-size: 0.875rem;
}

.button-accent { color: white; background: var(--accent); }
.button-accent:hover { background: #d94b22; }
.button-primary { color: white; background: var(--navy); }
.button-primary:hover { background: var(--navy2); }
.button-outline { color: var(--navy); border-color: var(--line); }
.button-outline:hover { border-color: var(--navy); }

.hero {
  position: relative;
  padding: clamp(9.75rem, 13vw, 11rem) 2rem clamp(5rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(46, 42, 120, 0.07), transparent 60%),
    radial-gradient(720px 420px at 6% 108%, rgba(238, 90, 43, 0.08), transparent 60%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(3rem, 6vw, 4rem);
}

.hero-kicker {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
  color: var(--navy);
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(3.4rem, 7vw, 5.65rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-company {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  font-style: italic;
  line-height: 1.3;
}

.hero-lede {
  max-width: 31rem;
  margin: 0 0 2.35rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

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

.portrait {
  position: relative;
  margin: 0;
}

.portrait-frame {
  position: absolute;
  z-index: 0;
  right: -0.85rem;
  bottom: 2.6rem;
  width: 100%;
  height: calc(100% - 2.6rem);
  border: 1.5px solid var(--accent);
  border-radius: 0.65rem;
}

.portrait-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--paper2);
  border-radius: 0.65rem;
  box-shadow: 0 30px 70px -30px rgba(34, 31, 92, 0.5);
}

.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
}

.portrait figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.portrait figcaption span {
  flex: 0 0 1.6rem;
  height: 1px;
  background: var(--line);
}

.portrait figcaption b { font-weight: 500; }

.stats-band {
  color: white;
  background: var(--navy);
}

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

.stat {
  padding-left: 1.25rem;
  border-left: 1.5px solid rgba(255, 255, 255, 0.16);
}

.stat-number {
  color: white;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 3.25rem;
  line-height: 1;
}

.stat-number span { color: var(--accent); }

.stat p {
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.section { padding: var(--section-pad) 2rem; }
.section-sand { background: var(--paper2); }

.section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.45rem, 4vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--accent) !important;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.15rem;
  height: 1px;
  background: currentColor;
}

.about-grid,
.experience-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 4rem;
}

.prose {
  font-size: 1.1rem;
  line-height: 1.82;
}

.prose p { margin: 0 0 1.35rem; }
.prose p:last-of-type { margin-bottom: 0; }
.prose strong { color: var(--navy); font-weight: 700; }

.prose blockquote {
  margin: 2.1rem 0 0;
  padding: 1.35rem 1.6rem;
  color: var(--navy);
  background: var(--paper2);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.38rem;
  font-style: italic;
  line-height: 1.45;
}

.section-intro {
  max-width: 45rem;
  margin-bottom: clamp(2.75rem, 5vw, 3.25rem);
}

.section-intro > p:last-child,
.section-copy {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.map-card {
  margin: 0;
  overflow: hidden;
  background: #cfe6ee;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px -34px rgba(34, 31, 92, 0.5);
}

.map-card img { display: block; width: 100%; height: auto; }

.territories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.1rem;
}

.territories span {
  padding: 0.48rem 0.92rem;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.service-card {
  min-height: 14.5rem;
  padding: 2.1rem 1.85rem;
  background: var(--paper);
  transition: background 200ms ease;
}

.service-card:hover { background: #fffaf3; }

.service-number {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.38rem;
}

.service-card h3 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.46rem;
  font-weight: 600;
  line-height: 1.15;
}

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

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.9rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.3rem;
  width: 1.5px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.1rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0.33rem;
  left: -1.9rem;
  width: 0.68rem;
  height: 0.68rem;
  background: var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--paper2);
}

.timeline-item.current::before { background: var(--accent); }

.timeline-date {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-item.current .timeline-date { color: var(--accent); }

.timeline-item h3 {
  margin: 0.25rem 0 0.1rem;
  color: var(--navy);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.timeline-item > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-section {
  padding: clamp(5.5rem, 9vw, 6.75rem) 2rem;
  color: white;
  background: var(--navy);
}

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

.contact-section h2 { color: white; font-size: clamp(2.7rem, 4.6vw, 3.65rem); }

.contact-section > .contact-grid > div > p:last-child {
  max-width: 27rem;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.72;
}

.contact-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-style: normal;
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0.25rem;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-list a:first-child { border-top: 0; }

.contact-list span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list strong {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.78rem);
  font-weight: 400;
  transition: color 180ms ease;
}

.contact-list a:hover strong { color: #ff9a79; }

.site-footer {
  padding: 2.5rem 2rem;
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy2);
}

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

.footer-inner img {
  width: auto;
  height: 5.6rem;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-ready [data-reveal] { opacity: 0; }
.reveal-ready [data-reveal].is-visible { animation: reveal-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }

@media (max-width: 64rem) {
  .header-inner { min-height: 6.3rem; }
  .header-logo { max-height: 4.5rem; }
  .brand-link { flex-basis: 20rem; }
  .main-nav { gap: 1rem; }
}

@media (max-width: 56.25rem) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 53.75rem) {
  html { scroll-padding-top: 6.25rem; }
  .nav-link { display: none; }
  .hero-grid,
  .about-grid,
  .experience-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 3.5rem; }
  .portrait { width: min(100%, 27.5rem); }
  .about-grid,
  .experience-grid { gap: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .contact-grid { align-items: start; }
}

@media (max-width: 40rem) {
  .header-inner { min-height: 5.75rem; padding-inline: 1rem; }
  .brand-link { min-width: 0; flex-basis: 14rem; }
  .header-logo { max-height: 3.85rem; }
  .button-small { min-height: 2.45rem; padding-inline: 0.9rem; font-size: 0.78rem; }
  .hero { padding: 8.6rem 1.25rem 4.5rem; }
  .section,
  .contact-section { padding-inline: 1.25rem; }
  .stats-grid { padding-inline: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .portrait figcaption { font-size: 0.65rem; letter-spacing: 0.08em; }
  .contact-list a { align-items: flex-start; flex-direction: column; gap: 0.45rem; }
  .contact-list strong { overflow-wrap: anywhere; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-inner img { height: 4.5rem; }
}

@media (max-width: 27rem) {
  .header-logo { max-height: 3.25rem; }
  .button-small { padding-inline: 0.75rem; }
  .hero-actions .button { width: 100%; }
  .stats-grid { gap: 1.5rem 0.75rem; }
  .stat { padding-left: 0.8rem; }
  .stat-number { font-size: 2.8rem; }
  .stat p { font-size: 0.73rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal-ready [data-reveal] { opacity: 1; }
}
