/* ============================================================
   PROJECT DEXTROUS — SITE STYLESHEET
   Built from the Dextrous Build Spec v1.0 + Brand Field Manual REV 2026.01
   Doctrine: kraft is the hero · rust <= 12% · radius:0 forever ·
   hairlines not shadows · snap to 8px/26px grid.
   ============================================================ */

/* ---------- 01 · DESIGN TOKENS ---------- */
:root {
  /* color — soft "globe-loader" register: off-white field, hairlines, muted terracotta */
  --pd-ink: #262019;        /* warm near-black, primary text + headlines */
  --pd-kraft: #EFE9DC;      /* soft warm off-white — the airy page field */
  --pd-sand: #E7DEC9;       /* warm pale panel / kraft cards */
  --pd-paper: #FBF8F1;      /* light card surface */
  --pd-bone: #FEFCF7;       /* lightest surface / button text */
  --pd-rust: #C26A45;       /* ACCENT ONLY — muted terracotta, stamps, 1 CTA */
  --pd-rust-deep: #A85636;  /* hover / pressed */
  --pd-rust-light: #D9905F; /* accent on dark backgrounds */
  --pd-ink-60: #6E5F49;     /* muted brown labels / captions */
  --pd-rule: #D8CEBA;       /* soft dashed dividers */
  --pd-verified: #3E726A;   /* success / "verified" state */
  --pd-ink-tint: #322C24;   /* lifted panel inside dark bands */
  --pd-espresso: #2A241E;   /* warm dark band background */

  /* type */
  --pd-display: "Anton", sans-serif;
  --pd-text: "Archivo", sans-serif;
  --pd-quote: "Newsreader", serif;
  --pd-mono: "Space Mono", monospace;

  /* structure */
  --pd-unit: 8px;
  --pd-field: 26px;
  --pd-line: 1px solid rgba(38,32,25,0.16);
  --pd-line-strong: 1.5px solid rgba(38,32,25,0.45);
  --pd-radius: 0;
  --pd-maxw: 1180px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--pd-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--pd-ink);
  background-color: var(--pd-kraft);
  /* default field surface: 26px graph grid @ ink 5% */
  background-image:
    linear-gradient(rgba(38,32,25,0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,32,25,0.038) 1px, transparent 1px);
  background-size: var(--pd-field) var(--pd-field);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--pd-display); font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: -0.5px; }
h1 { font-size: clamp(3rem, 8vw, 8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -0.3px; }
h3 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
p { max-width: 66ch; }

.eyebrow {
  font-family: var(--pd-text);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--pd-rust);
  display: inline-block;
}
.label, .meta {
  font-family: var(--pd-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pd-ink-60);
}
.label--rust { color: var(--pd-rust); }
.quote {
  font-family: var(--pd-quote);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  line-height: 1.25;
  letter-spacing: -0.2px;
  max-width: 24ch;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.55; color: var(--pd-ink); }
strong { font-weight: 800; }
.rust { color: var(--pd-rust); }

