/* ================================================================
   Mailjam Design System
   Paper / stamp / newspaper aesthetic
   Bootstrap kept for layout; all visual styling overridden here
   ================================================================ */

/* ── 1. DESIGN TOKENS ── */
:root {
  --paper:     #F7F0E6;
  --paper2:    #EEE5D2;
  --paper3:    #E6D9C4;
  --ink:       #1C1208;
  --ink2:      #3A2A14;
  --ink3:      #6B5030;
  --tc:        #C4614A;
  --tc2:       #A84E3A;
  --amber:     #C47B2A;
  --amber-l:   #E8A84A;
  --mid:       #8B6F5E;
  --border:    rgba(28,18,8,0.1);
  --border-tc: rgba(196,97,74,0.22);

  --ff-display: 'Fraunces', serif;
  --ff-ui:      'Space Mono', monospace;
  --ff-body:    'Libre Baskerville', serif;
}

/* ── 2. BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-display);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* Ruled lines throughout */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 47px,
    rgba(28,18,8,0.035) 47px,
    rgba(28,18,8,0.035) 48px
  );
  pointer-events: none;
  z-index: 0;
}

/* Subtle paper grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.038'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

a { color: var(--tc); }
a:hover { color: var(--tc2); }

/* ── 3. TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 { font-weight: 700; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; }

h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  font-weight: 300;
  color: var(--tc);
}

p {
  font-family: var(--ff-body);
  line-height: 1.7;
}

.rich-text em {
  font-style: italic;
  color: var(--tc);
}
.rich-text {
  font-family: var(--ff-body);
  line-height: 1.7;
  color: var(--ink2);
}

/* ── 4. BOOTSTRAP OVERRIDES ── */
:root {
  --bs-body-bg: var(--paper) !important;
  --bs-body-color: var(--ink) !important;
  --bs-body-font-family: 'Fraunces', serif !important;
}

.bg-dark {
  background-color: var(--ink) !important;
}

.bg-light {
  background-color: var(--paper2) !important;
}

.text-white {
  color: var(--paper) !important;
}

.text-muted {
  color: var(--ink3) !important;
  opacity: 0.7;
}

.text-light {
  color: var(--paper3) !important;
}

.btn-primary {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  background: var(--tc) !important;
  color: var(--paper) !important;
  border: none !important;
  border-radius: 2px !important;
  box-shadow: 3px 3px 0 var(--ink2);
  transition: all 0.15s;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--ink) !important;
  color: var(--paper) !important;
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 var(--ink2) !important;
}

.btn-dark {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: none !important;
  border-radius: 2px !important;
  box-shadow: 3px 3px 0 rgba(28,18,8,0.15);
  transition: all 0.15s;
}
.btn-dark:hover,
.btn-dark:focus {
  background: var(--tc) !important;
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 rgba(28,18,8,0.2) !important;
}

.btn-outline-dark {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: transparent !important;
  color: var(--ink3) !important;
  border: 1.5px solid var(--border-tc) !important;
  border-radius: 2px !important;
  transition: all 0.15s;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus {
  border-color: var(--tc) !important;
  color: var(--tc) !important;
  background: transparent !important;
}

.btn-outline-secondary {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: transparent !important;
  color: var(--ink3) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 2px !important;
  transition: all 0.15s;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  border-color: var(--tc) !important;
  color: var(--tc) !important;
}

.btn-light {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 2px !important;
  box-shadow: 3px 3px 0 rgba(28,18,8,0.06);
  transition: all 0.15s;
}
.btn-light:hover,
.btn-light:focus {
  background: var(--paper2) !important;
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 rgba(28,18,8,0.1) !important;
}

.card {
  background: var(--paper) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 3px !important;
  box-shadow: 3px 3px 0 rgba(28,18,8,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 rgba(28,18,8,0.1) !important;
}

.shadow-sm {
  box-shadow: 3px 3px 0 rgba(28,18,8,0.06) !important;
}

.form-control {
  font-family: var(--ff-body);
  background: var(--paper) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 2px !important;
  color: var(--ink) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: var(--tc) !important;
  box-shadow: 0 0 0 3px var(--border-tc) !important;
  background: var(--paper) !important;
}
.form-control::placeholder {
  color: var(--ink3);
  opacity: 0.4;
}

.alert-danger {
  background: rgba(196,97,74,0.08) !important;
  border: 1.5px solid var(--border-tc) !important;
  color: var(--tc) !important;
  border-radius: 2px !important;
}

.border {
  border-color: var(--border) !important;
}

.rounded {
  border-radius: 3px !important;
}

.lead {
  font-family: var(--ff-body);
  color: var(--ink2);
}

/* ── 5. ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 6. NAVBAR ── */
.navbar {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(247,240,230,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeDown 0.7s ease both;
  transition: background 0.3s;
}

.navbar-scrolled {
  background: rgba(247,240,230,0.96);
}

.nav-logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}
.nav-logo:hover { color: var(--ink); text-decoration: none; }
.nav-logo em {
  font-style: italic;
  font-weight: 300;
  color: var(--tc);
}

.brand-name {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--tc);
}

.navbar .nav-link {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3) !important;
  transition: color 0.2s;
}
.navbar .nav-link:hover {
  color: var(--tc) !important;
}

