/* =====================================================
   WORKWEEK ADVERTISING — V1 WIREFRAMES
   Low-fi sketchy aesthetic. Paper / handwriting.
   ===================================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-faint: #8a8a8a;
  --paper: #f6f1e7;
  --paper-2: #efe8d6;
  --rule: #1a1a1a;
  --rule-soft: rgba(26, 26, 26, 0.35);
  --rule-faint: rgba(26, 26, 26, 0.18);
  --accent: #fbc504; /* Workweek yellow */
  --accent-deep: #0e231c;
  --note: #ffb3c1; /* sticky-note pink */
  --hand: "Helvetica Neue", "Helvetica", "Arial", system-ui, sans-serif;
  --hand-display: "FK Screamer", "Barlow Condensed", "Anton", "Helvetica Neue", sans-serif;
  --sans: "Helvetica Neue", "Helvetica", "Arial", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sketch: "Kalam", "Comic Sans MS", system-ui, sans-serif;
  --sketch-display: "Gloria Hallelujah", "Kalam", "Comic Sans MS", system-ui,
    sans-serif;
}

/* Sketchy/wireframe mode (toggled via the Tweaks panel) flips display + body
   onto handwriting faces so the wireframe reads truly low-fi. Default is
   brand-true: FK Screamer (with Barlow Condensed fallback) + Helvetica. */
[data-handwritten="on"] {
  --hand: var(--sketch);
  --hand-display: var(--sketch-display);
}

[data-accent="off"] {
  --accent: #e9e2cf;
  --accent-deep: #1a1a1a;
}

[data-handwritten="on"] .hl,
[data-handwritten="on"] .stat,
[data-handwritten="on"] .app-title {
  text-transform: none;
}

/* ─────────────────────────────────────────────────────
   BRAND DISPLAY TREATMENT
   FK Screamer is the wordmark face: heavy, condensed,
   italic, all-caps. We apply that treatment to every
   display element by listing them once. Sketchy-mode
   reverts to handwriting.
   ───────────────────────────────────────────────────── */
.dir-tab .dir-letter,
.dir-header h2,
.page-label .num,
.page-label .name,
.note .arrow,
.foot .wm,
.card .ttl,
.card .big,
.logo-row .logo-chip,
.pillar .num,
.pillar .ptitle,
.vmenu .vnum,
.vmenu .vname,
.pull,
.scribble-arrow {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
}

