/* ============================================================
   WREN'S MARKETING — EDITORIAL POSTAL AESTHETIC
   Cream paper · Deep ink · Postal red · Hand-addressed details
   ============================================================ */

:root {
  /* PALETTE — sampled from the Wren's Marketing logo */
  --paper:        #f4ede0;     /* warm cream paper */
  --paper-deep:   #ebe1cd;     /* aged paper */
  --paper-shade:  #e2d6bb;     /* paper shadow */
  --ink:          #0d0d0d;     /* logo black */
  --ink-soft:     #2b2622;     /* softer body ink */
  --ink-fade:     #6b6258;     /* faded ink */
  --gold-deep:    #a07a2c;     /* primary gold accent */
  --gold:         #c89848;     /* mustard gold (logo bird body) */
  --gold-light:   #e8c888;     /* cream gold highlight */
  --bronze:       #8a5e2a;     /* rich bronze (perch) */
  --teal:         #2d5060;     /* slate teal accent */
  --rule:         rgba(13,13,13,0.18);

  /* Compatibility alias — keep --postal-red name resolving to gold so any leftover refs render correctly */
  --postal-red:   var(--gold-deep);

  /* TYPE */
  --serif:  "Fraunces", "Times New Roman", serif;
  --hand:   "Caveat", "Brush Script MT", cursive;
  --mono:   "JetBrains Mono", "Courier New", monospace;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-variation-settings: "opsz" 14, "SOFT" 30;
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }

::selection { background: var(--postal-red); color: var(--paper); }

/* Subtle paper grain overlay */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.45;
  background-image:
    radial-gradient(rgba(60,40,20,0.08) 1px, transparent 1px),
    radial-gradient(rgba(60,40,20,0.05) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 1px;
  mix-blend-mode: multiply;
}

/* Vignette via body pseudo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(75,55,30,0.10) 100%);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  background: rgba(244,237,224,0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}
.nav-brand:hover { transform: translateY(-1px); }

.nav-logo {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:not(.nav-cta):hover { color: var(--postal-red); }

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--postal-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: var(--hand) !important;
  font-size: 22px !important;
  color: var(--postal-red) !important;
  border-bottom: 2px solid var(--postal-red);
  padding-bottom: 0;
  line-height: 1;
  transform: rotate(-1.5deg);
  transition: transform 0.25s ease;
}

.nav-cta:hover { transform: rotate(0deg) scale(1.04); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding: 110px 56px 80px;
  align-items: center;
  min-height: calc(100vh - 80px);
  z-index: 2;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-fade);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.postmark-dot {
  width: 8px; height: 8px;
  background: var(--postal-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(179,50,42,0.15);
}

.hero-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "wght" 380;
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 14ch;
}

.hand-accent {
  display: inline-block;
  position: relative;
  font-family: var(--hand);
  font-weight: 600;
  color: var(--postal-red);
  font-size: 0.92em;
  font-variation-settings: normal;
  padding: 0 0.05em;
  transform: rotate(-1.5deg);
}

.hand-underline {
  position: absolute;
  left: 0; right: 0; bottom: -0.18em;
  width: 100%;
  height: 0.22em;
  color: var(--postal-red);
  pointer-events: none;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.55;
  margin-bottom: 44px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary svg { width: 20px; height: 20px; transition: transform 0.25s ease; }
.btn-primary:hover { background: var(--postal-red); transform: translateY(-2px); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { color: var(--postal-red); border-color: var(--postal-red); }

/* Stats */
.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  max-width: 760px;
}

.hero-stats li { display: flex; flex-direction: column; gap: 6px; }

.hero-stats strong {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 13px;
  color: var(--ink-fade);
  line-height: 1.45;
  max-width: 22ch;
}

/* Hero envelope */
.hero-mail {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}

.envelope {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1.62 / 1;
  background: linear-gradient(165deg, #fbf6e9 0%, #f0e6cf 100%);
  border: 1px solid rgba(28,25,23,0.16);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 18px 40px -18px rgba(60,40,20,0.45),
    0 50px 90px -50px rgba(60,40,20,0.5);
  border-radius: 4px;
  transform: rotate(-3.5deg) rotateY(-2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: envelope-float 7s ease-in-out infinite;
}

.envelope:hover { transform: rotate(-1.5deg) rotateY(0deg) translateY(-6px); }

@keyframes envelope-float {
  0%, 100% { transform: rotate(-3.5deg) rotateY(-2deg) translateY(0); }
  50%      { transform: rotate(-3.5deg) rotateY(-2deg) translateY(-10px); }
}

/* Envelope flap */
.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, transparent 49%, rgba(28,25,23,0.07) 50%, transparent 51%);
  pointer-events: none;
  border-radius: inherit;
}

