:root {
  --gold: #ffc613;
  --gold-soft: #ffe49a;
  --maroon: #842b2b;
  --maroon-dark: #561d1f;
  --cream: #fbf6ea;
  --stone: #efe6d7;
  --sage: #6c825b;
  --green: #477648;
  --ink: #2a2722;
  --muted: #6f655c;
  --line: rgba(86, 29, 31, 0.14);
  --white: #fff;
  --shadow: 0 18px 45px rgba(55, 38, 24, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--gold);
  color: var(--maroon-dark);
  border-radius: var(--radius);
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(251, 246, 234, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease;
}

.site-header.is-hidden {
  transform: translateY(-105%);
}

.site-header.has-shadow {
  box-shadow: 0 12px 32px rgba(58, 34, 20, 0.08);
}

.nav-wrap,
.section-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--maroon-dark);
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.brand span {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--maroon-dark);
  display: block;
  position: absolute;
  transition: transform .22s ease, opacity .22s ease;
}

.nav-toggle {
  position: relative;
}

.nav-toggle::before {
  transform: translateY(-7px);
}

.nav-toggle::after {
  transform: translateY(7px);
}

.nav-open .nav-toggle span {
  opacity: 0;
}

.nav-open .nav-toggle::before {
  transform: rotate(45deg);
}

.nav-open .nav-toggle::after {
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .22rem;
}

.nav-menu a {
  text-decoration: none;
  padding: .58rem .72rem;
  border-radius: var(--radius);
  color: #4f4038;
  font-size: .94rem;
  font-weight: 760;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--maroon-dark);
  background: rgba(255, 198, 19, .22);
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.05rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.button.primary {
  background: var(--gold);
  color: var(--maroon-dark);
  box-shadow: 0 12px 28px rgba(132, 43, 43, 0.16);
}

.button.secondary {
  background: var(--maroon);
  color: var(--white);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255,255,255,.65);
  color: var(--maroon-dark);
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 48px 0 34px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,198,19,.24), transparent 30%),
    linear-gradient(120deg, var(--cream), #fffaf0 56%, #f0e4d2);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(340px, 1.06fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--maroon);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--maroon-dark);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
  color: #5d5047;
  max-width: 680px;
  margin-top: 1.2rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.7rem;
}

.hero-card {
  position: relative;
  min-height: 560px;
}

.hero-card .logo-float {
  position: absolute;
  z-index: 2;
  left: -22px;
  top: -24px;
  width: 145px;
  height: 145px;
  object-fit: contain;
  background: rgba(251,246,234,.82);
  border-radius: 50%;
  box-shadow: var(--shadow);
  padding: 10px;
}

.hero-card .hero-img {
  width: 100%;
  height: min(68vh, 640px);
  min-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  background: var(--maroon-dark);
  color: var(--white);
  padding: 1.5rem;
}

.metric strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  color: var(--gold);
}

.metric span {
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

section {
  padding: clamp(3.4rem, 7vw, 6.5rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .6fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.earth {
  background: linear-gradient(135deg, #f8f1e4, #eef1df);
}

.maroon-band {
  background: var(--maroon-dark);
  color: var(--white);
}

.maroon-band h2,
.maroon-band h3 {
  color: var(--white);
}

.maroon-band .eyebrow,
.maroon-band strong {
  color: var(--gold);
}

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

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

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 10px 30px rgba(55, 38, 24, 0.055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(55, 38, 24, 0.11);
}

.card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.card p,
.split p,
.timeline p,
.footer p,
.plain-list li {
  color: var(--muted);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: inline-grid;
  place-items: center;
  background: rgba(255,198,19,.24);
  color: var(--maroon-dark);
  font-weight: 950;
  margin-bottom: .85rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 4.6rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, .95fr);
}

.split img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: .8rem;
}

.check-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: #4d443d;
  font-weight: 680;
}

.check-list li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: .18rem;
  box-shadow: inset 0 0 0 6px rgba(132,43,43,.15);
}

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

.quote {
  font-size: 1.08rem;
  color: #4c433b;
}

.quote::before {
  content: open-quote;
}

.quote::after {
  content: close-quote;
}

.person {
  font-weight: 850;
  color: var(--maroon-dark);
}

.logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.partner-logo {
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--maroon-dark);
  background: rgba(255,255,255,.7);
  font-weight: 900;
  text-align: center;
  padding: 1rem;
}

.page-hero {
  padding: 72px 0 46px;
  background: linear-gradient(135deg, #fff7df, #f2e7d6);
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .58fr);
  gap: 2rem;
  align-items: center;
}

.page-hero img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 1rem;
  counter-reset: timeline;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border-left: 5px solid var(--gold);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.timeline-item strong {
  color: var(--maroon);
  font-size: 1.2rem;
}

.product-card .meta,
.job .meta {
  color: var(--maroon);
  font-weight: 850;
  margin: .55rem 0;
}

.job-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.job-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.solution-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.solution-row:last-child {
  border-bottom: 0;
}

.solution-row h3 {
  color: var(--maroon);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr);
  gap: 1.2rem;
  align-items: start;
}

form {
  display: grid;
  gap: .95rem;
}

label {
  display: grid;
  gap: .32rem;
  font-weight: 800;
  color: var(--maroon-dark);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(86,29,31,.22);
  border-radius: var(--radius);
  padding: .86rem .92rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .95rem;
}

.site-footer {
  background: #201716;
  color: var(--white);
  padding: 3.2rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .75fr);
  gap: 2rem;
}

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

.footer .brand img {
  width: 92px;
  height: 92px;
}

.footer h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: .75rem;
}

.footer a {
  display: block;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  margin: .42rem 0;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 2.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,.64);
  font-size: .92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: 78px 0 auto 0;
    background: rgba(251,246,234,.98);
    display: grid;
    gap: .2rem;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }

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

  .nav-menu a {
    padding: .9rem 1rem;
  }

  .hero-grid,
  .split,
  .split.reverse,
  .page-hero .section-inner,
  .contact-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-card .hero-img {
    min-height: 340px;
    height: 48vh;
  }

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

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

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

@media (max-width: 620px) {
  .nav-wrap,
  .section-inner {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .nav-menu {
    top: 68px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card .logo-float {
    width: 105px;
    height: 105px;
    left: 10px;
    top: -18px;
  }

  .grid.three,
  .grid.four,
  .grid.two,
  .logos,
  .metrics-strip,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline-item,
  .solution-row {
    grid-template-columns: 1fr;
  }

  .metric {
    padding: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
