:root {
  --ink: #171a1a;
  --ink-soft: #38403d;
  --paper: #f7f4ec;
  --paper-2: #ece5d6;
  --gold: #cda64b;
  --gold-bright: #f5d87d;
  --teal: #285d59;
  --wine: #6f2f43;
  --line: rgba(23, 26, 26, 0.14);
  --space-section-y: clamp(72px, 8vw, 104px);
  --space-section-x: clamp(20px, 5vw, 72px);
  --space-block: clamp(32px, 4vw, 48px);
  --space-stack: clamp(20px, 2.5vw, 32px);
  --space-title-gap: 16px;
  font-family: "Libre Franklin", ui-sans-serif, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

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

.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;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px var(--space-section-x);
  color: #fffaf0;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: min-height 180ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1), background 300ms ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header.is-scrolled {
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: clamp(44px, 4.8vw, 60px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.88;
  transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover {
  color: var(--gold-bright);
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--gold-bright);
  border-radius: 999px;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: var(--space-stack);
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    calc(72px + var(--space-section-y))
    var(--space-section-x)
    var(--space-section-y);
  color: #fffaf0;
  background:
    linear-gradient(105deg, rgba(17, 21, 20, 0.94) 0%, rgba(17, 21, 20, 0.72) 52%, rgba(75, 80, 75, 0.55) 100%),
    #111514;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.22;
  transform: translateX(14vw);
  pointer-events: none;
}

.hero-media img {
  width: min(720px, 70vw);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 var(--space-title-gap);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 0.95;
  font-weight: 500;
}

.hero-copy {
  max-width: 52ch;
  margin: var(--space-title-gap) 0 0;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-block);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  color: var(--ink);
  background: var(--gold-bright);
}

.button.primary:hover {
  background: var(--gold);
}