.envelope::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 55%;
  background: linear-gradient(180deg, rgba(28,25,23,0.04), transparent);
  clip-path: polygon(0 0, 50% 70%, 100% 0);
  border-bottom: 1px dashed rgba(28,25,23,0.20);
  pointer-events: none;
}

/* Stamp on envelope */
.envelope-stamp {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 78px;
  height: 92px;
  z-index: 3;
  transform: rotate(4deg);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.18));
}

.stamp-perf {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-radius: 3px;
  --p: radial-gradient(circle at 4px 0, transparent 3px, var(--paper) 3.5px);
  -webkit-mask:
    radial-gradient(circle 3px at 50% 0, transparent 99%, #000 100%) repeat-x 0 0/8px 6px,
    radial-gradient(circle 3px at 50% 100%, transparent 99%, #000 100%) repeat-x 0 100%/8px 6px,
    radial-gradient(circle 3px at 0 50%, transparent 99%, #000 100%) repeat-y 0 0/6px 8px,
    radial-gradient(circle 3px at 100% 50%, transparent 99%, #000 100%) repeat-y 100% 0/6px 8px,
    linear-gradient(#000,#000);
  -webkit-mask-composite: source-over;
}

.stamp-inner {
  position: absolute;
  inset: 6px;
  background: linear-gradient(135deg, #2d5060 0%, #173040 100%);
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  text-align: center;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(232,200,136,0.3);
}

.stamp-bird { width: 30px; height: 30px; color: var(--gold-light); }

.stamp-value {
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.stamp-label {
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  margin-top: 1px;
  opacity: 0.85;
}

/* Postmark on envelope */
.postmark {
  position: absolute;
  top: 28px;
  left: 30px;
  width: 130px;
  height: 130px;
  border: 2px solid rgba(28,25,23,0.5);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
  color: rgba(28,25,23,0.55);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-align: center;
  padding: 8px;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.postmark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(28,25,23,0.4);
  border-radius: 50%;
}

.postmark span { display: block; line-height: 1.4; }
.postmark-date { margin-top: 4px; font-weight: 500; }

.postmark-bars {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.postmark-bars span {
  display: block;
  height: 2px;
  background: rgba(28,25,23,0.5);
}
.postmark-bars span:nth-child(1) { width: 56px; }
.postmark-bars span:nth-child(2) { width: 48px; }
.postmark-bars span:nth-child(3) { width: 56px; }
.postmark-bars span:nth-child(4) { width: 42px; }

/* Address */
.envelope-address {
  position: absolute;
  bottom: 26px;
  left: 28%;
  right: 12%;
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  transform: rotate(-1deg);
  z-index: 2;
}

.envelope-address .addr-to {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-fade);
  display: block;
  margin-bottom: 4px;
}

.envelope-address .addr-line { display: block; }

.envelope-return {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ink-fade);
  text-transform: uppercase;
  z-index: 2;
}

/* Wax seal */
.wax-seal {
  position: absolute;
  bottom: -22px;
  right: 60px;
  width: 56px;
  height: 56px;
  background: radial-gradient(circle at 35% 30%, #d4a64a 0%, #6b4818 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbeec7;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  font-style: italic;
  transform: rotate(-12deg);
  box-shadow:
    inset -3px -4px 8px rgba(0,0,0,0.45),
    inset 3px 3px 6px rgba(255,230,180,0.35),
    0 6px 12px rgba(50,35,10,0.5);
  z-index: 4;
  animation: wax-pulse 4s ease-in-out infinite;
}

.wax-seal::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(251,238,199,0.4);
  border-radius: 50%;
}

@keyframes wax-pulse {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50%      { transform: rotate(-10deg) scale(1.04); }
}

/* Hero marginalia */
.hero-marginalia {
  position: absolute;
  bottom: 60px;
  right: 7%;
  transform: rotate(-4deg);
}

.hand-note {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--ink-fade);
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticker-track span { padding: 0 24px; }

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS GENERIC
   ============================================================ */
.section {
  position: relative;
  z-index: 2;
  padding: 120px 56px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-head { margin-bottom: 72px; max-width: 70ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--postal-red);
  margin-bottom: 24px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 1px;
  background: var(--postal-red);
}

.section-head h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 380;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head h2 em {
  font-family: var(--hand);
  font-weight: 600;
  color: var(--postal-red);
  font-style: normal;
  font-size: 1em;
}

.section-desc {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 60ch;
  line-height: 1.55;
}

.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ============================================================
   WHY GRID
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 44px 40px 40px;
  border-radius: 6px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px -16px rgba(60,40,20,0.3);
}

.why-card.tilt-l { transform: rotate(-0.6deg); }
.why-card.tilt-r { transform: rotate(0.5deg); }

.why-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 24px 48px -20px rgba(60,40,20,0.35);
}

.why-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--postal-red);
  position: absolute;
  top: 20px;
  right: 20px;
}

.why-card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "wght" 500;
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.why-card p { color: var(--ink-soft); font-size: 17px; line-height: 1.6; }

/* ============================================================
   SERVICES — STAMP SHEET
   ============================================================ */
.services { background: linear-gradient(180deg, transparent 0%, var(--paper-deep) 30%, var(--paper-deep) 70%, transparent 100%); max-width: none; padding-left: 56px; padding-right: 56px; }

.services .section-head { max-width: 1280px; margin-left: auto; margin-right: auto; }

.stamp-sheet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  max-width: 1280px;
  margin: 0 auto;
}

.stamp-card {
  --rot: 0deg;
  position: relative;
  transform: rotate(var(--rot));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stamp-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  z-index: 5;
}

.stamp-frame {
  background: var(--paper);
  padding: 12px;
  border-radius: 4px;
  filter: drop-shadow(0 12px 24px rgba(60,40,20,0.18));
  position: relative;
  /* Perforated edge mask */
  -webkit-mask:
    radial-gradient(circle 4px at 50% 0, transparent 99%, #000 100%) repeat-x 0 -3px/14px 8px,
    radial-gradient(circle 4px at 50% 100%, transparent 99%, #000 100%) repeat-x 0 calc(100% + 3px)/14px 8px,
    radial-gradient(circle 4px at 0 50%, transparent 99%, #000 100%) repeat-y -3px 0/8px 14px,
    radial-gradient(circle 4px at 100% 50%, transparent 99%, #000 100%) repeat-y calc(100% + 3px) 0/8px 14px,
    linear-gradient(#000,#000);
  -webkit-mask-composite: source-over;
}

.stamp-content {
  border: 1.5px solid var(--ink);
  padding: 36px 28px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    linear-gradient(135deg, rgba(184,138,68,0.04) 0%, transparent 50%),
    var(--paper);
}

.stamp-icon {
  width: 56px;
  height: 56px;
  color: var(--postal-red);
  margin-bottom: 24px;
}

.stamp-card h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "wght" 500;
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.stamp-card p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 24px;
}

.stamp-price {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-fade);
  text-transform: uppercase;
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
}

/* Featured stamp variant */
.stamp-feature .stamp-content {
  background:
    linear-gradient(135deg, rgba(179,50,42,0.08) 0%, transparent 50%),
    var(--paper);
  border-color: var(--postal-red);
  border-width: 2px;
}

.stamp-feature .stamp-icon { color: var(--postal-red); }

.stamp-feature-tag {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--hand);
  font-size: 18px;
  color: var(--postal-red);
  transform: rotate(8deg);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 50px;
  bottom: 50px;
  width: 2px;
  background-image: linear-gradient(180deg, var(--ink-fade) 50%, transparent 50%);
  background-size: 2px 10px;
  opacity: 0.4;
}

.process-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  position: relative;
}

.step-stamp {
  width: 76px;
  height: 76px;
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 500;
  font-size: 28px;
  color: var(--postal-red);
  position: relative;
  z-index: 2;
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}

.process-step:nth-child(even) .step-stamp { transform: rotate(3deg); }

.process-step:hover .step-stamp {
  transform: rotate(0deg) scale(1.08);
  background: var(--postal-red);
  color: var(--paper);
  border-color: var(--postal-red);
}

.step-body h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 48, "wght" 500;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-body p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
}

/* ============================================================
   TESTIMONIAL NOTE
   ============================================================ */
.note-section {
  display: flex;
  justify-content: center;
  padding: 80px 56px;
}

.note-paper {
  position: relative;
  max-width: 720px;
  width: 100%;
  background:
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(70,90,140,0.18) 32px 33px),
    #fdfaf0;
  padding: 64px 56px 56px;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 18px 40px -18px rgba(60,40,20,0.4),
    0 50px 80px -50px rgba(60,40,20,0.5);
  transform: rotate(-1deg);
  border-left: 2px solid rgba(179,50,42,0.4);
}

