/* ============================================================
   GGW Enterprises — styles
   Palette: ink navy + antique gold + cream
   ============================================================ */

:root {
  --ink-950: #070D1A;
  --ink-900: #0A1425;
  --ink-850: #0D1930;
  --ink-800: #101D33;
  --ink-700: #22304D;
  --gold-500: #C9A24B;
  --gold-400: #D9B96C;
  --gold-300: #E9D3A0;
  --cream: #F3EEE3;
  --stone: #B9C2D0;
  --muted: #8593A9;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --hairline: rgba(243, 238, 227, 0.09);
  --gold-hairline: rgba(201, 162, 75, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--ink-950);
  color: var(--stone);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--cream);
  font-weight: 600;
  line-height: 1.15;
}

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

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

::selection { background: var(--gold-500); color: var(--ink-900); }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-700); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-500); }

.container { width: min(1160px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; top: -48px; left: 16px; z-index: 3100;
  background: var(--gold-500); color: var(--ink-900);
  padding: 0.6em 1.2em; font-weight: 600; border-radius: 0 0 6px 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============ Intro loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--ink-950);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.seen .loader { display: none; }
.loader-mark { width: 96px; height: 96px; }
.ld {
  stroke-dasharray: 220; stroke-dashoffset: 220;
  animation: strokeDraw 1s ease forwards 0.1s;
}
.ld-g { animation-delay: 0.4s; }
.ld-fill { opacity: 0; animation: fadeIn 0.45s ease forwards 1.05s; }
@keyframes strokeDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ============ Scroll progress bar ============ */
.progress {
  position: fixed; top: 0; left: 0; z-index: 2200;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.55);
  transform: scaleX(0); transform-origin: left;
  will-change: transform; /* scaleX updates composite — no layout, no paint */
}

/* ============ Film grain overlay ============ */
.grain {
  position: fixed; inset: -20px; z-index: 2000; pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ============ Topbar ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1600;
  transition: border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element: backdrop-filter on .topbar itself would
   make it the containing block for the fixed mobile menu overlay. */
.topbar::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(7, 13, 26, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s;
}
.topbar.scrolled::before { opacity: 1; }
.topbar.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand-mark { width: 40px; height: 40px; flex: none; transition: transform 0.5s ease; }
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--cream); letter-spacing: 0.14em;
}
.brand-sub {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.44em;
  text-transform: uppercase; color: var(--gold-500); margin-top: 0.35em;
}
/* Topbar mark draws itself on page load */
.js .topbar .bm-draw {
  stroke-dasharray: 220; stroke-dashoffset: 220;
  animation: strokeDraw 1.3s ease forwards 0.35s;
}
.js .topbar .bm-fill { opacity: 0; animation: fadeIn 0.5s ease forwards 1.5s; }

/* Always-on logo shine: breathing glow, orbiting spark, shimmering wordmark */
.topbar .brand-mark { animation: markGlow 4s ease-in-out infinite; }
@keyframes markGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(201, 162, 75, 0.2)); }
  50% { filter: drop-shadow(0 0 9px rgba(201, 162, 75, 0.65)); }
}
.bm-orbit {
  transform-box: view-box; transform-origin: 50% 50%;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 1.6s, spinSlow 7s linear infinite;
}
.topbar .brand-name {
  background: linear-gradient(110deg, var(--cream) 32%, var(--gold-300) 50%, var(--cream) 68%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: textSheen 6s linear infinite;
}

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a:not(.btn) {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
  color: rgba(243, 238, 227, 0.72);
  transition: color 0.25s;
  position: relative; padding: 0.3em 0;
}
.nav a:not(.btn):hover { color: var(--cream); }
.nav a:not(.btn).active { color: var(--gold-400); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn).active::after { transform: scaleX(1); }
.nav-cta { margin-left: 0.6rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 7px;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  z-index: 1700; align-items: center;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 0.9em 1.7em;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s, background 0.25s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, #B08D3E);
  color: #14100A;
}
.btn-gold::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -35%;
  width: 30%; transform: skewX(-20deg);
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0;
}
.btn-gold:hover::after { animation: sheen 0.7s ease; }
@keyframes sheen {
  0% { left: -35%; opacity: 1; }
  100% { left: 135%; opacity: 1; }
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 162, 75, 0.28);
}
.btn-pulse { animation: glowPulse 3.4s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(201, 162, 75, 0); }
  50% { box-shadow: 0 8px 34px rgba(201, 162, 75, 0.38); }
}
.btn-ghost {
  border-color: rgba(243, 238, 227, 0.3); color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400); transform: translateY(-2px); }

/* ============ Type helpers ============ */
.eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--gold-500);
  margin-bottom: 1.1rem;
}
.js .visible .eyebrow,
.js .eyebrow.visible { animation: trackIn 1.1s ease both; }
@keyframes trackIn {
  from { letter-spacing: 0.6em; opacity: 0; }
  to { letter-spacing: 0.34em; opacity: 1; }
}

