/* ─────────────────────────────────────────────────────────────
   Adnan K. — Quiet Luxury Design System
   Warm cream, near-black, restrained terracotta.
   Inter Tight (display) + Source Serif 4 (body).
   ───────────────────────────────────────────────────────────── */

:root {
  /* ─── Quiet Luxury palette ─── */
  --bg:        #F4F0EA;          /* warm cream */
  --bg-soft:   #ECE7DE;          /* secondary surface (warmer cream) */
  --surface:   #FBF8F2;          /* lightest paper */
  --ink:       #1A1612;          /* warm near-black */
  --ink-soft:  #2A241E;
  --muted:     #6C6258;          /* warm muted */
  --muted-2:   #9C9286;
  --line:      #D9D2C4;          /* warm hairline */
  --line-soft: #E5DFD0;

  /* Terracotta — used SPARINGLY. Most pages should have ZERO. */
  --accent:        #8B3A1F;
  --accent-deep:   #6F2C16;
  --accent-soft:   #F0E4DC;
  --accent-hover:  #9F4528;

  /* Rare-use secondary */
  --green:     #5E7A4A;          /* muted olive for verified ticks */
  --gold:      #B08A4A;          /* muted ochre for review stars */

  /* ─── Type ─── */
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-sans:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif:   'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ─── Geometry — sharper, less rounded ─── */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-xl: 10px;

  --shadow-soft: 0 1px 0 rgba(26,22,18,0.04), 0 8px 24px -14px rgba(26,22,18,0.10);
  --shadow-card: 0 1px 2px rgba(26,22,18,0.04), 0 20px 48px -28px rgba(26,22,18,0.16);
  --shadow-pop:  0 1px 2px rgba(26,22,18,0.06), 0 30px 60px -22px rgba(139,58,31,0.18);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

/* ── Typography ── */
.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.028em;
}
.font-serif { font-family: var(--font-serif); font-weight: 400; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted);
  font-family: var(--font-sans);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--muted);
}

.serif { font-family: var(--font-serif); font-weight: 400; }
/* Italic accent — serif italic for editorial punch, NOT colored */
.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

/* Display heading scale */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.h-1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.h-2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.h-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

/* Lead paragraph — serif, generous */
.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.3vw, 1.22rem);
  color: var(--ink-soft);
  line-height: 1.65;
  letter-spacing: -0.005em;
  font-weight: 400;
  max-width: 60ch;
}

.prose {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}
.prose p { margin: 0 0 1.2em; }
.prose p:last-child { margin-bottom: 0; }
.prose em { font-style: italic; }
.prose strong { font-weight: 600; color: var(--ink); }

.eyebrow-rule {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted);
  font-family: var(--font-sans);
}
.eyebrow-rule::before, .eyebrow-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 2rem; }
.container-tight { max-width: 680px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section-sm { padding: 4.5rem 0; }
.section-lg { padding: 10rem 0; }
@media (max-width: 768px) {
  .container, .container-narrow, .container-tight { padding: 0 1.4rem; }
  .section, .section-lg { padding: 4.5rem 0; }
  .section-sm { padding: 3rem 0; }
}

/* ── Buttons — restrained editorial ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0.9rem 1.5rem;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

/* Editorial text-link with underline-swipe */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.4rem 0 0.6rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  position: relative;
  transition: gap .35s cubic-bezier(.2,.7,.2,1);
}
.btn-editorial::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.btn-editorial:hover { gap: 14px; color: var(--ink); }
.btn-editorial:hover::after { animation: linkSwipe .8s cubic-bezier(.2,.7,.2,1); }
@keyframes linkSwipe {
  0%   { transform: scaleX(1); transform-origin: right; }
  49%  { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.btn-accent {
  background: var(--accent); color: var(--bg);
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  position: relative;
  letter-spacing: -0.005em;
  padding-bottom: 2px;
}
.btn-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  opacity: 0.4;
}
.btn-link:hover::after { opacity: 1; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.card-static {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2rem;
}

/* ── Nav — restrained, no capsule, sits flush with type ── */

body { padding-top: 76px; }

.nav-bar {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 60;
  background: rgba(244, 240, 234, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav-bar.scrolled {
  background: rgba(244, 240, 234, 0.94);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
  transition: opacity .2s;
  padding-bottom: 2px;
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 5px;
  align-self: center;
  transform: translateY(-2px);
}
.nav-logo .dot {
  display: inline-block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.5rem;
  letter-spacing: 0.42em;
  color: var(--muted);
  text-transform: uppercase;
  margin-left: 0.42rem;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .2s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.36rem;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after,
.nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-link[aria-expanded="true"] { color: var(--ink); }

.nav-link svg {
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  opacity: 0.5;
}
.nav-link:hover svg { opacity: 1; }
.nav-link[aria-expanded="true"] svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Primary CTA in the nav */
.nav-bar .btn-primary {
  padding: 0.55rem 1.15rem !important;
  font-size: 0.82rem !important;
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--r-md) !important;
}

/* ── Mega menu ── */
.mega-wrap { position: relative; }
.mega-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 22px;
  pointer-events: none;
}
.mega-wrap:hover::after,
.mega-wrap:focus-within::after { pointer-events: auto; }

.mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(1080px, 94vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
  gap: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.2,.7,.2,1);
  z-index: 60;
}
@media (max-width: 1000px) { .mega { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .mega { grid-template-columns: 1fr; } }
.mega-wrap:hover .mega,
.mega-wrap:focus-within .mega,
.mega.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-col h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 1rem;
}
.mega-link {
  display: block;
  padding: 0.7rem 0.85rem;
  margin: 0 -0.85rem;
  border-radius: var(--r-md);
  transition: background .15s;
}
.mega-link:hover { background: var(--bg-soft); }
.mega-link-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.mega-link-desc {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}
.mega-feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mega-feature .tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
}

/* Mobile menu button */
.menu-btn { display: none; }

/* Mobile backdrop overlay */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 149;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
  display: none;
}
.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile nav — bottom sheet drawer */
.mobile-panel {
  /* Hidden by default; made visible via transform on mobile */
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 85vh;
  max-height: 85svh;
  max-height: 85dvh;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 48px rgba(26,22,18,.16);
  z-index: 150;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.4rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s;
  visibility: hidden;
  pointer-events: none;
}
.mobile-panel::before {
  content: '';
  display: block;
  width: 36px; height: 4px;
  background: var(--line);
  border-radius: 100px;
  margin: 1rem auto 1.5rem;
}
.mobile-panel.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .35s cubic-bezier(.22,1,.36,1), visibility 0s;
}
.mobile-panel a {
  display: flex;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .15s ease;
}
.mobile-panel a:hover { color: var(--accent); }
.mobile-panel .mobile-section {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  padding: 1.5rem 0 0.3rem;
}
.mobile-panel a.btn-accent {
  margin-top: 1.25rem;
  background: var(--ink);
  color: var(--bg) !important;
  padding: 1rem 1.25rem;
  text-align: center;
  border-radius: 100px;
  border-bottom: 0;
  font-size: 0.92rem;
  justify-content: center;
  letter-spacing: 0;
}
.mobile-panel a.btn-accent:hover { background: var(--ink-soft); color: var(--bg) !important; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: transparent;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .nav-bar .nav-inner > a.btn-primary { display: none; }
  .mobile-panel { display: block; }
  .mobile-backdrop { display: block; }
}

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 5rem 0 2.5rem; background: var(--bg); }
.site-footer h5 {
  font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted); margin: 0 0 1.25rem;
}
.site-footer a { color: var(--ink-soft); font-family: var(--font-sans); }
.site-footer a:hover { color: var(--ink); }
.site-footer .meta { color: var(--muted); font-size: 0.85rem; font-family: var(--font-sans); }