.button.secondary {
  color: #fffaf0;
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel div {
  padding: 20px 22px;
  background: rgba(19, 23, 22, 0.78);
}

.hero-panel span,
.method-item span {
  display: block;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric span,
.area-card span {
  display: block;
  color: #9d7620;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow,
.method .eyebrow {
  color: var(--gold-bright);
}

.hero-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.section {
  padding: var(--space-section-y) var(--space-section-x);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: var(--space-block);
  align-items: start;
}

.section-heading.compact {
  display: block;
  max-width: 48rem;
}

.section-heading.compact h2 {
  margin-top: 0;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 500;
}

h3 {
  margin: var(--space-title-gap) 0;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.2;
}

.intro {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.intro-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(2rem, 4vw, var(--space-block));
  align-items: center;
}

.intro-visual {
  margin: 0;
  max-width: min(100%, 580px);
  justify-self: center;
  position: relative;
  overflow: hidden;
}

.intro-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-title-gap);
}

.intro-content .eyebrow {
  margin: 0;
}

.intro-content h2 {
  margin: 0;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.intro-copy p {
  margin: 0;
  font-size: clamp(0.98rem, 1.05vw, 1.15rem);
}

.intro-copy-lead {
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-block: 0;
  background: var(--line);
}

.metrics--sequence {
  display: block;
  padding: 0;
  background: var(--paper-2);
  overflow: hidden;
}

@media (min-width: 961px) {
  .metrics--sequence .metrics-stage {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 520px;
  }

  .metrics--sequence .metric {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(56px, 10vw, 160px);
    padding: clamp(48px, 10vw, 120px) var(--space-section-x);
    background: #fffaf0;
    visibility: hidden;
    will-change: transform, opacity;
  }

  .metrics--sequence .metric__lead {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 32px);
    flex: 0 0 min(30%, 360px);
  }

  .metrics--sequence .metric__copy {
    flex: 1 1 auto;
    max-width: min(66ch, 54vw);
    margin: 0 0 0 clamp(40px, 7vw, 128px);
    color: var(--ink-soft);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0.01em;
  }

  .metrics--sequence .metric:nth-child(2) {
    background: #fff;
  }

  .metrics--sequence .metric:nth-child(3) {
    background: linear-gradient(160deg, #fffaf0 0%, #ece5d6 100%);
  }

  .metrics--sequence .metric strong {
    margin: 0;
    color: var(--teal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4.5rem, 14vw, 9rem);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.03em;
  }

  .metrics--sequence .metric__lead span {
    max-width: min(18ch, 90vw);
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
  }
}

.metrics--sequence {
  position: relative;
}

.wireframe-sphere {
  position: fixed;
  top: clamp(88px, 12vh, 120px);
  right: var(--space-section-x);
  width: clamp(210px, 27vw, 360px);
  height: clamp(210px, 27vw, 360px);
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wireframe-sphere canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 1600px) {
  .wireframe-sphere {
    width: 1000px;
    height: 1000px;
  }
}

@media (max-width: 960px), (prefers-reduced-motion: reduce) {
  .wireframe-sphere {
    display: none;
  }
}

.metrics-progress {
  position: absolute;
  right: var(--space-section-x);
  bottom: clamp(28px, 5vw, 48px);
  z-index: 5;
  display: flex;
  gap: 10px;
  pointer-events: none;
}

.metrics-progress span {
  width: 28px;
  height: 2px;
  background: rgba(23, 26, 26, 0.18);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0.35);
  transition: transform 0.35s ease, background 0.35s ease;
}

.metrics-progress span.is-active {
  background: var(--gold);
  transform: scaleX(1);
}

@media (min-width: 961px) {
  .metrics-progress {
    display: flex;
  }
}

.metric {
  padding: var(--space-block);
  background: #fffaf0;
}

.metric strong {
  display: block;
  margin-bottom: 20px;
  color: var(--teal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
}

.areas {
  background: #fffaf0;
}

.companies,
.areas {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 88px);
}

.companies {
  color: #fffaf0;
  background: linear-gradient(160deg, var(--ink) 0%, #3d2430 100%);
  overflow-x: clip;
}

.companies .section-heading,
.areas .section-heading {
  margin-bottom: 0;
}

.companies .eyebrow {
  color: var(--gold-bright);
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) repeat(2, minmax(220px, 0.9fr));
  gap: 16px;
  perspective: 1200px;
}

@media (min-width: 961px) {
  .companies--pinned .companies-pin-viewport {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }

  .companies-pin-stage {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 72px);
    width: 100%;
    justify-content: center;
  }

  .companies-pin-heading {
    position: relative;
    z-index: 2;
    max-width: min(760px, 70vw);
    padding-right: 0;
    text-align: left;
    will-change: transform, width, margin;
    box-sizing: border-box;
  }

  .companies-pin-heading h2 {
    transform-origin: left top;
  }

  .companies-track-viewport {
    container-type: inline-size;
    container-name: companies-track;
    overflow: hidden;
    position: relative;
    min-width: 0;
    width: 100%;
    min-height: clamp(280px, 34vh, 380px);
  }

  .companies-track {
    display: flex;
    gap: clamp(16px, 2vw, 24px);
    width: max-content;
    will-change: transform;
    perspective: none;
  }

  .companies-track.companies-track--fits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    will-change: auto;
  }

  .companies-track.companies-track--fits .company-card {
    flex: none;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    --company-shift-x: 0px;
    transform: none;
  }

  .companies-track:not(.companies-track--fits) .company-card {
    flex: 0 0 clamp(240px, calc((100cqi - 2 * clamp(16px, 2vw, 24px)) / 3), 520px);
    box-sizing: border-box;
    --company-shift-x: 0px;
    transform: none;
  }
}

.areas--pinned .areas-pin-viewport {
  min-height: 0;
}

@media (min-width: 961px) {
  .areas--pinned .areas-pin-viewport {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
  }

  .areas-pin-stage {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 72px);
    width: 100%;
    justify-content: center;
  }

  .areas-pin-heading {
    max-width: min(760px, 70vw);
    padding-right: 0;
  }

  .areas-pin-cards {
    align-self: stretch;
  }

  .areas-pin-cards .area-card {
    will-change: transform, opacity;
    transition:
      border-color 0.45s ease,
      background 0.45s ease,
      box-shadow 0.45s ease;
  }

  .areas-pin-cards .area-card.is-reveal-active {
    border-color: var(--ink);
    background: #fff;
    box-shadow: 0 20px 40px rgba(40, 93, 89, 0.12);
  }

  .areas-pin-cards .area-card.is-reveal-active h3 {
    color: var(--teal);
  }

  .areas-pin-cards .area-card.is-reveal-dimmed {
    border-color: var(--line);
    background: var(--paper);
    box-shadow: none;
  }

  .areas-pin-cards .area-card.is-reveal-dimmed h3 {
    color: inherit;
  }
}

