/* =============================================================
   Abhilash Babbili — Portfolio Design System (sketchy / wireframe)
   Adapted from Prototype v2 (Direction A/B/C).
   Caveat + Kalam + JetBrains Mono. Paper/ink/orange.
   Preserves all existing class names so legacy pages keep working.
   Mobile-first. Light + Dark.
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --accent: #ff5b1f;
  --accent-soft: #ff7a47;
  --accent-deep: #d44512;
  --accent-glow: rgba(255, 91, 31, 0.18);

  /* Light mode (paper/ink) */
  --paper: #fafaf7;
  --paper-2: #f2efe8;
  --ink: #1a1a1a;
  --ink-2: #29261b;
  --muted: #8a8a85;
  --line: #1a1a1a;
  --line-soft: rgba(26, 26, 26, 0.18);
  --line-ghost: rgba(26, 26, 26, 0.08);
  --grid: rgba(26, 26, 26, 0.06);
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);

  /* Type */
  --font-hand: 'Caveat', 'Comic Sans MS', cursive;
  --font-body: 'Kalam', 'Comic Sans MS', cursive;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: 'Kalam', 'Comic Sans MS', cursive;

  /* Scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 260ms;
  --t-slow: 480ms;

  /* Nav */
  --nav-h: 72px;
}

[data-theme="dark"] {
  --paper: #16140f;
  --paper-2: #1f1c16;
  --ink: #f3f0e8;
  --ink-2: #e9e4d6;
  --muted: #807a6e;
  --line: #f3f0e8;
  --line-soft: rgba(243, 240, 232, 0.22);
  --line-ghost: rgba(243, 240, 232, 0.1);
  --grid: rgba(243, 240, 232, 0.07);
  --surface: #1b1916;
  --surface-2: rgba(27, 25, 22, 0.7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
@media (max-width: 640px) {
  body { background-size: 20px 20px; background-attachment: scroll; }
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px dashed var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- TYPOGRAPHY ---------- */
.h-display, .h-1, .h-2, .h-3 { font-family: var(--font-hand); font-weight: 700; }
.h-display { font-size: clamp(3.2rem, 9vw, 7rem); line-height: 0.92; letter-spacing: -0.01em; }
.h-1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.005em; }
.h-2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.04; }
.h-3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.h-4 { font-family: var(--font-hand); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
h1, h2, h3 { font-family: var(--font-hand); font-weight: 700; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; }
.mono { font-family: var(--font-mono); }
.hand { font-family: var(--font-hand); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
}
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
}
.lead.text-muted, p.lead { color: var(--muted); }
strong, b { font-weight: 700; }

/* Hand-drawn underline helper */
.underline-hand {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'><path d='M2,8 Q50,2 100,7 T198,8' stroke='%23ff5b1f' stroke-width='3' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 100% 8px;
  padding-bottom: 6px;
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 112px); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.split { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: var(--s-3); max-width: 880px; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); }
.section-head .eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); }

/* Optional decorated section heading with number + dashed rule */
.h-section { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; }
.h-section .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.h-section h2 { font-family: var(--font-hand); font-size: clamp(2rem, 4vw, 3rem); margin: 0; font-weight: 700; }
.h-section .rule { flex: 1; height: 0; border-top: 2px dashed var(--line-soft); margin-top: 10px; }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--line);
  text-decoration: none;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--line);
}
.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--line);
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--line); }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px dashed var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--accent);
}
.btn-lg { padding: 15px 30px; font-size: 1.1rem; }
.btn .arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); font-family: var(--font-hand); font-size: 1.2em; }
.btn:hover .arrow { transform: translateX(4px); }

.link-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--t-base) var(--ease), color var(--t-fast) var(--ease);
}
.link-underline:hover {
  background-size: 100% 2px;
  color: var(--accent);
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 2px solid transparent;
  transition: height var(--t-base) var(--ease), border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.site-header.is-scrolled { height: 60px; border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
  font-family: var(--font-hand);
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
}
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav-primary { display: none; align-items: center; gap: 0; }
@media (min-width: 1024px) { .nav-primary { display: flex; } }
.nav-primary > li { position: relative; }
.nav-primary > li > a, .nav-primary > li > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem; font-weight: 400;
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.nav-primary > li > a:hover, .nav-primary > li > button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--line);
}
.nav-primary .chev { width: 10px; height: 10px; transition: transform var(--t-fast) var(--ease); }
.nav-primary li:hover .chev, .nav-primary li.open .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0; pointer-events: none;
  min-width: 720px;
  background: var(--paper);
  border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  padding: var(--s-6);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  border-radius: var(--radius);
}
.nav-primary li:hover .mega, .nav-primary li.open .mega { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-6); }
.mega-col h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-3);
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1.5px dashed var(--line-soft);
}
.mega-col ul li { margin-bottom: 4px; }
.mega-col a {
  font-family: var(--font-body);
  font-size: 0.95rem; color: var(--ink);
  display: inline-block;
  padding: 3px 0;
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mega-col a:hover { color: var(--accent); transform: translateX(3px); }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }
.header-actions .btn { padding: 8px 16px !important; font-size: 0.9rem !important; box-shadow: 3px 3px 0 var(--line); }
.menu-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  border: 2px solid var(--line); background: var(--paper);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 80;
  padding: calc(var(--nav-h) + var(--s-5)) var(--gutter) var(--s-5);
  transform: translateY(-100%);
  transition: transform var(--t-base) var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu .ml-section { padding-block: var(--s-3); border-bottom: 2px dashed var(--line-soft); }
