@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Public+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #0D1013;
  --panel: #16181B;
  --panel-border: #2A2D32;
  --text: #EDEDED;
  --muted: #9A9A9A;
  --brass: #C9C9C9;
  --teal: #7A7A7A;
  --serif: 'Fraunces', serif;
  --sans: 'Public Sans', sans-serif;
}

* { box-sizing: border-box; }

html {
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
body {
  -ms-overflow-style: none;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Header */
.site-header {
  padding: 32px 0 0;
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mark {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}
.mark span {
  color: var(--brass);
}
.header-link {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.header-link:hover {
  color: var(--text);
  border-color: var(--brass);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-stat {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 40px 32px;
  text-align: center;
}
.hero-stat-number {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 12px;
}
.hero-stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-stat-breakdown {
  margin-top: 0;
  padding-top: 0;
  padding-left: 32px;
  border-top: none;
  border-left: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-stat-breakdown span {
  color: var(--brass);
  font-weight: 600;
}
.hero {
  position: relative;
  overflow: visible;
}
.hero-bg {
  position: absolute;
  top: -110px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.92) 65%,
    #ffffff 85%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  text-align: left;
}
.hero-text {
  max-width: 560px;
}
.hero-mark {
  justify-self: end;
  width: 220px;
  height: 220px;
}
.stats-section {
  padding-top: 0;
  padding-bottom: 48px;
}
.stats-section .hero-stat {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: 22ch;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
}

/* Section headings */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--panel-border);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 16px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0;
}
.section-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Ledger entries (portfolio) */
.ledger {
  display: flex;
  flex-direction: column;
}
.ledger-entry {
  padding: 32px 0;
  border-top: 1px solid var(--panel-border);
}
.ledger-preview {
  width: 100%;
  max-width: 720px;
  display: block;
  margin: 4px auto 16px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
}
.founder-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--panel-border);
  margin-bottom: 24px;
}
.ledger-entry:first-child {
  border-top: none;
}
.ledger-stake {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--brass);
  display: inline;
}
.ledger-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.ledger-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 12px;
}
.ledger-body p {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: none;
}
.ledger-link {
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
}
.ledger-link:hover {
  color: var(--brass);
}

/* Timeline (personal page) */
.timeline {
  display: flex;
  flex-direction: column;
}
.timeline-entry {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--panel-border);
}
.timeline-entry:first-child {
  border-top: none;
}
.timeline-year {
  font-family: var(--serif);
  color: var(--brass);
  font-size: 1.05rem;
  padding-top: 2px;
}
.timeline-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.timeline-body p {
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}

/* Prose blocks */
.prose {
  max-width: 78ch;
}
.prose-wide {
  max-width: none;
}
.prose p {
  color: var(--text);
  margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose .lede {
  font-size: 1.15rem;
  color: var(--text);
}

/* Two-column background/skills */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.col h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}
.col li {
  padding: 7px 0;
  border-top: 1px solid var(--panel-border);
  font-size: 0.95rem;
}
.col li:first-child { border-top: none; }

/* Footer */
.site-footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--panel-border);
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: var(--brass);
}



@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}






















.saas-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.pricing-card {
  margin-top: 4px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 32px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.pricing-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 2px 10px;
  margin-bottom: 16px;
}
.pricing-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 12px;
}
.pricing-note {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}


.area-banner {
  width: 100%;
  max-width: 720px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  margin: 0 auto 24px;
  display: block;
}

@media (max-width: 600px) {
  .cols { grid-template-columns: 1fr; gap: 32px; }

  .hero-grid,
  .saas-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero p {
    max-width: none;
  }
}

/* Wikipedia-style infobox (about page) */
.infobox-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
}
.infobox {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 24px;
  background: var(--panel);
}
.infobox .founder-photo {
  width: 100%;
  height: auto;
  max-width: 220px;
  border-radius: 6px;
  margin: 0 auto 20px;
  display: block;
}
.infobox-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--panel-border);
}
.infobox-fact:first-of-type {
  border-top: none;
}
.infobox-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.infobox-value {
  font-size: 0.95rem;
  color: var(--text);
}

@media (min-width: 900px) {
  .infobox-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .infobox-main {
    flex: 1.6;
  }
  .infobox {
    flex: 1;
    max-width: 320px;
  }
}

/* Venture card grid (Desert Ant style) */
.venture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.venture-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 28px 24px;
  background: var(--panel);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.venture-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}
.venture-card .ledger-tag {
  margin-bottom: 14px;
}
.venture-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.venture-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
}
.venture-card .venture-arrow {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 1px;
}

@media (max-width: 900px) {
  .venture-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .venture-grid {
    grid-template-columns: 1fr;
  }
}