.nav-cta {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  background: var(--tc);
  color: var(--paper) !important;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 2px 2px 0 var(--ink2);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
  transform: translate(-1px,-1px);
  box-shadow: 3px 3px 0 var(--ink2);
  text-decoration: none;
}

.navbar-toggler {
  border: 1.5px solid var(--border) !important;
  padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(28,18,8,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Offset body for fixed navbar */
body { padding-top: 72px; }

/* ── 7. SECTION HEADER PATTERN ── */
.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sh-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-tc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sh-ring-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc);
  opacity: 0.5;
}

.section-label {
  font-family: var(--ff-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tc);
  opacity: 0.75;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 3.5rem;
  max-width: 500px;
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--tc);
}

/* ── 8. HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 6rem;
  overflow: hidden;
  z-index: 1;
  background: var(--paper);
}

.stamp-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sr1 { width: 680px; height: 680px; border: 2px solid var(--tc); opacity: 0.08; }
.sr2 { width: 540px; height: 540px; border: 1px dashed var(--tc); opacity: 0.07; }
.sr3 { width: 400px; height: 400px; border: 2px solid var(--tc); opacity: 0.06; }
.sr4 { width: 260px; height: 260px; border: 1px solid var(--tc); opacity: 0.09; }

.corner-bars {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cb-tr { top: 7rem; right: 3rem; align-items: flex-end; }
.cb-bl { bottom: 3rem; left: 3rem; }

.bar { height: 2px; background: var(--tc); opacity: 0.2; }

.corner-text {
  position: absolute;
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tc);
  opacity: 0.38;
  line-height: 1.8;
}
.ct-tl { top: 7rem; left: 3rem; }
.ct-br { bottom: 3rem; right: 3rem; text-align: right; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.hero-pre {
  display: inline-block;
  position: relative;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-pre-inner {
  border: 1.5px solid var(--border-tc);
  padding: 0.4rem 1.4rem;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tc);
  opacity: 0.85;
}
.hero-pre::before,
.hero-pre::after {
  content: '';
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--border-tc);
}
.hero-pre::before { left: -7px; }
.hero-pre::after  { right: -7px; }

.hero-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.93;
  color: var(--ink);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.28s ease both;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--tc);
}

.hero-sub {
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 3rem;
  line-height: 1.7;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.52s ease both;
}

.btn-ghost {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border: 1.5px solid var(--border-tc);
  color: var(--ink3);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s;
  display: inline-block;
}
.btn-ghost:hover {
  border-color: var(--tc);
  color: var(--tc);
  text-decoration: none;
}

/* Fallback hero (no carousel items) */
.hero-fallback {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5rem;
  background: var(--paper);
}

/* ── 9. FEATURE GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid rgba(28,18,8,0.13);
  background: rgba(28,18,8,0.09);
  gap: 1.5px;
  border-radius: 3px;
  overflow: hidden;
}

.feat-card {
  padding: 2.25rem;
  background: var(--paper2);
  transition: background 0.2s;
}
.feat-card:hover { background: var(--paper); }

.feat-num {
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--tc);
  opacity: 0.55;
  margin-bottom: 1rem;
}

.feat-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feat-title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.feat-desc {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink3);
  line-height: 1.65;
}

/* ── 10. MANIFESTO / DARK SECTIONS ── */
.manifesto {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem;
  background: var(--ink);
  text-align: center;
  overflow: hidden;
}

/* Stamp rings on dark */
.manifesto::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  border: 1px solid rgba(247,240,230,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.manifesto::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  border-radius: 50%;
  border: 1px dashed rgba(247,240,230,0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.manifesto-rules {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 47px,
    rgba(247,240,230,0.025) 47px,
    rgba(247,240,230,0.025) 48px
  );
  pointer-events: none;
}

.manifesto-corner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mc-tl { top: 2.5rem; left: 3rem; }
.mc-br { bottom: 2.5rem; right: 3rem; align-items: flex-end; }

.mbar { height: 2px; background: var(--tc); opacity: 0.2; }

.manifesto-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto;
}

