/* JOHN RAMBO premium visual system — shared, page-scoped overrides. */
:root {
  --premium-paper: #f5f1e8;
  --premium-surface: #fffcf6;
  --premium-surface-soft: #eee8dc;
  --premium-forest: #083f35;
  --premium-forest-hover: #0e5144;
  --premium-ink: #17211d;
  --premium-muted: #55635d;
  --premium-brass: #a77b42;
  --premium-line: rgba(8, 63, 53, .18);
  --premium-presale: #8f2f36;
  --premium-success: #2f6a4e;
  --premium-heading-cjk: 50px;
  --premium-heading-cjk-mobile: 38px;
  --premium-body: 16px;
  --premium-critical: 13px;
  --premium-container: 1280px;
  --premium-product-container: 1360px;
  --premium-gutter: clamp(24px, 4vw, 64px);
  --premium-section-space: clamp(88px, 7vw, 104px);
  --premium-serif: "Iowan Old Style", "Baskerville", "Noto Serif SC", "Songti SC", "STSong", "Times New Roman", serif;
  --premium-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

body.page-home,
body.page-product,
body.page-account {
  --paper: var(--premium-paper);
  --paper-2: var(--premium-surface);
  --paper-deep: var(--premium-surface-soft);
  --forest: var(--premium-forest);
  --forest-dark: #052f28;
  --gold: var(--premium-brass);
  --ink: var(--premium-ink);
  --muted: var(--premium-muted);
  --line: var(--premium-line);
  --serif: var(--premium-serif);
  --sans: var(--premium-sans);
  color: var(--premium-ink);
  background: var(--premium-paper);
  font-family: var(--premium-sans);
  font-size: var(--premium-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

.page-home button,
.page-home input,
.page-home select,
.page-home textarea,
.page-product button,
.page-product input,
.page-product select,
.page-product textarea,
.page-account button,
.page-account input,
.page-account select,
.page-account textarea,
.page-admin button,
.page-admin input,
.page-admin select,
.page-admin textarea {
  font-family: var(--premium-sans);
}

.page-home :is(a, button, input, select, textarea, summary):focus-visible,
.page-product :is(a, button, input, select, textarea, summary):focus-visible,
.page-account :is(a, button, input, select, textarea, summary):focus-visible,
.page-admin :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(167, 123, 66, .62);
  outline-offset: 3px;
}

/* Homepage */
.page-home .site-header {
  height: 84px;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  padding-inline: max(24px, calc((100vw - var(--premium-container)) / 2));
  background: rgba(245, 241, 232, .94);
  backdrop-filter: blur(14px);
}

.page-home .site-header.compact { height: 72px; background: rgba(245, 241, 232, .98); }
.page-home .desktop-nav { gap: clamp(24px, 3vw, 52px); }
.page-home .desktop-nav a,
.page-home .header-tools select { font-size: 11px; letter-spacing: .12em; }
.page-home .hero { padding: 84px var(--premium-gutter) 56px; }
.page-home .hero-stage { max-width: var(--premium-container); aspect-ratio: 2 / 1; min-height: 480px; max-height: 660px; }
.page-home .hero-overlay h1 {
  width: min(760px, 82%);
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.page-home .hero-overlay p:not(.section-index) { max-width: 620px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; }

.page-home .section {
  padding-block: var(--premium-section-space);
  padding-inline: max(24px, calc((100vw - var(--premium-container)) / 2));
}
.page-home .science,
.page-home .story { padding: 0; }
.page-home .section-index { margin-bottom: 16px; color: var(--premium-brass); font-size: 11px; letter-spacing: .12em; }
.page-home .section-heading { max-width: 1040px; }
.page-home .section-heading h1,
.page-home .science h1,
.page-home .story h1,
.page-home .journal h1,
.page-home .gateway-head h1 {
  max-width: 820px;
  color: var(--premium-forest);
  font-family: var(--premium-serif);
  font-size: clamp(44px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.page-home .section-heading p:not(.section-index),
.page-home .gateway-head > p,
.page-home .science-copy > p:not(.section-index),
.page-home .story-copy p:not(.section-index) {
  max-width: 660px;
  color: var(--premium-muted);
  font-size: var(--premium-body);
  line-height: 1.72;
}

.page-home .gateway-head { max-width: var(--premium-container); gap: clamp(48px, 7vw, 96px); }
.page-home .gateway-grid { margin-top: 48px; }
.page-home .gateway-card { min-height: 310px; padding: 30px; }
.page-home .gateway-card b { font-size: 26px; line-height: 1.22; }
.page-home .gateway-card em { font-size: 13px; }
.page-home .gateway-card p { font-size: 14px; line-height: 1.65; }
.page-home .gateway-card:hover,
.page-home .gateway-card.active { transform: translateY(-3px); }

.page-home .systems { background: var(--premium-forest); }
.page-home .systems .section-heading h1 { color: var(--premium-surface); }
.page-home .system-grid { margin-top: 48px; gap: 10px; border: 0; }
.page-home .system-card { min-height: 238px; padding: 28px; border-radius: 7px; }
.page-home .system-card b { font-size: 24px; font-weight: 600; line-height: 1.22; }
.page-home .system-card em { font-size: 14px; line-height: 1.65; }
.page-home .system-card:hover:not(.active) { transform: translateY(-3px); }
.page-home .system-card.is-selecting { transform-origin: center; }
.page-home .system-card.active { transform: none; }

.page-home .products { background: var(--premium-surface); }
.page-home .filters { margin: 36px 0 24px; }
.page-home .filters button { min-height: 44px; padding-bottom: 12px; font-size: 12px; letter-spacing: .08em; }
.page-home .product-rail { grid-auto-columns: minmax(300px, 306px); gap: 20px; padding-top: 8px; }
.page-home .product-card { min-height: 560px; background: var(--premium-paper); }
.page-home .product-card:hover { transform: translateY(-3px); background: var(--premium-surface); }
.page-home .product-media { height: 350px; padding: 30px; }
.page-home .product-info { padding: 24px; }
.page-home .product-info h3 { margin: 16px 0 12px; font-size: 26px; line-height: 1.18; letter-spacing: -.01em; }
.page-home .product-info p { font-size: 14px; line-height: 1.65; }
.page-home .product-actions { padding: 0 24px 24px; }
.page-home .product-price-sale { font-family: var(--premium-sans); font-size: 20px; font-weight: 750; }
.page-home .product-price-original,
.page-home .product-price-saving,
.page-home .product-inventory-status { font-size: var(--premium-critical); }
.page-home .add-button,
.page-home .checkout-button { min-height: 48px; font-size: 12px; letter-spacing: .08em; }

.page-home .science { min-height: 720px; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); background: #052f28; }
.page-home .science-copy { padding: 96px clamp(32px, 4vw, 64px) 96px max(24px, calc((100vw - var(--premium-container)) / 2)); }
.page-home .science h1 { color: var(--premium-surface); }
.page-home .science-copy > p:not(.section-index) { margin: 28px 0 42px; color: rgba(255, 252, 246, .78); }
.page-home .science dl div { padding: 20px 0; }
.page-home .science dd { font-size: 15px; letter-spacing: 0; line-height: 1.6; }

.page-home .story { grid-template-columns: 1.05fr .95fr; background: var(--premium-paper); }
.page-home .story-media { min-height: 600px; padding: clamp(36px, 5vw, 72px); background: var(--premium-surface-soft); }
.page-home .story-hero-image { box-shadow: 0 24px 54px rgba(23, 33, 29, .12); }
.page-home .story-copy { padding: 72px max(24px, calc((100vw - var(--premium-container)) / 2)) 72px clamp(48px, 6vw, 88px); }

.page-home .service-gateway { padding-block: 92px; background: var(--premium-paper); }
.page-home .service-gateway .section-heading {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  grid-template-areas: "index title" ". copy";
  column-gap: clamp(48px, 7vw, 96px);
  row-gap: 22px;
  min-height: auto;
  max-width: var(--premium-container);
  align-items: start;
}
.page-home .service-gateway .section-heading .section-index { grid-area: index; margin: 8px 0 0; }
.page-home .service-gateway .section-heading h1 { grid-area: title; max-width: 700px; font-size: clamp(42px, 3.7vw, 50px); line-height: 1.16; letter-spacing: -.015em; }
.page-home .service-gateway .section-heading p:not(.section-index) { grid-area: copy; max-width: 620px; margin: 0; }
.page-home .service-grid { margin-top: 44px; }
.page-home .service-card { min-height: 210px; padding: 28px; }
.page-home .service-card:hover { transform: translateY(-3px); }
.page-home .service-card b { font-size: 22px; }
.page-home .service-card p { margin-top: 26px; font-size: 14px; line-height: 1.65; }

.page-home .journal { grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr); gap: clamp(56px, 8vw, 110px); background: #b9975f; }
.page-home .journal h1 { font-size: clamp(42px, 3.8vw, 50px); }
.page-home .journal-form p { font-size: 15px; line-height: 1.65; }
.page-home footer { padding-inline: max(24px, calc((100vw - var(--premium-container)) / 2)); }

.page-home .reveal { opacity: 1; transform: none; }
.page-home .cart-head h2 { font-size: 36px; line-height: 1.1; }
.page-home .cart-line h3 { font-size: 19px; line-height: 1.25; }
.page-home .cart-line p,
.page-home .cart-unit-price,
.page-home .cart-summary p,
.page-home .cart-preview-error,
.page-home .checkout-error,
.page-home .checkout-sidebar small,
.page-home .payment-reserved,
.page-home .presale-disclosure,
.page-home .checkout-presale-notice,
.page-home .presale-late-gift-promise { font-size: var(--premium-critical); line-height: 1.6; }
.page-home .checkout-main h2,
.page-home .order-success h2 { font-size: clamp(36px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -.015em; }
.page-home .checkout-field label { font-size: 12px; letter-spacing: .06em; }
.page-home .checkout-field :is(input, textarea, select) { min-height: 48px; font-size: 16px; }

/* Product page */
.page-product .product-header {
  height: 84px;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  padding-inline: max(24px, calc((100vw - var(--premium-product-container)) / 2));
  background: rgba(245, 241, 232, .95);
}
.page-product .product-header nav { gap: clamp(24px, 3vw, 52px); }
.page-product .product-header nav a,
.page-product .header-tools select { font-size: 11px; letter-spacing: .12em; }
.page-product main { max-width: var(--premium-product-container); }
.page-product .breadcrumb { padding: 22px 24px; font-size: 11px; letter-spacing: .08em; }
.page-product .product-hero { min-height: auto; grid-template-columns: minmax(0, 1.06fr) minmax(420px, .94fr); }
.page-product .product-gallery { padding: clamp(28px, 3.5vw, 48px); }
.page-product .gallery-stage { height: clamp(520px, 42vw, 590px); }
.page-product .gallery-thumbs { max-height: 590px; }
.page-product .product-purchase { padding: clamp(44px, 5vw, 68px); }
.page-product .product-system,
.page-product .section-label { margin-bottom: 16px; font-size: 11px; letter-spacing: .12em; }
.page-product .product-purchase h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-family: var(--premium-serif);
  font-size: clamp(46px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.page-product .short-description,
.page-product .product-description { max-width: 620px; font-size: 16px; line-height: 1.7; }
.page-product .product-price { margin: 22px 0 14px; font-family: var(--premium-sans); font-size: 28px; font-weight: 750; }
.page-product .product-price-original { font-family: var(--premium-sans); font-size: 15px; }
.page-product .product-price-saving,
.page-product .availability,
.page-product .rating-line,
.page-product .purchase-status { font-size: var(--premium-critical); }
.page-product .purchase-controls { margin-top: 24px; }
.page-product .purchase-controls label { font-size: 12px; letter-spacing: .06em; }
.page-product #productAddToCart { min-height: 50px; font-size: 12px; letter-spacing: .08em; }
.page-product .product-specs { margin-top: 26px; }
.page-product .product-specs dt { font-size: 12px; letter-spacing: .06em; }
.page-product .product-specs dd { font-size: 14px; }
.page-product .presale-badge { background: var(--premium-presale); font-size: 12px; }
.page-product .presale-panel { background: var(--premium-presale); border-color: var(--premium-presale); }
.page-product .presale-panel-label { font-size: 12px; }
.page-product .presale-panel-ship,
.page-product .presale-panel-gift { font-size: var(--premium-critical); }

.page-product .content-block,
.page-product .reviews-section,
.page-product .related-section,
.page-product .important-information { padding: clamp(72px, 7vw, 96px) var(--premium-gutter); }
.page-product .content-block h2,
.page-product .reviews-section h2,
.page-product .related-section h2 { font-size: clamp(42px, 4vw, 50px); line-height: 1.15; letter-spacing: -.015em; }
.page-product .content-block p { font-size: 16px; line-height: 1.75; }
.page-product .reviews-section { background: var(--premium-surface-soft); }
.page-product .reviews-heading { gap: 42px; }
.page-product .reviews-heading h2 { font-size: 44px; }
.page-product .reviews-heading > p:last-child { font-size: 15px; }
.page-product .reviews-summary { background: var(--premium-forest); box-shadow: 0 16px 36px rgba(8, 63, 53, .1); }
.page-product .reviews-summary .review-score > strong { font-size: 44px; letter-spacing: -.02em; }
.page-product .reviews-summary p,
.page-product .rating-distribution-row { font-size: 12px; }
.page-product .reviews-feed { background: var(--premium-surface); box-shadow: 0 14px 34px rgba(8, 63, 53, .05); }
.page-product .review-card p { font-size: 15px; }
.page-product .important-information-item summary { font-size: 22px; }
.page-product .important-information-item p,
.page-product .important-information-legal p { font-size: 15px; line-height: 1.75; }
.page-product .related-products { margin-top: 40px; }
.page-product .related-card h3 { font-size: 26px; line-height: 1.18; }
.page-product .related-card p { font-size: 14px; line-height: 1.6; }
.page-product .presale-dialog-card h2 { font-size: clamp(34px, 4vw, 44px); line-height: 1.12; letter-spacing: -.015em; }
.page-product .presale-dialog-card > p:not(.section-label),
.page-product .presale-acceptance { font-size: 15px; }

/* Account */
.page-account .account-header { height: 84px; padding-inline: max(24px, calc((100vw - var(--premium-container)) / 2)); }
.page-account .account-header p { font-size: 11px; letter-spacing: .12em; }
.page-account .account-intro { padding: 88px max(24px, calc((100vw - var(--premium-container)) / 2)) 72px; }
.page-account .eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .12em; }
.page-account .account-intro h1 { max-width: 880px; font-size: clamp(44px, 4.4vw, 50px); line-height: 1.14; letter-spacing: -.015em; text-wrap: balance; }
.page-account .account-intro > p:last-child { max-width: 660px; margin-top: 24px; font-size: 16px; line-height: 1.72; }
.page-account .auth-shell { width: min(100%, var(--premium-container)); margin-inline: auto; border-inline: 1px solid var(--premium-line); }
.page-account .auth-card { padding: clamp(42px, 5vw, 64px); }
.page-account .auth-card h2,
.page-account .dashboard-head h2,
.page-account .section-head h2 { margin-bottom: 22px; font-size: clamp(32px, 3vw, 38px); line-height: 1.18; letter-spacing: -.01em; }
.page-account .auth-card > p:not(.eyebrow, .form-status),
.page-account .section-copy { font-size: 15px; line-height: 1.7; }
.page-account .auth-card label,
.page-account .review-card label { font-size: 12px; letter-spacing: .06em; }
.page-account .auth-card input { min-height: 50px; font-size: 16px; }
.page-account .auth-card button,
.page-account .review-card button { min-height: 48px; font-size: 12px; letter-spacing: .08em; }
.page-account .dashboard { width: min(100%, var(--premium-container)); margin-inline: auto; padding: 72px 24px 96px; }
.page-account .metric-grid { margin-bottom: 64px; }
.page-account .metric { min-height: 150px; }
.page-account .member-table th { font-size: 12px; letter-spacing: .08em; }
.page-account .member-table td { font-size: 14px; }
.page-account .benefit-card h3,
.page-account .review-card h3 { font-size: 24px; line-height: 1.25; }
.page-account .benefit-card p,
.page-account .review-card p,
.page-account .review-attachments small { font-size: var(--premium-critical); }

/* Admin: operational clarity, not storefront luxury. */
body.page-admin {
  --deep: var(--premium-forest);
  --pine: var(--premium-forest-hover);
  --paper: var(--premium-surface);
  --line: #d7ddd8;
  --gold: var(--premium-brass);
  --muted: var(--premium-muted);
  margin: 0;
  color: var(--premium-ink);
  background: #eef0ec;
  font-family: var(--premium-sans);
  font-size: 14px;
  line-height: 1.55;
}
.page-admin .shell { grid-template-columns: 252px minmax(0, 1fr); }
.page-admin .side { padding: 28px 18px; background: var(--premium-forest); }
.page-admin .side nav { gap: 12px; }
.page-admin .nav-group > p { font-size: 10px; letter-spacing: .12em; }
.page-admin .side button { min-height: 44px; padding: 10px 13px; font-size: 13px; }
.page-admin .main { min-width: 0; padding: 32px clamp(24px, 3vw, 44px) 56px; }
.page-admin h1,
.page-admin h2,
.page-admin h3 { font-family: var(--premium-sans); letter-spacing: 0; }
.page-admin .top h1,
.page-admin .login h1 { margin: 18px 0; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; }
.page-admin .panel { padding: 22px; margin-top: 18px; }
.page-admin .panel-head h2,
.page-admin .modal-box h2 { font-size: 21px; line-height: 1.3; }
.page-admin .panel h3,
.page-admin .translation-grid h3 { font-size: 17px; line-height: 1.35; }
.page-admin .hint,
.page-admin .field small,
.page-admin .table small { font-size: 12px; line-height: 1.6; }
.page-admin .field { gap: 8px; }
.page-admin .field label,
.page-admin .section-label { font-size: 13px; }
.page-admin .field :is(input, select, textarea),
.page-admin .btn { min-height: 44px; font-size: 14px; }
.page-admin .btn.small,
.page-admin .actions .btn { min-height: 38px; }
.page-admin .table th { font-size: 12px; letter-spacing: .04em; text-transform: none; }
.page-admin .table td { font-size: 14px; line-height: 1.55; }
.page-admin .stat strong { font-size: 26px; }
.page-admin .status-badge { font-size: 11px; letter-spacing: .03em; }
.page-admin .modal-box { border: 1px solid var(--premium-line); box-shadow: 0 26px 72px rgba(8, 63, 53, .18); }
.page-admin .login-card { border-color: var(--premium-line); }

html:lang(zh) .page-home :is(.section-heading h1, .science h1, .story h1, .journal h1, .gateway-head h1),
html:lang(zh) .page-product :is(.product-purchase h1, .content-block h2, .reviews-section h2, .related-section h2),
html:lang(zh-Hans) .page-home :is(.section-heading h1, .science h1, .story h1, .journal h1, .gateway-head h1),
html:lang(zh-Hans) .page-product :is(.product-purchase h1, .content-block h2, .reviews-section h2, .related-section h2),
html:lang(zh-Hant) .page-home :is(.section-heading h1, .science h1, .story h1, .journal h1, .gateway-head h1),
html:lang(zh-Hant) .page-product :is(.product-purchase h1, .content-block h2, .reviews-section h2, .related-section h2) {
  max-width: 760px;
  font-family: var(--premium-serif);
  font-size: min(var(--premium-heading-cjk), clamp(42px, 3.7vw, 50px));
  line-height: 1.24;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

html:lang(ja) .page-home :is(h1, h2, h3),
html:lang(ja) .page-product :is(h1, h2, h3),
html:lang(ko) .page-home :is(h1, h2, h3),
html:lang(ko) .page-product :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.24; }

@media (max-width: 1100px) {
  .page-home .site-header,
  .page-product .product-header { grid-template-columns: 170px minmax(0, 1fr) 170px; }
  .page-home .desktop-nav,
  .page-product .product-header nav { gap: 20px; }
  .page-home .gateway-grid { grid-template-columns: repeat(2, 1fr); }
  .page-home .product-rail { grid-auto-columns: minmax(290px, 38vw); }
  .page-home .science { grid-template-columns: 1fr 1fr; }
  .page-product .product-hero { grid-template-columns: minmax(0, 1fr) minmax(400px, .9fr); }
  .page-product .gallery-layout { grid-template-columns: 68px minmax(0, 1fr); }
  .page-product .gallery-thumbs button { width: 64px; height: 64px; flex-basis: 64px; }
  .page-product .product-purchase { padding: 42px; }
}

@media (max-width: 900px) {
  :root { --premium-section-space: 72px; --premium-gutter: 24px; }
  .page-home .site-header,
  .page-product .product-header { height: 76px; grid-template-columns: 1fr auto; padding-inline: 20px; }
  .page-home .hero { padding: 76px 20px 36px; }
  .page-home .hero-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .page-home .gateway-head,
  .page-home .science,
  .page-home .story,
  .page-home .journal { grid-template-columns: 1fr; }
  .page-home .science { min-height: auto; }
  .page-home .science-copy,
  .page-home .story-copy { padding: 72px 24px; }
  .page-home .science-media,
  .page-home .story-media { min-height: 520px; }
  .page-home .service-gateway .section-heading {
    grid-template-columns: 1fr;
    grid-template-areas: "index" "title" "copy";
    row-gap: 16px;
  }
  .page-home .service-gateway .section-heading .section-index { margin: 0; }
  .page-home .service-grid { grid-template-columns: 1fr; }
  .page-home .service-card { min-height: 176px; }
  .page-home .checkout-shell { grid-template-columns: 1fr; }
  .page-product .product-hero { grid-template-columns: 1fr; }
  .page-product .product-gallery { padding: 24px; }
  .page-product .gallery-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "thumbs";
    gap: 12px;
  }
  .page-product .gallery-stage { height: min(58vw, 460px); }
  .page-product .product-purchase { padding: 40px 24px 56px; }
  .page-product .product-purchase h1 { font-size: clamp(40px, 7vw, 48px); }
  .page-product .content-pop,
  .page-product .content-image-text { grid-template-columns: 1fr; }
  .page-account .account-intro { padding: 72px 24px 60px; }
  .page-account .auth-shell { width: 100%; border-inline: 0; }
  .page-account .dashboard { padding-top: 64px; }
  .page-admin .shell { display: block; }
  .page-admin .side nav { display: flex; overflow-x: auto; }
  .page-admin .side button { white-space: nowrap; }
}

@media (max-width: 640px) {
  :root { --premium-section-space: 60px; --premium-gutter: 20px; }
  .page-home .hero { padding-inline: 0; padding-bottom: 24px; }
  .page-home .hero-stage {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-inline: 0;
  }
  .page-home .hero-overlay {
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 34px 20px 62px;
  }
  .page-home .hero-overlay.hidden { display: none; }
  .page-home .hero-overlay h1,
  .page-home .hero-overlay p:not(.section-index) {
    position: static;
    left: auto;
    top: auto;
    transform: none;
  }
  .page-home .hero-overlay h1 { width: 86%; font-size: clamp(34px, 10vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
  .page-home .hero-overlay p:not(.section-index) { width: 82%; margin-top: 12px; font-size: 14px; }
  .page-home .section { padding-inline: 20px; }
  .page-home .science,
  .page-home .story { padding: 0; }
  .page-home .section-heading h1,
  .page-home .section-heading h2,
  .page-home .science h1,
  .page-home .science h2,
  .page-home .story h1,
  .page-home .story h2,
  .page-home .journal h1,
  .page-home .journal h2,
  .page-home .gateway-head h1,
  .page-home .gateway-head h2,
  .page-home .service-gateway .section-heading h1 { font-size: clamp(32px, 9vw, 38px); line-height: 1.22; letter-spacing: 0; }
  .page-home .gateway-grid { grid-template-columns: 1fr; }
  .page-home .gateway-card { min-height: 242px; }
  .page-home .system-grid { grid-template-columns: 1fr; gap: 8px; }
  .page-home .system-card { min-height: 190px; }
  .page-home .product-rail { grid-auto-columns: minmax(278px, 84vw); }
  .page-home .product-card { min-height: 530px; }
  .page-home .product-media { height: 320px; }
  .page-home .science-media,
  .page-home .story-media { min-height: 400px; }
  .page-home .service-gateway { padding-inline: 20px; }
  .page-home .journal { padding-inline: 20px; }
  .page-home .cart-head { min-height: 118px; padding: 26px 22px 22px; }
  .page-home .cart-lines { padding-inline: 22px; }
  .page-home .cart-summary { padding: 24px 22px 28px; }
  .page-home .checkout-main,
  .page-home .checkout-sidebar { padding: 46px 22px; }
  .page-home .checkout-grid { grid-template-columns: 1fr; }
  .page-product .breadcrumb { padding-inline: 20px; overflow-x: auto; white-space: nowrap; }
  .page-product .gallery-stage { height: 300px; }
  .page-product .product-purchase h1,
  .page-product .content-block h2,
  .page-product .reviews-section h2,
  .page-product .related-section h2 { font-size: clamp(32px, 9vw, 38px); line-height: 1.2; letter-spacing: 0; }
  html:lang(zh) .page-home :is(.section-heading h1, .science h1, .story h1, .journal h1, .gateway-head h1),
  html:lang(zh) .page-product :is(.product-purchase h1, .content-block h2, .reviews-section h2, .related-section h2),
  html:lang(zh-Hans) .page-home :is(.section-heading h1, .science h1, .story h1, .journal h1, .gateway-head h1),
  html:lang(zh-Hans) .page-product :is(.product-purchase h1, .content-block h2, .reviews-section h2, .related-section h2),
  html:lang(zh-Hant) .page-home :is(.section-heading h1, .science h1, .story h1, .journal h1, .gateway-head h1),
  html:lang(zh-Hant) .page-product :is(.product-purchase h1, .content-block h2, .reviews-section h2, .related-section h2) {
    font-size: min(var(--premium-heading-cjk-mobile), 9vw);
    line-height: 1.24;
    letter-spacing: 0;
  }
  .page-product .purchase-controls { grid-template-columns: 100px minmax(0, 1fr); }
  .page-product .content-block,
  .page-product .reviews-section,
  .page-product .related-section,
  .page-product .important-information { padding: 60px 20px; }
  .page-product .reviews-heading { margin-bottom: 24px; }
  .page-product .reviews-summary { padding: 26px 22px; }
  .page-product .reviews-summary .review-score > strong { font-size: 38px; }
  .page-product .reviews-feed-heading,
  .page-product .review-card { padding-inline: 22px; }
  .page-account .account-intro { padding-inline: 22px; }
  .page-account .account-intro h1,
  .page-account .auth-card h2,
  .page-account .dashboard-head h2,
  .page-account .section-head h2 { font-size: clamp(32px, 9vw, var(--premium-heading-cjk-mobile)); line-height: 1.22; letter-spacing: 0; }
  .page-account .auth-card,
  .page-account .dashboard { padding-inline: 22px; }
  .page-account .metric-grid { grid-template-columns: 1fr; }
  .page-admin .main { padding: 22px 14px 42px; }
  .page-admin .panel { padding: 18px 14px; }
  .page-admin .modal { padding: 8px; }
  .page-admin .modal-box { padding: 20px 16px; }
}

/* Original goal-led commerce layer */
.page-home .goal-shop {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 112px);
  background: var(--premium-paper);
}

.page-home .goal-shop-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .65fr);
  gap: clamp(32px, 8vw, 128px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.page-home .goal-shop-heading h2,
.page-home .section-heading h2,
.page-home .gateway-head h2,
.page-home .science h2,
.page-home .story h2,
.page-home .journal h2 {
  margin: 0;
  max-width: 760px;
  color: var(--premium-forest);
  font-family: var(--premium-serif);
  font-size: clamp(44px, 5.2vw, 74px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}

.page-home .goal-shop-heading > p:last-child {
  max-width: 540px;
  margin: 0 0 4px;
  color: var(--premium-muted);
  font-size: var(--premium-body);
  line-height: 1.7;
}

.page-home .goal-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.page-home .goal-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--premium-forest) 24%, transparent);
  background: var(--premium-forest);
  color: #fffdf8;
  cursor: pointer;
  text-align: left;
  isolation: isolate;
}

.page-home .goal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(3, 38, 31, .02) 28%, rgba(3, 38, 31, .88) 100%);
  transition: background-color .35s ease;
}

.page-home .goal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .75, .25, 1);
}

