/* ================================================================
   subpages.css — Matthias Campbell website
   Shared styles for all sub-pages, designed to match the homepage
   warm paper aesthetic: #e8e6e2 background, Cormorant headings,
   DM Sans body, floating frosted pill navigation.
   ================================================================ */

/* — Fonts — */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #e8e6e2; -webkit-text-size-adjust: 100%; }
body {
  background: #e8e6e2;
  color: #050505;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: #050505; text-decoration: none; }
a:hover { color: #5e5a55; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
::selection { background: #050505; color: #e8e6e2; }
:focus-visible { outline: 1.5px solid #050505; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Design tokens ── */
:root {
  --bg:      #e8e6e2;
  --surface: #eeece8;
  --ink:     #050505;
  --muted:   #5e5a55;
  --label:   #6b665f;
  --faint:   #9b9690;
  --nav-lnk: #55514b;
  --line:    #d9d6d0;
  --serif:   "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans:    "DM Sans", system-ui, sans-serif;
  --ease:    cubic-bezier(.22,.61,.36,1);
}

/* ── Layout ── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 72px);
}
.wrap--wide {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 44px);
}


/* ================================================================
   FLOATING PILL NAVIGATION
   Matches homepage condensed bubble nav exactly.
   ================================================================ */

.sp-nav-outer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: clamp(9px, 1.2vw, 16px) clamp(10px, 2.2vw, 30px);
  pointer-events: none;
}

.sp-nav-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 52px;
  padding: 0 10px 0 6px;
  background: linear-gradient(180deg, rgba(245,243,240,0.92) 0%, rgba(232,230,226,0.84) 100%);
  backdrop-filter: blur(26px) saturate(1.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  box-shadow:
    0 0.5px 0 rgba(255,255,255,0.95) inset,
    0 16px 40px -26px rgba(5,5,5,0.5);
}

/* MC. logo */
.sp-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 12px 4px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  border-radius: 100px;
  transition: color .3s;
  white-space: nowrap;
}
.sp-mc:hover { color: var(--muted); }

/* Separator rule */
.sp-sep {
  display: block;
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: rgba(5,5,5,0.12);
  flex-shrink: 0;
}

/* Nav links */
.sp-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.sp-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--nav-lnk);
  padding: 10px 13px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color .3s, background .3s;
}
.sp-links a:hover,
.sp-links a[aria-current] {
  color: var(--ink);
  background: rgba(255,255,255,0.7);
}

