:root {
  --bg:        #f3f1ea;
  --bg-card:   #fffdf8;
  --ink:       #1d1b16;
  --body:      #6a665b;
  --faint:     #a7a394;
  --rule:      #d8d3c6;
  --tick:      #b3ae9f;
  --gold:      #d39a2c;
  --gold-soft: #f3e4c2;
  --green:     #5aa977;
  --green-soft:#d9ecdf;
  --shadow:    rgba(29,27,22,0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 40px; position: relative; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,241,234,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease;
}
.nav.scrolled { border-color: var(--rule); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.glyph {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  display: grid; place-items: center; flex: none;
}
.brand-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-size: 14px; color: var(--ink); text-decoration: none;
  padding: 9px 14px; border-radius: 999px;
  transition: background 200ms ease;
}
.nav-link:hover { background: rgba(29,27,22,0.06); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 10px 18px; border-radius: 999px;
  transition: transform 200ms ease, background 200ms ease;
}
.pill:hover { transform: translateY(-1px); background: #2c2920; }
.pill .arr { transition: transform 250ms cubic-bezier(.22,.61,.36,1); }
.pill:hover .arr { transform: translateX(3px); }

/* ============ HERO ============ */
.tower-bg {
  position: absolute; top: 200px; right: -3vw;
  width: clamp(380px, 44vw, 660px); height: auto;
  z-index: 0; pointer-events: none; user-select: none;
  will-change: transform;
}
.hero { position: relative; z-index: 1; padding: 86px 0 70px; }
.hero-text { max-width: 700px; position: relative; z-index: 2; }
.hero .eyebrow { opacity: 0; animation: fade .7s ease forwards .1s; }
.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.7rem, 6vw, 4.7rem);
  line-height: 1.04; letter-spacing: -0.015em;
  margin: 20px 0 0; text-wrap: balance;
  opacity: 0; animation: fade .8s ease forwards .2s;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .sub {
  font-size: 1.18rem; color: var(--body); max-width: 50ch; margin-top: 26px; text-wrap: pretty;
  opacity: 0; animation: fade .8s ease forwards .36s;
}
.hero .cta {
  margin-top: 34px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  opacity: 0; animation: fade .8s ease forwards .5s;
}
.ghost {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none; padding: 10px 4px; border-bottom: 1px solid var(--ink);
}
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rule-row { border-top: 1px solid var(--rule); }

/* ============ FLOORS ============ */
.floors { position: relative; z-index: 1; padding: 30px 0 40px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-family: 'Newsreader', Georgia, serif; font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; margin-top: 14px;
}
.section-head p { color: var(--body); font-size: 1.08rem; margin-top: 16px; max-width: 46ch; }

.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 34px;
  position: relative; z-index: 1;
}

.card {
  position: relative; background: var(--bg-card);
  border-radius: 16px; padding: 30px 30px 26px;
  box-shadow: 0 22px 44px -28px var(--shadow), 0 2px 5px rgba(29,27,22,0.04);
  transition: transform 320ms cubic-bezier(.22,.61,.36,1), box-shadow 320ms ease;
  opacity: 0; transform: translateY(22px) rotate(var(--rot, 0deg));
  display: flex; flex-direction: column;
}
.card.in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }
.card:nth-child(1) { --rot: -1.1deg; }
.card:nth-child(2) { --rot: 1deg; }
.card:nth-child(3) { --rot: 0.8deg; }
.card:nth-child(4) { --rot: -0.9deg; }
.card:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: 0 34px 60px -28px var(--shadow), 0 3px 8px rgba(29,27,22,0.06);
}
.card::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background-image:
    linear-gradient(var(--tick),var(--tick)),
    linear-gradient(var(--tick),var(--tick)),
    linear-gradient(var(--tick),var(--tick)),
    linear-gradient(var(--tick),var(--tick));
  background-repeat: no-repeat; background-size: 4px 4px;
  background-position: 0 0, 100% 0, 0 100%, 100% 100%;
}

.card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px;
}
.floor-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
.mono-mark {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-family: 'Newsreader', serif; font-size: 1.35rem; font-weight: 600; color: var(--bg-card);
}
.mono-mark.gold  { background: var(--gold); }
.mono-mark.ink   { background: var(--ink); }
.mono-mark.green { background: var(--green); }
.mono-mark.dash  { background: transparent; color: var(--faint); border: 2px dashed var(--rule); }
.card-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.card-logo--dark { background: #161D2A; padding: 6px; box-sizing: border-box; }

.card h3 {
  font-family: 'Newsreader', serif; font-weight: 600;
  font-size: 1.85rem; letter-spacing: -0.01em;
}
.card .tag { color: var(--green); font-weight: 600; font-size: 1rem; margin-top: 4px; }
.card.progress .tag { color: var(--gold); }
.card .desc {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  line-height: 1.85; color: var(--body); margin-top: 16px; margin-bottom: 22px; max-width: 42ch;
}
.card .meta {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.card .url {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  color: var(--faint); letter-spacing: 0.01em; margin-top: 10px;
}

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.status .dot { width: 7px; height: 7px; border-radius: 50%; }
.status.live { color: var(--green); }
.status.live .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status.prog { color: var(--gold); }
.status.prog .dot { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.status.dark { color: var(--faint); }
.status.dark .dot { background: var(--faint); }

.enter {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.enter .arr { transition: transform 250ms cubic-bezier(.22,.61,.36,1); }
.enter:hover .arr { transform: translateX(4px); }
.enter.disabled { color: var(--faint); pointer-events: none; }

.card.construction { background: #efece2; }
.card.construction h3 {
  font-family: 'JetBrains Mono', monospace; font-size: 1.2rem;
  letter-spacing: 0.12em; color: var(--faint); font-weight: 500;
}

/* ============ STAT STRIP ============ */
.stats { display: flex; gap: 64px; flex-wrap: wrap; padding: 8px 0 4px; }
.stat .num {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1;
}
.stat .lab { color: var(--body); font-size: 0.96rem; margin-top: 8px; }

/* ============ CLOSING CTA ============ */
.closing { position: relative; z-index: 1; padding: 96px 0; }
.closing h2 {
  font-family: 'Newsreader', serif; font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05; letter-spacing: -0.015em; max-width: 16ch;
  margin-top: 14px;
}
.closing h2 em { font-style: italic; color: var(--gold); }
.closing p { color: var(--body); font-size: 1.1rem; margin-top: 20px; max-width: 44ch; }
.closing .cta { margin-top: 32px; }

/* ============ FOOTER ============ */
.foot {
  position: relative; z-index: 1; background: var(--bg);
  border-top: 1px solid var(--rule); padding: 40px 0 56px;
}
.foot-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.foot .brand-name { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--body); text-decoration: none;
  transition: color 200ms ease;
}
.foot-links a:hover { color: var(--gold); }
.foot .copy {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--faint); letter-spacing: 0.06em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  .tower-bg { width: clamp(300px, 40vw, 520px); right: -4vw; }
  .hero-text { max-width: 460px; }
}
@media (max-width: 860px) {
  .tower-bg { width: 132%; right: -34%; top: 100px; opacity: 0.18; }
  .hero-text { max-width: none; }
  .cards { grid-template-columns: 1fr; gap: 26px; }
  .card { --rot: 0deg !important; }
  .stats { gap: 36px; }
}
@media (max-width: 520px) {
  .wrap, .nav-inner { padding-left: 22px; padding-right: 22px; }
  .nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .sub, .hero .cta, .card {
    opacity: 1; transform: none; animation: none;
  }
}