/* ── Utility ── */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 500;
  padding: 4px 10px; border-radius: 100px;
  background: var(--bg-soft); color: var(--ink-soft);
  border: 1px solid var(--line);
  letter-spacing: 0.005em;
}
.kbd-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem; padding: 4px 10px;
  border-radius: var(--r-sm); background: var(--bg-soft); color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* Big-number — display weight, tabular numerals.
   Constrained so it never overflows its grid column. */
.bignum {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  max-width: 100%;
}
.bignum > span:not([data-count]) {
  margin-left: 1px;
  letter-spacing: 0;
}
.bignum-accent { color: var(--ink); }

/* Larger variant — for hero-style standalone stat blocks */
.bignum-xl {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  max-width: 100%;
}

/* ── Form — boxed fallback ── */
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); margin-bottom: 0.5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,22,18,0.06);
}
.form-field textarea { min-height: 110px; resize: vertical; }

/* ── Editorial form — underline-only inputs ── */
.form-editorial {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.form-editorial .form-field {
  margin: 0;
  position: relative;
}
.form-editorial label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.form-editorial input,
.form-editorial select,
.form-editorial textarea {
  width: 100%;
  padding: 0.5rem 0 0.85rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  outline: none;
  transition: border-bottom-color .35s ease;
  box-shadow: none;
}
.form-editorial input:focus,
.form-editorial select:focus,
.form-editorial textarea:focus {
  border-bottom-color: var(--ink);
  box-shadow: none;
}
.form-editorial input::placeholder,
.form-editorial textarea::placeholder {
  color: var(--muted-2);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
}
.form-editorial select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1612' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 2rem;
  cursor: pointer;
}
.form-editorial textarea {
  min-height: 80px;
  resize: vertical;
}
.form-editorial button[type=submit] {
  width: 100%;
  padding: 1.15rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  cursor: pointer;
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .25s ease, transform .15s ease;
}
.form-editorial button[type=submit]:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}
details.faq[open] summary { color: var(--ink); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.018em;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 300;
  transition: transform .25s;
}
details.faq[open] summary .plus { transform: rotate(45deg); color: var(--ink); }
details.faq .faq-body {
  padding-top: 0.85rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* Subtle paper texture */
.paper {
  background-image:
    radial-gradient(circle at 18% 22%, rgba(139,58,31,0.018) 0, transparent 60%),
    radial-gradient(circle at 82% 78%, rgba(26,22,18,0.022) 0, transparent 60%);
}

/* Reveal animation */
[data-reveal] { transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Trust badges ── */
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.trust-badge::before {
  content: "·";
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2em;
  line-height: 1;
}

/* ── Word-stagger reveal ── */
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: inherit;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
.word {
  display: inline-block;
  line-height: inherit;
}
[data-split="words"] { visibility: hidden; }
[data-split="words"].split-done { visibility: visible; }
[data-split="words"].split-done .word {
  will-change: transform;
  animation: wordRise 1.15s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 0.05s + 0.08s);
}
@keyframes wordRise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  [data-split="words"] { visibility: visible !important; }
  [data-split="words"].split-done .word { animation: none; }
}

/* Counter — tabular numerals */
[data-count] { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* Magnetic CTA */
[data-magnetic] { will-change: transform; }

/* Tilt card */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s, border-color 0.3s;
  will-change: transform;
}
.tilt-card:hover {
  transform: perspective(1200px) rotateY(-1.2deg) rotateX(1.4deg) translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--ink);
}
@media (prefers-reduced-motion: reduce) {
  .tilt-card:hover { transform: none; }
}

/* ── Brand Strip ── */
.brand-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 3.5rem;
  background: var(--bg);
}
.brand-strip-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-align: center;
  margin: 0 0 2.5rem;
}
.brand-strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.6rem 2.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.brand-strip-list li {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  letter-spacing: -0.018em;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0.72;
  transition: opacity .3s ease, color .3s ease;
}
.brand-strip-list li:hover { opacity: 1; color: var(--ink); }

