/* Megazines Audio — layout and components.
   Colours, typography tokens, and button classes come from
   ../assets/tokens.css (load that file first). Do not redefine those here.
*/

:root {
  --color-pending-bg: #ffe566;
  --color-pending-ink: #1a1a1a;
  --color-placeholder-bg: var(--color-surface-alt);
  --color-placeholder-ink: var(--color-text-muted);
  --color-header-bg: #1F1D1A;
  --color-nav: #F4EFE6;
  --color-nav-accent: #C9A45C;
  --header-height: 5.5rem;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: 0;
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }

p, ul, ol, figure {
  margin: 0 0 var(--space-4);
}

p:last-child,
ul:last-child,
ol:last-child,
figure:last-child {
  margin-bottom: 0;
}

/* tokens.css colours body links; keep chrome and buttons on-palette */
.logo,
.logo:hover {
  color: var(--color-nav);
}

.site-nav a,
.site-nav a:hover {
  color: var(--color-nav);
}

.site-footer a,
.site-footer a:hover {
  color: var(--color-text-inverse);
}

a.btn-primary,
a.btn-primary:hover {
  color: #fff;
  text-decoration: none;
}

a.btn-secondary {
  color: var(--color-text);
  text-decoration: none;
}

a.btn-secondary:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
}

.on-dark a.btn-primary,
.on-dark a.btn-primary:hover {
  color: var(--color-dark);
}

.on-dark a.btn-secondary {
  color: var(--color-text-inverse);
}

.on-dark a.btn-secondary:hover {
  color: var(--color-accent-light);
}

a.btn-icon,
a.btn-icon:hover {
  text-decoration: none;
}

/* Size icon files to match tokens.css .btn svg / .btn-icon svg */
.btn img,
.btn-icon img {
  width: 20px;
  height: 20px;
  flex: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  z-index: 200;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
  color: #fff;
}

/* —— Pending / placeholder markers —— */

.pending {
  background: var(--color-pending-bg);
  color: var(--color-pending-ink);
  padding: 0.05em 0.28em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-style: normal;
}

.placeholder-image {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    repeating-linear-gradient(
      135deg,
      var(--color-placeholder-bg),
      var(--color-placeholder-bg) 12px,
      transparent 12px,
      transparent 24px
    );
  background-color: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  color: var(--color-placeholder-ink);
  min-height: 12rem;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.placeholder-image span {
  background: var(--color-surface);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.placeholder-image--hero {
  min-height: 14rem;
  margin-bottom: var(--space-6);
}

.placeholder-image--card {
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

/* —— Layout —— */

.wrap {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

main {
  flex: 1;
}

main:not(.page) {
  display: flex;
  flex-direction: column;
}

.page {
  padding: var(--space-6) 0 var(--space-8);
}

/* —— Header / nav (dark, no white bar) —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid rgba(201, 164, 92, 0.22);
}

/* Home: chrome sits on the hero — transparent, no bar */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
}

.header-inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-nav-accent);
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
}

.logo-wordmark {
  font-family: var(--font-display-latin);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: calc(var(--gutter) * -0.25);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: transparent;
}

.nav-toggle-btn:hover {
  background: rgba(201, 164, 92, 0.12);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-nav);
  position: relative;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle-btn:hover .nav-toggle-bars,
.nav-toggle-btn:hover .nav-toggle-bars::before,
.nav-toggle-btn:hover .nav-toggle-bars::after {
  background: var(--color-nav-accent);
}

.nav-toggle:checked + .nav-toggle-btn .nav-toggle-bars {
  background: transparent;
}

.nav-toggle:checked + .nav-toggle-btn .nav-toggle-bars::before,
.nav-toggle:checked + .nav-toggle-btn .nav-toggle-bars::after {
  background: var(--color-nav-accent);
}

.nav-toggle:checked + .nav-toggle-btn .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-btn .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #171513;
  border-top: 1px solid rgba(201, 164, 92, 0.28);
  border-bottom: 1px solid rgba(201, 164, 92, 0.28);
  padding: var(--space-3) var(--gutter) var(--space-4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.site-header:has(.nav-toggle:checked) {
  background: #171513;
  border-bottom: 1px solid rgba(201, 164, 92, 0.28);
}

@media (max-width: 600px) {
  .nav-toggle:checked ~ .site-nav {
    min-height: calc(100svh - var(--header-height));
    box-sizing: border-box;
  }
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, var(--container));
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  padding: 0.9rem 0.15rem;
  border-bottom: 1px solid rgba(201, 164, 92, 0.18);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  color: var(--color-nav);
  width: 100%;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-nav-accent);
}

