:root {
  --bg: #f3efe6;
  --bg-strong: #e8dfd0;
  --surface: rgba(255, 252, 245, 0.82);
  --surface-strong: #fffaf1;
  --surface-accent: #e5f0ea;
  --text: #1f1a17;
  --muted: #5f564e;
  --line: rgba(53, 36, 24, 0.12);
  --brand: #bc5a2b;
  --brand-deep: #8f3b1a;
  --accent: #24544a;
  --shadow: 0 24px 80px rgba(50, 35, 20, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 999px;
  --content-width: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(188, 90, 43, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(36, 84, 74, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f2e9 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 70%);
}

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

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

.site-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

main {
  display: grid;
  gap: 0;
}

.site-shell-detail {
  padding-bottom: 4rem;
}

.site-header,
.site-footer,
.hero,
.detail-hero,
.screenshot-section,
.project-card,
.content-card,
.showcase-band,
.policy-section {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 251, 245, 0.62);
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero,
.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.88), rgba(243, 238, 228, 0.82));
  box-shadow: var(--shadow);
}

.hero-copy h1,
.detail-copy h1,
.section-heading h2,
.screenshot-copy h2,
.content-card h2,
.showcase-band h2,
.project-card h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.hero-copy h1,
.detail-copy h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 0.98;
  max-width: 18ch;
}

.section-heading,
.return-row {
  margin-top: 2rem;
}

.section-heading {
  max-width: 46rem;
}