/* Inline CTA in nav */
.sp-nav-cta {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  margin-left: 4px;
  background: var(--ink);
  color: #e8e6e2 !important;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  white-space: nowrap;
  transition: background .3s, transform .3s;
  flex-shrink: 0;
}
.sp-nav-cta:hover {
  background: #262320;
  color: #e8e6e2 !important;
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.sp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 100px;
  margin-left: 2px;
  transition: background .2s;
}
.sp-burger:hover { background: rgba(5,5,5,0.06); }
.sp-burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.sp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile overlay menu ── */
.sp-overlay {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg);
  display: none; /* JS adds .sp-open to show; .sp-visible triggers the fade */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vh, 44px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.sp-overlay.sp-open {
  display: flex;
}
.sp-overlay.sp-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sp-overlay a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  transition: color .25s;
}
.sp-overlay a:hover { color: var(--muted); }
.sp-overlay-close {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  right: clamp(12px, 2vw, 20px);
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.sp-overlay-close:hover { background: var(--ink); color: #e8e6e2; }
.sp-overlay-contact {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 28px;
  background: var(--ink);
  color: #e8e6e2 !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-top: 8px;
  transition: background .3s;
}
.sp-overlay-contact:hover { background: #262320; }

@media (max-width: 680px) {
  .sp-links, .sp-nav-cta, .sp-sep--right { display: none; }
  .sp-burger { display: flex; }
}


/* ================================================================
   PAGE HERO
   ================================================================ */

.pg-hero {
  padding-top: clamp(88px, 14vh, 136px);
  padding-bottom: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}
.pg-hero--tall {
  padding-bottom: 0;
}

.pg-kicker {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 16px);
  font-size: clamp(8px, 1vw, 9px);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.pg-kicker span {
  display: block;
  width: clamp(20px, 3vw, 30px);
  height: 1px;
  background: rgba(5,5,5,0.18);
}

.pg-h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.pg-h1--med {
  font-size: clamp(2.6rem, 5.5vw, 5.6rem);
}

.pg-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.82;
  color: var(--muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.pg-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.pg-hero-grid > * { min-width: 0; }
.pg-hero-grid--center { align-items: center; }

@media (max-width: 900px) {
  .pg-hero-grid { grid-template-columns: 1fr; }
}


/* ================================================================
   SECTION SHELLS
   ================================================================ */

.pg-section {
  padding: clamp(56px, 9vw, 116px) 0;
  border-bottom: 1px solid var(--line);
}
.pg-section--nb { border-bottom: none; }

.sec-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 4vw, 72px);
  align-items: end;
  padding-bottom: clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head--mb0 { margin-bottom: 0; }

.sec-kicker {
  font-size: clamp(8px, 1vw, 9px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 18px;
}

.sec-h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.028em;
}

.sec-h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.028em;
}

.sec-aside {
  font-size: clamp(0.93rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 36ch;
  text-wrap: pretty;
}


/* ================================================================
   DARK BAND
   ================================================================ */

.pg-dark {
  background: var(--ink);
  color: #e8e6e2;
  padding: clamp(64px, 10vw, 130px) 0;
}
.pg-dark .sec-kicker { color: rgba(232,230,226,0.32); }
.pg-dark .sec-h2 { color: #e8e6e2; }
.pg-dark .sec-aside { color: rgba(232,230,226,0.5); }
.pg-dark-body {
  font-size: clamp(0.93rem, 1.2vw, 1.02rem);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(232,230,226,0.55);
  max-width: 54ch;
  text-wrap: pretty;
}


/* ================================================================
   FEATURE GRIDS
   ================================================================ */

/* 3-col feature tiles with grid lines */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feat-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feat-grid--2 { grid-template-columns: repeat(2, 1fr); }

.feat-cell {
  padding: clamp(26px, 3.4vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Dark variant */
.feat-grid--dark {
  border-color: rgba(232,230,226,0.1);
}
.feat-grid--dark .feat-cell {
  border-color: rgba(232,230,226,0.1);
}

.feat-num {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  display: block;
}
.feat-grid--dark .feat-num { color: rgba(232,230,226,0.3); }

.feat-title {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 12px;
}
.feat-grid--dark .feat-title { color: #e8e6e2; }

.feat-desc {
  font-size: clamp(0.84rem, 1vw, 0.9rem);
  font-weight: 300;
  line-height: 1.78;
  color: var(--muted);
  text-wrap: pretty;
}
.feat-grid--dark .feat-desc { color: rgba(232,230,226,0.5); }

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


/* ================================================================
   CAPABILITY STRIP (horizontal facts/stats bar)
   ================================================================ */

.cap-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.cap-strip--3 { grid-template-columns: repeat(3, 1fr); }

.cap-cell {
  padding: clamp(22px, 2.8vw, 36px) clamp(20px, 2.4vw, 36px);
  border-right: 1px solid var(--line);
}
.cap-cell:last-child { border-right: none; }

.cap-big {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
}

.cap-label {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--faint);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .cap-strip { grid-template-columns: 1fr 1fr; }
  .cap-cell:nth-child(2) { border-right: none; }
  .cap-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 440px) {
  .cap-strip { grid-template-columns: 1fr; }
  .cap-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .cap-cell:last-child { border-bottom: none; }
}


/* ================================================================
   FEATURE TRIO (3-col with border columns)
   ================================================================ */

.feat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.feat-col {
  padding: clamp(40px, 6vw, 80px) clamp(22px, 3vw, 44px);
  border-right: 1px solid var(--line);
}
.feat-col:first-child { padding-left: 0; }
.feat-col:last-child { border-right: none; padding-right: 0; }

.feat-col-kicker {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 18px;
  display: block;
}

.feat-col-h {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.feat-col-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.82rem, 1vw, 0.88rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.45;
}
.feat-col-list li:last-child { border-bottom: none; }
.feat-col-list li::before {
  content: '—';
  color: var(--faint);
  flex-shrink: 0;
  font-size: 0.75rem;
}

@media (max-width: 800px) {
  .feat-trio { grid-template-columns: 1fr; }
  .feat-col { border-right: none; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .feat-col:last-child { border-bottom: none; }
}


/* ================================================================
   APPROACH / PROCESS LIST
   ================================================================ */

.approach-list li {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) 2fr;
  gap: 0 clamp(36px, 5vw, 88px);
  align-items: start;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.approach-list li:first-child { border-top: 1px solid var(--line); }

.approach-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding-top: 2px;
}

.approach-desc {
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  font-weight: 300;
  line-height: 1.82;
  color: var(--muted);
  text-wrap: pretty;
}

@media (max-width: 680px) {
  .approach-list li { grid-template-columns: 1fr; gap: 10px; }
}


/* ================================================================
   NUMBERED ROW LIST (for SEO / etc.)
   ================================================================ */

.num-list-item {
  display: grid;
  grid-template-columns: clamp(52px, 7vw, 88px) 1fr 1.6fr;
  gap: 0 clamp(24px, 3.5vw, 56px);
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.num-list-item:last-child { border-bottom: 1px solid var(--line); }

.num-big {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--line);
}

.num-name {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  padding-top: 4px;
}

.num-desc {
  font-size: clamp(0.86rem, 1.1vw, 0.93rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  padding-top: 6px;
  text-wrap: pretty;
}

@media (max-width: 700px) {
  .num-list-item { grid-template-columns: 1fr; gap: 8px; }
  .num-big { display: none; }
}


/* ================================================================
   AUDIENCE / TAG ROW
   ================================================================ */

.aud-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 16px);
  margin-top: clamp(28px, 4vw, 48px);
}
.aud-tag {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}


/* ================================================================
   IMAGE PLACEHOLDER FRAMES
   Attractive, intentional placeholders that show what belongs here.
   When the actual image is placed, it overlays as position:absolute.
   ================================================================ */

.img-frame {
  position: relative;
  background: #e0ddd7;
  background-image:
    repeating-linear-gradient(135deg, rgba(5,5,5,0.028) 0 1px, transparent 1px 10px);
  border: 1px solid var(--line);
  border-radius: clamp(10px, 1.4vw, 16px);
  overflow: hidden;
}
.img-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(14px, 3vw, 24px);
  text-align: center;
  pointer-events: none;
  overflow: hidden;
}
.img-frame-type {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(5,5,5,0.65);
  border: 1px solid rgba(5,5,5,0.28);
  border-radius: 100px;
  padding: 4px 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.img-frame-brief {
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 300;
  color: rgba(5,5,5,0.58);
  line-height: 1.6;
  max-width: min(28ch, 100%);
  word-break: break-word;
}
.img-frame-meta {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(5,5,5,0.42);
  margin-top: 4px;
  word-break: break-all;
  max-width: 100%;
}

/* Dark variant frame (for use in dark sections) */
.img-frame--dark {
  background: #1a1916;
  background-image:
    repeating-linear-gradient(135deg, rgba(232,230,226,0.04) 0 1px, transparent 1px 10px);
  border-color: rgba(232,230,226,0.12);
}
.img-frame--dark .img-frame-inner { }
.img-frame--dark .img-frame-type {
  color: rgba(232,230,226,0.6);
  border-color: rgba(232,230,226,0.3);
}
.img-frame--dark .img-frame-brief { color: rgba(232,230,226,0.52); }
.img-frame--dark .img-frame-meta { color: rgba(232,230,226,0.36); }

/* Rounded image (no frame needed, just round corners + soft shadow) */
.img-soft {
  border-radius: clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--line);
  box-shadow: 0 20px 56px -28px rgba(5,5,5,0.28);
  overflow: hidden;
}
.img-soft img { width: 100%; display: block; }

/* Screenshot frame (browser chrome) */
.img-browser {
  border: 1px solid var(--line);
  border-radius: clamp(10px, 1.4vw, 16px);
  overflow: hidden;
  box-shadow: 0 20px 56px -28px rgba(5,5,5,0.28);
}
.img-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #e4e1db;
  border-bottom: 1px solid var(--line);
}
.img-browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8c4bd;
}
.img-browser-url {
  margin-left: 8px;
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  color: var(--label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.img-browser-body { position: relative; }
.img-browser-body img { width: 100%; display: block; }


/* ================================================================
   QUOTE / EDITORIAL PULL
   ================================================================ */

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
  text-wrap: pretty;
}

.editorial-prose p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.72;
  color: var(--muted);
  text-wrap: pretty;
  margin-bottom: 22px;
}
.editorial-prose p:last-child { margin-bottom: 0; }
.editorial-prose strong { color: var(--ink); font-weight: 500; }


/* ================================================================
   FACTS / SIDEBAR
   ================================================================ */

.facts {
  border-top: 1px solid var(--ink);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.fact-k {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.fact-v {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}
.fact-v a {
  border-bottom: 1px solid var(--line);
  transition: border-color .2s;
}
.fact-v a:hover { border-color: var(--ink); }


/* ================================================================
   PRICE / DARK CALLOUT
   ================================================================ */

.price-card {
  border: 1px solid rgba(232,230,226,0.18);
  border-radius: clamp(12px, 1.4vw, 18px);
  padding: clamp(28px, 3.6vw, 48px);
}

.price-num {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: #e8e6e2;
}
.price-unit {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(232,230,226,0.5);
  line-height: 1.6;
  margin-top: 12px;
}
.price-note {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(232,230,226,0.55);
  line-height: 1.75;
  margin-top: 22px;
}

.hiw-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(232,230,226,0.1);
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  font-weight: 300;
  color: rgba(232,230,226,0.65);
  line-height: 1.55;
}
.hiw-list li:last-child { border-bottom: none; }
.hiw-list li::before {
  content: '—';
  color: rgba(232,230,226,0.28);
  flex-shrink: 0;
}


/* ================================================================
   PACKAGE ROWS
   ================================================================ */

.pkg-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 0 clamp(28px, 4vw, 64px);
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.pkg-row:last-child { border-bottom: 1px solid var(--line); }

.pkg-tag {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  display: block;
}
.pkg-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 2.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.pkg-for {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--faint);
  line-height: 1.65;
}
.pkg-items li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.45;
}
.pkg-items li:last-child { border-bottom: none; }
.pkg-items li::before { content: '—'; color: var(--line); flex-shrink: 0; }

.pkg-outcome {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .pkg-row { grid-template-columns: 1fr 1fr; }
  .pkg-row > :first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
}
@media (max-width: 560px) {
  .pkg-row { grid-template-columns: 1fr; }
  .pkg-row > :first-child { grid-column: auto; }
}


/* ================================================================
   NO-PROMISES LIST
   ================================================================ */

.no-list { }
.no-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}
.no-item::before {
  content: '×';
  color: var(--faint);
  flex-shrink: 0;
  font-weight: 500;
}


