/* Flash messages */
.flash {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 200;
  width: min(92vw, 560px);
  margin: 0;
  padding: 0.85rem 1.05rem;
  text-align: center;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}
.flash--notice { background: rgba(246, 241, 232, 0.92); color: #001f35; }
.flash--alert { background: rgba(246, 241, 232, 0.92); color: #001f35; }
.flash--alert { border-color: rgba(170, 99, 19, 0.55); }
.flash--notice { border-color: rgba(0, 80, 0, 0.28); }

:root {
  --navy: #001f35;
  --tan: #aa6313;
  --steel: #a2a3a6;
  --off-white: #f6f1e8;
  --text: #212629;
  --max-width: 1120px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --heroOverlayA: 0.58;
  --heroOverlayB: 0.52;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Merriweather", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  background: linear-gradient(
    180deg,
    var(--off-white) 0%,
    #f0ebe2 50%,
    var(--off-white) 100%
  );
  background-attachment: fixed;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 31, 53, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, background 0.25s ease,
    transform 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.site-header.is-scrolled .logo-mark {
  height: 72px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 14px 0;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--navy);
}

.logo-mark {
  height: 84px;
  width: auto;
  max-width: none !important;
  display: block;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(0, 31, 53, 0.06);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: "Merriweather", Georgia, serif;
}

.nav a:not(.button) {
  position: relative;
  padding-bottom: 0.2rem;
  color: var(--navy);
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width 0.3s ease;
}

.nav a:not(.button):hover::after,
.nav a:not(.button):focus-visible::after {
  width: 100%;
}

.nav a:not(.button):hover,
.nav a:not(.button):focus-visible {
  opacity: 1;
}

.nav .button {
  opacity: 1;
}

.nav .button::after {
  display: none;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--off-white);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.hero::before {
  z-index: 1;
  background: radial-gradient(
      600px 300px at 20% 20%,
      rgba(170, 99, 19, 0.18),
      transparent 60%
    ),
    radial-gradient(
      700px 360px at 60% 30%,
      rgba(246, 241, 232, 0.1),
      transparent 65%
    ),
    radial-gradient(
      900px 420px at 80% 80%,
      rgba(0, 31, 53, 0.2),
      transparent 60%
    );
}

.hero::after {
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    120deg,
    rgba(0, 31, 53, var(--heroOverlayA)),
    rgba(0, 31, 53, var(--heroOverlayB))
  ),
  var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero--parallax .hero-bg {
  background-attachment: fixed;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 3rem 6rem 3rem;
  width: 50%;
  max-width: 50%;
  margin: 0 auto 0 0;
  font-family: "Merriweather", Georgia, serif;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 1.5rem;
}

h1,
h2 {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  color: var(--navy);
}

h3,
h4 {
  font-weight: 600;
  color: var(--navy);
  font-family: "Merriweather", Georgia, serif;
}

.hero h1 {
  font-size: 4.1rem;
  color: var(--off-white);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(246, 241, 232, 0.85);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.button {
  background: var(--tan);
  color: #ffffff;
  padding: 0.85rem 1.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Merriweather", Georgia, serif;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
  transition: transform 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(120%) skewX(-20deg);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.button--ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid rgba(246, 241, 232, 0.6);
}

.button--nav {
  padding: 0.65rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  min-width: 140px;
}

.section {
  padding: 5.5rem 0;
}

section[id] {
  scroll-margin-top: 120px;
}

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

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

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

.section-lead {
  font-size: 1.05rem;
  color: rgba(33, 38, 41, 0.75);
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 2rem;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid rgba(162, 163, 166, 0.28);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 31, 53, 0.06);
  transition: transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo);
}

.gallery-card:hover,
.gallery-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 31, 53, 0.12);
}

.gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-card:hover .gallery-image,
.gallery-card:focus-within .gallery-image {
  transform: scale(1.04);
}

.gallery-caption {
  padding: 1rem 1.1rem 1.15rem;
  color: rgba(33, 38, 41, 0.72);
  font-size: 0.95rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid rgba(162, 163, 166, 0.25);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 31, 53, 0.06);
  transition: transform 0.4s var(--ease-out-expo),
    box-shadow 0.4s var(--ease-out-expo);
}

.project-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-body {
  padding: 1.8rem;
  display: grid;
  gap: 0.75rem;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(162, 163, 166, 0.35);
  border-radius: 12px;
  padding: 2rem 2.2rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card h3 {
  font-size: 1.6rem;
}

.card p {
  color: rgba(33, 38, 41, 0.7);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.overview-card {
  background: #ffffff;
  border: 1px solid rgba(162, 163, 166, 0.28);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.overview-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--tan);
  margin: 0 auto 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tan);
  line-height: 1;
  --fa-primary-color: var(--tan);
  --fa-secondary-color: var(--tan);
  --fa-secondary-opacity: 1;
}

.overview-icon i {
  font-size: 1.05rem;
  line-height: 1;
  color: currentColor;
  font-style: normal;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 31, 53, 0.12);
}