/* ── Editorial Case Studies ── */
.case-grid { display: grid; gap: 6rem; }
.case-study {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.case-study.flip { grid-template-columns: 1fr 1.1fr; }
.case-study.flip .case-image { order: 2; }
.case-study.flip .case-content { order: 1; }
@media (max-width: 880px) {
  .case-grid { gap: 4rem; }
  .case-study, .case-study.flip { grid-template-columns: 1fr; gap: 1.75rem; }
  .case-study.flip .case-image, .case-study.flip .case-content { order: initial; }
}
.case-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 16/11;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  border: 1px solid var(--line);
}
.case-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .5s ease;
  filter: saturate(0.95);
}
.case-study:hover .case-image img { transform: scale(1.025); filter: saturate(1); }
.case-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.case-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.case-desc {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}
.case-metric {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 1.9rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.case-metric .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.038em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.case-metric .lbl {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 30ch;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 0.3rem 0 0.6rem;
  position: relative;
  transition: gap .35s cubic-bezier(.2,.7,.2,1);
}
.case-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.case-link:hover { gap: 14px; }
.case-link:hover::after { animation: linkSwipe .8s cubic-bezier(.2,.7,.2,1); }

/* Reviews grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1);
}
.review-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.review-stars {
  font-size: 0.95rem; letter-spacing: 4px; color: var(--gold);
  margin-bottom: 1.2rem; line-height: 1;
}
.review-body {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  flex: 1;
  margin: 0 0 1.5rem;
}
.review-meta { display: flex; align-items: center; gap: 0.75rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg); color: var(--ink-soft);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.78rem; flex-shrink: 0;
}
.review-meta-text { line-height: 1.4; font-family: var(--font-sans); }
.review-meta-name { font-weight: 600; font-size: 0.86rem; color: var(--ink); }
.review-meta-project { color: var(--muted); font-size: 0.78rem; }
.review-meta-badge {
  font-size: 0.68rem; color: var(--green); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-top: 4px; display: block;
  font-family: var(--font-sans);
}

/* Client Feedback Insights */
.insights-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.insight-cell {
  padding: 2.4rem 1.6rem;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.4rem;
  background: transparent;
  transition: background .25s;
}
.insight-cell:hover { background: var(--bg-soft); }
.insight-cell:last-child { border-right: 0; }
.insight-count {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.insight-trait {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin-top: 0.6rem;
}
.insight-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 0.3rem;
}
@media (max-width: 800px) {
  .insight-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .insight-cell:last-child { border-bottom: 0; }
}

/* ── Portfolio grid (small cards, ALL projects) ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.work-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.work-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.work-card-img {
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92);
  transition: filter .4s, transform .6s cubic-bezier(.2,.7,.2,1);
}
.work-card:hover .work-card-img img {
  filter: saturate(1);
  transform: scale(1.03);
}
.work-card-body { padding: 1.4rem 1.5rem 1.5rem; }
.work-card-meta {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.work-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.024em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.work-card-tag {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* ── Pull-quote ── */
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 28ch;
  margin: 0;
}
.pullquote::before {
  content: '"';
  display: inline-block;
  font-size: 1.8em;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.05em;
  color: var(--accent);
  font-style: normal;
}

/* ── Process page elements ── */
.phase-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.phase-row:last-child { border-bottom: 0; }
.phase-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
@media (max-width: 880px) {
  .phase-row { grid-template-columns: 1fr; gap: 1.25rem; padding: 2.5rem 0; }
  .phase-num { font-size: 1.8rem; }
}

/* ── Notes list ── */
.note-row {
  display: grid;
  grid-template-columns: 130px 1fr 80px;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left .3s ease;
}
.note-row:hover { padding-left: 0.5rem; }
.note-row:last-child { border-bottom: 0; }
.note-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.note-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.024em;
  color: var(--ink);
  line-height: 1.25;
}
.note-title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; }
.note-time {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}
@media (max-width: 720px) {
  .note-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.4rem 0; }
  .note-time { text-align: left; }
}

/* ── Now page card ── */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.now-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem;
}
.now-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.now-card-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(94,122,74,0.18);
  animation: nowPulse 2.4s ease-in-out infinite;
}
@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94,122,74,0.12); }
  50% { box-shadow: 0 0 0 5px rgba(94,122,74,0.06); }
}
.now-card-status.queued::before { background: var(--muted-2); animation: none; }
.now-card-status.shipped::before { background: var(--accent); animation: none; }

/* Print-marker — small decoration */
.print-mark {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  margin: 0 0.1em;
}

/* Gold for review stars */
:root { --gold: #B08A4A; }

/* ─────────────────────────────────────────────────────────────
   Floating widgets — cookie banner + chatbot
   ───────────────────────────────────────────────────────────── */

.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;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 720px;
  margin: 0 auto;
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px -20px rgba(26,22,18,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: opacity .3s, transform .3s;
  opacity: 1;
  transform: translateY(0);
  font-family: var(--font-sans);
}
.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
}
.cookie-text {
  font-family: var(--font-serif);
  font-size: 0.93rem;
  line-height: 1.55;
  color: rgba(244,240,234,0.92);
  margin: 0;
  letter-spacing: -0.005em;
}
.cookie-text a { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.cookie-text a:hover { text-decoration-color: rgba(244,240,234,0.5); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn {
  padding: 0.55rem 1.05rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(244,240,234,0.22);
  background: transparent;
  color: var(--bg);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.cookie-decline:hover { border-color: rgba(244,240,234,0.45); }
.cookie-accept {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.cookie-accept:hover { background: rgba(244,240,234,0.88); }
@media (max-width: 640px) {
  .cookie-banner { bottom: 0.6rem; left: 0.6rem; right: 0.6rem; }
  .cookie-inner { grid-template-columns: 1fr; gap: 0.85rem; padding: 1rem; }
  .cookie-actions { justify-content: flex-end; }
}

/* ── Chat launcher button ── */
.chat-launcher {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 75;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.2rem 0.85rem 1rem;
  border-radius: 100px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 18px 48px -16px rgba(26,22,18,0.42), 0 1px 0 rgba(255,255,255,0.06) inset;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, box-shadow .25s;
  position: fixed;
}
.chat-launcher:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px -18px rgba(26,22,18,0.5);
}
.chat-launcher-label { white-space: nowrap; }
.chat-launcher-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5E7A4A;
  box-shadow: 0 0 0 3px rgba(94,122,74,0.25);
  animation: chatPulse 2.4s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94,122,74,0.22); }
  50% { box-shadow: 0 0 0 6px rgba(94,122,74,0.08); }
}
.chat-launcher-bump { animation: chatBump 0.7s ease-out 2; }
@keyframes chatBump {
  0% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-6px) scale(1.04); }
  70% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