[data-handwritten="on"] .dir-tab .dir-letter,
[data-handwritten="on"] .dir-header h2,
[data-handwritten="on"] .page-label .num,
[data-handwritten="on"] .page-label .name,
[data-handwritten="on"] .note .arrow,
[data-handwritten="on"] .foot .wm,
[data-handwritten="on"] .card .ttl,
[data-handwritten="on"] .card .big,
[data-handwritten="on"] .logo-row .logo-chip,
[data-handwritten="on"] .pillar .num,
[data-handwritten="on"] .pillar .ptitle,
[data-handwritten="on"] .vmenu .vnum,
[data-handwritten="on"] .vmenu .vname,
[data-handwritten="on"] .pull,
[data-handwritten="on"] .scribble-arrow,
[data-handwritten="on"] .nav .logo {
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.5px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* paper texture — subtle graph grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(26, 26, 26, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

/* =====================================================
   APP SHELL
   ===================================================== */

.app {
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 32px 200px;
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.app-title {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 38px;
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.app-title em {
  font-style: normal;
  background: var(--accent);
  padding: 2px 10px 4px;
  display: inline-block;
  transform: rotate(-1deg);
  margin: 0 2px;
}

.app-subtitle {
  font-family: var(--hand);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 720px;
}

.app-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.6;
}

.app-meta strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

/* =====================================================
   DIRECTION TABS
   ===================================================== */

.dir-tabs {
  display: flex;
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  margin: 24px 0 36px;
  background: var(--paper-2);
  overflow-x: auto;
}

.dir-tab {
  flex: 1 1 auto;
  min-width: 200px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  border-right: 1px dashed var(--rule-soft);
  text-align: left;
  cursor: pointer;
  font-family: var(--hand);
  color: var(--ink);
  transition: background 0.15s;
}

.dir-tab:last-child {
  border-right: 0;
}

.dir-tab:hover {
  background: var(--paper);
}

.dir-tab[data-active="true"] {
  background: var(--accent);
}

.dir-tab .dir-letter {
  font-family: var(--hand-display);
  font-size: 28px;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.dir-tab .dir-name {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 15px;
  display: block;
}

.dir-tab .dir-blurb {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  display: block;
  margin-top: 2px;
}

.dir-tab[data-active="true"] .dir-blurb {
  color: var(--ink);
}

/* =====================================================
   DIRECTION HEADER
   ===================================================== */

.dir-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.dir-header h2 {
  font-family: var(--hand-display);
  font-size: 44px;
  line-height: 1;
  margin: 0 0 10px;
}

.dir-header h2 .badge {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  vertical-align: middle;
  margin-right: 12px;
  text-transform: uppercase;
  border-radius: 3px;
}

.dir-header p {
  font-size: 17px;
  color: var(--ink);
  margin: 0;
  max-width: 720px;
}

.dir-pros {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 2px dashed var(--rule-soft);
  padding: 6px 0 6px 14px;
  max-width: 380px;
}

.dir-pros b {
  color: var(--ink);
}

/* =====================================================
   PAGE FRAMES (one per microsite page)
   ===================================================== */

.page-frame {
  margin: 0 0 64px;
  position: relative;
}

.page-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.page-label .num {
  font-family: var(--hand-display);
  font-size: 22px;
  background: var(--ink);
  color: var(--paper);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.page-label .name {
  font-family: var(--hand-display);
  font-size: 26px;
  letter-spacing: -0.3px;
}

.page-label .url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border: 1px dashed var(--rule-soft);
  border-radius: 4px;
}

.page-label .pageflag {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* The actual wireframe canvas */
.page {
  background: #fffdf6;
  border: 2px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

[data-device="mobile"] .page {
  max-width: 420px;
  margin: 0 auto;
}

/* browser chrome on top of the page */
.chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px dashed var(--rule-soft);
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.chrome .dots {
  display: flex;
  gap: 5px;
}

.chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
}

.chrome .addr {
  flex: 1;
  border: 1px dashed var(--rule-soft);
  padding: 3px 8px;
  border-radius: 3px;
  background: #fffdf6;
}

/* =====================================================
   PAGE NAV (microsite global nav)
   ===================================================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px dashed var(--rule-soft);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.nav .logo {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: -0.3px;
}
.nav .logo img {
  display: block;
  height: 22px;
  width: auto;
}

.nav .links {
  display: flex;
  gap: 28px;
  color: var(--ink-soft);
}

.nav .link[data-active="true"] {
  color: var(--ink);
  font-weight: 700;
}

.nav .cta {
  background: var(--accent);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 8px 14px;
  border-radius: 3px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 13px;
}

[data-device="mobile"] .nav .links {
  display: none;
}

[data-device="mobile"] .nav .cta {
  font-size: 11px;
  padding: 6px 10px;
}

[data-device="mobile"] .nav::after {
  content: "≡";
  font-size: 22px;
  margin-left: 8px;
}

/* =====================================================
   GENERIC WIREFRAME PRIMITIVES
   ===================================================== */

.sec {
  padding: 48px 40px;
}

.sec.dark {
  background: var(--ink);
  color: var(--paper);
}

.sec.tint {
  background: var(--paper-2);
}

[data-device="mobile"] .sec {
  padding: 28px 20px;
}
[data-device="mobile"] .br-wide {
  display: none;
}

/* sketchy "headline" */
.hl {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 0.92;
  letter-spacing: -0.5px;
  margin: 0;
}

.hl.xl {
  font-size: 128px;
  letter-spacing: -1.5px;
}

.hl.lg {
  font-size: 64px;
}

.hl.md {
  font-size: 40px;
}

.hl.sm {
  font-size: 28px;
}

[data-device="mobile"] .hl {
  font-size: 36px;
}

[data-device="mobile"] .hl.xl {
  font-size: 56px;
  letter-spacing: -0.5px;
}

[data-device="mobile"] .hl.lg {
  font-size: 40px;
}

.hl .hi {
  background: var(--accent);
  padding: 0 8px;
  display: inline-block;
  transform: rotate(-1deg);
}

.hl .strike {
  text-decoration: line-through;
  text-decoration-thickness: 4px;
  text-decoration-color: var(--ink);
  opacity: 0.65;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.sec.dark .eyebrow {
  color: var(--accent);
}

.sub {
  font-family: var(--hand);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 18px 0 0;
}

.sec.dark .sub {
  color: rgba(246, 241, 231, 0.7);
}

[data-device="mobile"] .sub {
  font-size: 16px;
}

/* placeholder rectangles */
.box {
  border: 1.5px solid var(--rule);
  background: #fffdf6;
  border-radius: 3px;
  padding: 18px;
  position: relative;
}

.box.dashed {
  border-style: dashed;
}

/* horizontal flow row (used on Direction A home, "From black box to transparency") */
.flow-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.flow-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fffdf6;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  min-height: 220px;
}
.flow-stage.dashed {
  border-style: dashed;
}
.flow-stage.accent {
  background: var(--accent);
  border-color: var(--ink);
}
.flow-stage .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  opacity: 0.7;
}
.sec.dark .flow-stage {
  background: #2a2a2a;
  border-color: var(--paper);
  color: var(--paper);
}
.sec.dark .flow-stage.accent {
  background: var(--accent);
  color: var(--ink);
}
.sec.dark .flow-connector {
  color: var(--paper);
}

.box.tinted {
  background: var(--paper-2);
}

.box .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.sec.dark .box {
  background: #2a2a2a;
  border-color: var(--paper);
  color: var(--paper);
}

.sec.dark .box .label {
  color: rgba(246, 241, 231, 0.6);
}

/* placeholder image rect, with diagonal slashes */
.img {
  position: relative;
  background: var(--paper-2);
  border: 1.5px solid var(--rule);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
  border-radius: 3px;
}

.img::before,
.img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 18px,
    rgba(26, 26, 26, 0.07) 18px 19px
  );
  pointer-events: none;
}

.img.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--paper);
}

.img.accent {
  background: var(--accent);
  color: var(--accent-deep);
}

.img.accent::before {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 18px,
    rgba(14, 35, 28, 0.12) 18px 19px
  );
}

.img > span {
  position: relative;
  z-index: 1;
  background: rgba(255, 253, 246, 0.92);
  padding: 4px 10px;
  border-radius: 3px;
  text-align: center;
  line-height: 1.3;
}

.img.dark > span {
  background: rgba(26, 26, 26, 0.85);
  color: var(--paper);
}

.img.accent > span {
  background: rgba(251, 197, 4, 0.92);
}

/* placeholder text lines (scribbled paragraph) */
.lines {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lines i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--rule-faint);
}

.lines i:nth-child(1) {
  width: 92%;
}
.lines i:nth-child(2) {
  width: 76%;
}
.lines i:nth-child(3) {
  width: 88%;
}
.lines i:nth-child(4) {
  width: 64%;
}
.lines i:nth-child(5) {
  width: 80%;
}
.lines i:nth-child(6) {
  width: 70%;
}

.sec.dark .lines i {
  background: rgba(246, 241, 231, 0.18);
}

/* CTA pill */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta-pill span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.cta-pill:hover {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}
.cta-pill:hover span {
  transform: translateX(3px);
}

.cta-pill.ghost {
  background: transparent;
}
.cta-pill.ghost:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.sec.dark .cta-pill.ghost {
  border-color: var(--paper);
  color: var(--paper);
}
.sec.dark .cta-pill.ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* annotation (post-it / margin note) */
.note {
  position: absolute;
  font-family: var(--hand);
  font-size: 12px;
  background: var(--note);
  color: var(--ink);
  padding: 6px 10px;
  border: 1px solid var(--ink);
  transform: rotate(-1.5deg);
  max-width: 220px;
  line-height: 1.3;
  z-index: 5;
}

.note.r {
  transform: rotate(1.5deg);
}

.note .arrow {
  position: absolute;
  font-family: var(--hand-display);
  font-size: 22px;
  line-height: 1;
}

[data-annotations="off"] .note {
  display: none;
}

/* arrow connector (svg-free) */
.arrow-down {
  width: 1px;
  height: 28px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.arrow-down::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translate(-50%, 0) rotate(45deg);
}

/* big stat */
.stat {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 84px;
  line-height: 0.9;
  letter-spacing: -2px;
}

