/* ============================================================
   HAMZA IBRAHIM — Portfolio Design System
   Light editorial / institutional. Warm paper + ink, high
   contrast, generous whitespace, hairline rules, one accent.
   Spectral display · IBM Plex Sans · IBM Plex Mono.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces — warm paper stack */
  --bg:        #F4F1EA;
  --bg-2:      #EFEBE2;
  --panel:     #FCFBF7;
  --panel-2:   #F1EDE4;
  --panel-3:   #E8E3D8;
  --line:      rgba(26,23,18,0.10);
  --line-2:    rgba(26,23,18,0.16);
  --line-strong: rgba(26,23,18,0.30);

  /* Ink */
  --ink:       #18150F;
  --ink-2:     #423D34;
  --ink-3:     #6B6457;
  --ink-4:     #938B7C;

  /* Status semantics only — deepened for contrast on paper, never decorative */
  --green:     #2F7D58;   /* verified / live */
  --green-dim: rgba(47,125,88,0.09);
  --green-line:rgba(47,125,88,0.30);
  --blue:      #2C5BA6;    /* active-local / info */
  --blue-dim:  rgba(44,91,166,0.08);
  --blue-line: rgba(44,91,166,0.28);
  --amber:     #8A6312;    /* locked / caution */
  --amber-dim: rgba(138,99,18,0.09);
  --amber-line:rgba(138,99,18,0.30);
  --violet:    #5E4AA6;    /* repository asset */
  --violet-dim:rgba(94,74,166,0.08);
  --slate:     #6B6457;    /* proposed / neutral */

  /* Single signature accent — a restrained warm gold. Used sparingly. */
  --lamp:      #9A6B1E;
  --lamp-soft: #A87B2C;
  --lamp-glow: rgba(154,107,30,0.08);
  --lamp-line: rgba(154,107,30,0.32);

  /* Type — editorial serif display over technical mono */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --radius:    8px;
  --radius-sm: 6px;
  --radius-lg: 14px;

  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(26,23,18,0.04), 0 10px 24px rgba(26,23,18,0.05);
  --shadow-lg: 0 24px 60px rgba(26,23,18,0.10);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.003em;
  background-image:
    radial-gradient(1300px 760px at 88% -14%, rgba(154,107,30,0.035), transparent 66%);
  background-attachment: fixed;
}

::selection { background: rgba(154,107,30,0.16); color: var(--ink); }

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

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.018em; line-height: 1.04; }
h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
.u-serif { font-family: var(--serif); }
.u-serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- Layout primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot { display: none; }

.section { padding: 132px 0; position: relative; }
.section-sm { padding: 88px 0; }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin: 20px 0 0;
}
.section-head .lede {
  color: var(--ink-2);
  font-size: 19px;
  margin-top: 20px;
  max-width: 620px;
  line-height: 1.6;
}

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(14px) saturate(120%);
  background: rgba(244,241,234,0.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 36px;
  height: 66px; display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.02em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
}
.brand .mark::before {
  content: ""; width: 7px; height: 7px; border-radius: 1.5px;
  background: var(--lamp);
}
.brand .who { font-size: 14.5px; }
.brand .who small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; letter-spacing: 0.02em; }

.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a {
  font-size: 13.5px; color: var(--ink-3); padding: 7px 13px; border-radius: 6px;
  transition: color .18s, background .18s; font-weight: 450; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-links a.active { color: var(--ink); }
.nav-spacer { flex: 1; }

.nav-cta {
  font-size: 13.5px; font-weight: 500; padding: 9px 16px; border-radius: 7px;
  border: 1px solid var(--ink); color: var(--bg); white-space: nowrap;
  background: var(--ink); transition: .18s;
}
.nav-cta:hover { background: #000; }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  padding: 13px 22px; border-radius: 8px; cursor: pointer;
  border: 1px solid transparent; transition: .18s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--ink); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 5px; border: 1px solid var(--line-2);
  color: var(--ink-3); background: transparent; white-space: nowrap;
}
.chip::before { display: none; }
.chip.live        { color: var(--green); border-color: var(--green-line); background: var(--green-dim); }
.chip.active      { color: var(--blue);  border-color: var(--blue-line);  background: var(--blue-dim); }
.chip.qa          { color: var(--green); border-color: var(--green-line); background: var(--green-dim); }
.chip.repo        { color: var(--violet);border-color: var(--violet-line, rgba(94,74,166,0.3)); background: var(--violet-dim); }
.chip.proposed    { color: var(--slate); border-color: var(--line-2); background: transparent; border-style: dashed; }
.chip.locked      { color: var(--amber); border-color: var(--amber-line); background: var(--amber-dim); }
.chip.live::before    { box-shadow: none; }
.chip.no-dot::before  { display: none; }

