:root{
  --bg:#fafaf7;
  --bg-alt:#f1efe8;
  --ink:#16140f;
  --ink-soft:#4a4738;
  --muted:#7a7563;
  --rule:#d9d4c2;
  --accent:#b4471a;
  --accent-soft:#e9d8c8;
  --max:1100px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}
.wrap.narrow{max-width:760px}
a{color:var(--ink);text-decoration:none}
a:hover{color:var(--accent)}

/* nav */
.site{position:sticky;top:0;z-index:10;background:rgba(250,250,247,.85);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--rule)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 24px}
.brand{display:flex;align-items:center;gap:10px;color:var(--ink)}
.logo{display:inline-flex;color:var(--accent)}
.brand-text{font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:20px;letter-spacing:.01em}
.nav-links{display:flex;align-items:center;gap:22px;font-size:14px;color:var(--ink-soft)}
.nav-links a:hover{color:var(--ink)}
.cta-mini{border:1px solid var(--rule);padding:6px 12px;border-radius:999px}
@media (max-width:720px){.nav-links a:not(.cta-mini){display:none}}

/* hero */
.hero{padding:72px 0 56px;position:relative;overflow:hidden}
.hero-wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:48px;align-items:center}
.hero-copy{min-width:0}
.hero-anim{display:flex;align-items:center;justify-content:center}
.hero-anim svg{width:100%;max-width:380px;height:auto;color:var(--ink-soft)}
@media (max-width:780px){.hero-wrap{grid-template-columns:1fr;gap:24px}.hero-anim{order:-1}.hero-anim svg{max-width:280px}}

/* draw animation: each path/element fades and strokes in, in sequence, then loops */
.hero-anim svg path,
.hero-anim svg circle{
  stroke-dasharray:1000;
  stroke-dashoffset:1000;
  animation:dash 11s ease-in-out infinite;
}
.hero-anim svg text{opacity:0;animation:fadeText 11s ease-in-out infinite;}

.hero-anim .d1{animation-delay:0s}
.hero-anim .d2{animation-delay:1.4s;stroke-dasharray:80;stroke-dashoffset:80}
.hero-anim .d3{animation-delay:1.8s;stroke-dasharray:80;stroke-dashoffset:80}
.hero-anim .d4{animation-delay:2.2s;stroke-dasharray:80;stroke-dashoffset:80}
.hero-anim .d5{animation-delay:3s;stroke-dasharray:200;stroke-dashoffset:200}
.hero-anim .d6{animation-delay:3.4s;stroke-dasharray:200;stroke-dashoffset:200}
.hero-anim .d7{animation-delay:4s}
.hero-anim .d8{animation-delay:4.4s}
.hero-anim .d9{animation-delay:5s}
.hero-anim .d10{animation-delay:6s;font-weight:600}

@keyframes dash{
  0%{stroke-dashoffset:1000;opacity:0}
  3%{opacity:1}
  18%{stroke-dashoffset:0;opacity:1}
  82%{stroke-dashoffset:0;opacity:1}
  92%{opacity:0}
  100%{stroke-dashoffset:0;opacity:0}
}
@keyframes fadeText{
  0%,12%{opacity:0}
  18%{opacity:0.7}
  82%{opacity:0.7}
  92%,100%{opacity:0}
}
.hero-anim .d10{animation-name:fadeReady}
@keyframes fadeReady{
  0%,55%{opacity:0}
  60%{opacity:0}
  62%{opacity:1}
  82%{opacity:1}
  92%,100%{opacity:0}
}

@media (prefers-reduced-motion:reduce){
  .hero-anim svg path,
  .hero-anim svg circle,
  .hero-anim svg text{animation:none;stroke-dashoffset:0;opacity:0.7}
}
.badge{display:inline-block;font-size:13px;color:var(--ink-soft);background:var(--accent-soft);padding:5px 12px;border-radius:999px;margin:0 0 28px}
.display{
  font-family:'Newsreader',Georgia,serif;
  font-weight:500;
  font-size:clamp(56px,11vw,128px);
  line-height:.95;
  letter-spacing:-.02em;
  margin:0 0 28px;
}
.lede{
  max-width:760px;
  font-size:clamp(18px,2.1vw,22px);
  line-height:1.5;
  color:var(--ink-soft);
  margin:0 0 18px;
}
.lede-uses{
  list-style:none;
  padding:0;
  margin:0 0 18px;
  max-width:760px;
}
.lede-uses li{
  padding:12px 16px;
  margin-bottom:8px;
  border-left:3px solid var(--accent);
  background:var(--bg-alt);
  border-radius:0 6px 6px 0;
  font-size:clamp(15px,1.6vw,17px);
  line-height:1.55;
  color:var(--ink-soft);
}
.lede-uses li strong{color:var(--ink); font-weight:600;}
.lede-trust{
  max-width:760px;
  font-size:clamp(14px,1.5vw,16px);
  line-height:1.5;
  color:var(--muted);
  border-top:1px solid var(--rule);
  padding-top:12px;
  margin:0 0 28px;
  font-style:italic;
}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;padding:12px 22px;border-radius:8px;font-size:15px;font-weight:500;border:1px solid transparent;transition:transform .08s ease}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--ink);color:var(--bg)}
.btn.primary:hover{background:#000;color:var(--bg)}
.btn.ghost{border-color:var(--rule);color:var(--ink)}
.btn.ghost:hover{border-color:var(--ink)}
.hero-rule{height:1px;background:var(--rule);margin-top:64px}

/* blocks */
.block{padding:80px 0}
.block.alt{background:var(--bg-alt);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);font-weight:600;margin:0 0 16px}
.eyebrow.small{font-size:11px;margin-top:48px}
.h2{font-family:'Newsreader',Georgia,serif;font-weight:500;font-size:clamp(30px,4.4vw,46px);line-height:1.1;letter-spacing:-.01em;margin:0 0 16px}
.h2.serif{font-style:italic}
.sub{font-size:18px;color:var(--ink-soft);max-width:720px;margin:0 0 40px}