.note-tape {
  position: absolute;
  top: -16px;
  width: 88px;
  height: 28px;
  background: rgba(220,200,150,0.55);
  border: 1px solid rgba(160,130,80,0.25);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.note-tape-l { left: 28px; transform: rotate(-6deg); }
.note-tape-r { right: 32px; transform: rotate(5deg); }

.note-quote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 380;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 32px;
  position: relative;
}

.note-quote::before {
  content: "\201C";
  position: absolute;
  top: -24px;
  left: -28px;
  font-size: 96px;
  color: var(--postal-red);
  line-height: 1;
  font-family: var(--serif);
  opacity: 0.5;
}

.note-quote em {
  font-family: var(--hand);
  color: var(--postal-red);
  font-size: 1.1em;
}

.note-sig { text-align: right; }

.hand-sig {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--ink);
}

/* ============================================================
   GIVING
   ============================================================ */
.giving-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: center;
}

.giving-text h2 { margin-bottom: 24px; }

.giving-text p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 52ch;
}

.giving-tagline {
  font-family: var(--hand) !important;
  font-size: 32px !important;
  color: var(--ink) !important;
  margin-top: 24px !important;
  line-height: 1.25 !important;
  max-width: 24ch !important;
}

.giving-tagline em {
  color: var(--postal-red);
  font-style: normal;
}