.card:hover,
.card:focus-within,
.overview-card:hover,
.overview-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.project-card:hover .project-image,
.project-card:focus-within .project-image {
  transform: scale(1.05);
}

.service-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  color: rgba(33, 38, 41, 0.7);
}

.service-list li {
  position: relative;
  padding-left: 1.25rem;
}

.service-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tan);
  position: absolute;
  left: 0;
  top: 0.6rem;
}

.services-playbook {
  margin-top: 1.5rem;
}

.services-playbook-header {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.services-playbook-header h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin-bottom: 0.75rem;
}

.capability-explorer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 2rem;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(162, 163, 166, 0.25);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 34px rgba(0, 31, 53, 0.08);
  overflow: hidden;
}

.capability-explorer::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
      650px 380px at 15% 30%,
      rgba(170, 99, 19, 0.13),
      transparent 65%
    ),
    radial-gradient(
      760px 430px at 80% 20%,
      rgba(0, 31, 53, 0.1),
      transparent 60%
    );
  pointer-events: none;
}

.capability-nav,
.capability-panels {
  position: relative;
  z-index: 1;
}

.capability-nav {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.capability-tab {
  text-align: left;
  width: 100%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(162, 163, 166, 0.35);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.capability-tab:hover,
.capability-tab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(170, 99, 19, 0.35);
}

.capability-tab:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.capability-tab[aria-selected="true"] {
  border-color: rgba(170, 99, 19, 0.55);
  box-shadow: 0 16px 30px rgba(170, 99, 19, 0.14);
  transform: translateY(-2px);
}

.capability-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(170, 99, 19, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tan);
  background: rgba(246, 241, 232, 0.7);
}

.capability-tab-icon i {
  font-size: 1.05rem;
}

.capability-tab-text {
  display: grid;
  gap: 0.25rem;
}

.capability-tab-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.capability-tab-subtitle {
  font-size: 0.9rem;
  color: rgba(33, 38, 41, 0.68);
}

.capability-panel {
  background: #ffffff;
  border: 1px solid rgba(162, 163, 166, 0.35);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 26px rgba(0, 31, 53, 0.06);
  min-height: 360px;
}

.capability-panel-header h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.capability-lead {
  color: rgba(33, 38, 41, 0.75);
  max-width: 62ch;
}

.capability-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(170, 99, 19, 0.35);
  background: rgba(246, 241, 232, 0.85);
  color: rgba(0, 31, 53, 0.92);
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.deliverables-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.6rem;
  margin-top: 1.6rem;
  color: rgba(33, 38, 41, 0.72);
}

.deliverable {
  position: relative;
  padding-left: 1.3rem;
}

.deliverable::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tan);
  position: absolute;
  left: 0;
  top: 0.55rem;
  box-shadow: 0 0 0 4px rgba(170, 99, 19, 0.12);
}

.about {
  background: #ffffff;
}

.about-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.about-highlights {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.about-highlights span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.4rem;
}

.contact {
  background: linear-gradient(
    160deg,
    var(--navy) 0%,
    #002a47 50%,
    var(--navy) 100%
  );
  color: var(--off-white);
}

.contact h2,
.contact p {
  color: var(--off-white);
}

form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.75);
  font-family: "Merriweather", Georgia, serif;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(162, 163, 166, 0.4);
  background: rgba(255, 255, 255, 0.98);
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  font-family: "Merriweather", Georgia, serif;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

footer {
  padding: 2.5rem 0 3.5rem;
  background: var(--navy);
  color: rgba(246, 241, 232, 0.65);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-mark {
  height: 56px;
  width: auto;
  max-width: 220px;
  opacity: 0.92;
  object-fit: contain;
  flex: 0 0 auto;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .site-header .container {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.3s ease;
    padding-top: 0;
  }

  .nav.is-open {
    max-height: 400px;
    opacity: 1;
    visibility: visible;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(0, 31, 53, 0.08);
    margin-top: 0.5rem;
  }

  .nav a {
    padding: 0.85rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 31, 53, 0.06);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.5rem;
    justify-self: center;
  }

  .nav a:not(.button)::after {
    display: none;
  }

  .logo-mark {
    height: 56px;
  }

  .hero {
    align-items: flex-start;
  }

  .hero .container {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    width: 50%;
    max-width: 50%;
  }

  .hero-content {
    padding: 4rem 1.5rem 5rem 1.5rem;
  }

  .hero--parallax .hero-bg {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-content {
    padding: 4rem 0 5rem;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 920px) {
  .capability-explorer {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .capability-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 0.9rem;
    scroll-snap-type: x mandatory;
  }

  .capability-tab {
    scroll-snap-align: start;
  }

  .capability-panel {
    min-height: unset;
  }
}

@media (max-width: 560px) {
  .capability-panel {
    padding: 1.5rem;
  }

  .deliverables-grid {
    grid-template-columns: 1fr;
  }
}
