/* ----------------------------------------------------------------
   pawon.dev — first-draft design
   Editorial / restrained / engineer-meets-operator
   ---------------------------------------------------------------- */

/* Tokens */
:root {
  /* Palette */
  --bg:         #F7F6F2;
  --bg-alt:     #EFEDE5;
  --ink:        #0B0B0B;
  --ink-soft:   #4A4A4A;
  --ink-mute:   #8A8A85;
  --rule:       rgba(11, 11, 11, 0.08);
  --accent:     #14532D;
  --accent-bg:  rgba(20, 83, 45, 0.12);

  /* Type */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --gutter:        24px;
  --max-width:     1180px;
  --section-pad-y: 96px;

  --radius: 4px;
  --transition: 180ms ease;
}

@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --section-pad-y: 144px;
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 80px; }
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo span { color: var(--accent); font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}
@media (min-width: 640px) {
  .nav { gap: 28px; font-size: 15px; }
}

.nav__cta {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.nav__cta:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
}
@media (min-width: 768px) {
  .hero {
    padding-top: 144px;
    padding-bottom: 144px;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  background: var(--bg);
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(44px, 7.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 16ch;
  margin-bottom: 32px;
  color: var(--ink);
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero__sub em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition),
              color var(--transition),
              border-color var(--transition);
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn--ghost {
  border-color: var(--rule);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--large {
  padding: 18px 28px;
  font-size: 16px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.link-arrow::after {
  content: '→';
  margin-left: 8px;
  display: inline-block;
  transition: transform var(--transition);
}
.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.link-arrow:hover::after { transform: translateX(4px); }

.inline-link {
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
}
.inline-link:hover { color: var(--accent); }

/* ---------- Problem ---------- */
.problem__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 36ch;
  color: var(--ink-soft);
}
@media (min-width: 768px) { .problem__list { max-width: 48ch; } }

.problem__list li {
  position: relative;
  padding-left: 36px;
}
.problem__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 22px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Services grid ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
}

.service {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .service { padding: 56px; gap: 16px; }
}

.service__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.service__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.service p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.service .link-arrow {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 8px;
}

/* ---------- Work / case studies ---------- */
.work__list {
  display: flex;
  flex-direction: column;
}
.case {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.case:last-child { border-bottom: 1px solid var(--rule); }

@media (min-width: 768px) {
  .case {
    grid-template-columns: 220px 1fr;
    gap: 56px;
    padding: 56px 0;
  }
}

.case__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: uppercase;
  line-height: 1.5;
  padding-top: 4px;
}
.case__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  max-width: 28ch;
  color: var(--ink);
}
.case p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 60ch;
}

/* ---------- Operator perspective ---------- */
.operator__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 880px) {
  .operator__inner {
    grid-template-columns: 5fr 6fr;
    gap: 96px;
    align-items: start;
  }
}
.operator__lead p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 24px;
  max-width: 48ch;
}
.operator__list {
  border-top: 1px solid var(--rule);
}
.operator__list li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.operator__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
}
.operator__list li span {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- How I work ---------- */
.how__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .how__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .how__steps { grid-template-columns: repeat(4, 1fr); }
}

.how__steps li {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.how__steps h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.how__steps p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- About ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) {
  .about__inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 96px;
  }
}
.about__text p {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 24px 0;
  max-width: 56ch;
}
.about__photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 260px;
  justify-self: start;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Writing / articles ---------- */
.articles {
  border-top: 1px solid var(--rule);
}
.articles li { border-bottom: 1px solid var(--rule); }
.articles a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 26px 0;
  align-items: baseline;
}
@media (min-width: 768px) {
  .articles a {
    grid-template-columns: 140px 1fr 80px;
    gap: 32px;
    padding: 32px 0;
  }
}
.articles__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.articles__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--transition);
  line-height: 1.3;
}
.articles__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (min-width: 768px) {
  .articles__tag { text-align: right; }
}
.articles a:hover .articles__title { color: var(--accent); }

/* ---------- CTA (dark moment) ---------- */
.cta {
  background: var(--ink);
  color: var(--bg);
  border-top: none;
}
.cta .eyebrow { color: var(--ink-mute); }

.cta__inner {
  text-align: left;
  max-width: 760px;
}

.cta__title {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.cta__sub {
  font-size: 18px;
  color: rgba(247, 246, 242, 0.7);
  margin-bottom: 40px;
  max-width: 56ch;
}
.cta__email {
  font-size: 18px;
  color: rgba(247, 246, 242, 0.85);
  margin-top: 0;
}
.cta__email a {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--bg);
  border-bottom: 1px solid rgba(247, 246, 242, 0.35);
  padding-bottom: 2px;
  transition: border-color var(--transition);
}
.cta__email a:hover {
  border-bottom-color: var(--bg);
  color: var(--bg);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--rule);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
  }
}

.site-footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.site-footer__col ul li { padding: 4px 0; }
.site-footer__col ul a { font-size: 15px; }
.site-footer__tag {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 8px;
}

.site-footer__col--bottom {
  grid-column: 1 / -1;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Focus states ---------- */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ================================================================
   v3 — additions for multi-page build
   Append-only. Existing rules above remain in use.
   Vite + Tailwind are intentionally dormant — styles ship via this
   hand-rolled stylesheet, loaded statically by the layout.
   ================================================================ */

/* ---------- Flow cards (home) ---------- */
.flow-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 880px) {
  .flow-cards { grid-template-columns: 1.4fr 1fr; }
}

.flow-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 768px) { .flow-card { padding: 56px; } }