@media (max-width: 960px) {
  .companies-pin-stage,
  .areas-pin-stage,
  .governance-pin-stage {
    display: flex;
    flex-direction: column;
    gap: var(--space-title-gap);
  }

  .companies-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .governance--pinned .governance-pin-viewport {
    padding: var(--space-section-y) var(--space-section-x);
  }

  .governance-pin-stage .governance-content {
    order: 1;
  }

  .governance-pin-stage .governance-stack {
    order: 2;
  }
}

.company-card {
  --company-shift-x: 0px;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transform: translate3d(var(--company-shift-x), 0, 0);
  will-change: transform;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    background 0.5s ease,
    box-shadow 0.5s ease;
}

.company-card.featured {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 216, 125, 0.28);
}

.company-card span {
  display: block;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.company-card h3 {
  margin-top: 14px;
  overflow-wrap: break-word;
}

.company-card p {
  margin: 0;
  color: rgba(255, 250, 240, 0.84);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.company-card .text-link {
  color: var(--gold-bright);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.area-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.area-card p,
.method-item p,
.governance-copy p,
.contact-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size:1.3rem
}

.method {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: var(--space-block);
  align-items: start;
  color: #fffaf0;
  background: linear-gradient(160deg, var(--ink) 0%, var(--teal) 100%);
}

.method--expand {
  display: block;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.method-expand-viewport {
  position: relative;
  width: 100%;
  overflow: visible;
}

.method--expand.is-pinning {
  position: relative;
  z-index: 25;
}

.method-expand-panel {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  background: linear-gradient(160deg, var(--ink) 0%, var(--teal) 100%);
  z-index: 0;
  pointer-events: none;
  will-change: height;
}

@media (max-width: 960px) {
  .method-expand-panel {
    display: none;
  }
}

.method--expand .method-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: var(--space-block);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: var(--space-section-y) var(--space-section-x);
  color: #fffaf0;
  background: transparent;
}

@media (max-width: 960px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  .method--expand {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .method--expand .method-expand-viewport,
  .method--expand .method-stage {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    background: linear-gradient(160deg, var(--ink) 0%, var(--teal) 100%);
  }

  .method-intro,
  .method-list,
  .method-item {
    width: 100%;
    max-width: 100%;
  }

  .method--expand .method-intro h2 {
    color: #fffaf0;
  }

  .method [data-scroll-highlight-item].is-dimmed {
    opacity: 0.72;
  }

  .method [data-scroll-highlight-item].is-dimmed p {
    color: rgba(255, 250, 240, 0.72);
  }
}

.method-list {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  background: transparent;
}

.method-item {
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.method-item p {
  margin-top: var(--space-title-gap);
  color: rgba(255, 250, 240, 0.84);
}

.governance--pinned {
  padding: 0;
  position: relative;
  z-index: 1;
  background: var(--paper);
}

.governance--pinned.is-pinning {
  z-index: 1;
}

.governance-pin-viewport {
  position: relative;
  width: 100%;
}

.governance-pin-stage {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr);
  gap: var(--space-block);
  align-items: center;
  width: 100%;
}

.governance-content {
  display: grid;
  gap: var(--space-title-gap);
}

@media (min-width: 961px) {
  .governance--pinned .governance-pin-viewport {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: var(--space-section-y) var(--space-section-x);
    box-sizing: border-box;
  }

  .governance-pin-stage {
    align-items: center;
  }

  .governance-stack span {
    min-height: clamp(120px, 18vh, 168px);
  }
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--teal);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.governance-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.governance-stack span {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 16px;
  color: #fffaf0;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 700;
}

.governance-stack span:nth-child(2) {
  background: var(--teal);
}

.governance-stack span:nth-child(3) {
  background: var(--wine);
}

.governance-stack span:nth-child(4) {
  color: var(--ink);
  background: var(--gold-bright);
}

.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(300px, 1fr);
  gap: var(--space-block);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  background: #fffaf0;
  border-top: 1px solid var(--line);
}

.contact-copy p:last-of-type {
  margin-top: var(--space-title-gap);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form label.contact-form-privacy {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.contact-form label.contact-form-privacy input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  accent-color: var(--teal);
}

.contact-form label.contact-form-privacy span {
  flex: 1;
  min-width: 0;
}

.contact-form label.contact-form-privacy a {
  color: var(--teal);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205, 166, 75, 0.14);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 700;
}

.form-note.is-error {
  color: #9b2c2c;
}

.contact-form label.contact-form-privacy.is-invalid {
  color: #9b2c2c;
}

.contact-form label.contact-form-privacy.is-invalid a {
  color: inherit;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px var(--space-section-x);
  color: #fffaf0;
  background: var(--ink);
}

.site-footer img {
  width: 120px;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--gold-bright);
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--space-section-x) 18px;
    background: var(--ink);
  }

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

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 10px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
  }

  .hero-panel {
    align-self: end;
  }

  .hero-media {
    transform: translate(8vw, -2vh);
    opacity: 0.16;
  }

  .section-heading,
  .intro-layout,
  .metrics:not(.metrics--sequence),
  .company-grid,
  .area-grid,
  .method:not(.method--expand),
  .method--expand .method-stage,
  .method-expand-viewport,
  .governance-pin-stage,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro-layout {
    gap: var(--space-title-gap);
  }

  .intro-visual {
    max-width: min(100%, 420px);
  }
}