/* ================================================================
   GALLERY GRID
   ================================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: clamp(10px, 1.2vw, 14px);
  overflow: hidden;
}
.gallery-item { background: var(--surface); overflow: hidden; }
.gallery-item--wide { grid-column: 1 / -1; }
.gallery-item img { width: 100%; display: block; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-caption {
  padding: 12px 18px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: 1; }
}


/* ================================================================
   CTA SECTION
   ================================================================ */

.pg-cta {
  padding: clamp(80px, 13vw, 160px) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.pg-cta--nb { border-bottom: none; }

.cta-h2 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.cta-sub {
  font-size: clamp(0.93rem, 1.2vw, 1.02rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}


/* ================================================================
   BUTTONS
   ================================================================ */

/* Primary — dark pill */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  background: var(--ink);
  color: #e8e6e2;
  border: none;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0.5px 0 rgba(255,255,255,0.16) inset, 0 12px 26px -14px rgba(5,5,5,0.8);
  transition: background .3s, box-shadow .3s, transform .3s;
  text-decoration: none;
}
.btn:hover {
  background: #262320;
  color: #e8e6e2;
  box-shadow: 0 0.5px 0 rgba(255,255,255,0.2) inset, 0 16px 32px -14px rgba(5,5,5,0.85);
  transform: translateY(-1px);
}
.btn--sm {
  height: 44px;
  padding: 0 24px;
  font-size: 10.5px;
}

/* Secondary — outlined pill */
.btn-out {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 30px;
  border: 1px solid rgba(5,5,5,0.3);
  border-radius: 100px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
  text-decoration: none;
}
.btn-out:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #e8e6e2;
}
.btn-out--sm { height: 44px; padding: 0 22px; font-size: 10.5px; }

