.letter-hero {
  padding-bottom: 5.3rem;
}

.letter-hero-inner .hero-lead {
  max-width: 56ch;
}

body:not(.workspace-enabled) .letter-hero::before {
  content: none;
}

.letter-hero-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.letter-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  opacity: 0;
  animation: letterHeroFade 18s ease-in-out infinite;
}

.letter-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(2, 4, 45, 0.58), rgba(2, 4, 45, 0.42));
}

.letter-hero-slide.slide-1 {
  background-image: url('../img/8.jpg');
  animation-delay: 0s;
}

.letter-hero-slide.slide-2 {
  background-image: url('../img/9.jpg');
  animation-delay: 6s;
}

.letter-hero-slide.slide-3 {
  background-image: url('../img/10.jpg');
  animation-delay: 12s;
}

.heart {
  color: #d45568;
  font-size: 0.78em;
  vertical-align: 0.05em;
}

@keyframes letterHeroFade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  28% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

.letter-wrap {
  background:
    radial-gradient(circle at 85% 0%, rgba(212, 185, 128, 0.08) 0%, transparent 38%),
    linear-gradient(180deg, #f4efe5 0%, #ece4d6 100%);
  border-top: 1px solid rgba(70, 57, 38, 0.18);
  padding: 4.2rem 0 5rem;
}

.letter-container {
  width: min(960px, calc(100% - 2rem));
}

.letter-story {
  border: 1px solid rgba(70, 57, 38, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 252, 245, 0.96) 100%);
  box-shadow:
    0 20px 38px rgba(38, 30, 20, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 2.2rem clamp(1.1rem, 2.8vw, 2.8rem);
}

.letter-head {
  border-bottom: 1px solid rgba(70, 57, 38, 0.16);
  padding-bottom: 1.1rem;
}

.letter-head .kicker {
  color: #765531;
}

.letter-meta {
  margin-top: 0.36rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f6850;
  font-weight: 700;
}

.letter-head h2 {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.08;
  color: #2f2417;
}

.letter-section {
  padding-top: 1.2rem;
}

.letter-section + .letter-section {
  border-top: 1px dashed rgba(70, 57, 38, 0.24);
  margin-top: 1.2rem;
}

.letter-section p {
  margin: 0.9rem 0 0;
  font-family: "Georgia", "Times New Roman", serif;
  color: #3f3123;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.82;
}

#opening p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.82;
  margin-right: 0.32rem;
  margin-top: 0.24rem;
  color: #7a5b33;
}

.section-label {
  margin: 0;
  font-family: var(--font-ui) !important;
  font-size: 0.74rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7f6850 !important;
  font-weight: 700;
}

.letter-section h3 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.18;
  color: #2c2216;
}

.letter-quote {
  margin: 1.35rem 0 0.2rem;
  border-left: 4px solid #d4b980;
  padding: 1rem 1.15rem;
  background: linear-gradient(95deg, rgba(212, 185, 128, 0.13), rgba(255, 255, 255, 0));
  color: #2d2316;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.4vw, 1.74rem);
  line-height: 1.28;
}

.bridge-grid {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.bridge-grid article {
  border: 1px solid rgba(70, 57, 38, 0.2);
  border-radius: 6px;
  background: #fffdf8;
  padding: 0.78rem;
}

.bridge-grid h4 {
  margin: 0;
  font-family: var(--font-ui);
  color: #3a2d1f;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
}

.bridge-grid p {
  margin-top: 0.44rem;
  color: #5d4b35;
  font-size: 0.9rem;
  line-height: 1.55;
}

.signature-block {
  margin-top: 1.35rem;
  border-top: 1px solid rgba(70, 57, 38, 0.22);
  padding: 1.1rem 0.95rem 0.95rem;
  border-left: 3px solid rgba(212, 185, 128, 0.78);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(246, 239, 226, 0.74));
}

.signature {
  margin: 0;
  color: #3a2d1f;
}

.signature-name {
  margin: 0;
  font-family: var(--font-display) !important;
  font-size: clamp(1.65rem, 2.4vw, 2.05rem) !important;
  color: #241b12 !important;
  line-height: 1.06 !important;
  text-decoration: none;
  display: inline-block;
}

.signature-name:hover,
.signature-name:focus-visible {
  text-decoration: underline;
}

.signature-role,
.signature-cred {
  margin: 0.18rem 0 0 !important;
  font-family: var(--font-ui) !important;
  font-size: 0.93rem !important;
  color: #5f4d38 !important;
  line-height: 1.5 !important;
}

.signature-identity {
  margin-top: 0.56rem;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(70, 57, 38, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(37, 28, 19, 0.08);
}

.signature-headshot {
  width: 136px;
  height: 136px;
  min-width: 136px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(212, 185, 128, 0.9);
  box-shadow:
    0 14px 22px rgba(38, 30, 20, 0.16),
    0 0 0 5px rgba(212, 185, 128, 0.22);
}

.signature-meta {
  display: grid;
  gap: 0.22rem;
}

.linkedin-cta {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #0a66c2;
  border: 1px solid rgba(10, 102, 194, 0.35);
  background: rgba(10, 102, 194, 0.08);
  border-radius: 6px;
  padding: 0.5rem 0.72rem;
  box-shadow: 0 8px 16px rgba(10, 102, 194, 0.14);
}

.linkedin-cta::before {
  content: "in";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  background: #0a66c2;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: none;
}

.linkedin-cta:hover,
.linkedin-cta:focus-visible {
  background: rgba(10, 102, 194, 0.16);
  border-color: rgba(10, 102, 194, 0.52);
  color: #084d93;
}

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

  .signature-headshot {
    width: 102px;
    height: 102px;
    min-width: 102px;
  }
}