.flow-card--primary { background: var(--accent-bg); }
.flow-card--primary .flow-card__title { font-size: clamp(28px, 3.2vw, 36px); }

.flow-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.flow-card__title {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.flow-card__body {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.flow-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.flow-card__pill a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  transition: border-color var(--transition), color var(--transition);
}
.flow-card__pill a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.flow-card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}

/* Single-focus variant: one full-width card (Flow 1 only) */
.flow-cards.flow-cards--single { grid-template-columns: 1fr; }

/* ---------- Engagement options strip ---------- */
.engagement {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .engagement { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .engagement { grid-template-columns: repeat(4, 1fr); }
}

.engagement__card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 768px) { .engagement__card { padding: 40px; } }

.engagement__card--primary {
  background: var(--bg-alt);
}

.engagement__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.engagement__price {
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.engagement__blurb {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Process strip v3 (Operate emphasized) ---------- */
.how__steps--v3 {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .how__steps--v3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .how__steps--v3 { grid-template-columns: 1fr 1fr 1.4fr; }
}

.how__steps li.how__step--maintain {
  background: var(--ink);
  color: var(--bg);
  position: relative;
}
.how__step--maintain h3 { color: var(--bg); }
.how__step--maintain p { color: rgba(247, 246, 242, 0.75); }
.how__step--maintain .how__num { color: var(--accent); }
.how__step__tag {
  display: inline-block;
  margin-top: auto;
  padding: 5px 10px;
  border: 1px solid rgba(247, 246, 242, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, 0.85);
  align-self: flex-start;
}

/* ---------- Who this is for ---------- */
.who-for {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .who-for { grid-template-columns: 1fr 1fr; }
}

.who-for__item { border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) {
  .who-for__item:nth-child(odd) { border-right: 1px solid var(--rule); }
}

.who-for__item a {
  display: block;
  padding: 28px 0;
  transition: color var(--transition);
}
@media (min-width: 768px) {
  .who-for__item:nth-child(odd) a { padding-right: 32px; }
  .who-for__item:nth-child(even) a { padding-left: 32px; }
}

.who-for__niche {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.who-for__body {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 48ch;
}
.who-for__item a:hover .who-for__niche { color: var(--accent); }

/* ---------- Service detail layout ---------- */
.service-detail__pain {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.4;
  font-weight: 500;
  max-width: 48ch;
  color: var(--ink-soft);
}
.service-detail__pain li {
  position: relative;
  padding-left: 32px;
}
.service-detail__pain li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.service-detail__what {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 64ch;
}
.service-detail__what li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.service-detail__what li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 14px;
}

.service-detail__how {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .service-detail__how { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.service-detail__how-col {
  background: var(--bg-alt);
  padding: 28px;
  border: 1px solid var(--rule);
}
.service-detail__how-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.service-detail__how-col p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-list__item {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { padding: 0 8px; }

/* ---------- Vertical landing ---------- */
.vertical-hero .eyebrow { color: var(--accent); }
.vertical-credibility {
  border-left: 2px solid var(--accent);
  padding: 12px 0 12px 24px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Index grids (work / for / articles) ---------- */
.index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 720px) { .index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .index-grid { grid-template-columns: repeat(3, 1fr); } }

.index-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--transition);
}
.index-card:hover { background: var(--bg-alt); }
@media (min-width: 768px) { .index-card { padding: 40px; } }

.index-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.index-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.25;
}
.index-card__body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Case study (single) ---------- */
.case-study__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  margin-bottom: 56px;
}
.case-study__meta-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-study__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.case-study__meta-value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}
.case-study__section {
  margin-bottom: 48px;
  max-width: 64ch;
}
.case-study__section h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.case-study__section p,
.case-study__section ul,
.case-study__section ol {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.case-study__section ul li,
.case-study__section ol li {
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}
.case-study__section ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.case-study__quote {
  border-left: 2px solid var(--accent);
  padding: 16px 0 16px 24px;
  margin: 32px 0;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.case-study__quote-attribution {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ---------- Article (single) — prose ---------- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.article-meta a { color: var(--ink-mute); border-bottom: 1px solid var(--rule); }
.article-meta a:hover { color: var(--accent); border-color: var(--accent); }

.article-prose {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}
.article-prose h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 16px;
}
.article-prose h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 40px 0 12px;
}
.article-prose p { margin-bottom: 20px; }
.article-prose ul, .article-prose ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}
.article-prose ul { list-style: disc; }
.article-prose ol { list-style: decimal; }
.article-prose ul li, .article-prose ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.article-prose ul li::marker, .article-prose ol li::marker { color: var(--accent); }
.article-prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 24px;
  margin: 28px 0;
  font-size: 18px;
  color: var(--ink);
}
.article-prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--ink);
}
.article-prose pre {
  background: var(--ink);
  color: var(--bg);
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  margin: 24px 0;
}
.article-prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.article-prose a {
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  transition: color var(--transition);
}
.article-prose a:hover { color: var(--accent); }
.article-prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

/* ---------- Cal.com embed ---------- */
.calcom-embed {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
  min-height: 640px;
  overflow: hidden;
}
.calcom-embed iframe {
  width: 100%;
  height: 720px;
  border: 0;
  display: block;
}

/* ---------- Contact "what to expect" ---------- */
.expect-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 56ch;
}
.expect-list__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}
.expect-list__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 4px;
}
.expect-list__body {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}
.expect-list__body strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Cross-link block (SitePerfector on content-systems) ---------- */
.cross-link {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .cross-link {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 40px;
  }
}
.cross-link__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.cross-link__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}
.cross-link__body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 56ch;
}
