/* Homepage mobile refinements.
   The homepage has its own visual system, so keep these rules scoped to its
   sections and leave the shared page styles untouched. */

@media (max-width: 650px) {
  .bsus-topline {
    height: 30px;
    font-size: 10px;
  }

  .bsus-topline-inner {
    width: calc(100% - 24px);
  }

  .bsus-header-inner {
    width: calc(100% - 24px);
    height: 68px;
    gap: 8px;
  }

  .bsus-brand {
    min-width: 0;
    gap: 8px;
  }

  .bsus-brand img {
    width: 40px;
    height: 40px;
  }

  .bsus-brand-text {
    min-width: 0;
  }

  .bsus-brand-text strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .bsus-brand-text small {
    display: none;
  }

  .bsus-header-actions {
    gap: 5px;
  }

  .bsus-header-actions .bsus-cta-btn {
    display: none;
  }

  .bsus-search-btn {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .bsus-mobile-toggle {
    font-size: 24px;
    padding: 2px;
  }

  .wrap {
    width: calc(100% - 24px);
  }

  .hero-copy {
    padding: 54px 0 14px;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 43px);
    line-height: 1.2;
    letter-spacing: -0.045em;
    margin: 18px 0 17px;
  }

  .hero-copy > p {
    font-size: 13.5px;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 14px;
    margin-top: 26px;
  }

  .hero-actions .cta {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 12px 16px;
    margin-top: 34px;
  }

  .hero-stat {
    padding-left: 10px;
  }

  .hero-stat strong {
    font-size: 19px;
  }

  .hero-art {
    min-height: 300px;
  }

  .art-ring {
    width: min(300px, 84vw);
    height: min(300px, 84vw);
  }

  .art-card {
    width: min(285px, 76vw);
  }

  .art-label {
    right: 0;
    top: 20%;
    padding: 9px 11px;
    font-size: 10px;
  }

  .art-label b {
    font-size: 12px;
  }

  .art-label-bottom {
    left: 0;
    bottom: 9%;
    padding: 10px 12px;
    font-size: 10px;
  }

  .section {
    padding: 58px 0;
  }

  .section-top {
    gap: 14px;
    margin-bottom: 28px;
  }

  .section-top h2 {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .outline-link {
    font-size: 12px;
  }

  .feature {
    min-height: 285px;
    padding: 21px;
  }

  .feature h3 {
    font-size: 21px;
    line-height: 1.42;
    margin-top: 34px;
  }

  .feature p,
  .story p {
    font-size: 12.5px;
  }

  .story {
    min-height: 170px;
    padding: 20px;
  }

  .story h3 {
    font-size: 17px;
  }

  .impact-cell {
    padding: 18px 14px;
  }

  .impact-cell strong {
    font-size: 28px;
  }

  .impact-cell p {
    font-size: 11px;
  }

  .program {
    min-height: 205px;
    padding: 23px;
  }

  .program h3 {
    font-size: 21px;
    margin-top: 25px;
  }

  .join .wrap {
    gap: 0;
  }

  .join h2 {
    font-size: clamp(31px, 9vw, 40px);
  }

  .join p {
    font-size: 13px;
  }

  .committee-link {
    padding: 15px 16px;
    font-size: 13px;
  }

  .directory-card {
    padding: 20px;
  }

  .visual-count {
    min-width: 140px;
    padding: 16px 17px;
  }

  .smart-visual-media {
    height: 210px;
  }
}

@media (max-width: 380px) {
  .bsus-brand-text strong {
    max-width: 150px;
    font-size: 13px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stat strong {
    font-size: 18px;
  }

  .impact-cell {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* -------------------------------------------------------------
   Premium homepage visual layer
------------------------------------------------------------- */
:root {
  --home-navy: #06132d;
  --home-navy-2: #0a2450;
  --home-blue: #4d8dff;
  --home-cyan: #78e9d0;
  --home-pink: #ff5576;
  --home-border: rgba(255, 255, 255, 0.12);
  --home-shadow: 0 24px 70px rgba(7, 21, 47, 0.16);
}

/* The visual-library block is hidden, so keep the visible section numbering contiguous. */
#committees .overline,
#directory .overline {
  font-size: 0;
}

#committees .overline::after,
#directory .overline::after {
  font-size: 11px;
  letter-spacing: 0.11em;
}

#committees .overline::after {
  content: '০৫ / সংগঠনের কাঠামো';
}

#directory .overline::after {
  content: '০৬ / আগের সব তালিকা';
}