.giving-card {
  position: relative;
}

.giving-card-inner {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 44px;
  border-radius: 8px;
  text-align: center;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 24px 48px -20px rgba(60,40,20,0.5);
}

.giving-card-inner:hover { transform: rotate(0deg) translateY(-4px); }

.giving-card-inner::before,
.giving-card-inner::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, var(--paper) 50%, transparent 51%);
}
.giving-card-inner::before { top: -14px; left: -14px; }
.giving-card-inner::after { bottom: -14px; right: -14px; }

.giving-heart {
  width: 48px;
  height: 48px;
  margin: 0 auto 24px;
  color: var(--postal-red);
}

.giving-percent {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 360;
  font-size: 128px;
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 16px;
}

.giving-percent span {
  font-size: 56px;
  color: var(--postal-red);
  vertical-align: super;
  margin-left: -8px;
}

.giving-card p {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(244,237,224,0.85);
  margin-bottom: 16px;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.giving-meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(244,237,224,0.5);
  text-transform: uppercase;
  margin-top: 24px;
  border-top: 1px solid rgba(244,237,224,0.15);
  padding-top: 16px;
}

.giving-meta em { color: var(--postal-red); font-style: normal; }

/* ============================================================
   CONTACT — LETTER FORM
   ============================================================ */
.letter-form {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.letter-paper {
  background:
    repeating-linear-gradient(180deg, transparent 0 36px, rgba(60,90,140,0.12) 36px 37px),
    #fdfaf0;
  padding: 72px 80px 64px;
  border-radius: 2px;
  border-left: 2px solid rgba(179,50,42,0.3);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 48px -20px rgba(60,40,20,0.4),
    0 60px 100px -60px rgba(60,40,20,0.5);
  position: relative;
  transform: rotate(-0.4deg);
}

.letter-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  padding-bottom: 12px;
}

.letter-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-fade);
  text-transform: uppercase;
  align-self: flex-end;
}

.letter-greeting {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 400;
  font-size: 32px;
  letter-spacing: -0.01em;
}

.letter-body { display: flex; flex-direction: column; gap: 28px; }

.letter-line {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.letter-line input,
.letter-line textarea {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--postal-red);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--rule);
  padding: 2px 6px;
  outline: none;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.2s ease;
}

.letter-line input:focus,
.letter-line textarea:focus { border-color: var(--postal-red); }

.letter-line input::placeholder,
.letter-line textarea::placeholder {
  color: var(--ink-fade);
  opacity: 0.5;
  font-family: var(--hand);
}

.letter-line-block { flex-direction: column; align-items: stretch; }

.letter-line-block textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  margin-top: 8px;
}

.letter-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px dashed var(--rule);
}

.letter-signoff {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink-soft);
}

.letter-signature {
  font-size: 32px !important;
  color: var(--ink) !important;
  margin-bottom: 24px;
}

.letter-send {
  margin-top: 16px;
}