.mobile-menu .ml-section > a {
  display: flex; justify-content: space-between; padding: var(--s-3) 0;
  font-family: var(--font-hand); font-size: 2rem; font-weight: 700;
}
.mobile-menu .ml-section details { padding: var(--s-2) 0; }
.mobile-menu .ml-section summary {
  font-family: var(--font-hand); font-size: 2rem; font-weight: 700;
  padding: var(--s-3) 0; display: flex; justify-content: space-between;
  cursor: pointer; list-style: none;
}
.mobile-menu .ml-section summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 1.5rem;
  color: var(--accent); transition: transform var(--t-fast) var(--ease);
}
.mobile-menu .ml-section details[open] summary::after { transform: rotate(45deg); }
.mobile-menu .ml-children { padding-block: var(--s-2); display: grid; gap: 2px; }
.mobile-menu .ml-children a {
  color: var(--muted); font-family: var(--font-body); font-size: 1.05rem;
  padding: 6px 0;
}
.mobile-menu .ml-children a:hover { color: var(--accent); }

/* ---------- HERO BLOCKS ---------- */
.hero {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(56px, 9vw, 112px);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-family: var(--font-mono);
}
.hero-eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--accent);
}
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .accent { color: var(--accent); }
.hero h1 .word { display: inline-block; }
.hero-sub {
  margin-bottom: var(--s-6); max-width: 62ch;
  font-family: var(--font-body); font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3);
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 2px dashed var(--line-soft);
}
@media (min-width: 700px) { .hero-meta { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.hero-meta-cell { padding: 4px 0; }
.hero-meta-cell .k {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.hero-meta-cell .v {
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
}

.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(circle at 20% 20%, var(--accent-glow), transparent 42%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%);
  z-index: -1;
}

/* Hero "Direction A" boxed variant — used on index.html */
.hero-boxed {
  border: 2px solid var(--line);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--line);
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  position: relative;
  margin-top: var(--s-7);
}
.hero-boxed::after {
  content: 'wireframe-A';
  position: absolute; top: -10px; right: 18px;
  background: var(--paper); padding: 0 8px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: .08em;
}

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  padding-block: var(--s-4);
  border-block: 2px solid var(--line);
  background: var(--paper);
}
.marquee-track {
  display: flex; gap: var(--s-7);
  animation: scroll 38s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-mono);
  font-size: 0.9rem; color: var(--ink);
  white-space: nowrap; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: var(--s-3);
}
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- CARDS (sketchy) ---------- */
.card {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border: 2px solid var(--line);
  background: var(--paper);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  border-radius: var(--radius);
}
.card:nth-child(2n) { transform: rotate(0.25deg); }
.card:nth-child(3n) { transform: rotate(-0.25deg); }
.card:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: 6px 6px 0 var(--accent);
}
.card h3, .card .h-4 { margin-bottom: var(--s-3); font-family: var(--font-hand); }
.card p { color: var(--muted); font-family: var(--font-body); }
.card .card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4); color: var(--accent);
  font-family: var(--font-mono); font-size: 1.3rem;
}
/* Inline SVG icons sit cleanly inside the mono/box icon chips */
.card-icon svg { width: 26px; height: 26px; display: block; }
.feature-card .feature-icon svg { width: 22px; height: 22px; display: block; }
.industry-tile .icon svg { width: 28px; height: 28px; display: block; }
.tile .ico svg { width: 24px; height: 24px; display: block; }
.card-list { margin-top: var(--s-4); display: grid; gap: 6px; padding-top: var(--s-3); border-top: 1.5px dashed var(--line-soft); }
.card-list li {
  font-family: var(--font-body);
  font-size: 0.95rem; color: var(--ink);
  padding-left: 18px; position: relative;
}
.card-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-family: var(--font-mono); font-weight: 700;
}

/* ---------- STATS ---------- */
.stats-band {
  display: grid; gap: 0;
  border: 2px solid var(--line);
  background: var(--paper);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) { .stats-band { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: var(--s-7) var(--s-5);
  text-align: left;
  border-right: 2px dashed var(--line-soft);
  border-bottom: 2px dashed var(--line-soft);
}
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 700px) {
  .stat { border-bottom: 0; border-right: 2px dashed var(--line-soft); }
  .stat:nth-child(2n) { border-right: 2px dashed var(--line-soft); }
  .stat:last-child { border-right: 0; }
}
.stat .num {
  font-family: var(--font-hand);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); line-height: 0.95; margin-bottom: var(--s-2);
}
.stat .num .accent { color: var(--accent); }
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- PROJECT CARD ---------- */
.project-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 700px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card {
  position: relative; display: block; overflow: hidden;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.project-card:nth-child(2n) { transform: rotate(0.2deg); }
.project-card:nth-child(3n) { transform: rotate(-0.2deg); }
.project-card:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 6px 6px 0 var(--line); }
.project-thumb {
  aspect-ratio: 16/10; overflow: hidden;
  background: var(--paper-2);
  border-bottom: 2px solid var(--line);
  position: relative;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-thumb .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--grid) 8px 9px);
}
.project-body { padding: var(--s-5); }
.project-cat {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.project-card h3 {
  font-family: var(--font-hand);
  font-size: 1.7rem; font-weight: 700;
  margin-bottom: 6px;
}
.project-card p {
  font-family: var(--font-body);
  font-size: 0.98rem; color: var(--muted); line-height: 1.45;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1.5px dashed var(--line-soft); }
.project-tags .tag {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink); background: var(--paper);
}