body {
  background:
    radial-gradient(circle at 8% 18%, rgba(23, 105, 232, 0.05), transparent 25%),
    #f5f7fb;
}

/* The visual library is intentionally removed from the homepage. */
#visuals,
.hero-link[href="#visuals"] {
  display: none !important;
}

.hero {
  min-height: 610px;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 34%, rgba(61, 133, 255, 0.34), transparent 23%),
    radial-gradient(circle at 55% 110%, rgba(0, 166, 107, 0.24), transparent 27%),
    linear-gradient(125deg, #06132d 0%, #092454 58%, #07152f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero::before {
  opacity: 0.48;
  background:
    radial-gradient(circle at 80% 20%, rgba(77, 141, 255, 0.38), transparent 22%),
    linear-gradient(125deg, rgba(6, 19, 45, 0.12), rgba(6, 19, 45, 0.48));
}

.hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  bottom: -300px;
  border: 1px solid rgba(120, 233, 208, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(120, 233, 208, 0.03), 0 0 0 58px rgba(120, 233, 208, 0.02);
  pointer-events: none;
}

.hero .wrap {
  max-width: 1320px;
  min-height: 610px;
  grid-template-columns: minmax(0, 1.02fr) minmax(350px, 0.98fr);
  gap: 64px;
}

.hero-copy {
  max-width: 700px;
  padding: 78px 0 60px;
}

