:root {
  --ink: #07160e;
  --forest: #09291a;
  --naga: #105c36;
  --emerald: #16864d;
  --jade: #49b96f;
  --mint: #dff4e5;
  --ivory: #fbf8ef;
  --parchment: #f3ead6;
  --gold: #c7a24a;
  --line: rgba(7, 22, 14, 0.14);
  --shadow: 0 24px 70px rgba(7, 22, 14, 0.16);
  --cursor-x: 0px;
  --cursor-y: 0px;
  --scroll-ratio: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(73, 185, 111, 0.16), transparent 26%),
    radial-gradient(circle at 82% 4%, rgba(199, 162, 74, 0.12), transparent 23%),
    linear-gradient(180deg, var(--ivory), #f8f1df);
  content: "";
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 239, 0.88);
  border-bottom: 1px solid rgba(9, 41, 26, 0.1);
  backdrop-filter: blur(18px);
  transition: min-height 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(251, 248, 239, 0.95);
  box-shadow: 0 14px 34px rgba(7, 22, 14, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}

.brand strong {
  display: block;
  width: max-content;
  font-family: "Trajan Pro", "Trajan Pro 3", Cinzel, "Times New Roman", serif;
  font-size: 1.26rem;
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand small {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  color: var(--gold);
  font-family: "Trajan Pro", "Trajan Pro 3", Cinzel, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
}

.brand small::before,
.brand small::after {
  height: 1px;
  background: currentColor;
  content: "";
  flex: 1 1 auto;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: transparent;
  border: 0;
}

.logo-mark {
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.logo-mark + span {
  position: static;
  display: inline-grid;
  transform: translateY(4px);
  justify-items: center;
  width: var(--brand-name-width, auto);
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 34px);
  color: rgba(7, 22, 14, 0.74);
  font-size: 0.93rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--emerald);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ghost-link {
  color: var(--naga);
  font-size: 0.92rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--naga), var(--emerald));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  box-shadow: 0 14px 24px rgba(16, 92, 54, 0.22);
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 18px 34px rgba(16, 92, 54, 0.28);
  transform: translateY(-1px);
}

.button-secondary {
  color: var(--mint);
  background: rgba(7, 22, 14, 0.38);
  border-color: rgba(223, 244, 229, 0.32);
  box-shadow: none;
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.full-width {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--forest);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--mint);
}

.hero {
  position: relative;
  display: block;
  min-height: calc(100vh - 78px);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(7, 22, 14, 0.98) 0%, rgba(9, 41, 26, 0.94) 48%, rgba(16, 92, 54, 0.78) 100%),
    radial-gradient(circle at 74% 22%, rgba(73, 185, 111, 0.5), transparent 34%),
    var(--forest);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(to bottom, transparent, rgba(251, 248, 239, 0.98));
  content: "";
  pointer-events: none;
}

