/* =========================================================================
   DESIGN TOKENS & MODERN PALETTE
   ========================================================================= */
:root {
  --ink: #07090c;
  --ink-elevated: #11141a;
  --ink-soft: #181d24;
  --sand: #f0ede6;
  --paper: #f8f7f4;
  --stone: #78746d;
  --stone-on-dark: rgba(240, 237, 230, 0.7);
  --faint-on-dark: rgba(240, 237, 230, 0.4);

  --gold: #b3935a;
  --gold-light: #d6be8e;
  --gold-glow: rgba(214, 190, 142, 0.28);

  --cyan-accent: #6ee7b7;
  --white-line: rgba(255, 255, 255, 0.1);
  --white-line-strong: rgba(255, 255, 255, 0.22);
  --line: rgba(0, 0, 0, 0.08);

  --shadow-lux: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 30px -5px var(--gold-glow);

  --font-display: "Italiana", serif;
  --font-body: "Manrope", sans-serif;
  --font-sans: "Outfit", sans-serif;

  --content-width: 1220px;
  --gutter: 24px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.15;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -80px;
  left: var(--gutter);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}

.skip-link:focus {
  top: 12px;
}

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 12, 0.85);
  backdrop-filter: blur(16px);
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--white-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-divider {
  color: var(--gold);
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone-on-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-on-dark);
  transition: color 0.3s;
}

.nav a:hover,
.nav a.is-current {
  color: var(--gold-light);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(120deg, var(--gold-light), #ecd8af);
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta svg {
  width: 14px;
  height: 14px;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.nav-toggle {
  display: none;
  padding: 6px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.back-to-top {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone-on-dark);
  transition: color 0.3s;
}

.back-to-top:hover {
  color: var(--gold-light);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.page-hero {
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.55), var(--ink) 92%);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.living-card .selector-tag {
  color: var(--gold-light);
}

.legend-card {
  border-color: var(--white-line-strong);
}

.legend-card .selector-tag {
  color: var(--cyan-accent);
}

/* =========================================================================
   3D HERO SECTION
   ========================================================================= */
.hero-3d-section {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 130px var(--gutter) 60px;
  overflow: hidden;
}

.webgl-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  opacity: 0.88;
}

.hero-overlay-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  text-align: center;
  pointer-events: none;
}

.hero-overlay-content * {
  pointer-events: auto;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

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

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

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  color: #fff;
  margin-bottom: 18px;
}

.hero-headline span {
  background: linear-gradient(120deg, #fff 30%, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--stone-on-dark);
  font-family: var(--font-sans);
}

/* 3D HUD */
.viewport-hud {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(17, 20, 26, 0.7);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--white-line);
  margin-bottom: 38px;
  font-size: 12px;
}

.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--stone-on-dark);
}

.hud-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 10px var(--cyan-accent);
}

.hud-buttons {
  display: flex;
  gap: 8px;
}

.hud-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--white-line);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Dual Selector Cards */
.dual-selector-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}

.selector-card {
  background: rgba(17, 20, 26, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--white-line);
  padding: 32px;
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.selector-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.selector-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.selector-card h3 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
}

.selector-card p {
  font-size: 14px;
  color: var(--stone-on-dark);
  margin-bottom: 16px;
}

.selector-link {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

/* =========================================================================
   METRICS & TICKER
   ========================================================================= */
.stats-strip {
  background: var(--ink-elevated);
  border-top: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
  padding: 40px var(--gutter);
}

.stats-strip-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.stat {
  text-align: center;
  border-left: 1px solid var(--white-line);
}

.stat:first-child {
  border-left: none;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-on-dark);
}

.marquee {
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--white-line);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: marquee 35s linear infinite;
}