.stat .unit {
  font-size: 38px;
  vertical-align: top;
  margin-left: 4px;
}

.stat-label {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 240px;
}

.sec.dark .stat-label {
  color: rgba(246, 241, 231, 0.7);
}

[data-device="mobile"] .stat {
  font-size: 56px;
}

/* grid helpers */
.grid {
  display: grid;
  gap: 18px;
}

.g-3 {
  grid-template-columns: repeat(3, 1fr);
}

.g-2 {
  grid-template-columns: repeat(2, 1fr);
}

.g-6 {
  grid-template-columns: repeat(6, 1fr);
}

.g-4 {
  grid-template-columns: repeat(4, 1fr);
}

[data-device="mobile"] .grid,
[data-device="mobile"] .g-2,
[data-device="mobile"] .g-3,
[data-device="mobile"] .g-4,
[data-device="mobile"] .g-6 {
  grid-template-columns: 1fr;
}

/* footer placeholder */
.foot {
  padding: 24px 40px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  gap: 16px;
  flex-wrap: wrap;
}

.foot .wm {
  font-family: var(--hand-display);
  text-transform: none;
  letter-spacing: -0.5px;
  font-size: 24px;
  color: var(--accent);
}
.foot .wm-logo {
  display: inline-block;
  width: 102px;
  height: 22px;
  -webkit-mask: url(logos/workweek.svg) left center / contain no-repeat;
          mask: url(logos/workweek.svg) left center / contain no-repeat;
  background: var(--accent);
  vertical-align: middle;
}
.foot .wm img {
  display: block;
  height: 22px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(82%) sepia(58%) saturate(593%) hue-rotate(2deg) brightness(103%) contrast(101%);
}

/* tape strip */
.tape {
  position: absolute;
  width: 90px;
  height: 22px;
  background: rgba(251, 197, 4, 0.65);
  border: 1px solid rgba(26, 26, 26, 0.4);
  transform: rotate(-4deg);
  z-index: 4;
}

[data-accent="off"] .tape {
  background: rgba(26, 26, 26, 0.1);
}

/* network/solution card */
.card {
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  padding: 18px;
  background: #fffdf6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  position: relative;
}

.card .ttl {
  font-family: var(--hand-display);
  font-size: 22px;
  line-height: 1;
}

.card .tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.card .big {
  font-family: var(--hand-display);
  font-size: 32px;
  line-height: 1;
}

.sec.dark .card {
  background: #1f1f1f;
  border-color: var(--paper);
  color: var(--paper);
}

.sec.dark .card .tag {
  color: var(--accent);
}

/* divider rules */
.rule {
  border: 0;
  border-top: 1px dashed var(--rule-soft);
  margin: 0;
}

/* form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field .lbl {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.field .input {
  border: 1.5px solid var(--rule);
  background: #fffdf6;
  border-radius: 3px;
  height: 38px;
  padding: 0 10px;
  font-family: var(--hand);
  font-size: 14px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
}

.field .input.tall {
  height: 90px;
  align-items: flex-start;
  padding-top: 10px;
}

[data-device="mobile"] .form-row {
  grid-template-columns: 1fr;
}

/* ============================================================
   Partner intake form (#/submit) — destination for all CTAs
   ============================================================ */
.pf {
  max-width: 860px;
}
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-bottom: 44px;
}
.pf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pf-field.pf-span {
  grid-column: 1 / -1;
}
/* standalone long-answer fields sit directly in the form — give them room */
.pf > .pf-field {
  margin-bottom: 40px;
}
.pf-lbl {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.pf-lbl i {
  font-style: normal;
  color: var(--accent-deep, #8a6d00);
}
.pf-opt {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-style: italic;
}
.pf-input {
  border: 2px solid var(--ink);
  background: #fffdf6;
  border-radius: 4px;
  height: 50px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s ease;
}
.pf-input::placeholder {
  color: var(--ink-faint);
}
.pf-input:focus {
  outline: none;
  border-color: var(--ink);
}
.pf-textarea {
  height: auto;
  padding: 12px 14px;
  line-height: 1.45;
  resize: vertical;
}

.pf-group {
  border: 0;
  padding: 0;
  margin: 0 0 40px;
}
.pf-q {
  font-family: var(--display, var(--hand-display));
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
  padding: 0;
  max-width: 640px;
}
.pf-q i {
  font-style: normal;
  color: var(--accent-deep, #8a6d00);
}
.pf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pf-chip {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fffdf6;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pf-chip:hover {
  border-color: var(--ink);
  background: var(--paper-2);
}
.pf-chip:active {
  transform: translateY(1px);
}
.pf-chip.on {
  background: var(--accent);
  border-color: var(--ink);
}

.pf-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pf-submit .cta-pill {
  cursor: pointer;
  border: 2px solid var(--ink);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 16px;
}
.pf-fine {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 280px;
  line-height: 1.4;
}

.pf-done {
  max-width: 620px;
  padding: 32px 0 40px;
}
.pf-done-mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 28px;
}
.pf-done p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 16px;
}

[data-device="mobile"] .pf-grid {
  grid-template-columns: 1fr;
}

/* tweaks panel overrides for our wireframe theme */
.tweaks-panel-shell {
  font-family: var(--hand) !important;
}

/* small helper */
.flex {
  display: flex;
  gap: 14px;
  align-items: center;
}

.gap-lg {
  gap: 36px;
}

.gap-md {
  gap: 22px;
}

.between {
  justify-content: space-between;
}

/* tagline / proof strip */
.logo-row {
  display: flex;
  align-items: center;
  --logo-h: 32px;
  gap: 72px;
  flex-wrap: wrap;
  opacity: 0.9;
}

/* auto-scrolling logo marquee */
.logo-bar {
  display: flex;
  align-items: stretch;
  gap: 32px;
}
.logo-bar .logo-marquee {
  flex: 1;
  min-width: 0;
}
.logo-bar-label {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 24px;
  border-right: 1px solid rgba(26, 26, 26, 0.18);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.18;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* solution card iconography chip */
.solution-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* solution illustration tile — used on the Solutions long-list */
.solution-illo {
  width: 200px;
  height: 120px;
  background: var(--accent);
  border: 1.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
}
.solution-illo-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.solution-illo-icon svg {
  width: 36px;
  height: 36px;
}
.solution-illo-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo-marquee {
  --logo-h: 36px;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  padding: 4px 0;
}
.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding-right: 72px;
  animation: logo-drift 56s linear infinite;
}
@keyframes logo-drift {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.logo-marquee:hover .logo-marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
  }
}

.logo-row .logo-chip {
  font-family: var(--hand-display);
  font-size: 18px;
  letter-spacing: -0.3px;
  padding: 4px 10px;
  border: 1px dashed var(--rule-soft);
  border-radius: 3px;
}

.logo-marquee .logo-img,
.logo-row .logo-img {
  height: var(--logo-h);
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0);
  opacity: 0.78;
  transition: opacity 0.2s ease;
}

