:root {
  --bg: #fff4f5;
  --bg-soft: #fffbf0;
  --card: #e3f4fc;
  --card-strong: #d2e9f7;
  --white: #ffffff;
  --pink: #ff6584;
  --pink-dark: #de3f64;
  --orange: #ff8b3d;
  --gold: #fed766;
  --ink: #372836;
  --muted: #765f6d;
  --line: #d2e9f7;
  --shadow: 0 18px 46px rgba(255, 101, 132, 0.18);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 6%, rgba(254, 215, 102, 0.2), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 45%, #fff 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

p {
  margin: 0;
}

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

.skip-link:focus {
  z-index: 999;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1rem;
  clip: auto;
  color: var(--white);
  background: var(--pink-dark);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 244, 245, 0.9);
  border-bottom: 1px solid rgba(210, 233, 247, 0.86);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-weight: 900;
  color: var(--pink-dark);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(255, 101, 132, 0.2);
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 40px;
  padding: 0.52rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #4f3d4b;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.site-nav a:not(.nav-download):hover,
.site-nav a:not(.nav-download):focus-visible {
  color: var(--pink-dark);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(254, 215, 102, 0.26), 0 8px 18px rgba(255, 101, 132, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.site-nav .nav-download {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(255, 101, 132, 0.24);
}

.site-nav .nav-download:hover,
.site-nav .nav-download:focus-visible {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 14px 30px rgba(255, 101, 132, 0.34);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 11px;
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--pink-dark);
  transition: top 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 5rem 0 3rem;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 244, 245, 0.96), rgba(255, 244, 245, 0.82) 45%, rgba(255, 251, 240, 0.46)),
    linear-gradient(0deg, var(--bg), transparent 32%);
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  gap: 2rem;
  align-items: end;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: var(--pink-dark);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 99px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(1.95rem, 4.8vw, 3.85rem);
  color: var(--pink-dark);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.45rem, 2.55vw, 2.18rem);
  color: var(--pink-dark);
}

h3 {
  font-size: 1.2rem;
}

.hero-lead {
  max-width: 680px;
  margin-top: 1.2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: #5e4c59;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 45%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: left 420ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn:hover::after,
.btn:focus-visible::after {
  left: 125%;
}

.btn span,
.btn .ui-icon {
  position: relative;
  z-index: 1;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 16px 30px rgba(255, 101, 132, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 18px 38px rgba(255, 139, 61, 0.3);
}

.btn-secondary {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--gold);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.hero-stats div,
.hero-panel,
.story-card,
.image-card,
.guide-card,
.feature-list article,
.analysis-grid article,
.timeline-item,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.hero-stats div,
.hero-panel,
.story-card,
.image-card,
.guide-card,
.feature-list article,
.analysis-grid article,
.timeline-item,
.faq-list details,
.content-block,
.build-copy,
.gallery {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero-stats div:hover,
.hero-panel:hover,
.story-card:hover,
.guide-card:hover,
.feature-list article:hover,
.analysis-grid article:hover,
.timeline-item:hover,
.faq-list details:hover,
.content-block:hover,
.build-copy:hover,
.gallery:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 46px rgba(255, 101, 132, 0.2), 0 0 0 3px rgba(254, 215, 102, 0.18);
  transform: translateY(-4px);
}

.hero-stats div {
  padding: 0.9rem;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-weight: 900;
}

.hero-panel {
  padding: 1.2rem;
  background: rgba(227, 244, 252, 0.9);
}

.hero-panel img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius);
  border: 3px solid var(--white);
}

.hero-panel h2 {
  margin-top: 1rem;
  font-size: 1.32rem;
}

.hero-panel ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.quick-nav {
  width: min(var(--max), calc(100% - 32px));
  margin: -1.25rem auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.quick-nav a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: #4c3b48;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 24px rgba(210, 233, 247, 0.7);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
  color: var(--pink-dark);
  border-color: var(--gold);
  box-shadow: 0 16px 32px rgba(255, 101, 132, 0.16), 0 0 0 3px rgba(254, 215, 102, 0.22);
  transform: translateY(-3px);
  outline: none;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 5.2rem 0 0;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  max-width: none;
}

.section-heading p:not(.eyebrow) {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.story-grid,
.build-section,
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.2rem;
  align-items: stretch;
}

.story-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.9));
}

.story-card p {
  margin-top: 0.8rem;
  color: var(--muted);
}

.image-card {
  margin: 0;
  overflow: hidden;
  background: var(--white);
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.image-card:hover img,
.content-block:hover img,
.gallery:hover .gallery-slide.is-active img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.035);
}

figcaption {
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.92);
}

.content-layout {
  display: grid;
  gap: 1rem;
}

.content-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.content-block.reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
}

.content-block.reverse .text-block {
  order: 2;
}

.content-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 420ms ease, filter 420ms ease;
}

.content-block.reverse img {
  order: 1;
}

.text-block {
  padding: clamp(0.3rem, 2vw, 1.1rem);
}

.text-block p {
  margin-top: 0.75rem;
  color: var(--muted);
}

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

