:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1b1b1b;
  --muted: #777771;
  --line: #eaeae6;
  --accent: #687d68;
  --accent-deep: #536853;
  --accent-soft: #eef2ec;
  --radius: 16px;
  --page: min(1600px, calc(100% - 96px));
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.nav-shell, .intro, .catalog, .about, .site-footer {
  width: var(--page);
  margin-inline: auto;
}

.nav-shell {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(234, 234, 230, 0.85);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  letter-spacing: -0.04em;
  font-size: 25px;
}

.brand strong { font-weight: 760; }
.brand span { font-weight: 350; }

.site-nav, .site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  font-size: 14px;
}

.site-nav a, .site-footer nav a {
  position: relative;
  padding-block: 8px;
  color: #383834;
}

.site-nav a::after, .site-footer nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after, .site-nav a:focus-visible::after,
.site-footer nav a:hover::after, .site-footer nav a:focus-visible::after { transform: scaleX(1); }

.intro {
  position: relative;
  min-height: 224px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  padding-block: 34px 38px;
}

.intro-copy { position: relative; z-index: 2; max-width: 760px; }

.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.2em;
}

.intro h1, .section-heading h2, .about h2 { margin: 0; letter-spacing: -0.035em; }
.intro h1 { font-size: clamp(30px, 3vw, 45px); line-height: 1.12; }

.intro-subtitle {
  margin: 10px 0 0;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.4;
}

.intro-subtitle::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 15px;
  background: var(--accent);
  content: "";
}