.kicker {
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(140, 240, 198, 0.2);
  border-radius: 999px;
  background: rgba(140, 240, 198, 0.06);
  letter-spacing: 0.12em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

h1 {
  max-width: 780px;
  font-size: clamp(48px, 6.3vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.065em;
  text-wrap: balance;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

h1 em {
  background: linear-gradient(90deg, #ff5a79, #ff91a5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 610px;
  color: #c5d2e7;
  font-size: 16px;
  line-height: 1.95;
}

.hero-actions {
  gap: 12px;
  margin-top: 38px;
}

.hero-actions .cta-light {
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.hero-link {
  padding: 10px 11px;
  border-radius: 8px;
  color: #dce8f9;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  gap: 0;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat {
  min-width: 125px;
  padding: 0 28px 0 16px;
  border-left: 1px solid rgba(255, 85, 118, 0.8);
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stat strong {
  font-size: 27px;
  color: #ffffff;
}

.hero-stat small {
  color: #a9bad4;
}

.hero-art {
  min-height: 610px;
  perspective: 1000px;
}

.art-ring {
  width: 540px;
  height: 540px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.018), 0 0 90px rgba(77, 141, 255, 0.16);
}

.art-ring::before {
  content: '';
  position: absolute;
  inset: 74px;
  border: 1px solid rgba(77, 141, 255, 0.26);
  border-radius: 50%;
}

.art-card {
  width: min(410px, 86%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.24), inset 0 0 55px rgba(255, 255, 255, 0.04);
  transform-style: preserve-3d;
}

.art-card::after {
  content: 'BSUS / 2026';
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font: 700 9px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.22em;
}

.art-label,
.art-label-bottom {
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.art-label {
  right: -24px;
  top: 20%;
  padding: 14px 17px;
  background: rgba(255, 255, 255, 0.94);
}

.art-label-bottom {
  left: -25px;
  bottom: 17%;
  padding: 14px 18px;
  background: linear-gradient(135deg, #00a66b, #087653);
}

.section {
  padding: 112px 0;
}

.section-top {
  margin-bottom: 46px;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.11em;
}

.overline::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 999px;
}

.section-top h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: -0.06em;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #dbe6f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  transition: 0.2s ease;
}

.outline-link:hover {
  border-color: #9fc1f8;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 105, 232, 0.1);
}

.news-shell {
  gap: 20px;
}

.feature,
.story {
  border-radius: 16px;
  box-shadow: var(--home-shadow);
}

.feature {
  min-height: 390px;
  padding: 36px;
  background: linear-gradient(140deg, #0a2450 0%, #1769e8 100%);
}

.feature::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: -100px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.03), 0 0 0 46px rgba(255, 255, 255, 0.02);
}

.feature h3 {
  font-size: 31px;
  line-height: 1.34;
}

.story {
  padding: 28px;
  border-color: #e1e8f2;
  box-shadow: 0 14px 35px rgba(7, 21, 47, 0.07);
}

.story:hover,
.smart-visual-card:hover,
.directory-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 55px rgba(7, 21, 47, 0.13);
}

.impact {
  background: linear-gradient(180deg, #edf4ff 0%, #e8f0fb 100%);
}

.impact-grid {
  gap: 14px;
  background: transparent;
  border: 0;
}

.impact-cell {
  min-height: 190px;
  border: 1px solid rgba(170, 193, 224, 0.72);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 30px rgba(7, 21, 47, 0.05);
}

.impact-cell strong {
  font-size: 44px;
}

.programs {
  background: #ffffff;
}

.program-tabs {
  gap: 8px;
  margin-bottom: 30px;
}

.tab,
.visual-filter {
  border-radius: 999px;
  padding: 10px 16px;
  transition: 0.2s ease;
}

.program-grid {
  gap: 18px;
}

.program {
  min-height: 270px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(7, 21, 47, 0.13);
}

.program:nth-child(1) {
  background: linear-gradient(145deg, #ff486c, #c91e4a);
}

.program:nth-child(2) {
  background: linear-gradient(145deg, #3180fa, #164bb4);
}

.program:nth-child(3) {
  background: linear-gradient(145deg, #08b67c, #057454);
}

.program .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.program h3 {
  font-size: 25px;
}

.program a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: 0.2s ease;
}

.program:hover a {
  background: #ffffff;
  color: var(--navy);
  transform: rotate(-12deg);
}

.join {
  background:
    radial-gradient(circle at 86% 50%, rgba(23, 105, 232, 0.35), transparent 28%),
    linear-gradient(125deg, #06132d, #0d2d61);
}

.join h2 {
  font-size: clamp(38px, 5vw, 66px);
}

.committee-link,
.directory-card {
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(7, 21, 47, 0.04);
}

.committee-link {
  padding: 21px 22px;
}

.directory-card {
  padding: 28px;
  transition: 0.25s ease;
}

.smart-visual-card {
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(7, 21, 47, 0.07);
}

.smart-visual-media {
  height: 245px;
}

.visual-badge {
  border-radius: 999px;
}

@media (max-width: 980px) {
  .impact .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero .wrap {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    min-height: 500px;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hero .wrap {
    min-height: 540px;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
    gap: 18px;
  }

  .hero-copy {
    padding: 62px 0 42px;
  }

  .hero-art {
    min-height: 540px;
  }

  .art-ring {
    width: min(360px, 42vw);
    height: min(360px, 42vw);
  }

  .art-card {
    width: min(300px, 78%);
  }

  .art-label {
    right: -8px;
  }

  .art-label-bottom {
    left: -8px;
  }
}

@media (max-width: 650px) {
  .impact .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 54px 0 22px;
  }

  h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.16;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-stats {
    margin-top: 38px;
    padding-top: 18px;
    flex-wrap: wrap;
  }

  .hero-stat {
    min-width: 0;
    flex: 1 1 30%;
    padding-right: 10px;
  }

  .hero-stat strong {
    font-size: 21px;
  }

  .hero-art {
    min-height: 350px;
  }

  .art-ring {
    width: min(320px, 84vw);
    height: min(320px, 84vw);
  }

  .art-card {
    width: min(290px, 78vw);
  }

  .art-label {
    right: 0;
    padding: 10px 12px;
  }

  .art-label-bottom {
    left: 0;
    padding: 11px 13px;
  }

  .section {
    padding: 72px 0;
  }

  .section-top h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .feature {
    min-height: 320px;
    padding: 24px;
  }

  .feature h3 {
    font-size: 23px;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .impact-cell {
    min-height: 160px;
    padding: 20px 15px;
  }

  .impact-cell strong {
    font-size: 31px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program {
    min-height: 230px;
  }

  .join h2 {
    font-size: clamp(33px, 10vw, 46px);
  }

  .smart-visual-media {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .art-card,
  .story,
  .smart-visual-card,
  .directory-card,
  .program {
    animation: none;
    transition: none;
  }
}

/* Dynamic content managed from admin/home-page-content. */
.bsus-site-content > main {
  display: flex;
  flex-direction: column;
}

.bsus-site-content > main > #home-content {
  order: -1;
}

.home-content-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(23, 105, 232, 0.1), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
}

.home-content-section::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  left: -190px;
  top: 80px;
  border: 1px solid rgba(23, 105, 232, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(23, 105, 232, 0.025), 0 0 0 58px rgba(23, 105, 232, 0.018);
  pointer-events: none;
}

.home-content-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: 50px;
}

.home-content-intro > div {
  flex: 1 1 0;
  min-width: 0;
}

.home-content-intro h2 {
  margin-top: 13px;
  color: var(--home-navy);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.06em;
}

.home-content-intro h2 em {
  color: var(--home-pink);
  font-style: normal;
}

.home-content-intro > p {
  flex: 0 1 440px;
  max-width: 440px;
  margin: 0 0 6px;
  padding-left: 22px;
  border-left: 2px solid rgba(23, 105, 232, 0.2);
  color: #66758e;
  font-size: 14px;
  line-height: 1.9;
}

.home-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.home-content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(214, 226, 242, 0.92);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(7, 21, 47, 0.08);
  transition: transform 0.35s cubic-bezier(.16, 1, .3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.home-content-card:hover {
  border-color: rgba(23, 105, 232, 0.4);
  box-shadow: 0 28px 58px rgba(7, 21, 47, 0.16), 0 6px 18px rgba(23, 105, 232, 0.08);
  transform: translateY(-9px);
}

.home-content-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(300px, 26vw, 390px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, #eaf2fc, #a9c1df);
}

.home-content-photo::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 170px;
  height: 170px;
  right: -65px;
  top: -68px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.06), 0 0 0 38px rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.home-content-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 19, 45, 0) 58%, rgba(6, 19, 45, 0.12) 100%);
  pointer-events: none;
}

.home-content-photo img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 12px 18px 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 14px rgba(7, 21, 47, 0.12));
  transition: transform 0.5s ease;
}

.home-content-card:hover .home-content-photo img {
  transform: scale(1.08);
}

.home-content-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #ffffff;
  font-size: 74px;
  font-weight: 800;
  background: radial-gradient(circle at 50% 35%, #4d8dff, #0a2450 72%);
}

.home-content-index {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(6, 19, 45, 0.68);
  font: 700 13px/1 "Segoe UI", sans-serif;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, background 0.35s ease;
}

.home-content-card:hover .home-content-index {
  background: #ec3150;
  transform: rotate(-8deg) scale(1.08);
}

.home-content-copy {
  position: relative;
  flex: 1 1 auto;
  padding: 28px 30px 32px;
}

.home-content-role {
  max-width: 100%;
  overflow-wrap: anywhere;
  display: inline-block;
  margin-bottom: 11px;
  padding: 6px 10px;
  border: 1px solid rgba(23, 105, 232, 0.14);
  border-radius: 999px;
  color: #1769e8;
  background: #f0f5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-content-role::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #00a66b;
  box-shadow: 0 0 0 3px rgba(0, 166, 107, 0.12);
}

.home-content-copy h3 {
  overflow-wrap: anywhere;
  color: var(--home-navy);
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.home-content-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 13px 0 0;
  color: #697991;
  font-size: 13px;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

@media (max-width: 850px) {
  .home-content-grid,
  .impact-grid,
  .program-grid,
  .committee-grid,
  .directory-grid,
  .smart-visual-grid {
    min-width: 0;
  }

  .home-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-content-intro {
    display: block;
  }

  .home-content-intro > p {
    margin-top: 16px;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 650px) {
  .hero .wrap,
  .hero-copy,
  .hero-art,
  .section .wrap,
  .home-content-section .wrap {
    min-width: 0;
  }

  .hero-copy > *,
  .hero-art > *,
  .section-top > *,
  .home-content-intro > *,
  .join .wrap > * {
    max-width: 100%;
    min-width: 0;
  }

  .home-content-section {
    padding: 58px 0;
  }

  .home-content-section .wrap {
    width: calc(100% - 24px);
  }

  .home-content-intro {
    gap: 0;
    margin-bottom: 28px;
  }

  .home-content-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-content-card {
    width: 100%;
    border-radius: 18px;
    transform: none;
  }

  .home-content-photo {
    height: auto;
    min-height: 220px;
    max-height: 330px;
    aspect-ratio: 1 / 0.78;
  }

  .home-content-photo img {
    max-width: 100%;
    padding: 8px 14px 0;
  }

  .home-content-card:hover {
    transform: none;
  }

  .home-content-copy {
    padding: 18px 18px 22px;
  }

  .home-content-copy h3 {
    font-size: clamp(18px, 5.6vw, 22px);
    line-height: 1.45;
  }

  .art-ring {
    width: min(320px, calc(100vw - 36px));
    height: min(320px, calc(100vw - 36px));
  }

  .art-card {
    width: min(290px, calc(100vw - 62px));
  }

  .art-label,
  .art-label-bottom {
    max-width: calc(100% - 16px);
    overflow-wrap: anywhere;
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stat {
    min-width: 0;
  }

  .committee-link > span:first-child,
  .directory-card a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .committee-link > span:first-child {
    flex: 1 1 auto;
  }

  .committee-link > span:last-child,
  .directory-card a > span {
    flex-shrink: 0;
  }
}

@media (max-width: 520px) {
  .home-content-copy p {
    font-size: 12.5px;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-content-card,
  .home-content-photo img {
    transition: none;
  }
}

/* Phone layout hardening: keep every grid/flex child inside the viewport. */
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 24px);
    max-width: none;
  }

  .section-top,
  .home-content-intro,
  .visual-head,
  .visual-toolbar,
  .join .wrap {
    min-width: 0;
  }

  .section-top > *,
  .home-content-intro > *,
  .visual-head > *,
  .visual-toolbar > *,
  .join .wrap > * {
    max-width: 100%;
    min-width: 0;
  }

  .section-top h2,
  .home-content-intro h2,
  .feature h3,
  .story h3,
  .program h3,
  .committee-link b,
  .directory-card h3 {
    overflow-wrap: anywhere;
  }

  .outline-link,
  .visual-all-link {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .feature,
  .story,
  .program,
  .committee-link,
  .directory-card,
  .smart-visual-card {
    min-width: 0;
  }

  .feature {
    min-height: 0;
  }

  .feature h3 {
    margin-top: 28px;
  }

  .story {
    min-height: 0;
  }

  .visual-head,
  .visual-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .visual-count {
    width: 100%;
  }

  .footer .wrap {
    min-width: 0;
  }
}

@media (max-width: 380px) {
  .section {
    padding: 58px 0;
  }

  .home-content-intro h2,
  .section-top h2 {
    font-size: clamp(27px, 8.8vw, 36px);
  }

  .home-content-photo {
    min-height: 210px;
    max-height: 250px;
    aspect-ratio: 1 / 0.77;
  }

  .home-content-copy {
    padding: 16px 16px 20px;
  }

  .home-content-index {
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
  }
}