.logo-row .logo-img:hover {
  opacity: 1;
}

.sec.dark .logo-row .logo-img {
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.85;
}

/* before/after columns (used by Direction D) */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--rule);
  border-bottom: 1.5px solid var(--rule);
}

.ba > div {
  padding: 36px 32px;
  border-right: 1.5px dashed var(--rule-soft);
}

.ba > div:last-child {
  border-right: 0;
  background: var(--ink);
  color: var(--paper);
}

[data-device="mobile"] .ba {
  grid-template-columns: 1fr;
}

[data-device="mobile"] .ba > div {
  border-right: 0;
  border-bottom: 1.5px dashed var(--rule-soft);
}

/* page-2 pillar list */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-icon {
  margin-top: 24px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-icon svg {
  max-height: 100%;
  max-width: 100%;
}

[data-device="mobile"] .pillars {
  grid-template-columns: 1fr;
}

.pillar {
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
}

.pillar .num {
  position: absolute;
  top: -14px;
  left: 18px;
  background: var(--accent);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--hand-display);
  font-size: 18px;
  padding: 2px 10px;
  border-radius: 3px;
}

.pillar .ptitle {
  font-family: var(--hand-display);
  font-size: 24px;
  margin: 6px 0 8px;
}

/* small kicker chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--ink-soft);
  background: #fffdf6;
}

.chip.dark {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}

.chip.accent {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--ink);
}

/* tabbed-list (direction B vertical menu) */
.vmenu {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--rule);
}

.vmenu .vrow {
  padding: 22px 0;
  border-bottom: 1.5px solid var(--rule);
  display: grid;
  grid-template-columns: 70px 1fr 1fr 100px;
  gap: 24px;
  align-items: center;
}

[data-device="mobile"] .vmenu .vrow {
  grid-template-columns: 50px 1fr;
}

[data-device="mobile"] .vmenu .vrow > *:nth-child(3),
[data-device="mobile"] .vmenu .vrow > *:nth-child(4) {
  grid-column: 2;
  margin-top: 4px;
}

.vmenu .vnum {
  font-family: var(--hand-display);
  font-size: 32px;
  color: var(--ink-soft);
}

.vmenu .vname {
  font-family: var(--hand-display);
  font-size: 26px;
}

.vmenu .vmeta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.vmenu .vcta {
  text-align: right;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 14px;
}

/* footer of page block: bottom-CTA section */
.bottom-cta {
  padding: 64px 40px;
  background: var(--accent);
  color: var(--accent-deep);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: end;
}

[data-accent="off"] .bottom-cta {
  background: var(--paper-2);
  color: var(--ink);
}

[data-device="mobile"] .bottom-cta {
  grid-template-columns: 1fr;
  padding: 32px 20px;
}

.bottom-cta .hl {
  color: var(--accent-deep);
}

[data-accent="off"] .bottom-cta .hl {
  color: var(--ink);
}

.bottom-cta .sub {
  max-width: 40ch;
  text-wrap: balance;
}

/* full-bleed quote */
.pull {
  font-family: var(--hand-display);
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  border-left: 4px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 0;
  max-width: 880px;
}

[data-device="mobile"] .pull {
  font-size: 26px;
}

/* legend / annotations panel */
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.legend .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 1px solid var(--ink);
  vertical-align: middle;
}

.legend .swatch.accent {
  background: var(--accent);
}

.legend .swatch.ink {
  background: var(--ink);
}

.legend .swatch.paper {
  background: var(--paper);
}

/* tiny scribble-arrow */
.scribble-arrow {
  font-family: var(--hand-display);
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  display: inline-block;
}

/* =====================================================
   STAT TICKER (infinite-scroll marquee of proof numbers)
   ===================================================== */

.ticker {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  padding: 2px 0;
  margin: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 80px,
    #000 calc(100% - 80px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 80px,
    #000 calc(100% - 80px),
    transparent
  );
}

.ticker.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.ticker.accent {
  background: var(--accent);
  color: var(--accent-deep);
  border-color: var(--ink);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: ticker-scroll 90s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 36px;
  border-right: 1px dashed var(--rule-soft);
  white-space: nowrap;
}

.ticker.dark .ticker-item,
.ticker.accent .ticker-item {
  border-right-color: rgba(255, 253, 246, 0.25);
}

.ticker.accent .ticker-item {
  border-right-color: rgba(14, 35, 28, 0.25);
}

.ticker-num {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.ticker.dark .ticker-num {
  color: var(--accent);
}

.ticker-label {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  max-width: none;
  white-space: nowrap;
}

.ticker.dark .ticker-label {
  color: rgba(246, 241, 231, 0.75);
}

.ticker.accent .ticker-label {
  color: var(--accent-deep);
}

[data-handwritten="on"] .ticker-num {
  text-transform: none;
}

[data-device="mobile"] .ticker-num {
  font-size: 30px;
}

[data-device="mobile"] .ticker-item {
  padding: 0 22px;
  gap: 10px;
}

/* =====================================================
   INSIGHTS — article body + index cards
   ===================================================== */

/* Long-form article (used across all directions, framed
   per-direction up top). Roughly Medium / Substack measure
   with FK-Screamer headings. */
.article {
  max-width: 700px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}

[data-device="mobile"] .article {
  font-size: 16px;
}

.article p {
  margin: 0 0 22px;
}

.article p:first-child::first-letter {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 66px;
  line-height: 0.85;
  float: left;
  padding: 4px 12px 0 0;
  color: var(--ink);
}

.article-h3 {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin: 36px 0 16px;
}

/* Part dividers — "Part 1 / Part 2 / Part 3" eyebrow + big display title */
.article-part-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
  margin-bottom: 14px;
}
.article-part-eyebrow:first-child {
  /* The first eyebrow doesn't need the top border — there's a hero above it */
  margin-top: 0;
}
.article-part-title {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: -1px;
  margin: 0 0 28px;
  color: var(--ink);
}
[data-device="mobile"] .article-part-title {
  font-size: 34px;
}

