/* =========================================================
   Digital Dimensions — Shared Stylesheet
   ========================================================= */

:root {
  --paper:       #F4EFE6;
  --paper-soft:  #FAF6EF;
  --paper-warm:  #EFE8DB;
  --ink:         #1A1614;
  --ink-2:       #2B2520;
  --ink-muted:   #5D544A;           /* darkened from #6B6259 for AA on paper */
  --rule:        #D9D1C2;
  --rule-strong: #B8AE9C;
  --forest:      #1A4538;          /* teal-shifted from #1F3A2D for harmony with brand blue */
  --forest-2:    #2E5748;          /* lighter forest variant */
  --forest-tint: #3F7A63;          /* lightest forest variant */
  --ochre:       #B5722C;
  --ochre-deep:  #8C5620;
  --ochre-light: #E8C49C;
  --on-forest:   #F4EFE6;

  /* Brand blue — harmonized with the rest of the palette.
     Was #004BAD/#37B7FF (100% saturation, screen-bright); now toned to
     match the editorial register of paper/forest/ochre while still
     being unmistakably "the digital dimensions blue." Logo files
     ship with these same shades baked in. */
  --brand-blue:       #1A56A8;
  --brand-blue-light: #5BA8E0;
  --on-blue:          #FFFFFF;

  --serif: "Fraunces", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(26,69,56,.05), transparent 60%),
    radial-gradient(ellipse 700px 400px at -10% 30%, rgba(181,114,44,.04), transparent 60%);
}

::selection { background: var(--brand-blue); color: var(--on-blue); }

a { color: inherit; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; display: block; }

/* ---- Typography utilities ---- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -.015em;
  line-height: 1.04;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.section-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--brand-blue);
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section-header {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.section-header h2 em {
  font-style: italic;
  color: var(--forest);
}

.section-header .meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

@media (max-width: 720px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-header .meta { padding-top: 0; }
}

/* ========================================================
   MASTHEAD / NAV
   ======================================================== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-mark {
  width: auto;
  /* Source dd-mark.png is 141x230 (aspect ~0.61). Display height is what
     defines its visual size; width follows naturally. The slight scale
     and translate on hover gives the masthead a small alive moment. */
  height: 38px;
  flex: 0 0 auto;
  display: block;
  transition: transform .25s var(--ease);
}
.wordmark:hover .wordmark-mark { transform: translateY(-1px) scale(1.02); }

.wordmark-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.01em;
  line-height: 1;
}

.wordmark-text .amp {
  font-style: italic;
  color: var(--forest);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  position: relative;
}

/* FIX: scoped to nav-links only, so btn-primary below doesn't inherit nav link color */
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s var(--ease);
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--forest); }

.nav-links a[aria-current="page"] {
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.5vw, 28px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}

.btn-primary,
a.btn-primary,
.nav .btn-primary {
  background: var(--forest);
  color: var(--on-forest);
  border-color: var(--forest);
}
.btn-primary:hover,
a.btn-primary:hover,
.nav .btn-primary:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
  color: var(--on-forest);
}

.btn-ghost,
a.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover,
a.btn-ghost:hover {
  background: var(--paper-soft);
  border-color: var(--ink);
  color: var(--ink);
}

.btn .arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .masthead .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(26,22,20,.12);
    padding: 16px 20px;
    gap: 14px;
    min-width: 220px;
  }
}

/* ========================================================
   HERO (homepage)
   ======================================================== */
.hero {
  position: relative;
  padding-top: clamp(56px, 10vw, 120px);
  padding-bottom: clamp(80px, 12vw, 160px);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(26,69,56,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-meta .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--forest);
  border-radius: 999px;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

.hero h1 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 88px);
  line-height: 1.00;
  letter-spacing: -.025em;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  max-width: 20ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--forest);
}