.manifesto-pre {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tc);
  opacity: 0.75;
  margin-bottom: 2rem;
}

.manifesto-quote {
  font-family: var(--ff-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--paper);
  margin-bottom: 2.5rem;
}
.manifesto-quote strong {
  font-weight: 700;
  font-style: normal;
  color: var(--amber-l);
}
.manifesto-quote em {
  font-style: italic;
  font-weight: 300;
  color: var(--tc);
}

.manifesto-attr {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,240,230,0.3);
}
.manifesto-attr em {
  font-style: italic;
  color: var(--tc);
  opacity: 0.5;
}

/* Manifesto rich text overrides */
.manifesto .rich-text {
  font-family: var(--ff-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--paper);
}

.manifesto .btn-light,
.manifesto .btn-primary {
  margin-top: 1rem;
}

/* ── 11. TRUST STRIP ── */
.trust {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.6rem 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--paper2);
}

.trust-line { flex: 1; height: 1px; background: var(--border-tc); }

.trust-stamp {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--border-tc);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-stamp-inner {
  font-family: var(--ff-display);
  font-weight: 700;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--tc);
  letter-spacing: -0.02em;
}

.trust-items {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-dash { color: var(--tc); }

/* ── 12. CARDS (plan / service) ── */
.plan {
  padding: 2.25rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: var(--paper);
  position: relative;
  box-shadow: 3px 3px 0 rgba(28,18,8,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 rgba(28,18,8,0.1);
}

.plan.featured {
  border-color: var(--tc);
  background: rgba(196,97,74,0.03);
}
.plan.featured::before {
  content: 'Featured';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--tc);
  color: var(--paper);
  padding: 0.22rem 0.85rem;
  border-radius: 0 0 3px 3px;
}

.card-title {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
}

.card-text {
  font-family: var(--ff-body);
  color: var(--ink3);
  line-height: 1.65;
}

/* ── 13. BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  border: 1.5px solid rgba(28,18,8,0.13);
  background: rgba(28,18,8,0.09);
  gap: 1.5px;
  border-radius: 3px;
  overflow: hidden;
}

.blog-card {
  background: var(--paper);
  border: none;
  border-radius: 0;
  transition: background 0.2s;
}
.blog-card:hover {
  background: var(--paper2);
  transform: none;
  box-shadow: none;
}

.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-placeholder {
  height: 200px;
  background: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--ink3);
  opacity: 0.2;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-card-date {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink3);
  opacity: 0.65;
  margin-bottom: 0.5rem;
}

.blog-card-title a {
  font-family: var(--ff-display);
  color: var(--ink);
  text-decoration: none;
}
.blog-card-title a:hover { color: var(--tc); }

.blog-card-intro {
  font-family: var(--ff-body);
  font-style: italic;
  color: var(--ink3);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Blog post */
.blog-post-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.blog-back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
  text-decoration: none;
}
.blog-back-link:hover { color: var(--tc); }

.blog-post-meta {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink3);
  opacity: 0.55;
  margin-bottom: 2rem;
}

.blog-post-featured-image {
  margin-bottom: 2rem;
}
.blog-post-featured-image img {
  border-radius: 3px;
}

.blog-post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── 14. WORK ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  border: 1.5px solid rgba(28,18,8,0.13);
  background: rgba(28,18,8,0.09);
  gap: 1.5px;
  border-radius: 3px;
  overflow: hidden;
}

.work-card {
  background: var(--paper);
  border: none;
  border-radius: 0;
  transition: background 0.2s;
}
.work-card:hover {
  background: var(--paper2);
  transform: none;
  box-shadow: none;
}

.work-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-card-placeholder {
  height: 200px;
  background: var(--paper2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--ink3);
  opacity: 0.2;
}

.work-card-body {
  padding: 1.5rem;
}

.work-card-title {
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--ink);
}

