:root {
  --cream: #f8f0df;
  --paper: #fffaf0;
  --paper-strong: #f1dfbd;
  --charcoal: #25231f;
  --muted: #635d52;
  --burgundy: #8f3f12;
  --rust: #b55226;
  --orange: #e0802b;
  --olive: #667244;
  --amber: #d8a331;
  --steel: #8b918d;
  --line: rgba(37, 35, 31, 0.16);
  --shadow: 0 24px 60px rgba(61, 39, 21, 0.14);
  --radius: 24px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(224, 128, 43, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(102, 114, 68, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--cream), #efe1c8);
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 35, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 35, 31, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 240, 223, 0.9);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(2.5rem, 6vw, 3.75rem);
  max-width: min(17rem, 58vw);
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0.55rem 0.9rem;
  color: var(--charcoal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(92, 31, 34, 0.1);
}

.legacy-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  place-items: center;
  overflow: hidden;
  background: #222;
  color: white;
}

.legacy-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legacy-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.22);
}

.legacy-hero-content {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - 2rem));
  text-align: center;
}

.legacy-hero-content img {
  width: min(50%, 540px);
  min-width: 260px;
  height: auto;
}

.legacy-hero-content hr {
  max-width: 50px;
  margin: 30px auto;
  border: 0;
  border-top: 3px solid var(--orange);
}

.legacy-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 300px;
  background: #ff9706;
  color: white;
  padding: 15px 30px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.legacy-button:hover,
.legacy-button:focus {
  background: #ee4b28;
}

.legacy-data-strip {
  padding: 100px 0;
  background: white;
  color: #222;
}

.legacy-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  text-align: center;
}

.legacy-service {
  max-width: 400px;
  margin: 50px auto 0;
  padding-inline: 15px;
}

.legacy-service i {
  color: #ff9706;
  font-size: 4em;
  transform-origin: center;
  animation: legacyIconGrow 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.legacy-service:nth-child(2) i,
.legacy-service:nth-child(2) h3,
.legacy-service:nth-child(2) p {
  animation-delay: 90ms;
}

.legacy-service:nth-child(3) i,
.legacy-service:nth-child(3) h3,
.legacy-service:nth-child(3) p {
  animation-delay: 180ms;
}

.legacy-service:nth-child(4) i,
.legacy-service:nth-child(4) h3,
.legacy-service:nth-child(4) p {
  animation-delay: 270ms;
}

.legacy-service h3 {
  margin-top: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.045em;
  animation: legacyTextDrop 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.legacy-service p {
  margin: 0;
  color: #777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
  animation: legacyTextDrop 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero {
  padding: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
}

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

.hero-copy {
  max-width: 760px;
}

.hero-logo {
  display: block;
  width: min(30rem, 100%);
  margin: 0 0 1.8rem;
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.75rem;
  color: var(--burgundy);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 860px;
  font-size: clamp(3.2rem, 8.5vw, 7.4rem);
}

.hero-gateway h1,
.freight-hero h1,
.mentoring-hero h1,
.utilities-hero h1,
.contact-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.section-title-compact {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.lead {
  max-width: 680px;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--burgundy);
  color: var(--paper);
  box-shadow: 0 12px 24px rgba(92, 31, 34, 0.2);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 250, 240, 0.76);
  color: var(--charcoal);
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--burgundy);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link-disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.7;
}

.evidence-board,
.timeline-card,
.offer-card,
.feature-card,
.contact-form-card,
.about-panel,
.cta-panel,
.proof-card,
.fit-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.8);
  box-shadow: var(--shadow);
}

.evidence-board {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  transform: rotate(1deg);
}

.evidence-board::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: var(--steel);
  opacity: 0.38;
}

.board-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 1rem 1rem 1rem 2.6rem;
}

.board-card::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 1px var(--steel);
  transform: translateY(-50%);
}

.board-card.warning::before {
  background: var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}

.board-card span {
  color: var(--muted);
}

.board-card b {
  font-family: "Trebuchet MS", Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.split-cards,
.focus-grid,
.card-grid,
.proof-grid,
.fit-grid,
.steps-grid {
  display: grid;
  gap: 1rem;
}

.split-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(250px, 340px));
  max-width: 1080px;
  justify-content: start;
}

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

.proof-grid,
.fit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.feature-card,
.offer-card,
.proof-card,
.fit-card,
.contact-form-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.feature-card p,
.offer-card p,
.proof-card p,
.fit-card p {
  color: var(--muted);
  margin-top: 0.8rem;
}

.steps-grid .offer-card h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  letter-spacing: 0;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.method-band {
  border-block: 1px solid var(--line);
  background: rgba(92, 31, 34, 0.08);
}

