/* POMF — shared design system */

:root {
  --bg: #f5f3ee;
  --bg-2: #ece9e1;
  --surface: #ffffff;
  --ink: #141312;
  --ink-2: #3b3936;
  --muted: #75716a;
  --line: rgba(20, 19, 18, 0.1);
  --line-strong: rgba(20, 19, 18, 0.18);
  --glass: rgba(245, 243, 238, 0.72);
  --flow-1: #7b61ff;
  --flow-2: #ff6b8b;
  --flow-3: #ffb547;
  --flow: linear-gradient(110deg, var(--flow-1), var(--flow-2) 55%, var(--flow-3));
  --shadow: 0 1px 2px rgba(20, 19, 18, 0.05), 0 12px 40px -12px rgba(20, 19, 18, 0.18);
  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0e;
    --bg-2: #141417;
    --surface: #17171b;
    --ink: #f3f1ec;
    --ink-2: #d4d1ca;
    --muted: #8f8b84;
    --line: rgba(243, 241, 236, 0.09);
    --line-strong: rgba(243, 241, 236, 0.18);
    --glass: rgba(12, 12, 14, 0.66);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 50px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0e;
  --bg-2: #141417;
  --surface: #17171b;
  --ink: #f3f1ec;
  --ink-2: #d4d1ca;
  --muted: #8f8b84;
  --line: rgba(243, 241, 236, 0.09);
  --line-strong: rgba(243, 241, 236, 0.18);
  --glass: rgba(12, 12, 14, 0.66);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 50px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--flow-1) 30%, transparent); }
