/* =========================================================
   Modo Kitchens — shared stylesheet
   Colours, fonts and spacing live in :root below.
   ========================================================= */

:root {
  --warm-white: #FBF8F3;
  --white: #FFFDF9;
  --cream: #F5EFE6;
  --beige: #ECE3D5;
  --sand: #DCCDB6;
  --line: #E2D8C8;
  --charcoal: #2A2926;
  --muted: #625D55;
  --sage: #A6B49E;
  --sage-light: #B9C5B2;
  --sage-deep: #5F7159;
  --sage-soft: #E3E9DD;
  --error: #A3412C;
  --field-border: #968A77;   /* 3.3:1 against the form, so fields are easy to find */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --max: 1180px;
  --radius: 20px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(42, 41, 38, .04), 0 14px 36px -16px rgba(42, 41, 38, .22);
  --shadow-lg: 0 2px 4px rgba(42, 41, 38, .04), 0 30px 60px -28px rgba(42, 41, 38, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; accent-color: var(--sage-deep); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--sage); color: var(--charcoal); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--charcoal);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); letter-spacing: -.028em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
/* Keyboard focus: the outline follows each element's own shape. Light sage on dark surfaces keeps it visible (6.7:1). */
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .trust :focus-visible,
.cta-band :focus-visible, .price-card.featured :focus-visible { outline-color: var(--sage); }
.site-header .nav-menu :focus-visible { outline-color: var(--sage-deep); } /* the dropdown panel is light */
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } }

.sr-only {
  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: 16px; top: -60px; z-index: 100;
  background: var(--sage); color: var(--charcoal); padding: 10px 16px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.6rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.06rem; }
.btn-dark { background: var(--charcoal); color: var(--warm-white); }
.btn-dark:hover { background: var(--sage-deep); }
.btn-sage { background: var(--sage); color: var(--charcoal); }
.btn-sage:hover { background: var(--sage-light); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-outline:hover { background: var(--charcoal); color: var(--warm-white); }
.btn-outline-light { border-color: rgba(251, 248, 243, .5); color: var(--warm-white); background: transparent; }
.btn-outline-light:hover { border-color: var(--warm-white); background: rgba(251, 248, 243, .08); }
.btn:disabled { opacity: .7; cursor: progress; }

.text-link {
  display: inline-block; padding-block: 10px;
  font-weight: 600; color: var(--charcoal);
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 5px; text-decoration-color: var(--sage);
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--charcoal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--charcoal); color: var(--warm-white);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .95rem; font-weight: 500;
  color: rgba(251, 248, 243, .74); transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--warm-white); }
.header-cta { padding: .72rem 1.25rem; font-size: .93rem; }
.menu-toggle { display: none; }
.nav .nav-cta { display: none; }