.chat-launcher-open svg { transform: rotate(90deg); transition: transform .35s; }

@media (max-width: 640px) {
  .chat-launcher { bottom: 1rem; right: 1rem; padding: 0.8rem 1.05rem 0.8rem 0.95rem; }
  .chat-launcher-label { display: none; }
}

/* ── Chat panel ── */
.chat-panel {
  position: fixed;
  bottom: 5.25rem;
  right: 1.5rem;
  z-index: 76;
  width: min(380px, calc(100vw - 2rem));
  max-height: min(620px, calc(100vh - 7rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px -24px rgba(26,22,18,0.32), 0 1px 0 rgba(255,255,255,0.5) inset;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity .28s cubic-bezier(.2,.7,.2,1), transform .28s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
@media (max-width: 640px) {
  .chat-panel {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92svh;
    border-radius: 20px 20px 0 0;
    border: none;
    border-top: 1px solid var(--line);
    transform-origin: bottom center;
    transform: translateY(100%);
    box-shadow: 0 -8px 40px rgba(26,22,18,.18);
  }
  .chat-panel.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .chat-head {
    position: relative;
    padding-top: 1.75rem;
  }
  .chat-head::before {
    content: '';
    position: absolute;
    top: 0.7rem; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 4px;
    background: var(--line);
    border-radius: 100px;
  }
  .chat-log { max-height: 42svh; }
  .chat-launcher {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.chat-head-meta { display: flex; align-items: center; gap: 0.75rem; }
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
}
.chat-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0 2px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.chat-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  display: flex; align-items: center; gap: 6px;
  letter-spacing: 0.005em;
}
.chat-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5E7A4A;
  box-shadow: 0 0 0 2px rgba(94,122,74,0.25);
  animation: chatPulse 2.4s ease-in-out infinite;
}
.chat-close {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, background .2s;
}
.chat-close:hover { color: var(--ink); background: var(--bg-soft); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 84%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-family: var(--font-serif);
  font-size: 0.97rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  animation: chatMsgIn .35s cubic-bezier(.2,.7,.2,1) backwards;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg-assistant {
  align-self: flex-start;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  border-bottom-right-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.chat-msg-assistant a.chat-link,
.chat-msg-assistant a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chat-typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.85rem 1rem;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
  animation: chatTyping 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 1.25rem 0.75rem;
}
.chat-chip {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  letter-spacing: 0.005em;
}
.chat-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--bg-soft);
}

.chat-cta {
  margin: 0.25rem 0 0.5rem;
  padding: 1.2rem 1.25rem 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2.5px solid var(--accent);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.chat-cta-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin: 0;
}
.chat-cta-text {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}
.chat-cta-actions { margin-top: 0.35rem; }
.chat-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.58rem 1.1rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background .2s, gap .25s cubic-bezier(.2,.7,.2,1);
}
.chat-cta-primary {
  background: var(--ink);
  color: var(--bg);
}
.chat-cta-primary:hover {
  background: var(--ink-soft);
  gap: 11px;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-family: var(--font-serif);
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.chat-form input:focus { border-color: var(--ink); }
.chat-form input::placeholder { color: var(--muted-2); font-style: italic; }
.chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--ink-soft); transform: translateX(1px); }

.chat-foot {
  padding: 0.6rem 1rem 0.85rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.04em;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}
.chat-foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.chat-foot a:hover { color: var(--ink); }

/* When cookie banner present, lift chat launcher above it */
.cookie-banner ~ .chat-launcher { bottom: 5.5rem; }
@media (max-width: 640px) {
  .cookie-banner ~ .chat-launcher { bottom: 7.5rem; }
}

/* ─────────────────────────────────────────────────────────────
   Hero 2-col grid with sidecar
   ───────────────────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 100%;
}
.hero-main { min-width: 0; }
.hero-sidecar { position: sticky; top: 110px; }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-sidecar { position: static; }
}

.hero-sidecar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 18px 48px -30px rgba(26,22,18,0.18);
}
.hero-sidecar-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero-sidecar-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(94,122,74,0.22);
  animation: chatPulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-sidecar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.hero-sidecar-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.85rem;
  align-items: baseline;
}
.hero-sidecar-tag {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding-top: 2px;
}
.hero-sidecar-line {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.hero-sidecar-divider {
  height: 1px;
  background: var(--line);
  margin: 1.5rem 0;
}
.hero-sidecar-note {
  display: block;
  transition: transform .25s ease;
}
.hero-sidecar-note:hover { transform: translateX(2px); }
.hero-sidecar-note-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.hero-sidecar-note-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.hero-sidecar-note-arrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.hero-sidecar-availability { display: grid; gap: 0.45rem; }
.hero-sidecar-availability-label {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.hero-sidecar-availability-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-sidecar-availability-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  align-self: start;
  margin-top: 0.35rem;
}

/* ─────────────────────────────────────────────────────────────
   Rich footer
   ───────────────────────────────────────────────────────────── */
.footer-rich { padding: 6rem 0 2.5rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 3rem; padding-bottom: 3rem; margin-bottom: 3rem; }
}

.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}
.footer-logo {
  align-items: baseline;
  gap: 1rem;
}
.footer-logo-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.footer-logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: top;
  transform: translateY(0.45em);
}
.footer-logo-caps {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--muted);
  text-transform: uppercase;
  transform: translateY(-0.4em);
}
.footer-tag {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
}