/* Project filters */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-bottom: var(--s-7);
  padding: var(--s-3);
  border: 2px dashed var(--line-soft);
  border-radius: var(--radius);
}
.filter-chip {
  padding: 7px 16px; border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.92rem; letter-spacing: 0;
  color: var(--ink); background: var(--paper);
  transition: all var(--t-fast) var(--ease);
}
.filter-chip.is-active, .filter-chip:hover {
  background: var(--accent); color: #fff; border-color: var(--line);
  transform: rotate(-0.5deg);
}

/* ---------- PROCESS STEPS ---------- */
.process-list { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  padding: var(--s-6) var(--s-5);
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  position: relative;
}
.process-step:nth-child(odd) { box-shadow: 4px 4px 0 var(--accent); }
.process-step:nth-child(even) { box-shadow: 4px 4px 0 var(--line); }
.process-step .num {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: var(--s-4);
}
.process-step h3 {
  font-family: var(--font-hand);
  font-size: 1.6rem; margin-bottom: var(--s-2);
  font-weight: 700;
}
.process-step p { font-family: var(--font-body); font-size: 0.98rem; color: var(--muted); }

/* ---------- BENTO ---------- */
.bento { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(160px, auto); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bento .tile {
  padding: var(--s-5);
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.bento .tile:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--accent); }
.bento .tile.wide { grid-column: span 2; }
.bento .tile.tall { grid-row: span 2; }
.bento .tile .ico { font-size: 1.6rem; color: var(--accent); }

/* ---------- ACCORDION ---------- */
.accordion {
  display: grid; gap: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.acc-item { background: var(--paper); border-bottom: 1.5px dashed var(--line-soft); }
.acc-item:last-child { border-bottom: 0; }
.acc-trigger {
  width: 100%; text-align: left;
  padding: var(--s-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-family: var(--font-hand);
  font-size: 1.4rem; font-weight: 700; color: var(--ink);
  transition: background-color var(--t-fast) var(--ease);
}
.acc-trigger:hover { background: var(--paper-2); }
.acc-trigger .icon {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--t-base) var(--ease), background-color var(--t-fast) var(--ease);
  flex-shrink: 0;
  font-family: var(--font-mono);
  background: var(--paper);
}
.acc-trigger[aria-expanded="true"] .icon { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--line); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t-base) var(--ease); }
.acc-panel-inner {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--muted); max-width: 70ch;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.55;
}

/* ---------- TESTIMONIAL ---------- */
.pull-quote {
  padding: clamp(40px, 6vw, 80px) var(--s-5);
  border-block: 2px dashed var(--line-soft);
  background: var(--paper);
}
.pull-quote .quote-mark {
  font-family: var(--font-hand);
  font-size: 5rem; color: var(--accent); line-height: 0.5;
}
.pull-quote .quote {
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.005em;
  line-height: 1.2; max-width: 32ch;
  margin-block: var(--s-5);
}
.pull-quote .cite { display: flex; align-items: center; gap: var(--s-3); }
.pull-quote .cite .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700;
  font-family: var(--font-hand); font-size: 1.3rem;
}
.pull-quote .cite .name { font-family: var(--font-body); font-weight: 700; }
.pull-quote .cite .role { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }

/* ---------- FLOATING UI ---------- */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.f-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.f-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--line); }
.f-btn.f-top {
  background: var(--accent); color: #fff; border-color: var(--line);
  opacity: 0; visibility: hidden; transform: scale(0.6);
}
.f-btn.f-top.is-visible { opacity: 1; visibility: visible; transform: scale(1); }
.f-btn.f-wa { background: #25D366; color: #fff; border-color: var(--line); }
.f-btn.f-theme svg { width: 20px; height: 20px; }
[data-theme="dark"] .f-btn.f-theme .sun { display: block; }
[data-theme="dark"] .f-btn.f-theme .moon { display: none; }
.f-btn.f-theme .sun { display: none; }
.f-btn.f-theme .moon { display: block; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--paper);
  border-top: 2px solid var(--line);
  padding-block: var(--s-9) var(--s-5);
  margin-top: var(--s-8);
  position: relative;
}
.footer-grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand .brand { font-size: 1.8rem; margin-bottom: var(--s-3); }
.footer-brand p {
  font-family: var(--font-body);
  color: var(--ink); max-width: 32ch; margin-bottom: var(--s-4);
  font-size: 1rem; line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--s-4);
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1.5px dashed var(--line-soft);
}
.footer-col ul { display: grid; gap: 6px; }
.footer-col a { font-family: var(--font-body); color: var(--ink); font-size: 0.98rem; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding-top: var(--s-5); margin-top: var(--s-7);
  border-top: 2px dashed var(--line-soft);
  color: var(--muted); font-size: 0.82rem; font-family: var(--font-mono);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }
.newsletter { display: flex; gap: 8px; margin-top: var(--s-3); }
.newsletter input {
  flex: 1; min-width: 0;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-body);
}
.newsletter input:focus { outline: none; border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.newsletter button {
  padding: 11px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--accent);
}
.newsletter button:hover { transform: translate(-1px, -1px); }