/* ---------- Generic card ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

/* ---------- Proof card ---------- */
.proof {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.proof:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.proof-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 0;
}
.proof-head h4 { font-size: 16.5px; }
.proof-body { padding: 14px 22px 22px; }
.proof-row { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.proof-row:first-child { border-top: 0; }
.proof-row .k {
  flex: none; width: 92px; color: var(--ink-4); font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 2px;
}
.proof-row .v { color: var(--ink-2); }
.proof-row.proves .v   { color: var(--ink); }
.proof-row.notproves .v{ color: var(--ink-2); }
.proof-row .v b { color: var(--ink); font-weight: 600; }

/* ---------- Receipt snippet (mono) — intentionally dark for code contrast ---------- */
.receipt {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  background: #16140F; border: 1px solid #2a261d; border-radius: var(--radius);
  overflow: hidden;
}
.receipt-bar {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: #1e1b14; border-bottom: 1px solid #2a261d;
  font-size: 11px; color: #9a917f; letter-spacing: 0.04em;
}
.receipt-bar .dots { display: none; }
.receipt-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3a352a; display: block; }
.receipt-bar .path { margin-left: auto; color: #756c5b; }
.receipt-body { padding: 14px 16px; color: #cfc7b5; overflow-x: auto; }
.receipt-body .ln { display: block; white-space: pre; }
.receipt-body .key { color: #7fa8e0; }
.receipt-body .str { color: #7fc6a0; }
.receipt-body .num { color: #e0b46a; }
.receipt-body .mut { color: #756c5b; }
.receipt-body .ok  { color: #7fc6a0; }
.receipt-body .warn{ color: #e0b46a; }

/* ---------- Claim boundary ---------- */
.boundary {
  border: 1px solid var(--amber-line); border-radius: var(--radius);
  background: var(--amber-dim);
  padding: 22px 24px;
}
.boundary .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.boundary .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.boundary .col h5 { font-size: 11px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 8px; }
.boundary .col.no h5 { color: var(--ink-4); }
.boundary ul { margin: 0; padding-left: 0; list-style: none; }
.boundary li { font-size: 13.5px; color: var(--ink-2); padding: 4px 0 4px 20px; position: relative; }
.boundary .yes li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.boundary .no  li::before { content: "✕"; position: absolute; left: 0; color: var(--ink-4); font-weight: 700; }
@media (max-width: 640px){ .boundary .grid { grid-template-columns: 1fr; } }

/* ---------- Redaction note ---------- */
.redact {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 9px; padding: 12px 15px;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--panel-2);
}
.redact svg { flex: none; opacity: .7; }
.redact b { color: var(--ink-2); font-weight: 600; }

/* mask token used inside mock surfaces */
.mask { background: var(--panel-3); color: transparent; border-radius: 3px; padding: 0 2px; user-select: none; letter-spacing: -0.04em; }

/* ---------- Stat / metric ---------- */
.metric .num { font-family: var(--serif); font-size: 40px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.metric .num .u { color: var(--lamp); }
.metric .lbl { color: var(--ink-3); font-size: 12px; margin-top: 4px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 64px 0 52px; margin-top: 48px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot h6 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 14px; font-weight: 500; }
.foot a { display: block; color: var(--ink-2); font-size: 14px; padding: 5px 0; transition: color .15s; }
.foot a:hover { color: var(--ink); }
.foot .bio { color: var(--ink-3); font-size: 13.5px; max-width: 320px; line-height: 1.65; margin-top: 14px; }
.foot-base { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-4); font-size: 12.5px; font-family: var(--mono); }
@media (max-width: 760px){ .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ [data-reveal]{ opacity:1; transform:none; } }

/* ---------- Utility ---------- */
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2,1fr); }
.g3 { grid-template-columns: repeat(3,1fr); }
.g4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 920px){ .g3,.g4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .g2,.g3,.g4 { grid-template-columns: 1fr; } }
.flex { display: flex; }
.center { align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.tag-line { display: flex; flex-wrap: wrap; gap: 8px; }

/* Owner 2026-06-04: kill the top-left logo-box tell; de-box chips + proof-pills into plain editorial labels */
.brand .mark { display: none !important; }
.chip { border: none !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
.hero .chips-row { gap: 18px 22px !important; }
.hero .chips-row .pc { border: none !important; background: transparent !important; padding: 0 !important; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