/* ---------- LAYOUT ---------- */
.wrap { width: 100%; max-width: var(--pd-maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.divider { height: 0; border-top: var(--pd-line); }
.divider--dash { border-top: 1.5px dashed var(--pd-rule); }
.stack > * + * { margin-top: 20px; }

/* registration corners — crop marks on a block */
.regblock { position: relative; }
.regblock::before, .regblock::after,
.regmark { pointer-events: none; }
.reg-corners { position: absolute; inset: 0; pointer-events: none; }
.reg-corners span {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--pd-ink); border-style: solid; border-width: 0;
}
.reg-corners .tl { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.reg-corners .tr { top: -1px; right: -1px; border-top-width: 1.5px; border-right-width: 1.5px; }
.reg-corners .bl { bottom: -1px; left: -1px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.reg-corners .br { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--pd-text);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 15px 26px;
  border: var(--pd-line);
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pd-ink); color: var(--pd-bone); }
.btn-primary:hover { background: #14110D; }
.btn-secondary { background: transparent; color: var(--pd-ink); }
.btn-secondary:hover { background: var(--pd-ink); color: var(--pd-kraft); }
.btn-accent { background: var(--pd-rust-deep); color: var(--pd-bone); border-color: var(--pd-rust-deep); }
.btn-accent:hover { background: #8F4730; border-color: #8F4730; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* on dark sections */
.on-ink .btn-secondary { color: var(--pd-bone); border-color: var(--pd-bone); }
.on-ink .btn-secondary:hover { background: var(--pd-bone); color: var(--pd-ink); }

/* ---------- CHIPS / FILE TAGS / STATUS ---------- */
.chip {
  font-family: var(--pd-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border: 1px solid rgba(38,32,25,0.28);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pd-paper);
  color: var(--pd-ink);
  text-transform: uppercase;
}
.chip--rev { background: transparent; border-color: var(--pd-rust); color: var(--pd-rust); }
.chip--status { background: var(--pd-rust-deep); border-color: var(--pd-rust-deep); color: var(--pd-bone); }
.chip--verified { background: var(--pd-verified); border-color: var(--pd-verified); color: var(--pd-bone); }
.chip--ghost { background: transparent; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- STAMP ---------- */
.stamp {
  font-family: var(--pd-mono);
  text-transform: uppercase;
  color: var(--pd-rust);
  border: 2.5px solid var(--pd-rust);
  padding: 10px 16px;
  display: inline-block;
  transform: rotate(-7deg);
  letter-spacing: 1px;
  line-height: 1.35;
  font-size: 12px;
  text-align: center;
  background: transparent;
}
.stamp strong { font-weight: 700; font-size: 13px; letter-spacing: 1.5px; }
.stamp small { display: block; font-size: 10px; opacity: 0.85; letter-spacing: 1.5px; }

/* ---------- CARDS ---------- */
.card {
  border: var(--pd-line);
  border-radius: 0;
  background: var(--pd-paper);
  padding: 28px;
  position: relative;
}
.card--kraft { background: var(--pd-sand); }
.card--bone { background: var(--pd-bone); }
.card--ink { background: var(--pd-ink-tint); color: var(--pd-bone); border-color: rgba(254,252,247,0.18); }
.card--ink .label { color: var(--pd-rust-light); }
.card--grid {
  background-image:
    linear-gradient(rgba(38,32,25,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,32,25,0.045) 1px, transparent 1px);
  background-size: var(--pd-field) var(--pd-field);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card .num {
  font-family: var(--pd-mono); font-size: 12px; color: var(--pd-rust); letter-spacing: 1px;
}
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* dot-field surface for quieter panels */
.dotfield {
  background-image: radial-gradient(rgba(28,25,22,0.18) 1px, transparent 1.4px);
  background-size: 18px 18px;
}

/* hatch / redline accent (45deg rust) */
.hatch {
  background-image: repeating-linear-gradient(45deg,
    rgba(181,80,47,0.18) 0, rgba(181,80,47,0.18) 2px,
    transparent 2px, transparent 9px);
}

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239,233,220,0.9);
  backdrop-filter: blur(3px);
  border-bottom: var(--pd-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--pd-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--pd-ink); padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--pd-rust); transition: width .18s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--pd-rust); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: var(--pd-line); width: 42px; height: 38px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--pd-ink); display: block; transition: .2s; }

/* ---------- HERO ---------- */
.hero { padding: clamp(16px, 2.5vw, 34px) 0 clamp(40px, 6vw, 80px); position: relative; min-height: calc(100vh - 70px); display: flex; flex-direction: column; }
.hero > .wrap { flex: 1; display: flex; flex-direction: column; }
.hero h1 { margin: 14px 0 26px; }
.hero .quote { margin-top: 8px; }

/* topline file strip */
.fileline {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-family: var(--pd-mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--pd-ink-60);
  padding: 10px 0; border-top: var(--pd-line-strong); border-bottom: var(--pd-line-strong);
}
.fileline .sep { color: var(--pd-rule); }

/* ---------- DARK SECTION ---------- */
.on-ink {
  background-color: var(--pd-espresso);
  color: var(--pd-bone);
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: var(--pd-field) var(--pd-field);
}
.on-ink h1, .on-ink h2, .on-ink h3 { color: var(--pd-bone); }
.on-ink .label, .on-ink .meta { color: var(--pd-rust-light); }
.on-ink .divider { border-top-color: rgba(250,246,236,0.25); }
.on-ink .quote { color: var(--pd-bone); }