/* ---------- BREADCRUMBS ---------- */
.crumbs { padding-top: calc(var(--nav-h) + var(--s-4)); padding-bottom: 0; }
.crumbs-list {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.crumbs-list a { color: var(--muted); transition: color var(--t-fast) var(--ease); }
.crumbs-list a:hover { color: var(--accent); }
.crumbs-list .sep { color: var(--line-soft); }
.crumbs-list .current { color: var(--ink); }

/* ---------- CLUSTER PAGE ----------
   Distinct "spec sheet / blueprint" hero archetype for the 54 service,
   industry and case-study pages — visually separate from the bold hub
   .hero, but built from the same palette, fonts and sketch language. */
.cluster-hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.cluster-hero .container { position: relative; }
/* blueprint left rule + corner tick on the hero copy */
.cluster-hero .container::before {
  content: '';
  position: absolute; left: calc(var(--gutter) * -0.5); top: 6px; bottom: 6px;
  width: 3px; background: var(--accent);
  border-radius: 2px;
}
@media (max-width: 900px) { .cluster-hero .container::before { left: 0; width: 2px; } }
.cluster-hero h1 { margin-bottom: var(--s-4); }
.cluster-hero p.lead { margin-bottom: var(--s-5); }
.cluster-hero .hero-eyebrow { margin-bottom: var(--s-4); }
/* faint dotted-grid wash sits behind the cluster hero only */
.cluster-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-ghost) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
}
.cluster-at-glance {
  display: grid; gap: 0;
  border: 2px solid var(--line);
  background: var(--paper);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) { .cluster-at-glance { grid-template-columns: repeat(4, 1fr); } }
.at-glance-item {
  padding: var(--s-6) var(--s-5);
  border-right: 2px dashed var(--line-soft);
  border-bottom: 2px dashed var(--line-soft);
}
.at-glance-item:nth-child(2n) { border-right: 0; }
@media (min-width: 700px) {
  .at-glance-item { border-bottom: 0; border-right: 2px dashed var(--line-soft); }
  .at-glance-item:nth-child(2n) { border-right: 2px dashed var(--line-soft); }
  .at-glance-item:last-child { border-right: 0; }
}
.at-glance-val {
  font-family: var(--font-hand);
  font-size: 2.4rem; font-weight: 700;
  color: var(--accent); margin-bottom: 4px;
  letter-spacing: -0.01em; line-height: 1;
}
.at-glance-lbl {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

.feature-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  padding: var(--s-5);
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  display: flex; gap: var(--s-4);
}
.feature-card:nth-child(2n) { transform: rotate(0.2deg); }
.feature-card:nth-child(3n) { transform: rotate(-0.2deg); }
.feature-card .feature-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 2px solid var(--line);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem;
}
.feature-card h3 { font-family: var(--font-hand); font-size: 1.3rem; margin-bottom: 6px; }
.feature-card p { font-family: var(--font-body); color: var(--muted); font-size: 0.95rem; }

.related-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: block; padding: var(--s-5);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.related-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--accent);
}
.related-card h4 { font-family: var(--font-hand); font-size: 1.4rem; margin-bottom: 4px; }
.related-card p { font-family: var(--font-body); color: var(--muted); font-size: 0.92rem; }
.related-card .arrow {
  color: var(--accent); margin-top: var(--s-2); display: inline-block;
  font-family: var(--font-hand); font-size: 1.4rem;
}

/* Comparison table */
.compare-table {
  width: 100%; border-collapse: collapse;
  border: 2px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper);
  font-family: var(--font-body);
}
.compare-table th, .compare-table td {
  padding: var(--s-3) var(--s-4); text-align: left;
  border-bottom: 1.5px dashed var(--line-soft);
  font-size: 0.95rem;
}
.compare-table th {
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
}
.compare-table .ok { color: var(--accent); font-weight: 700; }
.compare-table .no { color: var(--muted); }

