:root {
  --paper: #f5f0e4;
  --paper-raised: #fdfaf1;
  --paper-sunken: #ece5d3;
  --ink: #211b12;
  --ink-2: #57503f;
  --ink-3: #8d8471;
  --rule: #d8cfba;
  --rule-strong: #b4a98d;
  --stamp: #c22e1c;
  --stamp-deep: #97200f;
  --seal: #1f3a5f;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Archivo', -apple-system, sans-serif;
  --mono: 'Courier Prime', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--stamp); color: var(--paper-raised); }

a { color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stamp);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  min-width: 0;
}
.kicker::after { content: ""; height: 1px; flex: 0 1 64px; min-width: 16px; background: var(--stamp); opacity: 0.5; }

.mono { font-family: var(--mono); }

/* ---------- nav ---------- */

nav.site {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
nav.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo .seal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--stamp);
  align-self: center;
}
nav.site .links { display: flex; gap: 28px; align-items: center; }
nav.site .links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
}
nav.site .links a:hover { color: var(--ink); border-bottom-color: var(--stamp); }
nav.site .links a.cta {
  color: var(--paper-raised);
  background: var(--ink);
  padding: 9px 18px;
  font-weight: 600;
  border: none;
}
nav.site .links a.cta:hover { background: var(--stamp); }
@media (max-width: 720px) { nav.site .links a:not(.cta) { display: none; } }
@media (max-width: 420px) { nav.site .links a.cta { padding: 8px 12px; font-size: 0.82rem; } }
@media (max-width: 560px) { .hero h1 { font-size: 2.3rem; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-raised);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--stamp); border-color: var(--stamp); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper-raised); }

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background:
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(31,58,95,0.05) 35px 36px);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--stamp); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 40px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-stampcard { display: none; } }

.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- capture form (filing card) ---------- */

.capture-card {
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(33, 27, 18, 0.18);
  padding: 22px;
  max-width: 620px;
}
.capture-card label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 8px;
}
.capture-row { display: flex; gap: 12px; }
.capture-row input[type="url"] {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.capture-row input[type="url"]:focus { border-color: var(--stamp); background: #fff; }
.capture-card .fine {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  margin-top: 12px;
}
@media (max-width: 560px) { .capture-row { flex-direction: column; } }

/* ---------- rubber stamp ---------- */

.stamp {
  display: inline-block;
  font-family: var(--mono);
  text-transform: uppercase;
  color: var(--stamp);
  border: 3px double var(--stamp);
  border-radius: 6px;
  padding: 10px 18px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  transform: rotate(-6deg);
  mix-blend-mode: multiply;
  opacity: 0.96;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.4' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0.55'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23r)'/%3E%3C/svg%3E");
  mask-size: 160px 160px;
}
.stamp .big { font-size: 1.15rem; font-weight: 700; display: block; }
.stamp .small { font-size: 0.68rem; display: block; }

.hero-stampcard { text-align: center; position: relative; }
.hero-stampcard .stamp { animation: thunk 0.5s cubic-bezier(0.3, 1.6, 0.4, 1) 0.55s backwards; }
@keyframes thunk {
  from { transform: rotate(-6deg) scale(2.2); opacity: 0; }
  to { transform: rotate(-6deg) scale(1); opacity: 0.9; }
}
.hero-stampcard .hash {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  margin-top: 22px;
  word-break: break-all;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- sections ---------- */

section.band { padding: 78px 0; border-bottom: 1px solid var(--ink); }
section.band.sunken { background: var(--paper-sunken); }
section.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; max-width: 24ch; }
section.band .sub { color: var(--ink-2); max-width: 60ch; margin-bottom: 40px; }

/* ---------- exhibits carousel ---------- */

.exhibits-wrap { position: relative; }
.exhibits {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}
.exhibit {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(33, 27, 18, 0.15);
  position: relative;
}
.exhibit .tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--rule-strong);
  color: var(--ink-2);
}
.exhibit .tag .no { color: var(--stamp); font-weight: 700; }
.exhibit .meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  padding: 10px 14px 14px;
  border-top: 1px dashed var(--rule-strong);
  line-height: 1.7;
  word-break: break-all;
}
.exhibit .meta .ok { color: var(--seal); }