@media (max-width: 620px) {
  .brand img {
    height: 52px;
  }

  .site-header {
    min-height: 64px;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .governance-stack {
    grid-template-columns: 1fr;
  }
}

/* --- MICRO INTERACTIONS & REVEALS --- */

/* Nav Hover */
.site-nav a:not(.nav-cta) {
  position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Button Shine */
.button {
  position: relative;
  overflow: hidden;
  transform: translateZ(0); 
}
.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0s;
}
.button:hover::after {
  left: 200%;
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card & Method Hovers */
.area-card, .method-item {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s ease, 
              background 0.5s ease, 
              box-shadow 0.5s ease;
}
.company-card h3, .area-card h3, .method-item span {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease;
}
.company-card:hover {
  border-color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.09);
  transform: translate3d(var(--company-shift-x), -4px, 0);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s ease,
    background 0.5s ease,
    box-shadow 0.5s ease;
  transition-delay: 0ms !important;
}
.company-card:hover h3 {
  transform: translateX(4px);
  color: var(--gold-bright);
}
.area-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgba(40, 93, 89, 0.08);
  transform: translateY(-4px);
  transition-delay: 0ms !important;
}
.area-card:hover h3 {
  transform: translateX(4px);
  color: var(--teal);
}
.method-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transition-delay: 0ms !important;
}
.method-item:hover span {
  transform: translateX(4px);
}

/* Governance Stack Hover */
.governance-stack span {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
}
.governance-stack span:hover {
  transform: scale(1.03);
  filter: brightness(1.15);
  z-index: 2;
  transition-delay: 0ms !important;
}

/* Form Input Focus */
.contact-form input,
.contact-form select,
.contact-form textarea {
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  background: #fff;
}

/* Scroll Reveals */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Stagger delays */
  .company-card:nth-child(2), .area-card:nth-child(2), .method-item:nth-child(2) { transition-delay: 100ms; }
  .company-card:nth-child(3), .area-card:nth-child(3), .method-item:nth-child(3) { transition-delay: 200ms; }
  
  .governance-stack span:nth-child(2) { transition-delay: 100ms; }
  .governance-stack span:nth-child(3) { transition-delay: 200ms; }
  .governance-stack span:nth-child(4) { transition-delay: 300ms; }
  
  /* Custom reveal for metrics */
  .metric.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .metric.reveal strong, .metric.reveal .metric__lead span, .metric.reveal .metric__copy {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.6s ease;
  }
  .metric.reveal.is-visible strong, .metric.reveal.is-visible .metric__lead span, .metric.reveal.is-visible .metric__copy {
    opacity: 1;
    transform: translateY(0);
  }
  .metric:nth-child(1).reveal .metric__lead span { transition-delay: 100ms; }
  .metric:nth-child(1).reveal .metric__copy { transition-delay: 180ms; }
  .metric:nth-child(2).reveal strong { transition-delay: 150ms; }
  .metric:nth-child(2).reveal .metric__lead span { transition-delay: 250ms; }
  .metric:nth-child(2).reveal .metric__copy { transition-delay: 330ms; }
  .metric:nth-child(3).reveal strong { transition-delay: 300ms; }
  .metric:nth-child(3).reveal .metric__lead span { transition-delay: 400ms; }
  .metric:nth-child(3).reveal .metric__copy { transition-delay: 480ms; }

  .intro-visual.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .intro-visual.is-animating::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(23, 26, 26, 0.04));
    opacity: 1;
    transition: opacity 0.8s ease;
    pointer-events: none;
  }

  .intro-visual.is-animating.is-loaded::before {
    opacity: 0;
  }

  .intro-visual.is-animating img {
    opacity: 0;
    transform: scale(1.06);
    clip-path: inset(0 0 100% 0);
    transition:
      opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
      transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
      clip-path 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: opacity, transform, clip-path;
  }

  .intro-visual.is-animating.is-loaded img {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
  }
}

