@scope (#main) to (#top) {
/* Blocks 05–07: selected Quiet Threshold, Shared Responsibility, Still Center. */
#mid-cta.compact-cta,
#responsibility.responsibility-section,
#safety.safety-section {
  position: relative;
  width: var(--frame-width);
  margin: 12px auto 0;
  overflow: clip;
  isolation: isolate;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: none;
}

#mid-cta.compact-cta {
  display: block;
  min-height: 690px;
  padding: 88px var(--section-inset);
  background: linear-gradient(105deg, #310111 0%, #3a0317 60%, #54142b 100%);
  text-align: left;
}

#mid-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  right: -8%;
  bottom: 0;
  width: 25%;
  border-radius: 55% 0 0 0;
  background: linear-gradient(100deg, #cfa26f, #f8ead7 30%, #e8cba6);
  box-shadow: -24px 0 80px rgba(225, 172, 111, .12), inset 18px 0 40px rgba(75, 16, 31, .2);
}

#mid-cta::after,
#responsibility::after,
#safety::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -40px;
  left: -6%;
  height: 250px;
  pointer-events: none;
  background: url("imgs/generated/dari-sections-shared/light-current.svg") center / 100% 100% no-repeat;
  opacity: .42;
}

#mid-cta .threshold-content { width: min(76%, 940px); margin: 0 auto 0 max(0px, calc((100% - 1280px) / 2)); }
#mid-cta h2 {
  max-width: 850px;
  margin: 0 0 28px;
  color: var(--section-cream);
  font-size: var(--section-title-size);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}
#mid-cta .threshold-fact { max-width: 690px; margin: 0; }
#mid-cta .threshold-fact p {
  margin: 0;
  color: #ead8c2;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}
#mid-cta .compact-cta-source {
  display: block;
  margin: 12px 0 0;
  color: #cbb6a3;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  text-align: left;
}
#mid-cta .threshold-reassurance {
  max-width: 650px;
  margin: 28px 0 0;
  color: #ead8c2;
  font-family: var(--font-ui);
  font-size: var(--section-body-size);
  line-height: 1.6;
  text-align: left;
}
#mid-cta .threshold-action { display: flex; align-items: center; gap: 26px; max-width: 660px; margin-top: 34px; }
#mid-cta .threshold-action::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #b99058); }
#mid-cta .button { min-width: 146px; min-height: 48px; font-size: 13px; }

#responsibility.responsibility-section {
  padding: 82px var(--section-inset) 92px;
  background: linear-gradient(180deg, #faf1e6, #f2dfcf);
  color: var(--section-ink);
}
#responsibility .responsibility-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  gap: 60px 48px;
  align-items: center;
  width: min(100%, var(--section-content-max));
  max-width: none;
  margin: 0 auto;
}
#responsibility .responsibility-grid > div:first-child,
#responsibility .responsibility-lists { display: contents; }
#responsibility .eyebrow { grid-column: 1 / -1; margin: 0; text-align: center; color: #713b43; font-size: var(--section-label-size); letter-spacing: 0; }
#responsibility h2 {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 74px 4px;
  color: var(--section-ink);
  font-size: var(--section-mode-size);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}
#responsibility h2::before {
  content: "";
  position: absolute;
  inset: -25px -26px;
  border-right: 1px solid rgba(143, 104, 64, .46);
  border-left: 1px solid rgba(143, 104, 64, .46);
  border-radius: 50%;
  mask-image: linear-gradient(180deg, transparent 0 7%, #000 18% 82%, transparent 93%);
  pointer-events: none;
}
#responsibility .responsibility-lists article {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
#responsibility .responsibility-lists article + article { grid-column: 3; margin-top: 0; }
#responsibility h3 { margin: 0 0 20px; color: var(--section-ink); font-size: var(--section-card-size); font-weight: 400; line-height: 1.15; letter-spacing: 0; }
#responsibility ul { margin: 0; padding: 0; list-style: none; }
#responsibility li { margin: 0; padding: 0; color: #653845; font-size: var(--section-note-size); line-height: 1.6; }
#responsibility li + li { margin-top: 15px; }
#responsibility li::before { display: none; }
#responsibility::after { opacity: .6; }

