: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;
}

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 {
  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;
}

.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,
.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-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 {
  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;
}

.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;
  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);
}

.screenshot-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.screenshot-preview span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: var(--radius-sm);
  color: #fffaf1;
  background: rgba(31, 26, 23, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.screenshot-preview:hover img,
.screenshot-preview:focus-visible img {
  transform: scale(1.02);
  opacity: 0.88;
}

.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, 10.5rem));
  gap: 0.85rem;
  justify-content: center;
  justify-items: center;
}

.screenshot-section-compact .screenshot-preview {
  width: min(100%, 10.5rem);
}

.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);
}

.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;
}

.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%;
  }
}

@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 {
    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,
  .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;
  }

  .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;
  }

}

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

  .site-header {
    position: static;
  }

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

  .screenshot-preview span {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    justify-content: center;
  }

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