:root {
  --bg: #07070a;
  --bg-2: #0c0c11;
  --gold: #d4b56a;
  --gold-2: #efe0b8;
  --gold-dim: rgba(212, 181, 106, 0.14);
  --ink: #f4efe4;
  --muted: #8c8679;
  --line: rgba(239, 224, 184, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: #120f08;
}

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

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,181,106,0.12), transparent 62%);
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
}

body.is-ready .cursor-glow { opacity: 1; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .7s ease, visibility .7s ease;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
}

.boot-ring {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold-dim);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 36px;
  background: linear-gradient(180deg, rgba(7,7,10,0.72), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand svg,
.foot-brand svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.nav nav {
  display: flex;
  justify-self: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfc8b8;
}

.nav nav a {
  opacity: 0.72;
  transition: opacity .2s ease;
}

.nav nav a:hover { opacity: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px 72px 96px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("../assets/hero.jpg") left 42% center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(7,7,10,0.08) 0%,
      rgba(7,7,10,0.28) 38%,
      rgba(7,7,10,0.88) 66%,
      #07070a 100%),
    linear-gradient(180deg, rgba(7,7,10,0.2) 0%, transparent 18%, rgba(7,7,10,0.55) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 640px;
}

.eyebrow,
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: clamp(72px, 10vw, 132px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.03em;
}

h1 span { display: block; }

.lede {
  max-width: 28ch;
  color: var(--muted);
  font-size: 17px;
}

.hero-handles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.handle,
.copy-btn {
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(7,7,10,0.35);
  color: var(--ink);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.handle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px 13px;
  min-width: 210px;
  text-align: left;
}

.handle:hover,
.copy-btn:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.handle-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.handle-v {
  font-family: var(--mono);
  font-size: 15px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact,
.ledger,
.house {
  padding: 108px 72px;
  scroll-margin-top: 72px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

h2 {
  margin: 14px 0 14px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-head p:last-child,
.house-copy p {
  color: var(--muted);
  max-width: 48ch;
}

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

.card {
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.card-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.card h3 {
  margin: 28px 0 10px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  margin-bottom: 28px;
}

.copy-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 14px;
}

.table {
  border-top: 1px solid var(--line);
}

.tr {
  display: grid;
  grid-template-columns: 90px 1.4fr 1.1fr 0.8fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.tr span:first-child,
.th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px !important;
  padding-top: 0;
}

.tr span:nth-child(2) { color: var(--ink); }
.tr span:nth-child(3),
.tr span:nth-child(4) { color: var(--muted); }

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 40px;
  list-style: none;
}

.names li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.names li:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--gold);
}

.house {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.house figure {
  overflow: hidden;
  border: 1px solid var(--line);
}

.house img {
  width: 100%;
  height: 720px;
  object-fit: cover;
  object-position: center 12%;
  filter: saturate(0.92) contrast(1.04);
}

.house-copy h2 { margin-bottom: 22px; }

.house-copy p { margin-bottom: 16px; }

blockquote {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--gold-2);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 72px 36px;
  border-top: 1px solid var(--line);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.foot-brand svg {
  width: 28px;
  height: 28px;
}

.foot-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.foot-brand span,
.foot-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 14px;
  border: 1px solid var(--gold);
  background: #120f08;
  color: var(--gold-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .nav { padding: 16px 20px; mix-blend-mode: normal; background: rgba(7,7,10,0.72); backdrop-filter: blur(12px); }
  .nav nav { display: none; }
  .hero, .contact, .ledger, .house, footer { padding-left: 22px; padding-right: 22px; }
  .hero { min-height: 92vh; padding-top: 110px; }
  .hero-media { background-position: 18% center; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7,7,10,0.35) 0%, rgba(7,7,10,0.72) 46%, #07070a 100%);
  }
  .hero-copy { margin: 0; }
  h1 { font-size: 72px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .contact-grid, .house { grid-template-columns: 1fr; }
  .house img { height: 480px; }
  .tr { grid-template-columns: 70px 1fr; }
  .tr span:nth-child(3), .tr span:nth-child(4) { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
}
