:root {
  --bg: #0f0d0b;
  --bg-elev: #171410;
  --bg-deep: #0a0907;
  --text: #ece4d0;
  --text-dim: #b8ae97;
  --text-faint: #7a725f;
  --silver: #d8d0bc;
  --silver-bright: #f1e9d2;
  --border: #2b2721;
  --border-soft: rgba(236, 228, 208, 0.08);
  --border-hair: rgba(236, 228, 208, 0.14);
  --rose: #c49988;

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-slow: cubic-bezier(0.25, 0.1, 0.25, 1);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 380;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(216, 208, 188, 0.055), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(216, 208, 188, 0.03), transparent 60%),
    var(--bg);
  position: relative;
}

::selection { background: rgba(241, 233, 210, 0.18); color: var(--silver-bright); }

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

/* ambient layers */
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 100% 70% at 50% 50%, transparent 55%, rgba(10, 9, 7, 0.55) 100%);
}
#constellation {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.93  0 0 0 0 0.89  0 0 0 0 0.82  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  background: linear-gradient(to bottom, rgba(15, 13, 11, 0.78), rgba(15, 13, 11, 0.35));
  border-bottom: 1px solid var(--border-soft);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--silver-bright);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  letter-spacing: 0.01em;
}
.brand-mark { display: inline-flex; color: var(--silver); }
.brand-word { position: relative; }
.brand-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: linear-gradient(to right, transparent, var(--silver) 40%, var(--silver) 60%, transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.brand:hover .brand-word::after { opacity: 0.6; }

.topnav {
  display: flex; gap: 28px; align-items: center;
  font-family: var(--font-sans); font-size: 13px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim);
}
.topnav a { position: relative; padding: 6px 2px; transition: color .25s var(--ease); }
.topnav a:hover { color: var(--silver-bright); }
.topnav a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 1px;
  background: var(--silver); transition: width .35s var(--ease), left .35s var(--ease);
}
.topnav a:hover::after { width: 100%; left: 0; }
.topnav .cta-link {
  color: var(--silver-bright);
  border: 1px solid var(--border-hair);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all .3s var(--ease);
}
.topnav .cta-link:hover {
  background: rgba(241, 233, 210, 0.06);
  border-color: rgba(241, 233, 210, 0.3);
}
.topnav .cta-link::after { display: none; }

/* main spacing */
main { position: relative; z-index: 3; padding: 0 40px; }

section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 0;
  position: relative;
}

/* stagger-in */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* hero */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px;
  border: 1px solid var(--border-hair);
  border-radius: 999px;
  background: rgba(23, 20, 16, 0.4);
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 10px var(--silver), 0 0 20px rgba(216, 208, 188, 0.4);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.9;
  margin: 36px 0 28px;
  color: var(--silver-bright);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  letter-spacing: -0.025em;
  position: relative;
  display: inline-block;
}
.wordmark .glyph {
  display: inline-block;
  font-style: normal;
  transition: font-variation-settings 1.2s var(--ease-slow), transform .6s var(--ease);
}
.wordmark .glyph.soft { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0; }
.wordmark .glyph.wonk { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; color: var(--silver); }
.wordmark:hover .glyph.wonk { transform: translateY(-2px) rotate(-2deg); }
.wordmark:hover .glyph.soft { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

/* basin ripples behind wordmark */
.basin {
  position: absolute; left: 50%; top: 62%;
  width: clamp(260px, 48vw, 620px); height: clamp(60px, 10vw, 140px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}
.basin .ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(216, 208, 188, 0.22);
  border-radius: 50%;
  animation: ripple 7s ease-in-out infinite;
}
.basin .ring:nth-child(2) { animation-delay: -2.3s; }
.basin .ring:nth-child(3) { animation-delay: -4.6s; }
@keyframes ripple {
  0%   { transform: scale(0.55); opacity: 0; }
  15%  { opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 72, "SOFT" 50, "WONK" 0;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 32px;
  letter-spacing: 0.005em;
}
.tagline em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1;
  color: var(--silver-bright);
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-meta .k { color: var(--text-dim); margin-right: 6px; text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; }
.hero-meta .sep { color: var(--text-faint); opacity: 0.5; }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}

.btn {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 26px;
  border-radius: 999px;
  transition: all .3s var(--ease);
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--silver-bright);
  color: var(--bg-deep);
  border-color: var(--silver-bright);
}
.btn-primary:hover {
  background: transparent;
  color: var(--silver-bright);
  border-color: var(--silver-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(241, 233, 210, 0.15);
}
.btn-ghost {
  color: var(--text-dim);
  border-color: var(--border-hair);
}
.btn-ghost:hover {
  color: var(--silver-bright);
  border-color: var(--silver);
  background: rgba(241, 233, 210, 0.04);
}

/* divider */
.divider {
  max-width: 1px; height: 100px;
  margin: 0 auto;
  border: 0;
  background: linear-gradient(to bottom, transparent, var(--border-hair), transparent);
}

/* section head */
.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 64px;
}
.section-head.centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.section-head.centered .numeral { margin: 0 auto; }

.numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: 56px;
  line-height: 1;
  color: var(--silver);
  opacity: 0.85;
}
.eyebrow-small {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--silver-bright);
  margin: 0;
  max-width: 700px;
}

/* editorial */
.editorial .prose {
  max-width: 680px;
  margin-left: 104px;
  font-family: var(--font-display);
  font-weight: 320;
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
}
.editorial .prose p { margin: 0 0 22px; }
.editorial .prose em {
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 80, "WONK" 1;
  color: var(--silver-bright);
}
.editorial .lead { font-size: 22px; line-height: 1.55; margin-bottom: 28px; }
.dropcap {
  float: left;
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0;
  font-size: 82px;
  line-height: 0.82;
  color: var(--silver-bright);
  margin: 6px 14px 0 0;
  padding-right: 4px;
}

/* concepts grid */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 2px;
  overflow: hidden;
}
.tile {
  background: var(--bg);
  padding: 36px 32px 40px;
  min-height: 220px;
  display: flex; flex-direction: column;
  transition: background .4s var(--ease);
  position: relative;
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(216, 208, 188, 0.04), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.tile:hover { background: var(--bg-elev); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 2; }

.tile header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.tile-num {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 80, "WONK" 1;
  font-size: 22px;
  color: var(--silver);
  font-weight: 300;
}
.tile-kind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tile h3 {
  font-family: var(--font-display);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--silver-bright);
  letter-spacing: -0.01em;
}
.tile p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.tile p code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(236, 228, 208, 0.06);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--silver);
}

/* manifest */
.manifest { text-align: center; }
.quote {
  max-width: 780px;
  margin: 40px auto 60px;
}
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.3;
  color: var(--silver-bright);
  margin: 0;
  letter-spacing: -0.01em;
  position: relative;
}
.quote blockquote em {
  font-style: italic;
  color: var(--text);
  position: relative;
}
.quote-mark {
  font-family: var(--font-display);
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 0;
  color: var(--silver);
  opacity: 0.35;
  font-size: 1em;
  margin-right: 6px;
}
.quote-mark.closing { margin-left: 6px; margin-right: 0; }
.quote figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 28px;
}

.principles {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
}
.principles li {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dim);
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  text-align: left;
  display: flex; align-items: baseline; gap: 14px;
  transition: color .25s var(--ease), background .3s var(--ease);
}
.principles li:hover { color: var(--silver-bright); background: rgba(236, 228, 208, 0.02); }
.principles li span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  font-weight: 500;
}

/* manifest is the closing section — give it a little more room before the footer */
.manifest { padding-bottom: 160px; }

/* footer */
footer {
  position: relative; z-index: 3;
  padding: 48px 40px 56px;
  border-top: 1px solid var(--border-soft);
  background: rgba(10, 9, 7, 0.6);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px;
}
.foot-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: start;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color .25s var(--ease);
}
.foot-brand:hover { color: var(--silver-bright); }

.foot-socials {
  display: inline-flex; gap: 10px; justify-self: center;
}
.foot-socials a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-hair);
  color: var(--text-faint);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.foot-socials a svg { width: 14px; height: 14px; }
.foot-socials a:hover {
  color: var(--silver-bright);
  border-color: var(--silver);
  background: rgba(241, 233, 210, 0.04);
  transform: translateY(-1px);
}

.foot-credit {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.foot-credit a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-hair);
  padding-bottom: 1px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.foot-credit a:hover { color: var(--silver-bright); border-color: var(--silver); }
.foot-credit a svg { opacity: 0.5; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.foot-credit a:hover svg { opacity: 1; transform: translate(1px, -1px); }

.foot-meta {
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* responsive */
@media (max-width: 900px) {
  main { padding: 0 22px; }
  .topbar { padding: 16px 22px; }
  .topnav { gap: 16px; font-size: 11.5px; }
  .topnav a:not(.cta-link) { display: none; }
  section { padding: 80px 0; }
  .hero { padding: 80px 0 40px; min-height: 70vh; }
  .section-head { grid-template-columns: 44px 1fr; gap: 16px; margin-bottom: 40px; }
  .numeral { font-size: 40px; }
  .editorial .prose { margin-left: 60px; }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: span 1; }
  .principles { grid-template-columns: 1fr; }
  .foot-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
  }
  .foot-brand, .foot-credit { justify-self: center; }
}

@media (max-width: 560px) {
  .editorial .prose { margin-left: 0; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .numeral { font-size: 32px; }
  footer { padding: 30px 22px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .basin .ring, .eyebrow .dot { animation: none; }
  .rise { opacity: 1; transform: none; }
}