#safety.safety-section { padding: 76px var(--section-inset); background: #350213; }
#safety::before { top: 5%; bottom: auto; height: 85%; opacity: .18; transform: rotate(-12deg) scale(1.2); }
#safety .safety-shell {
  position: relative;
  width: min(100%, 1160px);
  min-height: 0;
  margin: 0 auto;
  padding: 58px 40px 54px;
  overflow: visible;
  border: 1px solid rgba(185, 144, 88, .45);
  border-radius: 32px;
  background: rgba(37, 0, 12, .3);
  box-shadow: none;
}
#safety .safety-shell::before, #safety .safety-shell::after { display: none; }
#safety .section-heading { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto 44px; }
#safety .eyebrow { margin: 0 0 15px; color: #dbba8d; font-size: var(--section-label-size); letter-spacing: 0; }
#safety h2 { margin: 0; color: var(--section-cream); font-size: var(--section-title-size); font-weight: 400; line-height: 1.08; letter-spacing: 0; }
#safety .section-heading p:not(.eyebrow) { max-width: 650px; margin: 20px 0 0; color: #dbc7b7; font-size: var(--section-body-size); line-height: 1.6; }
#safety .safety-icon { order: -1; position: relative; width: 90px; height: 16px; margin: 0 0 24px; border: 0; border-radius: 0; background: linear-gradient(#b99058, #b99058) left center / 35px 1px no-repeat, linear-gradient(#b99058, #b99058) right center / 35px 1px no-repeat; }
#safety .safety-icon::before { content: ""; position: absolute; inset: 2px 39px; width: auto; height: auto; border: 0; border-radius: 0; background: #d3ad77; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transform: none; }
#safety .safety-icon::after { display: none; }
#safety .safety-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
#safety .safety-list article { min-height: 0; padding: 6px 24px; border: 0; border-left: 1px solid rgba(185, 144, 88, .36); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
#safety .safety-list article:first-child { border-left: 0; }
#safety .safety-list h3 { margin: 0 0 16px; color: #f8e9d7; font-size: 25px; font-weight: 400; line-height: 1.15; letter-spacing: 0; }
#safety .safety-list p { margin: 0; color: #d9c3b3; font-size: var(--section-note-size); line-height: 1.6; }

@media (max-width: 1050px) {
  #responsibility .responsibility-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  #responsibility h2 { grid-column: 1 / -1; grid-row: 2; max-width: 640px; margin: 0 auto; padding: 20px 38px; }
  #responsibility h2::before { inset: -8px 0; }
  #responsibility .responsibility-lists article { grid-column: 1; grid-row: 3; }
  #responsibility .responsibility-lists article + article { grid-column: 2; }
  #safety .safety-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  #safety .safety-list article:nth-child(3) { border-left: 0; }
}

@media (max-width: 620px) {
  #mid-cta.compact-cta, #responsibility.responsibility-section, #safety.safety-section { width: calc(100% - 28px); }
  #mid-cta.compact-cta { min-height: 0; padding: 62px 24px 74px; }
  #mid-cta::before { top: auto; right: -16%; bottom: -170px; width: 42%; height: 270px; opacity: .5; }
  #mid-cta .threshold-content { width: 100%; margin: 0; }
  #mid-cta .threshold-fact p { font-size: 18px; }
  #mid-cta .threshold-action { gap: 18px; }
  #responsibility.responsibility-section { padding: 60px 24px 66px; }
  #responsibility .responsibility-grid { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  #responsibility h2 { padding: 16px 10px; }
  #responsibility h2::before { inset: -6px -10px; opacity: .5; }
  #responsibility .responsibility-lists article { padding-top: 22px; border-top: 1px solid rgba(143, 104, 64, .3); }
  #responsibility h3 { margin-bottom: 16px; }
  #safety.safety-section { padding: 34px 14px; }
  #safety .safety-shell { padding: 40px 22px; border-radius: 26px; }
  #safety .section-heading { margin-bottom: 30px; }
  #safety .safety-list { grid-template-columns: 1fr; gap: 0; }
  #safety .safety-list article { padding: 24px 0; border-left: 0; border-top: 1px solid rgba(185, 144, 88, .36); }
  #safety .safety-list article:last-child { padding-bottom: 0; }
  #safety .safety-list h3 { font-size: 26px; }
}

}