/* ---------- CONTACT FORM ---------- */
.form-row { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
@media (min-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label {
  display: block; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-body);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent);
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- INDUSTRIES BENTO ---------- */
.industry-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 600px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-tile {
  display: block; padding: var(--s-5);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  position: relative; overflow: hidden;
}
.industry-tile:nth-child(2n) { transform: rotate(0.3deg); }
.industry-tile:nth-child(3n) { transform: rotate(-0.3deg); }
.industry-tile:nth-child(5n) { transform: rotate(0.2deg); }
.industry-tile:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 6px 6px 0 var(--accent); }
.industry-tile .icon {
  font-size: 1.8rem; margin-bottom: var(--s-3);
  width: 44px; height: 44px;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-2); color: var(--accent);
}
.industry-tile h3 { font-family: var(--font-hand); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.industry-tile p { font-family: var(--font-body); color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA BAND ---------- */
.cta-band {
  padding-block: clamp(64px, 9vw, 112px);
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-block: 2px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-band h2, .cta-band .h-2, .cta-band .h-1 { margin-bottom: var(--s-4); position: relative; color: #fff; }
.cta-band p, .cta-band .lead { margin-bottom: var(--s-6); max-width: 50ch; margin-inline: auto; position: relative; color: rgba(255,255,255,0.92); }
.cta-band .hero-ctas { justify-content: center; position: relative; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.cta-band .btn-primary { background: var(--ink); color: var(--paper); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #fff; border-style: dashed; box-shadow: none; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--accent); }

/* ---------- HORIZONTAL SCROLL ---------- */
.h-scroll {
  overflow-x: auto; padding-block: var(--s-3);
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.h-scroll-track { display: flex; gap: var(--s-4); padding-inline: var(--gutter); }
.h-scroll-item {
  flex: 0 0 320px; scroll-snap-align: start;
  padding: var(--s-5);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* ---------- LOGO MARQUEE ---------- */
.logo-row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: var(--s-7); padding: var(--s-5);
  opacity: 0.85;
}
.logo-row .logo {
  font-family: var(--font-mono);
  font-size: 0.88rem; color: var(--muted);
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border: 1.5px dashed var(--line-soft);
  border-radius: var(--radius-pill);
}

/* ---------- SKELETON ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--paper-2) 0%, color-mix(in srgb, var(--paper-2) 80%, var(--accent-glow)) 50%, var(--paper-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- REVEALS ----------
   Hidden states are gated behind html.js so that, with JavaScript disabled
   or unavailable (e.g. opened straight from the file system), every section
   stays fully visible. JS adds the `js` class in <head> before first paint. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

/* Split text */
.split-line { overflow: visible; }
.split-line .word { display: inline-block; }
.js .split-line .word { opacity: 0; transform: translateY(80%); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .is-in .split-line .word { opacity: 1; transform: translateY(0); }
.split-line .word:nth-child(1) { transition-delay: 50ms; }
.split-line .word:nth-child(2) { transition-delay: 120ms; }
.split-line .word:nth-child(3) { transition-delay: 190ms; }
.split-line .word:nth-child(4) { transition-delay: 260ms; }
.split-line .word:nth-child(5) { transition-delay: 330ms; }
.split-line .word:nth-child(6) { transition-delay: 400ms; }
.split-line .word:nth-child(7) { transition-delay: 470ms; }
.split-line .word:nth-child(8) { transition-delay: 540ms; }
.split-line .word:nth-child(9) { transition-delay: 610ms; }
.split-line .word:nth-child(10) { transition-delay: 680ms; }

/* Cursor follower */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid #fff; border-radius: 50%; transition: width var(--t-fast) var(--ease), height var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.cursor-ring.is-hover { width: 56px; height: 56px; background: rgba(255,255,255,0.08); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* Page transition overlay */
.page-transition { position: fixed; inset: 0; background: var(--accent); transform: translateY(100%); z-index: 200; pointer-events: none; will-change: transform; }
.page-transition.is-out { transition: transform 500ms var(--ease); transform: translateY(0); }
.page-transition.is-in { transition: transform 500ms var(--ease); transform: translateY(-100%); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .split-line .word { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- UTILITIES ---------- */
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.max-prose { max-width: 65ch; }
.flex { display: flex; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-4 { margin-bottom: var(--s-4); }
.pad-row { padding-block: var(--s-5); }

/* About — tech stack constellation (sketchy pills) */
.constellation { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-5) 0; }
.constellation .chip {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  transition: all var(--t-fast) var(--ease);
}
.constellation .chip:hover {
  color: #fff; background: var(--accent); border-color: var(--line);
  transform: rotate(-1deg);
}
.constellation .chip:nth-child(3n) { transform: rotate(0.5deg); }
.constellation .chip:nth-child(5n) { transform: rotate(-0.5deg); }

/* Timeline */
.timeline {
  position: relative;
  padding-left: var(--s-6);
  border-left: 2px dashed var(--line-soft);
  display: grid; gap: var(--s-6);
}
.t-item { position: relative; }
.t-item::before {
  content: ''; position: absolute;
  left: calc(-1 * var(--s-6) - 5px); top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--line);
  box-shadow: 0 0 0 4px var(--paper);
}
.t-item .when {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 4px;
}
.t-item h3 { font-family: var(--font-hand); font-size: 1.5rem; margin-bottom: 4px; }
.t-item p { font-family: var(--font-body); color: var(--muted); font-size: 0.98rem; }

/* Service tabs (services.html) */
.tabs { display: grid; gap: var(--s-3); }
.tab-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 2px dashed var(--line-soft);
}
.tab-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--line);
  transition: all var(--t-fast) var(--ease);
  box-shadow: 2px 2px 0 var(--line);
}
.tab-btn.is-active, .tab-btn:hover {
  background: var(--accent); color: #fff; border-color: var(--line);
  transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line);
}
.tab-panel { display: none; padding-top: var(--s-5); }
.tab-panel.is-active { display: block; animation: fadeIn 300ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================================
   DIRECTION VARIANTS — applied per-page to differentiate layouts
   ============================================================= */

/* Direction A — boxed/agency feel (index.html) */
.dir-A .section { padding-block: clamp(48px, 8vw, 96px); }

/* Direction B — editorial sidebar (about.html, services.html) */
.editorial-wrap {
  display: grid;
  gap: 0;
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .editorial-wrap { grid-template-columns: 260px 1fr; }
}
.editorial-side {
  padding: var(--s-6) var(--s-5);
  border-bottom: 2px solid var(--line);
}
@media (min-width: 1024px) {
  .editorial-side {
    border-bottom: 0;
    border-right: 2px solid var(--line);
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    align-self: flex-start;
    height: calc(100vh - var(--nav-h) - 40px);
    overflow-y: auto;
  }
}
.editorial-side .name {
  font-family: var(--font-hand);
  font-size: 2.4rem; line-height: 1; font-weight: 700;
  margin-bottom: 6px;
}
.editorial-side .name .accent { color: var(--accent); }
.editorial-side .role {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--muted);
  margin-bottom: var(--s-5); line-height: 1.5;
  letter-spacing: 0.08em;
}
.editorial-side .toc {
  border-top: 1.5px dashed var(--line-soft);
  padding-top: var(--s-4);
}
.editorial-side .toc-h {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  margin-bottom: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
}
.editorial-side .toc a {
  display: flex; justify-content: space-between;
  font-family: var(--font-body);
  font-size: 1rem; color: var(--ink);
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-soft);
  transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.editorial-side .toc a:hover { color: var(--accent); padding-left: 6px; }
.editorial-side .toc a .n { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.editorial-side .signal {
  border: 2px solid var(--line);
  padding: 12px;
  margin-top: var(--s-4);
  background: var(--accent); color: #fff;
  font-family: var(--font-body); font-size: 0.9rem;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--line);
}
.editorial-side .signal .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; margin-right: 6px; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.editorial-main { padding: var(--s-6) var(--s-5); }
@media (min-width: 1024px) {
  .editorial-main { padding: var(--s-7); }
}
.editorial-main > .section { padding-block: var(--s-7); border-bottom: 2px dashed var(--line-soft); }
.editorial-main > .section:last-child { border-bottom: 0; }
.editorial-main > .section .container { padding-inline: 0; max-width: 100%; }

/* Direction-B service list (used on services.html) */
.svc-list { display: grid; gap: 0; }
.svc-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: var(--s-4); align-items: center;
  padding: var(--s-4) var(--s-3);
  border-bottom: 1.5px dashed var(--line-soft);
  transition: background var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
  color: var(--ink);
}
@media (min-width: 700px) {
  .svc-row { grid-template-columns: 60px 220px 1fr auto; padding: var(--s-5) var(--s-4); }
}
.svc-row:hover {
  background: var(--accent); color: #fff;
  padding-left: var(--s-5);
}
.svc-row:hover h3, .svc-row:hover p, .svc-row:hover .num, .svc-row:hover .arr { color: #fff; }
.svc-row .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.svc-row h3 { font-family: var(--font-hand); font-size: 1.6rem; margin: 0; font-weight: 700; }
.svc-row p { font-family: var(--font-body); font-size: 0.95rem; margin: 0; line-height: 1.4; color: var(--muted); }
.svc-row .arr { font-family: var(--font-hand); font-size: 1.8rem; color: var(--accent); }

/* Direction C — Data board grid (projects.html) */
.data-board {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(120px, auto);
  gap: var(--s-3);
}
@media (min-width: 700px) {
  .data-board { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1024px) {
  .data-board { grid-template-columns: repeat(12, 1fr); }
}
.data-tile {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.data-tile .ttl {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: var(--s-2);
}
@media (min-width: 1024px) {
  .data-tile.span-8 { grid-column: span 8; }
  .data-tile.span-6 { grid-column: span 6; }
  .data-tile.span-4 { grid-column: span 4; }
  .data-tile.span-3 { grid-column: span 3; }
  .data-tile.span-2 { grid-column: span 2; }
  .data-tile.row-2 { grid-row: span 2; }
  .data-tile.row-3 { grid-row: span 3; }
  .data-tile.row-4 { grid-row: span 4; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .data-tile.span-8 { grid-column: span 6; }
  .data-tile.span-6 { grid-column: span 6; }
  .data-tile.span-4 { grid-column: span 3; }
  .data-tile.span-3 { grid-column: span 3; }
  .data-tile.span-2 { grid-column: span 3; }
}
.data-tile.accent { background: var(--accent); color: #fff; border-color: var(--line); }
.data-tile.accent .ttl { color: rgba(255,255,255,0.75); }
.data-tile.ink { background: var(--ink); color: var(--paper); border-color: var(--line); }
.data-tile.ink .ttl { color: var(--muted); }
.data-tile .big-n {
  font-family: var(--font-hand);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 0.95;
}
.data-tile .big-n .accent { color: var(--accent); }

/* Process timeline (horizontal, sketchy) — used on about & services pages */
.process-track {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: var(--s-6) var(--s-5);
  position: relative;
}
.process-track-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  position: relative;
}
@media (min-width: 800px) {
  .process-track-inner { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .process-track-inner::before {
    content: ''; position: absolute;
    top: 24px; left: 6%; right: 6%; height: 0;
    border-top: 2px dashed var(--line-soft);
    z-index: 0;
  }
}
.process-track-inner .step { position: relative; padding: 0 var(--s-3); text-align: center; z-index: 1; }
.process-track-inner .step .dot {
  width: 48px; height: 48px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.4rem;
  margin: 0 auto var(--s-3);
}
.process-track-inner .step:nth-child(odd) .dot { background: var(--accent); color: #fff; }
.process-track-inner .step h4 { font-family: var(--font-hand); font-size: 1.3rem; margin-bottom: 4px; font-weight: 700; }
.process-track-inner .step p { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.process-track-inner .step .dur {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); display: block; margin-top: 4px;
  letter-spacing: 0.08em;
}

/* Engagement-models cards (used on services and contact) */
.engage-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .engage-grid { grid-template-columns: repeat(3, 1fr); } }
.engage-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  background: var(--paper);
  position: relative;
}
.engage-card.featured {
  background: var(--accent); color: #fff;
  box-shadow: 6px 6px 0 var(--line);
}
.engage-card.featured .ttl { color: rgba(255,255,255,0.85); }
.engage-card.featured ul li::before { color: rgba(255,255,255,0.95); }
.engage-card .ttl { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.engage-card h3 { font-family: var(--font-hand); font-size: 1.8rem; font-weight: 700; margin: 4px 0 6px; line-height: 1; }
.engage-card .desc { font-family: var(--font-body); font-size: 0.98rem; margin-bottom: var(--s-3); }
.engage-card ul { list-style: none; padding: 0; margin: 0 0 var(--s-3); border-top: 1.5px dashed currentColor; padding-top: var(--s-3); }
.engage-card.featured ul { border-color: rgba(255,255,255,0.4); }
.engage-card ul li { font-family: var(--font-body); font-size: 0.95rem; padding: 3px 0 3px 20px; position: relative; }
.engage-card ul li::before { content: '✓'; position: absolute; left: 0; font-family: var(--font-mono); font-weight: 700; color: var(--accent); }
.engage-card .price { font-family: var(--font-hand); font-size: 1.5rem; font-weight: 700; }
.engage-card .badge {
  position: absolute; top: -10px; right: 14px;
  background: var(--paper); color: var(--accent);
  border: 2px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 8px; letter-spacing: 0.1em;
  transform: rotate(2deg); border-radius: var(--radius-sm);
}

/* FAQ — used everywhere */
.faq {
  border: 2px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq .q-row {
  border-bottom: 1.5px dashed var(--line-soft);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.faq .q-row:last-child { border-bottom: 0; }
.faq .q-row:hover { background: var(--paper-2); }
.faq .q { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.faq .q .q-text { font-family: var(--font-hand); font-size: 1.35rem; font-weight: 700; }
.faq .q .plus { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent); transition: transform 200ms var(--ease); flex-shrink: 0; }
.faq .q-row.open .plus { transform: rotate(45deg); }
.faq .a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--t-base) var(--ease), margin-top var(--t-base) var(--ease);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.5;
  color: var(--muted);
}
.faq .q-row.open .a { max-height: 400px; margin-top: 10px; }

/* Awards / Press */
.awards-row { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .awards-row { grid-template-columns: repeat(4, 1fr); } }
.award-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-4);
  background: var(--paper);
  text-align: center;
}
.award-card .yr { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; }
.award-card .badge-ic {
  width: 48px; height: 48px;
  border: 2px solid var(--line);
  border-radius: 50%;
  margin: 10px auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-size: 1.4rem; font-weight: 700;
  background: var(--paper-2);
}
.award-card h4 { font-family: var(--font-hand); font-size: 1.2rem; margin: 4px 0; font-weight: 700; line-height: 1.1; }
.award-card .src { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* Annotation labels (hand-drawn callouts) */
.anno {
  font-family: var(--font-hand);
  color: var(--accent);
  font-size: 1.2rem;
}

/* Box-label (decorative tag on top edge of boxes) */
.box-label {
  position: absolute; top: -10px; left: 14px;
  background: var(--paper);
  font-family: var(--font-mono); font-size: 10px;
  padding: 0 6px; color: var(--muted);
  letter-spacing: 0.06em;
}

/* Helpful for prose-style sections */
.prose p { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.65; margin-bottom: var(--s-4); }
.prose h2 { font-family: var(--font-hand); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: var(--s-7) 0 var(--s-4); font-weight: 700; }
.prose h3 { font-family: var(--font-hand); font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: var(--s-6) 0 var(--s-3); font-weight: 700; }
.prose ul, .prose ol { padding-left: var(--s-5); margin-bottom: var(--s-4); }
.prose ul li, .prose ol li { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 6px; line-height: 1.55; }
.prose ul li { list-style: none; padding-left: 18px; position: relative; }
.prose ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.prose ol { list-style: decimal; }

/* Service section anchor offset for sticky header */
:target { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* ---------- MOBILE TWEAKS ---------- */
@media (max-width: 640px) {
  .hero-meta { gap: var(--s-3); }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .data-board { gap: var(--s-2); }
  .floating { right: 12px; bottom: 12px; gap: 8px; }
  .f-btn { width: 42px; height: 42px; }
  .btn-lg { padding: 13px 22px; font-size: 1rem; }
  .pull-quote .quote { font-size: 1.5rem; max-width: 28ch; }
  .editorial-side { padding: var(--s-5) var(--s-4); }
  .editorial-main { padding: var(--s-5) var(--s-4); }
}

/* =============================================================
   BLOG  — listing + long-form article (its own visual archetype:
   reading-progress bar, sticky table of contents, takeaways,
   pull quotes, inline CTAs, author box, prev/next). Built to hold
   attention and cut bounce.
   ============================================================= */

/* ---- Reading progress bar (article pages) ---- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: var(--accent); z-index: 120;
  transition: width 80ms linear;
}

/* ---- Blog listing ---- */
.blog-featured {
  display: grid; grid-template-columns: 1fr; gap: var(--s-6);
  border: 2px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--paper); border-radius: var(--radius);
  overflow: hidden; margin-top: var(--s-6);
}
@media (min-width: 900px) { .blog-featured { grid-template-columns: 1.1fr 1fr; align-items: stretch; } }
.blog-featured .bf-media {
  min-height: 220px; position: relative;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 9px, var(--line-ghost) 9px 10px);
  border-bottom: 2px solid var(--line);
}
@media (min-width: 900px) { .blog-featured .bf-media { border-bottom: 0; border-right: 2px solid var(--line); } }
.blog-featured .bf-media .badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 5px 10px; border: 2px solid var(--line);
}
.blog-featured .bf-body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.blog-featured .bf-body h2 { font-family: var(--font-hand); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; margin-bottom: var(--s-3); }
.blog-featured .bf-body p { color: var(--muted); margin-bottom: var(--s-4); }

.blog-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; margin-top: var(--s-6); }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: flex; flex-direction: column;
  border: 2px solid var(--line); background: var(--paper);
  border-radius: var(--radius); padding: var(--s-5);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  text-decoration: none;
}
.blog-card:nth-child(3n) { transform: rotate(-0.3deg); }
.blog-card:nth-child(3n-1) { transform: rotate(0.3deg); }
.blog-card:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 6px 6px 0 var(--accent); }
.post-cat {
  display: inline-block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: var(--radius-pill);
  padding: 3px 10px; margin-bottom: var(--s-3); align-self: flex-start;
}
.blog-card h3 { font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.05; margin-bottom: var(--s-2); }
.blog-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.blog-card .post-meta { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1.5px dashed var(--line-soft); }

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.post-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* ---- Article page ---- */
.post-hero { padding-top: clamp(48px, 6vw, 84px); padding-bottom: var(--s-5); }
.post-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; margin: var(--s-3) 0 var(--s-4); max-width: 20ch; }
.post-hero .post-lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--muted); max-width: 60ch; }