h1 {
  font-size: clamp(2.7rem, 6.2vw, 4.7rem);
  line-height: 1.06; font-weight: 600;
  letter-spacing: 0.005em;
}
h1 em {
  font-style: italic;
  background: linear-gradient(110deg, var(--gold-400) 20%, #F6E7BE 42%, var(--gold-400) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textSheen 5.5s linear infinite 2s;
}
@keyframes textSheen {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

/* Masked line-by-line headline reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.line-inner { display: block; }
.js .line-inner {
  transform: translateY(112%);
  transition: transform 0.95s cubic-bezier(0.22, 0.65, 0.2, 1);
}
.js .reveal-lines .line:nth-child(2) .line-inner { transition-delay: 0.16s; }
.js .reveal-lines.visible .line-inner { transform: none; }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 0.4em; }

.lede {
  font-size: 1.12rem; color: #AAB6C6; max-width: 560px;
  margin-top: 1.6rem;
}

.sub { color: var(--muted); max-width: 520px; margin-top: 1.2rem; }

.rule {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 1.4rem; width: 120px;
}
.rule span { height: 1px; flex: 1; background: linear-gradient(90deg, var(--gold-500), rgba(201,162,75,0.15)); }
.rule span:first-child { background: linear-gradient(90deg, rgba(201,162,75,0.15), var(--gold-500)); }
.rule i { width: 6px; height: 6px; background: var(--gold-500); transform: rotate(45deg); flex: none; }
.rule.center { margin-inline: auto; }
/* Ornament draws in when its parent reveals */
.js .reveal .rule span, .js .reveal-lines .rule span {
  transform: scaleX(0);
  transition: transform 0.9s ease 0.35s;
}
.js .reveal .rule span:first-child { transform-origin: right; }
.js .reveal .rule span:last-child { transform-origin: left; }
.js .reveal .rule i {
  transform: rotate(225deg) scale(0);
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.5, 1) 0.55s;
}
.js .reveal.visible .rule span { transform: scaleX(1); }
.js .reveal.visible .rule i { transform: rotate(45deg) scale(1); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 100px; padding-bottom: 60px;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 10% -12%, rgba(201, 162, 75, 0.13), transparent 60%),
    radial-gradient(950px 700px at 90% 8%, rgba(43, 84, 165, 0.16), transparent 55%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 72%);
}
/* Slow-breathing aurora layer */
.hero::after {
  content: ""; position: absolute; inset: -12%;
  background:
    radial-gradient(820px 460px at 24% 34%, rgba(201, 162, 75, 0.08), transparent 60%),
    radial-gradient(700px 520px at 78% 66%, rgba(43, 84, 165, 0.10), transparent 60%);
  animation: aurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to { transform: translate3d(2.5%, 2%, 0) scale(1.07); }
}

.hero-watermark {
  position: absolute; top: 50%; right: -7%;
  width: min(58vw, 660px); aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.055; pointer-events: none;
}
.hero-watermark svg { animation: heroFloat 12s ease-in-out infinite alternate; }
@keyframes heroFloat {
  from { transform: translateY(-12px); }
  to { transform: translateY(12px); }
}
/* The split rings + keystone slowly orbit the static G */
.wm-rings {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spinSlow 90s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.hero-inner { position: relative; z-index: 2; will-change: transform, opacity; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; }

.hero-pillars {
  display: flex; align-items: center; flex-wrap: wrap;
  list-style: none; margin-top: 3.4rem;
}
.hero-pillars li {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: #CDC5AE;
}
.hero-pillars li + li::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  background: var(--gold-500); transform: rotate(45deg);
  margin: 0 1.2rem; vertical-align: middle; opacity: 0.75;
  animation: diamondPulse 3s ease-in-out infinite;
}
@keyframes diamondPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

