:root {
  --ivory: #f7f4ee;
  --paper: #fffdf8;
  --charcoal: #171514;
  --ink: #27231f;
  --muted: #5e564d;
  --gold: #b99a63;
  --bronze: #7a6141;
  --slate: #5e6d7e;
  --line: #ddd4c4;
  --shadow: 0 28px 80px rgba(23, 21, 20, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 238, 0.88);
  border-bottom: 1px solid rgba(221, 212, 196, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: 154px;
  height: 54px;
  overflow: hidden;
}

.brand img {
  width: 154px;
  transform: translateY(-9px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
}

.nav-cta,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-cta,
.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--charcoal);
}

.button.secondary {
  border-color: var(--line);
  color: var(--charcoal);
  background: transparent;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 700;
}

.section-pad {
  padding: 68px clamp(22px, 5vw, 72px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 46px;
  align-items: center;
  overflow: hidden;
}

.page-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: clamp(20px, 7vw, 100px);
  top: 18%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185, 154, 99, 0.16), rgba(185, 154, 99, 0));
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 52vw;
  height: 52vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(circle, rgba(185, 154, 99, 0.14), rgba(185, 154, 99, 0));
  pointer-events: none;
}

.hero-copy,
.hero-visual {
  position: relative;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 850px;
  font-size: 62px;
  line-height: 1.02;
}

h2 {
  max-width: 900px;
  font-size: 46px;
  line-height: 1.08;
}

h3 {
  margin: 0;
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1.18;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.hero-art {
  width: min(760px, 100%);
  max-height: 560px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 30px 70px rgba(23, 21, 20, 0.16));
  transform-origin: center;
  animation: floatHero 8s ease-in-out infinite;
}

.fallback-art {
  display: none;
}

.hero-3d-scene {
  --rx: 0deg;
  --ry: 0deg;
  --tx: 0px;
  --ty: 0px;
  position: relative;
  width: min(700px, 100%);
  aspect-ratio: 1.28;
  transform-style: preserve-3d;
  transform: translate3d(var(--tx), var(--ty), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 180ms ease-out;
  filter: drop-shadow(0 34px 76px rgba(23, 21, 20, 0.18));
  animation: floatHero 8s ease-in-out infinite;
}

.evidence-canvas {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.glass-plane,
.floating-page {
  position: absolute;
  border-radius: 8px;
  border: 1px solid rgba(185, 154, 99, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.82), rgba(247, 244, 238, 0.36)),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.85), transparent 30%);
  box-shadow:
    inset 0 1px 18px rgba(255, 255, 255, 0.48),
    0 22px 52px rgba(23, 21, 20, 0.08);
  backdrop-filter: blur(10px);
}

.plane-back {
  width: 72%;
  height: 48%;
  right: 4%;
  top: 28%;
  transform: translateZ(-40px) rotateX(57deg) rotateZ(-3deg);
  opacity: 0.55;
}

.plane-mid {
  width: 78%;
  height: 52%;
  right: 9%;
  top: 19%;
  transform: translateZ(10px) rotateX(57deg) rotateZ(1deg);
  opacity: 0.72;
}

.plane-front {
  width: 70%;
  height: 48%;
  right: 14%;
  top: 18%;
  z-index: 4;
  padding: 34px;
  transform: translateZ(72px) rotateX(57deg) rotateZ(-2deg);
}

.plane-title {
  display: block;
  color: var(--bronze);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.plane-line {
  display: block;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(122, 97, 65, 0.42), rgba(185, 154, 99, 0.08));
}

.line-a { width: 72%; }
.line-b { width: 50%; }
.line-c { width: 36%; }

.floating-page {
  width: 46%;
  height: 20%;
  left: 32%;
  top: 13%;
  z-index: 6;
  transform: translateZ(118px) rotateX(62deg) rotateZ(7deg);
  animation: pageLift 6.4s ease-in-out infinite;
}

.page-two {
  width: 38%;
  height: 18%;
  left: 48%;
  top: 58%;
  opacity: 0.82;
  transform: translateZ(82px) rotateX(57deg) rotateZ(-9deg);
  animation-delay: -2.2s;
}

.intro,
.portfolio,
.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 42px;
}

.pathway-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pathway-card,
.case-card,
.service-grid article {
  border-radius: 8px;
  padding: 28px;
}

.pathway-card,
.case-card {
  min-height: 440px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(23, 21, 20, 0.05);
}