/* grids */
.grid{display:grid;gap:18px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
@media (max-width:880px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:1fr}}
@media (max-width:520px){.grid-4{grid-template-columns:1fr}}

.card{background:var(--bg);border:1px solid var(--rule);border-radius:14px;padding:22px;transition:border-color .12s ease,transform .12s ease}
.card:hover{border-color:var(--ink);transform:translateY(-2px)}
.block.alt .card{background:var(--bg)}
.ico{color:var(--accent);width:40px;height:40px;margin-bottom:14px}
.ico svg{width:40px;height:40px}
.card h3{font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:18px;margin:0 0 8px;letter-spacing:-.005em}
.card p{margin:0;color:var(--ink-soft);font-size:15px}
.link{color:var(--accent);font-size:14px;display:inline-block;margin-top:12px}
.link:hover{text-decoration:underline}

/* quote */
.quote{margin:56px 0 0;border-left:3px solid var(--accent);padding:8px 0 8px 24px}
.quote blockquote{margin:0;font-family:'Newsreader',Georgia,serif;font-style:italic;font-size:clamp(20px,2.4vw,26px);line-height:1.4;color:var(--ink);max-width:820px}

/* rules list */
.rules{list-style:none;padding:0;margin:0 0 16px;max-width:820px}
.rules li{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--rule)}
.rules li:last-child{border-bottom:none}
.rules p{margin:0;font-size:17px;color:var(--ink)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--accent);margin-top:8px;flex-shrink:0}

.emit-card{background:var(--bg);border:1px solid var(--rule);border-radius:14px;padding:22px}
.emit-card h4{font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:17px;margin:0 0 8px}
.emit-card p{margin:0;color:var(--ink-soft);font-size:15px}

/* timeline */
.timeline{list-style:none;padding:0;margin:0;counter-reset:step}
.timeline li{display:grid;grid-template-columns:120px 1fr;gap:24px;padding:24px 0;border-top:1px solid var(--rule)}
.timeline li:last-child{border-bottom:1px solid var(--rule)}
.when{font-family:'Newsreader',Georgia,serif;font-style:italic;font-size:18px;color:var(--accent);padding-top:2px}
.timeline h3{font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:20px;margin:0 0 6px}
.timeline p{margin:0;color:var(--ink-soft);font-size:15.5px}
@media (max-width:600px){.timeline li{grid-template-columns:1fr;gap:6px}}

/* author */
.author{padding:96px 0}
.author .h2{font-size:clamp(34px,5vw,52px);margin-bottom:14px}

/* footer */
.site-footer{border-top:1px solid var(--rule);padding:32px 0;background:var(--bg-alt)}
.foot{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;font-size:14px}
.foot .brand-text.small{font-size:16px;margin:0 0 4px}
.muted{color:var(--muted);margin:0;font-size:13px}
.foot-links{display:flex;flex-direction:column;gap:6px;text-align:right}
.foot-links a{color:var(--ink-soft)}
.foot-links a:hover{color:var(--accent)}
@media (max-width:520px){.foot-links{text-align:left}}

/* hover-tooltip on the title H1 */
.display-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  border-bottom: none;
  display: inline-block;
}
.display-link:hover { color: var(--accent); }
.display-tooltip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  z-index: 30;
}
.display-link:hover .display-tooltip,
.display-link:focus .display-tooltip {
  opacity: 1; transform: translateY(0);
}

/* floating "read the manifesto" badge */
.vision-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--accent, #b4471a);
  color: #fff;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(180, 71, 26, 0.35), 0 2px 8px rgba(0,0,0,0.10);
  z-index: 100;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vision-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(180, 71, 26, 0.45), 0 2px 8px rgba(0,0,0,0.12);
  color: #fff;
}
.fab-arrow { transition: transform .2s ease; }
.vision-fab:hover .fab-arrow { transform: translateX(3px); }
.fab-pulse {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: fab-pulse 2s ease-in-out infinite;
}
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  50%      { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}
@media (max-width: 600px) {
  .vision-fab { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; }
  .fab-label { display: none; }
  .vision-fab { padding: 10px 14px; }
  .fab-label-mobile { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-pulse { animation: none; }
}

/* "(in development)" qualifier on §moat — keeps the moat section honest */
.tag-planned {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent, #b4471a);
  border: 1px solid color-mix(in srgb, var(--accent, #b4471a) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #b4471a) 8%, transparent);
  vertical-align: 2px;
  text-transform: none;
  letter-spacing: 0;
}

/* Visible focus ring for keyboard users on all interactive elements */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.cta-mini:focus-visible {
  outline: 2px solid var(--accent, #b4471a);
  outline-offset: 3px;
  border-radius: 3px;
}
