/* ============================================================
   Psalm Wave LLC — psalmwaveco.com
   Deep-ocean navy, gold & tide-glass teal.
   ============================================================ */

:root {
  --bg: #070b16;
  --bg-raised: #0b1122;
  --ink: #eef2f8;
  --ink-muted: #97a1b6;
  --gold: #f0c27b;
  --gold-soft: rgba(240, 194, 123, 0.14);
  --teal: #4fd8c4;
  --teal-soft: rgba(79, 216, 196, 0.12);
  --line: rgba(238, 242, 248, 0.08);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(240, 194, 123, 0.28); color: #fff; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============ Grain overlay ============ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ============ Cursor glow ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle,
    rgba(79, 216, 196, 0.07) 0%,
    rgba(240, 194, 123, 0.05) 35%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
body.has-cursor .cursor-glow { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* ============ Preloader ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { width: 120px; }
.preloader__wave {
  fill: none;
  stroke-width: 4;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-wave 1.6s var(--ease-out) forwards;
}
.preloader__wave--gold { stroke: var(--gold); }
.preloader__wave--teal { stroke: var(--teal); stroke-width: 3; animation-delay: 0.25s; opacity: 0.8; }
@keyframes draw-wave { to { stroke-dashoffset: 0; } }
.preloader__word {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--ink-muted);
  animation: fade-up 1.2s 0.5s var(--ease-out) backwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  transition: transform 0.5s var(--ease-out), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.nav__logo svg { transition: transform 0.6s var(--ease-out); }
.nav__logo:hover svg { transform: rotate(-8deg) scale(1.06); }

.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s;
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid rgba(240, 194, 123, 0.4);
  border-radius: 100px;
  color: var(--gold);
  transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.nav__cta:hover {
  background: var(--gold);
  color: #1a1206;
  border-color: var(--gold);
  box-shadow: 0 0 32px rgba(240, 194, 123, 0.35);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8vh;
  background: rgba(7, 11, 22, 0.96);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 400;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 0.32s; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: 100px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, background 0.4s, color 0.4s, border-color 0.4s;
  will-change: transform;
}
.btn--gold {
  background: linear-gradient(120deg, #f4cd8b, var(--gold) 55%, #d9a75e);
  color: #1a1206;
  box-shadow: 0 8px 32px rgba(240, 194, 123, 0.25);
}
.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(240, 194, 123, 0.4);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: rgba(79, 216, 196, 0.5);
  color: var(--teal);
  transform: translateY(-3px);
}
.btn--lg { padding: 20px 44px; font-size: 15px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Atmosphere behind the water — a luminous band sitting on the horizon */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 62% 34% at 50% 34%, rgba(79, 216, 196, 0.13), transparent 68%),
    radial-gradient(ellipse 120% 46% at 50% 40%, rgba(240, 194, 123, 0.09), transparent 66%),
    linear-gradient(180deg, #04070e 0%, #060b18 34%, #0a1730 58%, #081124 100%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 62% at 50% 40%, transparent 38%, rgba(4, 7, 14, 0.62) 100%),
    linear-gradient(180deg, rgba(4, 7, 14, 0.62) 0%, transparent 24%, transparent 66%, var(--bg) 100%);
}
/* No WebGL / three.js unavailable — a CSS swell so the hero still reads
   as water rather than an empty gradient. */
.no-webgl .hero__canvas { display: none; }
.no-webgl .hero::after,
.no-webgl .horizon::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 40% at 20% 18%, rgba(79, 216, 196, 0.16), transparent 60%),
    radial-gradient(ellipse 80% 44% at 78% 30%, rgba(79, 216, 196, 0.12), transparent 62%),
    radial-gradient(ellipse 90% 30% at 50% 10%, rgba(240, 194, 123, 0.14), transparent 58%),
    linear-gradient(180deg, transparent, rgba(12, 32, 60, 0.75));
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 26%);
  animation: swell 14s ease-in-out infinite alternate;
}
@keyframes swell {
  from { transform: translate3d(-2%, 0, 0) scaleY(1); }
  to { transform: translate3d(2%, 0, 0) scaleY(1.08); }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 980px;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 10.5vw, 128px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line .char {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}
.hero__line .char.space { width: 0.26em; }
.is-loaded .hero__line .char { transform: none; }
.hero__line--accent {
  font-style: italic;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  /* Fallback only — once JS splits the line into .char boxes there is no
     direct text left for background-clip to paint against. */
  background: linear-gradient(100deg, var(--gold) 10%, #f7e2b8 45%, var(--teal) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Each character carries the gradient itself; main.js sizes and offsets the
   background so one continuous gradient runs across the whole line. */
.hero__line--accent .char {
  background-image: linear-gradient(100deg, var(--gold) 10%, #f7e2b8 45%, var(--teal) 95%);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (max-width: 560px) {
  .hero__eyebrow {
    font-size: 10px;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
  }
}
.hero__sub {
  max-width: 620px;
  margin: 34px auto 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-muted);
}
.hero__actions { margin-top: 44px; }
.hero__actions span { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* Staggered line reveals (hero) */
.reveal-line { overflow: hidden; }
.reveal-line > span { display: block; }
.js .reveal-line > span {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.is-loaded .reveal-line > span { opacity: 1; transform: none; }
.is-loaded .hero__eyebrow > span { transition-delay: 0.1s; }
.is-loaded .hero__sub > span { transition-delay: 0.55s; }
.is-loaded .hero__actions > span { transition-delay: 0.75s; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade-up 1s 1.6s var(--ease-out) forwards;
}
.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--gold));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, #fff);
  transform: translateY(-100%);
  animation: scroll-drip 2.2s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.hero__scroll-text {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============ Sections (shared) ============ */
.section {
  position: relative;
  padding: clamp(110px, 16vh, 190px) 0;
}
.section__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}
.section__inner--narrow { width: min(900px, calc(100% - 48px)); }
.section__inner--center { text-align: center; }
.section__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 26px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.section__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.section__lead {
  max-width: 560px;
  color: var(--ink-muted);
  font-size: 17px;
  margin-bottom: 64px;
}

/* Scroll reveals. Only hide content when JS is alive to bring it back —
   and `reveals-off` is the escape hatch if main.js never wires the observer. */
.js .reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }
html.reveals-off .reveal { opacity: 1 !important; transform: none !important; }

/* Aurora blobs */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}
.aurora--gold {
  width: 560px; height: 560px;
  top: -6%; right: -180px;
  background: radial-gradient(circle, rgba(240, 194, 123, 0.13), transparent 65%);
}
.aurora--teal {
  width: 640px; height: 640px;
  bottom: -12%; left: -220px;
  background: radial-gradient(circle, rgba(79, 216, 196, 0.1), transparent 65%);
}

/* ============ House ============ */
.house { background: linear-gradient(180deg, var(--bg) 0%, #080d1a 100%); overflow: hidden; }
.house__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-top: 26px;
}
.house__lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}
.house__body p { color: var(--ink-muted); font-size: 16.5px; }
.house__body p + p { margin-top: 20px; }

.house__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: clamp(70px, 10vh, 110px);
  padding-top: 54px;
  border-top: 1px solid var(--line);
}
.stat { text-align: center; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 7vw, 84px);
  line-height: 1;
  background: linear-gradient(160deg, #fff 20%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat__num--inf { background: linear-gradient(160deg, #fff 20%, var(--teal)); -webkit-background-clip: text; background-clip: text; }
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 760px) {
  .house__grid { grid-template-columns: 1fr; }
  .house__stats { grid-template-columns: 1fr; gap: 44px; }
}

