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

:root {
  --bg: #0B0A09;
  --bg-secondary: #100F0D;
  --bg-card: #131110;
  --text: #F2EDE3;
  --text-muted: rgba(255, 255, 255, 0.60);
  --text-subtle: rgba(255, 255, 255, 0.48);
  --ivory: #F2EDE3;
  --gold: #C8A35F;
  --gold-bright: #DFC08A;
  --gold-dim: rgba(200, 163, 95, 0.10);
  --gold-border: rgba(200, 163, 95, 0.28);
  --gold-hairline: rgba(200, 163, 95, 0.16);
  --border: rgba(242, 237, 227, 0.08);
  --border-hover: rgba(200, 163, 95, 0.35);
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-eyebrow,
  .hero-headline,
  .hero-rule,
  .hero-tagline,
  .hero-launch,
  .hero-frame {
    opacity: 1;
    transform: none;
  }

  .hero-nudge {
    opacity: 0.7;
  }

  .hero-nudge-line::after {
    animation: none;
  }

  .dev-bar-fill {
    transform: scaleX(1);
  }
}

::selection {
  background: rgba(200, 163, 95, 0.30);
  color: var(--text);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

section {
  padding: 140px 0;
  position: relative;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 48% at 50% 38%, rgba(200, 163, 95, 0.07), transparent 68%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(200, 163, 95, 0.03), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-frame {
  position: absolute;
  inset: 36px;
  border: 1px solid var(--gold-hairline);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1.6s ease 1.1s forwards;
}

.hero-frame::before {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-border);
  transform: rotate(45deg);
  background: var(--bg);
  top: -4px;
  left: 50%;
  margin-left: -4px;
}

.hero-container {
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 130px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  color: var(--gold);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 1s ease 0.25s forwards;
}

.hero-headline {
  position: relative;
  margin-bottom: 58px;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(110vmin, 780px);
  height: min(60vmin, 400px);
  background: radial-gradient(ellipse at center, rgba(200, 163, 95, 0.11) 0%, transparent 60%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(96px, 16vw, 190px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.hero-title .tm {
  font-family: var(--font-body);
  font-size: 0.14em;
  vertical-align: top;
  position: relative;
  top: 0.55em;
  margin-left: 0.18em;
  letter-spacing: 0;
  color: var(--gold);
  font-weight: 400;
}

.hero-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeIn 1.2s ease 0.9s forwards;
}

.hero-rule-line {
  display: block;
  width: 72px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border));
}

.hero-rule-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-border));
}

.hero-rule-diamond {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 460;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  max-width: 640px;
  line-height: 1.5;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 1s ease 0.7s forwards;
}

.hero-tagline em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero-launch {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: var(--text-subtle);
  opacity: 0;
  animation: fadeIn 1.2s ease 1.05s forwards;
}

.hero-launch-year {
  color: var(--gold);
}

.hero-nudge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  text-decoration: none;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-nudge.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-nudge:hover,
.hero-nudge:focus-visible {
  opacity: 1;
}

.hero-nudge-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: inherit;
}

.hero-nudge-line {
  display: block;
  position: relative;
  width: 1px;
  height: 56px;
  background: var(--gold-hairline);
  overflow: hidden;
}

.hero-nudge-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--gold);
  animation: nudgeDrop 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes nudgeDrop {
  0% { top: -50%; }
  60%, 100% { top: 105%; }
}

/* ─── SECTION HEADER ─── */
.section-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.section-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold);
  position: relative;
  padding-right: 16px;
}

.section-num::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-40%);
  background: var(--gold-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 560;
  letter-spacing: 0.005em;
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 28px;
  text-wrap: balance;
}

.section-title em {
  font-style: normal;
  color: var(--gold-bright);
}

.section-body {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

.section-lead {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 480;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: 0.005em;
}

.section-body--spaced {
  margin-top: 20px;
}

/* ─── SECTION SEPARATORS ─── */
#about::before,
#pillars::before,
#development::before,
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 80px));
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 18%, var(--border) 82%, transparent);
}

/* ─── WHO WE ARE ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.about-left .section-title {
  margin-bottom: 0;
}

.about-left .section-title::after {
  content: '';
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 44px;
  background: linear-gradient(to right, var(--gold-border), transparent);
}

.about-right {
  padding-top: 12px;
}

.about-stat {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  color: var(--gold);
  line-height: 0.9;
  font-variant-numeric: lining-nums;
}

.about-stat-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  line-height: 1.7;
  max-width: 150px;
}

/* ─── PILLARS ─── */
.pillars-header {
  margin-bottom: 24px;
}

.pillars-list {
  display: flex;
  flex-direction: column;
}

.pillar-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 52px 0;
  border-top: 1px solid var(--border);
  position: relative;
  transition: border-color 0.4s ease;
}

.pillar-row:last-child {
  border-bottom: 1px solid var(--border);
}

.pillar-row::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(200, 163, 95, 0.04), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .pillar-row:hover::before {
    width: 180px;
  }

  .pillar-row:hover::after {
    opacity: 1;
  }

  .pillar-row:hover .pillar-name {
    color: var(--gold-bright);
  }

  .pillar-row:hover .pillar-index {
    color: var(--gold);
  }
}