@scope (#footer) {
/* Blocks 05–07: selected Quiet Threshold, Shared Responsibility, Still Center. */
#mid-cta.compact-cta,
#responsibility.responsibility-section,
#safety.safety-section {
  position: relative;
  width: var(--frame-width);
  margin: 12px auto 0;
  overflow: clip;
  isolation: isolate;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: none;
}

#mid-cta.compact-cta {
  display: block;
  min-height: 690px;
  padding: 88px var(--section-inset);
  background: linear-gradient(105deg, #310111 0%, #3a0317 60%, #54142b 100%);
  text-align: left;
}

#mid-cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  right: -8%;
  bottom: 0;
  width: 25%;
  border-radius: 55% 0 0 0;
  background: linear-gradient(100deg, #cfa26f, #f8ead7 30%, #e8cba6);
  box-shadow: -24px 0 80px rgba(225, 172, 111, .12), inset 18px 0 40px rgba(75, 16, 31, .2);
}

#mid-cta::after,
#responsibility::after,
#safety::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -6%;
  bottom: -40px;
  left: -6%;
  height: 250px;
  pointer-events: none;
  background: url("imgs/generated/dari-sections-shared/light-current.svg") center / 100% 100% no-repeat;
  opacity: .42;
}

#mid-cta .threshold-content { width: min(76%, 940px); margin: 0 auto 0 max(0px, calc((100% - 1280px) / 2)); }
#mid-cta h2 {
  max-width: 850px;
  margin: 0 0 28px;
  color: var(--section-cream);
  font-size: var(--section-title-size);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}
#mid-cta .threshold-fact { max-width: 690px; margin: 0; }
#mid-cta .threshold-fact p {
  margin: 0;
  color: #ead8c2;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}
#mid-cta .compact-cta-source {
  display: block;
  margin: 12px 0 0;
  color: #cbb6a3;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
  text-align: left;
}
#mid-cta .threshold-reassurance {
  max-width: 650px;
  margin: 28px 0 0;
  color: #ead8c2;
  font-family: var(--font-ui);
  font-size: var(--section-body-size);
  line-height: 1.6;
  text-align: left;
}
#mid-cta .threshold-action { display: flex; align-items: center; gap: 26px; max-width: 660px; margin-top: 34px; }
#mid-cta .threshold-action::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #b99058); }
#mid-cta .button { min-width: 146px; min-height: 48px; font-size: 13px; }

#responsibility.responsibility-section {
  padding: 82px var(--section-inset) 92px;
  background: linear-gradient(180deg, #faf1e6, #f2dfcf);
  color: var(--section-ink);
}
#responsibility .responsibility-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  gap: 60px 48px;
  align-items: center;
  width: min(100%, var(--section-content-max));
  max-width: none;
  margin: 0 auto;
}
#responsibility .responsibility-grid > div:first-child,
#responsibility .responsibility-lists { display: contents; }
#responsibility .eyebrow { grid-column: 1 / -1; margin: 0; text-align: center; color: #713b43; font-size: var(--section-label-size); letter-spacing: 0; }
#responsibility h2 {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 74px 4px;
  color: var(--section-ink);
  font-size: var(--section-mode-size);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}
#responsibility h2::before {
  content: "";
  position: absolute;
  inset: -25px -26px;
  border-right: 1px solid rgba(143, 104, 64, .46);
  border-left: 1px solid rgba(143, 104, 64, .46);
  border-radius: 50%;
  mask-image: linear-gradient(180deg, transparent 0 7%, #000 18% 82%, transparent 93%);
  pointer-events: none;
}
#responsibility .responsibility-lists article {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
#responsibility .responsibility-lists article + article { grid-column: 3; margin-top: 0; }
#responsibility h3 { margin: 0 0 20px; color: var(--section-ink); font-size: var(--section-card-size); font-weight: 400; line-height: 1.15; letter-spacing: 0; }
#responsibility ul { margin: 0; padding: 0; list-style: none; }
#responsibility li { margin: 0; padding: 0; color: #653845; font-size: var(--section-note-size); line-height: 1.6; }
#responsibility li + li { margin-top: 15px; }
#responsibility li::before { display: none; }
#responsibility::after { opacity: .6; }

