:root {
  --navy: #07111f;
  --charcoal: #111827;
  --ivory: #f8f5ef;
  --white: #ffffff;
  --gold: #c9a45c;
  --gold-dark: #9b7834;
  --silver: #d8dee9;
  --blue: #2563eb;
  --mist: #eef2f7;
  --ink-soft: #46515f;
  --line: rgba(17, 24, 39, 0.12);
  --radius: 10px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(7, 17, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family:
    Inter, Manrope, "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(201, 164, 92, 0.48);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(248, 245, 239, 0.92);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  color: var(--navy);
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.logo-mark rect {
  fill: var(--navy);
}

.logo-mark path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  padding: 0.52rem 0.68rem;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(201, 164, 92, 0.12);
  color: var(--navy);
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.nav-cta {
  display: none;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 0.82rem 1.05rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

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

.button-small {
  min-height: 42px;
  padding: 0.62rem 0.85rem;
  font-size: 0.9rem;
}

.button-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.button-gold:hover {
  border-color: var(--white);
  background: var(--white);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.button-ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.button-dark {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.button-dark:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 78px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-compact {
  min-height: 520px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.95), rgba(7, 17, 31, 0.74) 48%, rgba(7, 17, 31, 0.44)),
    repeating-linear-gradient(90deg, rgba(216, 222, 233, 0.08) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(216, 222, 233, 0.07) 0 1px, transparent 1px 92px);
}

.hero-scene {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
}

.hero-scene .line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 164, 92, 0.72), transparent);
  transform-origin: center;
}

.line-a {
  top: 28%;
  right: -8%;
  width: 55%;
  animation: driftX 14s ease-in-out infinite alternate;
}

.line-b {
  bottom: 30%;
  left: 34%;
  width: 42%;
  transform: rotate(-26deg);
  animation: driftX 16s ease-in-out infinite alternate-reverse;
}

.node {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 0 22px rgba(201, 164, 92, 0.45);
}

.node-a {
  top: 25%;
  right: 28%;
}

.node-b {
  bottom: 30%;
  left: 48%;
}

.node-c {
  top: 58%;
  right: 12%;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.015em;
}

.hero-compact h1 {
  max-width: 900px;
  font-size: clamp(2.55rem, 6vw, 4.9rem);
}

.hero-lede {
  max-width: 780px;
  margin: 1.3rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.hero-media {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(7, 17, 31, 0.54)),
    linear-gradient(90deg, rgba(201, 164, 92, 0.12), transparent 28%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow {
  color: var(--gold);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 850;
  text-align: center;
}

.trust-strip span:last-child {
  border-right: 0;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

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

.section-heading h2,
.split h2,
.cta-panel h2,
.lead-magnet h2,
.note-panel h2,
.legal-copy h2 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.section-heading p,
.rich-copy p,
.cta-panel p,
.lead-magnet p,
.legal-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-dark .section-heading p,
.section-dark .feature-list p {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.rich-copy {
  display: grid;
  gap: 0.9rem;
}

.service-grid,
.compact-grid,
.case-grid,
.article-grid,
.visual-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.compact-grid article,
.case-card,
.article-card,
.note-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.15rem, 3vw, 1.55rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.service-card:hover,
.compact-grid article:hover,
.case-card:hover,
.article-card:hover,
.visual-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow: var(--shadow);
}

.visual-grid article {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  border-radius: var(--radius);
  background: var(--navy);
  overflow: hidden;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease;
}

.visual-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 260ms ease;
}

.visual-grid article:hover img {
  transform: scale(1.035);
}

.visual-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(7, 17, 31, 0.86));
}

.visual-grid h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.15rem;
  color: var(--white);
  font-size: 1.25rem;
}

.card-index {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3,
.compact-grid h3,
.case-card h2,
.article-card h2,
.feature-list h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  line-height: 1.15;
}

.service-card p,
.compact-grid p,
.case-card p,
.article-card p,
.feature-list p,
.contact-layout p {
  color: var(--ink-soft);
}

.service-card ul,
.check-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.check-list li {
  position: relative;
  padding-left: 1.2rem;
}

.service-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.text-link {
  color: var(--gold-dark);
  font-weight: 900;
}

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

.feature-list article {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.feature-list.light article {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
  background: var(--white);
}

.process-grid li {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  border-right: 1px solid var(--line);
  padding: 1rem;
}

.process-grid li:last-child {
  border-right: 0;
}

.process-grid span {
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.process-grid strong {
  font-size: 1.08rem;
}

.metric-grid article {
  min-height: 170px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

.metric-grid strong {
  color: var(--gold);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}

.metric-grid span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

.lead-magnet,
.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(201, 164, 92, 0.45);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(201, 164, 92, 0.1), transparent 38%),
    var(--white);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.cta-panel {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.case-card dl {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.case-card dt {
  color: var(--navy);
  font-weight: 900;
}

.case-card dd {
  margin: 0.18rem 0 0;
  color: var(--ink-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(17, 24, 39, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  padding: 0.74rem 0.78rem;
}

textarea {
  resize: vertical;
}

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

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: 8px;
  padding: 1rem;
  font-weight: 750;
}

.form-status.success {
  background: #edf7ef;
  color: #174d25;
}

.form-status.error {
  background: #fbeeee;
  color: #8f1d1d;
}

.form-result {
  min-height: 100svh;
  display: grid;
  align-content: center;
  max-width: 760px;
}

.form-result h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1;
}

.legal-copy {
  max-width: 850px;
}

.legal-copy h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 3.2rem;
}

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

.footer-brand .logo-mark rect {
  fill: rgba(255, 255, 255, 0.08);
}

.site-footer h2 {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer li,
.site-footer small {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: inherit;
}

.footer-bottom {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

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

@keyframes driftX {
  from {
    transform: translateX(-18px);
  }

  to {
    transform: translateX(18px);
  }
}

@media (min-width: 1120px) {
  .primary-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

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

@media (max-width: 1119px) {
  .primary-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    width: min(calc(100% - 28px), 720px);
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.65rem;
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav a {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .trust-strip,
  .service-grid,
  .compact-grid,
  .case-grid,
  .article-grid,
  .visual-grid,
  .metric-grid,
  .process-grid,
  .footer-grid,
  .split,
  .contact-layout,
  .lead-magnet,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .trust-strip span,
  .process-grid li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip span:last-child,
  .process-grid li:last-child {
    border-bottom: 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-media {
    max-width: 680px;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .footer-grid,
  .footer-bottom {
    width: min(calc(100% - 24px), var(--max));
  }

  .nav-shell {
    min-height: 70px;
  }

  .primary-nav {
    top: 70px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .hero-compact {
    min-height: calc(100svh - 70px);
  }

  .hero h1,
  .hero-compact h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .hero-media {
    display: none;
  }

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

  .button,
  .lead-magnet .button {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