/* NanoBots image banner */
.nb-banner {
  position: relative;
  margin-top: -100px;
  padding-top: 156px;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 56px;
  background:
    linear-gradient(to bottom, rgba(13,16,19,0.05) 0%, rgba(13,16,19,0.55) 55%, var(--ink) 96%),
    url('/nanobots.jpg') center 30% / cover no-repeat;
}
.nb-banner .wrap {
  width: 100%;
}
.nb-banner .wrap {
  position: relative;
  z-index: 1;
}
.nb-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 1;
  margin: 0 0 18px;
  color: var(--text);
}
.nb-desc {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--text);
}

/* NanoBots live demo widget */
.nb-demo { max-width: 640px; margin: 0 auto; }
.nb-demo-apirow { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.nb-demo-apiinput {
  flex: 1;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--sans);
}
.nb-demo-btn {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  font-family: var(--sans);
}
.nb-demo-btn:hover:not(:disabled) { background: rgba(201,201,201,0.1); }
.nb-demo-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.nb-demo-btn-ghost { border-color: var(--panel-border); color: var(--muted); }
.nb-demo-status { font-size: 0.82rem; color: var(--muted); margin-bottom: 20px; }
.nb-demo-box { border: 1px solid var(--panel-border); border-radius: 8px; overflow: hidden; background: var(--panel); }
.nb-demo-input {
  min-height: 120px;
  padding: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
}
.nb-demo-input:empty:before { content: attr(data-placeholder); color: var(--muted); }
.nb-flag { background: rgba(201,122,122,0.28); color: #E8B4B4; border-radius: 3px; padding: 0 2px; }
.nb-demo-sendrow { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--panel-border); }
.nb-demo-output {
  padding: 16px;
  border-top: 2px solid var(--brass);
  background: rgba(255,255,255,0.03);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text);
}

/* Mahfuj 1 Nano banner */
.mn-banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 56px;
  background:
    linear-gradient(to top, rgba(13,16,19,0.92) 0%, rgba(13,16,19,0.4) 50%, rgba(13,16,19,0.1) 100%),
    url('/images/mahfuj-nano.jpg') center 40% / cover no-repeat;
  background-color: #0A0C0E;
}
.mn-banner .wrap {
  width: 100%;
}
.mn-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.mn-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 3px;
  padding: 2px 10px;
  margin-bottom: 16px;
}
.mn-banner-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 6px;
  color: var(--text);
}
.mn-banner-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.mn-desc {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 56ch;
  margin: 0;
}

/* Mahfuj 1 Nano — Fleet Watch game */
.mn-game { margin-top: 32px; }
.mn-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 220;
  display: block;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: #0A0C0E;
  image-rendering: pixelated;
  margin-bottom: 16px;
}
.mn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.mn-stat {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--panel);
}
.mn-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.mn-stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}
.mn-decision-ok { color: #8FBF8F; }
.mn-decision-abort { color: #E8B4B4; }
.mn-controls { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.mn-log {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--panel);
  font-size: 0.85rem;
  color: var(--muted);
  max-height: 160px;
  overflow-y: auto;
  line-height: 1.6;
}
.mn-log-entry { border-top: 1px solid var(--panel-border); padding: 4px 0; }
.mn-log-entry:first-child { border-top: none; }
.mn-log-abort { color: #E8B4B4; }

@media (max-width: 600px) {
  .mn-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Mahfuj 1 Nano — start overlay */
.mn-canvas-wrap { position: relative; }
.mn-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10,12,14,0.82);
  border-radius: 8px;
  text-align: center;
  padding: 20px;
}
.mn-start-note {
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 320px;
  margin: 0;
}

/* Porter's Post — 4-way stat bar with dividers */
.pp-stats {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  gap: 0;
}
.pp-stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  border-left: 1px solid var(--panel-border);
}
.pp-stat:first-child { border-left: none; }
.pp-stat-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 8px;
}
.pp-stat-label {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .pp-stats { flex-wrap: wrap; }
  .pp-stat { flex: 1 1 50%; border-left: none; border-top: 1px solid var(--panel-border); padding: 16px 12px 0; margin-top: 16px; }
  .pp-stat:nth-child(odd) { border-right: 1px solid var(--panel-border); }
}

/* Venture card — purple gradient variant */
.venture-card-purple {
  background: linear-gradient(145deg, #2A1F4D 0%, #4A2F6D 100%);
  border-color: #6A4A9D;
}
.venture-card-purple:hover {
  border-color: #9A7ACD;
}
.venture-card-purple .ledger-tag {
  border-color: rgba(255,255,255,0.4);
  color: #E8DFFF;
}
.venture-card-purple p {
  color: rgba(255,255,255,0.75);
}
.venture-card-purple .venture-arrow {
  border-color: #E8DFFF;
}