.guide-card,
.feature-list article,
.analysis-grid article {
  padding: 1.15rem;
}

.guide-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(227, 244, 252, 0.95), rgba(255, 255, 255, 0.95));
}

.guide-card::before,
.feature-list article::before,
.analysis-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid transparent;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--orange)) top / 100% 3px no-repeat;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.guide-card:hover::before,
.feature-list article:hover::before,
.analysis-grid article:hover::before {
  opacity: 1;
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: var(--radius);
  color: var(--pink-dark);
  background: var(--gold);
  font-weight: 900;
}

.guide-card p,
.feature-list p,
.analysis-grid p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.build-section {
  align-items: center;
  padding-top: 5.2rem;
}

.build-copy {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.8));
}

.build-copy p:not(.eyebrow) {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: #554353;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--gold));
}

.gallery {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-track,
.gallery-slide {
  height: 100%;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-slide img {
  width: 100%;
  height: calc(100% - 54px);
  min-height: 366px;
  object-fit: cover;
  transition: transform 420ms ease, filter 420ms ease;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 101, 132, 0.9);
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-btn .ui-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.gallery-btn:hover,
.gallery-btn:focus-visible {
  background: var(--orange);
  outline: none;
}

.gallery-btn.prev {
  left: 0.8rem;
}

.gallery-btn.next {
  right: 0.8rem;
}

.feature-list article {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}

.analysis-section {
  width: 100%;
  max-width: none;
  padding: 5.2rem max(16px, calc((100vw - var(--max)) / 2)) 0;
}

.analysis-section .section-heading,
.analysis-grid {
  width: min(var(--max), 100%);
}

.analysis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-grid article {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.95), rgba(255, 255, 255, 0.92));
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  position: relative;
  padding: 1.05rem 1.05rem 1.05rem 1.3rem;
  background: rgba(255, 255, 255, 0.82);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: -1px;
  width: 5px;
  height: calc(100% - 2.4rem);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--pink), var(--gold));
}

.timeline-item time {
  color: var(--pink-dark);
  font-weight: 900;
}

.timeline-item h3 {
  margin-top: 0.3rem;
}

.timeline-item p {
  margin-top: 0.4rem;
  color: var(--muted);
}

.timeline-item ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.timeline-item li::marker {
  color: var(--pink-dark);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.1rem;
  color: #443442;
  font-weight: 900;
  list-style: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--pink-dark);
  font-size: 1.25rem;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details:hover summary,
.faq-list summary:focus-visible {
  color: var(--pink-dark);
  background: rgba(254, 215, 102, 0.16);
  outline: none;
}

.faq-list p {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.download-band {
  width: min(var(--max), calc(100% - 32px));
  margin: 5.2rem auto 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(227, 244, 252, 0.94), rgba(255, 251, 240, 0.94)),
    var(--white);
  box-shadow: var(--shadow);
}

.download-band p:not(.eyebrow) {
  color: var(--muted);
}

.friend-links {
  margin-top: 5.2rem;
  padding: 3.4rem 1rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 101, 132, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(255, 244, 245, 0.94), rgba(255, 251, 240, 0.94), rgba(255, 244, 245, 0.94));
  border-top: 1px solid rgba(255, 101, 132, 0.14);
  border-bottom: 1px solid rgba(255, 101, 132, 0.14);
}

.friend-links h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
}

.friend-link-list {
  width: min(var(--max), 100%);
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.friend-link-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.58rem 1.35rem;
  border: 1px solid rgba(210, 233, 247, 0.95);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(255, 101, 132, 0.1);
  font-weight: 900;
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.friend-link-list a:hover,
.friend-link-list a:focus-visible {
  color: var(--pink-dark);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(255, 101, 132, 0.18), 0 0 0 3px rgba(254, 215, 102, 0.2);
  transform: translateY(-3px);
  outline: none;
}

.site-footer {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-grid strong {
  color: var(--pink-dark);
}

.footer-grid p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible:hover {
  transform: translateY(-4px);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 1rem 16px 1.2rem;
    background: rgba(255, 244, 245, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
  }

  .hero {
    min-height: auto;
    padding: 3.5rem 0 3rem;
  }

  .hero-inner,
  .story-grid,
  .build-section,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .quick-nav,
  .guide-grid,
  .feature-list,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-block,
  .content-block.reverse {
    grid-template-columns: 1fr;
  }

  .content-block.reverse .text-block,
  .content-block.reverse img {
    order: initial;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    width: min(100% - 24px, var(--max));
    min-height: 66px;
  }

  .brand span {
    max-width: 11rem;
  }

  .site-nav {
    inset: 66px 0 auto 0;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 244, 245, 0.94), rgba(255, 244, 245, 0.9)),
      linear-gradient(0deg, var(--bg), transparent 32%);
  }

  .hero-stats,
  .quick-nav,
  .guide-grid,
  .feature-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .download-band {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section,
  .download-band {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding-top: 4rem;
  }

  .content-block {
    padding: 0.7rem;
  }

  .image-card img,
  .gallery-slide img {
    min-height: 260px;
  }

  .gallery {
    min-height: 330px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