/* Newsletter */
.footer-newsletter { display: flex; flex-direction: column; gap: 1rem; }
.footer-newsletter-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0;
}
.footer-newsletter-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.footer-newsletter-form {
  display: flex;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
  margin-top: 0.5rem;
}
.footer-newsletter-form input {
  flex: 1;
  padding: 0.65rem 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
}
.footer-newsletter-form input::placeholder {
  color: var(--muted-2);
  font-style: italic;
}
.footer-newsletter-form button {
  padding: 0.55rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, transform .2s ease;
  align-self: center;
  white-space: nowrap;
}
.footer-newsletter-form button:hover {
  background: var(--ink-soft);
  transform: translateX(1px);
}
.footer-newsletter-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  letter-spacing: 0.005em;
}
.footer-newsletter-success {
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 0.95rem;
}

/* Currently shipping snippet */
.footer-now {
  padding: 2.5rem 0;
  margin-bottom: 3.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-now-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.footer-now-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(94,122,74,0.22);
  animation: chatPulse 2.4s ease-in-out infinite;
}
.footer-now-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  flex: 1;
}
.footer-now-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
.footer-now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.footer-now-item { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-now-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.footer-now-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Footer link columns */
.footer-rich .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) {
  .footer-rich .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 2.5rem !important; }
}
@media (max-width: 560px) {
  .footer-rich .footer-grid { grid-template-columns: 1fr !important; }
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* ─────────────────────────────────────────────────────────────
   Editorial essay section — homepage "A short essay"
   ───────────────────────────────────────────────────────────── */

.essay-section { padding: 8rem 0; }
@media (max-width: 768px) { .essay-section { padding: 5rem 0; } }

.essay-grid {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: 5rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 900px) {
  .essay-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ── Sticky editorial meta column ── */
.essay-meta {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (max-width: 900px) {
  .essay-meta { position: static; gap: 2rem; }
}

.essay-chapter {
  display: flex;
  align-items: center;
  gap: 14px;
}
.essay-chapter-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3.2rem;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.essay-chapter-rule {
  width: 24px;
  height: 1px;
  background: var(--ink);
}
.essay-chapter-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--ink);
}

.essay-side-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 2px solid var(--accent);
  max-width: 28ch;
}

.essay-meta-block {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.essay-meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.essay-meta-key {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.essay-meta-val {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.essay-side-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.essay-side-stats > div { display: flex; flex-direction: column; gap: 0.25rem; }
.essay-side-stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.essay-side-stat-lbl {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ── Essay body ── */
.essay-body { min-width: 0; max-width: 64ch; }

.essay-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 0;
  text-wrap: balance;
}
.essay-title-sub {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink-soft);
}

.essay-divider {
  display: flex;
  align-items: center;
  margin: 2.5rem 0 2rem;
}
.essay-divider span {
  width: 64px;
  height: 1px;
  background: var(--ink);
  display: block;
  position: relative;
}
.essay-divider span::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.essay-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.32rem);
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: -0.008em;
  margin: 0 0 1.5rem;
}

.essay-dropcap {
  float: left;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 4.6em;
  line-height: 0.88;
  padding: 0.1em 0.12em 0 0;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.essay-para {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  margin: 0 0 1.5rem;
}
.essay-para em { font-style: italic; color: var(--ink); }
.essay-para strong { font-weight: 600; color: var(--ink); }

/* ── Pull quote ── */
.essay-pull {
  position: relative;
  margin: 3rem 0 2.5rem;
  padding: 2rem 0 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.essay-pull-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.essay-pull-mark {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.9;
  color: var(--accent);
  opacity: 0.6;
  align-self: start;
}

.essay-close {
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
  margin-top: 1.5rem;
}

/* ── Closing footer links ── */
.essay-foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.essay-foot-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0.85rem 0;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  transition: gap .3s cubic-bezier(.2,.7,.2,1), color .25s;
}
.essay-foot-link:hover { gap: 14px; color: var(--accent); }
.essay-foot-arrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
}
.essay-foot-text {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  letter-spacing: -0.005em;
}

/* ─────────────────────────────────────────────────────────────
   Hero stats grid — proper containment, breathing room
   ───────────────────────────────────────────────────────────── */

/* ── Founder strip — paired pill cards linking to each Upwork profile ── */
.founder-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.25rem;
  max-width: 560px;
}
.founder-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.founder-pill:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -16px rgba(26,22,18,0.3);
}
.founder-pill-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.founder-pill-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.founder-pill-name {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.founder-pill-loc {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.founder-pill-arrow {
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .18s ease, color .18s ease;
}
.founder-pill:hover .founder-pill-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}
@media (max-width: 520px) {
  .founder-strip { grid-template-columns: 1fr; gap: 0.5rem; max-width: 100%; }
  .founder-pill { padding: 0.7rem 0.85rem; }
  .founder-pill-avatar { flex-basis: 32px; width: 32px; height: 32px; font-size: 0.95rem; }
}

.hero-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
  max-width: 820px;
}
.hero-stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 1000px; }

@media (max-width: 960px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2rem; }
  .hero-stats-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero-stats, .hero-stats-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
}

.hero-stat {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-stat-lbl {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  line-height: 1.4;
}

/* Bignum suffix — small marks like + % yrs ★ */
.bignum-suffix {
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
  color: var(--ink);
  align-self: baseline;
}

/* ─────────────────────────────────────────────────────────────
   Keyboard accessibility — visible focus ring
   ───────────────────────────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-accent:focus-visible {
  outline-offset: 3px;
}
.nav-link:focus-visible,
.work-card:focus-visible,
.case-study a:focus-visible,
.btn-link:focus-visible,
.btn-editorial:focus-visible {
  outline-offset: 4px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chat-launcher:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   Portfolio work-card refinements — case study link + live URL
   ───────────────────────────────────────────────────────────── */
.work-card-img-link { display: block; }
.work-card-actions {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.work-card-cs {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  letter-spacing: -0.005em;
  transition: color .25s, border-color .25s;
}
.work-card-cs:hover { color: var(--accent); border-bottom-color: var(--accent); }
.work-card-live {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0;
  transition: color .25s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
.work-card-live:hover { color: var(--ink); }

/* ─────────────────────────────────────────────────────────────
   Portfolio: branded placeholder + featured badge
   ───────────────────────────────────────────────────────────── */
.work-card-placeholder {
  height: 100%;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--surface) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}
.work-card-placeholder::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  pointer-events: none;
}
.work-card-placeholder-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: 0.7;
}
.work-card-placeholder-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.work-card-img-link { position: relative; }
.work-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: 100px;
  pointer-events: none;
}
.work-card-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.work-card-featured { /* No size difference — same grid cell. Just the badge. */ }

