:root {
  --burgundy: #79242f;
  --burgundy-dark: #42151b;
  --ink: #171516;
  --ink-soft: #2b2727;
  --paper: #f4efe8;
  --paper-strong: #fffaf3;
  --muted: #b9afa8;
  --gold: #b9965e;
  --sage: #60706a;
  --line: rgba(255, 255, 255, 0.15);
  --max: 1180px;
  --header: 104px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper-strong);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.95);
  color: var(--ink);
  border-bottom: 1px solid rgba(23, 21, 22, 0.08);
  backdrop-filter: blur(16px);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 18px 44px rgba(23, 21, 22, 0.14);
}

.contact-bar {
  min-height: 34px;
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
  background: var(--burgundy);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-bar a {
  transition: opacity 180ms ease;
}

.contact-bar a:hover {
  opacity: 0.78;
}

.nav-shell {
  height: 70px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 244px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 800;
}

.primary-nav a {
  position: relative;
  padding: 24px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--burgundy);
  transition: transform 220ms var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 21, 22, 0.18);
  border-radius: 4px;
  background: transparent;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform 220ms ease, opacity 220ms ease;
}

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

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

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

.hero {
  min-height: calc(84svh - var(--header));
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 118px 26px 70px;
  background: var(--ink);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
}

.hero-media img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.96) contrast(1.04);
  transform: scale(1.02);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 15, 16, 0.94) 0%, rgba(18, 15, 16, 0.88) 36%, rgba(18, 15, 16, 0.36) 68%, rgba(18, 15, 16, 0.12) 100%),
    linear-gradient(0deg, rgba(18, 15, 16, 0.58) 0%, rgba(18, 15, 16, 0.02) 46%);
}

.hero-thread {
  position: absolute;
  right: 3%;
  bottom: 10%;
  width: min(48vw, 680px);
  height: auto;
  z-index: -1;
  opacity: 0.78;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(185, 150, 94, 0.34));
}

.hero-thread path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-thread 1600ms var(--ease) 480ms forwards;
}

.hero-thread circle {
  fill: var(--paper-strong);
  stroke: var(--gold);
  stroke-width: 2;
  transform-origin: center;
  opacity: 0;
  animation: pin-in 420ms ease forwards;
}

.hero-thread circle:nth-of-type(1) {
  animation-delay: 980ms;
}

.hero-thread circle:nth-of-type(2) {
  animation-delay: 1180ms;
}

.hero-thread circle:nth-of-type(3) {
  animation-delay: 1380ms;
}