/* Text link */
.btn-txt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(5,5,5,0.2);
  padding-bottom: 2px;
  transition: opacity .25s;
  text-decoration: none;
  color: var(--ink);
}
.btn-txt:hover { opacity: 0.5; }

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
}


/* ================================================================
   FOOTER
   Matches homepage footer exactly.
   ================================================================ */

.sp-footer {
  border-top: 1px solid var(--line);
}
.sp-footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sp-footer-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.sp-footer-mid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sp-footer-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
}
.sp-footer-copy {
  font-size: 0.74rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--faint);
}
.sp-footer-nav {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  flex-wrap: wrap;
}
.sp-footer-nav a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .2s;
}
.sp-footer-nav a:hover { color: var(--ink); }

@media (max-width: 680px) {
  .sp-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}


/* ================================================================
   UTILITY
   ================================================================ */

.u-border-t { border-top: 1px solid var(--line); }
.u-border-b { border-bottom: 1px solid var(--line); }
.u-mt-section { margin-top: clamp(32px, 4vw, 56px); }
.u-mt-sm { margin-top: clamp(16px, 2vw, 24px); }
.u-mb-sm { margin-bottom: clamp(16px, 2vw, 24px); }

.u-prose {
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  font-weight: 300;
  line-height: 1.82;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Two-column prose + aside layout */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.story-grid > * { min-width: 0; }
@media (max-width: 840px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Editorial two-col layout */
.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.editorial-grid > * { min-width: 0; }
@media (max-width: 800px) {
  .editorial-grid { grid-template-columns: 1fr; }
}

/* Four-col stack */
.four-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(232,230,226,0.14);
}
.four-stack-item {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px);
  border-right: 1px solid rgba(232,230,226,0.14);
}
.four-stack-item:first-child { padding-left: 0; }
.four-stack-item:last-child { border-right: none; padding-right: 0; }
.four-stack-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,230,226,0.32);
  margin-bottom: 12px;
  display: block;
}
.four-stack-name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #e8e6e2;
}
@media (max-width: 800px) {
  .four-stack { grid-template-columns: 1fr 1fr; }
  .four-stack-item:nth-child(2) { border-right: none; padding-right: 0; }
  .four-stack-item:nth-child(3) { border-top: 1px solid rgba(232,230,226,0.14); padding-left: 0; }
  .four-stack-item:nth-child(4) { border-top: 1px solid rgba(232,230,226,0.14); }
}
@media (max-width: 480px) {
  .four-stack { grid-template-columns: 1fr; }
  .four-stack-item { border-right: none; border-top: 1px solid rgba(232,230,226,0.14); padding: 20px 0; }
  .four-stack-item:first-child { border-top: none; padding-left: 0; }
}