.letter-sent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5) rotate(-20deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.letter-form.sent .letter-sent-overlay {
  opacity: 1;
  transform: scale(1) rotate(-12deg);
}

.letter-form.sent .letter-paper { opacity: 0.4; }

.postmark.big {
  width: 240px;
  height: 240px;
  border-width: 4px;
  font-size: 14px;
  background: rgba(244,237,224,0.6);
}

.postmark.big::before { border-width: 2px; }

.postmark.big .postmark-bars {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
}

.postmark.big .postmark-bars span:nth-child(1) { width: 90px; height: 3px; }
.postmark.big .postmark-bars span:nth-child(2) { width: 76px; height: 3px; }
.postmark.big .postmark-bars span:nth-child(3) { width: 90px; height: 3px; }
.postmark.big .postmark-bars span:nth-child(4) { width: 64px; height: 3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 80px 56px 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto 64px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 64px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.05) contrast(1.1);
}

.footer-brand p {
  color: rgba(244,237,224,0.7);
  font-size: 15px;
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 16px;
}

.footer-coffee {
  font-family: var(--hand) !important;
  font-size: 22px !important;
  color: var(--postal-red) !important;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(244,237,224,0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-col a, .footer-col span {
  color: rgba(244,237,224,0.85);
  font-size: 15px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--postal-red); }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244,237,224,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--postal-red);
  border-color: var(--postal-red);
  color: var(--paper);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(244,237,224,0.12);
  max-width: 1280px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(244,237,224,0.45);
  text-transform: uppercase;
}

.footer-postmark { color: var(--postal-red); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav { padding: 18px 32px; }
  .hero { grid-template-columns: 1fr; gap: 80px; padding: 80px 32px 64px; min-height: auto; }
  .hero-mail { order: -1; min-height: 380px; }
  .envelope { width: min(380px, 90%); }
  .section { padding: 80px 32px; }
  .why-grid { gap: 20px; }
  .stamp-sheet { grid-template-columns: repeat(2, 1fr); }
  .giving-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-marginalia { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { padding: 16px 22px; }
  .nav-wordmark em { display: none; }

  .hero { padding: 56px 22px 48px; gap: 56px; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }

  .envelope { width: min(320px, 100%); }
  .envelope-stamp { width: 60px; height: 70px; top: 12px; right: 14px; }
  .stamp-bird { width: 22px; height: 22px; }
  .stamp-value { font-size: 8px; }
  .stamp-label { font-size: 5.5px; }
  .postmark { width: 86px; height: 86px; top: 16px; left: 18px; font-size: 7px; padding: 6px; }
  .postmark::before { inset: 5px; }
  .postmark-bars { right: -38px; gap: 3px; }
  .postmark-bars span:nth-child(1) { width: 32px; }
  .postmark-bars span:nth-child(2) { width: 28px; }
  .postmark-bars span:nth-child(3) { width: 32px; }
  .postmark-bars span:nth-child(4) { width: 24px; }
  .envelope-address { bottom: 18px; left: 38%; right: 8%; font-size: 16px; line-height: 1.2; }
  .envelope-address .addr-to { font-size: 7px; margin-bottom: 2px; }
  .envelope-return { font-size: 7px; top: 14px; left: 14px; }
  .wax-seal { width: 42px; height: 42px; bottom: -16px; right: 36px; font-size: 18px; }
  .hero-marginalia { display: none; }

  .section { padding: 64px 22px; }
  .section-head { margin-bottom: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 32px 24px; }
  .stamp-sheet { grid-template-columns: 1fr; }
  .process-list::before { left: 24px; }
  .process-step { grid-template-columns: 56px 1fr; gap: 20px; padding: 16px 0; }
  .step-stamp { width: 56px; height: 56px; font-size: 20px; }
  .step-body h3 { font-size: 22px; }

  .letter-paper { padding: 48px 24px 40px; }
  .letter-line { font-size: 16px; }
  .letter-line input, .letter-line textarea { font-size: 20px; min-width: 120px; }
  .letter-greeting { font-size: 26px; }
  .letter-signature { font-size: 26px !important; }

  .footer { padding: 56px 22px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .ticker-track { font-size: 11px; }
  .note-paper { padding: 48px 28px 40px; transform: rotate(-0.6deg); }
  .note-quote { font-size: 20px; }
  .note-quote::before { font-size: 64px; top: -16px; left: -14px; }

  .giving-card-inner { padding: 44px 28px; }
  .giving-percent { font-size: 96px; }
  .giving-percent span { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
}

/* Honeypot — hidden from humans, visible to dumb bots */
.letter-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact form error message */
.letter-error {
  margin-top: 16px;
  padding: 10px 14px;
  background: #fbeaea;
  border-left: 3px solid #c84545;
  color: #7a2020;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.5;
  border-radius: 2px;
}

/* Disabled submit button while sending */
.letter-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}