.gold-rule {
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.card-kicker {
  margin: 0 0 10px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pathway-card p,
.case-card p,
.service-grid p,
.compliance p,
.join p,
.footer p {
  color: var(--muted);
  line-height: 1.58;
}

.compliance-copy .button {
  margin-top: 18px;
}

.pathway-card ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.card-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 14px;
}

.dark {
  background: var(--charcoal);
  color: var(--ivory);
}

.dark h2,
.dark h3 {
  color: var(--ivory);
}

.dark .eyebrow {
  color: #d3b371;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.service-grid article {
  min-height: 250px;
  border: 1px solid rgba(185, 154, 99, 0.32);
  background: rgba(255, 253, 248, 0.05);
}

.service-grid p,
.dark p {
  color: #d8cec0;
}

.portfolio {
  border-top: 0;
}

.case-card {
  min-height: 270px;
}

.compliance {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.checklist {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 28px;
  background: var(--charcoal);
  border: 1px solid rgba(185, 154, 99, 0.34);
  box-shadow: var(--shadow);
}

.checklist span {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding-left: 30px;
  color: #efe7dc;
  line-height: 1.4;
}

.checklist span::before {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.join {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.join div {
  max-width: 860px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--ivory);
  color: var(--charcoal);
  font: inherit;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.contact-form button {
  width: fit-content;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-section-title {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 28px;
}

.form-section-title:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-status {
  padding: 14px 16px;
  border: 1px solid rgba(185, 154, 99, 0.34);
  border-radius: 8px;
  background: rgba(185, 154, 99, 0.12);
  color: var(--charcoal);
  font-weight: 700;
}

.hidden-field {
  display: none;
}

.content-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.content-split p {
  color: var(--muted);
  line-height: 1.58;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feature-list span,
.service-directory article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ivory);
  box-shadow: 0 14px 40px rgba(23, 21, 20, 0.04);
}

.feature-list span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 15px 16px;
  color: var(--charcoal);
  font-weight: 700;
}

.process-grid,
.service-directory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.process-grid article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid rgba(185, 154, 99, 0.32);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.05);
}

.process-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

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

.service-directory article {
  min-height: 260px;
  padding: 28px;
}

.engagement-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
  padding: 32px;
  border: 1px solid rgba(185, 154, 99, 0.32);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--ivory);
}

.engagement-banner h2 {
  max-width: 780px;
  color: var(--ivory);
  font-size: 38px;
}

.engagement-banner .eyebrow {
  color: #d3b371;
}

.service-directory p {
  color: var(--muted);
  line-height: 1.58;
}

.case-card.tall {
  min-height: 420px;
}

.footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 22px;
  text-align: center;
  background: var(--charcoal);
}

.footer img {
  width: 220px;
  max-width: 70vw;
  filter: brightness(1.12);
}

.footer p {
  max-width: 720px;
  margin: 0;
  color: #d8cec0;
}

.footer-links a {
  color: #efe7dc;
  text-decoration: none;
}

.legal-content {
  max-width: 920px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.legal-content h2,
.legal-content h3 {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 32px;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.68;
}

@keyframes floatHero {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.012); }
}

@keyframes pageLift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

@supports not (transform-style: preserve-3d) {
  .hero-3d-scene {
    display: none;
  }

  .fallback-art {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }

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

  .pathway-card,
  .case-card,
  .service-grid article,
  .service-directory article,
  .process-grid article,
  .checklist {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }

  .pathway-card:hover,
  .case-card:hover,
  .service-grid article:hover,
  .service-directory article:hover,
  .process-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(23, 21, 20, 0.1);
    border-color: rgba(185, 154, 99, 0.42);
  }
}

@media (max-width: 1040px) {
  .hero,
  .compliance {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .pathway-grid,
  .case-grid,
  .service-grid,
  .process-grid,
  .service-directory {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .section-pad {
    padding: 64px 22px;
  }

  h1 {
    font-size: 43px;
    line-height: 1.04;
  }

  h2 {
    font-size: 34px;
    line-height: 1.12;
  }

  .lead {
    font-size: 18px;
  }

  .site-header {
    align-items: flex-start;
    min-height: 74px;
  }

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

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .brand {
    width: 132px;
  }

  .brand img {
    width: 132px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-art {
    max-height: 380px;
  }

  .hero-3d-scene {
    width: min(100%, 360px);
  }

  .plane-front {
    padding: 22px;
  }

  .pathway-grid,
  .case-grid,
  .service-grid,
  .process-grid,
  .service-directory,
  .feature-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

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

  .join {
    align-items: start;
    flex-direction: column;
  }

  .engagement-banner {
    align-items: start;
    flex-direction: column;
    padding: 24px;
  }

  .engagement-banner h2 {
    font-size: 30px;
  }
}
