@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;500;700&family=Libre+Baskerville:wght@400;700&family=Source+Code+Pro:wght@400;500&display=swap');

:root {
  --mist: #FBF8F7;
  --cloud: #F0EBEA;
  --wash: #F5F0EF;
  --ink: #152022;
  --carmine: #8E2F4C;
  --slate: #6A7473;
  --link-on-light: #7A2842;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Karla', system-ui, sans-serif;
  --font-mono: 'Source Code Pro', monospace;
  --max-width: 1280px;
  --section-pad: clamp(48px, 5vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link-on-light); text-decoration-thickness: 1px; }
a:hover { color: var(--carmine); }

.surface-mist { background: var(--mist); color: var(--ink); }
.surface-cloud { background: var(--cloud); color: var(--ink); }
.surface-wash { background: var(--wash); color: var(--ink); }
.surface-carmine { background: var(--carmine); color: var(--mist); }

.ledger-strip {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 16px;
  color: var(--slate);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(21,32,34,0.08);
  background: var(--mist);
  transition: box-shadow 0.3s ease;
}
.site-header.is-sticky {
  box-shadow: 0 4px 24px rgba(21,32,34,0.06);
  background: var(--mist);
}
.masthead-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
}
.main-nav a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--carmine);
  transition: width 0.35s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }
.nav-cta { color: var(--carmine) !important; font-weight: 700 !important; }
.nav-cta::after { background: var(--carmine) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(21,32,34,0.15);
  border-radius: 2px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

main { min-height: 60vh; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--carmine);
  margin: 0 0 16px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: clamp(44px, 5.5vw, 82px); margin: 0 0 24px; }
h2 { font-size: clamp(32px, 3.5vw, 48px); margin: 0 0 20px; }
h3 { font-size: clamp(22px, 2vw, 28px); margin: 0 0 12px; }
.text-carmine { color: var(--carmine); }
.text-slate { color: var(--slate); }

.section { padding: var(--section-pad) 32px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-primary {
  background: var(--carmine);
  color: var(--mist);
  border-color: var(--carmine);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 4px 16px rgba(142,47,76,0.25); color: var(--mist); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { box-shadow: 0 2px 12px rgba(21,32,34,0.1); }
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Hero Pattern C */
.hero-boost-ledger {
  min-height: auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px 1fr minmax(240px, 36%);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 32px;
}
.hero-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--carmine);
  text-transform: uppercase;
  align-self: start;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding-left: clamp(16px, 4vw, 48px); }
.hero-content .emphasis { color: var(--carmine); }
.hero-standfirst { max-width: 560px; color: rgba(21,32,34,0.82); font-size: 18px; margin: 24px 0; }
.hero-trust {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin-top: 40px;
  letter-spacing: 0.04em;
}
.hero-plate {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  z-index: 1;
  align-self: center;
}
.nested-plate {
  position: relative;
  padding: 8px;
  background: var(--mist);
  border: 1px solid rgba(21,32,34,0.12);
  box-shadow: 0 24px 64px rgba(21,32,34,0.08);
}
.nested-plate::before,
.nested-plate::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--carmine);
  border-style: solid;
}
.nested-plate::before { top: -4px; left: -4px; border-width: 1px 0 0 1px; }
.nested-plate::after { bottom: -4px; right: -4px; border-width: 0 1px 1px 0; }
.nested-plate img { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; }

