:root {
  /* Palette — Placer & Slate */
  --bg: #090a0c;
  --surface: rgba(18, 19, 23, 0.78);
  --surface-hover: rgba(24, 26, 31, 0.9);
  --border: rgba(237, 234, 226, 0.11);
  --border-strong: rgba(207, 168, 88, 0.42);
  --text: #edeae2;
  --text-muted: #969187;
  --text-dim: #635f57;
  --accent: #cfa858;
  --slate-whisper: rgba(94, 114, 102, 0.07);

  /* Typography */
  --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-label: 0.72rem;
  --text-meta: 0.75rem;
  --text-body: 0.92rem;

  /* Layout & Spacing Scale */
  --frame-max: 1040px;
  --frame-pad-x: 28px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-section: 40px;
  --main-pad-top: 48px;
  --main-pad-bottom: 40px;
  --panel-pad-y: 22px;
  --panel-pad-x: 24px;
  --panel-blur: 8px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  overflow-x: hidden;
  background-image:
    radial-gradient(60% 42% at 82% 8%, rgba(207, 168, 88, 0.075), transparent 70%),
    radial-gradient(45% 38% at 12% 88%, var(--slate-whisper), transparent 72%),
    linear-gradient(rgba(237, 234, 226, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 234, 226, 0.024) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

::selection {
  background: rgba(207, 168, 88, 0.24);
  color: var(--text);
}

.strata-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

/* Shared surface & mono utilities */
.panel {
  background: var(--surface);
  backdrop-filter: blur(var(--panel-blur));
  -webkit-backdrop-filter: blur(var(--panel-blur));
}

.mono {
  font-family: var(--font-mono);
}

.frame {
  position: relative;
  z-index: 2;
  max-width: var(--frame-max);
  min-height: 100svh;
  margin: 0 auto;
  padding: var(--space-3) var(--frame-pad-x) var(--space-4);
  display: flex;
  flex-direction: column;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(207, 168, 88, 0.16));
}

.brand-name {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--text-meta);
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(207, 168, 88, 0.55);
  animation: pulse 2.8s ease-in-out infinite;
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--main-pad-top) 0 var(--main-pad-bottom);
  gap: var(--space-section);
}

.hero {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--text-meta);
  letter-spacing: 0.16em;
  color: var(--accent);
}

.sep {
  color: var(--text-dim);
  margin: 0 4px;
}

.headline {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5.6vw, 4.15rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

.headline-accent {
  color: var(--accent);
  background: linear-gradient(95deg, #f3efe6 0%, #dfc07a 52%, #a88d52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  margin: 0;
  max-width: 600px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar {
  position: relative;
  padding: var(--space-3) var(--panel-pad-x) 26px;
  transition: background-color 180ms ease;
}

.pillar::before,
.pillar::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.pillar::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.pillar::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.pillar:hover {
  background: var(--surface-hover);
}

.pillar:hover::before,
.pillar:hover::after {
  opacity: 1;
}

.pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: var(--text-label);
  letter-spacing: 0.14em;
}

.pillar-index {
  color: var(--accent);
}

.pillar-tag {
  color: var(--text-dim);
}

.pillar-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.pillar-copy {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Contact Strip */
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--panel-pad-y) var(--panel-pad-x);
  border: 1px solid var(--border);
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  color: var(--accent);
}

.contact-note {
  margin: 0;
  font-size: var(--text-body);
  color: var(--text-muted);
}

.contact-email {
  font-size: var(--text-body);
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-strong);
  transition: color 150ms ease, border-color 150ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.footer-right {
  letter-spacing: 0.12em;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.38;
  }
}

/* Responsive */
@media (max-width: 820px) {
  :root {
    --frame-pad-x: 20px;
    --space-section: 28px;
    --main-pad-top: 36px;
    --main-pad-bottom: 32px;
    --panel-pad-x: 20px;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }

  .pillar,
  .pillar::before,
  .pillar::after {
    transition: none;
  }
}