/* ============ Currents / Cards ============ */
.currents { background: #080d1a; }
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  grid-column: span 2;
  padding: 40px 34px 88px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(238, 242, 248, 0.045), rgba(238, 242, 248, 0.012));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.5s, transform 0.15s ease-out, background 0.5s;
  transform-style: preserve-3d;
  will-change: transform;
}
.card:nth-child(4) { grid-column: 2 / span 2; }
.card:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: auto; }
  .card { padding-bottom: 72px; }
}
.card:hover { border-color: rgba(240, 194, 123, 0.3); }
.card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(240, 194, 123, 0.1), transparent 55%);
  pointer-events: none;
}
.card:hover .card__glow { opacity: 1; }
.card__icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 26px;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(240, 194, 123, 0.22);
  transition: transform 0.5s var(--ease-out), color 0.4s, background 0.4s;
}
.card__icon svg { width: 30px; height: 30px; }
.card:hover .card__icon {
  transform: translateY(-4px) scale(1.05);
  color: var(--teal);
  background: var(--teal-soft);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin-bottom: 12px;
}
.card__text { color: var(--ink-muted); font-size: 15.5px; }
.card__num {
  position: absolute;
  bottom: 22px;
  right: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  color: rgba(238, 242, 248, 0.07);
  transition: color 0.5s;
}
.card:hover .card__num { color: rgba(240, 194, 123, 0.22); }
.card--next {
  background: linear-gradient(165deg, rgba(79, 216, 196, 0.05), rgba(240, 194, 123, 0.03));
  border-style: dashed;
}