/* Closing pull quote — bigger, no italic, sits as the article's outro */
.article-pull.article-pull-close {
  font-size: 30px;
  font-style: normal;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}
[data-device="mobile"] .article-pull.article-pull-close {
  font-size: 22px;
}

/* Simple bullet list used inside articles (matches PDF source format) */
.article-list {
  margin: 12px 0 28px;
  padding-left: 22px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.article-list li {
  margin: 0 0 6px;
}

.article-figure {
  margin: 32px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 3px;
}

.article-figure figcaption {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 10px;
}

.article-pull {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.4px;
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 36px 0;
  color: var(--ink);
}

/* "Originally appeared on…" attribution note above an article body */
.article-source {
  font-family: var(--mono);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.14);
}
.article-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-device="mobile"] .article-pull {
  font-size: 24px;
}

.article-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 28px 24px;
  margin: 28px 0;
}

.article-stats .stat {
  font-size: 56px;
}

.article-stats .stat-label {
  color: rgba(14, 35, 28, 0.85);
  font-size: 12px;
}

[data-device="mobile"] .article-stats {
  grid-template-columns: 1fr;
}

.sec.dark .article {
  color: var(--paper);
}
.sec.dark .article p:first-child::first-letter,
.sec.dark .article-h3,
.sec.dark .article-pull {
  color: var(--paper);
}
.sec.dark .article-figure figcaption {
  color: rgba(246, 241, 231, 0.65);
}

/* Index of articles — a generic card you'd use on the
   Insights index, side rails on the article page, etc. */
.icard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1.5px solid var(--rule);
  align-items: start;
}

.icard:last-child {
  border-bottom: 1.5px solid var(--rule);
}

.icard .icard-thumb {
  min-height: 140px;
}

/* Real image thumbnail inside an index card */
.icard img.icard-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  display: block;
}

/* Index card rendered as a link to a full article */
a.icard {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.18s;
}
a.icard:hover .icard-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.icard .icard-meta {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.icard .icard-title {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.icard .icard-dek {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 620px;
}

.icard .icard-by {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}

[data-device="mobile"] .icard {
  grid-template-columns: 1fr;
}

/* compact card variant (used in dense grids) */
.icard-c {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: #fffdf6;
  border: 1.5px solid var(--rule);
  border-radius: 3px;
  min-height: 220px;
  position: relative;
}

.icard-c .icard-title {
  font-size: 22px;
}

.icard-c .icard-thumb {
  min-height: 110px;
}

.sec.dark .icard,
.sec.dark .icard-c {
  border-color: rgba(246, 241, 231, 0.35);
  background: transparent;
  color: var(--paper);
}
.sec.dark .icard .icard-meta,
.sec.dark .icard .icard-dek,
.sec.dark .icard-c .icard-meta,
.sec.dark .icard-c .icard-dek {
  color: rgba(246, 241, 231, 0.7);
}
.sec.dark .icard .icard-by,
.sec.dark .icard-c .icard-by {
  color: var(--accent);
}

/* Topic chip row — used on the Insights index */
.topic-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.topic-row .chip {
  font-size: 11px;
  padding: 5px 10px;
}

.topic-row .chip[data-on="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Featured-essay hero block (Insights index headers) */
.hero-essay {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
  border: 2px solid var(--ink);
  background: #fffdf6;
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
}

.hero-essay > .he-text {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.hero-essay > .he-img {
  min-height: 360px;
  background: var(--accent);
  position: relative;
  border-left: 1.5px solid var(--ink);
}

.hero-essay > .he-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 18px,
    rgba(14, 35, 28, 0.12) 18px 19px
  );
}

.hero-essay > .he-img span {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  padding: 24px;
}

.hero-essay > .he-img img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-essay .he-title {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.5px;
  margin: 0;
}

[data-device="mobile"] .hero-essay {
  grid-template-columns: 1fr;
}
[data-device="mobile"] .hero-essay > .he-img {
  border-left: 0;
  border-top: 1.5px solid var(--ink);
  min-height: 200px;
}
[data-device="mobile"] .hero-essay .he-title {
  font-size: 36px;
}

/* ---------------------------------------------------------------
   IMAGE-FREE INSIGHTS  (Tweak: Article imagery → off)
   Featured essay goes full-width typographic; the list becomes a
   ruled editorial index — no images.
   --------------------------------------------------------------- */
[data-insights-img="off"] .hero-essay {
  grid-template-columns: 1fr;
}
[data-insights-img="off"] .hero-essay > .he-img {
  display: none;
}
[data-insights-img="off"] .hero-essay > .he-text {
  padding: 44px 48px 40px;
}
[data-insights-img="off"] .hero-essay .he-title {
  font-size: clamp(48px, 6vw, 88px);
}
[data-insights-img="off"] .icard {
  grid-template-columns: 1fr;
  gap: 10px;
}
[data-insights-img="off"] .icard > img.icard-thumb,
[data-insights-img="off"] .icard > .icard-thumb,
[data-insights-img="off"] .icard > .img {
  display: none;
}
[data-insights-img="off"] .icard .icard-title {
  font-size: clamp(30px, 3.4vw, 44px);
  max-width: 20ch;
}
[data-insights-img="off"] .icard .icard-dek {
  max-width: 60ch;
}

/* press / news single-line row */
.press-row {
  display: grid;
  grid-template-columns: 120px 1fr 140px 80px;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px dashed var(--rule-soft);
  font-family: var(--sans);
  font-size: 14px;
}
.press-row:last-child {
  border-bottom: 1px dashed var(--rule-soft);
}
.press-row .pr-pub {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.press-row .pr-date {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.press-row .pr-link {
  text-align: right;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 13px;
}

[data-device="mobile"] .press-row {
  grid-template-columns: 1fr;
}

/* "by Adam" author card — for sidebars + article footer */
.author-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: #fffdf6;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  align-items: center;
}

.author-card .ac-img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
}

.author-card .ac-name {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.author-card .ac-role {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* Article-hero byline: name + title run side by side, not stacked */
.article-hero .author-card > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.article-hero .author-card .ac-role::before {
  content: "·";
  margin-right: 12px;
  color: var(--ink-soft);
}

.sec.dark .author-card {
  background: #1f1f1f;
  color: var(--paper);
}
.sec.dark .author-card .ac-role {
  color: rgba(246, 241, 231, 0.65);
}

/* article hero — used on Page 7 */
.article-hero {
  padding: 88px 56px 32px;
}

[data-device="mobile"] .article-hero {
  padding: 48px 24px 24px;
}

.article-hero .ah-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.article-hero .ah-title {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 72px;
  line-height: 0.92;
  letter-spacing: -0.6px;
  margin: 0 0 22px;
  max-width: 1000px;
}

.article-hero .ah-dek {
  font-family: var(--hand);
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 980px;
  text-wrap: balance;
  margin: 0 0 30px;
}

[data-device="mobile"] .article-hero .ah-title {
  font-size: 40px;
}

[data-device="mobile"] .article-hero .ah-dek {
  font-size: 16px;
}

/* hero illustration on the article page — replaces the .img placeholder */
.article-hero-fig {
  margin: 0;
  padding: 0;
}

.article-hero-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1660 / 940;
  object-fit: cover;
  background: var(--paper-2);
  border: 1px solid rgba(26, 26, 26, 0.12);
}

.article-hero-fig figcaption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 10px;
  padding: 0 2px;
}

.article-hero-fig figcaption span {
  color: var(--ink-faint, var(--ink-soft));
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.7;
}

[data-device="mobile"] .article-hero-fig figcaption {
  font-size: 10px;
}

/* Byline on the article hero — smaller than the sidebar/footer author card */
.article-hero .author-card {
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-width: 1px;
  border-radius: 2px;
}

.article-hero .author-card .ac-img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-width: 1px;
  font-size: 12px;
}

.article-hero .author-card .ac-name {
  font-size: 12px;
  letter-spacing: 0;
}

.article-hero .author-card .ac-role {
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-top: 1px;
}

/* article side rail (further reading) */
.further {
  background: var(--paper-2);
  padding: 56px 56px;
  border-top: 1.5px solid var(--rule);
}

.further h3 {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 26px;
  margin: 0 0 22px;
  letter-spacing: -0.3px;
}

/* before/after row used by Direction D insights */
.ba-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1.5px solid var(--rule);
}
.ba-row > div {
  padding: 22px 24px;
  border-right: 1.5px dashed var(--rule-soft);
}
.ba-row > div:last-child {
  border-right: 0;
  background: var(--ink);
  color: var(--paper);
}
.ba-row .ba-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  color: var(--ink-soft);
}
.ba-row > div:last-child .ba-label {
  color: var(--accent);
}
.ba-row .ba-text {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.2px;
}
[data-device="mobile"] .ba-row {
  grid-template-columns: 1fr;
}
[data-device="mobile"] .ba-row > div {
  border-right: 0;
  border-bottom: 1.5px dashed var(--rule-soft);
}