.section-heading h2,
.showcase-band h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.eyebrow,
.panel-label,
.project-kicker {
  margin: 0 0 0.75rem;
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text,
.project-summary,
.content-card p,
.detail-panel p,
.screenshot-section p,
.showcase-band p,
.site-footer,
.signal-list,
.feature-list {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text {
  max-width: 46rem;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
}

.hero-actions,
.project-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.hero-actions,
.panel-actions {
  align-items: center;
}

.button,
.text-link {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.app-store-badge {
  width: 160px;
  height: auto;
}

.button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.button,
.site-nav a,
.text-link {
  -webkit-tap-highlight-color: transparent;
}

.button:hover,
.button:focus-visible,
.app-store-link:hover,
.app-store-link:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff8f1;
  background: linear-gradient(135deg, var(--brand), #d97b3e);
  box-shadow: 0 14px 32px rgba(188, 90, 43, 0.28);
}

.button-app-store {
  gap: 0.55rem;
  color: #fffaf1;
  background: linear-gradient(135deg, #171310, #322922);
  box-shadow: 0 14px 32px rgba(31, 26, 23, 0.24);
}

.button-app-store span {
  overflow: hidden;
  width: 1.05rem;
  height: 1.3rem;
  color: transparent;
  background: #fffaf1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.2-39.2.6-75.3 22.8-95.4 57.8-40.7 70.6-10.4 175.2 29.2 232.7 19.4 28 42.5 59.5 72.8 58.4 29.2-1.2 40.2-18.9 75.5-18.9 35.3 0 45.2 18.9 76.1 18.3 31.4-.6 51.3-28.5 70.5-56.6 22.3-32.5 31.5-64 32-65.6-.7-.3-61.4-23.5-61.1-93.2zM260.8 101.2c16.1-19.5 26.9-46.6 24-73.6-23.2.9-51.3 15.4-68 34.9-14.9 17.3-27.9 45-24.4 71.5 25.8 2 52.3-13.1 68.4-32.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.2-39.2.6-75.3 22.8-95.4 57.8-40.7 70.6-10.4 175.2 29.2 232.7 19.4 28 42.5 59.5 72.8 58.4 29.2-1.2 40.2-18.9 75.5-18.9 35.3 0 45.2 18.9 76.1 18.3 31.4-.6 51.3-28.5 70.5-56.6 22.3-32.5 31.5-64 32-65.6-.7-.3-61.4-23.5-61.1-93.2zM260.8 101.2c16.1-19.5 26.9-46.6 24-73.6-23.2.9-51.3 15.4-68 34.9-14.9 17.3-27.9 45-24.4 71.5 25.8 2 52.3-13.1 68.4-32.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.button-secondary {
  border: 1px solid rgba(36, 84, 74, 0.16);
  background: rgba(255, 255, 255, 0.42);
}

.hero-panel,
.detail-panel,
.content-card,
.project-card,
.showcase-band,
.policy-section {
  position: relative;
  overflow: hidden;
}

.hero-panel,
.detail-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius-lg) - 10px);
  background:
    linear-gradient(135deg, rgba(36, 84, 74, 0.14), rgba(255, 255, 255, 0.22)),
    rgba(255, 250, 241, 0.78);
  align-self: end;
}

.detail-panel-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-panel-heading img {
  width: 5.75rem;
  height: 5.75rem;
  flex: 0 0 auto;
  border: 1px solid rgba(36, 84, 74, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 12px 28px rgba(31, 26, 23, 0.12);
  object-fit: cover;
}

.detail-panel-heading .panel-label {
  margin-bottom: 0;
}

.profile-name {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.signal-list,
.feature-list,
.tag-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.signal-list li,
.feature-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.signal-list li:last-child,
.feature-list li:last-child {
  border-bottom: 0;
}

.project-grid,
.content-grid {
  display: grid;
  gap: 1.5rem;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1.5rem;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.content-grid-single {
  grid-template-columns: 1fr;
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.approach-main {
  display: grid;
  gap: 1.5rem;
}

.screenshot-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow);
}

.screenshot-copy h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.screenshot-preview {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(36, 84, 74, 0.18);
  border-radius: calc(var(--radius-lg) - 14px);
  background: #161310;
  box-shadow: 0 18px 50px rgba(31, 26, 23, 0.18);
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.screenshot-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.screenshot-gallery-reduced {
  justify-items: center;
}

.screenshot-gallery-reduced .screenshot-preview {
  width: min(100%, 22.5rem);
}

.screenshot-gallery-phone {
  align-items: start;
}

.screenshot-section-compact {
  align-items: stretch;
}

.screenshot-section-compact .screenshot-gallery-phone {
  align-self: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.screenshot-section-compact .screenshot-preview {
  width: 100%;
}

.screenshot-gallery-phone .screenshot-preview img {
  aspect-ratio: 9 / 19.5;
}

.screenshot-section-compact .screenshot-gallery-phone .screenshot-preview img {
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
}

.project-card,
.content-card,
.showcase-band {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card .project-actions {
  margin-top: auto;
  padding-top: 1.5rem;
}

.hero-actions,
.project-actions,
.panel-actions,
.return-row {
  position: relative;
  z-index: 2;
}

.project-card::after,
.content-card::after,
.showcase-band::after,
.hero-panel::after,
.detail-panel::after {
  content: "";
  position: absolute;
  inset: auto auto -30px -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188, 90, 43, 0.18), transparent 72%);
  pointer-events: none;
}

.project-card h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.project-summary {
  margin: 1rem 0 1.5rem;
  max-width: 52rem;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.tag-list,
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(36, 84, 74, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(229, 240, 234, 0.55);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-facts {
  margin: 0;
}

.project-facts div {
  flex: 1 1 100%;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.project-facts dt,
.project-facts dd {
  margin: 0;
}

.project-facts dt {
  flex: 0 0 auto;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-facts dd {
  flex: 1 1 auto;
  color: var(--muted);
  line-height: 1.3;
  font-weight: 700;
}

.text-link {
  color: var(--brand-deep);
  font-weight: 800;
}

.showcase-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  background:
    linear-gradient(135deg, rgba(229, 240, 234, 0.7), rgba(255, 250, 241, 0.88)),
    var(--surface-strong);
}

.roadmap-band {
  grid-template-columns: 1fr;
}

.roadmap-band > div:first-child {
  max-width: 48rem;
}

.roadmap-band > div:first-child p:last-child {
  margin-bottom: 0;
}

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

.roadmap-grid article {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.58);
}

.roadmap-grid p,
.roadmap-grid h3,
.roadmap-grid span {
  margin: 0;
}

.roadmap-grid p {
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.roadmap-grid h3 {
  margin-top: 0.4rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.roadmap-grid span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.home-panel-grid .showcase-band {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
  margin-top: 0;
}

.home-panel-grid .showcase-band .panel-actions {
  align-self: end;
}

.return-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 0.5rem;
}

.site-footer {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

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

.compact-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.compact-list li + li {
  margin-top: 0.35rem;
}

.gallery-close,
.gallery-arrow {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5rem 5.5rem 4.5rem;
  background: rgba(20, 16, 13, 0.92);
}

.gallery-viewer.is-open {
  display: flex;
}

.gallery-viewer img {
  width: min(100%, 26rem);
  max-height: calc(100vh - 11rem);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.gallery-close,
.gallery-arrow,
.gallery-caption {
  position: fixed;
  color: #fffaf1;
}

.gallery-close {
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 241, 0.14);
  font-weight: 800;
}

.gallery-arrow {
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.14);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible,
.gallery-close:hover,
.gallery-close:focus-visible {
  background: rgba(255, 250, 241, 0.24);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow-prev {
  left: 1.25rem;
}

.gallery-arrow-next {
  right: 1.25rem;
}

.gallery-caption {
  right: 1.5rem;
  bottom: 1.25rem;
  left: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  font-weight: 800;
}

.gallery-caption p,
.gallery-caption span {
  margin: 0;
}

.policy-section {
  scroll-margin-top: 7rem;
  margin-top: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-section h2,
.policy-section h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.policy-section h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
}

.policy-section h3 {
  margin-top: 1.5rem;
  font-size: 1.08rem;
}

.policy-section p {
  color: var(--muted);
  line-height: 1.7;
}

.policy-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem 1.5rem;
}

.policy-intro > p:last-child {
  grid-column: 1 / -1;
  max-width: 58rem;
  margin-bottom: 0;
}

.policy-date {
  justify-self: end;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(36, 84, 74, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(229, 240, 234, 0.55);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.policy-grid article {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.58);
}

.policy-grid article > p:first-child {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.policy-grid h3 {
  margin-top: 0.4rem;
}

.policy-grid ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}

.policy-grid li + li {
  margin-top: 0.45rem;
}

.policy-grid article > p:not(:first-child) {
  margin-bottom: 0;
}

.policy-contact {
  margin-bottom: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.range-tile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.range-tile-list li {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(229, 240, 234, 0.42);
}

.range-tile-list li:last-child {
  border-bottom: 1px solid var(--line);
}

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

.snapshot-grid div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(229, 240, 234, 0.42);
}

.snapshot-grid dt,
.snapshot-grid dd {
  margin: 0;
}

.snapshot-grid dt {
  color: var(--brand-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot-grid dd {
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 1.5rem;
  background: rgba(20, 16, 13, 0.9);
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  width: min(100%, 1400px);
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 250, 241, 0.24);
  border-radius: var(--radius-sm);
  color: #fffaf1;
  background: rgba(255, 250, 241, 0.14);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .detail-hero,
  .screenshot-section,
  .content-grid,
  .approach-grid,
  .home-panel-grid,
  .showcase-band {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 0.75rem;
  }

  .hero-copy h1,
  .detail-copy h1 {
    max-width: 100%;
  }

  .hero-text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--content-width));
    padding-top: 0.5rem;
  }

  .site-header,
  .site-footer,
  .hero,
  .detail-hero,
  .screenshot-section,
  .project-card,
  .content-card,
  .showcase-band,
  .policy-section {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav,
  .hero-actions,
  .project-actions,
  .panel-actions,
  .project-facts,
  .range-tile-list,
  .snapshot-grid,
  .tag-list {
    width: 100%;
  }

  .range-tile-list,
  .feature-list-columns,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .project-facts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .site-nav {
    gap: 0.35rem 1rem;
  }

  .hero,
  .detail-hero {
    margin-top: 1.25rem;
    gap: 1.25rem;
  }

  .detail-panel-heading img {
    width: 5rem;
    height: 5rem;
  }

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

  .policy-intro,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-date {
    justify-self: start;
  }

  .hero-text,
  .project-summary,
  .content-card p,
  .detail-panel p,
  .screenshot-section p,
  .showcase-band p,
  .signal-list,
  .feature-list {
    line-height: 1.6;
  }

  .button {
    width: 100%;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }

  .screenshot-section-compact .screenshot-gallery-phone {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 480px) {
  body::before {
    background-size: 32px 32px;
  }

  .site-header {
    position: static;
  }

  html {
    scroll-padding-top: 1rem;
  }

  .policy-section {
    scroll-margin-top: 1rem;
  }

  .hero-copy h1,
  .detail-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.02;
  }

  .gallery-viewer {
    padding: 4.75rem 4rem 4.25rem;
  }

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

  .screenshot-section-compact .screenshot-gallery-phone {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-arrow {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 2rem;
  }

  .gallery-arrow-prev {
    left: 0.55rem;
  }

  .gallery-arrow-next {
    right: 0.55rem;
  }

  .gallery-caption {
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
  }

  .section-heading h2,
  .screenshot-copy h2,
  .showcase-band h2,
  .content-card h2,
  .project-card h3 {
    line-height: 1.08;
  }
}