/* ============ Philosophy ============ */
.philosophy {
  background: linear-gradient(180deg, #080d1a, var(--bg-raised) 55%, #080d1a);
  overflow: hidden;
}
.philosophy__rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.philosophy__rings span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(240, 194, 123, 0.07);
  border-radius: 50%;
  animation: ring-pulse 9s ease-in-out infinite;
}
.philosophy__rings span:nth-child(1) { width: 480px; height: 480px; }
.philosophy__rings span:nth-child(2) { width: 780px; height: 780px; animation-delay: 1.4s; border-color: rgba(79, 216, 196, 0.06); }
.philosophy__rings span:nth-child(3) { width: 1120px; height: 1120px; animation-delay: 2.8s; }
@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.55; }
}
.philosophy__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.3;
  text-align: center;
  margin-top: 8px;
}
.philosophy__quote em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.philosophy .section__eyebrow { text-align: center; }
.philosophy__attr {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.philosophy__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(70px, 10vh, 110px);
}
.pillar {
  padding: 36px 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(238, 242, 248, 0.02);
  transition: border-color 0.5s, transform 0.5s var(--ease-out);
}
.pillar:hover { border-color: rgba(79, 216, 196, 0.3); transform: translateY(-6px); }
.pillar__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 18px;
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 10px;
}
.pillar p { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 820px) {
  .philosophy__pillars { grid-template-columns: 1fr; }
}

/* ============ Horizon ============ */
.horizon {
  overflow: hidden;
  background: var(--bg);
}
.horizon__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.horizon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.horizon .section__inner { z-index: 3; }
.horizon__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.06;
}
.horizon__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.horizon__text {
  max-width: 480px;
  margin: 30px auto 46px;
  color: var(--ink-muted);
  font-size: 17px;
}

/* ============ Footer ============ */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(50px, 8vh, 90px) clamp(20px, 4vw, 56px) 40px;
  overflow: hidden;
  background: #05080f;
}
.footer__wordmark {
  overflow: hidden;
  margin-bottom: 40px;
}
.footer__wordmark span {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(64px, 13vw, 210px);
  line-height: 0.95;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(238, 242, 248, 0.14), rgba(238, 242, 248, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  will-change: transform;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer__links { display: flex; gap: 26px; }
.footer__links a { transition: color 0.3s; }
.footer__links a:hover { color: var(--gold); }
.footer__domain { letter-spacing: 0.12em; color: rgba(240, 194, 123, 0.6); }
@media (max-width: 700px) {
  .footer__row { justify-content: center; text-align: center; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-line > span, .hero__line .char { opacity: 1 !important; transform: none !important; }
}