/* logo placeholder slot — used in nav and footer until a real logo lands */
.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  background: transparent;
  line-height: 1;
}
.logo-slot.dark,
.foot .logo-slot {
  border-color: var(--paper-soft, rgba(246, 244, 239, 0.45));
  color: var(--paper-soft, rgba(246, 244, 239, 0.7));
}
.nav .logo.logo-slot {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 16px;
}
[data-handwritten="on"] .logo-slot {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 700;
}

/* product surfaces (Attribution page) */
.prod-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prod-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  background: #fffdf6;
  overflow: hidden;
}
.prod-mock {
  background: var(--paper-2, #f1ede2);
  border-bottom: 1.5px solid var(--rule);
  display: flex;
  flex-direction: column;
}
.pm-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.pm-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper);
  opacity: 0.55;
}
.pm-addr {
  margin-left: 8px;
  opacity: 0.7;
}
.pm-body {
  padding: 14px;
  display: flex;
  gap: 12px;
  min-height: 260px;
}

/* Builder */
.pm-side {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pm-pill {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fffdf6;
  color: var(--ink-soft);
}
.pm-pill.on {
  background: var(--accent);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}
.pm-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-field > span:first-child {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.pm-input {
  height: 18px;
  border: 1px solid var(--rule);
  background: #fffdf6;
  border-radius: 2px;
}
.pm-input.tall { height: 42px; }
.pm-input.short { width: 60%; }
.pm-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pm-chip {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--ink-soft);
  background: #fffdf6;
}
.pm-chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.pm-ship {
  margin-top: auto;
  align-self: flex-end;
  padding: 6px 10px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Audience console */
.pm-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
}
.pm-list-head,
.pm-list-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr 1.1fr;
  gap: 6px;
  padding: 6px 4px;
  align-items: center;
}
.pm-list-head {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 9px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.pm-list-row {
  border-bottom: 1px dashed var(--rule-soft);
  color: var(--ink);
}
.pm-list-row:last-child { border-bottom: 0; }
.pm-name {
  font-weight: 700;
}
.pm-touch {
  font-family: var(--mono);
  background: var(--accent);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  justify-self: start;
}

/* Attribution funnel */
.pm-funnel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.pm-fl-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
}
.pm-fl-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9px;
  color: var(--ink-soft);
}
.pm-fl-bar {
  height: 14px;
  background: var(--ink);
  border-radius: 2px;
}
.pm-fl-row:last-of-type .pm-fl-bar {
  background: var(--accent);
}
.pm-fl-n {
  text-align: right;
  font-weight: 700;
}
.pm-fl-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.pm-fl-roi {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.prod-meta {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
}
.prod-meta .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.prod-meta p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}
[data-device="mobile"] .prod-row {
  grid-template-columns: 1fr;
}

/* mini flowchart (used in connection box) */
.flowchart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0 4px;
}

.connection-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.connection-list li {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.2px;
}
.connection-list .hi {
  display: inline;
  padding: 2px 6px;
}

