/* Pixel Workshop homepage */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --paper: #f4f0e8;
  --paper-deep: #e9e2d5;
  --card: #fffdf8;
  --ink: #17211e;
  --ink-soft: #4f5b56;
  --line: #d6d0c5;
  --orange: #f05a36;
  --orange-dark: #c93f20;
  --green: #244f42;
  --green-soft: #d7e5dc;
  --yellow: #f3c96a;
  --white: #fffdf8;
  --font-sans: "IBM Plex Sans", sans-serif;
  --font-serif: "Newsreader", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shell: 1240px;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shadow-sm: 0 1px 1px rgba(23, 33, 30, 0.04), 0 12px 32px rgba(23, 33, 30, 0.06);
  --shadow-md: 0 2px 2px rgba(23, 33, 30, 0.04), 0 24px 64px rgba(23, 33, 30, 0.12);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 240, 232, 0.88);
  border-color: rgba(120, 112, 100, 0.2);
  box-shadow: 0 10px 30px rgba(23, 33, 30, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-2deg);
  transition: transform 220ms var(--ease), background 220ms ease;
}

.brand:hover .brand__mark {
  background: var(--orange);
  transform: rotate(4deg);
}

.brand__mark svg {
  width: 18px;
  height: 18px;
}

.brand__name {
  font-size: 0.98rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease, background 180ms ease;
}

.nav-menu a:hover {
  background: rgba(23, 33, 30, 0.07);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.75);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 220ms ease, top 220ms ease;
}

.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }

/* Shared type and buttons */
.eyebrow {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.eyebrow--light {
  color: rgba(255, 253, 248, 0.65);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 200ms var(--ease), background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 28px rgba(240, 90, 54, 0.22);
}

.button--primary:hover {
  background: var(--orange-dark);
}

.button--text {
  padding-inline: 13px;
  color: var(--ink);
  border-color: transparent;
}

.button--text:hover {
  background: rgba(23, 33, 30, 0.07);
}

.button--ink {
  background: var(--ink);
  color: var(--white);
}

.button--ink:hover {
  background: var(--green);
}

/* Hero */
.hero {
  min-height: 790px;
  padding: 148px 0 88px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 18%, rgba(243, 201, 106, 0.38), transparent 26%),
    radial-gradient(circle at 90% 25%, rgba(205, 228, 214, 0.55), transparent 30%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(23, 33, 30, 0.11) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 75%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 75%);
}