/* Constellation network canvas — sits under aurora, watermark, and content */
.hero-net { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Rising gold embers */
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.embers span {
  position: absolute; bottom: -12px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, var(--gold-300), var(--gold-500) 70%);
  opacity: 0;
  animation: emberRise var(--d) linear var(--delay) infinite;
}
@keyframes emberRise {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: var(--o); }
  85% { opacity: calc(var(--o) * 0.5); }
  100% { transform: translate(var(--drift), -88vh); opacity: 0; }
}

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 38px; height: 38px; color: rgba(243, 238, 227, 0.45);
  display: flex; align-items: center; justify-content: center;
  animation: hintBob 2.4s ease-in-out infinite;
  transition: color 0.25s;
  z-index: 2;
}
.scroll-hint:hover { color: var(--gold-400); }
.scroll-hint svg { width: 22px; height: 22px; }
@keyframes hintBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ============ Marquee band ============ */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(243, 238, 227, 0.05);
  background: linear-gradient(180deg, rgba(10, 20, 37, 0), rgba(10, 20, 37, 0.75) 50%, rgba(10, 20, 37, 0));
  padding: 0.95rem 0;
}
.marquee-track {
  display: inline-flex; white-space: nowrap; width: max-content;
  animation: marqueeMove 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chunk {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(201, 162, 75, 0.55);
}
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ============ Sections ============ */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
/* Alt sections blend in and out of the page instead of hard-edged bands */
.section-alt {
  background: linear-gradient(180deg,
    rgba(10, 20, 37, 0) 0%,
    var(--ink-900) 140px,
    var(--ink-900) calc(100% - 140px),
    rgba(10, 20, 37, 0) 100%);
}

.section-head.center { text-align: center; max-width: 660px; margin-inline: auto; margin-bottom: 3.6rem; }
.section-head.center .sub { margin-inline: auto; }

.grid-2 {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.about-copy p + p { margin-top: 1.3rem; }
.about-copy p { font-size: 1.05rem; }

/* Values */
.values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2rem; margin-top: clamp(3rem, 6vw, 4.5rem);
}
.value {
  border-top: 1px solid var(--gold-hairline);
  padding-top: 1.6rem;
  transition: transform 0.35s ease;
}
.value:hover { transform: translateY(-4px); }
.value h3 { font-size: 1.18rem; margin: 0.9rem 0 0.45rem; }
.value p { font-size: 0.93rem; color: var(--muted); }

/* Icons — strokes are drawn in by JS when revealed */
.icon {
  width: 30px; height: 30px;
  fill: none; stroke: var(--gold-500);
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
  transition: transform 0.35s ease;
}
.icon path, .icon circle, .icon rect {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.5, 0, 0.2, 1) 0.25s;
}
.value:hover .icon, .card:hover .icon { transform: scale(1.14) rotate(-5deg); }
.contact-card:hover .icon { transform: scale(1.14) rotate(5deg); }

/* Cards */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.3rem;
}
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900) 80%);
  border: 1px solid rgba(201, 162, 75, 0.14);
  border-radius: 12px;
  padding: 1.9rem 1.7rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* Gold spotlight that follows the cursor (JS sets --mx / --my) */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 162, 75, 0.13), transparent 62%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 75, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.card > * { position: relative; }
.card .icon { width: 34px; height: 34px; margin-bottom: 1.25rem; }
.card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.card p { font-size: 0.93rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; }
.steps li {
  position: relative;
  display: grid; grid-template-columns: 86px 1fr; gap: 1.3rem;
  align-items: start;
  padding: 1.5rem 0.6rem;
  transition: background 0.3s;
}
/* Hairlines draw across when each step reveals */
.steps li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--hairline);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s ease 0.15s;
}
.steps li:last-child::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--hairline);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s ease 0.3s;
}
.js .steps li.visible::before,
.js .steps li.visible::after,
html:not(.js) .steps li::before,
html:not(.js) .steps li::after { transform: scaleX(1); }
.steps li:hover { background: rgba(201, 162, 75, 0.04); }
.step-num {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 600; line-height: 1;
  color: rgba(201, 162, 75, 0.16);
  -webkit-text-stroke: 1px rgba(201, 162, 75, 0.6);
  transition: color 0.4s;
}
.steps li:hover .step-num { color: rgba(201, 162, 75, 0.75); }
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.steps p { font-size: 0.93rem; color: var(--muted); }

/* ============ Contact ============ */
.contact-card {
  display: flex; align-items: center; gap: 1.1rem;
  margin-top: 2.2rem; padding: 1.35rem 1.5rem;
  border: 1px solid var(--gold-hairline); border-radius: 10px;
  background: linear-gradient(150deg, rgba(201, 162, 75, 0.07), transparent 65%);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  max-width: 430px;
}
.contact-card:hover {
  border-color: rgba(201, 162, 75, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}
.contact-card strong {
  display: block; color: var(--gold-300); font-weight: 600; font-size: 1.02rem;
  word-break: break-all;
}
.contact-card em { display: block; font-style: normal; font-size: 0.84rem; color: var(--muted); margin-top: 0.2rem; }

#contact-form .field { margin-bottom: 1.25rem; }
#contact-form label {
  display: block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
  transition: color 0.25s;
}
#contact-form .field:focus-within label { color: var(--gold-400); }
#contact-form input,
#contact-form textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--ink-850);
  border: 1px solid var(--ink-700); border-radius: 6px;
  color: var(--cream); font-family: var(--sans); font-size: 0.98rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  resize: vertical;
}
#contact-form input:focus,
#contact-form textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.14);
  transform: translateY(-1px);
}
.form-status { margin-top: 1rem; font-size: 0.9rem; color: var(--gold-300); min-height: 1.4em; }

