/* ============================================================
   PNEUMAWAVE — design tokens
   Void / gold / ember palette. Breath-paced motion throughout.
   ============================================================ */

:root {
  --void: #0b0d14;
  --void-panel: #12141e;
  --void-panel-2: #171a26;
  --gold: #c9a24b;
  --gold-bright: #e8c078;
  --ember: #7a3b24;
  --ember-bright: #a5543a;
  --bone: #ede8de;
  --mist: #948d7d;
  --line: rgba(201, 162, 75, 0.16);

  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --breath-in: 4s;
  --breath-hold: 4s;
  --breath-out: 6s;

  --container: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* faint void texture */
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 50% -10%, rgba(201,162,75,0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 110%, rgba(122,59,36,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--bone);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; font-weight: 460; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--mist); max-width: 62ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.ratio {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.85;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11,13,20,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .mark {
  width: 22px; height: 22px;
  animation: mark-breathe calc(var(--breath-in) + var(--breath-hold) + var(--breath-out)) ease-in-out infinite;
  transform-origin: center;
}

@keyframes mark-breathe {
  0% { transform: scale(0.86); opacity: 0.65; }
  28.5% { transform: scale(1); opacity: 1; }
  57% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.86); opacity: 0.65; }
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 0.92rem;
  color: var(--mist);
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 9px 18px;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--void); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none; border: none; color: var(--bone);
    font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--void);
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--bone);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Sections ---------- */

section { position: relative; z-index: 1; padding: 108px 0; }
section.tight { padding: 72px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin-bottom: 56px;
}

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  position: relative; z-index: 1;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-grid p { font-size: 0.88rem; }

.footer-links {
  display: flex;
  gap: 26px;
  font-size: 0.86rem;
  color: var(--mist);
}
.footer-links a:hover { color: var(--gold-bright); }

.footer-base {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mist);
  opacity: 0.7;
  letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-ring-wrap { order: 1; }
}

.hero-copy p.lede {
  font-size: 1.08rem;
  color: var(--bone);
  opacity: 0.82;
  margin-top: 22px;
  max-width: 46ch;
}

.hero-cta-row {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-cta-row { justify-content: center; }
}

.hero-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-word {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  color: var(--gold-bright);
  text-transform: uppercase;
}

@keyframes word-fade {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

.ring-core {
  transform-origin: 250px 250px;
  animation: ring-breathe 14s ease-in-out infinite;
}

@keyframes ring-breathe {
  0%   { transform: scale(0.86); opacity: 0.55; }
  28.5% { transform: scale(1.02); opacity: 1; }
  57%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(0.86); opacity: 0.55; }
}

.ring-outer {
  animation: ring-rotate 90s linear infinite;
  transform-origin: 250px 250px;
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Pillars (breath / sound / cold) ---------- */

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

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

.pillar {
  background: var(--void);
  padding: 44px 34px;
}

.pillar .ratio { display: block; margin-bottom: 22px; }

.pillar h3 { margin-bottom: 12px; }

.pillar-icon { width: 44px; height: 44px; margin-bottom: 26px; }

/* ---------- Stat row ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; gap: 32px; } }

.stat {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.stat .num {
  font-family: var(--display);
  font-size: 2.6rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 8px;
}
.stat p { font-size: 0.92rem; margin: 0; }

/* ---------- Cards (offerings / blog) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--void-panel), var(--void-panel-2));
  padding: 36px;
  border-radius: 3px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }

.card .ratio { display: block; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card .meta {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--mist);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}

/* ---------- Quote / pull ---------- */

.pull {
  border-left: 2px solid var(--gold);
  padding-left: 28px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-style: italic;
  color: var(--bone);
  max-width: 46ch;
}

/* ---------- Page header (non-home pages) ---------- */

.page-hero {
  padding: 160px 0 60px;
}
.page-hero p { margin-top: 18px; font-size: 1.05rem; max-width: 56ch; }

/* ---------- Timeline (about) ---------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tl-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.tl-row:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Blog list ---------- */

.post-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.post-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .post-row { grid-template-columns: 1fr; gap: 10px; } }

.post-row h3 { margin-bottom: 8px; }
.post-row .tag { font-family: var(--mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