#safety.safety-section { padding: 76px var(--section-inset); background: #350213; }
#safety::before { top: 5%; bottom: auto; height: 85%; opacity: .18; transform: rotate(-12deg) scale(1.2); }
#safety .safety-shell {
  position: relative;
  width: min(100%, 1160px);
  min-height: 0;
  margin: 0 auto;
  padding: 58px 40px 54px;
  overflow: visible;
  border: 1px solid rgba(185, 144, 88, .45);
  border-radius: 32px;
  background: rgba(37, 0, 12, .3);
  box-shadow: none;
}
#safety .safety-shell::before, #safety .safety-shell::after { display: none; }
#safety .section-heading { display: flex; flex-direction: column; align-items: center; max-width: 760px; margin: 0 auto 44px; }
#safety .eyebrow { margin: 0 0 15px; color: #dbba8d; font-size: var(--section-label-size); letter-spacing: 0; }
#safety h2 { margin: 0; color: var(--section-cream); font-size: var(--section-title-size); font-weight: 400; line-height: 1.08; letter-spacing: 0; }
#safety .section-heading p:not(.eyebrow) { max-width: 650px; margin: 20px 0 0; color: #dbc7b7; font-size: var(--section-body-size); line-height: 1.6; }
#safety .safety-icon { order: -1; position: relative; width: 90px; height: 16px; margin: 0 0 24px; border: 0; border-radius: 0; background: linear-gradient(#b99058, #b99058) left center / 35px 1px no-repeat, linear-gradient(#b99058, #b99058) right center / 35px 1px no-repeat; }
#safety .safety-icon::before { content: ""; position: absolute; inset: 2px 39px; width: auto; height: auto; border: 0; border-radius: 0; background: #d3ad77; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); transform: none; }
#safety .safety-icon::after { display: none; }
#safety .safety-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
#safety .safety-list article { min-height: 0; padding: 6px 24px; border: 0; border-left: 1px solid rgba(185, 144, 88, .36); border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
#safety .safety-list article:first-child { border-left: 0; }
#safety .safety-list h3 { margin: 0 0 16px; color: #f8e9d7; font-size: 25px; font-weight: 400; line-height: 1.15; letter-spacing: 0; }
#safety .safety-list p { margin: 0; color: #d9c3b3; font-size: var(--section-note-size); line-height: 1.6; }

@media (max-width: 1050px) {
  #responsibility .responsibility-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  #responsibility h2 { grid-column: 1 / -1; grid-row: 2; max-width: 640px; margin: 0 auto; padding: 20px 38px; }
  #responsibility h2::before { inset: -8px 0; }
  #responsibility .responsibility-lists article { grid-column: 1; grid-row: 3; }
  #responsibility .responsibility-lists article + article { grid-column: 2; }
  #safety .safety-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  #safety .safety-list article:nth-child(3) { border-left: 0; }
}

@media (max-width: 620px) {
  #mid-cta.compact-cta, #responsibility.responsibility-section, #safety.safety-section { width: calc(100% - 28px); }
  #mid-cta.compact-cta { min-height: 0; padding: 62px 24px 74px; }
  #mid-cta::before { top: auto; right: -16%; bottom: -170px; width: 42%; height: 270px; opacity: .5; }
  #mid-cta .threshold-content { width: 100%; margin: 0; }
  #mid-cta .threshold-fact p { font-size: 18px; }
  #mid-cta .threshold-action { gap: 18px; }
  #responsibility.responsibility-section { padding: 60px 24px 66px; }
  #responsibility .responsibility-grid { display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
  #responsibility h2 { padding: 16px 10px; }
  #responsibility h2::before { inset: -6px -10px; opacity: .5; }
  #responsibility .responsibility-lists article { padding-top: 22px; border-top: 1px solid rgba(143, 104, 64, .3); }
  #responsibility h3 { margin-bottom: 16px; }
  #safety.safety-section { padding: 34px 14px; }
  #safety .safety-shell { padding: 40px 22px; border-radius: 26px; }
  #safety .section-heading { margin-bottom: 30px; }
  #safety .safety-list { grid-template-columns: 1fr; gap: 0; }
  #safety .safety-list article { padding: 24px 0; border-left: 0; border-top: 1px solid rgba(185, 144, 88, .36); }
  #safety .safety-list article:last-child { padding-bottom: 0; }
  #safety .safety-list h3 { font-size: 26px; }
}

}