.article-layout { display: grid; grid-template-columns: 1fr; gap: var(--s-7); align-items: start; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 240px minmax(0, 1fr); } }

.post-toc { position: relative; }
@media (min-width: 1000px) {
  .post-toc { position: sticky; top: calc(var(--nav-h) + 20px); }
}
.post-toc .toc-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3); }
.post-toc ol { list-style: none; border-left: 2px dashed var(--line-soft); }
.post-toc li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.92rem; color: var(--muted); transition: color var(--t-fast), border-color var(--t-fast);
}
.post-toc li a:hover { color: var(--ink); }
.post-toc li a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 700; }
@media (max-width: 999px) {
  .post-toc { border: 2px dashed var(--line-soft); border-radius: var(--radius); padding: var(--s-4); }
  .post-toc ol { border-left: 0; }
  .post-toc li a { padding-left: 0; border-left: 0; }
}

/* Article body typography */
.post-body { max-width: 70ch; font-size: 1.08rem; line-height: 1.75; }
.post-body > * + * { margin-top: var(--s-5); }
.post-body h2 { font-family: var(--font-hand); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin-top: var(--s-8); scroll-margin-top: calc(var(--nav-h) + 20px); }
.post-body h3 { font-family: var(--font-hand); font-size: 1.5rem; margin-top: var(--s-6); }
.post-body p, .post-body li { color: var(--ink); }
.post-body a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: var(--s-2); }
.post-body strong { font-weight: 700; }