.hero::before {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background:
    linear-gradient(112deg, transparent 0 32%, rgba(223, 244, 229, 0.1) 32% 33.5%, transparent 33.5% 62%, rgba(199, 162, 74, 0.13) 62% 63%, transparent 63%),
    radial-gradient(circle at calc(72% + var(--cursor-x)) calc(48% + var(--cursor-y)), rgba(73, 185, 111, 0.28), transparent 24%);
  content: "";
  mix-blend-mode: screen;
  opacity: 0.72;
  pointer-events: none;
  transform: translate3d(calc(var(--cursor-x) * -0.35), calc(var(--cursor-y) * -0.28), 0);
  animation: diagonal-drift 16s ease-in-out infinite alternate;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  padding: clamp(72px, 9vw, 132px) clamp(22px, 5vw, 70px);
  will-change: transform;
  transform: translate3d(calc(var(--cursor-x) * -0.08), calc(var(--parallax-y, 0px) + var(--cursor-y) * -0.06), 0);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.5rem, 8.4vw, 7.6rem);
  letter-spacing: 0;
  line-height: 0.86;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-lede {
  max-width: 710px;
  margin: 28px 0 0;
  color: rgba(251, 248, 239, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.proof-strip {
  display: grid;
  max-width: 760px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 54px 0 0;
  background: rgba(223, 244, 229, 0.16);
  border: 1px solid rgba(223, 244, 229, 0.16);
}

.proof-strip div {
  padding: 20px;
  background: rgba(7, 22, 14, 0.36);
}

.proof-strip dt {
  color: var(--mint);
  font-size: 1.4rem;
  font-weight: 900;
}

.proof-strip dd {
  margin: 2px 0 0;
  color: rgba(251, 248, 239, 0.68);
  font-size: 0.86rem;
}

.hero-art {
  position: absolute;
  inset: 0;
  min-height: 100%;
  opacity: 0.78;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(calc(var(--cursor-x) * 0.25), calc(var(--parallax-y, 0px) + var(--cursor-y) * 0.2), 0);
}

.hero-depth {
  position: absolute;
  inset: -16% -8%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.hero-depth-back {
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(223, 244, 229, 0.09) 22% 23.5%, transparent 23.5% 47%, rgba(199, 162, 74, 0.11) 47% 48.5%, transparent 48.5%),
    radial-gradient(circle at 76% 42%, rgba(73, 185, 111, 0.28), transparent 22%);
  animation: depth-drift 18s ease-in-out infinite alternate;
}

.hero-depth-mid {
  inset: -8%;
  background:
    repeating-linear-gradient(90deg, rgba(223, 244, 229, 0.055) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(223, 244, 229, 0.042) 0 1px, transparent 1px 58px);
  mask-image: radial-gradient(circle at 72% 45%, black, transparent 68%);
  animation: grid-slide 14s linear infinite;
}

.crest-orbit {
  position: absolute;
  top: 50%;
  left: 68%;
  width: min(52vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(199, 162, 74, 0.36);
  border-radius: 50%;
  transform: translate(-50%, calc(-50% + var(--parallax-y, 0px)));
  will-change: transform;
  box-shadow: 0 0 90px rgba(73, 185, 111, 0.16);
  animation: slow-turn 22s linear infinite;
}

.crest-orbit::before,
.crest-orbit::after,
.crest-orbit span {
  position: absolute;
  border: 1px solid rgba(223, 244, 229, 0.16);
  border-radius: 50%;
  content: "";
}

.crest-orbit::before {
  inset: 11%;
}

.crest-orbit::after {
  inset: 24%;
  border-color: rgba(199, 162, 74, 0.28);
}

.crest-orbit span:nth-child(1) {
  inset: 37%;
  background: radial-gradient(circle, rgba(73, 185, 111, 0.3), transparent 70%);
}

.crest-orbit span:nth-child(2) {
  top: 17%;
  right: 24%;
  width: 34px;
  height: 34px;
  background: var(--gold);
}

.crest-orbit span:nth-child(3) {
  bottom: 19%;
  left: 14%;
  width: 18px;
  height: 18px;
  background: var(--jade);
}

.naga-line {
  position: absolute;
  top: 50%;
  left: 68%;
  width: min(62vw, 760px);
  transform: translate(-50%, calc(-46% + var(--parallax-y, 0px)));
  fill: none;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 18px rgba(73, 185, 111, 0.24));
  will-change: transform;
}

.naga-line path {
  stroke: rgba(223, 244, 229, 0.46);
  stroke-linecap: round;
  stroke-width: 7;
}

.naga-line path:nth-child(2) {
  stroke: rgba(199, 162, 74, 0.56);
  stroke-width: 3;
}

.naga-line path:nth-child(3) {
  stroke: rgba(73, 185, 111, 0.62);
  stroke-width: 5;
}

section {
  position: relative;
  padding: clamp(72px, 9vw, 126px) clamp(20px, 5vw, 70px);
  overflow: hidden;
  scroll-margin-top: 86px;
}

.band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 34%),
    var(--parchment);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(300px, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  color: rgba(7, 22, 14, 0.72);
}

.intro p,
.about p {
  margin-top: 0;
  font-size: 1.05rem;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 44px;
}

.section-heading p:not(.eyebrow) {
  max-width: 740px;
  font-size: 1.05rem;
}

.principles,
.service-grid,
.insight-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.principles article,
.service-grid article,
.insight-list article {
  min-height: 220px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 42px rgba(7, 22, 14, 0.06);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  will-change: transform;
}

.tilt-card:hover {
  border-color: rgba(16, 92, 54, 0.26);
  box-shadow: 0 28px 58px rgba(7, 22, 14, 0.12);
  transform: translateY(-6px);
}

.principles span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--emerald);
  font-weight: 900;
}

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

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--mint);
  background: var(--forest);
  border: 1px solid var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.portal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(340px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background:
    linear-gradient(110deg, rgba(7, 22, 14, 0.96), rgba(9, 41, 26, 0.9)),
    var(--forest);
  color: white;
  isolation: isolate;
}