.marquee-track span:not(.marquee-diamond) {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.marquee-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================================================================
   SECTIONS & PORTAL
   ========================================================================= */
.section {
  padding: 90px var(--gutter);
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-head.compact {
  text-align: center;
  margin: 0 auto 40px;
}

.section-lede {
  color: var(--stone);
  font-size: 17px;
}

.link-portal {
  background: var(--ink);
  color: #fff;
  padding: 90px var(--gutter);
}

.link-portal-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.link-portal-head {
  text-align: center;
  margin-bottom: 50px;
}

.link-portal-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.link-card {
  position: relative;
  background: var(--ink-elevated);
  min-height: 480px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  box-shadow: var(--shadow-lux);
}

.link-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.link-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.1) 0%, rgba(7, 9, 12, 0.95) 90%);
}

.link-card:hover .link-card-img {
  transform: scale(1.05);
}

.link-card-body {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.link-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.link-card h3 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
}

.link-card p {
  font-size: 14px;
  color: var(--stone-on-dark);
  margin-bottom: 18px;
}

.link-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-light);
}

.link-card-cta .rule {
  width: 20px;
  height: 1px;
  background: var(--gold);
}

/* =========================================================================
   PAGE HERO & FORMS
   ========================================================================= */
.page-hero {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 160px var(--gutter) 60px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--stone-on-dark);
}

.page-breadcrumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint-on-dark);
  margin-bottom: 12px;
}

