/* ==========================================================================
   Qingjian Software Studio · Celadon & Bamboo Slip Editorial Design System
   Warm uncoated paper, pine-soot ink, deep celadon accent, zero external CDN
   ========================================================================== */

:root {
  --bg-paper: #f7f6f2;
  --bg-sheet: #fdfcfa;
  --bg-linen: #efede7;

  --ink-primary: #161b1a;
  --ink-secondary: #495452;
  --ink-muted: #64706e;

  --celadon: #1f5b54;
  --celadon-hover: #174640;
  --celadon-tint: rgba(31, 91, 84, 0.08);
  --celadon-ring: rgba(31, 91, 84, 0.24);

  --rule: rgba(22, 27, 26, 0.11);
  --rule-strong: rgba(22, 27, 26, 0.22);

  --font-serif: 'Iowan Old Style', 'New York', 'Palatino Linotype', 'Songti SC', 'STSong', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --font-mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  --max-w: 1080px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang='ja'] {
  --font-serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', -apple-system, BlinkMacSystemFont, sans-serif;
}

html[lang='ko'] {
  --font-serif: 'AppleMyungjo', 'NanumMyeongjo', 'Batang', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
}

main {
  flex: 1;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink-primary);
  color: var(--bg-paper);
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: inline-flex;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-primary);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 140ms var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--celadon);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease), opacity 160ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink-primary);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    opacity: 0.4;
    transform: scaleX(1);
  }

  .nav-link.is-active:hover::after {
    opacity: 1;
  }
}

/* 6-language compact dropdown switcher (native <details>, works even without JS) */
.lang-menu {
  position: relative;
}

.lang-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-primary);
  background: var(--bg-sheet);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.lang-trigger::-webkit-details-marker {
  display: none;
}

.lang-trigger:hover,
.lang-menu[open] .lang-trigger {
  border-color: var(--celadon);
  background: var(--celadon-tint);
}

.lang-caret {
  width: 12px;
  height: 12px;
  color: var(--ink-muted);
  transition: transform 140ms var(--ease);
}

.lang-menu[open] .lang-caret {
  transform: rotate(180deg);
  color: var(--celadon);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 148px;
  padding: 5px;
  background: var(--bg-sheet);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(22, 27, 26, 0.11);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
  transform-origin: top right;
}

.lang-menu[open] .lang-dropdown {
  animation: qj-menu-in 180ms var(--ease) both;
}

.lang-menu.is-closing .lang-dropdown {
  animation: qj-menu-out 130ms var(--ease) both;
  pointer-events: none;
}

.lang-menu.is-closing .lang-caret {
  transform: rotate(0deg);
  color: var(--ink-muted);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}

.lang-option:hover {
  background: var(--bg-linen);
  color: var(--ink-primary);
}

.lang-option.is-current {
  background: var(--celadon-tint);
  color: var(--celadon);
}

.lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--celadon);
  flex: none;
}

.menu-toggle {
  display: none;
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-sheet);
  color: var(--ink-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), transform 100ms var(--ease);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.mobile-drawer {
  display: none;
  grid-template-rows: 0fr;
  visibility: hidden;
  border-top: 1px solid transparent;
  background: var(--bg-sheet);
  transition: grid-template-rows 240ms var(--ease-drawer), border-color 200ms var(--ease), visibility 0ms linear 240ms;
}

.mobile-drawer-inner {
  overflow: hidden;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms var(--ease), transform 240ms var(--ease-drawer), padding 240ms var(--ease-drawer);
}

.mobile-drawer.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  border-top-color: var(--rule);
  transition: grid-template-rows 240ms var(--ease-drawer), border-color 200ms var(--ease), visibility 0ms linear 0ms;
}

.mobile-drawer.is-open .mobile-drawer-inner {
  padding: 12px var(--gutter) 18px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  border-bottom: 1px solid var(--rule);
}

.mobile-drawer a:last-child {
  border-bottom: 0;
}

.mobile-drawer a.is-active {
  color: var(--celadon);
}

/* ==========================================================================
   Hero & Section Rhythm
   ========================================================================== */
.hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--celadon);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: '';
  width: 14px;
  height: 1.5px;
  background: var(--celadon);
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

html[lang='zh-CN'] .hero-title {
  font-size: clamp(30px, 4.1vw, 46px);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), box-shadow 180ms var(--ease), transform 120ms var(--ease);
}

.btn-primary {
  background: var(--celadon);
  color: #fdfcfa;
}

.btn-secondary {
  background: var(--bg-sheet);
  color: var(--ink-primary);
  border-color: var(--rule-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--celadon-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(31, 91, 84, 0.18);
  }

  .btn-secondary:hover {
    border-color: var(--ink-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 27, 26, 0.06);
  }
}

.btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

.btn-copy {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  min-width: 96px;
}

.btn-copy.is-copied {
  border-color: var(--celadon);
  color: var(--celadon);
  background: var(--celadon-tint);
}

/* ==========================================================================
   Editorial Sections & Grids
   ========================================================================== */
.section {
  padding: clamp(44px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 48px;
  align-items: start;
}

.section-label {
  position: sticky;
  top: 92px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--celadon);
  margin: 0 0 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* Home 2x2 App Matrix */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 180ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  flex: none;
  display: block;
  border: 1px solid var(--rule);
  box-shadow: 0 3px 10px rgba(22, 27, 26, 0.08);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.app-card-title {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
}

html[lang='zh-CN'] .app-card-title,
html[lang='ko'] .app-card-title {
  font-size: 17px;
}

html[lang='ja'] .app-card-title {
  font-size: 15.5px;
  letter-spacing: -0.02em;
  line-height: 1.32;
}

html[lang='de'] .app-card-title,
html[lang='es'] .app-card-title {
  font-size: 18px;
}

.app-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.app-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-card-detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 140ms var(--ease);
}