.portal::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at calc(18% + var(--cursor-x)) calc(12% + var(--cursor-y)), rgba(73, 185, 111, 0.36), transparent 28%),
    radial-gradient(circle at 86% 64%, rgba(199, 162, 74, 0.22), transparent 24%);
  content: "";
  animation: portal-glow 13s ease-in-out infinite alternate;
}

.portal-gridline {
  position: absolute;
  inset: -15%;
  z-index: -1;
  background:
    linear-gradient(rgba(223, 244, 229, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 244, 229, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 65% 50%, black, transparent 76%);
  opacity: 0.88;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(calc(var(--cursor-x) * -0.18), calc(var(--parallax-y, 0px) + var(--cursor-y) * -0.12), 0);
  animation: grid-slide 16s linear infinite reverse;
}

.portal h2,
.portal h3 {
  color: white;
}

.portal p,
.portal li {
  color: rgba(251, 248, 239, 0.74);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--jade);
  content: "✓";
  font-weight: 900;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.login-panel {
  overflow: hidden;
  background: rgba(251, 248, 239, 0.98);
  border: 1px solid rgba(199, 162, 74, 0.45);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  will-change: transform;
  transform: translate3d(calc(var(--cursor-x) * 0.06), calc(var(--parallax-y, 0px) + var(--cursor-y) * 0.05), 0);
}

.panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--forest);
}