:focus-visible { outline: 2px solid var(--flow-1); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.flow-text {
  background: var(--flow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flow-shift 8s ease-in-out infinite alternate;
}
@keyframes flow-shift { to { background-position: 100% 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* ---------- Header ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px var(--gutter);
  transition: padding 0.4s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 10px 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled .nav__inner {
  background: var(--glass);
  border-color: var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.wordmark__spark {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.8em;
  background: var(--flow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: spark 6s var(--ease) infinite;
}
@keyframes spark {
  0%, 70%, 100% { transform: rotate(0) scale(1); }
  80% { transform: rotate(90deg) scale(1.25); }
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}
.nav__link:hover { background: var(--line); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--line); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--line); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 24px 8px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
}
.play-badge:hover { transform: translateY(-2px); }
.play-badge svg { width: 26px; height: 26px; }
.play-badge small { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; line-height: 1.2; }
.play-badge strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- Ambient background ---------- */
.ambient {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
  z-index: -1;
}
.ambient span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient span:nth-child(1) { background: var(--flow-1); top: -18vmax; left: -10vmax; }
.ambient span:nth-child(2) { background: var(--flow-2); top: -8vmax; right: -16vmax; animation-duration: 32s; animation-delay: -8s; }
.ambient span:nth-child(3) { background: var(--flow-3); top: 22vmax; left: 28vw; width: 34vmax; height: 34vmax; opacity: 0.16; animation-duration: 38s; animation-delay: -14s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 8vmax, 0) scale(0.94); }
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.split-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.split-line > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fade-up 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- Home ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(140px, 22vh, 220px);
  padding-bottom: clamp(56px, 9vh, 96px);
}
.hero__title {
  margin: 0;
  font-size: clamp(46px, 9.4vw, 132px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero__title .serif { font-size: 1.06em; letter-spacing: -0.02em; }
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(32px, 6vh, 64px);
}
.hero__lead { max-width: 440px; margin: 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  background: var(--line-strong);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 1px;
  height: 50%;
  background: var(--ink);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding-bottom: clamp(80px, 12vh, 140px);
}
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(520px, 72vh, 700px);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.product:hover { transform: translateY(-6px); }
.product__text { position: relative; z-index: 2; padding: clamp(24px, 3vw, 40px); }
.product__index { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.product h2 {
  margin: 12px 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.product p { max-width: 380px; margin: 0; color: var(--muted); }
.product__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 15px;
}
.product__cta .dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  transition: transform 0.5s var(--ease);
}
.product:hover .product__cta .dot { transform: rotate(-45deg); }
.product__cta svg { width: 16px; height: 16px; }
.product__visual { position: relative; flex: 1; min-height: 300px; }

.product--app { background: #111014; color: #f3f1ec; }
.product--app p, .product--app .product__index { color: #a7a39b; }
.product--app .product__cta .dot { background: #f3f1ec; color: #111014; }
.product--app .product__visual { display: grid; place-items: end center; overflow: hidden; }
.product--app .glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  width: 120%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--flow-1) 55%, transparent), transparent);
  opacity: 0.6;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.95; transform: translateX(-50%) scale(1.08); } }

/* Phone mockup with a cycling wallpaper slideshow */
.phone {
  position: relative;
  width: min(300px, 64%);
  aspect-ratio: 9 / 19.2;
  margin-bottom: -18%;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2c2b31, #0b0b0d);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.9s var(--ease);
}
.product:hover .phone { transform: translateY(-4%) rotate(-2deg); }
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #1a1a1e;
}
.phone__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.4s var(--ease), transform 6s linear;
}
.phone__screen img.on { opacity: 1; transform: scale(1); }
.phone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 30%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone__clock {
  position: absolute;
  inset: 13% 0 auto;
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.phone__clock b { display: block; font-size: clamp(40px, 5vw, 62px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.phone__clock span { font-size: 12px; font-weight: 500; opacity: 0.9; }

/* Gallery card: drifting thumbnail columns */
.product--gallery .product__visual { overflow: hidden; }
.marquee {
  position: absolute;
  inset: 0 -6% 0 -6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 12px;
  transform: rotate(-6deg) scale(1.08);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.marquee__col { display: flex; flex-direction: column; gap: 12px; animation: marquee-up 46s linear infinite; }
.marquee__col:nth-child(2) { animation-name: marquee-down; animation-duration: 54s; }
.marquee__col:nth-child(3) { animation-duration: 40s; }
.product--gallery:hover .marquee__col { animation-play-state: paused; }
@keyframes marquee-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes marquee-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.marquee img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg-2);
}

.manifesto {
  padding-top: clamp(40px, 10vh, 120px);
  padding-bottom: clamp(80px, 14vh, 160px);
  text-align: center;
}
.manifesto p {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.manifesto p .muted { color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer small { color: var(--muted); font-size: 13px; }

/* ---------- Wallpaper Flow page ---------- */
.app-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 60px;
}
.app-hero h1 {
  margin: 0;
  font-size: clamp(52px, 8.2vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 700;
}
.app-hero__tag { margin: 22px 0 0; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.02em; }
.app-hero__lead { max-width: 470px; margin: 18px 0 34px; color: var(--muted); font-size: 17px; }
.app-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.app-hero__stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.app-hero__stage .phone { width: min(320px, 76%); margin: 0; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(560px, 110%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin 80s linear infinite;
}
.orbit--2 { width: min(420px, 84%); animation-direction: reverse; animation-duration: 60s; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.chip-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.chip-float i { width: 8px; height: 8px; border-radius: 50%; background: var(--flow); }
.chip-float:nth-of-type(1) { top: 16%; left: 0; }
.chip-float:nth-of-type(2) { top: 44%; right: -2%; animation-delay: -2s; }
.chip-float:nth-of-type(3) { bottom: 14%; left: 6%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.section { padding-top: clamp(80px, 12vh, 140px); padding-bottom: clamp(80px, 12vh, 140px); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 6vh, 64px); }
.section__head h2 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.section__head p { margin: 18px 0 0; max-width: 560px; font-size: 18px; color: var(--muted); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.tile-card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease);
}
.tile-card:hover { transform: translateY(-4px); }
.tile-card--wide { grid-column: span 3; }
.tile-card--hero { grid-column: span 4; }
.tile-card h3 { margin: auto 0 0; font-size: 24px; letter-spacing: -0.025em; line-height: 1.15; }
.tile-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tile-card .ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.tile-card .ico svg { width: 24px; height: 24px; }
.tile-card .kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tile-card--dark { background: #111014; color: #f3f1ec; }
.tile-card--dark p, .tile-card--dark .kicker { color: #a7a39b; }
.tile-card--dark .ico { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.tile-card__art {
  position: absolute;
  top: -10%;
  right: -6%;
  z-index: -1;
  display: flex;
  gap: 10px;
  transform: rotate(8deg);
  opacity: 0.95;
}
.tile-card__art img {
  width: 92px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
  animation: bob 7s ease-in-out infinite;
}
.tile-card__art img:nth-child(2) { margin-top: 40px; animation-delay: -2.4s; }
.tile-card__art img:nth-child(3) { margin-top: 12px; animation-delay: -4.8s; }
.tile-card--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #111014 30%, transparent 85%);
}

.fold-art {
  position: absolute;
  top: 26px;
  right: 26px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.fold-art div { border-radius: 10px; border: 2px solid var(--line-strong); background: var(--bg); overflow: hidden; }
.fold-art .cover { width: 38px; aspect-ratio: 9 / 20; }
.fold-art .inner { width: 92px; aspect-ratio: 4 / 3.4; }
.fold-art img { width: 100%; height: 100%; object-fit: cover; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: step;
}
.step { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step b {
  display: block;
  margin-bottom: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--muted);
}
.step h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan {
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plan--pro { position: relative; overflow: hidden; isolation: isolate; background: #111014; color: #f3f1ec; }
.plan--pro::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% auto;
  z-index: -1;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--flow);
  filter: blur(70px);
  opacity: 0.35;
  animation: breathe 8s ease-in-out infinite;
}
.plan h3 { margin: 0 0 6px; font-size: 28px; letter-spacing: -0.03em; }
.plan > p { margin: 0 0 22px; color: var(--muted); }
.plan--pro > p { color: #a7a39b; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: clamp(60px, 10vh, 120px);
  padding: clamp(48px, 9vw, 110px) var(--gutter);
  border-radius: calc(var(--radius) + 8px);
  background: #111014;
  color: #f3f1ec;
  text-align: center;
}
.cta-band h2 { margin: 0 auto 28px; max-width: 760px; font-size: clamp(36px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.045em; }
.cta-band .play-badge { background: #f3f1ec; color: #111014; }
.cta-band .ambient { left: 0; right: 0; -webkit-mask-image: none; mask-image: none; }
.cta-band .ambient span { opacity: 0.35; }

/* ---------- Gallery page ---------- */
.g-head { position: relative; isolation: isolate; padding-top: 118px; padding-bottom: 8px; }
.g-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.g-head h1 { margin: 0; font-size: clamp(44px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.05em; font-weight: 700; }
.g-head__meta { margin: 10px 0 0; color: var(--muted); font-size: 15px; min-height: 1.55em; }

.g-bar {
  position: sticky;
  top: 70px;
  z-index: 40;
  padding: 10px 0 12px;
  background: linear-gradient(var(--bg) 82%, transparent);
}
.g-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 72px;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.g-bar.is-stuck::before { opacity: 1; }
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.search:focus-within { border-color: color-mix(in srgb, var(--flow-1) 55%, transparent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--flow-1) 14%, transparent), var(--shadow); }
.search > svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font: 600 12px/1 var(--sans);
}
.search__clear {
  display: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.search__clear svg { width: 14px; height: 14px; }
.search.has-value .search__clear { display: grid; }
.search.has-value kbd { display: none; }

.seg {
  display: inline-flex;
  flex: none;
  padding: 4px;
  border-radius: 999px;
  background: var(--line);
}
.seg button {
  position: relative;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s, background 0.35s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.g-controls { display: flex; gap: 12px; align-items: center; }
.g-controls .search { flex: 1; }

.chips {
  display: flex;
  gap: 8px;
  margin: 14px calc(var(--gutter) * -1) 0;
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] small { color: inherit; opacity: 0.6; }

.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.suggest button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
}
.suggest button:hover { border-color: var(--ink); color: var(--ink); }

.masonry { display: flex; gap: var(--mgap, 14px); align-items: flex-start; padding: 12px 0 40px; }
.masonry__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--mgap, 14px); }
.wp {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: zoom-in;
  isolation: isolate;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: tile-in 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes tile-in { to { opacity: 1; transform: none; } }
.wp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.04);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 1.2s var(--ease);
}
.wp img.ok { opacity: 1; filter: none; transform: none; }
.wp:hover img.ok { transform: scale(1.05); }
.wp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.wp__cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.wp__cap span { display: block; font-size: 11.5px; font-weight: 500; opacity: 0.75; }
.wp:hover::after,
.wp:focus-visible::after,
.wp:hover .wp__cap,
.wp:focus-visible .wp__cap { opacity: 1; transform: none; }

.g-empty { padding: 80px 0 120px; text-align: center; }
.g-empty h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.03em; }
.g-empty p { margin: 0 auto 22px; max-width: 420px; color: var(--muted); }
.sentinel { height: 1px; }
.loader { display: flex; justify-content: center; gap: 6px; padding: 36px 0 60px; }
.loader i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.2s ease-in-out infinite; }
.loader i:nth-child(2) { animation-delay: 0.15s; }
.loader i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: none; } }
.skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 12px 0 60px; }
.skeleton div { aspect-ratio: 9 / 16; border-radius: 18px; background: linear-gradient(100deg, var(--bg-2) 40%, var(--line) 50%, var(--bg-2) 60%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
}
.lb.open { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 72px 72px 40px; }
.lb__frame {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.6s var(--ease);
}
.lb.open .lb__frame { transform: none; }
.lb__frame img { width: 100%; height: 100%; object-fit: cover; }
.lb__frame .lb__hi { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.lb__frame .lb__hi.ok { opacity: 1; }
.lb__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 80px 32px 32px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
}
.lb__side h2 { margin: 0; font-size: 30px; line-height: 1.08; letter-spacing: -0.03em; }
.lb__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.lb__meta span { padding: 6px 12px; border-radius: 999px; background: var(--line); font-size: 13px; font-weight: 500; }
.lb__note { margin: 0; font-size: 14px; color: var(--muted); }
.lb__similar h3 { margin: 6px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lb__similar div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lb__similar button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-2); transition: transform 0.35s var(--ease); }
.lb__similar button:hover { transform: translateY(-3px); }
.lb__similar img { width: 100%; height: 100%; object-fit: cover; }
.lb__close,
.lb__nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.lb__close:hover,
.lb__nav:hover { transform: scale(1.08); }
.lb__close svg,
.lb__nav svg { width: 18px; height: 18px; }
.lb__close { top: 18px; right: 18px; }
.lb__nav--prev { left: 14px; top: 50%; }
.lb__nav--next { right: 14px; top: 50%; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; isolation: isolate; }
.nf h1 { margin: 0; font-size: clamp(90px, 20vw, 220px); line-height: 0.9; letter-spacing: -0.06em; }
.nf p { margin: 12px 0 28px; color: var(--muted); font-size: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .products { grid-template-columns: 1fr; }
  .product { min-height: 600px; }
  .app-hero { grid-template-columns: 1fr; padding-top: 130px; gap: 24px; min-height: 0; }
  .app-hero__stage { min-height: 520px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-card,
  .tile-card--wide { grid-column: span 1; }
  .tile-card--hero { grid-column: span 2; }
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lb__stage { padding: 64px 16px 12px; }
  .lb__side { padding: 16px 20px 24px; border-left: 0; border-top: 1px solid var(--line); max-height: 42svh; }
  .lb__side h2 { font-size: 24px; }
  .lb__nav { display: none; }
}
@media (max-width: 680px) {
  .nav__inner { padding-left: 16px; }
  .nav__link--hide-sm { display: none; }
  .nav__link { padding: 8px 11px; }
  .bento { grid-template-columns: 1fr; }
  .tile-card,
  .tile-card--wide,
  .tile-card--hero { grid-column: span 1; }
  .tile-card--hero .tile-card__art { opacity: 0.35; }
  .steps { grid-template-columns: 1fr; }
  .step,
  .step + .step { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step b { margin-bottom: 14px; }
  .plans { grid-template-columns: 1fr; }
  .g-controls { flex-direction: column; align-items: stretch; }
  .g-controls .seg { align-self: flex-start; }
  .search { height: 54px; }
  .search kbd { display: none; }
  .chip-float { font-size: 12px; padding: 8px 12px; }
  .chip-float:nth-of-type(2) { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .fade-up,
  .wp { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lb__nav:disabled { opacity: 0.3; cursor: default; transform: none; }
@media (max-width: 420px) {
  .nav { padding-left: 12px; padding-right: 12px; }
  .nav__inner { padding: 8px 8px 8px 14px; gap: 8px; }
  .nav__link { padding: 8px 9px; font-size: 13px; }
  .wordmark { font-size: 17px; }
}

/* ---------- Gallery pages: intro, static fallback, lightbox actions ---------- */
.g-head__intro { max-width: 620px; margin: 14px 0 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); }
.masonry:has(> .wp-static) { flex-wrap: wrap; }
.wp-static { display: block; width: calc(25% - 11px); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.wp-static img { width: 100%; height: auto; }
.lb__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lb__meta a span { display: inline-block; transition: background 0.25s; }
.lb__meta a:hover span { background: var(--line-strong); }

/* ---------- Wallpaper page ---------- */
.wpage { position: relative; isolation: isolate; padding-top: 110px; padding-bottom: clamp(60px, 10vh, 120px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.wpage__figure {
  position: relative;
  justify-self: center;
  width: 100%;
  margin: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.45);
}
.wpage__figure--p { aspect-ratio: 9 / 16; width: min(420px, 100%, calc(78svh * 9 / 16)); }
.wpage__figure--f { aspect-ratio: 4 / 3; }
.wpage__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpage__lo { filter: blur(12px); transform: scale(1.06); }
.wpage__hi { opacity: 0; transition: opacity 0.8s var(--ease); }
.wpage__hi.ok { opacity: 1; }
.wpage__info { display: flex; flex-direction: column; gap: 16px; }
.wpage__info h1 { margin: 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.wpage__info .eyebrow { margin: 0; }
.wpage__lead { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.wpage__tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.wpage__tags a:hover { color: var(--ink); }
.wpage__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 8px; }
.wpage__cta .lb__note { max-width: 44ch; }
.wpage__more { margin-top: clamp(64px, 10vh, 110px); }
.wpage__more h2 { margin: 0 0 22px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; }
.wpage__more .btn { margin-top: 22px; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; align-items: start; }
.mini { display: block; border-radius: 14px; overflow: hidden; background: var(--bg-2); transition: transform 0.4s var(--ease); }
.mini:hover { transform: translateY(-4px); }
.mini img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .wpage__grid { grid-template-columns: 1fr; }
  .wpage__figure--p { width: min(320px, 82%); }
  .wp-static { width: calc(50% - 7px); }
}

/* ---------- Legal pages ---------- */
.legal { position: relative; isolation: isolate; padding-top: 130px; padding-bottom: clamp(60px, 10vh, 120px); }
.legal__head h1 { margin: 0; font-size: clamp(46px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.05em; }
.legal__meta { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.legal__layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 7vh, 72px); }
.legal__toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.legal__toc a { padding: 6px 12px; border-radius: 10px; color: var(--muted); transition: background 0.2s, color 0.2s; }
.legal__toc a:hover { background: var(--line); color: var(--ink); }
.legal__body { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal__body section { padding-bottom: 12px; scroll-margin-top: 100px; }
.legal__body h2 { margin: 40px 0 12px; color: var(--ink); font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; }
.legal__body p { margin: 0 0 14px; }
.legal__body ul { margin: 0 0 14px; padding-left: 20px; }
.legal__body li { margin-bottom: 8px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.legal__body a:hover { text-decoration-color: var(--ink); }
.legal__summary { padding: 26px 28px 14px !important; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.legal__summary h2 { margin-top: 0; }
.legal__summary ul { list-style: none; padding: 0; }
.legal__summary li { position: relative; padding-left: 22px; }
.legal__summary li::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 12px; background: var(--flow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal__providers { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.legal__providers li { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal__providers a { flex: none; font-size: 14px; }
@media (max-width: 860px) {
  .legal__layout { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}
.legal__body h3 { margin: 22px 0 8px; color: var(--ink); font-size: 18px; letter-spacing: -0.015em; }

/* ---------- Download page ---------- */
.dl { position: relative; isolation: isolate; padding-top: 110px; padding-bottom: clamp(60px, 10vh, 120px); }
.dl__box {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.dl__ring { position: relative; flex: none; width: 64px; height: 64px; }
.dl__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dl__ring circle { fill: none; stroke: var(--line); stroke-width: 4; }
.dl__ring .dl__ring-fill { stroke: var(--flow-1); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.4s; }
.dl__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.dl__box.is-ready .dl__ring-fill { stroke: var(--flow-2); }
.dl__state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dl__status { margin: 0; font-weight: 600; color: var(--ink); }
.dl__state .btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
.dl__fine { margin: 0; font-size: 13px; color: var(--muted); }
.ad-slot {
  min-height: 120px;
  padding: 10px 12px 12px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
}
.ad-slot__label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dl__app { padding: 22px 24px; border-radius: 22px; background: #111014; color: #f3f1ec; }
.dl__app h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.dl__app p { margin: 0 0 16px; color: #a7a39b; font-size: 15px; }
.dl__app .play-badge { background: #f3f1ec; color: #111014; }
/* AdSense marks unfilled units; hide the empty frame instead of showing a blank box. */
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Gallery landing: category tiles with previews. */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 18px 0 64px; }
.cat {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.5s var(--ease);
}
.cat:hover, .cat:focus-visible { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.cat__imgs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.cat__imgs img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 1.2s var(--ease); }
.cat__imgs img:first-child { grid-row: span 2; }
.cat:hover .cat__imgs img:first-child { transform: scale(1.04); }
.cat__body { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 16px 15px; }
.cat__body strong { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.cat__body small { flex: none; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat--all .cat__imgs { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr; }
.cat--all .cat__imgs img:first-child { grid-row: auto; }
.chip--back { border-style: dashed; }
@media (max-width: 560px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; }
  .cat { border-radius: 16px; }
  .cat__body { flex-direction: column; gap: 1px; padding: 10px 12px 12px; }
  .cat__body strong { font-size: 14px; }
}

/* Gallery shape picker: tall phone or wide Fold, both always visible. */
.shape { display: flex; flex: none; gap: 8px; }
.shape button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.shape button:hover { border-color: var(--ink); }
.shape button:active { transform: scale(0.97); }
.shape button span { display: flex; flex-direction: column; line-height: 1.2; }
.shape button strong { font-size: 14.5px; font-weight: 700; }
.shape button small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shape__icon { flex: none; display: block; border: 2px solid currentColor; border-radius: 5px; opacity: 0.85; }
.shape__icon--tall { width: 16px; height: 28px; margin: 0 6px; }
.shape__icon--wide { width: 28px; height: 21px; }
.shape button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.shape button[aria-pressed="true"] small { color: inherit; opacity: 0.65; }
.shape button[aria-pressed="true"] .shape__icon { background: currentColor; opacity: 1; }
@media (max-width: 680px) {
  .g-controls .shape { align-self: stretch; }
  .shape button { flex: 1; justify-content: center; height: 52px; }
}