/* Key takeaways callout */
.takeaways {
  border: 2px solid var(--line); border-left: 6px solid var(--accent);
  background: var(--paper-2); border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
}
.takeaways .tk-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3); }
.takeaways ul { list-style: none; padding-left: 0; }
.takeaways li { position: relative; padding-left: 26px; }
.takeaways li + li { margin-top: var(--s-2); }
.takeaways li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-hand); font-weight: 700; }

/* Pull quote */
.post-body blockquote {
  border: 0; border-top: 2px dashed var(--line-soft); border-bottom: 2px dashed var(--line-soft);
  padding: var(--s-5) 0; margin-block: var(--s-6);
  font-family: var(--font-hand); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2;
}
.post-body blockquote p { color: var(--ink); }

/* Inline CTA strip inside articles */
.inline-cta {
  border: 2px solid var(--line); box-shadow: var(--shadow-md);
  background: var(--paper); border-radius: var(--radius);
  padding: var(--s-5) var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
}
.inline-cta .ic-text { font-family: var(--font-hand); font-size: 1.4rem; max-width: 38ch; }

/* Author box */
.author-box {
  display: flex; gap: var(--s-4); align-items: flex-start;
  border: 2px solid var(--line); border-radius: var(--radius); padding: var(--s-5);
  background: var(--paper-2);
}
.author-box .avatar {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.6rem; color: var(--accent); background: var(--paper);
}
.author-box h4 { font-family: var(--font-hand); font-size: 1.4rem; margin-bottom: 2px; }
.author-box p { color: var(--muted); font-size: 0.95rem; }

/* Prev / next */
.post-nav { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a {
  border: 2px solid var(--line); border-radius: var(--radius); padding: var(--s-5);
  background: var(--paper); transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.post-nav a:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-md); }
.post-nav .pn-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.post-nav .pn-title { font-family: var(--font-hand); font-size: 1.3rem; margin-top: 4px; }
.post-nav a.next { text-align: right; }

/* Print-friendly */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .floating, .marquee, .cta-band, .page-transition, .reading-progress, .post-toc { display: none !important; }
}