.hero-lede {
  margin-top: 28px;
  max-width: 60ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-footer {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .hero-footer { grid-template-columns: repeat(2, 1fr); }
}

.hero-footer .hf-item .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.hero-footer .hf-item .value {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

/* ========================================================
   PAGE HERO (interior pages - more compact than homepage)
   ======================================================== */
.page-hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.page-hero .crumbs {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.page-hero .crumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.page-hero .crumbs a:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.page-hero .crumbs .sep { margin: 0 10px; color: var(--rule-strong); }

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 22ch;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--forest);
}

.page-hero .page-lede {
  margin-top: 24px;
  max-width: 60ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.page-hero .page-hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-hero-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-hero-tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ========================================================
   TRUST BAR
   ======================================================== */
.trust {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}

@media (max-width: 720px) {
  .trust-inner { grid-template-columns: 1fr; gap: 12px; }
}

.trust-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 36px);
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 18px);
  font-style: italic;
  color: var(--ink-2);
}

.trust-list span {
  display: inline-flex;
  align-items: center;
}
.trust-list span + span::before {
  content: "·";
  margin: 0 clamp(14px, 3vw, 36px) 0 0;
  color: var(--rule-strong);
  font-style: normal;
}

/* ========================================================
   FOCUS LIST (homepage practice areas)
   ======================================================== */
.focus-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.focus-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
  transition: padding-left .3s var(--ease);
}
.focus-item:hover { padding-left: 14px; }
.focus-item:hover .focus-arrow { transform: translateX(4px); color: var(--forest); }

.focus-item a.focus-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}

.focus-item .focus-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: .12em;
}

.focus-item .focus-body h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.015em;
  line-height: 1.15;
}
.focus-item .focus-body p {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 60ch;
  color: var(--ink-2);
}
.focus-item .focus-body .focus-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.focus-item .focus-body .focus-tags span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 10px;
}

.focus-arrow {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink-muted);
  transition: transform .3s var(--ease), color .3s var(--ease);
  line-height: 1;
  align-self: center;
}

@media (max-width: 720px) {
  .focus-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .focus-arrow { display: none; }
  .focus-item:hover { padding-left: 0; }
}

/* ========================================================
   APPROACH (dark forest block)
   ======================================================== */
.approach {
  background: var(--forest);
  color: var(--on-forest);
  position: relative;
  overflow: hidden;
}
.approach::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 700px 400px at 90% 10%, rgba(181,114,44,.12), transparent 60%),
    radial-gradient(ellipse 500px 300px at 5% 90%, rgba(181,114,44,.08), transparent 60%);
  pointer-events: none;
}

.approach > * { position: relative; }

.approach .eyebrow,
.approach .section-number {
  color: rgba(244,239,230,.65);
}

.approach .section-header {
  border-bottom-color: rgba(244,239,230,.18);
}

.approach .section-header h2 em {
  color: var(--ochre-light);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .approach-grid { grid-template-columns: 1fr; }
}

.approach-step {
  padding: 40px 28px 40px 0;
  border-right: 1px solid rgba(244,239,230,.16);
  border-top: 1px solid rgba(244,239,230,.16);
}
.approach-step:last-child { border-right: none; }

@media (max-width: 1000px) {
  .approach-step {
    border-right: 1px solid rgba(244,239,230,.16);
    padding: 32px 24px 32px 0;
  }
  .approach-step:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .approach-step { border-right: none; padding: 28px 0; }
}

.approach-step .step-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ochre-light);
  margin-bottom: 20px;
}

.approach-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 14px;
  letter-spacing: -.01em;
  color: var(--on-forest);
}

.approach-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
  color: rgba(244,239,230,.82);
}

.approach-note {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 32px;
  border: 1px solid rgba(244,239,230,.22);
  border-radius: 4px;
  background: rgba(0,0,0,.12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 720px) {
  .approach-note { grid-template-columns: 1fr; }
}

.approach-note p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--on-forest);
}

.approach-note .btn-ghost,
.approach .btn-ghost,
a.btn-ghost.on-dark {
  background: transparent;
  color: var(--on-forest);
  border-color: rgba(244,239,230,.45);
}
.approach-note .btn-ghost:hover,
.approach .btn-ghost:hover,
a.btn-ghost.on-dark:hover {
  background: rgba(244,239,230,.10);
  border-color: var(--on-forest);
  color: var(--on-forest);
}

