.wistdroid .brand > span {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}
.wistdroid nav a { gap: .4rem; }
.wistdroid .hero { padding-block: clamp(2.8rem, 5.5vw, 4.5rem); }
.wistdroid .app-hero h1 { font-size: clamp(2.7rem, 6.5vw, 5rem); }

.app-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 17rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: radial-gradient(ellipse, #1c4032, var(--panel) 72%);
}
.app-art::before {
  position: absolute;
  z-index: -1;
  width: 12rem;
  aspect-ratio: 1;
  content: "";
  border: 1px solid #5de4b055;
  border-radius: 50%;
  box-shadow: 0 0 0 1.8rem #5de4b015, 0 0 0 3.6rem #5de4b00a;
}
.app-art img {
  width: 7.5rem;
  border-radius: 21%;
  box-shadow: 0 1rem 2.5rem #03090988;
}

.app-showcase { padding-block: 1rem clamp(4rem, 7vw, 6rem); }
.showcase-intro { margin-bottom: 1.7rem; }
.showcase-intro .eyebrow { margin-bottom: .65rem; }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.project-copy {
  align-self: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.project-meta {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.project-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-block: 1.6rem;
}
.project-title img { width: 48px; border-radius: 10px; }
.project-tagline {
  margin-block: 1rem;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.project-description { max-width: 43ch; color: var(--muted); }
.project .button { margin-top: 1.5rem; }
.project-note { margin-top: 1.25rem; color: var(--muted); font-size: .75rem; }
.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #17312b;
  padding: 3.8rem 2rem;
}
.project-visual::before {
  position: absolute;
  z-index: -1;
  width: 90%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid #416b59;
  border-radius: 50%;
  box-shadow: 0 0 0 3rem #5de4b00a, 0 0 0 6rem #5de4b005;
}
.project-visual > img {
  width: min(76%, 16rem);
  border-radius: 12px;
  box-shadow: 1rem 1.6rem 2rem #03090966;
  transform: rotate(5deg);
}
.motion-control { display: none; position: absolute; top: .35rem; right: 1.2rem; z-index: 1; align-items: center; gap: .45rem; min-height: 44px; color: var(--muted); font-size: .65rem; cursor: pointer; }
.motion-control input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.motion-control input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.app-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.app-feature {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.feature-copy { padding: 1.1rem; }
.feature-copy p { margin-top: .5rem; color: var(--muted); font-size: .94rem; }
.app-feature img { width: 100%; background: var(--paper); }
.app-note { margin-top: 1.4rem; color: var(--muted); font-size: .85rem; }
.app-footer { border-top: 1px solid var(--line); background: var(--panel); }

@media (max-width: 900px) {
  .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-art { min-height: 12rem; }
  .app-art img { width: 6rem; }
  .app-art::before { width: 9rem; }
  .project { grid-template-columns: 1fr; }
  .project-visual > img { width: min(76%, 13rem); }
}
@media (max-width: 520px) {
  .app-features { grid-template-columns: 1fr; }
}
@keyframes preview-float {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports selector(body:has(input:checked)) {
    .motion-control { display: inline-flex; }
    .project-visual > img { animation: preview-float 9s ease-in-out infinite; }
    body:has(#pause-motion:checked) *, body:has(#pause-motion:checked) *::before { animation: none !important; transition: none !important; }
    body:has(#pause-motion:checked) .button:hover { transform: none; }
    body:has(#pause-motion:checked) :is(.button, .text-link) span { transform: none; }
    :root:has(#pause-motion:checked) { scroll-behavior: auto; }
  }
}