.page-breadcrumb a {
  color: var(--gold-light);
}

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.feature-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-list span {
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-section {
  background: var(--sand);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.trust-grid article {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.trust-grid h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.trust-grid p {
  font-size: 14px;
  color: var(--stone);
  margin: 0;
}

.legend-hero {
  background: linear-gradient(160deg, #07090c, #13171e);
  color: #fff;
  padding: 160px var(--gutter) 80px;
}

.legend-hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.legend-kicker {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.legend-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.legend-hero-title span {
  color: var(--gold-light);
}

.legend-hero-copy {
  color: var(--stone-on-dark);
  margin-bottom: 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-card {
  background: #fff;
  padding: 24px;
}

.spec-num {
  font-size: 12px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.spec-name {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facility-panel {
  background: var(--ink);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius);
}

.spec-grid--facility {
  background: var(--white-line);
  border-color: var(--white-line);
}

.spec-grid--facility .spec-card {
  background: var(--ink-elevated);
  color: #fff;
}

/* =========================================================================
   GALLERY / PORTFOLIO
   ========================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 12, 0.9));
}

.gallery-item figcaption span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.seam-divider {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.seam-divider span {
  display: block;
  height: 1px;
  background: var(--line);
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials-section {
  background: var(--sand);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, 0.25);
}

.testimonial-quote {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
}

.testimonial-role {
  font-weight: 500;
  color: var(--stone);
  font-size: 12.5px;
  margin-top: 2px;
}

/* =========================================================================
   ABOUT PAGE
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-content p {
  color: var(--stone);
}

.value-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-list li {
  padding-left: 20px;
  border-left: 2px solid var(--gold);
  font-size: 14px;
  color: var(--stone);
}

.value-list span {
  font-weight: 700;
  color: var(--ink);
}

.about-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lux);
}

.group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.company-panel {
  border-radius: var(--radius);
  padding: 36px;
}

.light-panel {
  background: var(--sand);
  border: 1px solid var(--line);
}

.dark-panel {
  background: var(--ink);
  color: #fff;
}

.dark-panel .panel-label {
  color: var(--gold-light);
}

.dark-panel p {
  color: var(--stone-on-dark);
}

.panel-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.company-panel h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.panel-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
}

.panel-tags li {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.dark-panel .panel-tags li {
  border-color: var(--white-line);
}

.text-link {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}

.text-link:hover {
  gap: 12px;
}

.dark-panel .text-link {
  color: var(--gold-light);
}

/* =========================================================================
   LEGEND HERO — 3D CSS CUBE
   ========================================================================= */
.legend-hero {
  position: relative;
  overflow: hidden;
}

.legend-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--white-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 70%);
}

.legend-hero-inner {
  position: relative;
  z-index: 2;
}

.cube-stage {
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.cube {
  position: relative;
  width: 160px;
  height: 160px;
  transform-style: preserve-3d;
  animation: cube-spin 16s linear infinite;
}

.cube-face {
  position: absolute;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 20, 26, 0.7);
  border: 1px solid var(--white-line-strong);
  backdrop-filter: blur(6px);
}

.cube-face span {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
}

.cube-face--front {
  transform: translateZ(80px);
}

.cube-face--back {
  transform: rotateY(180deg) translateZ(80px);
}

.cube-face--right {
  transform: rotateY(90deg) translateZ(80px);
}

.cube-face--left {
  transform: rotateY(-90deg) translateZ(80px);
}

.cube-face--top {
  transform: rotateX(90deg) translateZ(80px);
}

.cube-face--bottom {
  transform: rotateX(-90deg) translateZ(80px);
}

@keyframes cube-spin {
  from {
    transform: rotateX(-18deg) rotateY(0deg);
  }

  to {
    transform: rotateX(-18deg) rotateY(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cube {
    animation: none;
    transform: rotateX(-18deg) rotateY(28deg);
  }
}

/* Contact Form */
.contact-section {
  padding: 90px var(--gutter) 110px;
}

.contact-content-full {
  max-width: var(--content-width);
  margin: 0 auto;
}

.contact-direct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.contact-box {
  background: var(--sand);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.contact-box h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.contact-box p {
  font-size: 14px;
  color: var(--stone);
  margin: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.contact-form .full-width {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  background: #fff;
}

.btn.primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(120deg, var(--gold-light), #ecd8af);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.3s;
}

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

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--stone);
  min-height: 18px;
  margin: 0;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--ink);
  color: #fff;
  padding: 40px var(--gutter) 24px;
  border-top: 1px solid var(--white-line);
}

.footer-row {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand p {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.footer-brand span {
  font-size: 12px;
  color: var(--faint-on-dark);
}

.footer-duo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.footer-duo a {
  color: var(--gold-light);
  font-weight: 600;
}

.footer-duo-mark {
  color: var(--gold);
}

.footer-copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: var(--faint-on-dark);
}

/* =========================================================================
   MODERN MOTION LAYER — scroll reveal, cursor glow, card tilt
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  [data-reveal-group] > * {
    transition-delay: calc(var(--reveal-index, 0) * 70ms);
  }
}

.selector-card,
.link-card,
.trust-grid article,
.spec-card,
.testimonial-card,
.gallery-item,
.contact-box {
  position: relative;
}

.selector-card::before,
.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--gold-glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.selector-card:hover::before,
.link-card:hover::before {
  opacity: 1;
}

.link-card-body,
.selector-card > * {
  position: relative;
  z-index: 2;
}

@media (min-width: 901px) {
  .selector-card,
  .link-card {
    transform-style: preserve-3d;
    will-change: transform;
  }
}

@media (max-width: 900px) {
  .hero-headline {
    font-size: 2.4rem;
  }

  .dual-selector-strip,
  .stats-strip-inner,
  .link-grid,
  .feature-section,
  .trust-grid,
  .spec-grid,
  .contact-direct-grid,
  .contact-form,
  .testimonial-grid,
  .about-grid,
  .group-grid {
    grid-template-columns: 1fr;
  }

  .legend-hero-inner {
    grid-template-columns: 1fr;
  }

  .cube-stage {
    height: 200px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .stat {
    border-left: none;
    border-bottom: 1px solid var(--white-line);
    padding-bottom: 12px;
  }

  .footer-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(7, 9, 12, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--white-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.is-open {
    max-height: 400px;
  }

  .nav a {
    width: 100%;
    padding: 16px var(--gutter);
    border-top: 1px solid var(--white-line);
  }

  .nav-cta span {
    display: none;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item--large {
    grid-column: span 1;
  }
}