.panel-tabs button {
  min-height: 54px;
  color: rgba(251, 248, 239, 0.7);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.panel-tabs button.active {
  color: var(--mint);
  background: rgba(73, 185, 111, 0.17);
}

.login-form,
.dashboard-panel {
  display: none;
  padding: clamp(24px, 4vw, 34px);
}

.login-form.active,
.dashboard-panel.active {
  display: block;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(7, 22, 14, 0.18);
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

.fine-print,
.disclaimer {
  font-size: 0.78rem;
}

.login-panel .fine-print {
  color: rgba(7, 22, 14, 0.52);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-row div {
  padding: 16px;
  background: var(--mint);
  border: 1px solid rgba(16, 92, 54, 0.14);
}

.metric-row span {
  display: block;
  color: rgba(7, 22, 14, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-row strong {
  display: block;
  margin-top: 6px;
  color: var(--forest);
  font-size: 1.2rem;
}

.chart-card {
  height: 220px;
  margin: 18px 0;
  padding: 20px;
  background:
    linear-gradient(rgba(7, 22, 14, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 22, 14, 0.06) 1px, transparent 1px),
    white;
  background-size: 100% 25%, 14.2% 100%;
  border: 1px solid rgba(7, 22, 14, 0.12);
}

.chart-bars {
  display: flex;
  height: 100%;
  align-items: end;
  gap: 13px;
}

.chart-bars i {
  flex: 1;
  min-width: 14px;
  background: linear-gradient(to top, var(--naga), var(--jade));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: chart-rise 900ms ease both;
}

.chart-bars i:nth-child(2) {
  animation-delay: 80ms;
}

.chart-bars i:nth-child(3) {
  animation-delay: 140ms;
}

.chart-bars i:nth-child(4) {
  animation-delay: 210ms;
}

.chart-bars i:nth-child(5) {
  animation-delay: 280ms;
}

.chart-bars i:nth-child(6) {
  animation-delay: 340ms;
}

.chart-bars i:nth-child(7) {
  animation-delay: 390ms;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.86rem;
}

th,
td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(7, 22, 14, 0.12);
  text-align: left;
}

th {
  color: var(--naga);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.insight-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 78px);
  padding: clamp(28px, 5vw, 58px);
  background: var(--ivory);
  border: 1px solid rgba(7, 22, 14, 0.12);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.scroll-section::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 30%, rgba(16, 92, 54, 0.045) 30% 31%, transparent 31% 61%, rgba(199, 162, 74, 0.055) 61% 62%, transparent 62%);
  content: "";
  pointer-events: none;
}

.parallax-emblem {
  position: absolute;
  right: 9%;
  bottom: -0.35em;
  color: rgba(16, 92, 54, 0.11);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(14rem, 28vw, 28rem);
  font-weight: 700;
  line-height: 0.8;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.parallax-emblem-right {
  right: auto;
  left: 4%;
  color: rgba(7, 22, 14, 0.055);
}

.legacy-parallax {
  position: relative;
  min-height: clamp(440px, 62vh, 680px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
  background: var(--forest);
  isolation: isolate;
}

.legacy-bg,
.legacy-veils {
  position: absolute;
  inset: -18%;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.legacy-bg {
  z-index: -3;
  background:
    linear-gradient(110deg, rgba(7, 22, 14, 0.9), rgba(9, 41, 26, 0.68)),
    radial-gradient(circle at 24% 42%, rgba(73, 185, 111, 0.42), transparent 28%),
    radial-gradient(circle at 76% 32%, rgba(199, 162, 74, 0.28), transparent 26%),
    repeating-linear-gradient(135deg, rgba(223, 244, 229, 0.12) 0 1px, transparent 1px 76px),
    linear-gradient(135deg, #07160e, #105c36 62%, #07160e);
  background-attachment: fixed;
  background-size: cover;
  animation: depth-drift 20s ease-in-out infinite alternate;
}

.legacy-veils {
  z-index: -2;
  background:
    linear-gradient(100deg, transparent 0 18%, rgba(251, 248, 239, 0.08) 18% 19%, transparent 19% 49%, rgba(199, 162, 74, 0.1) 49% 50%, transparent 50%),
    radial-gradient(circle at 56% 52%, transparent 0 18%, rgba(223, 244, 229, 0.12) 18% 18.2%, transparent 18.2% 31%, rgba(199, 162, 74, 0.16) 31% 31.2%, transparent 31.2%);
  opacity: 1;
  animation: diagonal-drift 15s ease-in-out infinite alternate;
}

.legacy-growth .legacy-bg {
  background:
    linear-gradient(110deg, rgba(7, 22, 14, 0.72), rgba(9, 41, 26, 0.93)),
    radial-gradient(circle at 72% 58%, rgba(73, 185, 111, 0.46), transparent 30%),
    radial-gradient(circle at 18% 20%, rgba(199, 162, 74, 0.3), transparent 24%),
    repeating-linear-gradient(45deg, rgba(223, 244, 229, 0.11) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #09291a, #16864d 58%, #07160e);
  background-attachment: fixed;
}

.legacy-content {
  width: min(760px, 100%);
  padding: clamp(42px, 7vw, 80px);
  background: linear-gradient(135deg, rgba(7, 22, 14, 0.82), rgba(7, 22, 14, 0.34));
  border-left: 3px solid var(--gold);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  transform: translate3d(calc(var(--cursor-x) * -0.05), var(--parallax-y, 0px), 0);
}

.legacy-content-right {
  justify-self: end;
  border-right: 3px solid var(--gold);
  border-left: 0;
  text-align: right;
}

.legacy-content h2 {
  max-width: 680px;
  color: white;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.legacy-content p:not(.eyebrow) {
  max-width: 590px;
  margin: 22px 0 28px;
  color: rgba(251, 248, 239, 0.82);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.legacy-content-right p:not(.eyebrow) {
  margin-left: auto;
}

.reveal,
.reveal-grid > * {
  opacity: 0;
  transform: translate3d(0, calc(34px + var(--parallax-y, 0px)), 0);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.reveal.is-visible,
.reveal-grid.is-visible > * {
  opacity: 1;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

.reveal-grid.is-visible > *:nth-child(2) {
  transition-delay: 90ms;
}

.reveal-grid.is-visible > *:nth-child(3) {
  transition-delay: 160ms;
}

.reveal-grid.is-visible > *:nth-child(4) {
  transition-delay: 230ms;
}

.reveal-grid.is-visible > *:nth-child(5) {
  transition-delay: 300ms;
}

.reveal-grid.is-visible > *:nth-child(6) {
  transition-delay: 370ms;
}

.depth-panel {
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.depth-panel:hover {
  box-shadow: 0 34px 80px rgba(7, 22, 14, 0.24);
}

.reveal-grid.is-visible > .tilt-card:hover,
.reveal-grid.is-visible > .tilt-card.is-tilting {
  transform: perspective(900px) translate3d(0, -6px, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

.depth-panel.reveal.is-visible:hover,
.depth-panel.reveal.is-visible.is-tilting {
  transform: perspective(1100px) translate3d(0, var(--parallax-y, 0px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

@keyframes slow-turn {
  from {
    rotate: 0deg;
  }

  to {
    rotate: 360deg;
  }
}

@keyframes depth-drift {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
    scale: 1;
  }

  to {
    background-position: 90px -40px, -30px 60px, 50px 30px, 72px 72px, 0 0;
    scale: 1.04;
  }
}

@keyframes diagonal-drift {
  from {
    transform: translate3d(calc(var(--cursor-x, 0px) * -0.35), calc(var(--cursor-y, 0px) * -0.28), 0);
  }

  to {
    transform: translate3d(calc(var(--cursor-x, 0px) * -0.35 + 52px), calc(var(--cursor-y, 0px) * -0.28 - 28px), 0);
  }
}

@keyframes grid-slide {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 58px 58px, 58px 58px;
  }
}

@keyframes portal-glow {
  from {
    opacity: 0.74;
    transform: translate3d(-12px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(18px, -14px, 0);
  }
}

@keyframes chart-rise {
  from {
    transform: scaleY(0.08);
  }

  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  [data-parallax],
  .reveal,
  .reveal-grid > * {
    transform: none !important;
  }

  .reveal,
  .reveal-grid > * {
    opacity: 1;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 34px;
  padding: 44px clamp(20px, 5vw, 70px);
  color: rgba(251, 248, 239, 0.75);
  background: var(--ink);
}

.site-footer p {
  max-width: 720px;
  color: rgba(251, 248, 239, 0.62);
}

.footer-brand strong {
  color: white;
}

.footer-brand small {
  color: rgba(223, 244, 229, 0.7);
}

.footer-links {
  display: grid;
  gap: 10px;
  color: rgba(251, 248, 239, 0.86);
  font-weight: 800;
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 248, 239, 0.12);
}

@media (max-width: 1040px) {
  .main-nav,
  .ghost-link {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav.is-open {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 18px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 15px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: calc(100vh - 78px);
  }

  .hero-art {
    opacity: 0.55;
  }

  .hero-copy {
    max-width: none;
  }

  .principles,
  .service-grid,
  .insight-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand strong {
    font-size: 1rem;
  }
  .brand small {
    gap: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.26em;
  }



  .logo-mark {
    width: 48px;
    height: 48px;
    padding: 0;
  }
  .header-actions .button {
    display: none;
  }

  .main-nav.is-open {
    top: 70px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 86px;
    padding-bottom: 96px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 14vw, 4.8rem);
  }

  .proof-strip,
  .metric-row,
  .split,
  .portal,
  .contact-card,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .principles,
  .service-grid,
  .insight-list {
    grid-template-columns: 1fr;
  }

  .principles article,
  .service-grid article,
  .insight-list article {
    min-height: auto;
  }

  section {
    padding-inline: 18px;
  }

  .panel-tabs button {
    font-size: 0.84rem;
  }

  .legacy-parallax {
    min-height: auto;
  }

  .legacy-bg,
  .legacy-growth .legacy-bg {
    background-attachment: scroll;
  }

  .legacy-content,
  .legacy-content-right {
    border-right: 0;
    border-left: 3px solid var(--gold);
    text-align: left;
  }

  .legacy-content-right p:not(.eyebrow) {
    margin-left: 0;
  }
}

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

.brand-full-logo {
  min-width: 0;
}

.brand-full-logo-img {
  display: block;
  width: clamp(300px, 30vw, 430px);
  height: 70px;
  object-fit: contain;
  object-position: center;
}

.footer-brand.brand-full-logo .brand-full-logo-img {
  width: clamp(330px, 34vw, 500px);
  height: 108px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

@media (max-width: 760px) {
  .brand-full-logo-img {
    width: 260px;
    height: 60px;
  }

  .footer-brand.brand-full-logo .brand-full-logo-img {
    width: 300px;
    height: 92px;
  }
}
