@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  /* backgrounds */
  --bg: #0C0C11;
  --bg-raised: #131319;
  --bg-card: #1A1A22;
  --bg-card-hover: #22222C;
  --bg-surface: #0F0F15;

  /* text — all must pass contrast on --bg */
  --text-h: #E2DFD6;        /* headings — warm cream */
  --text-p: #A8A49A;         /* body — sand */
  --text-sub: #807C74;       /* secondary — warm gray */
  --text-dim: #5A5750;       /* labels, meta */

  /* accents per dimension */
  --c0: #6B7B8D;             /* dissolution — muted steel */
  --ci: #D4A84C;             /* identity — warm gold */
  --cg: #7B72E8;             /* gate — violet */
  --c8: #3EC8B8;             /* infinity — teal */
  --ca: #9B94E8;             /* general accent — soft violet */

  /* borders */
  --border: rgba(255,255,255,0.06);
  --border-h: rgba(255,255,255,0.12);

  /* type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;

  /* layout */
  --max-w: 1440px;
  --content-w: 820px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text-p);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(155,148,232,0.18); color: var(--text-h); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--text-h); }
img { max-width:100%; display:block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ═══ LAYOUT ═══ */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px;
}
.content {
  max-width: var(--content-w);
}
.content-wide {
  max-width: 1080px;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--text-h);
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.15;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
  margin-bottom: 22px;
}
h3 {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.35;
  margin-bottom: 16px;
}
h4 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 500;
}
p {
  margin-bottom: 20px;
  max-width: 680px;
}
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 16px;
  text-transform: lowercase;
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 100px 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* ═══ COMPONENTS ═══ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  transition: border-color 0.4s var(--ease), background 0.4s;
}
.card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-hover);
}
.card-accent {
  border-left: 3px solid var(--border);
  border-radius: 0 14px 14px 0;
}

.pill {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid;
  letter-spacing: 0.02em;
}

.quote-block {
  border-left: 2px solid var(--ca);
  padding: 4px 0 4px 28px;
  margin: 48px 0;
}
.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.6;
  color: var(--text-h);
  opacity: 0.85;
  max-width: 640px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 64px 0;
}

/* data rows */
.data-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  font-size: 16px;
}
.data-row:last-child { border-bottom: none; }
.data-k { color: var(--text-sub); flex-shrink: 0; }
.data-v { color: var(--text-h); text-align: right; }

/* grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex-col { display: flex; flex-direction: column; gap: 16px; }

/* step list */
.step-list .step {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.step-list .step:last-child { border-bottom: none; }
.step-n { color: var(--text-dim); flex-shrink: 0; width: 24px; text-align: right; font-size: 16px; }

/* prompt cards */
.prompt-card {
  background: var(--bg-raised);
  border-radius: 12px;
  padding: 20px 28px;
}
.prompt-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  margin: 0;
}

/* color swatch */
.swatch-row { display: flex; gap: 8px; align-items: center; }
.swatch {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-h);
}

/* module card */
.mod-card {
  display: block;
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.mod-card:hover { transform: translateY(-3px); }
.mod-card .sym {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 14px;
}
.mod-card h3 { font-size: 20px; margin-bottom: 12px; }

/* nav link */
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 400;
  transition: border-color 0.3s, background 0.3s;
}
.nav-link:hover {
  border-color: var(--border-h);
  background: var(--bg-card-hover);
}
.nav-link svg { flex-shrink: 0; opacity: 0.4; }

/* feature block */
.feat {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 36px;
}
.feat-icon { flex-shrink: 0; margin-top: 4px; opacity: 0.7; }
.feat h4 { margin-bottom: 8px; }

/* anti-pattern grid */
.anti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.anti-cell {
  background: var(--bg-card);
  padding: 28px 28px;
}
.anti-cell h4 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* ═══ NAVIGATION ═══ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.5s, border-color 0.5s, backdrop-filter 0.5s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(12,12,17,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-h);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-sub);
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-h); }
.nav-toggle {
  display: none;
  padding: 8px;
  color: var(--text-sub);
}

/* mobile nav overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(12,12,17,0.97);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay nav { display: flex; flex-direction: column; gap: 8px; }
.nav-overlay a {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--text-sub);
  padding: 12px 0;
  transition: color 0.3s, opacity 0.5s, transform 0.5s;
  opacity: 0;
  transform: translateY(10px);
}
.nav-overlay.open a { opacity: 1; transform: translateY(0); }
.nav-overlay a:hover, .nav-overlay a.active { color: var(--ca); }
.nav-overlay.open a:nth-child(1) { transition-delay: 0.04s; }
.nav-overlay.open a:nth-child(2) { transition-delay: 0.08s; }
.nav-overlay.open a:nth-child(3) { transition-delay: 0.12s; }
.nav-overlay.open a:nth-child(4) { transition-delay: 0.16s; }
.nav-overlay.open a:nth-child(5) { transition-delay: 0.2s; }
.nav-overlay.open a:nth-child(6) { transition-delay: 0.24s; }
.nav-overlay.open a:nth-child(7) { transition-delay: 0.28s; }

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 60px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: space-between;
  margin-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-brand .nav-logo { margin-bottom: 16px; display: block; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col a {
  display: block;
  font-size: 16px;
  color: var(--text-sub);
  padding: 5px 0;
}

/* ═══ ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* hero rings */
.hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-rings .ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* breathe */
@keyframes breathe {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(6px); opacity: 0.12; }
}

/* whisper samples */
.whisper {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ci);
  line-height: 1.5;
  padding: 8px 0;
}

/* color accents */
.tc0 { color: var(--c0); }
.tci { color: var(--ci); }
.tcg { color: var(--cg); }
.tc8 { color: var(--c8); }
.tca { color: var(--ca); }

.bc0 { border-color: var(--c0) !important; }
.bci { border-color: var(--ci) !important; }
.bcg { border-color: var(--cg) !important; }
.bc8 { border-color: var(--c8) !important; }

/* process number */
.proc-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  color: var(--ca);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 12px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
  .nav-bar { padding: 0 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-bar { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .anti-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .section { padding: 56px 0; }
  h1 { font-size: 30px; }
  .footer-cols { gap: 36px; }
  .footer-grid { gap: 36px; }
}