/* "From black box to transparency" — 3-column shift */
.shift-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
.shift-chip {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.shift-chip.muted {
  background: #efece3;
  border: 1.5px solid var(--rule-soft);
}
.shift-chip.accent {
  background: var(--accent);
  border: 1.5px solid var(--ink);
}
.shift-chip.dark {
  background: var(--ink);
}
.shift-col .label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.shift-h {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -1px;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.shift-p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
[data-device="mobile"] .shift-row {
  grid-template-columns: 1fr;
  gap: 36px;
}

/* ============================================================
   Community Showcase — tabbed featured-creator + big stat panel
   Lives under "Your buyers are already here."
   ============================================================ */
.net-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 240px;
}
.net-name {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 0.98;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 4px 0 6px;
}
.net-creator {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.net-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1.5px dashed var(--rule-soft);
}
.net-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.net-stat-v {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.net-stat-l {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ============================================================
   Network rows — left text + right tinted creator panel.
   Used on Home under "Your buyers are already here."
   ============================================================ */
.net-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.net-row {
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}
.net-head {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}
.net-head:hover { background: rgba(255, 212, 0, 0.08); }
.net-row.is-open .net-head { border-bottom: 1.5px solid var(--ink); }
.net-head-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.net-head-name {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.net-head-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.net-head-creator {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.net-head-creator strong { color: var(--ink); font-weight: 700; }
.net-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.net-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 320px;
}
.net-left {
  padding: 32px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.net-eyebrow {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink);
  white-space: nowrap;
}
.net-community {
  margin: 4px 0 4px;
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 0.96;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}
.net-blurb {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}
.net-blurb strong {
  color: var(--ink);
  font-weight: 700;
}
.net-points {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1.5px dashed var(--rule-soft);
}
.net-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1.5px dashed var(--rule-soft);
}
.net-points li:last-child {
  border-bottom: 0;
}
.np-v {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--ink);
  min-width: 90px;
}
.np-l {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
}

.net-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-left: 1.5px solid var(--ink);
  background: var(--np-tone, #e7f3ee);
}
.net-row[data-tone="cream"] .net-right { background: #f1ebd6; }
.net-row[data-tone="accent"] .net-right { background: #ffe966; }
.net-row[data-tone="mint"]   .net-right { background: #d8ebdd; }
.net-row[data-tone="peach"]  .net-right { background: #f5dcc8; }
.net-row[data-tone="sky"]    .net-right { background: #d5e3ec; }

.net-creator-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 7px 11px;
  border-radius: 999px;
}
.net-headshot {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  position: relative;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--accent);
}
.net-headshot .img {
  background: transparent;
  border: 1.5px dashed rgba(26, 26, 26, 0.35);
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.net-headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Creator grid (Networks page) */
.creator-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.creator-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.creator-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background: var(--accent);
  border-radius: 4px;
  display: block;
}
.creator-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 2px 0;
}
.creator-caption-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  margin-bottom: 2px;
}
.creator-caption-name {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  line-height: 1;
}
.creator-caption-net {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
[data-device="mobile"] .creator-grid {
  grid-template-columns: repeat(2, 1fr);
}
.net-creator-name {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  margin-top: 16px;
  text-align: center;
}

[data-device="mobile"] .net-body {
  grid-template-columns: 1fr;
}
[data-device="mobile"] .net-right {
  border-left: 0;
  border-top: 1.5px solid var(--ink);
  min-height: 280px;
}
[data-device="mobile"] .net-head {
  grid-template-columns: 1fr;
}
[data-device="mobile"] .net-head-right {
  justify-content: space-between;
}

/* ============================================================
   Why Workweek — proof grid
   ============================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.proof-stat {
  padding: 32px 28px 28px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
}
.proof-stat:nth-child(3n) { border-right: 0; }
.proof-stat:nth-last-child(-n+3) { border-bottom: 0; }
.proof-stat.accent { background: var(--accent); }
.ps-v {
  font-family: var(--hand-display);
  font-weight: 900;
  font-size: clamp(56px, 5.4vw, 88px);
  line-height: 0.92;
  letter-spacing: -2px;
  color: var(--ink);
}
.ps-l {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 32ch;
}
[data-device="mobile"] .proof-grid {
  grid-template-columns: 1fr;
}
[data-device="mobile"] .proof-stat {
  border-right: 0;
  border-bottom: 1.5px solid var(--ink);
}
[data-device="mobile"] .proof-stat:last-child { border-bottom: 0; }
.flow-node {
  font-family: var(--hand-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -0.2px;
  text-align: center;
  padding: 12px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.flow-arrow {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  opacity: 0.7;
}
[data-handwritten="on"] .flow-node {
  border-style: dashed;
  border-color: var(--ink-soft);
}

/* =====================================================
   SITE MODE — strips the wireframe scaffolding and
   presents the layouts as a near-final microsite. Toggle
   via the Tweaks panel ("Mode").
   ===================================================== */

body[data-mode="site"] {
  background: #fffdf6;
}

/* kill the graph-paper grid */
body[data-mode="site"]::before { display: none; }

/* app shell — slim header, no legend, no per-direction header */
body[data-mode="site"] .app {
  max-width: none;
  padding: 0 0 80px;
}
body[data-mode="site"] .app-header,
body[data-mode="site"] .legend,
body[data-mode="site"] .dir-header { display: none; }

/* hide all the wireframe annotations + scribble placeholders */
body[data-mode="site"] .page-label,
body[data-mode="site"] .chrome,
body[data-mode="site"] .note,
body[data-mode="site"] .lines,
body[data-mode="site"] .pageflag { display: none !important; }

/* page-frames sit flush — each page is its own canvas, separated
   by a hairline rule rather than a margin gap + drop shadow */
body[data-mode="site"] .page-frame {
  margin: 0;
  box-shadow: none;
  border: 0;
}

/* SITE MODE ROUTER — only the page matching location.hash is visible.
   .is-current-route is set by the router in app.jsx. */
body[data-mode="site"] .page-frame:not(.is-current-route) {
  display: none;
}
body[data-mode="site"] .page-frame .page {
  margin: 0;
  background: #fffdf6;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
body[data-mode="site"] .page-frame + .page-frame .page::before {
  content: "";
  display: block;
  height: 0;
}

/* nav — solid, not dashed; sticky-ish appearance */
body[data-mode="site"] .nav {
  border-bottom: 1px solid rgba(26, 26, 26, 0.1);
  padding: 22px 56px;
  background: #fffdf6;
}
body[data-mode="site"] .nav .cta {
  border-radius: 999px;
  border-width: 1px;
  padding: 9px 16px;
}

/* footer — keep dark, but ensure no dashed bits leak through */
body[data-mode="site"] .foot { border: 0; }

/* placeholder image rect — drop the diagonal slashes + dashed border;
   present as a quiet editorial photo slot with a small mono caption */
body[data-mode="site"] .img {
  background: #ece6d4;
  border: 0;
  color: #6a6a6a;
}
body[data-mode="site"] .img::before,
body[data-mode="site"] .img::after { display: none; }
body[data-mode="site"] .img > span {
  background: transparent;
  padding: 0;
  border: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8478;
  opacity: 0.85;
}
body[data-mode="site"] .img.dark { background: #1a1a1a; }
body[data-mode="site"] .img.dark > span { color: rgba(246, 241, 231, 0.5); }
body[data-mode="site"] .img.accent { background: var(--accent); }
body[data-mode="site"] .img.accent > span { color: rgba(26, 26, 26, 0.55); }

/* clean up small dashed borders sprinkled through cards/components */
body[data-mode="site"] .net-headshot .img {
  background: #ece6d4;
  border: 0;
}

/* tweaks panel scoped reset — make sure our overlay sits above content */
body[data-mode="site"] #root { z-index: auto; }

/* Footer link styling (now real anchors instead of a plain text string) */
.foot .foot-links {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot .foot-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s, color 0.15s;
}
.foot .foot-links a:hover {
  opacity: 1;
  color: var(--accent);
}
/* copyright/legal links (privacy etc.) — match footer text, not browser blue */
.foot a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}
.foot a:hover {
  color: var(--accent);
}

/* Article page back link */
.article-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 24px;
  padding: 4px 0;
  transition: color 0.15s;
}
.article-back:hover { color: var(--ink); }

/* Nav anchors — kill the default underline; add hover affordance */
.nav .link,
.nav .logo,
.nav .cta {
  text-decoration: none;
  color: inherit;
}
.nav .link {
  position: relative;
  transition: color 0.15s ease;
  cursor: pointer;
}
.nav .link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav .link:hover {
  color: var(--ink);
}
.nav .link:hover::after,
.nav .link[data-active="true"]::after {
  transform: scaleX(1);
}
.nav .cta { cursor: pointer; }
.nav .cta:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* Featured-essay card on the Insights index is now a link */
a.hero-essay {
  text-decoration: none;
  color: inherit;
  display: grid;
  cursor: pointer;
  transition: transform 0.2s ease;
}
a.hero-essay:hover .he-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* =====================================================================
   REAL-VIEWPORT MOBILE  (≤768px)
   The [data-device="mobile"] rules above only fire on the in-app device
   toggle. These mirror them for actual phones, plus fix nav wrap,
   headline scaling, and the network-row header overlap.
   ===================================================================== */
@media (max-width: 768px) {
  /* never let an oversized headline create a horizontal scrollbar */
  html, body { max-width: 100%; overflow-x: hidden; }
  /* desktop-only break in the "We fixed the broken parts" headline —
     on phones it flows so "Parts" isn't orphaned on its own line */
  .br-wide { display: none; }

  /* ---- section + shell padding ---- */
  body[data-mode="site"] .sec,
  .sec {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  body[data-mode="site"] .nav {
    padding: 14px 20px !important;
    flex-wrap: wrap;
    row-gap: 12px;
  }
  .article-hero { padding: 48px 20px 24px !important; }
  .bottom-cta {
    grid-template-columns: 1fr;
    padding: 40px 20px !important;
  }

  /* ---- nav: logo + CTA on row 1, links wrap to row 2 ---- */
  .nav .logo img { height: 18px; }
  .nav .links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
  }
  .nav .cta { font-size: 12px; padding: 8px 14px; }

  /* ---- headlines: scale with viewport so long words never overflow ---- */
  .hl { line-height: 0.96; }
  .hl.xl {
    font-size: clamp(40px, 12.5vw, 84px);
    letter-spacing: -0.5px;
  }
  .hl.lg { font-size: clamp(30px, 8.5vw, 52px); }
  .hl.md { font-size: 30px; }
  .sub { font-size: 16px; }
  .stat { font-size: 56px; }
  .pull { font-size: 26px; }

  /* ---- generic multi-column grids collapse ---- */
  .grid, .g-2, .g-3, .g-4, .g-6,
  .pf-grid, .form-row,
  .ba, .ba-row, .pillars, .prod-row, .press-row,
  .proof-grid, .article-stats, .icard, .shift-row,
  .hero-essay {
    grid-template-columns: 1fr;
  }
  .shift-row { gap: 32px; }
  .creator-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-row { flex-wrap: wrap; }

  /* divider direction flips when columns stack */
  .ba > div, .ba-row > div {
    border-right: 0;
    border-bottom: 1.5px dashed var(--rule-soft);
  }
  .proof-stat {
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }
  .proof-stat:last-child { border-bottom: 0; }

  /* ---- network rows: stop the header overlap, stack the body ---- */
  .net-head { padding: 16px 16px; gap: 12px; }
  .net-head-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .net-head-name { font-size: 24px; }
  .net-head-creator { display: none; }   /* repeated inside the open body */
  .net-body { grid-template-columns: 1fr; min-height: 0; }
  .net-left { padding: 24px 20px; }
  .net-right {
    border-left: 0;
    border-top: 1.5px solid var(--ink);
    min-height: 0;
    padding: 28px 20px;
  }
  .net-headshot { width: 160px; height: 160px; }

  /* ---- hero-essay / featured cards ---- */
  .hero-essay > .he-img {
    border-left: 0;
    border-top: 1.5px solid var(--ink);
    min-height: 200px;
  }
  .hero-essay .he-title { font-size: clamp(28px, 8vw, 40px); }

  /* ---- ticker ---- */
  .ticker-num { font-size: 30px; }
  .ticker-item { padding: 0 22px; gap: 10px; }

  /* ---- long-form article ---- */
  .article { font-size: 16px; }
  .article-part-title { font-size: 34px; }
  .article-pull { font-size: 24px; }
  .article-pull.article-pull-close { font-size: 22px; }
  .article-hero .ah-title { font-size: clamp(34px, 9vw, 48px); }
  .article-hero .ah-dek { font-size: 16px; }
}

/* finer phones (≤430px) — trim the very largest type a touch more */
@media (max-width: 430px) {
  .net-head-creator { display: none; }
  .creator-grid { grid-template-columns: 1fr; }
}