/* ============ Footer ============ */
.footer {
  background: linear-gradient(180deg, rgba(6, 11, 20, 0) 0%, #060B14 160px);
  padding-top: 4rem;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
}
.footer-brand p { margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted); }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 1.1rem;
}
.footer-col a {
  display: block; font-size: 0.94rem; color: var(--stone);
  padding: 0.28em 0; transition: color 0.25s, transform 0.25s;
}
.footer-col a:hover { color: var(--gold-400); transform: translateX(4px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
  padding-block: 1.4rem;
  font-size: 0.8rem; color: var(--muted);
}
.footer-motto {
  font-family: var(--serif); font-style: italic;
  background: linear-gradient(110deg, rgba(201, 162, 75, 0.65) 30%, #F6E7BE 50%, rgba(201, 162, 75, 0.65) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textSheen 7s linear infinite;
}

/* ============ Our story / legacy ============ */
/* Gold haze floats mid-section so it fades out well before the section edges */
.legacy { background: radial-gradient(1100px 460px at 50% 50%, rgba(201, 162, 75, 0.045), transparent 70%); }
.key-diamond {
  display: block; width: 9px; height: 9px; flex: none;
  background: var(--gold-500); transform: rotate(45deg);
  margin: 0 auto 1.7rem;
  animation: keystonePulse 4s ease-in-out infinite;
}
@keyframes keystonePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(201, 162, 75, 0.3); }
  50% { box-shadow: 0 0 18px rgba(201, 162, 75, 0.8); }
}
.epigraph { text-align: center; max-width: 780px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
.epigraph p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  color: var(--gold-300); line-height: 1.5;
}
/* Words surface one by one (delays set by JS) */
.js .epigraph .w {
  display: inline-block; opacity: 0; transform: translateY(0.45em);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .epigraph.visible .w { opacity: 1; transform: none; }

/* Footer dedication */
.footer-dedication {
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding-block: 2.4rem 2.2rem;
}
.footer-dedication .key-diamond { width: 7px; height: 7px; margin-bottom: 1.15rem; }
.footer-dedication p {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: rgba(201, 162, 75, 0.66);
}

/* ============ Reveal animations ============ */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.reveal-left { transform: translateX(-34px); }
.js .reveal.reveal-right { transform: translateX(34px); }
.js .reveal.reveal-scale { transform: translateY(18px) scale(0.94); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0; z-index: 1650;
    background: rgba(7, 13, 26, 0.985); /* solid — cheaper than blur on weak GPUs */
    flex-direction: column; justify-content: center; gap: 2.1rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
  /* Menu items cascade up as the overlay opens */
  .nav a { opacity: 0; }
  .nav.open a { animation: menuItem 0.5s cubic-bezier(0.2, 0.65, 0.25, 1) forwards; }
  .nav.open a:nth-child(1) { animation-delay: 0.06s; }
  .nav.open a:nth-child(2) { animation-delay: 0.12s; }
  .nav.open a:nth-child(3) { animation-delay: 0.18s; }
  .nav.open a:nth-child(4) { animation-delay: 0.24s; }
  .nav.open a:nth-child(5) { animation-delay: 0.30s; }
  .nav.open a:nth-child(6) { animation-delay: 0.40s; }
  .nav-cta { margin-left: 0; margin-top: 0.6rem; }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-watermark { right: -34%; width: 90vw; opacity: 0.04; }
  /* cheap mode for phones and weak devices: no blur, no aurora drift */
  .topbar::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7, 13, 26, 0.94); }
  .hero::after { animation: none; }
}
@keyframes menuItem {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  .section { padding-block: clamp(3.4rem, 13vw, 5rem); }
  h1 { font-size: clamp(2.2rem, 10vw, 2.7rem); }
  .lede { font-size: 1.03rem; }
  .topbar-inner { height: 66px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { padding-top: 88px; }
  .hero-pillars li + li::before { margin: 0 0.7rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps li { grid-template-columns: 60px 1fr; gap: 1rem; }
  .step-num { font-size: 2rem; }
  .scroll-hint { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js .reveal, .js .line-inner, .js .epigraph .w { opacity: 1; transform: none; }
  .js .reveal .rule span { transform: scaleX(1); }
  .js .reveal .rule i { transform: rotate(45deg) scale(1); }
  .embers, .hero-net { display: none; }
  .marquee-track { animation: none; }
  h1 em, .footer-motto {
    animation: none; color: var(--gold-400);
    background: none; -webkit-background-clip: initial; background-clip: initial;
  }
  .topbar .brand-name {
    animation: none; color: var(--cream);
    background: none; -webkit-background-clip: initial; background-clip: initial;
  }
  .bm-orbit { display: none; }
}