.intro-detail {
  max-width: 690px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.intro-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  overflow: hidden;
  background-color: #f7f6f2;
  background-image: url("assets/hero-lifestyle-extended.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.intro-art::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.92) 34%, rgba(255, 255, 255, 0.46) 72%, rgba(255, 255, 255, 0) 100%);
  content: "";
}

.media-placeholder-note {
  position: absolute;
  right: 22px;
  bottom: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(104, 125, 104, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a8b84;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.catalog { padding-block: 42px 54px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2, .about h2 { font-size: clamp(23px, 2.4vw, 32px); }
.result-count { margin: 0; color: var(--muted); font-size: 13px; }

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}

.search-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within { border-color: rgba(104, 125, 104, 0.72); box-shadow: 0 0 0 4px rgba(104, 125, 104, 0.08); }

.search-box svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #55564f;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-box input::placeholder { color: #aaa9a3; }
.category-scroll { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-list { display: flex; gap: 9px; width: max-content; }

.category-button {
  min-width: 70px;
  min-height: 42px;
  padding: 9px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #65655f;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.category-button:hover { border-color: #ccd4ca; color: var(--accent-deep); }
.category-button.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  min-width: 0;
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(105px, 0.88fr);
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.app-card:hover { border-color: #d5ddd3; transform: translateY(-2px); }

.app-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-icon { width: 54px; height: 54px; margin-bottom: 14px; border-radius: 14px; }
.app-card h3 { margin: 0; font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.app-description { margin: 8px 0 0; color: #363631; font-size: 14px; line-height: 1.55; }

.app-detail {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0; }
.app-meta span { padding: 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-size: 10px; }

.card-action {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.card-action:hover { background: var(--accent-deep); }
.card-action[aria-disabled="true"] { background: #e9ede7; color: #697168; cursor: not-allowed; }
.app-preview { min-width: 0; display: flex; align-items: center; justify-content: center; }
.app-preview img {
  width: 100%;
  max-width: 152px;
  height: 100%;
  max-height: 244px;
  object-fit: contain;
  transform: scale(1.09);
  transform-origin: center;
}

.empty-state {
  padding: 64px 20px;
  border: 1px dashed #d9ded6;
  border-radius: var(--radius);
  text-align: center;
  background: var(--surface);
}

.empty-state span { color: var(--accent); font-size: 35px; }
.empty-state h3 { margin: 10px 0 5px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state button { padding: 9px 18px; border: 1px solid var(--accent); border-radius: 999px; background: transparent; color: var(--accent-deep); cursor: pointer; }

.pagination {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pagination[hidden] { display: none; }

.page-button { min-width: 39px; min-height: 39px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: #5d5d57; cursor: pointer; }
.page-button:hover:not(:disabled) { border-color: #bdc9bb; }
.page-button.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.page-button:disabled { opacity: 0.42; cursor: default; }

.about {
  min-height: 216px;
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(360px, 1.35fr);
  align-items: end;
  gap: 30px;
  padding-block: 38px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.about-copy { align-self: start; padding-bottom: 34px; }
.about-copy p:not(.section-kicker) { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.landscape {
  position: relative;
  height: 178px;
  overflow: hidden;
  color: #526653;
  background-color: #fafaf8;
  background-image: url("assets/about-landscape.png");
  background-repeat: no-repeat;
  background-position: center 72%;
  background-size: cover;
}

.landscape::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #fafaf8 0%, rgba(250, 250, 248, 0.72) 16%, rgba(250, 250, 248, 0.04) 42%, rgba(250, 250, 248, 0.12) 82%, #fafaf8 100%),
    linear-gradient(180deg, #fafaf8 0%, rgba(250, 250, 248, 0.12) 30%, rgba(250, 250, 248, 0.04) 70%, #fafaf8 100%);
  content: "";
}

.landscape .media-placeholder-note { right: 18px; bottom: 12px; }

.landscape span {
  position: absolute;
  top: 41%;
  right: 9%;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(17px, 2.1vw, 27px);
  transform: rotate(-4deg);
}

.site-footer { padding-block: 20px 24px; border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand-small { font-size: 18px; }
.footer-tagline { color: var(--muted); font-size: 12px; }
.site-footer p { margin: 16px 0 0; color: #a0a099; font-size: 11px; }

.privacy-page { min-height: 100vh; display: flex; flex-direction: column; }
.privacy-page main { width: min(760px, calc(100% - 40px)); flex: 1; margin: 0 auto; padding: 70px 0; }
.privacy-page h1 { margin: 0 0 24px; font-size: clamp(32px, 6vw, 50px); letter-spacing: -0.045em; }
.privacy-page h2 { margin: 32px 0 8px; font-size: 19px; }
.privacy-page p { margin: 0 0 12px; color: var(--muted); line-height: 1.8; }
.back-link { display: inline-flex; margin-top: 24px; color: var(--accent-deep); font-weight: 650; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1120px) {
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-controls { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 32px, 720px); }
  .intro { min-height: 205px; grid-template-columns: 1fr; padding-block: 27px 31px; }
  .intro-copy { max-width: 86%; }
  .intro-art { right: -8%; width: 46vw; opacity: 0.64; }
  .intro-detail { max-width: 78%; font-size: 13px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; padding-top: 32px; }
  .about-copy { padding-bottom: 8px; }
  .landscape { height: 130px; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 24px); }
  .nav-shell { min-height: 56px; }
  .brand { font-size: 21px; gap: 5px; }
  .site-nav { gap: 18px; font-size: 13px; }
  .intro { min-height: 198px; padding-block: 25px 28px; }
  .intro-copy { max-width: 100%; }
  .eyebrow { margin-bottom: 8px; font-size: 9px; }
  .intro h1 { font-size: 29px; }
  .intro-subtitle { margin-top: 8px; font-size: 17px; }
  .intro-subtitle::after { margin-top: 11px; }
  .intro-detail { max-width: 91%; margin-top: 10px; font-size: 12px; }
  .intro-art { right: -28%; width: 75vw; opacity: 0.38; }
  .catalog { padding-block: 30px 42px; }
  .section-heading { align-items: center; margin-bottom: 16px; }
  .section-kicker { margin-bottom: 6px; font-size: 9px; }
  .section-heading h2, .about h2 { font-size: 23px; }
  .search-box { min-height: 46px; }
  .category-list { gap: 7px; }
  .category-button { min-width: 64px; min-height: 40px; padding: 8px 16px; }
  .app-grid { grid-template-columns: 1fr; gap: 12px; }
  .app-card { min-height: 250px; grid-template-columns: minmax(0, 1.12fr) minmax(112px, 0.88fr); padding: 17px; }
  .app-preview img { max-height: 218px; }
  .card-action { min-height: 44px; padding-inline: 12px; font-size: 12px; }
  .about { min-height: 0; }
  .landscape { height: 105px; }
  .landscape span { right: 4%; }
  .footer-row { grid-template-columns: auto 1fr; gap: 10px 16px; }
  .footer-tagline { text-align: right; }
  .site-footer nav { grid-column: 1 / -1; justify-content: space-between; padding-top: 7px; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Desktop home: keep the complete page within one viewport at normal desktop heights. */
@media (min-width: 1121px) and (min-height: 760px) {
  body:not(.privacy-page) {
    height: 100vh;
    min-height: 760px;
    display: grid;
    grid-template-rows: 158px minmax(0, 1fr) 42px;
  }

  body:not(.privacy-page) .site-header {
    height: 158px;
  }

  body:not(.privacy-page) .nav-shell {
    min-height: 58px;
    height: 58px;
  }

  body:not(.privacy-page) .intro {
    min-height: 0;
    height: 100px;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    padding-block: 8px 10px;
  }

  body:not(.privacy-page) .eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
  }

  body:not(.privacy-page) .intro h1 {
    font-size: clamp(28px, 1.9vw, 34px);
    line-height: 1.06;
  }

  body:not(.privacy-page) .intro-subtitle {
    margin-top: 4px;
    font-size: clamp(15px, 1.2vw, 19px);
    line-height: 1.28;
  }

  body:not(.privacy-page) .intro-subtitle::after {
    display: inline-block;
    width: 30px;
    height: 1px;
    margin: 0 0 4px 12px;
  }

  body:not(.privacy-page) .intro-detail {
    max-width: 880px;
    margin-top: 4px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.privacy-page) .intro-art {
    right: 1%;
    bottom: -18px;
    width: min(31vw, 430px);
    height: 130%;
    opacity: 0.68;
  }

  body:not(.privacy-page) main {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 90px;
  }

  body:not(.privacy-page) .catalog {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 30px 44px 464px 34px;
    align-content: start;
    row-gap: 6px;
    padding-block: 10px 6px;
    overflow: hidden;
  }

  body:not(.privacy-page) .section-heading {
    min-height: 0;
    align-items: center;
    margin: 0;
  }

  body:not(.privacy-page) .section-heading > div {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  body:not(.privacy-page) .section-heading .section-kicker {
    margin: 0;
    font-size: 9px;
  }

  body:not(.privacy-page) .section-heading h2 {
    font-size: 21px;
    line-height: 1;
  }

  body:not(.privacy-page) .result-count {
    color: #aaa9a3;
    font-size: 11px;
  }

  body:not(.privacy-page) .catalog-controls {
    height: 44px;
    grid-template-columns: minmax(0, 3fr) minmax(500px, 2fr);
    gap: 24px;
    margin: 0;
  }

  body:not(.privacy-page) .search-box {
    min-height: 44px;
    height: 44px;
  }

  body:not(.privacy-page) .category-scroll {
    display: flex;
    justify-content: flex-end;
  }

  body:not(.privacy-page) .category-button {
    min-width: 66px;
    min-height: 38px;
    padding: 7px 16px;
    font-size: 13px;
  }

  body:not(.privacy-page) .app-grid {
    min-height: 0;
    height: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 224px;
    align-content: start;
    gap: 16px;
  }

  body:not(.privacy-page) .app-card {
    min-height: 0;
    height: 224px;
    grid-template-columns: minmax(0, 1.08fr) minmax(96px, 0.92fr);
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
  }

  body:not(.privacy-page) .app-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
    border-radius: 11px;
  }

  body:not(.privacy-page) .app-card h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  body:not(.privacy-page) .app-description {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body:not(.privacy-page) .app-detail {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
  }

  body:not(.privacy-page) .app-meta {
    gap: 4px;
    margin: 6px 0;
  }

  body:not(.privacy-page) .app-meta span {
    padding: 3px 7px;
    font-size: 9px;
  }

  body:not(.privacy-page) .card-action {
    min-height: 34px;
    padding: 6px 11px;
    font-size: 11px;
  }

  body:not(.privacy-page) .app-preview img {
    max-width: 124px;
    max-height: 194px;
  }

  body:not(.privacy-page) .pagination {
    min-height: 34px;
    height: 34px;
    margin: 0;
  }

  body:not(.privacy-page) .page-button {
    min-width: 34px;
    min-height: 34px;
    padding: 5px 10px;
    border-radius: 9px;
    font-size: 12px;
  }

  body:not(.privacy-page) .about {
    min-height: 0;
    height: 90px;
    grid-template-columns: minmax(620px, 1.15fr) minmax(380px, 0.85fr);
    gap: 20px;
    padding-block: 7px 0;
  }

  body:not(.privacy-page) .about-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: 14px repeat(3, auto);
    column-gap: 18px;
    align-content: start;
    padding: 0;
  }

  body:not(.privacy-page) .about-copy .section-kicker {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 8px;
  }

  body:not(.privacy-page) .about-copy h2 {
    grid-column: 1;
    grid-row: 2 / span 2;
    font-size: 20px;
  }

  body:not(.privacy-page) .about-copy p:not(.section-kicker) {
    grid-column: 2;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
  }

  body:not(.privacy-page) .landscape {
    height: 83px;
  }

  body:not(.privacy-page) .landscape span {
    top: 34%;
    right: 7%;
    font-size: clamp(16px, 1.5vw, 22px);
  }

  body:not(.privacy-page) .site-footer {
    height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
    padding-block: 0;
  }

  body:not(.privacy-page) .footer-row {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  body:not(.privacy-page) .site-footer nav {
    margin-left: auto;
    gap: 24px;
    font-size: 12px;
  }

  body:not(.privacy-page) .site-footer p {
    margin: 0;
    font-size: 10px;
  }
}

@media (min-width: 821px) and (max-width: 1360px) {
  :root { --page: calc(100% - 64px); }
}

/* Reference-led desktop composition. Image areas remain neutral placeholders
   until the final lifestyle and landscape assets are supplied. */
@media (min-width: 1121px) {
  body:not(.privacy-page) {
    height: auto;
    min-height: 100vh;
    display: block;
  }

  body:not(.privacy-page) .site-header {
    height: auto;
  }

  body:not(.privacy-page) .nav-shell {
    min-height: 64px;
    height: 64px;
  }

  body:not(.privacy-page) .intro {
    min-height: 145px;
    height: clamp(145px, 8.5vw, 160px);
    grid-template-columns: minmax(0, 1fr);
    padding-block: 12px 16px;
  }

  body:not(.privacy-page) .intro-copy {
    max-width: 57%;
  }

  body:not(.privacy-page) .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  body:not(.privacy-page) .intro h1 {
    font-size: clamp(31px, 2.15vw, 38px);
    line-height: 1.12;
  }

  body:not(.privacy-page) .intro-subtitle {
    margin-top: 6px;
    font-size: clamp(18px, 1.45vw, 23px);
    line-height: 1.42;
  }

  body:not(.privacy-page) .intro-subtitle::after {
    display: block;
    width: 42px;
    height: 2px;
    margin: 12px 0 0;
  }

  body:not(.privacy-page) .intro-detail {
    max-width: 720px;
    margin-top: 10px;
    overflow: visible;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    text-overflow: clip;
    white-space: normal;
  }

  body:not(.privacy-page) .intro-art {
    top: 0;
    right: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    width: auto;
    margin-right: calc(50% - 50vw);
    height: auto;
    opacity: 1;
  }

  body:not(.privacy-page) main {
    min-height: 0;
    display: block;
  }

  body:not(.privacy-page) .catalog {
    min-height: 0;
    height: auto;
    display: block;
    padding-block: 18px 14px;
    overflow: visible;
  }

  body:not(.privacy-page) .section-heading {
    min-height: 24px;
    align-items: center;
    margin: 0 0 10px;
  }

  body:not(.privacy-page) .section-heading > div {
    display: flex;
    align-items: baseline;
    gap: 11px;
  }

  body:not(.privacy-page) .section-heading .section-kicker {
    margin: 0;
    font-size: 9px;
  }

  body:not(.privacy-page) .section-heading h2 {
    font-size: 20px;
    line-height: 1.15;
  }

  body:not(.privacy-page) .result-count {
    color: #aaa9a3;
    font-size: 11px;
  }

  body:not(.privacy-page) .catalog-controls {
    min-height: 48px;
    height: auto;
    grid-template-columns: minmax(0, 3fr) minmax(470px, 2fr);
    gap: 30px;
    margin: 0 0 20px;
  }

  body:not(.privacy-page) .search-box {
    min-height: 48px;
    height: 48px;
  }

  body:not(.privacy-page) .category-scroll {
    display: flex;
    justify-content: flex-end;
  }

  body:not(.privacy-page) .category-button {
    min-width: 70px;
    min-height: 42px;
    padding: 8px 18px;
    font-size: 14px;
  }

  body:not(.privacy-page) .app-grid {
    min-height: 516px;
    height: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 250px;
    align-content: start;
    gap: 16px;
  }

  body:not(.privacy-page) .app-card {
    min-height: 250px;
    height: 250px;
    grid-template-columns: minmax(0, 1.08fr) minmax(112px, 0.92fr);
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
  }

  body:not(.privacy-page) .app-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    border-radius: 13px;
  }

  body:not(.privacy-page) .app-card h3 {
    font-size: 19px;
    line-height: 1.3;
  }

  body:not(.privacy-page) .app-description {
    display: block;
    margin-top: 6px;
    overflow: visible;
    font-size: 14px;
    line-height: 1.6;
  }

  body:not(.privacy-page) .app-detail {
    display: block;
    margin-top: 4px;
    overflow: visible;
    font-size: 13px;
    line-height: 1.6;
  }

  body:not(.privacy-page) .app-meta {
    gap: 5px;
    margin: 7px 0;
  }

  body:not(.privacy-page) .app-meta span {
    padding: 3px 7px;
    font-size: 10px;
  }

  body:not(.privacy-page) .card-action {
    min-height: 37px;
    padding: 7px 13px;
    font-size: 12px;
  }

  body:not(.privacy-page) .app-preview img {
    max-width: 142px;
    max-height: 222px;
  }

  body:not(.privacy-page) .pagination {
    min-height: 40px;
    height: 40px;
    margin: 10px 0 0;
  }

  body:not(.privacy-page) .page-button {
    min-width: 38px;
    min-height: 38px;
    padding: 6px 11px;
    border-radius: 9px;
    font-size: 13px;
  }

  body:not(.privacy-page) .about {
    min-height: 112px;
    height: 112px;
    grid-template-columns: minmax(520px, 0.9fr) minmax(560px, 1.1fr);
    align-items: stretch;
    gap: 28px;
    padding-block: 0;
    overflow: visible;
  }

  body:not(.privacy-page) .about-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    align-content: center;
    gap: 22px;
    align-self: center;
    padding: 8px 0;
  }

  body:not(.privacy-page) .about-copy .section-kicker {
    margin: 0 0 3px;
    font-size: 8px;
  }

  body:not(.privacy-page) .about-copy h2 {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.2;
  }

  body:not(.privacy-page) .about-copy .about-text p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
  }

  body:not(.privacy-page) .about-text {
    width: min(100%, 440px);
  }

  body:not(.privacy-page) .landscape {
    height: 111px;
  }

  body:not(.privacy-page) .landscape span {
    top: 35%;
    right: 9%;
    font-size: clamp(18px, 1.65vw, 25px);
  }

  body:not(.privacy-page) .site-footer {
    min-height: 46px;
    height: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
    padding-block: 0;
  }

  body:not(.privacy-page) .footer-row {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  body:not(.privacy-page) .site-footer nav {
    margin-left: auto;
    gap: 26px;
    font-size: 12px;
  }

  body:not(.privacy-page) .site-footer p {
    margin: 0;
    font-size: 10px;
  }
}

@media (min-width: 1121px) and (max-height: 960px) {
  body:not(.privacy-page) .nav-shell {
    min-height: 60px;
    height: 60px;
  }

  body:not(.privacy-page) .intro {
    min-height: 145px;
    height: clamp(145px, 8.5vw, 160px);
    padding-block: 12px 16px;
  }

  body:not(.privacy-page) .intro h1 { font-size: 31px; }
  body:not(.privacy-page) .intro-subtitle { margin-top: 3px; font-size: 18px; }
  body:not(.privacy-page) .intro-subtitle::after { margin-top: 7px; }
  body:not(.privacy-page) .intro-detail { margin-top: 6px; font-size: 13px; line-height: 1.55; }

  body:not(.privacy-page) .catalog { padding-block: 14px 10px; }
  body:not(.privacy-page) .section-heading { margin-bottom: 7px; }
  body:not(.privacy-page) .catalog-controls { margin-bottom: 14px; }

  body:not(.privacy-page) .app-grid {
    min-height: 420px;
    grid-auto-rows: 250px;
  }

  body:not(.privacy-page) .app-card {
    min-height: 250px;
    height: 250px;
    padding: 12px;
  }

  body:not(.privacy-page) .app-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
  }

  body:not(.privacy-page) .app-description { margin-top: 3px; }
  body:not(.privacy-page) .app-detail { margin-top: 2px; }
  body:not(.privacy-page) .app-meta { margin: 4px 0; }
  body:not(.privacy-page) .card-action { min-height: 34px; padding-block: 6px; }
  body:not(.privacy-page) .app-preview img { max-height: 222px; }
  body:not(.privacy-page) .pagination { margin-top: 6px; }
  body:not(.privacy-page) .about { min-height: 108px; height: 108px; }
  body:not(.privacy-page) .landscape { height: 107px; }
  body:not(.privacy-page) .site-footer { min-height: 42px; height: 42px; }
}

/* Desktop homepage: keep the confirmed design while distributing the viewport 25 / 60 / 15. */
@media (min-width: 1121px) and (min-height: 760px) {
  body:not(.privacy-page) {
    --page: min(1728px, 90%);
    --hero-left-crop: clamp(180px, 18.75vw, 360px);
    --desktop-card-height: clamp(208px, 22.5dvh, 242px);
    --home-nav-height: clamp(52px, 6.4dvh, 60px);
    --home-footer-height: clamp(36px, 4.63dvh, 50px);
    height: 100dvh;
    min-height: 760px;
    display: grid;
    grid-template-rows: 25dvh calc(75dvh - var(--home-footer-height)) var(--home-footer-height);
    overflow-y: auto;
  }

  body:not(.privacy-page) .site-header {
    height: 25dvh;
    min-height: 0;
  }

  body:not(.privacy-page) .nav-shell {
    position: relative;
    z-index: 3;
    height: var(--home-nav-height);
    min-height: var(--home-nav-height);
    background: transparent;
  }

  body:not(.privacy-page) .intro {
    height: calc(25dvh - var(--home-nav-height));
    min-height: 0;
    padding-block: 12px 16px;
  }

  body:not(.privacy-page) .intro-art {
    z-index: 0;
    top: calc(-1 * var(--home-nav-height));
    bottom: auto;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    height: 25dvh;
    width: auto;
    margin-right: 0;
    background-position: right top;
    background-size: cover;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body:not(.privacy-page) .intro-art::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image: url("assets/hero-lifestyle.png");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    content: "";
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 18%, #000 48%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.15) 18%, #000 48%);
  }

  body:not(.privacy-page) .intro-art::before {
    z-index: 2;
  }

  body:not(.privacy-page) main {
    min-height: 0;
    display: grid;
    grid-template-rows: 60dvh calc(15dvh - var(--home-footer-height));
    background: #fff;
  }

  body:not(.privacy-page) .catalog {
    height: 60dvh;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    row-gap: 12px;
    padding-block: 18px 12px;
    overflow: visible;
    background: var(--surface);
  }

  body:not(.privacy-page) .catalog-controls,
  body:not(.privacy-page) .pagination {
    margin-block: 0;
  }

  body:not(.privacy-page) .pagination[hidden] {
    display: none;
  }

  body:not(.privacy-page) .catalog-controls {
    width: 100%;
    grid-template-columns: minmax(0, 52%) max-content;
    column-gap: clamp(80px, 7vw, 120px);
    justify-content: start;
  }

  body:not(.privacy-page) .category-scroll {
    justify-content: flex-start;
  }

  body:not(.privacy-page) .app-grid {
    width: calc(100% + 48px);
    min-height: 0;
    height: 100%;
    margin-left: -24px;
    grid-auto-rows: var(--desktop-card-height);
    align-content: start;
  }

  body:not(.privacy-page) .app-card {
    min-height: var(--desktop-card-height);
    height: var(--desktop-card-height);
  }

  body:not(.privacy-page) .app-preview img {
    max-height: calc(var(--desktop-card-height) - 24px);
  }

  body:not(.privacy-page) .about {
    position: relative;
    height: calc(15dvh - var(--home-footer-height));
    min-height: 0;
    display: block;
    padding: 0;
    overflow: visible;
    background: #fff;
  }

  body:not(.privacy-page) .about-copy {
    position: relative;
    z-index: 2;
    width: min(500px, 42%);
    height: auto;
    min-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    align-self: stretch;
    padding: 18px 0 0;
  }

  body:not(.privacy-page) .about-heading {
    display: block;
  }

  body:not(.privacy-page) .about-copy .section-kicker {
    margin: 0;
    font-size: 8px;
    line-height: 1;
  }

  body:not(.privacy-page) .about-copy h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1;
  }

  body:not(.privacy-page) .about-text {
    width: min(100%, 500px);
    margin-top: 7px;
  }

  body:not(.privacy-page) .about-copy .about-text p {
    display: inline;
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
  }

  body:not(.privacy-page) .about-copy .about-text p:not(:last-child)::after {
    content: " ";
  }

  body:not(.privacy-page) .landscape {
    position: absolute;
    z-index: 1;
    top: 0;
    right: auto;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body:not(.privacy-page) .landscape::before {
    background: linear-gradient(180deg, #fafaf8 0%, rgba(250, 250, 248, 0.12) 30%, rgba(250, 250, 248, 0.04) 70%, #fafaf8 100%);
  }

  body:not(.privacy-page) .landscape span {
    top: 31%;
    right: 12%;
  }

  body:not(.privacy-page) .site-footer {
    height: var(--home-footer-height);
    min-height: var(--home-footer-height);
    border-top-color: rgba(234, 234, 230, 0.58);
  }
}

@media (min-width: 1121px) and (min-height: 760px) and (max-height: 960px) {
  body:not(.privacy-page) .app-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    border-radius: 10px;
  }

  body:not(.privacy-page) .app-card h3 {
    font-size: 17px;
    line-height: 1.25;
  }

  body:not(.privacy-page) .app-description {
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  body:not(.privacy-page) .app-detail {
    margin-top: 1px;
    font-size: 11.5px;
    line-height: 1.45;
  }

  body:not(.privacy-page) .app-meta {
    margin: 3px 0;
  }

  body:not(.privacy-page) .app-meta span {
    padding: 2px 6px;
    font-size: 9px;
  }

  body:not(.privacy-page) .card-action {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 11px;
  }
}

/* Desktop viewport calibration: 1920×1080 first, then 1536×864 and 1366×768. */
@media (min-width: 1121px) and (min-height: 760px) {
  body:not(.privacy-page) .site-nav {
    min-height: clamp(40px, 4.25dvh, 46px);
    gap: clamp(22px, 1.7vw, 34px);
    padding-inline: clamp(18px, 1.4vw, 27px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 5px 18px rgba(59, 65, 56, 0.035);
    -webkit-backdrop-filter: blur(10px) saturate(0.86);
    backdrop-filter: blur(10px) saturate(0.86);
  }

  body:not(.privacy-page) .site-nav a {
    padding-block: 7px;
  }

  body:not(.privacy-page) .intro h1 {
    font-size: clamp(30px, 3.45dvh, 37px);
  }

  body:not(.privacy-page) .intro-subtitle {
    margin-top: clamp(3px, 0.55dvh, 6px);
    font-size: clamp(17px, 1.85dvh, 20px);
  }

  body:not(.privacy-page) .intro-detail {
    margin-top: clamp(6px, 0.75dvh, 8px);
    font-size: clamp(12px, 1.2dvh, 13px);
    line-height: 1.55;
  }

  body:not(.privacy-page) .app-description,
  body:not(.privacy-page) .app-detail {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 1121px) and (min-height: 961px) {
  body:not(.privacy-page) .app-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 7px;
    border-radius: 12px;
  }

  body:not(.privacy-page) .app-card h3 {
    font-size: 18px;
    line-height: 1.25;
  }

  body:not(.privacy-page) .app-description {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.45;
  }

  body:not(.privacy-page) .app-detail {
    margin-top: 3px;
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  body:not(.privacy-page) .app-meta {
    margin: 6px 0;
  }

  body:not(.privacy-page) .card-action {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 11.5px;
  }
}

@media (min-width: 1121px) and (min-height: 760px) and (max-height: 900px) {
  body:not(.privacy-page) .about-copy {
    padding-top: 7px;
  }

  body:not(.privacy-page) .about-text {
    margin-top: 3px;
  }
}