.page-home .goal-card-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 2vw, 34px);
}

.page-home .goal-card-copy small {
  color: #d7ad70;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.page-home .goal-card-copy strong {
  max-width: 12ch;
  font-family: var(--premium-serif);
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 500;
  line-height: 1.02;
}

.page-home .goal-card-copy em {
  max-width: 27ch;
  color: rgba(255, 253, 248, .78);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.page-home .goal-card:hover img,
.page-home .goal-card:focus-visible img,
.page-home .goal-card.is-active img {
  transform: scale(1.035);
}

.page-home .goal-card.is-active {
  outline: 3px solid var(--premium-brass);
  outline-offset: -4px;
}

.page-home .goal-card:focus-visible,
.page-home .goal-clear:focus-visible {
  outline: 3px solid var(--premium-brass);
  outline-offset: 4px;
}

.page-home .goal-clear {
  display: block;
  width: max-content;
  margin: 26px auto 0;
  color: var(--premium-forest);
}

.page-home .goal-clear.is-active {
  border-bottom-color: var(--premium-brass);
}

.page-home .science-media picture,
.page-home .story-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-home .science-media picture img,
.page-home .story-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .page-home .goal-shop-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-home .goal-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-home .goal-shop {
    padding-inline: 20px;
  }

  .page-home .goal-shop-heading h2,
  .page-home .section-heading h2,
  .page-home .science h2,
  .page-home .story h2,
  .page-home .journal h2,
  .page-home .gateway-head h2,
  .page-home .service-gateway .section-heading h2 {
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.16;
    letter-spacing: -.015em;
  }

  .page-home .goal-shop-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 78vw);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .page-home .goal-shop-grid::-webkit-scrollbar { display: none; }
  .page-home .goal-card { scroll-snap-align: start; }
  .page-home .goal-card-copy strong { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .goal-card img { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-product *,
  .page-account *,
  .page-admin * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .page-home .reveal { opacity: 1 !important; transform: none !important; }
}