/* Boost ladder */
.boost-ladder {
  display: flex;
  gap: 0;
  margin: 32px 0;
  border: 1px solid rgba(21,32,34,0.12);
  border-radius: 2px;
  overflow: hidden;
  background: var(--mist);
}
.boost-ladder .rung {
  flex: 1;
  padding: 14px 12px;
  border-right: 1px solid rgba(21,32,34,0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  transition: color 0.4s ease, background 0.4s ease;
}
.boost-ladder .rung:last-child { border-right: none; }
.boost-ladder.is-lit .rung { color: var(--carmine); background: rgba(142,47,76,0.04); }
.boost-ladder.is-lit .rung:nth-child(1) { transition-delay: 0s; }
.boost-ladder.is-lit .rung:nth-child(2) { transition-delay: 0.15s; }
.boost-ladder.is-lit .rung:nth-child(3) { transition-delay: 0.3s; }
.boost-ladder.is-lit .rung:nth-child(4) { transition-delay: 0.45s; }

/* Fade up */
.js .fade-up { opacity: 0; transform: translateY(16px); transition: transform 0.7s ease, opacity 0.7s ease; }
.js .fade-up.in-view { opacity: 1; transform: translateY(0); }

/* Editorial grid */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.editorial-grid .span-6 { grid-column: span 6; }
.editorial-grid .span-4 { grid-column: span 4; }
.editorial-grid .span-8 { grid-column: span 8; }
.editorial-grid .span-12 { grid-column: span 12; }

.ledger-plate {
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(21,32,34,0.1);
  background: var(--cloud);
  position: relative;
  border-radius: 2px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}
.ledger-plate:hover {
  box-shadow: 0 12px 40px rgba(21,32,34,0.08);
  transform: translateY(-3px);
}
.ledger-plate .plate-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--carmine);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.ledger-plate h2, .ledger-plate h3 { margin-bottom: 12px; }
.ledger-plate p { color: rgba(21,32,34,0.78); line-height: 1.65; margin: 0 0 1rem; }
.ledger-plate p:last-child { margin-bottom: 0; }
.ledger-plate img { margin-top: 16px; aspect-ratio: 16/8; object-fit: cover; width: 100%; border-radius: 2px; }
.plate-stack > * + * { margin-top: 16px; }
.plate-thumb { margin-top: 16px; overflow: hidden; border-radius: 2px; border: 1px solid rgba(21,32,34,0.08); }
.plate-thumb img { width: 100%; aspect-ratio: 16/7; object-fit: cover; margin-top: 0; display: block; }

.metric-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding: clamp(24px, 3vw, 40px);
  background: var(--cloud);
  border: 1px solid rgba(21,32,34,0.08);
  border-radius: 2px;
}
.metric-trio > div {
  padding: 20px 16px;
  background: var(--mist);
  border: 1px solid rgba(21,32,34,0.06);
  border-radius: 2px;
}
.metric-trio .metric-value {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--carmine);
}
.metric-trio .metric-label { font-size: 14px; color: var(--slate); margin-top: 8px; line-height: 1.5; }

.work-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.work-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(21,32,34,0.1);
  border-radius: 2px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.work-card:hover { box-shadow: 0 16px 48px rgba(21,32,34,0.1); transform: translateY(-4px); }
.work-card .nested-plate { margin: 0; border: none; box-shadow: none; }
.work-card .nested-plate::before, .work-card .nested-plate::after { display: none; }
.work-card .nested-plate img { aspect-ratio: 16/10; }
.work-card-body { padding: 24px 32px 32px; }
.work-card-body p { color: var(--slate); line-height: 1.65; margin: 0; }

.faq-mini details {
  border-bottom: 1px solid rgba(21,32,34,0.1);
  padding: 20px 0;
}
.faq-mini summary { cursor: pointer; font-weight: 500; list-style: none; line-height: 1.45; }
.faq-mini summary::-webkit-details-marker { display: none; }
.faq-mini details[open] summary { color: var(--carmine); }
.faq-mini details p { color: var(--slate); margin: 12px 0 0; line-height: 1.65; }