.site-nav li:last-child a {
  border-bottom: 0;
}

@media (min-width: 601px) {
  .nav-toggle-btn {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    transform: none;
    width: auto;
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.35rem 1.75rem;
    width: auto;
    margin: 0;
  }

  .site-nav a {
    width: auto;
    padding: 0.35rem 0;
    border-bottom: 0;
    box-shadow: inset 0 -2px 0 transparent;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--color-nav-accent);
    box-shadow: inset 0 -2px 0 var(--color-nav-accent);
  }
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* —— Hero (index) —— */
/* B2 overlays from assets/images/hero-options/b-variants/README.md (WCAG AA). */

.hero {
  position: relative;
  color: var(--color-text-inverse);
  min-height: min(100svh, 900px);
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1F1D1A;
}

.hero-media,
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 50%;
  max-width: none;
}

/* Desktop B2 left-side gradient + a soft top fade so overlaid nav stays AA */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23,21,19,.88) 0%, rgba(23,21,19,.55) 5.5rem, transparent 10rem),
    linear-gradient(90deg, rgba(23,21,19,.9), rgba(23,21,19,.75) 45%, transparent 80%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-8);
  max-width: 36rem;
}

.hero h1,
.hero .tagline {
  color: var(--color-text-inverse);
}

.hero h1 {
  font-family: var(--font-display-latin);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

.hero .tagline {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  margin: 0 0 var(--space-5);
}

.hero .lead {
  color: var(--color-text-inverse);
  max-width: var(--measure);
}

.hero-caption {
  margin: var(--space-5) 0 0;
  font-size: var(--fs-xs);
  color: var(--color-text-inverse-muted);
}

/* Match <picture> mobile breakpoint at 600px; B2 deepened mobile mask */
@media (max-width: 600px) {
  :root {
    --header-height: 4rem;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(23,21,19,.9) 0%, rgba(23,21,19,.7) 4rem, transparent 7.5rem),
      linear-gradient(180deg, rgba(23,21,19,.88), rgba(23,21,19,.82) 62%, rgba(23,21,19,.45));
  }

  .hero-copy {
    padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-8);
    max-width: none;
  }

  .hero .lead {
    color: var(--color-text-inverse-muted);
  }

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

  .hero .hero-actions .btn {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 601px) {
  .hero-copy {
    padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-9);
  }
}

/* —— Page sections —— */

.page-header {
  max-width: var(--measure);
  margin-bottom: var(--space-6);
}

.page-header h1 {
  margin-bottom: var(--space-4);
}

.lead,
.page-header p {
  color: var(--color-text);
}

.section {
  margin-top: var(--space-7);
}

.section h2 {
  margin-bottom: var(--space-4);
}

/* —— Product cards —— */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: 0;
}

@media (min-width: 48rem) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-4);
}

.product-card h2 {
  font-size: var(--fs-xl);
  margin: 0;
}

.product-card h2 .en {
  display: block;
  font-family: var(--font-display-latin);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.product-card ul {
  padding-left: 1.15rem;
  margin: 0;
  flex: 1;
}

.product-card li + li {
  margin-top: var(--space-2);
}

.product-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.note {
  margin-top: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: var(--measure);
}

/* —— Sources —— */

.sources {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.sources h2 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.sources ol {
  padding-left: 1.4rem;
  margin-bottom: var(--space-4);
}

.sources a {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.sources-note {
  max-width: 48rem;
}

/* —— About / contact —— */

.prose {
  max-width: var(--measure);
}

.steps {
  list-style: decimal;
  padding-left: 1.35rem;
}

.steps li + li {
  margin-top: var(--space-3);
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: 0 0 var(--space-7);
}

@media (min-width: 48rem) {
  .contact-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: var(--fs-xl);
  margin: 0;
}

.contact-card p {
  margin: 0;
  flex: 1;
}

.notes h2 {
  margin-bottom: var(--space-4);
}

.notes ul {
  max-width: 46rem;
  padding-left: 1.2rem;
}

.notes li + li {
  margin-top: var(--space-3);
}

/* —— Footer —— */

.site-footer {
  background: var(--color-dark);
  color: var(--color-text-inverse);
  margin-top: auto;
  padding: var(--space-6) 0;
}

.footer-inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand {
  font-family: var(--font-display-latin);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: 0.02em;
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--fs-sm);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

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

.footer-links img {
  width: 20px;
  height: 20px;
  flex: none;
}

@media (min-width: 48rem) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-5);
  }
}