/* Inline note band */
.note-band {
  padding: clamp(44px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--line);
}
.note-band p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46ch;
  text-wrap: pretty;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color .2s;
  text-decoration: none;
  margin-bottom: clamp(32px, 4vw, 52px);
  display: block;
}
.back-link:hover { color: var(--ink); }

/* Divider rule */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}


/* ================================================================
   PAGE-SPECIFIC GRID CLASSES
   Named shared classes replacing inline grid styles for pages
   that had overflow at 320–390px.
   ================================================================ */

/* MCBook — 2-column screenshot pair */
.mcbook-ss-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}
.mcbook-ss-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .mcbook-ss-grid { grid-template-columns: 1fr; }
}

/* SEO — website design section (approach + screenshots) */
.seo-wd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.seo-wd-grid > * { min-width: 0; }
@media (max-width: 820px) {
  .seo-wd-grid { grid-template-columns: 1fr; }
}

/* SEO — live examples 2-col */
.seo-ex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.seo-ex-grid > * { min-width: 0; }
@media (max-width: 640px) {
  .seo-ex-grid { grid-template-columns: 1fr; }
}

/* SEO — no-promises + CTA bottom split */
.seo-bot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.seo-bot-grid > * { min-width: 0; }
@media (max-width: 760px) {
  .seo-bot-grid { grid-template-columns: 1fr; }
  .seo-bot-grid > :first-child { border-right: none !important; border-bottom: 1px solid var(--line); padding-right: 0 !important; }
  .seo-bot-grid > :last-child { padding-left: 0 !important; }
}