.app-card-detail:hover {
  color: var(--ink-primary);
}

.link-arrow {
  display: inline-block;
  transition: transform 160ms var(--ease);
}

/* Featured App Showcase (Work Page Detailed Rows) */
.work-item {
  scroll-margin-top: 88px;
}

.app-feature {
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--celadon);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px 32px;
  align-items: start;
  transition: border-color 180ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 16px rgba(22, 27, 26, 0.08);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .app-card:hover {
    border-color: var(--rule-strong);
    border-top-color: var(--celadon);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(22, 27, 26, 0.06);
  }

  .app-card:hover .app-card-icon {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(22, 27, 26, 0.12);
  }

  .app-feature:hover {
    border-color: var(--rule-strong);
    border-top-color: var(--celadon);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(22, 27, 26, 0.05);
  }

  .app-feature:hover .app-icon {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(22, 27, 26, 0.12);
  }

  .text-link:hover .link-arrow,
  .app-card-detail:hover .link-arrow,
  .btn:hover .link-arrow {
    transform: translateX(3px);
  }

  .text-link:hover .link-arrow-ext,
  .btn:hover .link-arrow-ext {
    transform: translate(2px, -2px);
  }
}

.app-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--celadon);
  margin-bottom: 8px;
}

.app-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--celadon);
}

.app-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.app-tagline {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: var(--ink-primary);
  font-weight: 500;
}

.app-summary {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 580px;
}

.app-highlights {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.app-highlights li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.app-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1.5px;
  background: var(--celadon);
}

.app-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--celadon);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 140ms var(--ease);
}

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

.pipeline-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 2px solid var(--rule-strong);
  background: var(--bg-linen);
  font-size: 13.5px;
  color: var(--ink-secondary);
}

/* Principles & Editorial Columns */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.principle {
  padding-top: 16px;
  border-top: 1px solid var(--rule-strong);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--celadon);
  margin: 0 0 8px;
}

.principle h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.principle p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* Specification / Entity Table (Clean D-U-N-S & Google Play Verification) */
.spec-list {
  margin: 0;
  border-top: 1px solid var(--rule-strong);
}

.spec-row {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.spec-row dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.spec-row dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-primary);
  word-break: break-word;
}

/* Page Header (Sub-pages) */
.page-head {
  padding: clamp(44px, 6vw, 68px) 0 36px;
  border-bottom: 1px solid var(--rule);
}

.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-sub {
  margin: 14px 0 0;
  max-width: 640px;
  font-size: 15.5px;
  color: var(--ink-secondary);
}

/* Contact Panel */
.contact-box {
  background: var(--bg-sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 32px);
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.contact-email-link {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 30px);
  color: var(--celadon);
  border-bottom: 1px solid rgba(31, 91, 84, 0.3);
  padding-bottom: 2px;
}

.contact-email-link:hover {
  border-bottom-color: var(--celadon);
}

/* Legal Prose (Privacy / Terms) */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 32px 0 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-primary);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-secondary);
}

.prose ul {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.prose-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-linen);
  padding: 36px 0;
  margin-top: 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.footer-entity {
  max-width: 520px;
}

.footer-brand {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-primary);
  margin: 0 0 6px;
}

.footer-legal {
  margin: 0;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

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

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Responsive & Reduced Motion
   ========================================================================== */
@media (max-width: 860px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-label {
    position: static;
  }

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

@media (max-width: 720px) {
  .app-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    height: 60px;
  }

  .site-nav {
    display: none;
  }

  .header-right {
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-drawer {
    display: grid;
  }

  .app-feature {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ==========================================================================
   Editorial Motion Choreography & Progressive Scroll Reveal
   ========================================================================== */
@keyframes qj-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes qj-rise {
  from {
    opacity: 0;
    transform: translateY(var(--rise-y, 12px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes qj-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes qj-menu-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
}

/* Layer 1: Hero & Page-Head Staggered Entrance (off-main-thread, non-blocking) */
.hero .eyebrow {
  animation: qj-fade 420ms var(--ease-enter) 0ms both;
}

.hero .hero-title {
  --rise-y: 12px;
  animation: qj-rise 520ms var(--ease-enter) 40ms both;
}

.hero .hero-lead {
  --rise-y: 10px;
  animation: qj-rise 480ms var(--ease-enter) 100ms both;
}

.hero .hero-actions {
  --rise-y: 8px;
  animation: qj-rise 460ms var(--ease-enter) 155ms both;
}

.page-head .eyebrow {
  animation: qj-fade 380ms var(--ease-enter) 0ms both;
}

.page-head .page-title {
  --rise-y: 10px;
  animation: qj-rise 480ms var(--ease-enter) 35ms both;
}

.page-head .page-sub,
.page-head .prose-meta {
  --rise-y: 8px;
  animation: qj-rise 440ms var(--ease-enter) 90ms both;
}

.page-head .hero-actions {
  --rise-y: 6px;
  animation: qj-rise 420ms var(--ease-enter) 140ms both;
}

/* Layer 2: Progressive Scroll Reveal (default visible when JS is absent) */
.is-reveal-pending {
  opacity: 0;
  transform: translateY(12px);
}

.is-revealing {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms var(--ease-enter) var(--reveal-delay, 0ms), transform 480ms var(--ease-enter) var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }

  .hero .eyebrow,
  .hero .hero-title,
  .hero .hero-lead,
  .hero .hero-actions,
  .page-head .eyebrow,
  .page-head .page-title,
  .page-head .page-sub,
  .page-head .prose-meta,
  .page-head .hero-actions,
  .is-reveal-pending {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