/* ── 15. JOBS ── */
.job-card {
  border: 1.5px solid var(--border);
  border-radius: 3px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(28,18,8,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.job-card:hover {
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 rgba(28,18,8,0.1);
}

.job-card-header {
  margin-bottom: 1rem;
}

.job-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.job-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-family: var(--ff-ui);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.job-badge-location {
  background: var(--paper2);
  color: var(--ink3);
  border: 1px solid var(--border);
}

.job-badge-type {
  background: var(--tc);
  color: var(--paper);
}

.job-requirements {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.job-actions {
  margin-top: 1.5rem;
}

/* ── 16. FORMS ── */
.font-label,
.form-label,
label {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
}

.form-check-input:checked {
  background-color: var(--tc) !important;
  border-color: var(--tc) !important;
}

/* ── 17. SEARCH ── */
.search-page .input-group .form-control {
  border-right: none !important;
}

.search-page .list-unstyled li {
  border: 1.5px solid var(--border) !important;
  border-radius: 3px !important;
  background: var(--paper);
  transition: background 0.2s;
}
.search-page .list-unstyled li:hover {
  background: var(--paper2);
}

.search-page .list-unstyled li h4 a {
  font-family: var(--ff-display);
  color: var(--ink);
}
.search-page .list-unstyled li h4 a:hover {
  color: var(--tc);
}

/* ── 18. FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1.5px solid var(--border);
  padding: 2.25rem 0;
  background: var(--paper2);
}

.footer-logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.footer-logo em {
  font-style: italic;
  font-weight: 300;
  color: var(--tc);
}

.footer-copy {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink3);
  opacity: 0.55;
}

.footer-morse {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink3);
  opacity: 0.55;
}
.footer-morse a { color: var(--tc); text-decoration: none; opacity: 0.85; }
.footer-morse a:hover { opacity: 1; }

footer .social-link {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.2s;
}
footer .social-link:hover {
  color: var(--tc);
}

footer .privacy-link {
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink3);
  text-decoration: none;
  transition: color 0.2s;
}
footer .privacy-link:hover {
  color: var(--tc);
}

/* ── 19. ERROR PAGES ── */
.error-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.error-page .display-1 {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
}

/* ── 20. RICH TEXT ── */
.rich-text img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}

.rich-text blockquote {
  border-left: 3px solid var(--tc);
  padding-left: 1.25rem;
  margin-left: 0;
  font-style: italic;
  color: var(--ink3);
}

.rich-text code {
  font-family: var(--ff-ui);
  font-size: 0.88em;
  background: var(--paper2);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  color: var(--tc);
}

.rich-text pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem;
  border-radius: 3px;
  overflow-x: auto;
}
.rich-text pre code {
  background: none;
  color: var(--paper);
  padding: 0;
}

/* ── 21. CHALLENGE BORDER ── */
.challenge-border {
  width: 40px;
  height: 3px;
  background-color: var(--tc);
}

/* ── 22. EMPTY STATES ── */
.no-posts,
.no-work,
.no-jobs {
  text-align: center;
  padding: 4rem 0;
  color: var(--ink3);
}

.no-posts-icon,
.no-work-icon,
.no-jobs-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--ink3);
  opacity: 0.2;
}

/* ── 23. WAITLIST FORM ── */
.waitlist-form {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form .form-control {
  background: rgba(247,240,230,0.08) !important;
  border: 1.5px solid rgba(247,240,230,0.2) !important;
  color: var(--paper) !important;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  line-height: 1.425rem;
  box-sizing: border-box;
}
.waitlist-form .form-control:focus {
  border-color: var(--tc) !important;
  background: rgba(247,240,230,0.12) !important;
  box-shadow: 0 0 0 3px rgba(196,97,74,0.25) !important;
}
.waitlist-form .form-control::placeholder {
  color: rgba(247,240,230,0.35);
}

.waitlist-form .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1.5px solid transparent !important;
  box-sizing: border-box;
  font-size: 0.78rem;
  line-height: 1.425rem;
  padding: 1rem 2.25rem;
  margin-top: 0;
}

.waitlist-error {
  font-family: var(--ff-ui);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--amber-l);
  margin-top: 1rem;
}

.waitlist-success {
  margin-top: 0.5rem;
}

/* ── 24. RESPONSIVE ── */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stamp-ring,
  .corner-bars,
  .corner-text,
  .manifesto-corner {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 7rem 1.5rem 4rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .manifesto {
    padding: 5rem 1.5rem;
  }

  .features-grid,
  .blog-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .trust {
    padding: 1.2rem 1rem;
    gap: 0.75rem;
  }
  .trust-line { display: none; }
  .trust-items { gap: 1rem; }

  .section-title {
    margin-bottom: 2rem;
  }

  body { padding-top: 60px; }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .waitlist-form {
    flex-direction: column;
  }
}