.hero__wash {
  position: absolute;
  width: 420px;
  height: 420px;
  left: -180px;
  bottom: -290px;
  border-radius: 50%;
  border: 80px solid rgba(240, 90, 54, 0.1);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(440px, 0.97fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
}

.hero__copy {
  padding-top: 12px;
}

.hero h1 {
  margin: 0;
  max-width: 770px;
  font-size: clamp(3.45rem, 5.8vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.93;
}

.hero h1 em {
  color: var(--orange);
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero__lede {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 52px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(23, 33, 30, 0.18);
}

.hero__facts div {
  min-width: 0;
}

.hero__facts dt {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero__facts dd {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.hero-stage {
  width: 100%;
  min-height: 570px;
  position: relative;
  border: 1px solid rgba(23, 33, 30, 0.08);
  border-radius: var(--radius-lg);
  background: var(--ink);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: auto -100px -170px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.9;
}

.hero-stage__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 80%);
  mask-image: linear-gradient(to bottom right, #000, transparent 80%);
}

.hero-stage__note {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 2;
  color: rgba(255, 253, 248, 0.76);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.55;
  text-transform: uppercase;
}

.hero-stage__note::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: #83d39f;
}

.icon-tile {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.icon-tile img {
  width: 94px;
  height: 94px;
  border-radius: 23px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  transition: transform 260ms var(--ease), box-shadow 260ms ease;
}

.icon-tile:hover img {
  transform: translateY(-7px) rotate(-2deg);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.36);
}

.icon-tile--retro { top: 112px; left: 62px; transform: rotate(-5deg); }
.icon-tile--snooze { top: 74px; right: 62px; transform: rotate(4deg); }
.icon-tile--calmly { top: 284px; left: 34%; transform: rotate(2deg); }
.icon-tile--stars { bottom: 58px; left: 52px; transform: rotate(-3deg); }

.hero-stage__stamp {
  position: absolute;
  top: 210px;
  right: 38px;
  z-index: 2;
  width: 126px;
  height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-align: center;
  transform: rotate(9deg);
}

.hero-stage__stamp strong {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.hero-stage__caption {
  position: absolute;
  right: 34px;
  bottom: 36px;
  z-index: 2;
  width: 190px;
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Apps */
.apps-section {
  padding: 126px 0 138px;
  background: #ebe5da;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.section-heading h2,
.principles-intro h2,
.studio-card h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  grid-column: span 3;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 22px;
  border: 1px solid rgba(23, 33, 30, 0.12);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 240ms var(--ease), box-shadow 240ms ease, border-color 240ms ease;
}

.app-card:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--app-color) 38%, transparent);
  box-shadow: var(--shadow-md);
  transform: translateY(-7px);
}

.app-card__hit-area {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.app-card__hit-area:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.app-card--featured {
  grid-column: span 6;
  min-height: 420px;
  padding: 28px;
  background: var(--app-tint);
}

.app-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b9a06a;
}

.status--live::before {
  background: #43a76f;
}

.app-card__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 36px;
}

.app-card--featured .app-card__main {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: end;
  gap: 30px;
  margin-top: auto;
  padding-top: 38px;
}

.app-card__icon {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 14px 28px color-mix(in srgb, var(--app-color) 18%, transparent);
}

.app-card--featured .app-card__icon {
  width: 118px;
  height: 118px;
  border-radius: 27px;
}

.app-card__category {
  margin: 0 0 7px;
  color: var(--app-color);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.app-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.app-card--featured h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.app-card__main p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.app-card--featured .app-card__main p:last-child {
  max-width: 450px;
  font-size: 0.96rem;
}

.app-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(23, 33, 30, 0.11);
}

.app-card__actions a {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.app-card__actions a:first-child {
  color: var(--ink);
}

.app-card__actions a:hover {
  color: var(--app-color);
}

/* Principles */
.principles-section {
  padding: 138px 0;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.principles-section::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -330px;
  right: -100px;
  border: 90px solid rgba(240, 90, 54, 0.17);
  border-radius: 50%;
}

.principles-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  gap: clamp(70px, 10vw, 150px);
}

.principles-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.principles-intro h2 {
  max-width: 540px;
}

.principles-intro > p:not(.eyebrow) {
  max-width: 500px;
  margin: 30px 0 0;
  color: rgba(255, 253, 248, 0.6);
  font-size: 1rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 34px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.35);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease;
}

.text-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.principles-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
}

.principles-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
}

.principles-list > li > span {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.principles-list h3 {
  margin: -4px 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.principles-list p {
  max-width: 450px;
  margin: 0;
  color: rgba(255, 253, 248, 0.56);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Studio */
.studio-section {
  padding: 118px 0;
  background: var(--paper);
}

.studio-card {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 70px;
  padding: clamp(42px, 7vw, 88px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 30, 0.11);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 253, 248, 0.35), transparent 24%),
    var(--orange);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.studio-card::before {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
  border: 1px dashed rgba(23, 33, 30, 0.24);
  border-radius: calc(var(--radius-lg) - 12px);
}

.studio-card__copy {
  position: relative;
  z-index: 1;
}

.studio-card__copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(23, 33, 30, 0.73);
  font-size: 1rem;
  line-height: 1.75;
}

.studio-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

.studio-card__seal {
  position: relative;
  z-index: 1;
}

.studio-card__seal svg {
  width: min(100%, 250px);
  overflow: visible;
  animation: sealRotate 30s linear infinite;
}

.studio-card__seal text {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 7.4px;
  font-weight: 600;
  letter-spacing: 1.8px;
}

.studio-card__seal .seal-mark {
  fill: var(--ink);
  transform-origin: center;
  animation: sealRotateReverse 30s linear infinite;
}

@keyframes sealRotate { to { transform: rotate(360deg); } }
@keyframes sealRotateReverse { to { transform: rotate(-360deg); } }

/* Footer */
.site-footer {
  padding: 64px 0 50px;
  background: #e9e2d5;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: start;
  gap: 80px;
}

.brand--footer .brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-grid > div:first-child > p {
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 100px);
  gap: 48px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h2 {
  margin: 0 0 5px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.8rem;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--orange-dark);
}