@keyframes draw-thread {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pin-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-content {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0;
}

.hero-content > * {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: 5.45rem;
  color: #fff;
}

h2 {
  margin-bottom: 0;
  font-size: 3.1rem;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-lede {
  margin-bottom: 32px;
  color: rgba(255, 250, 243, 0.86);
  font-size: 1.18rem;
  max-width: 610px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 800;
  transition: transform 220ms var(--ease), background 220ms ease, color 220ms ease, border-color 220ms ease;
}

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

.button-primary {
  color: #fff;
  background: var(--burgundy);
  border-color: var(--burgundy);
  box-shadow: 0 16px 36px rgba(121, 36, 47, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #8d2b38;
  border-color: #8d2b38;
}

.button-secondary {
  color: var(--paper-strong);
  border-color: rgba(255, 250, 243, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--paper-strong);
  background: rgba(255, 255, 255, 0.12);
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-assurance span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 250, 243, 0.08);
  border-bottom: 1px solid rgba(255, 250, 243, 0.08);
  background: #211d1d;
}

.proof-item {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 34px;
  border-right: 1px solid rgba(255, 250, 243, 0.08);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item strong {
  color: var(--paper-strong);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2.35rem;
  line-height: 1;
}

.proof-item span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.section-pad {
  padding: 112px 26px;
}

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

.intro {
  background: var(--paper);
  color: var(--ink);
}

.intro-grid,
.network-grid,
.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 68px;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.network-copy h2,
.final-cta h2 {
  color: inherit;
}

.intro-text {
  color: #4d4744;
  font-size: 1.04rem;
}

.intro-text p + p {
  margin-top: 20px;
}

.services {
  background:
    linear-gradient(180deg, rgba(121, 36, 47, 0.26), rgba(23, 21, 22, 0) 34%),
    var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-panel {
  min-height: 320px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 260ms var(--ease), background 260ms ease, border-color 260ms ease;
}

.service-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(185, 150, 94, 0.5);
  background: rgba(255, 255, 255, 0.055);
}

.service-panel span,
.flow-step span {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
}

.service-panel h3 {
  color: #fff;
}

.service-panel p {
  color: rgba(255, 250, 243, 0.68);
  margin-bottom: 0;
}

.case-flow {
  background: var(--paper);
  color: var(--ink);
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 82px;
  align-items: start;
}

.flow-visual {
  position: sticky;
  top: 136px;
}

.dossier-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(23, 21, 22, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(121, 36, 47, 0.12), rgba(255, 250, 243, 0.9)),
    repeating-linear-gradient(90deg, rgba(23, 21, 22, 0.045) 0 1px, transparent 1px 78px),
    var(--paper-strong);
}

.dossier {
  position: absolute;
  width: 210px;
  height: 132px;
  border: 1px solid rgba(23, 21, 22, 0.14);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(23, 21, 22, 0.14);
  transform: rotate(-3deg);
}

.dossier::before {
  content: "";
  position: absolute;
  inset: 18px 22px auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 0 rgba(255, 255, 255, 0.28), 0 36px 0 rgba(255, 255, 255, 0.22);
}

.dossier span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
}

.dossier-open {
  left: 36px;
  top: 38px;
  background: #5d2028;
}

.dossier-closed {
  right: 26px;
  bottom: 38px;
  background: var(--burgundy);
  transform: rotate(2deg);
}

.flow-path {
  position: absolute;
  inset: 20px 20px 20px auto;
  width: 76%;
  height: calc(100% - 40px);
}

.flow-path path {
  fill: none;
  stroke: var(--burgundy);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--flow-progress, 0));
  filter: drop-shadow(0 10px 16px rgba(121, 36, 47, 0.2));
}

.checkpoint {
  position: absolute;
  min-width: 98px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(121, 36, 47, 0.2);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(23, 21, 22, 0.12);
  opacity: calc(0.35 + var(--flow-progress, 0) * 0.65);
}

.checkpoint-a {
  left: 178px;
  top: 155px;
}

.checkpoint-b {
  right: 34px;
  top: 274px;
}

.checkpoint-c {
  left: 128px;
  bottom: 138px;
}

.flow-copy h2 {
  margin-bottom: 36px;
}

.flow-step {
  padding: 30px 0;
  border-top: 1px solid rgba(23, 21, 22, 0.12);
}

.flow-step:last-child {
  border-bottom: 1px solid rgba(23, 21, 22, 0.12);
}

.flow-step span {
  margin-bottom: 12px;
}

.flow-step h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.22rem;
}

.flow-step p {
  max-width: 610px;
  margin-bottom: 0;
  color: #4d4744;
}

.network {
  background: #221e1e;
}

.network-media {
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
}

.network-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(0.96) brightness(0.86);
  transition: transform 700ms var(--ease);
}

.network-media:hover img {
  transform: scale(1.035);
}

.network-copy {
  align-self: center;
}

.network-copy p {
  color: rgba(255, 250, 243, 0.72);
  font-size: 1.04rem;
}

.connexx-lockup {
  margin-top: 34px;
  padding: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 250, 243, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.connexx-lockup img {
  width: 240px;
  height: auto;
  filter: brightness(1.08);
}

.connexx-lockup span {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.objections {
  background: var(--paper-strong);
  color: var(--ink);
}

.objection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(23, 21, 22, 0.12);
  border: 1px solid rgba(23, 21, 22, 0.12);
}

.objection {
  min-height: 260px;
  padding: 32px;
  background: var(--paper-strong);
}

.objection h3 {
  color: var(--ink);
  font-size: 1.25rem;
}

.objection p {
  color: #504946;
  margin-bottom: 0;
}

.final-cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(121, 36, 47, 0.84), rgba(23, 21, 22, 0.94)),
    var(--ink);
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-dossier-line.jpg");
  background-position: center right;
  background-size: cover;
  opacity: 0.16;
  mix-blend-mode: screen;
}

