:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-hover: #161616;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --faint: #6b6b6b;
  --line: #232323;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 1.5rem 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- brand ---- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  text-decoration: none;
}

.logo {
  width: 64px;
  height: 84px;
  display: block;
  animation: vg-breathe 4s ease-in-out infinite;
}

.logo ellipse {
  fill: none;
  stroke: var(--fg);
  stroke-width: 6;
  stroke-linecap: round;
}

.logo .top {
  stroke-dasharray: 158;
  stroke-dashoffset: 158;
  animation: vg-draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.logo .bottom {
  stroke-dasharray: 195;
  stroke-dashoffset: 195;
  animation: vg-draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards;
}

.wordmark {
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  font-weight: 500;
  padding-left: 0.5em;
  color: var(--fg);
}

/* ---- hero ---- */
.hero {
  text-align: center;
  margin: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  animation: vg-rise 0.9s ease-out 0.6s both;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- pillars (linked cards) ---- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  animation: vg-rise 0.9s ease-out 0.85s both;
}

.pillar {
  background: var(--panel);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.18s ease;
}

.pillar:hover,
.pillar:focus-visible {
  background: var(--panel-hover);
  outline: none;
}

.pillar h2 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 0.7rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.pillar .more {
  margin-top: auto;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  transition: color 0.18s ease;
}

.pillar:hover .more,
.pillar:focus-visible .more {
  color: var(--fg);
}

/* ---- approach ---- */
.approach {
  text-align: center;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
  animation: vg-rise 0.9s ease-out 1.05s both;
}

/* ---- contact ---- */
.contact {
  text-align: center;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  animation: vg-rise 0.9s ease-out 1.2s both;
}

.contact .eyebrow {
  margin-bottom: 0.6rem;
}

.contact a {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.18s ease;
}

.contact a:hover {
  border-color: var(--fg);
}

/* ---- footer ---- */
footer {
  margin-top: auto;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: var(--faint);
  font-size: 0.74rem;
  line-height: 1.7;
}

footer .legal {
  margin-bottom: 0.5rem;
}

footer .sep {
  opacity: 0.5;
  margin: 0 0.4rem;
}

footer nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 0.55rem;
  transition: color 0.18s ease;
}

footer nav a:hover {
  color: var(--fg);
}

/* ---- subpage prose ---- */
.page {
  max-width: 680px;
  margin: clamp(2.5rem, 7vw, 4.5rem) auto 0;
  animation: vg-rise 0.8s ease-out 0.4s both;
}

.page .eyebrow {
  text-align: left;
}

.page h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.page h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2.25rem 0 0.6rem;
}

.page p,
.page li {
  color: var(--muted);
  font-size: 1rem;
}

.page ul {
  padding-left: 1.2rem;
}

.page li {
  margin-bottom: 0.4rem;
}

.page a.inline {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--fg);
}

.updated {
  color: var(--faint);
  font-size: 0.82rem;
  margin-bottom: 2rem;
}

@media (max-width: 620px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

@keyframes vg-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes vg-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
@keyframes vg-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .logo ellipse,
  .hero,
  .pillars,
  .approach,
  .contact,
  .page {
    animation: none;
  }
  .logo ellipse {
    stroke-dashoffset: 0;
  }
}