/* Services dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav .nav-parent { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 12px; height: 12px; transition: transform .3s ease; }
.nav-menu { display: none; }

@media (min-width: 1021px) {
  .nav > a, .nav .nav-parent { position: relative; padding: 8px 0; }
  .nav > a::after, .nav .nav-parent::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
    background: var(--sage); transform: scaleX(0); transform-origin: right;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  }
  .nav > a:hover::after, .nav > a[aria-current="page"]::after,
  .nav-item:hover .nav-parent::after, .nav .nav-parent[aria-current="page"]::after {
    transform: scaleX(1); transform-origin: left;
  }

  .nav-menu {
    position: absolute; top: calc(100% + 20px); left: 50%; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 580px; padding: 14px;
    background: var(--warm-white); border-radius: 22px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
    transition: opacity .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s;
  }
  .nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
  .nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
  }
  .nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
  .nav .nav-menu a {
    display: grid; grid-template-columns: 40px 1fr; gap: 2px 14px; align-items: center;
    padding: 12px; border-radius: 14px; color: var(--charcoal);
    transition: background-color .2s ease;
  }
  .nav .nav-menu a:hover { background: var(--sage-soft); color: var(--charcoal); }
  .nav-menu .menu-icon {
    grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px;
    border-radius: 12px; background: var(--sage-soft); color: var(--sage-deep);
    transition: background-color .2s ease, color .2s ease;
  }
  .nav .nav-menu a:hover .menu-icon { background: var(--charcoal); color: var(--warm-white); }
  .nav-menu .menu-icon svg { width: 20px; height: 20px; }
  .nav-menu strong { font-weight: 600; font-size: .95rem; line-height: 1.25; }
  .nav-menu small { font-size: .84rem; line-height: 1.35; color: var(--muted); }
  .nav .nav-menu .menu-feature {
    grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
    margin-top: 6px; padding: 16px 18px; background: var(--charcoal); color: var(--warm-white);
  }
  .nav .nav-menu .menu-feature:hover { background: var(--sage-deep); color: var(--warm-white); }
  .menu-feature span { font-weight: 600; }
}

@media (max-width: 1020px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 11px; border: 0; background: none; cursor: pointer;
  }
  .menu-toggle .bar {
    display: block; width: 100%; height: 1.5px; background: var(--warm-white);
    transition: transform .25s ease;
  }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 32px 28px; background: var(--charcoal);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-item { display: block; }
  .nav .nav-parent { display: flex; width: 100%; }
  .caret { display: none; }
  .nav .nav-cta {
    display: block; margin-top: 20px; padding: 16px; border: 0; border-radius: 999px;
    background: var(--sage); color: var(--charcoal); font-weight: 600; text-align: center;
  }
  .nav .nav-cta:hover { color: var(--charcoal); background: var(--sage-light); }
  .header-cta { margin-left: auto; }
}
@media (max-width: 600px) { .nav { padding-inline: 16px; } }
@media (max-width: 520px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .brand img { height: 48px; }
}

/* ---------- Hero (one pattern, every page) ---------- */
.hero { background: var(--beige); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(36px, 5vw, 80px);
  padding: clamp(56px, 8vw, 112px) 0;
}
.hero h1 { max-width: 12ch; }
.hero-text p {
  max-width: 34ch; margin: 24px 0 38px;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted);
}
.hero-art img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: 28px; box-shadow: var(--shadow-lg); background: var(--sand);
}
/* 3D kitchen (home page): sits over the photo, which stays as the fallback. */
.hero-art { position: relative; }
.hero-3d { position: absolute; inset: -4% -2%; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-3d canvas { display: block; width: 100%; height: 100%; }
.hero-art.has-3d .hero-3d { opacity: 1; }
.hero-art.has-3d img { opacity: 0; transition: opacity .4s ease; }

/* Colour switcher under the 3D kitchen */
.kitchen-swatches {
  position: absolute; left: 50%; bottom: -34px; z-index: 2; transform: translate(-50%, 8px);
  display: flex; gap: 10px; padding: 8px 10px;
  background: rgba(255, 253, 249, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .5s ease 4s, transform .5s ease 4s; /* appears once the kitchen has built */
}
.hero-art.has-3d .kitchen-swatches { opacity: 1; transform: translate(-50%, 0); }
.swatch {
  width: 32px; height: 32px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--swatch); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--charcoal); }