/* Split Text Word Animation */
.split-text-line {
  display: block;
}

.split-text-line--inline {
  display: inline;
}

.split-text-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.split-text-word > span {
  display: inline-block;
  transform: translateY(120%) rotate(4deg);
  opacity: 0;
  transform-origin: top left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.is-visible .split-text-word > span,
.is-visible .split-text-word > span {
  transform: translateY(0) rotate(0deg);
  opacity: 1;
}

#contatti-title.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

#contatti-title .split-text-word > span {
  transition-duration: 2.2s, 2.2s;
}

/* Metrics Hover */
.metric {
  position: relative;
  transition: background 0.6s ease, box-shadow 0.6s ease;
}
.metric:hover {
  background: #ffffff;
  box-shadow: 0 24px 48px rgba(23, 26, 26, 0.04);
  z-index: 2;
}
.metric.reveal.is-visible:hover strong {
  transform: translateY(-6px);
  color: var(--ink);
}
.metric.reveal.is-visible:hover .metric__lead span {
  transform: translateX(4px);
  color: var(--ink-soft);
}
.metric.reveal.is-visible:hover .metric__copy {
  color: var(--ink);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(205, 166, 75, 0.45);
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
}

[data-scroll-highlight-item] {
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    background 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
}

[data-scroll-highlight-item].is-dimmed {
  opacity: 0.38;
  transform: scale(0.98);
  filter: saturate(0.65);
}

[data-scroll-highlight-item].is-spotlight {
  opacity: 1;
  transform: scale(1.02);
  z-index: 2;
}

.method [data-scroll-highlight-item].is-spotlight {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(245, 216, 125, 0.35);
}

.method [data-scroll-highlight-item].is-spotlight span {
  color: var(--gold-bright);
  transform: translateX(6px);
}

.method [data-scroll-highlight-item].is-dimmed span {
  color: rgba(245, 216, 125, 0.42);
}

.method [data-scroll-highlight-item].is-dimmed p {
  color: rgba(255, 250, 240, 0.32);
}

.areas [data-scroll-highlight-item].is-spotlight {
  border-color: var(--teal);
  box-shadow: 0 20px 40px rgba(40, 93, 89, 0.12);
  background: #fff;
}

.areas [data-scroll-highlight-item].is-spotlight h3 {
  color: var(--teal);
}

.metrics--sequence .metric.is-spotlight {
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 26, 26, 0.06);
}

.metrics--sequence .metric.is-spotlight strong {
  color: var(--gold);
}

.governance-stack span {
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s ease;
}

.governance-stack span.is-dimmed {
  opacity: 0.35;
  transform: scale(0.96);
  filter: saturate(0.6);
}

.governance-stack span.is-spotlight {
  opacity: 1;
  transform: scale(1.04);
  filter: brightness(1.12);
  z-index: 2;
}

@media (max-width: 960px) {
  .metrics--sequence {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0;
    background: var(--line);
    overflow: visible;
  }

  .metrics--sequence .metrics-stage {
    display: contents;
  }

  .metrics--sequence .metric {
    position: relative;
    inset: auto;
    display: block;
    visibility: visible;
    opacity: 1;
    min-height: 0;
    padding: 18px 10px;
    background: #fffaf0;
    will-change: auto;
  }

  .metrics--sequence .metric:nth-child(2),
  .metrics--sequence .metric:nth-child(3) {
    background: #fffaf0;
  }

  .metrics--sequence .metric strong {
    margin-bottom: 14px;
    font-size: clamp(1.65rem, 5.5vw, 2.1rem);
    line-height: 1;
  }

  .metrics--sequence .metric__lead span {
    max-width: none;
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.45;
  }

  .metrics--sequence .metric__copy {
    display: none;
  }

  .metrics-progress {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .metrics-progress {
    display: none;
  }

  @media (min-width: 961px) {
    .metrics--sequence .metrics-stage {
      height: auto;
      min-height: 0;
    }

    .metrics--sequence .metric {
      position: relative;
      visibility: visible;
      min-height: 70vh;
    }
  }

  .metrics-progress {
    display: none;
  }

  [data-scroll-highlight-item].is-dimmed {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