.method-grid,
.about-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.about-panel,
.cta-panel {
  padding: clamp(1.4rem, 4vw, 3rem);
}

.about-panel p {
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-section {
  padding: 0 0 clamp(3rem, 7vw, 6rem);
}

.cta-panel {
  background:
    linear-gradient(135deg, rgba(92, 31, 34, 0.96), rgba(181, 82, 38, 0.92)),
    var(--burgundy);
  color: var(--paper);
}

.cta-panel p {
  max-width: 760px;
  margin-top: 1rem;
  color: rgba(255, 250, 240, 0.78);
}

.cta-panel .button {
  margin-top: 1.5rem;
  background: var(--paper);
  color: var(--burgundy);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.animated-word {
  color: var(--rust);
  transition: opacity 220ms ease;
  white-space: nowrap;
}

.timeline-card {
  padding: 1.2rem;
  overflow: hidden;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 0.7rem;
  min-width: 560px;
  padding: 1.4rem 0 0.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 2rem;
  height: 2px;
  background: var(--steel);
  opacity: 0.55;
}

.timeline-marker {
  position: absolute;
  left: 1.2rem;
  top: 1.42rem;
  z-index: 2;
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 1px var(--burgundy);
  animation: travel 12s ease-in-out infinite;
}

.timeline-node {
  position: relative;
  z-index: 1;
  padding-top: 1.8rem;
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-node::before {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 0.25rem;
  width: 0.78rem;
  height: 0.78rem;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 1px var(--steel);
}

.timeline-node.leak::before {
  background: var(--amber);
  animation: pulse 2.3s ease-in-out infinite;
}

.problem-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.problem-line {
  border-left: 4px solid var(--amber);
  padding: 0.8rem 1rem;
  background: rgba(255, 250, 240, 0.66);
  color: var(--muted);
}

.evidence-table {
  display: grid;
  gap: 0.8rem;
}

.evidence-row {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.75);
  padding: 1rem;
}

.evidence-row b {
  color: var(--burgundy);
}

.step-number {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--paper);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  padding: 0.2rem 1rem;
  box-shadow: none;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  color: var(--burgundy);
  font-weight: 700;
}

.faq-item p {
  color: var(--muted);
  padding-bottom: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  color: var(--charcoal);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--charcoal);
  font: inherit;
  line-height: 1.45;
  padding: 0.9rem 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(143, 63, 18, 0.16);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.form-option {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--charcoal);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.form-option input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--burgundy);
}

.form-help {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -0.45rem;
}

.contact-form .button {
  justify-self: start;
  margin-top: 0.4rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.2rem;
  padding: 1rem;
}

.form-message h2 {
  font-size: 1.2rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.form-message p,
.form-message li {
  color: var(--muted);
  margin-top: 0.5rem;
}

.form-message ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.form-message.success {
  background: rgba(95, 126, 82, 0.1);
}

.form-message.error {
  background: rgba(143, 63, 18, 0.1);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .legacy-service.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.js .legacy-service.reveal:nth-child(3) {
  transition-delay: 160ms;
}

.js .legacy-service.reveal:nth-child(4) {
  transition-delay: 240ms;
}

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

@keyframes travel {
  0%, 8% {
    left: 1.2rem;
  }
  45% {
    left: calc(50% - 0.6rem);
  }
  78%, 100% {
    left: calc(100% - 2.4rem);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 1px var(--steel), 0 0 0 0 rgba(216, 163, 49, 0.5);
  }
  50% {
    box-shadow: 0 0 0 1px var(--steel), 0 0 0 9px rgba(216, 163, 49, 0);
  }
}

@keyframes legacyIconGrow {
  0% {
    opacity: 0.65;
    transform: scale(0.82);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes legacyTextDrop {
  0% {
    opacity: 0.72;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .method-grid,
  .about-panel,
  .split-cards,
  .focus-grid,
  .card-grid,
  .proof-grid,
  .fit-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .legacy-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-service {
    margin-top: 40px;
  }

  .steps-grid {
    gap: 0.8rem;
  }

  .evidence-board {
    transform: none;
  }
}

@media (min-width: 992px) {
  .legacy-service {
    margin-top: 20px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  .nav {
    min-height: 68px;
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 0.7rem;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

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

  .button {
    width: 100%;
  }

  .timeline-card {
    overflow-x: auto;
  }

  .evidence-row {
    grid-template-columns: 1fr;
  }

  .legacy-hero {
    min-height: calc(100svh - 68px);
  }

  .legacy-services {
    grid-template-columns: 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