/* ========================================================
   WORK / CASE STUDIES
   ======================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.work-card {
  grid-column: span 3;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -20px rgba(26,22,20,.18);
  border-color: var(--rule-strong);
}

.work-card.span-6 { grid-column: span 6; }
.work-card.span-4 { grid-column: span 4; }
.work-card.span-3 { grid-column: span 3; }
.work-card.span-2 { grid-column: span 2; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card,
  .work-card.span-6,
  .work-card.span-4,
  .work-card.span-3,
  .work-card.span-2 { grid-column: span 1; }
}

.work-card .work-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--forest);
}

.work-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 0;
}

.work-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.work-card .work-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.work-card.span-6 .work-stats {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .work-card.span-6 .work-stats { grid-template-columns: repeat(2, 1fr); }
}

.work-card .work-stats .stat .stat-value {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
  display: block;
}
.work-card .work-stats .stat .stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 8px;
  display: block;
}

/* ========================================================
   ABOUT (homepage)
   ======================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(.95);
}

.about-portrait .portrait-note {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-forest);
  background: rgba(26,69,56,.75);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.about-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 24px;
}
.about-body h3 em {
  font-style: italic;
  color: var(--forest);
}

.about-body p {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 60ch;
  color: var(--ink-2);
}

.about-credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 520px) {
  .about-credentials { grid-template-columns: 1fr; }
}

.about-credentials .cred .cred-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.about-credentials .cred .cred-value {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* ========================================================
   CAPABILITIES BLOCK
   ======================================================== */
.capabilities {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cap-grid { grid-template-columns: 1fr; }
}

.cap-col h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
}

.cap-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cap-col li {
  font-size: 15px;
  line-height: 1.5;
  padding: 9px 0 9px 18px;
  position: relative;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--rule);
}
.cap-col li:last-child { border-bottom: none; }
.cap-col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 500;
}

/* ========================================================
   FAQ
   ======================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item:first-child { border-top: 1px solid var(--rule); }

.faq-item details {
  padding: 0;
}

.faq-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -.005em;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-item summary:hover { color: var(--forest); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-plus {
  width: 22px; height: 22px;
  flex: 0 0 auto;
  position: relative;
}
.faq-item summary .faq-plus::before,
.faq-item summary .faq-plus::after {
  content: "";
  position: absolute;
  background: var(--forest);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq-item summary .faq-plus::before { width: 14px; height: 1.5px; }
.faq-item summary .faq-plus::after  { width: 1.5px; height: 14px; }
.faq-item details[open] summary .faq-plus::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item .faq-answer {
  padding: 0 4px 28px;
  max-width: 75ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq-item .faq-answer p { margin: 0 0 12px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ========================================================
   CTA / CONTACT
   ======================================================== */
.cta {
  padding: clamp(72px, 10vw, 128px) 0;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) {
  .cta-inner { grid-template-columns: 1fr; }
}

.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.cta h2 em {
  font-style: italic;
  color: var(--forest);
}

.cta-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
  max-width: 52ch;
}

.cta-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}

.cta-card .eyebrow { margin-bottom: 16px; }

.cta-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}

.cta-card p {
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 24px;
}

