/* ============================================================
   CloakDots — Design Tokens
   ============================================================ */
:root{
  --bg-paper:        #F2EBDE;
  --bg-paper-soft:   #F6F0E4;
  --bg-paper-warm:   #ECE3D2;
  --bg-card:         #FBF7EE;
  --bg-card-alt:     #FFFCF4;
  --bg-olive:        #6E6655;
  --bg-ink:          #0B0B0C;
  --bg-ink-2:        #141312;

  --ink:             #15140F;
  --ink-soft:        #2A2620;
  --ink-mute:        #57514A;
  --ink-faint:       #8B847A;
  --ink-line:        rgba(20,18,14,0.12);
  --ink-line-2:      rgba(20,18,14,0.06);

  --copper:          #B07C44;
  --copper-soft:     #C99566;
  --gold:            #C9A063;

  --paper-on-dark:   #EFE6D3;

  --serif: "EB Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --shadow-card: 0 1px 0 rgba(20,18,14,0.04), 0 24px 60px -30px rgba(20,18,14,0.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ============================================================
   Reset + Base
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
body{
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg-paper);
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img,svg{ display:block; max-width:100%; }
button{ font: inherit; color: inherit; cursor:pointer; border:0; background:none; }
a{ color: inherit; text-decoration:none; }
input{ font: inherit; color: inherit; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Paper grain */
body::before{
  content:"";
  position: fixed; inset:0;
  pointer-events:none;
  z-index: 1;
  background-image:
    radial-gradient(rgba(60,40,20,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .35;
}
main, header, footer{ position: relative; z-index: 2; }

/* ============================================================
   Header (shared)
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,235,222,0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--ink-line-2);
}

/* Home: 3-column grid (brand | nav | cta) */
.page-home .site-header .row{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  height: 64px;
}

/* Manifesto: flex, constrained width */
.page-manifesto .site-header .row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.brand{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  display:flex;
  align-items:center;
  gap: 8px;
}
.brand .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink);
  display: inline-block;
  position: relative;
  top: 1px;
}

/* Nav (home page) */
.nav{
  display:flex;
  gap: 38px;
  justify-content:center;
}
.nav a{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 2px;
  position: relative;
  transition: color .25s var(--ease);
}
.nav a:hover{ color: var(--ink); }
.nav a.active{
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.cta{ justify-self: end; }

/* Back link (manifesto page) */
.back-link{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .25s var(--ease);
}
.back-link:hover{ color: var(--ink); }
.back-link svg{ flex-shrink: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--bg-ink);
  color: var(--paper-on-dark);
}
.btn-primary:hover{ background: #000; transform: translateY(-1px); }
.btn-outline{
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--paper-on-dark); }

/* ============================================================
   Eyebrow
   ============================================================ */
.eyebrow{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before, .eyebrow::after{
  content:"";
  display:inline-block;
  width: 28px; height: 1px;
  background: var(--copper);
  opacity: .6;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes rise{ to{ opacity:1; transform:none; } }

/* ============================================================
   Hero (home page)
   ============================================================ */
.hero{
  position: relative;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 40%, #F0E7D2 0%, #ECE2CC 55%, #E5D9BE 100%);
}
.hero-stage{
  position: relative;
  width: 100%;
  height: clamp(580px, 78vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.face-art{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  overflow: hidden;
}
.hero-portrait{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.04);
}
.face-mesh{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 1;
  pointer-events:none;
}
.face-mesh svg{
  width: min(720px, 84%);
  height: auto;
  opacity: 0.25;
}
.hero-vignette{
  position:absolute; inset:0;
  z-index: 2;
  pointer-events:none;
  background:
    linear-gradient(180deg,
      rgba(242,235,222,0.82) 0%,
      rgba(242,235,222,0.66) 22%,
      rgba(242,235,222,0.62) 50%,
      rgba(242,235,222,0.70) 78%,
      rgba(242,235,222,0.92) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 920px;
  margin: 0 auto;
}
.hero h1{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}
.hero h1 em{
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
.hero p.lead{
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 36px;
}
.hero-actions{
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero .eyebrow, .hero h1, .hero p.lead, .hero-actions{
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease) forwards;
}
.hero h1{ animation-delay: .08s; }
.hero p.lead{ animation-delay: .18s; }
.hero-actions{ animation-delay: .28s; }

/* ============================================================
   Sections (home page)
   ============================================================ */
.section{ padding: 96px 0; }
.section-tight{ padding: 80px 0; }

/* ============================================================
   Privatization (home page)
   ============================================================ */
.privatization{
  display:grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.privatization h2{
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.privatization .body p{
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}
.privatization .body p:last-child{ margin-bottom: 0; }

/* ============================================================
   Feature grid (home page)
   ============================================================ */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.fcard.cloaking   { grid-column: span 7; }
.fcard.distortion { grid-column: span 5; }
.fcard.sovereignty{ grid-column: span 5; }
.fcard.quote      { grid-column: span 7; }
.fcard{
  background: var(--bg-card);
  border-radius: 4px;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--ink-line-2);
  overflow: hidden;
}
.fcard .icon{
  width: 28px; height: 28px;
  display:flex; align-items:center; justify-content:center;
  color: var(--copper);
  margin-bottom: 18px;
}
.fcard h3{
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
.fcard p{
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mute);
  margin: 0;
  max-width: 42ch;
}
.gold-stripes{
  margin-top: 28px;
  height: 170px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(
      115deg,
      #3a2e1c 0px,
      #6b5230 6px,
      #c4923b 14px,
      #e7c279 22px,
      #f6e6b7 28px,
      #e7c279 34px,
      #c4923b 42px,
      #8a6a36 50px,
      #4d3a20 58px,
      #2a2014 66px
    );
  box-shadow: inset 0 0 60px rgba(0,0,0,0.25);
  position: relative;
}
.gold-stripes::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.25));
  mix-blend-mode: overlay;
}
.fcard.distortion{
  background: var(--bg-olive);
  color: #EBE3D0;
}
.fcard.distortion h3, .fcard.distortion p{ color: #EBE3D0; }
.fcard.distortion p{ color: #D8CFB9; }
.fcard.distortion .icon{ color: var(--copper-soft); }
.fcard.distortion .bullets{
  list-style: none;
  padding: 0; margin: 18px 0 0;
  display:flex; flex-direction:column; gap: 8px;
}
.fcard.distortion .bullets li{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #EFE7D2;
  display:flex; align-items:center; gap: 12px;
}
.fcard.distortion .bullets li::before{
  content:"";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper-soft);
  display:inline-block;
}
.fcard.sovereignty{ padding-top: 28px; padding-bottom: 28px; }
.fcard.quote{
  background:
    linear-gradient(90deg, var(--bg-card) 0%, var(--bg-card) 55%, rgba(251,247,238,0.7) 100%);
  display:grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 36px 38px;
  overflow:hidden;
}
.fcard.quote blockquote{
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fcard.quote .cite{
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
}
.fcard.quote .profile{
  position: relative;
  width: 100%;
  height: 180px;
  display:flex; align-items:center; justify-content:flex-end;
}

/* ============================================================
   The Human Signature (home page)
   ============================================================ */
.signature{
  text-align: center;
  padding: 120px 0 100px;
  background: var(--bg-paper-soft);
  border-top: 1px solid var(--ink-line-2);
  border-bottom: 1px solid var(--ink-line-2);
}
.signature .rule{
  width: 36px; height: 1px;
  background: var(--copper);
  margin: 0 auto 28px;
}
.signature h2{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 36px;
}
.signature .body{
  max-width: 660px;
  margin: 0 auto;
}
.signature .body p{
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.signature .body p:last-of-type{ margin-bottom: 36px; }
.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap .25s var(--ease);
}
.link-arrow:hover{ gap: 14px; }

/* ============================================================
   Deployment vectors (home page)
   ============================================================ */
.deployment{
  padding-top: 110px;
  padding-bottom: 110px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.deployment .label{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.vector-list{ list-style:none; margin: 0; padding: 0; }
.vector-list li{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--ink-line);
}
.vector-list li:last-child{ border-bottom: 1px solid var(--ink-line); }
.vector-list .num{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--copper);
  font-weight: 500;
  letter-spacing: .04em;
  padding-top: 2px;
}
.vector-list .vtitle{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 6px;
}
.vector-list .vdesc{
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.6;
  margin: 0;
}
.blob-stage{
  background: linear-gradient(180deg, #EFE7D3 0%, #E3D8BE 100%);
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  display:flex; align-items:center; justify-content:center;
  position: relative;
  overflow:hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--ink-line-2);
}
.blob-stage svg{ width: 78%; height: auto; }

/* ============================================================
   Registry form (home page)
   ============================================================ */
.registry{
  background: var(--bg-paper-warm);
  padding: 84px 0 96px;
  border-top: 1px solid var(--ink-line-2);
  border-bottom: 1px solid var(--ink-line-2);
}
.registry .inner{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.registry h2{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.registry .sub{
  color: var(--ink-mute);
  margin: 0 0 36px;
  font-size: 15px;
}
.field{ text-align: left; margin-bottom: 18px; }
.field label{
  display:block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.field input{
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: #FAF4E5;
  border: 1px solid var(--ink-line);
  border-radius: 2px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  font-size: 14px;
}
.field input:focus{
  border-color: var(--ink);
  background: #FFFAEC;
}
.registry button[type=submit]{
  margin-top: 18px;
  height: 50px;
  padding: 0 38px;
}
.registry .fine{
  margin-top: 22px;
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   Manifesto page layout
   ============================================================ */
.manifesto-wrap{
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.manifesto-header{
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 72px;
}
.manifesto-header h1{
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}
.manifesto-rule{
  width: 100%;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
  margin: 0;
}
.manifesto-body{
  max-width: 660px;
  padding-bottom: 96px;
}
.manifesto-body p{
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.manifesto-body p.opener{
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 48px;
}
.manifesto-body p.closer{
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--ink-mute);
  font-style: normal;
}

/* Manifesto entrance animations */
.manifesto-header,
.manifesto-body p{
  opacity: 0;
  transform: translateY(12px);
  animation: rise .85s var(--ease) forwards;
}
.manifesto-header{ animation-delay: .05s; }
.manifesto-body p:nth-child(1){ animation-delay: .12s; }
.manifesto-body p:nth-child(2){ animation-delay: .18s; }
.manifesto-body p:nth-child(3){ animation-delay: .24s; }
.manifesto-body p:nth-child(4){ animation-delay: .30s; }
.manifesto-body p:nth-child(5){ animation-delay: .36s; }
.manifesto-body p:nth-child(6){ animation-delay: .42s; }
.manifesto-body p:nth-child(7){ animation-delay: .48s; }
.manifesto-body p:nth-child(8){ animation-delay: .54s; }
.manifesto-body p:nth-child(9){ animation-delay: .60s; }
.manifesto-body p:nth-child(10){ animation-delay: .66s; }
.manifesto-body p:nth-child(11){ animation-delay: .72s; }
.manifesto-body p:nth-child(12){ animation-delay: .78s; }

/* ============================================================
   Footer (shared)
   ============================================================ */
.site-footer{
  background: #0A0A0B;
  color: var(--paper-on-dark);
  padding: 56px 0 32px;
  position: relative;
}
.footer-top{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(239,230,211,0.12);
}
.footer-top h4{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 8px;
  color: #F2E9D2;
}
.footer-top p{
  color: #B8AE96;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 38ch;
}
.newsletter{
  display:flex; gap: 10px;
}
.newsletter input{
  flex: 1;
  height: 50px;
  background: transparent;
  border: 1px solid rgba(239,230,211,0.18);
  color: var(--paper-on-dark);
  padding: 0 16px;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.newsletter input::placeholder{ color: #8C826B; }
.newsletter input:focus{ outline:none; border-color: rgba(239,230,211,0.45); }
.newsletter .btn{
  background: #F4ECDA;
  color: #0A0A0B;
  padding: 0 26px;
  height: 50px;
  line-height: 1.15;
  text-align: center;
}
.newsletter .btn:hover{ background: #fff; }
.footer-bottom{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #8C826B;
}
.footer-bottom .brand{ color: #F2E9D2; }
.footer-bottom .brand .dot{ background: #F2E9D2; }
.footer-bottom nav{ display:flex; gap: 28px; }
.footer-bottom nav a:hover{ color: #F2E9D2; }

/* ============================================================
   Reveal on scroll (home page)
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in{ opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .container{ padding: 0 22px; }
  .nav{ display: none; }
  .page-home .site-header .row{ grid-template-columns: 1fr auto; }
  .privatization{ grid-template-columns: 1fr; gap: 28px; }
  .feature-grid{ grid-template-columns: 1fr; }
  .fcard.cloaking, .fcard.distortion, .fcard.sovereignty, .fcard.quote{ grid-column: 1 / -1; }
  .fcard.quote{ grid-template-columns: 1fr; }
  .fcard.quote .profile{ height: 130px; justify-content:center; }
  .deployment{ grid-template-columns: 1fr; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
  .footer-top{ grid-template-columns: 1fr; }
  .section{ padding: 72px 0; }
  .hero-stage{ height: 70vh; min-height: 520px; }
}
@media (max-width: 600px){
  .manifesto-wrap{ padding: 0 20px; }
  .page-manifesto .site-header .row{ padding: 0 20px; }
  .manifesto-header{ padding: 56px 0 48px; margin-bottom: 48px; }
}
@media (max-width: 560px){
  .hero h1{ font-size: 44px; }
  .privatization h2{ font-size: 28px; }
  .newsletter{ flex-direction: column; }
  .newsletter .btn{ width: 100%; }
  .footer-bottom{ flex-direction: column; gap: 16px; text-align:center; }
}
