.apps-page .site-header { background: var(--cream); }
.apps-page .header-inner { border-bottom: 0; }
.apps-page .header-inner [aria-current] {
  text-decoration: underline;
  text-decoration-color: #b74a32;
  text-decoration-thickness: .18em;
  text-underline-offset: .5em;
}
.apps-page .site-footer { border-top: 1px solid #17291c38; }

.product-index {
  display: grid;
  grid-template-columns: clamp(12rem, 24vw, 24rem) minmax(0, 1fr);
  background: #ffd65b url("../home/desk.jpg") left center / auto 100% no-repeat;
}
.app-index {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 3;
  container-type: inline-size;
  padding: clamp(2rem, 5vw, 5.25rem) clamp(1.25rem, 3.6vw, 3.7rem);
}
.app-index h1, .product-title h2 {
  font-family: var(--headline);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.074em;
}
.app-index h1 {
  font-size: clamp(1.3rem, 16.8cqi, 4.35rem);
  overflow-wrap: anywhere;
}
.app-index nav {
  display: grid;
  position: relative;
  gap: .2rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.app-index nav::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: #134b3650;
  content: "";
}
.app-index nav a {
  position: relative;
  width: fit-content;
  padding: .6rem .3rem .6rem 1.15rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}
.app-index nav a[aria-current]::before {
  position: absolute;
  inset: .6rem auto .6rem -.12rem;
  width: .4rem;
  border-radius: .4rem;
  background: var(--green);
  content: "";
}

.product-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: min(48rem, 95svh);
  padding: clamp(2rem, 5.25vw, 5.25rem);
  overflow: clip;
  scroll-margin-top: 1px;
}
.scene-content { position: relative; z-index: 1; }
.product-title { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.15rem); }
.product-title img {
  width: clamp(2.15rem, 5vw, 3.5rem);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 2px 8px #1a1a192a;
}
.product-title h2 { font-size: clamp(3rem, 7.2vw, 7.8rem); }
.scene-tagline {
  margin-top: .85rem;
  font-size: clamp(1.2rem, 2.6vw, 2.35rem);
  font-weight: 750;
  letter-spacing: -.037em;
  line-height: 1.12;
  max-width: 22ch;
}
.scene-meta { font-size: clamp(1rem, 1.45vw, 1.2rem); margin-top: .58rem; }
.scene-links { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.3rem; }
.scene-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: .65rem 1.12rem;
  border-radius: 2rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.25;
}
.scene-button:hover { background: #0e634b; }
.scene-button:focus-visible { outline-color: var(--green); }
.scene-button.secondary { background: transparent; color: var(--green); }
.scene-button.secondary:hover { background: #07493416; }

.noteduo-scene {
  color: var(--ink);
  background: radial-gradient(ellipse at 76% 74%, #ffd692, transparent 66%), linear-gradient(141deg, #fff4df 8%, #f6e2bf);
}
.noteduo-art {
  position: relative;
  margin-top: clamp(1rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.35rem, 2vw, 1.4rem);
  min-width: 0;
}
.noteduo-papers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .45rem;
}
.sample-note {
  min-width: 0;
  min-height: clamp(7rem, 17vw, 16rem);
  padding: clamp(.65rem, 2.4vw, 2.25rem);
  background: linear-gradient(140deg, #fff5, transparent), #ffb49e;
  box-shadow: 2px 10px 17px #65341541;
  transform: translateY(var(--sample-y, 0px)) rotate(calc(-4deg + var(--paper-turn, 0deg)));
  font-size: clamp(.9rem, 2.3vw, 1.85rem);
}
.sample-updated {
  background-color: #dceaaa;
  transform: translateY(var(--updated-y, 0px)) rotate(calc(4deg - var(--paper-turn, 0deg)));
}
.sample-label {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: clamp(.68rem, 1.1vw, .93rem);
  margin-bottom: .45rem;
}
.sample-note mark { background: #f07761; }
.sample-updated mark { background: #b4d575; }

.product-shot {
  position: relative;
  margin: 0;
  width: clamp(7rem, 14vw, 12.75rem);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 4px solid #25322b;
  border-radius: clamp(.65rem, 1.65vw, 1.5rem);
  box-shadow: .45rem .8rem 1.35rem #19150e4d;
  background: #23342a;
}
.product-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.note-shot { transform: translateY(var(--shot-y, 0px)) rotate(5deg); }

.tiltickle-scene {
  isolation: isolate;
  color: #fff4dd;
  background: #07342a;
  align-content: start;
}
.tiltickle-scene .scene-content { width: fit-content; }
.bus-layer {
  position: absolute;
  inset: -7% 0;
  z-index: -2;
  background: linear-gradient(145deg, #072c24 12%, #073429d9 30%, #062b2244 62%, #062b2220), url("../home/bus.jpg") center / cover;
  transform: translateY(var(--bus-shift, 0px));
}
.tiltickle-art {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: end;
  min-height: clamp(12rem, 23vw, 20rem);
  margin-top: 1.1rem;
}
.catalog-cup {
  position: absolute;
  z-index: -1;
  width: min(61%, 33rem);
  height: auto;
  max-width: none;
  left: 5%;
  bottom: max(-11vw, -8rem);
  filter: drop-shadow(.5rem .8rem .85rem #021c1799);
  transform: translateY(var(--cup-y, 0px)) rotate(var(--cup-turn, 0deg));
}
.game-shot {
  border-color: #edcdb5;
  transform: translateY(var(--shot-y, 0px)) rotate(5deg);
}
.tiltickle-scene .scene-button { background: #ffbd9e; color: var(--ink); border-color: #ffbd9e; }
.tiltickle-scene .scene-button:hover { background: #ffd2ba; }
.tiltickle-scene .scene-button:focus-visible { outline-color: #fff4dd; }

@media (max-width: 48rem) {
  .product-index { display: block; }
  .app-index {
    background: #ffd65b url("../home/desk.jpg") center / cover;
    box-shadow: 0 2px 4px #2e271721;
    padding: .8rem 1.25rem .35rem;
  }
  .app-index h1 { max-width: none; font-size: 1.5rem; letter-spacing: -.053em; }
  .app-index nav { display: flex; gap: 1.25rem; margin-top: .15rem; }
  .app-index nav::before { display: none; }
  .app-index nav a { padding: .46rem .1rem; }
  .app-index nav a[aria-current]::before { inset: auto .1rem .12rem; width: auto; height: 2px; }
  .product-scene { min-height: 0; padding: 2.3rem 1.25rem; scroll-margin-top: 6.5rem; }
  .noteduo-art { padding: .45rem .1rem; }
  .product-shot { width: clamp(5.2rem, 23vw, 9rem); border-width: 3px; }
  .sample-note { min-height: 6.3rem; }
  .tiltickle-art { margin-top: 1.65rem; }
  .catalog-cup { bottom: -2.5rem; width: min(62%, 21rem); }
}

@media (max-width: 25rem) {
  .noteduo-papers { grid-template-columns: 1fr; }
  .sample-note { min-height: 0; }
  .product-title h2 { font-size: clamp(2.5rem, 11vw, 3rem); }
}

@media (prefers-reduced-motion: no-preference) {
  .product-scene { scroll-margin-top: max(1px, var(--index-inset, 0px)); }
  html:has(.apps-page) { scroll-behavior: smooth; }
}