.cta-card .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-card .cta-actions .btn {
  justify-content: space-between;
  width: 100%;
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cta-divider::before, .cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ========================================================
   FOOTER
   ======================================================== */
/* ========================================================
   FOOTER
   ========================================================
   The heritage Digital Dimensions wordmark anchors the footer's
   left column. The surrounding design uses brand blues so the
   logo reads as the centerpiece rather than a pasted image:
   - Column headings (h4) in sky-blue mono
   - Link hovers in sky-blue
   - The grid divider picks up a faint sky-blue tint
   - A small mono signature sits below the logo as deliberate
     framing — "An independent web practice · Marietta, GA"
   ======================================================== */
.footer {
  background: var(--ink);
  color: var(--on-forest);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  /* Subtle vertical glow at top — gives the footer a sense of beginning */
  background-image:
    linear-gradient(180deg, rgba(55, 183, 255, .04) 0%, transparent 240px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: 48px;
  /* Use a sky-blue-tinted divider so the brand color is present even
     in a structural element. Stays subtle on the dark background. */
  border-bottom: 1px solid rgba(55, 183, 255, .18);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-intro { grid-column: span 2; }
}

/* ---------- Heritage logo presentation ----------
   The wordmark image already carries the brand blues; surrounding
   typography and spacing make the column feel composed AROUND the
   logo rather than the logo dropped into the column. */
.footer-heritage {
  display: inline-block;
  text-decoration: none;
  /* Soften slightly on the dark background so it sits in the surface */
  filter: brightness(1.04);
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.footer-heritage:hover,
.footer-heritage:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.footer-heritage:focus-visible {
  outline: 2px solid var(--brand-blue-light);
  outline-offset: 6px;
  border-radius: 4px;
}
.footer-heritage-mark {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 480px) {
  .footer-heritage-mark { width: 220px; }
}

/* ---------- Signature line below the logo ----------
   Mono caption + thin sky-blue rule. Reads as a brand signature
   the layout was designed around. */
.footer-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
}
.footer-signature-rule {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--brand-blue-light);
  flex: 0 0 auto;
}
.footer-signature-text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
}

.footer-tagline,
.footer-intro p {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244,239,230,.82);
}

/* ---------- Column headings — sky-blue mono so blue threads through
   the whole footer, not just the logo ---------- */
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-blue-light);
  margin: 0 0 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 15px;
  color: var(--on-forest);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--brand-blue-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(244,239,230,.75);
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-blue-light); }

/* ========================================================
   SKIP LINK
   ======================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--forest);
  color: var(--on-forest);
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  z-index: 100;
}
.skip-link:focus { top: 16px; }

/* ========================================================
   REVEAL ON SCROLL
   ======================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================================================
   SPECIALTY PAGE BUILDING BLOCKS
   ======================================================== */

/* ---- Two-column content block ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.split .split-title {
  position: sticky;
  top: 96px;
}
.split .split-title .eyebrow { margin-bottom: 14px; }
.split .split-title h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.split .split-title h2 em { font-style: italic; color: var(--forest); }
.split .split-title p {
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 32ch;
}

@media (max-width: 900px) {
  .split .split-title { position: static; }
}

/* Prose */
.prose p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: none;
}
.prose p:last-child { margin-bottom: 0; }

.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.01em;
  margin: 40px 0 14px;
  line-height: 1.2;
}
.prose h3:first-child { margin-top: 0; }

.prose ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: none;
}
.prose ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--forest);
  font-family: var(--serif);
  font-weight: 600;
}

.prose blockquote {
  margin: 24px 0;
  padding: 18px 0 18px 24px;
  border-left: 3px solid var(--ochre);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  max-width: none;
}

/* ---- Service card list ---- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}
@media (max-width: 720px) {
  .service-cards { grid-template-columns: 1fr; }
}

.service-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(26,22,20,.16);
}

.service-card .svc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

.service-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0;
}

.service-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.service-card .svc-includes {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: .04em;
  line-height: 1.6;
}

/* ---- Checklist (safeguards, deliverables) ---- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 720px) {
  .checklist { grid-template-columns: 1fr; }
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 20px;
  height: 20px;
  background: var(--forest);
  border-radius: 50%;
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  width: 10px;
  height: 5px;
  border-left: 1.5px solid var(--on-forest);
  border-bottom: 1.5px solid var(--on-forest);
  transform: rotate(-45deg);
}

/* ---- Pull quote ---- */
.pullquote {
  margin: clamp(40px, 6vw, 72px) 0;
  padding: clamp(32px, 5vw, 56px);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand-blue);
  border-radius: 4px;
  position: relative;
}
.pullquote::before {
  content: "“";
  position: absolute;
  top: -10px; left: 24px;
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--brand-blue);
  font-style: italic;
  opacity: .92;
}
.pullquote blockquote {
  margin: 0;
  padding: 0 0 0 20px;
  border: none;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 50ch;
}
.pullquote cite {
  display: block;
  margin-top: 20px;
  padding-left: 20px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Comparison table ---- */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 14px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}