/* ─────────────────────────────────────────────────────────────
   1. Subtle grain texture — adds tactile quality across the site
   ───────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.09  0 0 0 0 0.07  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce), (max-width: 640px) {
  body::before { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   2. Custom cursor — terracotta dot + outline ring
   ───────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  body.cursor-ready { cursor: none; }
  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready input,
  body.cursor-ready textarea,
  body.cursor-ready select,
  body.cursor-ready [role="button"] { cursor: none; }
  body.cursor-ready textarea, body.cursor-ready input { cursor: none; }

  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    mix-blend-mode: normal;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform .12s cubic-bezier(.2,.7,.2,1), opacity .2s;
    margin: -3px 0 0 -3px;
  }
  .cursor-ring {
    width: 32px; height: 32px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s, width .3s, height .3s, background .3s;
    margin: -16px 0 0 -16px;
    opacity: 0.4;
  }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    margin: -28px 0 0 -28px;
    border-color: var(--accent);
    background: rgba(139, 58, 31, 0.06);
    opacity: 0.7;
  }
  body.cursor-hover .cursor-dot { transform: scale(0); }
}

/* ─────────────────────────────────────────────────────────────
   3. Device mockup — browser frame cycling client screenshots
   ───────────────────────────────────────────────────────────── */
.device-mockup {
  position: relative;
  background: linear-gradient(140deg, var(--surface) 0%, var(--bg-soft) 100%);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 30px 60px -30px rgba(26,22,18,0.18),
    0 1px 2px rgba(26,22,18,0.04);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.device-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.device-chrome-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}
.device-chrome-dot:first-child { background: rgba(139, 58, 31, 0.45); }
.device-chrome-url {
  flex: 1;
  margin-left: 14px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition: color .35s ease;
}
.device-viewport {
  position: relative;
  width: 100%;
  height: calc(100% - 38px);
  background: var(--bg-soft);
  overflow: hidden;
}
.device-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s cubic-bezier(.2,.7,.2,1);
  background-size: cover;
  background-position: top center;
  filter: saturate(0.96);
}
.device-slide.is-active { opacity: 1; }

.device-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  background: rgba(26,22,18,0.85);
  backdrop-filter: blur(8px);
  color: var(--bg);
  border-radius: 6px;
  font-family: var(--font-sans);
  pointer-events: none;
}
.device-caption-name {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.device-caption-tag {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(244,240,234,0.7);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.device-progress {
  position: absolute;
  top: 38px;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  transition: width 0.05s linear;
  z-index: 2;
}

/* ─────────────────────────────────────────────────────────────
   4. Sticky "Book a free audit" CTA pill (mirrors chatbot bottom-right)
   ───────────────────────────────────────────────────────────── */
.audit-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.3rem 0.85rem 1.1rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  box-shadow: 0 18px 48px -16px rgba(26,22,18,0.18);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s, color .25s, opacity .35s;
}
.audit-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.audit-cta:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
}
.audit-cta-mark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(139, 58, 31, 0.18);
}
.audit-cta-svg {
  margin-left: 2px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.audit-cta:hover .audit-cta-svg { transform: translateX(3px); }
@media (max-width: 640px) {
  .audit-cta {
    bottom: 1rem;
    left: 1rem;
    padding: 0.75rem 1.1rem 0.75rem 0.95rem;
    font-size: 0.82rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   5. Aggregate metrics band — defensible per-engagement ranges
   ───────────────────────────────────────────────────────────── */
.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .metrics-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metrics-band { grid-template-columns: 1fr; } }

.metric-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: background .3s ease;
}
.metric-cell:hover { background: var(--bg); }
.metric-cell:nth-child(3n) { border-right: 0; }
.metric-cell:nth-last-child(-n+3) { border-bottom: 0; }
@media (max-width: 880px) {
  .metric-cell { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .metric-cell:nth-child(2n) { border-right: 0 !important; }
  .metric-cell:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 520px) {
  .metric-cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .metric-cell:last-child { border-bottom: 0 !important; }
}

.metric-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.metric-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.metric-headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.metric-detail {
  font-family: var(--font-serif);
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   6. Mobile typography & density refinements
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.65; }
  .h-display { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.02; }
  .h-1 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); line-height: 1.08; }
  .h-2 { font-size: clamp(1.3rem, 5vw, 1.65rem); }
  .lead { font-size: 1.06rem; line-height: 1.6; max-width: 100%; }
  .prose { font-size: 1.04rem; line-height: 1.7; }
  .prose p { margin: 0 0 1.1em; }
  .essay-body { max-width: 100%; }
  .essay-lede { font-size: 1.1rem; line-height: 1.6; }
  .essay-para { font-size: 1.04rem; line-height: 1.7; margin-bottom: 1.25rem; }
  .essay-pull { margin: 2rem 0 1.75rem; padding: 1.5rem 0; }
  .essay-pull-text { font-size: 1.3rem; }
  .essay-dropcap { font-size: 3.8em; }
  .btn { padding: 0.95rem 1.4rem; min-height: 44px; }
  .btn-primary { min-height: 44px; }
  .nav-link { padding: 0.6rem 0.85rem; min-height: 40px; }
  .case-desc { font-size: 1rem; line-height: 1.55; }
  .case-name { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .work-card-name { font-size: 1.2rem; }
  .work-card-tag { font-size: 0.95rem; line-height: 1.5; }
  details.faq { padding: 1.3rem 0; }
  details.faq summary { font-size: 1.06rem; line-height: 1.35; }
  .footer-top { gap: 2.5rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; }
  .footer-newsletter-form input { font-size: 1rem; padding: 0.6rem 0 0.7rem; }
  .container, .container-narrow { padding: 0 1.25rem; }
}