.page-hero {
  padding: clamp(48px, 6vw, 80px) 32px 36px;
  border-bottom: 1px solid rgba(21,32,34,0.08);
}
.page-hero .section-inner { max-width: 800px; }
.page-hero p:not(.eyebrow) { color: rgba(21,32,34,0.78); font-size: 18px; max-width: 680px; line-height: 1.7; margin-top: 0; }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--slate); max-width: 62ch; line-height: 1.65; }
.section-actions { margin-top: 32px; }
.cta-section { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-section .btn-group { justify-content: center; }
.cta-section p { color: var(--slate); margin-bottom: 0; }
.engagement-plate { margin-bottom: 48px; }
.engagement-plate:last-child { margin-bottom: 0; }
.prose-note { font-style: italic; color: var(--slate); margin-bottom: 24px; }

.prose { max-width: 720px; }
.prose p { margin: 0 0 1.25em; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.4em; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-block address { font-style: normal; line-height: 1.8; color: rgba(21,32,34,0.82); }
.contact-block p { color: var(--slate); margin: 0 0 8px; }
.contact-form-wrap { padding: 32px; background: var(--mist); border: 1px solid rgba(21,32,34,0.1); border-radius: 2px; }

form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
form input, form select, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(21,32,34,0.15);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--mist);
  color: var(--ink);
  margin-bottom: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--carmine);
  box-shadow: 0 0 0 3px rgba(142,47,76,0.12);
}
form textarea { min-height: 140px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; }
.consent-row input { width: auto; margin: 4px 0 0; }

.faq-list details { border-bottom: 1px solid rgba(21,32,34,0.1); padding: 24px 0; }
.faq-list summary { cursor: pointer; font-family: var(--font-serif); font-size: 20px; font-weight: 700; line-height: 1.35; }
.faq-list details[open] summary { color: var(--carmine); }
.faq-list details p { color: var(--slate); margin: 14px 0 0; line-height: 1.65; }
.faq-hero-image { max-width: 520px; margin-bottom: 32px; }
.faq-hero-image img { aspect-ratio: 16/9; max-height: 260px; object-fit: cover; width: 100%; }

.legal-content h2 { margin-top: 48px; font-size: 28px; }
.legal-content h3 { margin-top: 32px; font-size: 22px; }

.site-footer {
  position: relative;
  padding: 64px 32px 32px;
  border-top: 1px solid rgba(21,32,34,0.08);
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
  white-space: nowrap;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.footer-col nav { display: flex; flex-direction: column; gap: 10px; }
.footer-col nav a { color: var(--ink); text-decoration: none; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 700; }
.footer-disclaimer {
  max-width: var(--max-width);
  margin: 40px auto 16px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.footer-copy { text-align: center; font-size: 13px; color: var(--slate); position: relative; z-index: 1; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  border-top: 1px solid rgba(21,32,34,0.1);
  box-shadow: 0 -8px 32px rgba(21,32,34,0.08);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner.is-visible { display: flex; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.error-page { text-align: center; padding: 120px 32px; min-height: 60vh; }
.error-page h1 { margin-bottom: 16px; }

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--mist);
  z-index: 150;
  padding: 80px 32px;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav-overlay.is-open { display: flex; }
.mobile-nav-overlay a {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(21,32,34,0.08);
  padding-bottom: 16px;
}

@media (max-width: 1440px) {
  .hero-plate { width: clamp(240px, 34vw, 440px); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .hero-boost-ledger { grid-template-columns: 1fr; min-height: auto; padding-bottom: 48px; }
  .hero-label { writing-mode: horizontal-tb; transform: none; margin-bottom: 16px; }
  .hero-plate { width: 100%; margin-top: 40px; }
  .editorial-grid .span-6, .editorial-grid .span-4, .editorial-grid .span-8 { grid-column: span 12; }
  .metric-trio { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .work-teaser { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .boost-ladder { flex-wrap: wrap; }
  .boost-ladder .rung { flex: 1 1 45%; border-bottom: 1px solid rgba(21,32,34,0.08); }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 375px) {
  .masthead-inner { padding: 16px 20px; }
  .section { padding: 56px 20px; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .fade-up { transform: none; }
  .boost-ladder.is-lit .rung { transition-delay: 0s !important; }
}