.compare th {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  width: 32%;
  border-bottom-color: var(--rule-strong);
}
.compare td {
  color: var(--ink-2);
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: none; }

@media (max-width: 620px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare th { padding-bottom: 4px; border-bottom: none; }
  .compare td { padding-top: 4px; padding-bottom: 20px; }
}

/* ---- Callout box ---- */
.callout {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--forest);
  border-radius: 0 4px 4px 0;
}
.callout .callout-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}
.callout p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.callout p + p { margin-top: 10px; }

/* ---- Process timeline ---- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--rule-strong);
}

.timeline > li {
  position: relative;
  padding: 0 0 28px 48px;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border: 2px solid var(--forest);
  border-radius: 50%;
}
.timeline > li:last-child { padding-bottom: 0; }

.timeline .tl-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 6px;
}
.timeline h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.timeline p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---- Related pages ---- */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
@media (max-width: 860px) {
  .related { grid-template-columns: 1fr; }
}

.related-card {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.related-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(26,22,20,.16);
}

.related-card .rc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
}
.related-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.related-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}
.related-card .rc-arrow {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.related-card .rc-arrow .arrow {
  transition: transform .2s var(--ease);
}
.related-card:hover .rc-arrow .arrow { transform: translateX(4px); }

/* =============================================================================
   BLOG STYLES
   ============================================================================= */

.blog-grid {
  display: grid;
  gap: 3rem;
  max-width: none; /* Remove max-width to use container width */
  margin: 0;
}

.blog-card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem;
  background: var(--paper);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.blog-card:hover {
  box-shadow: 0 18px 40px -20px rgba(26,22,20,.16);
  transform: translateY(-2px);
  border-color: var(--rule-strong);
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.blog-meta time {
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-family: var(--mono);
  letter-spacing: .04em;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: var(--ochre-light);
  color: var(--ink);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-card h2 {
  margin-bottom: 1rem;
  line-height: 1.3;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--forest);
}

.blog-excerpt {
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 15.5px;
}

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.read-time {
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-family: var(--mono);
  letter-spacing: .04em;
}

.read-more {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s var(--ease);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.read-more:hover {
  color: var(--ink);
}

.read-more .arrow {
  transition: transform .2s var(--ease);
}

.read-more:hover .arrow {
  transform: translateX(3px);
}

/* Blog Post Styles */
.blog-post .breadcrumb {
  margin-bottom: 2rem;
}

.blog-post .breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}

.blog-post .breadcrumb a:hover {
  color: var(--forest);
}

.post-header {
  max-width: none;
  margin: 0 0 3rem;
  text-align: left;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.post-meta time {
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-family: var(--mono);
  letter-spacing: .04em;
}

.post-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 1.125rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.post-byline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-family: var(--mono);
  letter-spacing: .04em;
}

.post-author {
  font-weight: 500;
}

.post-content {
  max-width: none;
  margin: 0;
  line-height: 1.7;
}

.post-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.post-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.375rem;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
}

.post-content p {
  margin-bottom: 1.5rem;
  font-size: 17px;
  color: var(--ink-2);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.post-content blockquote {
  border-left: 3px solid var(--ochre);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-style: italic;
  background: var(--paper-warm);
  border-radius: 0 4px 4px 0;
  font-size: 18px;
  line-height: 1.5;
}

.post-content pre {
  background: var(--ink);
  color: var(--on-forest);
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 2rem 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
}

.post-content code {
  background: var(--paper-soft);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.875em;
  color: var(--ink);
}

.post-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.875rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--rule);
  padding: 0.75rem;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
}

.post-content th {
  background: var(--paper-soft);
  font-weight: 600;
  font-family: var(--serif);
  color: var(--ink);
}

.post-content td {
  color: var(--ink-2);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.post-footer {
  max-width: none;
  margin: 2rem 0 0;
  text-align: left;
}

.post-nav {
  text-align: center;
}

/* Loading and Error States */
.loading-state,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-muted);
}