/* miniature browser mock inside exhibit */
.shot { padding: 14px; }
.mini {
  border: 1px solid var(--rule-strong);
  background: #fff;
  height: 240px;
  overflow: hidden;
  position: relative;
}
.mini-bar {
  height: 22px;
  background: var(--paper-sunken);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
}
.mini-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); }
.mini-bar .addr {
  flex: 1;
  height: 11px;
  margin-left: 6px;
  background: #fff;
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 9px;
  padding: 0 5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
}
.mini .pad { padding: 10px; }
.m-line { height: 7px; background: #e8e4da; margin-bottom: 6px; }
.m-line.dark { background: #3a3630; }
.m-line.red { background: #d9705f; }
.m-line.w40 { width: 40%; } .m-line.w60 { width: 60%; } .m-line.w80 { width: 80%; }
.m-img { background: repeating-linear-gradient(45deg, #ddd8cb 0 6px, #e9e5da 6px 12px); }
.m-row { display: flex; gap: 8px; margin-bottom: 8px; }
.m-price { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #1f3a5f; }
.m-badge { display: inline-block; font-family: var(--mono); font-size: 7px; padding: 2px 5px; background: #e8f0e4; color: #3c6e3c; }

.ex-arrows { position: absolute; top: -66px; right: 4px; display: flex; gap: 10px; }
.ex-arrows button {
  width: 42px; height: 42px;
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  font-size: 1.1rem;
  cursor: pointer;
  font-family: var(--mono);
}
.ex-arrows button:hover { background: var(--ink); color: var(--paper-raised); }
@media (max-width: 720px) { .ex-arrows { display: none; } }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); background: var(--paper-raised); }
.step { padding: 34px 30px 38px; border-right: 1px solid var(--ink); position: relative; }
.step:last-child { border-right: none; }
.step .n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  color: var(--stamp);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--ink); }
  .step:last-child { border-bottom: none; }
}

/* ---------- use cases ---------- */

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case {
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  padding: 26px;
  text-decoration: none;
  display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.case:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--stamp); }
.case .folio {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  display: block;
  margin-bottom: 12px;
}
.case h3 { font-size: 1.22rem; margin-bottom: 8px; }
.case p { color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: stretch; }
.plan {
  background: var(--paper-raised);
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan .name {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.plan .price { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; line-height: 1; }
.plan .price span { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); }
.plan ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.plan li {
  font-size: 0.9rem;
  color: var(--ink-2);
  padding: 7px 0;
  border-bottom: 1px dashed var(--rule);
}
.plan li:last-child { border-bottom: none; }
.plan .btn { text-align: center; }
.plan.filed { border-color: var(--stamp); outline-color: var(--stamp); }
.plan.filed .flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--stamp);
  color: var(--paper-raised);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  white-space: nowrap;
}
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  font-family: var(--mono);
  font-size: 1.4rem;
  color: var(--stamp);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 22px; max-width: 68ch; }

/* ---------- prose (use-case pages) ---------- */

.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 22px; }
.prose .answer {
  font-size: 1.18rem;
  color: var(--ink);
  border-left: 3px solid var(--stamp);
  padding-left: 20px;
  margin-bottom: 36px;
  max-width: 58ch;
}
.prose h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.prose p { color: var(--ink-2); margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.page-head { padding: 64px 0 0; }
.crumb {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 26px;
}
.crumb a { color: var(--ink-3); text-decoration: none; }
.crumb a:hover { color: var(--stamp); }

.siblings { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.siblings a {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  padding: 7px 13px;
  color: var(--ink-2);
  background: var(--paper-raised);
}
.siblings a:hover { border-color: var(--stamp); color: var(--stamp); }

/* ---------- footer ---------- */

footer.site { padding: 54px 0 40px; background: var(--ink); color: var(--paper-sunken); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site .about { font-size: 0.9rem; color: #b9b2a2; max-width: 40ch; }
footer.site h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8d8471;
  margin-bottom: 14px;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--paper-sunken); text-decoration: none; font-size: 0.9rem; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .legal {
  border-top: 1px solid #3d372c;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #8d8471;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 720px) { footer.site .cols { grid-template-columns: 1fr; } }