/* Wayne 2026-11-13: header logo/wordmark and footer brand removed */
.site-header .header-inner, .site-header > div { justify-content: flex-end; }
.footer-inner { justify-content: flex-end; }

/* footer email icon on dark */
.footer-links img.icon-invert { filter: invert(1) brightness(1.1); }

/* —— Home bands (2026-11-13) —— */
.home-band { padding: 4.5rem 0; background: #F7F4EE; }
.home-band--dark { background: #1F1D1A; color: #F4EFE6; }
.home-band .wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.home-band .eyebrow { font-family: "Cormorant Garamond", serif; letter-spacing: .2em; font-size: .95rem; color: #8C6A2E; margin: 0 0 .25rem; }
.home-band--dark .eyebrow { color: #C9A45C; }
.home-band h2 { font-family: "Noto Serif TC", serif; margin: 0 0 2rem; }
.home-band--dark h2 { color: #F4EFE6; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.feature { background: #fff; border: 1px solid rgba(140,106,46,.25); border-radius: 14px; padding: 1.75rem; }
.feature h3 { font-family: "Noto Serif TC", serif; font-size: 1.2rem; margin: .5rem 0 .6rem; }
.feature p { margin: 0; line-height: 1.8; }
.feature-no { font-family: "Cormorant Garamond", serif; font-size: 2rem; line-height: 1; color: #8C6A2E; display: block; }
.step-grid { list-style: none; padding: 0; margin: 0 0 2.25rem; display: grid; grid-template-columns: 1fr; gap: 1rem; counter-reset: none; }
.step-grid li { border: 1px solid rgba(201,164,92,.35); border-radius: 14px; padding: 1.4rem 1.5rem; line-height: 1.7; }
.step-grid .feature-no { color: #C9A45C; margin-bottom: .6rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 48rem) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .step-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .band-actions .btn { width: 100%; justify-content: center; }
}

/* Wayne 2026-11-13: logo back top-left; dark gradient bands */
.site-header .header-inner, .site-header > div { justify-content: space-between; }
.logo-full { height: 56px; width: auto; display: block; }
@media (max-width: 600px) { .logo-full { height: 44px; } }
.home-band--fade { background: linear-gradient(180deg, #171513 0%, #26211b 50%, #1F1D1A 100%); color: #F4EFE6; }
.home-band--fade h2 { color: #F4EFE6; }
.home-band--fade .eyebrow { color: #C9A45C; }
.home-band--fade .feature { background: rgba(255,255,255,.04); border-color: rgba(201,164,92,.35); }
.home-band--fade .feature h3 { color: #F4EFE6; }
.home-band--fade .feature p { color: rgba(244,239,230,.85); }
.home-band--fade .feature-no { color: #C9A45C; }
.home-band--dark { background: linear-gradient(180deg, #1F1D1A 0%, #1a1714 100%); }

/* Wayne 2026-11-13: inner pages dark like home */
body.theme-dark {
  --color-bg: #171513;
  --color-surface: rgba(255,255,255,.04);
  --color-surface-alt: #2A2723;
  --color-text: #F4EFE6;
  --color-text-muted: #A9A196;
  --color-border: rgba(201,164,92,.35);
  --color-border-strong: rgba(244,239,230,.45);
  --color-link: #C9A45C;
  --color-link-hover: #E0C384;
  --color-accent-tint: rgba(201,164,92,.08);
  color-scheme: dark;
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(201,164,92,.10), transparent 60%),
    linear-gradient(180deg, #1F1D1A 0%, #171513 40%, #1a1714 100%);
}
body.theme-dark .contact-card { box-shadow: none; }
body.theme-dark .placeholder-image span { background: #2A2723; }

/* Home bands: subtle record-groove texture + brass glow instead of flat colour */
.home-band--fade {
  background:
    radial-gradient(40rem 22rem at 90% 10%, rgba(201,164,92,.16), transparent 65%),
    linear-gradient(180deg, rgba(23,21,19,1) 0%, rgba(23,21,19,.86) 18%, rgba(31,29,26,.9) 100%),
    url("../assets/images/hero-options/b-variants/hero-B2-ai-texture-grooves-bg-mobile-780x1200.webp") center 30% / cover no-repeat;
}
.home-band--dark {
  background:
    radial-gradient(36rem 20rem at 8% 85%, rgba(201,164,92,.14), transparent 65%),
    linear-gradient(180deg, rgba(31,29,26,.9) 0%, rgba(26,23,20,.88) 70%, rgba(26,23,20,1) 100%),
    url("../assets/images/hero-options/b-variants/hero-B2-ai-texture-grooves-bg-desktop-1920x900.webp") center / cover no-repeat;
}
.home-band--fade .feature, .home-band--dark .step-grid li { backdrop-filter: blur(3px); background: rgba(23,21,19,.45); }
body.theme-dark .placeholder-image {
  background: repeating-linear-gradient(135deg, rgba(201,164,92,.06), rgba(201,164,92,.06) 12px, transparent 12px, transparent 24px), rgba(255,255,255,.03);
  border-color: rgba(201,164,92,.35);
}
body.theme-dark .placeholder-image span { background: #2A2723; color: #C9A45C; }

/* About v3 */
.prose h3 { font-size: var(--fs-lg, 1.2rem); color: #C9A45C; margin: 0 0 .6rem; }
.bullets { padding-left: 1.2rem; }
.bullets li + li { margin-top: .6rem; }
.testimonial { margin: 1.75rem 0 0; padding: 1.25rem 1.5rem; border-left: 3px solid #C9A45C; background: rgba(201,164,92,.07); border-radius: 0 12px 12px 0; }
.testimonial p { margin: 0 0 .5rem; font-family: "Noto Serif TC", serif; font-size: 1.1rem; }
.testimonial cite { font-style: normal; font-size: .9rem; color: #A9A196; }
@media (min-width: 48rem) { .step-grid { grid-template-columns: repeat(3, 1fr); } }

/* Wayne 2026-11-13: bands 2-3 use other audio close-ups instead of vinyl (AI-generated, unbranded) */
.home-band--fade {
  background:
    linear-gradient(90deg, rgba(23,21,19,.95) 0%, rgba(23,21,19,.82) 45%, rgba(23,21,19,.45) 100%),
    linear-gradient(180deg, rgba(23,21,19,1) 0%, rgba(23,21,19,0) 20%),
    url("../assets/images/bands/band-amp-knob-ai.jpg") right center / cover no-repeat, #171513;
}
.home-band--dark {
  background:
    linear-gradient(270deg, rgba(23,21,19,.95) 0%, rgba(23,21,19,.82) 40%, rgba(23,21,19,.55) 100%),
    linear-gradient(180deg, rgba(23,21,19,.9) 0%, rgba(23,21,19,0) 25%, rgba(26,23,20,0) 80%, rgba(26,23,20,1) 100%),
    url("../assets/images/bands/band-spike-rack-ai.jpg") left center / cover no-repeat, #1a1714;
}
@media (max-width: 600px) {
  .home-band--fade, .home-band--dark { background-size: auto, auto, auto 100%; }
  .home-band--fade .feature, .home-band--dark .step-grid li { background: rgba(23,21,19,.7); }
}

/* Wayne 2026-11-13: outline WhatsApp/Facebook buttons that show the background */
.on-dark a.btn-secondary.btn-whatsapp, .on-dark a.btn-secondary.btn-facebook {
  background: rgba(23,21,19,.25); color: #F4EFE6; border: 1px solid rgba(244,239,230,.55);
}
.on-dark a.btn-secondary.btn-whatsapp:hover, .on-dark a.btn-secondary.btn-facebook:hover {
  border-color: #C9A45C; color: #C9A45C; background: rgba(201,164,92,.08);
}

/* Order flow stepper: vertical on mobile, horizontal with connector + arrows on desktop */
.flow { list-style: none; margin: 0 0 2.25rem; padding: 0; position: relative; display: grid; gap: 1.5rem; }
.flow-step { position: relative; display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: 1rem; }
.flow-dot {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: #C9A45C;
  border: 1.5px solid #C9A45C; background: #1a1714; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px rgba(201,164,92,.08);
}
.flow-text { margin: 0; line-height: 1.7; color: #F4EFE6; }
/* vertical connector + arrow (mobile) */
.flow-step:not(:last-child)::before {
  content: ""; position: absolute; left: 1.5rem; top: 3rem; height: calc(100% - 3rem + 1.5rem);
  border-left: 1.5px solid rgba(201,164,92,.55); transform: translateX(-.75px);
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 1.5rem; bottom: -1.5rem; width: 8px; height: 8px;
  border-right: 1.5px solid #C9A45C; border-bottom: 1.5px solid #C9A45C;
  transform: translate(-50%, -2px) rotate(45deg);
}
@media (min-width: 60rem) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: 0; }
  .flow-step { grid-template-columns: 1fr; justify-items: center; text-align: center; align-items: start; padding: 0 .6rem; }
  .flow-dot { width: 3.75rem; height: 3.75rem; font-size: 1.8rem; }
  .flow-text { font-size: .95rem; }
  .flow-step:not(:last-child)::before {
    left: calc(50% + 1.875rem + .5rem); top: 1.875rem; height: 0; width: calc(100% - 3.75rem - 1rem);
    border-left: 0; border-top: 1.5px solid rgba(201,164,92,.55); transform: none;
  }
  .flow-step:not(:last-child)::after {
    left: auto; right: calc(-50% + 1.875rem + .5rem); bottom: auto; top: 1.875rem;
    border-bottom: 0; border-top: 1.5px solid #C9A45C;
    transform: translate(0, -50%) rotate(45deg); transform-origin: center;
  }
}
body.theme-dark .flow-dot { background: #1F1D1A; }

/* v17: each step in its own box, boxes linked by line + arrow */
.flow { gap: 2rem; }
.flow-step {
  grid-template-columns: 2.75rem 1fr; padding: 1rem 1.1rem;
  border: 1px solid rgba(201,164,92,.45); border-radius: 12px;
  background: rgba(23,21,19,.72);
}
.flow-dot { width: 2.75rem; height: 2.75rem; font-size: 1.35rem; box-shadow: none; }
.flow-step:not(:last-child)::before {
  left: 50%; top: 100%; height: 2rem; width: 0; transform: translateX(-.75px);
  border-left: 1.5px solid rgba(201,164,92,.7); border-top: 0;
}
.flow-step:not(:last-child)::after {
  left: 50%; right: auto; top: auto; bottom: -2rem; width: 9px; height: 9px;
  border: 0; border-right: 1.5px solid #C9A45C; border-bottom: 1.5px solid #C9A45C;
  transform: translate(-50%, -3px) rotate(45deg);
}
@media (min-width: 60rem) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: 1.75rem; align-items: stretch; }
  .flow-step { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: start; gap: .8rem; padding: 1.25rem .75rem 1.1rem; }
  .flow-dot { width: 3rem; height: 3rem; font-size: 1.5rem; }
  .flow-text { font-size: .92rem; }
  .flow-step:not(:last-child)::before {
    left: 100%; top: 50%; width: 1.75rem; height: 0; transform: none;
    border-left: 0; border-top: 1.5px solid rgba(201,164,92,.7);
  }
  .flow-step:not(:last-child)::after {
    left: auto; right: -1.75rem; bottom: auto; top: 50%;
    border: 0; border-top: 1.5px solid #C9A45C; border-right: 1.5px solid #C9A45C;
    transform: translate(-1px, -50%) rotate(45deg);
  }
}
body.theme-dark .flow-step { background: rgba(31,29,26,.9); }

/* v18: wider desktop layout (Wayne 2026-11-13 23:36) */
:root { --container: 1320px; }
.home-band .wrap { max-width: 1320px; width: min(100% - 2 * var(--gutter), 1320px); padding: 0; }
@media (min-width: 60rem) {
  :root { --measure: 52em; }
  .hero-copy { max-width: 46rem; }
  .notes ul, .sources-note { max-width: 64rem; }
  .flow { gap: 1.5rem; }
  .flow-step { padding: 1.4rem 1rem 1.25rem; }
  .flow-text { font-size: .98rem; }
  .flow-step:not(:last-child)::before { width: 1.5rem; }
  .flow-step:not(:last-child)::after { right: -1.5rem; }
}
@media (min-width: 60rem) {
  .prose { max-width: none; }
  .prose p, .prose .bullets, .prose .testimonial { max-width: 64rem; }
  .placeholder-image--hero { aspect-ratio: 21 / 8; }
}

/* v19: customer reviews (about page) */
.reviews-note { color: #A9A196; font-size: .9rem; margin: -.25rem 0 1.25rem; }
.review-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  margin: 0; padding: 1.25rem 1.35rem 1.1rem; border: 1px solid rgba(201,164,92,.35);
  border-left: 3px solid #C9A45C; border-radius: 10px; background: rgba(31,29,26,.9);
  display: flex; flex-direction: column; gap: .6rem;
}
.review-card p { margin: 0; color: #F4EFE6; line-height: 1.75; max-width: none !important; overflow-wrap: anywhere; }
.review-card cite { margin-top: auto; padding-top: .4rem; font-style: normal; font-size: .85rem; color: #C9A45C; letter-spacing: .02em; }
.review-date { color: #A9A196; font-size: .85rem; }

/* v20: mobile one-page layout (index.html, ≤600px). Desktop unchanged. */
.m-long, .m-anchors { display: none; }
@media (max-width: 600px) {
  .page-home .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(23,21,19,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201,164,92,.25);
  }
  .page-home .header-inner { flex-wrap: wrap; row-gap: .35rem; padding-bottom: .5rem; }
  .page-home .nav-toggle-btn, .page-home .site-nav { display: none !important; }
  .page-home .m-anchors { display: flex; width: 100%; justify-content: space-between; gap: .25rem; }
  .m-anchors a {
    flex: 1; text-align: center; padding: .45rem .2rem; font-size: .9rem; color: #F4EFE6;
    border: 1px solid rgba(201,164,92,.45); border-radius: 999px; text-decoration: none; white-space: nowrap;
  }
  .m-anchors a:active, .m-anchors a:hover { color: #C9A45C; border-color: #C9A45C; }
  .page-home .hero-copy { padding-top: 8.5rem; }
  .page-home [id] { scroll-margin-top: 7.5rem; }
  .m-long {
    display: block; color: #F4EFE6;
    --color-bg: #171513; --color-surface: rgba(255,255,255,.04); --color-surface-alt: #2A2723;
    --color-text: #F4EFE6; --color-text-muted: #A9A196; --color-border: rgba(201,164,92,.35);
    --color-border-strong: rgba(244,239,230,.45); --color-link: #C9A45C; --color-link-hover: #E0C384;
    background: linear-gradient(180deg, #1F1D1A 0%, #171513 50%, #1a1714 100%);
  }
  .m-section { padding: 2.5rem 0 1rem; border-top: 1px solid rgba(201,164,92,.2); }
  .m-title { font-size: 1.9rem; margin: 0 0 1.25rem; }
  .m-long .contact-card { box-shadow: none; }
}

/* v23: flatten home hero so the first screen already shows 服務特點 (Wayne 2026-11-20) */
/* Before: desktop min-height min(100svh, 900px); mobile min-height 100svh. */
.page-home .hero {
  flex: 0 0 auto;
  min-height: calc(100svh - 12rem);
}
.page-home .hero-media img {
  object-fit: cover;
  object-position: 50% 50%;
}
@media (min-width: 601px) {
  .page-home .hero-copy {
    padding-bottom: var(--space-7); /* 3rem; was 6rem */
  }
}
@media (max-width: 600px) {
  .page-home .hero {
    min-height: calc(100svh - 10rem);
  }
  .page-home .hero-copy {
    padding-bottom: var(--space-5); /* 1.5rem; was 4rem */
  }
  .page-home .hero-media img {
    object-position: 50% 40%;
  }
  .page-home .hero + .home-band {
    padding-top: 2.25rem; /* was 4.5rem; heading reaches the first screen sooner */
  }
}
@media (max-width: 600px) and (max-height: 740px) {
  .page-home .hero {
    min-height: calc(100svh - 7.75rem);
  }
  .page-home .hero-copy {
    padding-top: 7.75rem;
    padding-bottom: var(--space-4);
  }
  .page-home .hero + .home-band {
    padding-top: 1.5rem;
  }
}