.error-state {
  color: var(--ink-2);
}

.error-state h1 {
  font-family: var(--serif);
  margin-bottom: 1rem;
}

.error-state a {
  color: var(--forest);
  text-decoration: none;
}

.error-state a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 48em) {
  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .blog-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .post-content pre {
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 0;
  }
}

/* =================================================================
   CONTACT FORM — editorial, paper-aesthetic, matches cta-card system
   ================================================================= */

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
  position: relative;
  z-index: 1;              /* sit above the cta-card::before border */
}

/* ---- Field group (wraps one or two side-by-side fields) ------- */
.cta-form .field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 620px) {
  .cta-form .field-group { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- Individual field: label sits above a bottom-bordered input */
.cta-form .field {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---- Numbered prefix on each field (§ 01, § 02…)  */
.cta-form .field-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--ochre);
  display: inline-block;
  margin-right: 8px;
}

.cta-form label {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  display: block;
}

.cta-form label .optional {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-muted);
  margin-left: 6px;
}

.cta-form label .req {
  color: var(--ochre);
  font-weight: 600;
  margin-left: 3px;
}

/* ---- Inputs: underline style on warm paper background --------- */
.cta-form input[type="text"],
.cta-form input[type="email"],
.cta-form input[type="tel"],
.cta-form select,
.cta-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 8px 2px 10px;
  box-sizing: border-box;
  transition:
    border-color .25s var(--ease),
    background .25s var(--ease),
    padding .25s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
  color: var(--ink-muted);
  opacity: .55;
  font-style: italic;
  font-family: var(--serif);
}

/* ---- Hover state subtly darkens the rule --- */
.cta-form input:hover,
.cta-form select:hover,
.cta-form textarea:hover {
  border-bottom-color: var(--forest-tint);
}

/* ---- Focus: forest green underline, lift, and a warm wash ----- */
.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  outline: none;
  border-bottom-color: var(--brand-blue);
  box-shadow: 0 1px 0 0 var(--brand-blue);
  background: rgba(0, 75, 173, .04);    /* very faint blue wash */
  padding-left: 8px;
  padding-right: 8px;
}

/* ---- Custom select chevron (avoids default OS glyph) --------- */
.cta-form select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px)  50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.cta-form select:focus {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-blue) 50%),
    linear-gradient(135deg, var(--brand-blue) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 50%,
    calc(100% - 9px)  50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---- Textarea gets extra height and a subtle card feel ------- */
.cta-form textarea {
  resize: vertical;
  min-height: 128px;
  padding: 14px 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: rgba(250, 246, 239, .6);
}
.cta-form textarea:hover {
  border: 1px solid var(--rule-strong);
  background: rgba(250, 246, 239, .8);
}
.cta-form textarea:focus {
  border: 1px solid var(--forest);
  background: rgba(250, 246, 239, 1);
  padding: 14px 14px 16px;
}

/* ---- Character counter under textarea (optional, polish) ------ */
.cta-form .char-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: .08em;
  text-align: right;
  margin-top: 6px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.cta-form textarea:focus ~ .char-count,
.cta-form .char-count.active {
  opacity: 1;
}

/* ---- Honeypot: completely hidden from humans ------------------ */
.cta-form .honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---- Divider with italic serif ornament ---------------------- */
.cta-form .form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0;
  color: var(--ink-muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
}
.cta-form .form-divider::before,
.cta-form .form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---- Submit button area -------------------------------------- */
.cta-form .submit-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.cta-form .submit-row button {
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--on-forest);
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 16px 22px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  transition:
    background .25s var(--ease),
    border-color .25s var(--ease),
    transform .15s var(--ease),
    box-shadow .25s var(--ease);
  box-shadow: 0 1px 0 rgba(31, 58, 45, .06);
}

.cta-form .submit-row button::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(244, 239, 230, .18);
  border-radius: 1px;
  pointer-events: none;
  transition: border-color .25s var(--ease);
}

.cta-form .submit-row button:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(31, 58, 45, .35);
}
.cta-form .submit-row button:hover::before {
  border-color: rgba(244, 239, 230, .35);
}
.cta-form .submit-row button:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(31, 58, 45, .06);
}

