:root {
  --bg: #efefee;
  --card: #f2f0ed;
  --ink: #17171b;
  --muted: #55555e;
  --line: #1f2023;
  --green: #48af7b;
  --blue: #719fe3;
  --red: #d84b4d;
  --max: 1380px;
  --home-section-inline-pad: clamp(0.45rem, 1.1vw, 1rem);
  --carousel-card-width: clamp(205px, 17.5vw, 320px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Avenir Next", "Avenir", "Helvetica Neue", sans-serif;
  line-height: 1.3;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 120px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 40;
}

.menu-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.social-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.social-links li {
  line-height: 0;
}

.social-icon-link {
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--line);
  border-radius: 0.7rem;
  background: #f8f8f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 140ms ease;
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
  transform: translateY(-1px);
}

.social-icon-link svg {
  width: 1.68rem;
  height: 1.68rem;
  display: block;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-menu-bar {
  position: fixed;
  top: 0.72rem;
  left: auto !important;
  right: 1.3rem !important;
  width: auto;
  background: transparent !important;
  border: 0 !important;
  z-index: 39;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.show-scroll-menu .floating-menu-bar {
  opacity: 1;
  transform: translateY(0);
}

.menu-star-button {
  border: 3px solid var(--line);
  border-radius: 0.85rem;
  background: #ede8e2 !important;
  color: var(--ink);
  width: 3.7rem;
  height: 3.1rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle:checked ~ .floating-menu-bar .menu-star-button {
  background: #e1dbd3;
  color: var(--ink);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 41;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 100vw);
  background: var(--bg);
  border-left: 2px solid var(--line);
  z-index: 42;
  transform: translateX(102%);
  transition: transform 180ms ease;
}

.menu-drawer-inner {
  height: 100%;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 7.2rem 3rem 2.5rem;
}

.menu-close-button {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  border: 2px solid var(--line);
  border-radius: 0.7rem;
  background: #ede8e2;
  color: var(--ink);
  padding: 0.42rem 0.72rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.25rem;
}

.menu-list a {
  text-decoration: none;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.menu-list a[aria-current="page"] {
  text-decoration: underline;
}

.menu-social {
  gap: 0.75rem;
}

.menu-social .social-icon-link {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
}

.menu-social .social-icon-link svg {
  width: 1.95rem;
  height: 1.95rem;
}

.menu-toggle:checked ~ .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.menu-toggle:checked ~ .menu-drawer {
  transform: translateX(0);
}

.content {
  padding: 2.5rem 0 5rem;
}

.back-home {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.25;
}

.back-home a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.content > h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.02;
}

.content p,
.content li {
  font-size: 1.24rem;
  line-height: 1.4;
}

.pretitle {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.content ul {
  padding-left: 1.15rem;
}

.content figure {
  margin: 1.5rem 0;
}

.content figure img {
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  display: block;
}

.content figure {
  max-width: 920px;
}

.team-page .content figure {
  max-width: none;
  width: fit-content;
  margin: 1rem 0 1.2rem;
}

.team-page .content figure img {
  width: clamp(220px, 28vw, 380px);
  max-width: 100%;
  margin-inline: 0;
  object-fit: cover;
}

.team-page .content h2 {
  margin-top: 4.2rem;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  line-height: 1.06;
}

.team-page .content h2:first-of-type {
  margin-top: 1.6rem;
}

.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.articles-index-page .article-list {
  max-width: 50%;
}

.article-list li {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.article-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  padding: 3.4rem 0 3.8rem;
  margin-top: 2.3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.footer-heading {
  margin: 0;
  font-size: clamp(2.4rem, 5.1vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.footer-office p {
  font-size: clamp(1.55rem, 2.15vw, 3.2rem);
  line-height: 1.2;
}

.footer-office p {
  margin: 1.4rem 0 0;
}

.footer-follow {
  justify-self: end;
  width: min(100%, 360px);
  border-top: 0 !important;
}

.footer-follow::before,
.footer-follow::after {
  content: none !important;
  display: none !important;
}

.footer-follow hr {
  display: none !important;
}

.footer-follow ul {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
}

.footer-follow li + li {
  margin-top: 0;
}

.footer-social .social-icon-link {
  width: 2.75rem;
  height: 2.75rem;
  border-width: 3px;
  border-radius: 0.95rem;
}

.footer-social .social-icon-link svg {
  width: 2.3rem;
  height: 2.3rem;
}

.arrow-link {
  font-weight: 700;
}

.home-page .content {
  padding-top: 2.1rem;
}

.home-page main section {
  margin: 0;
  padding: 2.7rem var(--home-section-inline-pad);
  border-top: 2px solid var(--line);
}

.home-page main section:first-child {
  border-top: 0;
  padding-top: 0.8rem;
}

.home-page main section.home-hero {
  padding-bottom: 0;
}

.home-page main section.about-banner {
  border-top: 0;
  padding: clamp(2.8rem, 4vw, 4rem) clamp(2.3rem, 3.4vw, 3.8rem);
}

.home-page main h1,
.home-page main h2,
.home-page main h3 {
  margin: 0;
  line-height: 1.03;
}

.home-page main h1 {
  font-size: clamp(3.3rem, 9vw, 8.4rem);
  letter-spacing: -0.02em;
}

.home-page main h2 {
  font-size: clamp(2.1rem, 5.3vw, 4rem);
  letter-spacing: -0.02em;
}

.home-page main h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  letter-spacing: -0.01em;
}

.home-page main p,
.home-page main li {
  font-size: clamp(1.1rem, 2vw, 2rem);
  line-height: 1.2;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 2.6rem;
  align-items: end;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: -9% -2% -2% 34%;
  background: url("/images/sud-ouest-grid.svg") no-repeat center right / contain;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.35rem;
  align-self: start;
}

.hero-badge {
  max-width: 690px;
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: #ede8e2;
  padding: 1.4rem 1.4rem 1.8rem;
  display: grid;
  gap: 1rem;
}

.hero-badge h2 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}

.hero-badge p {
  margin: 0;
  max-width: 46ch;
  white-space: normal;
  line-height: 1.2;
}

.district-nowrap {
  white-space: nowrap;
}

.hero-media {
  position: relative;
  z-index: 1;
  align-self: end;
}

.hero-media img {
  border: 0;
}

.home-articles {
  display: grid;
  gap: 1.55rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem 1.1rem 1.3rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 20rem;
}

.news-card-image {
  display: block;
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card h3 {
  font-size: clamp(2rem, 3.3vw, 4rem);
  letter-spacing: -0.01em;
}

.card-title-link {
  text-decoration: none;
}

.card-title-link:hover,
.card-title-link:focus-visible {
  text-decoration: underline;
}

.news-card p {
  margin: 0;
}

.center-button-wrap {
  text-align: center;
  margin: 0;
}

.office-follow {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.office-card p,
.follow-card li {
  font-size: clamp(1.3rem, 2vw, 2.3rem);
}

.follow-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.follow-card li + li {
  margin-top: 0.42rem;
}

.council-section {
  display: grid;
  gap: 1.3rem;
}

.council-intro {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 1.2rem;
  align-items: center;
}

.council-intro > * {
  min-width: 0;
}

.council-intro img,
.council-intro video {
  border-radius: 0.9rem;
  border: 3px solid var(--line);
  width: 100%;
  max-width: 680px;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  justify-self: end;
}

.council-calendar {
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.8rem;
  align-items: end;
}

.council-calendar p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
}

.council-calendar p + p {
  margin-top: 1.3rem;
}

.council-calendar span {
  color: var(--muted);
}

.council-dates {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.council-dates a {
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.council-links {
  display: grid;
  gap: 0.8rem;
  justify-items: end;
}

.council-links a {
  font-size: clamp(1.2rem, 2.2vw, 3rem);
  text-align: right;
}

.tools-section {
  display: grid;
  gap: 1.3rem;
  background: #e9e4dc;
  border: 3px solid var(--line);
  border-radius: 0.65rem;
}

.tools-section > p {
  margin: 0;
  max-width: none;
  white-space: nowrap;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  border: 3px solid var(--line);
  border-radius: 1rem;
  background: #f6f2eb;
  overflow: hidden;
}

.tool-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.tool-copy {
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.support-grid {
  --support-card-height: clamp(170px, 18vw, 230px);
  display: grid;
  gap: 1.3rem;
}

.support-columns {
  display: grid;
  grid-template-columns: 1.38fr 0.95fr;
  gap: 1rem;
}

.support-left {
  display: grid;
  grid-template-rows: repeat(2, minmax(var(--support-card-height), auto));
  gap: 1rem;
}

.support-card {
  border: 3px solid var(--line);
  border-radius: 1rem;
}

.support-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: var(--support-card-height);
  padding: 1.45rem 1.55rem;
  cursor: pointer;
}

.support-card[open] summary {
  min-height: auto;
  padding-bottom: 0.8rem;
}

.support-card summary::-webkit-details-marker {
  display: none;
}

.support-title {
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.support-card .toggle {
  font-size: clamp(2.6rem, 4.2vw, 5rem);
  line-height: 1;
  font-weight: 700;
}

.support-card .toggle::before {
  content: "+";
}

.support-card[open] .toggle::before {
  content: "-";
}

.support-body {
  padding: 0 1.15rem 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.support-body p {
  margin: 0;
}

.support-card ul {
  margin: 0.2rem 0 0;
}

.asterisk-list {
  list-style: none;
  padding-left: 0;
}

.asterisk-list li {
  position: relative;
  padding-left: 1.35rem;
}

.asterisk-list li::before {
  content: "✱";
  position: absolute;
  left: 0;
  top: 0.02em;
  font-weight: 800;
}

.red-card {
  background: var(--red);
}

.green-card {
  background: var(--green);
}

.blue-card {
  background: var(--blue);
}

.blue-card summary {
  min-height: calc((var(--support-card-height) * 2) + 1rem);
}

.blue-card[open] summary {
  min-height: auto;
}

.team-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: center;
}

.home-page main .team-section h2 {
  margin-bottom: clamp(0.9rem, 1.8vw, 1.6rem);
}

.team-wrap img {
  border: 3px solid var(--line);
  border-radius: 1rem;
  width: 100%;
  object-fit: cover;
}

.about-banner {
  border: 3px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 1rem;
  background: var(--red);
  display: grid;
  gap: 1.25rem;
  padding: clamp(2.8rem, 4vw, 4rem) clamp(2.3rem, 3.4vw, 3.8rem);
}

@media (min-width: 901px) {
  .about-banner {
    border-top: 3px solid var(--line) !important;
  }
}

.home-page .about-banner p {
  margin: 0;
  font-size: 3.5vw;
  line-height: 1.08;
  font-weight: 700;
  max-width: 20ch;
}

.about-banner .arrow-link {
  justify-self: end;
}

.reels-carousel {
  margin-top: 0;
  padding-block: 0.9rem 1.6rem;
}

.home-page main section.reels-carousel {
  border-top: 0;
  padding-top: 1.2rem;
}

.home-page main section.follow-profile,
.home-page main section.support-grid {
  border-top: 0;
}

.reels-carousel-track-wrap {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: hidden;
}

.reels-carousel-track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0;
  transform: translateX(calc(var(--carousel-card-width) * -0.5));
}

.reels-carousel-track-wrap::-webkit-scrollbar {
  height: 10px;
}

.reels-carousel-track-wrap::-webkit-scrollbar-thumb {
  background: #a2a7b0;
  border-radius: 999px;
}

.carousel-item {
  flex: 0 0 var(--carousel-card-width);
}

.carousel-item a {
  display: block;
  text-decoration: none;
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 0;
  display: block;
}

.follow-profile {
  display: block;
}

.follow-profile-links {
  min-height: 0;
}

.follow-profile-card {
  border: 3px solid #7b8ea8;
  border-radius: 1rem;
  background: #fff;
  padding: clamp(1.1rem, 2.1vw, 2rem);
  overflow: visible;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 2vw, 2.2rem);
  align-items: start;
}

.follow-profile-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.follow-profile-links li + li {
  margin-top: 0.6rem;
}

.follow-profile-links {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.85rem;
  justify-items: end;
  align-self: start;
}

.follow-text-links {
  align-self: start;
  justify-self: end;
  text-align: right;
  margin-top: clamp(1rem, 1.7vw, 1.7rem);
}

.follow-text-links a {
  font-size: clamp(1.7rem, 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  text-underline-offset: 0.12em;
}

.follow-profile-card {
  display: grid;
  align-items: start;
}

.profile-preview {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
  align-items: center;
}

.profile-preview-avatar {
  width: clamp(160px, 18vw, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.profile-preview-copy {
  min-width: 0;
}

.profile-preview-handle,
.profile-preview-name {
  margin: 0;
}

.profile-preview-handle {
  font-size: clamp(2.3rem, 3.7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.profile-preview-handle span {
  color: #2da8ff;
}

.profile-preview-name {
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 2.2vw, 2.45rem);
}

.home-page .follow-profile-card img {
  max-height: none;
}

@media (min-width: 900px) {
  .home-page .about-banner p {
    font-size: 3.5vw;
  }

  .about-banner .arrow-link,
  .team-section .arrow-link,
  .tool-copy .arrow-link,
  .news-card .arrow-link {
    font-size: 1.5vw;
  }
}

@media (max-width: 700px) {
  .follow-profile-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-preview {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-preview-avatar {
    width: clamp(120px, 34vw, 200px);
  }

  .profile-preview-handle {
    font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  }

  .profile-preview-name {
    font-size: clamp(1rem, 4.5vw, 1.35rem);
  }

  .follow-profile-links {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .follow-text-links {
    justify-self: start;
    text-align: left;
    margin-top: 0;
  }
}

.about-page .content {
  display: grid;
  gap: 2.9rem;
}

.about-page .about-title h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.about-page .about-block {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.about-page .about-media img {
  width: 100%;
  border: 3px solid var(--line);
  border-radius: 1rem;
  object-fit: cover;
}

.about-page .about-copy {
  display: grid;
  gap: 1rem;
}

.about-page .about-kicker {
  margin: 0;
  color: #262733;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  font-weight: 500;
}

.about-page h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1.01;
  letter-spacing: -0.015em;
}

.about-page p {
  margin: 0;
  font-size: clamp(1.15rem, 1.8vw, 2.05rem);
  line-height: 1.18;
}

@media (max-width: 1160px) {
  .home-hero::after {
    inset: 8% -4% 2% 18%;
    opacity: 0.62;
  }

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

  .news-card {
    min-height: 16rem;
  }

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

  .blue-card summary {
    min-height: var(--support-card-height);
  }

  .council-intro,
  .council-calendar,
  .home-hero,
  .office-follow,
  .tools-grid,
  .team-wrap,
  .follow-profile,
  .about-page .about-block {
    grid-template-columns: 1fr;
  }

  .home-hero {
    grid-template-areas:
      "hero-title"
      "hero-media"
      "hero-badge";
    align-items: start;
    gap: 1.1rem;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy > h1 {
    grid-area: hero-title;
    position: relative;
    z-index: 1;
    margin: 0;
  }

  .hero-media {
    grid-area: hero-media;
    justify-self: center;
    width: min(100%, 620px);
  }

  .hero-badge {
    grid-area: hero-badge;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
  }

  .council-links {
    justify-items: start;
  }

  .council-links a {
    text-align: left;
  }

  .follow-text-links {
    justify-self: end;
    text-align: right;
    margin-top: 0.85rem;
  }

  .follow-profile-card {
    order: -1;
    min-height: 0;
    height: auto;
    display: block;
  }

  .follow-profile-links {
    min-height: 0;
    height: auto;
  }

  .hero-badge p {
    white-space: normal;
  }

  .tools-section > p {
    white-space: normal;
  }

  .articles-index-page .article-list {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  :root {
    --carousel-card-width: min(60vw, 260px);
  }

  .home-page main section {
    padding-inline: 0.35rem;
  }

  .reels-carousel {
    padding-block: 0.6rem 1.2rem;
  }

  .about-banner {
    padding: 1.45rem 1.1rem;
  }

  .home-page main section.about-banner {
    margin-top: 0.55rem;
  }

  .follow-text-links {
    margin-top: 0;
  }

  .home-page .about-banner p {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.08;
  }

  .home-page main .team-section h2 {
    margin-bottom: 1.3rem;
  }

  .follow-profile-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
  }

  .profile-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .profile-preview-copy {
    text-align: center;
  }

  .follow-profile-links {
    justify-items: center;
    text-align: center;
  }

  .follow-text-links {
    justify-self: center;
    text-align: center;
    margin-top: 0;
  }

  .home-hero::after {
    inset: 10% -4% -2% 2%;
    background-position: center 28%;
    background-size: 112% auto;
    opacity: 0.72;
  }

  .home-hero {
    gap: 0;
  }

  .hero-badge {
    margin-top: 0;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .shell {
    width: min(var(--max), calc(100% - 1.3rem));
  }

  .social-icon-link {
    width: 1.9rem;
    height: 1.9rem;
  }

  .social-icon-link svg {
    width: 1.36rem;
    height: 1.36rem;
  }

  .menu-social .social-icon-link {
    width: 2.55rem;
    height: 2.55rem;
  }

  .menu-social .social-icon-link svg {
    width: 1.62rem;
    height: 1.62rem;
  }

  .footer-social .social-icon-link {
    width: 2.35rem;
    height: 2.35rem;
  }

  .footer-social .social-icon-link svg {
    width: 1.95rem;
    height: 1.95rem;
  }

  .floating-menu-bar {
    top: 0.55rem;
    right: 0.65rem !important;
  }

  .menu-star-button {
    width: 3.2rem;
    height: 2.7rem;
    font-size: 1.75rem;
    border-radius: 0.72rem;
  }

  .menu-drawer-inner {
    padding: 6.3rem 1.35rem 1.6rem;
  }

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

  .news-card {
    min-height: auto;
  }

  .content p,
  .content li {
    font-size: 1.05rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-follow {
    justify-self: start;
  }
}

.diorama-page .content {
  padding-top: 1.15rem;
}

.diorama-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.diorama-tool {
  max-width: 672px;
  margin: 0 auto;
}

.diorama-shell > section + section {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 2px solid var(--line);
}

.diorama-card {
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: clamp(1rem, 2.2vw, 2rem);
}

.diorama-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.03;
}

.diorama-lead {
  margin: 0.8rem 0 1.2rem;
  max-width: 62ch;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
}

.diorama-form label {
  display: block;
  margin-bottom: 0.42rem;
  font-weight: 700;
}

.diorama-input-row {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr auto;
}

.diorama-address-compound {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid #a9a8a3;
  border-radius: 0.7rem;
  background: #ffffff;
  overflow: hidden;
}

.diorama-input-row input {
  min-width: 0;
  border: 0;
  border-right: 2px solid #a9a8a3;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.8rem 0.92rem;
  font: inherit;
}

.diorama-address-suffix {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 0.9rem;
  font-weight: 700;
  color: #4b5466;
  background: #ece9e2;
  white-space: nowrap;
  font-size: 0.93rem;
}

.diorama-input-row input:focus-visible {
  border-color: var(--line);
  outline: 2px solid rgba(23, 23, 27, 0.18);
  outline-offset: 1px;
}

.diorama-input-row button,
.diorama-actions button {
  border: 2px solid var(--line);
  border-radius: 0.7rem;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.74rem 1rem;
  cursor: pointer;
}

.diorama-input-row button:hover,
.diorama-input-row button:focus-visible,
.diorama-actions button:hover,
.diorama-actions button:focus-visible {
  filter: brightness(0.94);
}

.diorama-input-row button:disabled,
.diorama-actions button:disabled {
  background: #8d8e95;
  cursor: not-allowed;
  filter: none;
}

.diorama-hint {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.diorama-privacy {
  font-size: 0.74rem;
  line-height: 1.35;
  max-width: 72ch;
}

.diorama-satellite-error {
  margin-top: 0.6rem;
  color: #6a1f21;
  font-weight: 600;
}

.diorama-notice {
  margin-top: 1rem;
  border-radius: 0.8rem;
  border: 2px solid var(--line);
  padding: 0.82rem 0.95rem;
}

.diorama-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f2e9c9;
}

.diorama-progress[hidden],
.diorama-error[hidden],
.diorama-warning[hidden],
.diorama-preview[hidden],
.diorama-result[hidden] {
  display: none !important;
}

.diorama-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #8d7f48;
  border-top-color: transparent;
  border-radius: 50%;
  animation: diorama-spin 0.8s linear infinite;
}

.diorama-error {
  background: #f4d8d9;
  color: #4f191a;
}

.diorama-warning {
  background: #e6ebfa;
  color: #25345f;
}

.diorama-preview {
  margin-top: 1.1rem;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 0.9rem;
  background: #efefee;
}

.diorama-preview h2,
.diorama-result h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.diorama-preview-label {
  margin: 0.75rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.diorama-grid-three {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diorama-grid-two {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diorama-grid-three img,
.diorama-grid-two img,
.diorama-grid-one img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.6rem;
  border: 2px solid var(--line);
  background: #efece8;
}

.diorama-reference-option {
  border: 2px solid var(--line);
  border-radius: 0.7rem;
  overflow: hidden;
  padding: 0;
  background: #f3f3f1;
  cursor: pointer;
  text-align: left;
}

.diorama-reference-option:focus-visible {
  outline: 3px solid #5f6d91;
  outline-offset: 1px;
}

.diorama-reference-option img {
  display: block;
}

.diorama-reference-option span {
  display: block;
  padding: 0.38rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #4a4e5a;
  background: #f5f1ea;
  border-top: 2px solid var(--line);
}

.diorama-reference-option.is-selected {
  outline: 3px solid #5f6d91;
  outline-offset: 1px;
}

.diorama-actions {
  margin-top: 0.85rem;
}

.diorama-result {
  margin-top: 1rem;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 0.9rem;
  background: #f4f2ef;
}

.diorama-result img {
  width: min(100%, 640px);
  border-radius: 0.7rem;
  border: 2px solid var(--line);
  background: #fff;
}

.diorama-result a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.diorama-help {
  margin-top: 1rem;
  border-top: 2px solid #b8b8b4;
  padding-top: 0.9rem;
}

.diorama-help summary {
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.diorama-help-box {
  margin-top: 0.6rem;
  border: 2px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: #eceae6;
}

.diorama-help-box p {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  line-height: 1.36;
}

.diorama-help-box label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.diorama-url-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.diorama-url-row input {
  min-width: 0;
  border: 2px solid #a9a8a3;
  border-radius: 0.7rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.68rem 0.8rem;
}

.diorama-about {
  max-width: 672px;
  margin: 0 auto;
  border: 2px solid var(--line);
  border-radius: 2rem;
  background: #e8e8e8;
  padding: clamp(0.7rem, 1.7vw, 1.2rem);
}

.diorama-about-kicker {
  margin: 0 0 1rem;
  font-size: clamp(0.62rem, 1vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4f596a;
}

.diorama-about-card {
  border: 2px solid var(--line);
  border-radius: 1.6rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
}

.diorama-about-media {
  background: #efefef;
}

.diorama-about-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.diorama-about-links {
  background: #d2cbc0;
  padding: clamp(0.8rem, 1.6vw, 1.3rem);
  display: grid;
  align-content: center;
  gap: 0.5rem;
}

.diorama-about-links h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1;
}

.diorama-about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.1vw, 1.55rem);
}

.diorama-about-list a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

@keyframes diorama-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .diorama-input-row {
    grid-template-columns: 1fr;
  }

  .diorama-address-compound {
    grid-template-columns: 1fr;
  }

  .diorama-input-row input {
    border-right: 0;
    border-bottom: 2px solid #a9a8a3;
  }

  .diorama-address-suffix {
    justify-content: flex-start;
    padding: 0.55rem 0.8rem;
  }

  .diorama-grid-three {
    grid-template-columns: 1fr 1fr;
  }

  .diorama-grid-two {
    grid-template-columns: 1fr;
  }

  .diorama-url-row {
    grid-template-columns: 1fr;
  }

  .diorama-about-card {
    grid-template-columns: 1fr;
  }

  .diorama-about-links h2 {
    font-size: clamp(1.6rem, 9vw, 2.6rem);
  }

  .diorama-about-list {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }
}

@media (max-width: 560px) {
  .diorama-grid-three {
    grid-template-columns: 1fr;
  }
}