/* Larger touch targets for tap-only contexts */
@media (hover: none) and (pointer: coarse) {
  .work-card-cs, .work-card-live, .btn-link, .btn-editorial, .case-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   Hero device mockup — v2, cinematic + tighter
   ───────────────────────────────────────────────────────────── */

/* Override v1 device-mockup with a tighter, more cinematic build */
.device-mockup {
  aspect-ratio: 16 / 11;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 1px 2px rgba(26,22,18,0.06),
    0 18px 36px -18px rgba(26,22,18,0.16),
    0 50px 80px -40px rgba(26,22,18,0.22);
  position: relative;
}
.device-mockup::after {
  /* Subtle highlight at the very top of the frame */
  content: '';
  position: absolute;
  top: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 50%, transparent 100%);
  pointer-events: none;
}

.device-chrome {
  padding: 9px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  gap: 5px;
  position: relative;
  z-index: 1;
}
.device-chrome-dot {
  width: 8px; height: 8px;
}
.device-chrome-dot:first-child { background: #C2614A; }
.device-chrome-dot:nth-child(2) { background: #C8A24A; }
.device-chrome-dot:nth-child(3) { background: #6E8B5F; }

.device-chrome-url {
  margin-left: 10px;
  padding: 3px 12px;
  background: var(--bg-soft);
  border-radius: 100px;
  font-size: 0.66rem;
  letter-spacing: 0;
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: color .35s ease;
}
.device-chrome-url::before {
  content: '🔒\00a0';
  font-size: 0.7em;
  opacity: 0.45;
  margin-right: 1px;
}

.device-viewport {
  height: calc(100% - 32px);
  background: var(--bg);
}

.device-progress {
  top: 32px;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.8;
}

.device-slide {
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1);
  transform: scale(1.03);
  filter: saturate(0.96) brightness(0.99);
}
.device-slide.is-active {
  transform: scale(1);
  filter: saturate(1) brightness(1);
}

.device-caption {
  bottom: 12px;
  left: 12px;
  padding: 7px 11px 8px;
  background: rgba(26,22,18,0.88);
  border-radius: 7px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
}
.device-caption-name {
  font-size: 0.76rem;
  letter-spacing: -0.005em;
}
.device-caption-tag {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}

/* Give the mockup MORE width in the hero grid — was 1.55fr/1fr, now 1.3fr/1fr */
.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
}
.hero-main { min-width: 0; max-width: 100%; }
.hero-sidecar { min-width: 0; max-width: 100%; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
}

/* Device mockup must size from its grid cell, never from its content */
.device-mockup {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Reduce gap between mockup and the "Next available slot" line below */
.hero-sidecar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─────────────────────────────────────────────────────────────
   Portfolio card placeholder v2 — branded mark, not "pending"
   ───────────────────────────────────────────────────────────── */
.work-card-placeholder {
  background: linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 60%, var(--surface) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem 1.5rem;
  position: relative;
}
.work-card-placeholder::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  pointer-events: none;
}
.work-card-placeholder::after {
  /* Small terracotta accent dot at top */
  content: '';
  position: absolute;
  top: 32px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.work-card-placeholder-mark {
  display: none; /* hide the big initial — name does the work */
}
.work-card-placeholder-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-align: center;
  max-width: 80%;
  padding: 0 1rem;
}
.work-card-placeholder-label {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-align: center;
}


/* ─────────────────────────────────────────────────────────────
   Case-study wordmark (homepage Selected Work — for projects
   with hideScreenshot: true, mirrors portfolio listing treatment)
   ───────────────────────────────────────────────────────────── */
.case-wordmark {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 60%, var(--surface) 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.case-wordmark::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  pointer-events: none;
}
.case-wordmark::after {
  content: '';
  position: absolute;
  top: 36px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}
.case-wordmark-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 14ch;
  margin: 0;
}
.case-wordmark-tag {
  margin-top: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
}
.case-wordmark-cta {
  margin-top: 2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.case-study a.case-image:has(.case-wordmark) {
  background: transparent;
  border: 0;
}
.case-study a.case-image:has(.case-wordmark)::after {
  display: none;
}

/* ─────────────────────────────────────────────────────────────
   Homepage Selected Work — redesigned editorial card grid
   (replaces the alternating case-study layout)
   ───────────────────────────────────────────────────────────── */

/* Grid wrapper */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

/* Featured card — spans both columns, horizontal layout */
.pf-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: box-shadow .4s ease, border-color .4s ease;
}
.pf-card--featured:hover {
  box-shadow: 0 14px 48px rgba(26,22,18,.08);
  border-color: rgba(26,22,18,.15);
}

/* Regular card — portrait, image top */
.pf-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease, border-color .4s ease;
}
.pf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 48px rgba(26,22,18,.08);
  border-color: rgba(26,22,18,.15);
}

/* Image wrapper */
.pf-card-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  display: block;
  flex-shrink: 0;
}
.pf-card .pf-card-img { aspect-ratio: 16 / 10; }
.pf-card--featured .pf-card-img { height: 100%; min-height: 400px; }

.pf-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease;
  filter: saturate(0.9);
}
.pf-card:hover .pf-card-img img,
.pf-card--featured:hover .pf-card-img img {
  transform: scale(1.04);
  filter: saturate(1);
}