.pillar-index {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  line-height: 1;
  padding-top: 10px;
  font-variant-numeric: lining-nums;
  transition: color 0.4s ease;
}

.pillar-name {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 570;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ivory);
  margin: 0 0 10px;
  transition: color 0.4s ease;
}

.pillar-category {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 18px;
}

.pillar-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 540px;
}

.pillar-side {
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  background: transparent;
  padding: 7px 18px;
  border-radius: 100px;
  min-height: 31px;
  white-space: nowrap;
}

.pillar-badge::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ─── PILLAR LINKS ─── */
.pillar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 6px;
  margin-top: 20px;
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(200, 163, 95, 0.28);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
  min-height: 24px;
  padding: 2px 0;
}

.pillar-link:not(:last-child)::after {
  content: '·';
  font-size: 16px;
  color: var(--text-subtle);
  margin-left: 14px;
  text-decoration: none;
}

.pillar-link:hover,
.pillar-link:focus-visible {
  color: var(--gold-bright);
  text-decoration-color: rgba(223, 192, 138, 0.55);
}

/* ─── IN DEVELOPMENT ─── */
.dev-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: flex-start;
}

.dev-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 14px;
}

.dev-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 0;
}

.dev-bar-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 96px;
}

.dev-bar-track {
  flex: 1;
  height: 2px;
  background: rgba(242, 237, 227, 0.14);
  overflow: hidden;
}

.dev-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--gold), rgba(200, 163, 95, 0.35));
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .dev-bar-fill {
  transform: scaleX(0);
}

.js .dev-bar-fill.animate {
  transform: scaleX(1);
}

.dev-bar-fill--100 { width: 100%; }
.dev-bar-fill--90 { width: 90%; }
.dev-bar-fill--20 { width: 20%; }

.dev-bar-pct {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--text-subtle);
  min-width: 88px;
  text-align: right;
  white-space: nowrap;
}

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

/* ─── FOOTER ─── */
footer {
  position: relative;
  overflow: visible;
  padding: 110px 0 56px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(260px, 32vw, 360px);
  height: auto;
  opacity: 0.92;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  color: var(--ivory);
  line-height: 1;
}

.footer-rule {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-rule-line {
  display: block;
  width: 64px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border));
}

.footer-rule-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-border));
}

.footer-rule-diamond {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  transform: rotate(45deg);
}

.footer-connect {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-connect-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
  color: var(--text-subtle);
}

.footer-connect-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 20px;
  row-gap: 10px;
}

.footer-connect-sep {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-subtle);
}

.footer-connect a {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(200, 163, 95, 0.32);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

.footer-connect a:hover,
.footer-connect a:focus-visible {
  color: var(--gold-bright);
  text-decoration-color: var(--gold-bright);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  line-height: 1.6;
  margin: 0;
}

.footer-legal-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.footer-legal-link:hover {
  color: var(--gold);
}

.footer-legal-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .pillar-row {
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .pillar-side {
    grid-column: 2;
    justify-content: flex-start;
    padding-top: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-left .section-title::after {
    display: none;
  }

  .about-right {
    padding-top: 0;
  }

  .dev-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .dev-visual {
    padding-top: 0;
  }
}

@media (max-height: 780px) {
  .hero-content {
    padding: 116px 0 96px;
  }

  .hero-eyebrow {
    margin-bottom: 28px;
  }

  .hero-headline {
    margin-bottom: 44px;
  }

  .hero-title {
    font-size: clamp(80px, 13vw, 150px);
  }

  .hero-rule {
    margin-bottom: 28px;
  }

  .hero-tagline {
    margin-bottom: 32px;
  }
}

@media (max-height: 700px) {
  .hero-nudge {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  section {
    padding: 96px 0;
  }

  .hero-frame {
    inset: 16px;
  }

  .hero-content {
    padding: 130px 0 110px;
  }

  .hero-eyebrow {
    font-size: 13px;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
  }

  #about::before,
  #pillars::before,
  #development::before,
  footer::before {
    width: calc(100% - 48px);
  }

  .footer-meta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .pillar-links {
    column-gap: 18px;
  }

  .pillar-link:not(:last-child)::after {
    content: none;
  }

  .footer-connect-links {
    flex-direction: column;
    align-items: center;
    row-gap: 14px;
  }

  .footer-connect-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  .pillar-row {
    display: block;
  }

  .pillar-index {
    padding-top: 0;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .pillar-side {
    display: flex;
    justify-content: flex-start;
    padding-top: 20px;
  }

  .dev-bar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .dev-bar-track {
    flex-basis: 100%;
    order: 3;
  }

  .dev-bar-pct {
    flex: 1;
  }
}

main h2:focus-visible,
:target {
  scroll-margin-top: 88px;
}

@media (forced-colors: active) {
  a:focus-visible,
  .footer-legal-link:focus-visible {
    outline: 2px solid CanvasText;
  }
}
