/* Arm's story: integrated portrait hero and readable photo chapters. */
.memoir-main { position: relative; overflow: clip; color: #f3f0e5; }
.memoir-main * { box-sizing: border-box; }
.memoir-main .shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.memoir-main section { min-height: 0; margin: 0; border: 0; box-shadow: none; background: transparent; }
.memoir-main section::before, .memoir-main section::after { content: none; }
.memoir-main h1, .memoir-main h2, .memoir-main h3 {
  margin: 0; color: #f3f0e5 !important; background: none !important;
  -webkit-text-fill-color: currentColor !important;
  font-weight: 600; letter-spacing: -.015em; line-height: 1.5 !important;
  text-shadow: none; text-wrap: pretty; overflow-wrap: break-word;
}
.memoir-main p { margin: 0; color: #bfccc2 !important; font-size: 17px; line-height: 1.9; }
.memoir-main .eyebrow, .memoir-main .chapter-eyebrow {
  color: #d8bd79 !important; font-size: 13px; line-height: 1.7;
  font-weight: 500; letter-spacing: .08em;
}
.memoir-main .memoir-hero { padding: 34px 0; }
.memoir-main .memoir-hero-grid {
  display: flex; align-items: center;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 620px; padding: 52px;
  border-radius: 28px; border: 1px solid rgba(186,202,159,.15);
  background: linear-gradient(125deg,#123323,#0c1a12 70%);
}
.memoir-main .memoir-copy { position: relative; z-index: 2; width: 54%; }
.memoir-main .memoir-copy h1 { font-size: clamp(34px, 3.7vw, 50px); margin: 18px 0 24px; }
.memoir-main .memoir-copy .lead { max-width: 48ch; font-size: 16px; line-height: 1.9; }
.memoir-main .memoir-portrait { position: absolute; inset: 0 0 0 auto; width: 53%; height: 100%; z-index: 0; }
.memoir-main .memoir-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.memoir-main .memoir-portrait::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg,#10281c,rgba(13,30,20,.45) 25%,transparent 65%), linear-gradient(0deg,rgba(6,18,11,.5),transparent 45%);
}
.memoir-main .memoir-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.memoir-main .memoir-actions .btn { font-size: 15px; line-height: 1.6; min-height: 48px; padding: 12px 20px; white-space: normal; }
.memoir-main .memoir-intro { padding: 24px 0 48px; }
.memoir-main .memoir-statement { max-width: 820px; margin: auto; text-align: center; padding: 12px 0; }
.memoir-main .memoir-statement span { display: block; font-size: 15px; color: #d8bd79; line-height: 1.85; margin-bottom: 16px; }
.memoir-main .memoir-statement strong { display: block; font-weight: 500; font-size: clamp(22px,2.25vw,29px); line-height: 1.75; }
.memoir-main .memoir-gallery-section { padding: 0 0 30px; }
.memoir-main .memoir-gallery-heading { max-width: 760px; text-align: center; margin: 0 auto 34px; }
.memoir-main .memoir-gallery-heading h2 { font-size: clamp(29px,3.1vw,40px); margin: 14px 0 18px; }
.memoir-main .memoir-gallery-heading > p:last-child { font-size: 16px; }
.memoir-main .chapter-timeline { display: grid; gap: 24px; }
.memoir-main .chapter-timeline::before { content: none; }
.memoir-main .chapter-row {
  position: relative; display: grid !important;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  align-items: start; gap: clamp(24px,3.5vw,46px);
  padding: 32px !important; margin: 0 !important;
  border: 1px solid rgba(170,195,166,.14) !important;
  border-radius: 24px !important;
  background: linear-gradient(130deg,rgba(22,43,30,.92),rgba(9,22,15,.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
  opacity: 1 !important; transform: none !important;
  overflow: visible;
}
.memoir-main .chapter-row::before, .memoir-main .chapter-row::after { content: none !important; }
.memoir-main .chapter-media {
  position: sticky; top: 92px; width: 100%; margin: 0;
  overflow: hidden; border-radius: 16px; background: rgba(3,11,7,.45);
}
.memoir-main .chapter-media img {
  display: block; width: 100%; height: auto; max-height: calc(100svh - 120px);
  object-fit: contain; border-radius: 16px;
}
.memoir-main .chapter-copy { display: block; min-width: 0; padding: 6px 0; }
.memoir-main .chapter-heading { position: static; margin: 0 0 24px; }
.memoir-main .chapter-number {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 32px; padding: 0 10px; margin-right: 10px;
  color: #e0c883; background: rgba(216,189,121,.1); border: 1px solid rgba(216,189,121,.22);
  border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1; vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
.memoir-main .chapter-eyebrow { display: inline; vertical-align: middle; font-size: 14px; }
.memoir-main .chapter-copy h3 { font-size: clamp(26px,2.65vw,35px); margin-top: 18px; }
.memoir-main .chapter-body p { font-size: 16px; line-height: 1.95; }
.memoir-main .chapter-body p + p { margin-top: 18px; }
.memoir-main .chapter-body p:last-child {
  margin-top: 24px; padding: 18px 20px; border-radius: 14px;
  color: #e0d0a4 !important; background: rgba(177,155,90,.07); font-weight: 500;
}
.memoir-main .memoir-final { padding: 18px 0 60px; }
.memoir-main .memoir-final-box {
  max-width: 880px; margin: auto; padding: 40px; text-align: center; border-radius: 24px;
  background: radial-gradient(ellipse at center,rgba(51,112,65,.2),transparent 75%);
}
.memoir-main .memoir-final-box h2 { font-size: clamp(28px,3vw,38px); margin: 16px 0 20px; }
.memoir-main .memoir-final-box .btn { margin-top: 26px; }
.memoir-main a:focus-visible { outline: 2px solid #d8bd79; outline-offset: 5px; }
@media (max-width: 860px) {
  .memoir-main .memoir-hero-grid { padding: 34px; min-height: 570px; }
  .memoir-main .memoir-copy { width: 59%; }
  .memoir-main .memoir-copy h1 { font-size: 36px; }
  .memoir-main .chapter-row { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); padding: 24px !important; gap: 24px; }
}
@media (max-width: 640px) {
  .memoir-main .shell { width: calc(100% - 28px); }
  .memoir-main .memoir-hero { padding: 20px 0 26px; }
  .memoir-main .memoir-hero-grid { display: flex; flex-direction: column; padding: 0; min-height: 0; border-radius: 22px; }
  .memoir-main .memoir-portrait { position: relative; inset: auto; order: -1; width: 100%; height: 370px; }
  .memoir-main .memoir-portrait img { object-position: center 23%; }
  .memoir-main .memoir-portrait::after { background: linear-gradient(0deg,#10271b,transparent 55%); }
  .memoir-main .memoir-copy { width: 100%; padding: 0 24px 28px; margin-top: -20px; }
  .memoir-main .memoir-copy h1 { font-size: clamp(30px,8vw,38px); margin: 16px 0 18px; }
  .memoir-main .memoir-actions { gap: 10px; }
  .memoir-main .memoir-actions .btn { width: 100%; justify-content: center; }
  .memoir-main .memoir-intro { padding: 10px 0 32px; }
  .memoir-main .memoir-statement { padding-inline: 14px; }
  .memoir-main .memoir-statement strong { font-size: 22px; line-height: 1.8; }
  .memoir-main .memoir-gallery-heading { padding-inline: 12px; margin-bottom: 26px; }
  .memoir-main .memoir-gallery-heading h2 { font-size: 29px; }
  .memoir-main .chapter-timeline { gap: 20px; }
  .memoir-main .chapter-row { display: block !important; padding: 20px !important; border-radius: 22px !important; }
  .memoir-main .chapter-media { position: static; margin: 0 0 24px; }
  .memoir-main .chapter-media img { max-height: 490px; }
  .memoir-main .chapter-copy { padding: 0; }
  .memoir-main .chapter-copy h3 { font-size: 27px; }
  .memoir-main .chapter-body p:last-child { padding: 16px; }
  .memoir-main .memoir-final-box { padding: 28px 14px; }
}
@media (prefers-reduced-motion: reduce) {
 .memoir-main * { scroll-behavior: auto !important; transition: none !important; }
}