/* ================================================================
   CONSOLIDATED RESPONSIVE OVERRIDES
   Handles all inline-grid collapse cases cleanly.
   ================================================================ */

/* Generic 2-col grids used inline in page templates */
@media (max-width: 800px) {
  /* about hero, yieldpos hero, mcbook hero, contracting hero */
  .pg-hero-grid { grid-template-columns: 1fr !important; }
  /* story grid */
  .story-grid { grid-template-columns: 1fr !important; }
  /* editorial grid */
  .editorial-grid { grid-template-columns: 1fr !important; }
  /* dark band 2-cols — also force min-width:0 on children to stop content overflow */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr"] > *,
  [style*="grid-template-columns: 1fr 1fr"] > * { min-width: 0; }
  /* 5fr 4fr keyboard row */
  [style*="grid-template-columns:5fr 4fr"],
  [style*="grid-template-columns: 5fr 4fr"] { grid-template-columns: 1fr !important; }
  /* 1.2fr 1fr */
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"] { grid-template-columns: 1fr !important; }
  /* 1.1fr 1fr */
  [style*="grid-template-columns:1.1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* 1.5fr 1fr */
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns: 1.5fr 1fr"] { grid-template-columns: 1fr !important; }
  /* 1fr 1.6fr */
  [style*="grid-template-columns:1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 1.6fr"] { grid-template-columns: 1fr !important; }
}

/* 3-col product tiles */
@media (max-width: 860px) {
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Portrait frame — limit height on mobile so it doesn't take full viewport */
@media (max-width: 640px) {
  .img-frame[style*="aspect-ratio: 3/4"],
  .img-frame[style*="aspect-ratio:3/4"] {
    aspect-ratio: 4/3 !important;
    max-width: 100% !important;
  }
}

/* Wide landscape frames (16:7, 16:6, 21:9) — at small widths these frames are
   too short to contain placeholder text; switch to a taller ratio. */
@media (max-width: 480px) {
  .img-frame[style*="aspect-ratio: 16/7"],
  .img-frame[style*="aspect-ratio:16/7"] { aspect-ratio: 4/3 !important; }
  .img-frame[style*="aspect-ratio: 16/6"],
  .img-frame[style*="aspect-ratio:16/6"] { aspect-ratio: 4/3 !important; }
  .img-frame[style*="aspect-ratio: 21/9"],
  .img-frame[style*="aspect-ratio:21/9"] { aspect-ratio: 16/9 !important; }
}

/* Footer — stack on mobile */
@media (max-width: 560px) {
  .sp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Nav pill — shrink on very small screens */
@media (max-width: 360px) {
  .sp-mc { font-size: 20px !important; padding: 0 8px 4px !important; }
  .sp-nav-pill { padding: 0 6px 0 4px !important; }
}