.final-grid {
  position: relative;
  z-index: 1;
  align-items: center;
}

.final-cta p {
  max-width: 620px;
  color: rgba(255, 250, 243, 0.74);
}

.contact-panel {
  display: grid;
  gap: 26px;
  padding: 34px;
  border: 1px solid rgba(255, 250, 243, 0.18);
  border-radius: 8px;
  background: rgba(23, 21, 22, 0.44);
  backdrop-filter: blur(12px);
}

.contact-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel p {
  margin: 0;
  color: var(--paper-strong);
  font-weight: 600;
}

.contact-panel a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  min-height: 76px;
  padding: 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: rgba(255, 250, 243, 0.62);
  background: #100e0e;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer a {
  color: var(--paper-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

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

@media (max-width: 1180px) {
  h1 {
    font-size: 4.55rem;
  }

  h2 {
    font-size: 2.65rem;
  }

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

@media (max-width: 940px) {
  :root {
    --header: 88px;
  }

  .contact-bar {
    min-height: 30px;
    gap: 14px;
    font-size: 0.78rem;
  }

  .nav-shell {
    height: 58px;
    padding: 0 18px;
  }

  .brand {
    width: 196px;
  }

  .menu-toggle {
    display: grid;
  }

  .primary-nav {
    position: fixed;
    inset: 88px 0 auto;
    min-height: calc(100svh - 88px);
    padding: 36px 24px;
    display: grid;
    align-content: start;
    gap: 0;
    background: var(--paper-strong);
    transform: translateX(100%);
    transition: transform 280ms var(--ease);
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav a {
    padding: 20px 0;
    border-bottom: 1px solid rgba(23, 21, 22, 0.1);
    font-size: 1.2rem;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: calc(86svh - var(--header));
    padding: 92px 20px 54px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(18, 15, 16, 0.95) 0%, rgba(18, 15, 16, 0.86) 50%, rgba(18, 15, 16, 0.34) 100%),
      linear-gradient(0deg, rgba(18, 15, 16, 0.66) 0%, rgba(18, 15, 16, 0.08) 50%);
  }

  .hero-thread {
    width: 76vw;
    opacity: 0.42;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-lede {
    font-size: 1.06rem;
  }

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

  .proof-item {
    min-height: 116px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 250, 243, 0.08);
  }

  .section-pad {
    padding: 82px 20px;
  }

  .intro-grid,
  .network-grid,
  .final-grid,
  .flow-layout,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .flow-visual {
    position: relative;
    top: auto;
    order: 2;
  }

  .flow-copy {
    order: 1;
  }

  .dossier-stage {
    min-height: 440px;
  }

  .network-media {
    min-height: 360px;
  }

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

@media (max-width: 620px) {
  .contact-bar {
    justify-content: space-between;
    padding: 0 12px;
    gap: 8px;
  }

  .contact-bar a {
    font-size: 0.74rem;
  }

  .brand {
    width: 178px;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 2.46rem;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 1.88rem;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .hero-lede {
    margin-bottom: 24px;
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    gap: 10px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .hero-assurance {
    display: grid;
    gap: 7px;
    margin-top: 18px;
    font-size: 0.82rem;
  }

  .hero-assurance span {
    min-height: 30px;
  }

  .proof-strip,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
  }

  .service-panel {
    min-height: 244px;
  }

  .service-panel span {
    margin-bottom: 28px;
  }

  .dossier-stage {
    min-height: 392px;
  }

  .dossier {
    width: 162px;
    height: 104px;
  }

  .dossier-open {
    left: 20px;
    top: 26px;
  }

  .dossier-closed {
    right: 18px;
    bottom: 24px;
  }

  .checkpoint {
    min-width: 82px;
    min-height: 34px;
  }

  .checkpoint-a {
    left: 134px;
    top: 118px;
  }

  .checkpoint-b {
    right: 20px;
    top: 205px;
  }

  .checkpoint-c {
    left: 72px;
    bottom: 116px;
  }

  .connexx-lockup img {
    width: 210px;
  }

  .contact-panel {
    padding: 24px;
  }

  .site-footer {
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

  .flow-path path {
    stroke-dashoffset: 0;
  }
}