.footer-copy {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  text-align: right;
  text-transform: uppercase;
}

/* Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.js .reveal--delay {
  transition-delay: 120ms;
}

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

.js .app-card.reveal:nth-child(4n + 2) { transition-delay: 70ms; }
.js .app-card.reveal:nth-child(4n + 3) { transition-delay: 140ms; }
.js .app-card.reveal:nth-child(4n + 4) { transition-delay: 210ms; }

/* Responsive */
@media (max-width: 1120px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.8fr);
    gap: 48px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 7vw, 5.35rem);
  }

  .hero-stage {
    min-height: 520px;
  }

  .icon-tile img {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .icon-tile--retro { left: 42px; }
  .icon-tile--snooze { right: 42px; }
  .icon-tile--calmly { left: 30%; }

  .app-card {
    grid-column: span 4;
  }

  .app-card--featured {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 36px, var(--shell));
  }

  .hero {
    padding-top: 132px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero__copy {
    max-width: 730px;
  }

  .hero-stage {
    width: min(100%, 650px);
    justify-self: center;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > p {
    max-width: 600px;
  }

  .app-card,
  .app-card--featured {
    grid-column: span 6;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .principles-intro {
    position: static;
  }

  .studio-card {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .js .nav-toggle {
    position: relative;
    display: block;
    z-index: 2;
  }

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

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

  html:not(.js) .nav {
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 12px;
  }

  html:not(.js) .nav-menu {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .js .nav-menu {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 96px 24px 40px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .js .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .js .nav-menu a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-size: clamp(1.7rem, 7vw, 2.5rem);
    letter-spacing: -0.04em;
  }

  .js .nav-menu a:hover {
    background: transparent;
    color: var(--orange-dark);
  }

  .hero {
    min-height: auto;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12.8vw, 4.2rem);
  }

  .hero-stage {
    min-height: 500px;
  }

  .apps-section,
  .principles-section {
    padding-block: 96px;
  }

  .app-card,
  .app-card--featured {
    grid-column: 1 / -1;
  }

  .app-card {
    min-height: 330px;
  }

  .app-card--featured {
    min-height: 390px;
  }

  .studio-card {
    grid-template-columns: 1fr;
  }

  .studio-card__seal {
    display: none;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .nav {
    min-height: 68px;
  }

  .brand__name {
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 112px;
  }

  .hero__lede {
    margin-top: 24px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero__facts div {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 12px;
  }

  .hero__facts dd {
    margin: 0;
  }

  .hero-stage {
    min-height: 440px;
    border-radius: 26px;
  }

  .hero-stage__note {
    top: 26px;
    left: 26px;
  }

  .icon-tile img {
    width: 70px;
    height: 70px;
    border-radius: 17px;
  }

  .icon-tile span {
    display: none;
  }

  .icon-tile--retro { top: 100px; left: 28px; }
  .icon-tile--snooze { top: 72px; right: 28px; }
  .icon-tile--calmly { top: 248px; left: 32%; }
  .icon-tile--stars { bottom: 46px; left: 28px; }

  .hero-stage__stamp {
    top: 175px;
    right: 20px;
    width: 104px;
    height: 104px;
  }

  .hero-stage__caption {
    right: 24px;
    bottom: 28px;
    width: 155px;
    font-size: 0.7rem;
  }

  .section-heading h2,
  .principles-intro h2,
  .studio-card h2 {
    font-size: clamp(2.45rem, 11vw, 3.4rem);
  }

  .app-card,
  .app-card--featured {
    min-height: auto;
    padding: 22px;
  }

  .app-card--featured .app-card__main {
    display: flex;
    align-items: flex-start;
    margin-top: 30px;
    padding-top: 0;
  }

  .app-card--featured .app-card__icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .app-card__actions {
    margin-top: 30px;
  }

  .principles-list li {
    grid-template-columns: 34px 1fr;
  }

  .studio-section {
    padding-block: 72px;
  }

  .studio-card {
    padding: 48px 30px;
    border-radius: 26px;
  }

  .studio-card__actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-links {
    gap: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