.swatch:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; }
.hero--compact .hero-inner { grid-template-columns: 1fr; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.hero--compact h1 { max-width: 15ch; }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .hero-text p { margin-inline: auto; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
}

/* ---------- Promise strip ---------- */
.trust { background: var(--charcoal); color: var(--warm-white); }
.trust-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px;
  margin: 0 auto; padding: 26px 0; list-style: none;
}
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .98rem; }
.trust-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--sage); }
@media (max-width: 900px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-list { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.bg-tint { background: var(--cream); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head > div { max-width: 640px; }
.section-head p { margin-top: 14px; font-size: 1.08rem; color: var(--muted); max-width: 48ch; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin-inline: auto; }
.center-action { display: flex; justify-content: center; margin-top: 48px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Ruled columns: heading + line of text, no boxes */
.plain-list { gap: 40px 48px; margin: 0; padding: 0; list-style: none; }
.plain-list > * { padding-top: 24px; border-top: 1.5px solid var(--charcoal); }
.plain-list h3 { margin-bottom: 10px; }
.plain-list p { color: var(--muted); }

/* Boxes only where comparison needs them: reviews and prices */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.icon {
  display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px;
  border-radius: 14px; background: var(--sage-soft); color: var(--sage-deep);
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Projects ---------- */
.project { display: flex; flex-direction: column; }
.project .media { overflow: hidden; aspect-ratio: 480 / 340; border-radius: var(--radius); background: var(--cream); }
.project .media img { width: 100%; height: 100%; object-fit: cover; }
.project h3 { margin-top: 22px; }
.project .meta { margin-top: 6px; font-size: .95rem; font-weight: 600; color: var(--sage-deep); }
.project p { margin-top: 8px; color: var(--muted); }

.case {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.case + .case { margin-top: clamp(64px, 8vw, 112px); }
.case:nth-child(even) .case-media { order: 2; }
.case-media { overflow: hidden; aspect-ratio: 480 / 340; border-radius: 24px; background: var(--cream); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-body h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.case-body .lead { margin-top: 14px; max-width: 40ch; font-size: 1.1rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 40px; margin: 28px 0 0; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- About (home) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 88px); }
.about-art img { width: 100%; aspect-ratio: 26 / 21; object-fit: cover; border-radius: 28px; background: var(--sand); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
.about-text .lead { margin-top: 20px; }
.about-text .btn { margin-top: 36px; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-art { order: 2; }
}

/* ---------- Reviews: two rows drifting in opposite directions ---------- */
/* Each row holds two identical lists, so sliding it by exactly half loops with no seam. */
.review-marquee {
  display: grid; gap: 20px; overflow: hidden; padding-block: 8px 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.review-track { display: flex; width: max-content; animation: review-loop 75s linear infinite; }
.review-track--reverse { animation-direction: reverse; animation-duration: 90s; }
.review-marquee:hover .review-track, .review-marquee:focus-within .review-track { animation-play-state: paused; }
@keyframes review-loop { to { transform: translateX(-50%); } }
.review-row { display: flex; gap: 20px; margin: 0; padding: 0 20px 0 0; list-style: none; }

.review-card {
  flex: 0 0 380px; display: flex; flex-direction: column; gap: 18px; padding: 30px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand); }
.review-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; font-weight: 400; }
.stars-row {
  display: block; width: 100px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235F7159'%3E%3Cpath d='M12 2.8l2.8 5.8 6.4.9-4.6 4.5 1.1 6.3L12 17.3l-5.7 3 1.1-6.3-4.6-4.5 6.4-.9z'/%3E%3C/svg%3E") left center / 20px 18px repeat-x;
}
.review-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: var(--sage); color: var(--charcoal); font-weight: 700; font-size: .88rem; letter-spacing: .02em;
}
img.avatar { width: 44px; object-fit: cover; box-shadow: 0 0 0 2px var(--white), 0 0 0 3px var(--line); }
.review-person strong { display: block; font-weight: 600; }
.review-person span { display: block; font-size: .9rem; color: var(--muted); }
@media (max-width: 600px) { .review-card { flex-basis: 290px; padding: 24px; } }
@media (prefers-reduced-motion: reduce) {
  /* No drifting: the reviews become a row the visitor can swipe or scroll. */
  .review-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: 16px; }
  .review-track { animation: none; }
  .review-row[aria-hidden="true"] { display: none; }
}

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; padding: 40px 36px; }
.price-card h3 { font-size: 1.5rem; }
.price {
  margin: 18px 0 8px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 2.9rem); letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.price small { margin-right: 6px; font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.includes { display: grid; gap: 12px; margin: 28px 0 36px; padding: 0; list-style: none; }
.includes li { display: flex; gap: 12px; }
.includes li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F7159' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.price-card .btn { margin-top: auto; }
.price-card.featured { background: var(--charcoal); border-color: var(--charcoal); color: var(--warm-white); }
.price-card.featured h3 { color: var(--warm-white); }
.price-card.featured p, .price-card.featured .price small { color: rgba(251, 248, 243, .72); }
.price-card.featured .includes li::before { background-color: var(--sage); }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Services list ---------- */
.service-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 46px; align-items: center;
  gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.service-row h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
.service-row p { color: var(--muted); }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; padding: 22px 0; }
  .service-row .icon { display: none; }
}

/* ---------- Steps (a real sequence, so numbered) ---------- */
.timeline {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.timeline--3 { grid-template-columns: repeat(3, 1fr); }
/* The connecting line runs from the first dot's centre to the last dot's centre. */
.timeline::before {
  content: ""; position: absolute; top: 28px; left: 28px; height: 1.5px; background: var(--sand);
  right: calc((100% - 84px) / 4 - 28px);
}
.timeline--3::before { right: calc((100% - 56px) / 3 - 28px); }
.timeline li { position: relative; }
.timeline .dot {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 22px; border-radius: 50%;
  background: var(--charcoal); color: var(--warm-white);
  font-family: var(--serif); font-size: 1.15rem;
  box-shadow: 0 0 0 8px var(--cream);
}
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1.5px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; }
  .timeline .dot { grid-row: span 2; margin: 0; }
  .timeline h3, .timeline p { grid-column: 2; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.22rem; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sage-deep); }
.faq summary::after {
  content: ""; flex: 0 0 16px; height: 16px;
  background:
    linear-gradient(var(--charcoal), var(--charcoal)) center / 16px 2px no-repeat,
    linear-gradient(var(--charcoal), var(--charcoal)) center / 2px 16px no-repeat;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding: 0 0 24px; color: var(--muted); }

/* ---------- Trades ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 600; font-size: .95rem; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(32px, 6vw, 88px); }
.split .lead { margin-top: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(40px, 6vw, 80px); }
/* On wide screens the contact details stay in view beside the long form. */
@media (min-width: 901px) { .contact-text { position: sticky; top: calc(var(--header-h) + 40px); } }
.contact-text .lead { margin-top: 18px; }
.contact-list { display: grid; gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; }
.contact-text h2 + .contact-list { margin-top: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { background: var(--white); }
.contact-list strong { display: block; }
.contact-list a, .contact-list span { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.contact-list a:hover { color: var(--charcoal); text-decoration: underline; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form-card { padding: clamp(24px, 4vw, 44px); background: var(--white); border: 1px solid var(--line); border-radius: 26px; }
.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 24px; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 12px; padding: 0; font-weight: 600; font-size: .95rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 14px 10px; text-align: center; line-height: 1.3;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--warm-white);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.choice span:hover { border-color: var(--sand); }
.choice input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--warm-white); }
.choice input:focus-visible + span { outline: 2px solid var(--sage-deep); outline-offset: 3px; }

.form-required-note { margin: -6px 0 18px; font-size: .88rem; color: var(--muted); }
.req { color: var(--error); margin-left: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-card > .field { margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  font: inherit; font-size: 1rem; color: var(--charcoal); caret-color: var(--sage-deep);
  background: var(--warm-white); border: 1.5px solid var(--field-border); border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--charcoal); }
.field select:invalid { color: var(--muted); } /* "Select a range" reads as a prompt, not an answer */
.field select {
  padding-right: 44px; appearance: none; cursor: pointer;
  background: var(--warm-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2926' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 4px rgba(166, 180, 158, .35);
}
.field-error { margin: 2px 0 0; font-size: .86rem; font-weight: 600; color: var(--error); }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #C0614A; box-shadow: 0 0 0 4px rgba(192, 97, 74, .12);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 24px; }
.form-status { margin-top: 16px; font-weight: 600; color: var(--muted); }
.form-status:empty { display: none; }
.form-success { display: grid; justify-items: start; gap: 14px; padding: 24px 0; outline: none; }
.form-success h3 { font-size: 1.8rem; }
.form-success p { color: var(--muted); max-width: 36ch; }
.tick { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: var(--charcoal); }
.tick svg { width: 24px; height: 24px; }
@media (max-width: 560px) {
  .choice-group, .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- Closing call to action ---------- */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 32px; padding: clamp(40px, 6vw, 72px);
  border-radius: 28px; background: var(--charcoal); color: var(--warm-white);
}
.cta-band h2 { color: var(--warm-white); }
.cta-band p { margin-top: 12px; color: rgba(251, 248, 243, .72); font-size: 1.1rem; }
.cta-band h2.cta-big { font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.025em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 560px) { .cta-actions, .cta-actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 32px; background: var(--charcoal); color: rgba(251, 248, 243, .7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 76px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 30ch; }
.footer-title { margin: 0 0 16px; font: 600 1rem/1.3 var(--sans); letter-spacing: 0; color: var(--warm-white); }
.footer-links { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer-links li { padding-block: 5px; }
.footer-links a, .footer-bottom a {
  display: inline-block; padding-block: 10px; margin-block: -10px;
  text-decoration: none; transition: color .2s ease;
}
.footer-links a:hover, .footer-bottom a:hover { color: var(--warm-white); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page-to-page transitions (driven by main.js) ---------- */
/* The header stays put; the page below it fades out, and the next one fades up. */
main, .site-footer { animation: page-in .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
html.is-leaving main, html.is-leaving .site-footer {
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
html.is-leaving { cursor: progress; }

/* ---------- Motion layer support (js/motion.js) ---------- */
/* Hero waits a moment for its entrance; a timer in <head> reveals it if scripts are slow. */
.motion-pending .hero-text, .motion-pending .hero-art { visibility: hidden; }
.art-svg { display: block; width: 100%; height: auto; border-radius: 28px; overflow: hidden; }
.hero-art .art-svg { box-shadow: var(--shadow-lg); }

/* Booking choice: one dark highlight that slides between options. */
.has-indicator .choice { border-radius: 14px; background: var(--warm-white); }
.has-indicator .choice span {
  position: relative; z-index: 1; background: transparent;
  transition: color .25s ease .1s, border-color .2s ease;
}
.has-indicator .choice input:checked + span { background: transparent; }
.choice-indicator {
  position: absolute; inset: 0; z-index: 0;
  border-radius: 14px; background: var(--charcoal); pointer-events: none;
}

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

/* ================= CALL / WECHAT ================= */
/* Phone-first: most people arriving from WeChat or a friend's tip are on their phone. */
:root { --wechat: #07C160; --talk-bar-h: 76px; }
[lang="zh-Hans"] { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", var(--sans); }

.talk-card {
  margin-top: 28px; padding: 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
@media (min-width: 701px) {
  .talk-card { grid-template-columns: 1fr auto; column-gap: 28px; align-items: start; }
  .talk-card .talk-qr { grid-column: 2; grid-row: 1 / span 4; }
}
.talk-lang {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--sage-deep);
}
.talk-lang::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.talk-title { margin: 0; font: 500 clamp(1.35rem, 3.5vw, 1.6rem)/1.2 var(--serif); }
.talk-title span { display: block; margin-top: 4px; font-size: .82em; color: var(--muted); }
.talk-status { margin: 0; font-size: .92rem; color: var(--muted); }
.talk-status strong { color: var(--charcoal); }
.talk-status .dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--line); vertical-align: 1px; }
.talk-status.is-open .dot { background: var(--wechat); box-shadow: 0 0 0 4px rgba(7, 193, 96, .15); }

.talk-actions { display: grid; gap: 10px; }
.talk-btn {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 20px;
  border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); color: var(--charcoal);
  text-decoration: none; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.talk-btn:hover { border-color: var(--charcoal); }
.talk-btn:active { transform: scale(.98); }
.talk-btn svg { flex: 0 0 26px; width: 26px; height: 26px; }
.talk-btn strong { display: block; font-size: 1.02rem; line-height: 1.25; }
.talk-btn small { display: block; font-size: .85rem; color: var(--muted); }
.talk-call { background: var(--charcoal); border-color: var(--charcoal); color: var(--warm-white); }
.talk-call:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.talk-call small { color: rgba(251, 248, 243, .75); }
.talk-wechat svg { color: var(--wechat); }

.talk-qr { margin: 0; text-align: center; }
.talk-qr img { display: block; width: 170px; height: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.talk-qr figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); }
@media (max-width: 700px) { .talk-card .talk-qr { display: none; } } /* on phones the QR lives in the WeChat panel */

/* Sticky Call / WeChat bar: phones only */
.talk-bar { display: none; }
@media (max-width: 760px) {
  .talk-bar {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 243, .94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .talk-bar.is-hidden { transform: translateY(110%); }
  .talk-bar .talk-btn { min-height: 54px; padding: 8px 14px; gap: 10px; border-radius: 14px; }
  .talk-bar .talk-btn svg { flex-basis: 22px; width: 22px; height: 22px; }
  .talk-bar .talk-btn strong { font-size: .98rem; }
  .talk-bar .talk-btn small { font-size: .78rem; }
  body.has-talk-bar { padding-bottom: calc(var(--talk-bar-h) + env(safe-area-inset-bottom)); }
}

/* WeChat panel: slides up on phones, centred on bigger screens */
.wechat-sheet {
  width: min(440px, 100%); max-height: 92vh; margin: auto; padding: 0;
  border: 0; border-radius: 24px; background: var(--warm-white); color: var(--charcoal);
  box-shadow: 0 30px 80px -20px rgba(42, 41, 38, .45);
}
.wechat-sheet::backdrop { background: rgba(42, 41, 38, .45); }
.wechat-sheet[open] { animation: sheet-in .32s cubic-bezier(.2, .7, .2, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 760px) {
  .wechat-sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; }
  .wechat-sheet[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
.sheet-inner { padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; max-height: 92vh; }
.sheet-grab { width: 40px; height: 5px; margin: -8px auto 14px; border-radius: 3px; background: var(--line); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h2 { margin: 0; font: 500 1.45rem/1.2 var(--serif); }
.sheet-head h2 span { display: block; margin-top: 2px; font-size: .8em; color: var(--muted); }
.sheet-close {
  flex: none; width: 44px; height: 44px; margin: -6px -6px 0 0; border: 0; border-radius: 50%;
  background: var(--cream); color: var(--charcoal); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.sheet-qr { margin: 18px auto 0; text-align: center; }
.sheet-qr img { display: block; width: min(200px, 52vw, 26vh); height: auto; margin: 0 auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; -webkit-touch-callout: default; }
.sheet-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.sheet-id span { font-size: .85rem; color: var(--muted); }
.sheet-id strong { display: block; font-size: 1.05rem; color: var(--charcoal); overflow-wrap: anywhere; }
.sheet-id button { flex: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--charcoal); border-radius: 999px; background: transparent; font: 600 .92rem var(--sans); cursor: pointer; }
.sheet-steps { margin: 18px 0 0; padding-left: 1.25rem; display: grid; gap: 8px; font-size: .95rem; color: var(--charcoal); }
.sheet-steps li::marker { color: var(--sage-deep); font-weight: 700; }
.sheet-steps small { display: block; color: var(--muted); }
.sheet-actions { display: grid; gap: 10px; margin-top: 16px; }
.sheet-note { margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.sheet-note a { color: var(--charcoal); font-weight: 600; }
.talk-toast {
  position: fixed; z-index: 80; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--charcoal); color: var(--warm-white);
  font-size: .92rem; font-weight: 600; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.talk-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= REVIEWS: drag + project stories ================= */
.review-marquee.is-draggable .review-track { animation: none; will-change: transform; touch-action: pan-y; cursor: grab; }
.review-marquee.is-dragging .review-track { cursor: grabbing; }
.review-marquee.is-dragging, .review-marquee.is-dragging * { user-select: none; -webkit-user-select: none; }
.review-marquee.is-draggable img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.review-card.is-clickable { cursor: pointer; }
.review-marquee.is-dragging .review-card { cursor: grabbing; }
.review-more {
  align-self: flex-start; margin-top: -4px; font-size: .9rem; font-weight: 600; color: var(--sage-deep);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.review-card:hover .review-more { border-bottom-color: currentColor; }

html.story-open { overflow: hidden; }
.story {
  width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 0;
  border: 0; border-radius: 24px; background: var(--warm-white); color: var(--charcoal); overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(42, 41, 38, .55);
}
.story::backdrop { background: rgba(42, 41, 38, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.story[open] { animation: story-in .4s cubic-bezier(.2, .7, .2, 1); }
@keyframes story-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.story-scroll { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.story-bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; background: rgba(251, 248, 243, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.story-count { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: auto; }
.story-nav, .story-close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  font-size: 1.15rem; line-height: 1; color: var(--charcoal); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.story-nav:hover, .story-close:hover { border-color: var(--charcoal); }
.story-close { font-size: 1.5rem; }
.story-hero { position: relative; margin: 0 14px; }
.story-hero button { display: block; width: 100%; padding: 0; border: 0; background: var(--cream); border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.story-hero img { display: block; width: 100%; aspect-ratio: 14 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.story-hero button:hover img { transform: scale(1.025); }
.story-zoom-hint {
  position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(42, 41, 38, .7); color: var(--warm-white); font-size: .8rem; font-weight: 600; pointer-events: none;
}
.story-thumbs { display: flex; gap: 10px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; }
.story-thumbs button { flex: 0 0 auto; width: 110px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.story-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--charcoal); }
.story-thumbs button:hover { opacity: 1; }
.story-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-body { padding: 28px clamp(20px, 4vw, 44px) 36px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.story-tags span { padding: 5px 12px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-deep); font-size: .82rem; font-weight: 700; }
.story-body h2 { margin: 0; font: 500 clamp(1.7rem, 3.4vw, 2.4rem)/1.12 var(--serif); letter-spacing: -.01em; }
.story-body blockquote {
  margin: 24px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--white); border: 1px solid var(--line);
  font: 400 1.18rem/1.55 var(--serif);
}
.story-body blockquote .stars-row { margin-bottom: 12px; }
.story-body cite { display: block; margin-top: 12px; font: 600 .92rem var(--sans); font-style: normal; color: var(--muted); }
.story-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 44px); margin-top: 28px; }
.story-cols h3 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); }
.story-cols h3 + p { margin: 0 0 22px; color: var(--muted); }
.story-cols ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }
.story-cols li::marker { color: var(--sage-deep); }
.story-facts { margin: 0; padding: 18px 20px; border-radius: 18px; background: var(--cream); display: grid; gap: 12px; align-content: start; }
.story-facts div { display: grid; gap: 2px; }
.story-facts dt { font-size: .78rem; color: var(--muted); }
.story-facts dd { margin: 0; font-weight: 600; }
.story-cta { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.story-cta p { margin: 0; color: var(--muted); }
.story-cta strong { color: var(--charcoal); }
.story-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.story-cta-actions .btn { padding: .8rem 1.3rem; }
.story-zoom { display: none; position: absolute; inset: 0; z-index: 5; background: #111; }
.story.is-zoomed .story-zoom { display: block; }
.story-zoom button { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-out; }
.story-zoom img { max-width: 100%; max-height: calc(100vh - 48px); object-fit: contain; }
@media (max-width: 760px) {
  .story { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; border-radius: 0; }
  .story-scroll { max-height: 100vh; height: 100%; padding-bottom: env(safe-area-inset-bottom); }
  .story-hero { margin: 0; }
  .story-hero button { border-radius: 0; }
  .story-cols { grid-template-columns: 1fr; }
  .story-cta { flex-direction: column; align-items: stretch; }
  .story-cta-actions .btn { flex: 1; }
  .story-zoom img { max-height: 100vh; }
}

/* ================= LANGUAGE ================= */
.lang-switch {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(251, 248, 243, .35); border-radius: 999px;
  color: var(--warm-white); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease;
}
.lang-switch:hover { border-color: var(--warm-white); background: rgba(251, 248, 243, .08); }
@media (min-width: 1021px) { .lang-switch { margin-left: -12px; } }
/* Only when the 中文 button is there (the English-only build leaves it out). */
@media (max-width: 1020px) { .lang-switch { margin-left: auto; } .lang-switch ~ .header-cta { margin-left: 0; } }
@media (max-width: 520px) { .lang-switch ~ .menu-toggle { margin-left: 4px; } }

/* Chinese pages: Chinese typefaces, no tight letter-spacing, a little more line height */
html[lang^="zh"] {
  --serif: "Fraunces", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Manrope", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html[lang^="zh"] body { line-height: 1.75; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] .cta-band h2.cta-big { letter-spacing: 0; line-height: 1.3; }
html[lang^="zh"] .eyebrow, html[lang^="zh"] .story-cols h3 { letter-spacing: .08em; }