.cta-form .submit-row button .arrow {
  display: inline-block;
  transition: transform .25s var(--ease);
  font-size: 16px;
}
.cta-form .submit-row button:hover .arrow {
  transform: translateX(4px);
}

/* Disabled state for during-submission */
.cta-form .submit-row button[disabled],
.cta-form .submit-row button.submitting {
  opacity: .6;
  cursor: progress;
  transform: none;
}

/* ---- Form note --- */
.cta-form .form-note {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--rule);
  font-style: italic;
  font-family: var(--serif);
}
.cta-form .form-note a {
  font-style: normal;
  font-family: var(--sans);
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--rule-strong);
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.cta-form .form-note a:hover {
  color: var(--ochre-deep);
  text-decoration-color: var(--ochre);
}

/* ---- Error banner ------------------------------------------------ */
.cta-form .form-error {
  background: #F9EADB;
  border: 1px solid var(--ochre-light);
  border-left: 3px solid var(--ochre);
  padding: 16px 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 4px;
  border-radius: 2px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cta-form .form-error::before {
  content: "§";
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ochre);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.cta-form .form-error a {
  color: var(--forest);
  text-decoration: underline;
}

/* ---- When the form is inside the cta-card, give it breathing room  */
.cta-card .cta-form {
  margin-top: 12px;
}

/* ---- Autofill styling overrides so webkit yellow doesn't show up  */
.cta-form input:-webkit-autofill,
.cta-form input:-webkit-autofill:hover,
.cta-form input:-webkit-autofill:focus,
.cta-form textarea:-webkit-autofill,
.cta-form select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px var(--paper-soft) inset;
  -webkit-text-fill-color: var(--ink);
  transition: background-color 5000s ease-in-out 0s;
}

/* =========================================================
   Nav dropdown (used by "About"; pattern is generic so any
   top-level nav item can become a dropdown later)
   ========================================================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  /* match .nav-links a styling so it sits in the row visually */
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s var(--ease);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-active-group > .nav-dropdown-toggle,
.nav-dropdown:hover > .nav-dropdown-toggle,
.nav-dropdown:focus-within > .nav-dropdown-toggle,
.nav-dropdown.is-open > .nav-dropdown-toggle {
  color: var(--forest);
}

.nav-dropdown.is-active-group > .nav-dropdown-toggle {
  position: relative;
}
.nav-dropdown.is-active-group > .nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0; right: 14px; /* leave room for caret */
  bottom: -2px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
}

.nav-dropdown-caret {
  font-size: 11px;
  line-height: 1;
  transition: transform .2s var(--ease);
}
.nav-dropdown:hover > .nav-dropdown-toggle .nav-dropdown-caret,
.nav-dropdown:focus-within > .nav-dropdown-toggle .nav-dropdown-caret,
.nav-dropdown.is-open > .nav-dropdown-toggle .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 200px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(26,22,20,.10);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s linear .15s;
  z-index: 50;
}

.nav-dropdown-menu li { margin: 0; }

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--paper-warm);
  color: var(--forest);
  outline: none;
}
.nav-dropdown-menu a[aria-current="page"] {
  color: var(--forest);
  background: var(--paper-warm);
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s, 0s, 0s;
}

/* Mobile: when the hamburger menu is open, the dropdown should
   expand inline instead of floating. */
@media (max-width: 880px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 4px 14px;
    margin-top: 4px;
    min-width: 0;
    /* Collapsed by default on mobile; expand when .is-open */
    display: none;
  }
  .nav-dropdown.is-open > .nav-dropdown-menu {
    display: block;
  }
  .nav-dropdown-menu a {
    padding: 7px 6px;
  }
  /* No hover-open behavior on touch/mobile context */
  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown:focus-within > .nav-dropdown-menu {
    display: none;
  }
  .nav-dropdown.is-open > .nav-dropdown-menu { display: block; }
}

/* Focus visibility for the toggle button */
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
  border-radius: 4px;
}