/* ---------- METRICS / DATA ROWS ---------- */
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--pd-line); }
.statrow .stat { padding: 26px 20px; border-right: var(--pd-line); }
.statrow .stat:last-child { border-right: 0; }
.stat .n { font-family: var(--pd-display); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--pd-rust); }
.stat .k { font-family: var(--pd-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pd-ink-60); margin-top: 8px; }
.on-ink .statrow { border-color: rgba(250,246,236,0.3); }
.on-ink .statrow .stat { border-color: rgba(250,246,236,0.3); }
.on-ink .stat .k { color: rgba(250,246,236,0.6); }

/* ---------- PILLAR / FEATURE LIST ---------- */
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .idx { font-family: var(--pd-mono); font-size: 12px; color: var(--pd-rust); letter-spacing: 1px; padding-top: 4px; min-width: 34px; }
.feat h3 { font-size: 1.25rem; margin-bottom: 6px; }
.feat p { color: var(--pd-ink-60); font-size: 0.98rem; }

/* ---------- SECTION HEADER ---------- */
.shead { margin-bottom: 40px; max-width: 760px; }
.shead h2 { margin: 12px 0 14px; }
.shead .no { color: var(--pd-rust); }

/* ---------- PRODUCT / KIT ITEM ---------- */
.kititem { border: var(--pd-line); background: var(--pd-bone); padding: 0; display: flex; flex-direction: column; }
.kititem .vis {
  height: 150px; border-bottom: var(--pd-line);
  display: flex; align-items: center; justify-content: center;
  background: var(--pd-kraft);
  background-image: radial-gradient(rgba(28,25,22,0.16) 1px, transparent 1.4px);
  background-size: 18px 18px;
  position: relative;
}
.kititem .vis .glyph { font-family: var(--pd-display); font-size: 3rem; color: var(--pd-ink); opacity: 0.85; }
.kititem .body { padding: 20px 22px; }
.kititem h3 { font-size: 1.15rem; margin-bottom: 6px; }
.kititem p { font-size: 0.92rem; color: var(--pd-ink-60); }

/* ---------- CALLOUT / PITCH ---------- */
.callout {
  border: var(--pd-line); border-left: 5px solid var(--pd-rust);
  background: var(--pd-paper); padding: 28px 32px;
}

/* ---------- FOOTER ---------- */
.site-footer { background: var(--pd-espresso); color: var(--pd-bone); padding: 60px 0 30px; }
.site-footer .label { color: var(--pd-rust-light); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer img { height: 48px; margin-bottom: 18px; }
.foot-links a { display: block; font-family: var(--pd-mono); font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; color: rgba(250,246,236,0.8); padding: 5px 0; }
.foot-links a:hover { color: var(--pd-rust-light); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 46px; padding-top: 22px; border-top: 1.5px solid rgba(250,246,236,0.2); font-family: var(--pd-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(250,246,236,0.55); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { transition: opacity .6s ease, transform .6s ease; }
html.reveal-on .reveal { opacity: 0; transform: translateY(18px); }
html.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.reveal-on .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .feat-grid, .thesis-grid, .split { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .statrow { grid-template-columns: repeat(2, 1fr); }
  .statrow .stat:nth-child(2) { border-right: 0; }
  .statrow .stat:nth-child(1), .statrow .stat:nth-child(2) { border-bottom: var(--pd-line); }
}
@media (max-width: 720px) {
  /* nav */
  .nav { height: 60px; }
  .nav-logo img { height: 34px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--pd-kraft); border-bottom: var(--pd-line);
    padding: 8px 18px 18px;
  }
  .nav-links.open a { padding: 14px 0; border-bottom: 1.5px dashed var(--pd-rule); width: 100%; }

  /* rhythm */
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 46px 0; }
  .section--tight { padding: 34px 0; }
  .shead { margin-bottom: 26px; }
  .card { padding: 20px; }
  .fileline { font-size: 10px; gap: 9px; margin-bottom: 18px; }

  /* hero: normal top-anchored flow on phones (no full-screen empty gaps) */
  .hero { min-height: auto !important; display: block !important; padding: 24px 0 40px !important; }
  .hero > .wrap { display: block !important; flex: none !important; }
  .hero h1 { font-size: clamp(1.95rem, 7.4vw, 2.55rem) !important; line-height: 0.97; }
  .hero .stamp { display: none; }

  /* grids collapse */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .statrow { grid-template-columns: 1fr; }
  .statrow .stat { border-right: 0; border-bottom: var(--pd-line); }
  .statrow .stat:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(1.8rem, 8.6vw, 2.2rem) !important; }
  .quote { font-size: 1.5rem; }
}