/* Number badge — overlaid top-left on image */
.pf-card-num {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: rgba(244,240,234,.9);
  background: rgba(26,22,18,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
}

/* Card body — content below image (or beside for featured) */
.pf-card-body {
  padding: 1.6rem 1.9rem 1.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pf-card--featured .pf-card-body {
  padding: 2.5rem 2.75rem;
  justify-content: center;
}

.pf-card-tag {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.pf-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.pf-card--featured .pf-card-name {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 1.1rem;
}

.pf-card-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  max-width: 48ch;
  flex: 1;
}
.pf-card--featured .pf-card-desc {
  font-size: 1.06rem;
  margin-bottom: 2rem;
}

/* Card footer — metric left, link right */
.pf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-wrap: wrap;
}

.pf-card-metric {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.pf-card-metric strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.pf-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: gap .3s cubic-bezier(.2,.7,.2,1);
}
.pf-card-link svg { flex-shrink: 0; }
.pf-card-link:hover { gap: 12px; }

/* Wordmark variant — for projects without screenshots */
.pf-card-wm {
  width: 100%; height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 60%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}
.pf-card--featured .pf-card-wm { min-height: 400px; }
.pf-card-wm::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(26,22,18,.12);
  border-radius: 6px;
  pointer-events: none;
}
.pf-card-wm::after {
  content: '';
  position: absolute;
  top: 32px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.pf-card-wm-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.pf-card-wm-sub {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .pf-card--featured {
    grid-template-columns: 1fr;
  }
  .pf-card--featured .pf-card-img {
    height: auto;
    min-height: unset;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 680px) {
  .pf-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — App-grade polish layer
   Assembled for iOS + Android. Keeps the Quiet Luxury aesthetic
   while delivering a native-feeling touch experience.
   ═══════════════════════════════════════════════════════════════ */

/* ── Global mobile fundamentals ── */
@media (max-width: 640px) {
  * { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .section { padding: 4rem 0; }
  .section-lg { padding: 4rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .container, .container-narrow, .container-tight { padding: 0 1.1rem; }
}

/* ── Mobile bottom navigation bar ── */
.mob-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 170;
  background: rgba(244,240,234,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
  padding: 0.35rem 0.85rem max(0.5rem, env(safe-area-inset-bottom, 0px));
  align-items: center;
  gap: 0.25rem;
}
@media (max-width: 640px) { .mob-bar { display: flex; } }

.mob-bar-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.35rem 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.57rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: color .18s ease;
  background: transparent;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.mob-bar-item:active { color: var(--ink); transform: scale(0.94); }

.mob-bar-cta {
  flex: 1.8;
  flex-direction: row;
  gap: 7px;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  margin: 0.2rem 0.5rem;
  text-decoration: none;
}
.mob-bar-cta:active { background: var(--ink-soft) !important; transform: scale(0.97); }

/* Hide floating chat launcher and audit CTA on mobile — bottom bar has chat */
@media (max-width: 640px) {
  .chat-launcher { display: none; }
  .audit-cta {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 1rem !important;
    font-size: 0.72rem !important;
    padding: 0.55rem 0.95rem !important;
  }
}

/* Hide bottom bar when chat is open full-screen */
body.chat-open .mob-bar { display: none; }

/* ── Cookie banner — lift above bottom bar ── */
@media (max-width: 640px) {
  .cookie-banner {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 0.5rem) !important;
    border-radius: 16px !important;
    width: auto !important;
  }
}

/* ── Hero — trust badges horizontal scroll ── */
@media (max-width: 680px) {
  .trust-badges {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -1.1rem;
    padding-right: 1.1rem;
  }
  .trust-badges::-webkit-scrollbar { display: none; }
  .trust-badge {
    scroll-snap-align: start;
    flex-shrink: 0;
    font-size: 0.66rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }
  .hero-stat-lbl { font-size: 0.6rem; }
}

/* ── Reviews — horizontal scroll carousel ── */
@media (max-width: 680px) {
  .reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -1.1rem;
    padding-right: 1.1rem;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review-card {
    scroll-snap-align: start;
    flex: 0 0 84vw;
    min-width: 0;
    max-width: 320px;
  }
}

/* ── Portfolio cards — tighter padding ── */
@media (max-width: 680px) {
  .pf-grid { gap: 1rem; }
  .pf-card-body { padding: 1.15rem 1.3rem 1.4rem; }
  .pf-card--featured .pf-card-body { padding: 1.4rem 1.4rem 1.6rem; }
  .pf-card-name { font-size: clamp(1.25rem, 5.5vw, 1.55rem); }
  .pf-card--featured .pf-card-name { font-size: clamp(1.45rem, 6vw, 1.85rem); }
  .pf-card-desc { font-size: 0.9rem; }
  .pf-card-metric strong { font-size: 1.15rem; }
}

/* ── Metrics band ── */
@media (max-width: 520px) {
  .metrics-band { gap: 0.85rem; }
  .metric-headline { font-size: clamp(1rem, 5.5vw, 1.3rem); }
}

/* ── Insights band ── */
@media (max-width: 520px) {
  .insights-band { gap: 0.85rem; }
  .insight-count { font-size: clamp(2.4rem, 13vw, 3.5rem); }
}

/* ── Essay section — hide sidebar meta ── */
@media (max-width: 640px) {
  .essay-meta { display: none; }
  .essay-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .essay-title { font-size: clamp(1.55rem, 6.5vw, 2rem); line-height: 1.12; }
}

/* ── Approach section ── */
@media (max-width: 640px) {
  .approach-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* ── Contact section ── */
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .card-static { padding: 1.75rem 1.25rem !important; }
}

/* ── FAQ accordion ── */
@media (max-width: 640px) {
  .faq summary { padding: 1.1rem 0; font-size: 0.96rem; min-height: 52px; display: flex; align-items: center; justify-content: space-between; }
}

/* ── Footer ── */
@media (max-width: 640px) {
  .footer-rich { padding: 3rem 0 1.5rem; }
  .footer-now-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
  .footer-bottom { flex-direction: column !important; gap: 0.4rem !important; text-align: center; }
  .footer-grid { gap: 2rem !important; }
}

/* ── CTA after cases ── */
@media (max-width: 640px) {
  .cta-after-cases {
    padding: 2rem 1.5rem !important;
  }
}

/* ── Touch targets — minimum 44px on coarse pointer ── */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-primary, .chat-cta-btn { min-height: 48px; }
  .pf-card-link { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-link, .mega-link { min-height: 44px; }
  select, input[type="text"], input[type="email"], input[type="url"] {
    min-height: 48px;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
}

/* ── Smooth momentum scroll on all scroll containers ── */
.reviews-grid, .trust-badges, .chat-log, .mobile-panel {
  -webkit-overflow-scrolling: touch;
}
