/* Bonnie Lass design system. */

:root {
  /* Colour */
  --bg: #FAF1F2;
  --bg-alt: #F5E6EA;
  --surface: #FFFDFC;
  --ink: #463139;
  --ink-display: #98475F;
  --ink-soft: #625057;
  --rose: #BD8794;
  --rose-soft: #EDD3DC;
  --wine: #83384A;
  --wine-deep: #562431;
  --hero-ink: #98475F;
  --hero-accent: #913D57;
  --on-wine: #FBF7F3;

  --line: #E4D6D3;
  --nav-glass: rgba(250, 241, 242, 0.89);
  --nav-glass-border: rgba(228, 214, 211, 0.64);
  --glass-surface: rgba(255, 253, 252, 0.66);
  --glass-surface-strong: rgba(255, 253, 252, 0.78);
  --glass-border: rgba(232, 220, 216, 0.68);
  --glass-shadow: 0 18px 44px -30px rgba(67, 24, 38, 0.34);

  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Type scale */
  --step-label: 0.76rem;
  --step-small: 0.88rem;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.1rem, 1.05rem + 0.25vw, 1.25rem);
  --step-2: clamp(1.7rem, 1.46rem + 1vw, 2.2rem);
  --step-3: clamp(2.15rem, 1.82rem + 1.45vw, 2.85rem);
  --step-4: clamp(2.9rem, 2rem + 4.4vw, 5.25rem);
  --step-brand: clamp(1.95rem, 1.58rem + 1.35vw, 2.45rem);

  --space-3xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 8.5rem;

  --content-max: 72rem;
  --measure: 34rem;
  --radius: 10px;
  --radius-pill: 999px;
  --focus: 3px solid var(--wine);

  /* Shared decorative line motif. */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='%23C08C97' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6 252C140 246 250 206 306 138 350 84 368 44 394 12'/%3E%3Cpath d='M104 256C200 246 286 206 334 144 366 102 380 76 396 54'/%3E%3C/svg%3E");
}

[data-theme="dark"] {
  color-scheme: dark;

  /* Neutral charcoal foundation. Pink is reserved for a small accent budget. */
  --bg: #131214;
  --bg-alt: #181719;
  --surface: #1D1C1E;

  --ink: #C9C4C6;
  --ink-display: #DDD7D9;
  --ink-soft: #918B8F;

  /* Lower-chroma accents: enough identity, less ambient pink. */
  --rose: #8E6D76;
  --rose-soft: #211D1F;
  --wine: #8C626D;
  --wine-deep: #9E7480;
  --hero-ink: #D8D2D4;
  --hero-accent: #A96F7E;
  --on-wine: #171415;

  --line: #302D30;
  --nav-glass: rgba(19, 18, 20, 0.94);
  --nav-glass-border: rgba(140, 98, 109, 0.09);
  --glass-surface: rgba(29, 28, 30, 0.78);
  --glass-surface-strong: rgba(31, 30, 32, 0.84);
  --glass-border: rgba(140, 98, 109, 0.075);
  --glass-shadow: 0 20px 48px -30px rgba(0, 0, 0, 0.80);

  /* Dark motif must not inherit the fixed light-theme pink SVG. */
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='%23584E52' stroke-width='1.25' stroke-linecap='round'%3E%3Cpath d='M6 252C140 246 250 206 306 138 350 84 368 44 394 12'/%3E%3Cpath d='M104 256C200 246 286 206 334 144 366 102 380 76 396 54'/%3E%3C/svg%3E");
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Type roles — exactly three: display / body / label ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
  color: var(--ink-display);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
h3 {
  /* Preserve language-specific body font stacks. */
  font-family: inherit; font-optical-sizing: auto; font-weight: 500;
  line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.45em; color: var(--ink-display);
  font-size: var(--step-1); text-wrap: balance;
}

/* Hero hierarchy: primary message first, secondary message supporting it.
   Colour + scale carry the hierarchy consistently across EN/ZH and all hero pages. */
.hero h1 {
  color: var(--hero-ink);
  font-weight: 600;
}
.hero-primary,
.hero-secondary {
  display: block;
}
.hero-primary {
  color: var(--hero-accent);
  font-size: 1.08em;
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-style: normal;
  font-weight: 600;
}
.hero-secondary {
  margin-top: 0.18em;
  color: var(--hero-ink);
  font-size: 0.64em;
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-style: italic;
  font-weight: 400;
}

/* Chinese hero words use a restrained editorial offset:
   primary moves left, secondary moves right. */
html[lang="zh-Hans"] .hero-primary {
  transform: translateX(-0.12em);
}
html[lang="zh-Hans"] .hero-secondary {
  margin-top: 0.24em;
  transform: translateX(0.14em);
}
.emphasis {
  font-style: italic;
  font-weight: 600;
  color: var(--hero-accent);
}

/* Shared Chinese typography: same hierarchy, CJK-native metrics.
   Keep English italics; never synthesize italic CJK glyphs. */
html[lang="zh-Hans"] body {
  font-family: "Inter", "Noto Sans SC", system-ui, sans-serif;
}
html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2 {
  font-family: "Playfair Display", "Noto Serif SC", serif;
  letter-spacing: normal;
  line-height: 1.35;
}
html[lang="zh-Hans"] h3 {
  letter-spacing: normal;
  line-height: 1.35;
}
html[lang="zh-Hans"] .hero-secondary,
html[lang="zh-Hans"] .emphasis {
  font-style: normal;
}

.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--step-label);
  color: var(--ink-soft); font-weight: 600;
}

p { margin: 0 0 var(--space-sm); max-width: var(--measure); color: var(--ink); text-wrap: pretty; }
.logic-break { display: inline; }
p.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 38rem; }

a { color: var(--wine); text-decoration-color: var(--rose); }
img { max-width: 100%; display: block; }

.container { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--space-md); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 1001; background: var(--ink); color: var(--bg); padding: var(--space-xs) var(--space-sm); }
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }
:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* Section divider. */
.divider { display: flex; align-items: center; justify-content: center; margin-block: 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider span { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); margin-inline: var(--space-sm); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 66%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
  backdrop-filter: blur(18px) saturate(132%);
}
/* Keep anchored sections clear of the sticky header. */
#portfolio, #enquire { scroll-margin-top: 120px; }
@media (max-width: 900px) {
  .logic-break { display: block; margin-top: 0.38em; }

  /* Hero long-form copy has no inherited first-line indent.
     Locale-specific alignment is set by the mobile editorial rules below. */
  .hero .lede {
    text-indent: 0;
  }
  .hero .lede .logic-break {
    display: inline;
    margin-top: 0;
  }

  #portfolio, #enquire { scroll-margin-top: 82px; }
}
/* Three-part header: compact utilities left, wordmark on the page centerline, bow menu right. */
.site-header .container {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 0; max-width: 90rem; z-index: 1;
  padding-inline: clamp(1rem, 3vw, 3rem); padding-block: var(--space-md);
}
.site-header .brand-group {
  grid-column: 2; grid-row: 1; justify-self: center;
  display: inline-flex; align-items: center; min-width: 0;
  transform: translateY(-1.5px);
}
.site-header .brand {
  min-width: 0; text-align: center; white-space: nowrap;
  line-height: 0.92;
}
.brand-copy { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.site-header .header-right { grid-column: 1; grid-row: 1; justify-self: start; transform: none; }
.site-header .nav-toggle { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
.site-header .primary-nav { justify-self: end; }
.brand {
  font-family: var(--font-display);
  font-size: var(--step-brand);
  text-decoration: none;
  color: var(--wine);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.brand-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-optical-sizing: auto;
}
.brand-word__bonnie {
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.brand-word__lass {
  position: relative;
  isolation: isolate;
  margin-left: 0.15em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.052em;
  transform: translateY(0.015em) skewX(-1.4deg);
}
/* Ribbon-like couture flourish: a soft lower fold plus one trailing silk line. */
.brand-word__lass::before {
  content: "";
  position: absolute;
  left: 16%;
  right: -8%;
  bottom: 0.02em;
  height: 0.20em;
  z-index: -1;
  border-radius: 58% 42% 68% 32%;
  background: linear-gradient(
    96deg,
    transparent 0%,
    color-mix(in srgb, var(--rose) 16%, transparent) 24%,
    color-mix(in srgb, var(--rose) 31%, transparent) 58%,
    transparent 100%
  );
  transform: rotate(-3.5deg) skewX(-18deg);
  transform-origin: left center;
  pointer-events: none;
}
.brand-word__lass::after {
  content: "";
  position: absolute;
  left: 48%;
  bottom: -0.11em;
  width: 78%;
  height: 0.42em;
  border-bottom: 1.35px solid color-mix(in srgb, var(--rose) 82%, transparent);
  border-radius: 0 0 78% 54%;
  transform: rotate(-6deg) skewX(-12deg);
  transform-origin: left center;
  opacity: 0.78;
  pointer-events: none;
}

/* The brand bow now serves as the primary menu trigger; the wordmark stands alone at left. */
.brand-mark { width: 40px; height: 30px; display: block; flex-shrink: 0; transform: none; }
.brand-mark .bow-loop { stroke: currentColor; stroke-width: 3.6; }
.brand-mark .bow-detail { stroke: currentColor; stroke-width: 1.5; opacity: 0.72; }
.brand-mark .bow-knot { fill: currentColor; stroke: none; }
.brand-mark .bow-tail { stroke: currentColor; stroke-width: 2.7; }

.nav-toggle {
  position: relative; isolation: isolate; overflow: visible;
  display: inline-flex; align-items: center; justify-content: center; width: 48px; min-height: 48px; background: transparent; border: 0; border-radius: var(--radius);
  padding: 0; font-family: var(--font-body); font-size: var(--step-label);
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; color: var(--wine);
}

/* A loose sparkle halo frames the bow without becoming a closed badge. */
.nav-toggle::before {
  content: "";
  position: absolute; inset: -5px; z-index: 0; pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 12% 30%, currentColor 0 1.05px, transparent 1.25px),
    radial-gradient(circle at 31% 8%, currentColor 0 0.8px, transparent 1px),
    radial-gradient(circle at 69% 7%, currentColor 0 1px, transparent 1.2px),
    radial-gradient(circle at 91% 31%, currentColor 0 0.75px, transparent 0.95px),
    radial-gradient(circle at 90% 70%, currentColor 0 1.05px, transparent 1.25px),
    radial-gradient(circle at 64% 93%, currentColor 0 0.75px, transparent 0.95px),
    radial-gradient(circle at 25% 89%, currentColor 0 0.95px, transparent 1.15px),
    radial-gradient(circle at 7% 64%, currentColor 0 0.75px, transparent 0.95px);
  color: color-mix(in srgb, var(--rose) 58%, transparent);
  opacity: 0.34;
}
.nav-toggle::after {
  content: "✦";
  position: absolute; left: 1px; top: 3px; z-index: 0; pointer-events: none;
  color: color-mix(in srgb, var(--rose) 62%, transparent);
  font-size: 0.38rem; line-height: 1;
  text-shadow: 39px 5px 0 currentColor, 34px 36px 0 currentColor;
  opacity: 0.48;
}
.nav-toggle svg { position: relative; z-index: 1; flex-shrink: 0; width: 40px; height: 30px; }
.nav-toggle:hover, .nav-toggle:focus-visible { color: var(--wine-deep); background: color-mix(in srgb, var(--rose-soft) 22%, transparent); }
.nav-toggle[aria-expanded="true"] { color: var(--wine-deep); background: color-mix(in srgb, var(--rose-soft) 18%, transparent); }
.nav-toggle:hover::before, .nav-toggle:focus-visible::before,
.nav-toggle[aria-expanded="true"]::before { opacity: 0.48; }
.nav-toggle:hover::after, .nav-toggle:focus-visible::after,
.nav-toggle[aria-expanded="true"]::after { opacity: 0.62; }

.primary-nav ul { display: flex; gap: clamp(1rem, 2vw, 2.5rem); list-style: none; margin: 0; padding: 0; align-items: center; }
.primary-nav a {
  text-decoration: none; font-size: var(--step-label); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink); padding-bottom: 3px; border-bottom: 1px solid transparent;
  padding-inline: 0.5rem; padding-block: 0.4rem; border-radius: 4px; background: transparent;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-bottom-color 0.2s ease-out;
}
.primary-nav a:hover, .primary-nav a:focus-visible { border-bottom-color: var(--wine); color: var(--wine); background: rgba(192, 140, 151, 0.12); }
/* Persistent current-page state. */
.primary-nav a[aria-current="page"],
.primary-nav a.is-section-current {
  border-bottom-color: var(--wine);
  color: var(--wine);
  background: rgba(192, 140, 151, 0.07);
}
/* A section current state temporarily owns the visual highlight while keeping
   aria-current="page" intact for semantic page identity. */
.primary-nav.has-section-current a[aria-current="page"]:not(.is-section-current) {
  border-bottom-color: transparent;
  color: var(--ink);
  background: transparent;
}
/* Fixed-width foreground utilities: dual sparkle trigger + persistent theme.
   Install and language live in a compact vertical flyout, so the header never stretches. */
.header-right {
  position: relative;
  display: inline-flex; align-items: center; gap: 0;
  min-height: 36px; padding-inline: 0.08rem;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--line) 44%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 12%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
  backdrop-filter: blur(12px) saturate(112%);
}
.utility-toggle,
.theme-toggle--persistent {
  width: 31px; min-width: 31px; min-height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
}
.utility-toggle {
  color: color-mix(in srgb, var(--rose) 86%, var(--wine));
}
.utility-sparkles {
  position: relative;
  display: block;
  width: 16px; height: 16px;
}
.utility-sparkle {
  position: absolute;
  display: block;
  font-family: var(--font-display);
  line-height: 1;
  transform-origin: 50% 50%;
  transition:
    transform 220ms cubic-bezier(.2,.7,.2,1),
    opacity 170ms ease-out;
}
/* Deliberately asymmetric: main sparkle upper-left, satellite lower-right. */
.utility-sparkle--main {
  left: 0; top: 0;
  font-size: 0.76rem;
  opacity: 0.92;
  transform: rotate(-8deg) scale(1);
}
.utility-sparkle--small {
  right: 0; bottom: 0;
  font-size: 0.36rem;
  opacity: 0.58;
  transform: rotate(13deg) scale(1);
}
.utility-capsule[data-expanded="true"] .utility-sparkle--main {
  transform: rotate(13deg) translate(-0.5px, -0.5px) scale(1.04);
}
.utility-capsule[data-expanded="true"] .utility-sparkle--small {
  transform: rotate(-19deg) translate(0.5px, 0.5px) scale(1.12);
  opacity: 0.82;
}
.utility-toggle:hover, .utility-toggle:focus-visible,
.theme-toggle--persistent:hover, .theme-toggle--persistent:focus-visible {
  color: var(--wine);
  background: color-mix(in srgb, var(--rose-soft) 12%, transparent);
}
.theme-toggle--persistent {
  position: relative;
  color: color-mix(in srgb, var(--ink-soft) 68%, transparent);
}
.theme-toggle--persistent::before {
  content: "";
  position: absolute;
  left: -1px; top: 9px; bottom: 9px;
  width: 1px;
  background: color-mix(in srgb, var(--line) 42%, transparent);
}
/* Service pages do not have the sparkle trigger; move the divider between
   Theme and Language instead of leaving it on the pill's outer edge. */
.header-right:not(.utility-capsule) .theme-toggle--persistent::before {
  display: none;
}
.header-right:not(.utility-capsule) .language-link--header {
  position: relative;
}
.header-right:not(.utility-capsule) .language-link--header::before {
  content: "";
  position: absolute;
  left: 0; top: 9px; bottom: 9px;
  width: 1px;
  background: color-mix(in srgb, var(--line) 42%, transparent);
}
.theme-toggle--persistent .theme-icon {
  width: 16px; height: 16px;
  overflow: visible;
}
.theme-icon__sun,
.theme-icon__moon {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 180ms ease-out,
    transform 240ms cubic-bezier(.2,.7,.2,1);
}
.theme-icon__sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-icon__moon {
  opacity: 0;
  transform: rotate(-18deg) scale(0.72);
}
[data-theme="dark"] .theme-icon__sun {
  opacity: 0;
  transform: rotate(28deg) scale(0.72);
}
[data-theme="dark"] .theme-icon__moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Small vertical utility menu — intentionally detached from the foreground pill. */
.utility-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.42rem);
  z-index: 60;
  width: max-content;
  min-width: 7.6rem;
  padding: 0.28rem;
  border: 1px solid color-mix(in srgb, var(--line) 56%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow:
    0 10px 24px -14px rgba(34, 20, 26, 0.24),
    0 24px 52px -28px rgba(34, 20, 26, 0.30),
    inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent);
  -webkit-backdrop-filter: blur(15px) saturate(118%);
  backdrop-filter: blur(15px) saturate(118%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.975);
  transform-origin: top left;
  transition:
    opacity 145ms ease-out,
    transform 205ms cubic-bezier(.2,.7,.2,1),
    visibility 0s linear 205ms;
}
.utility-capsule[data-expanded="true"] .utility-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(2px) scale(1);
  transition:
    opacity 150ms ease-out,
    transform 210ms cubic-bezier(.2,.7,.2,1),
    visibility 0s linear;
}
.utility-menu__item {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.45rem 0.62rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.018em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 130ms ease-out,
    transform 180ms cubic-bezier(.2,.7,.2,1),
    background-color 150ms ease-out,
    color 150ms ease-out;
}
.utility-capsule[data-expanded="true"] .utility-menu__item {
  opacity: 1;
  transform: translateY(0);
}
.utility-capsule[data-expanded="true"] .utility-menu__item:nth-child(1) { transition-delay: 35ms; }
.utility-capsule[data-expanded="true"] .utility-menu__item:nth-child(2) { transition-delay: 75ms; }
.utility-menu__item + .utility-menu__item {
  border-top: 1px solid color-mix(in srgb, var(--line) 46%, transparent);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.utility-menu__item:hover,
.utility-menu__item:focus-visible {
  color: var(--wine);
  background: color-mix(in srgb, var(--rose-soft) 12%, transparent);
}
.utility-menu__icon,
.language-command {
  width: 1.12rem; height: 1.12rem;
  flex: 0 0 1.12rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.utility-menu__icon {
  color: var(--wine);
}
.language-command {
  color: color-mix(in srgb, var(--rose) 86%, var(--wine));
}
.utility-menu__icon svg,
.language-command svg {
  width: 15px; height: 15px;
  display: block;
  stroke-width: 1.5;
}

.language-link {
  text-decoration: none;
  color: var(--ink-soft);
}
.language-name {
  font-weight: 500;
  letter-spacing: 0.01em;
}
.language-link:hover,
.language-link:focus-visible { color: var(--wine); }
.language-link--header {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding-inline: 0.72rem;
  border-radius: 999px;
  font-size: 0.70rem;
  white-space: nowrap;
}
.language-link--header:hover,
.language-link--header:focus-visible {
  background: color-mix(in srgb, var(--rose-soft) 12%, transparent);
}
.install-toggle[hidden] { display: none; }

@media (max-width: 900px) {
  .header-right { min-height: 36px; }
  .utility-menu { min-width: 7.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .utility-sparkle,
  .theme-icon__sun,
  .theme-icon__moon,
  .utility-menu,
  .utility-menu__item {
    transition: none !important;
  }
}

/* PWA v0.1 — network-only installability worker; no offline cache. */
.install-dialog {
  width: min(92vw, 28rem); padding: 0;
  border: 1px solid var(--glass-border); border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--ink);
  box-shadow: 0 28px 70px -28px rgba(67, 24, 38, 0.52);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
}
.install-dialog::backdrop {
  background: rgba(23, 21, 23, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.install-dialog__panel { position: relative; padding: clamp(1.5rem, 4vw, 2.25rem); }
.install-dialog h2 { margin: 0.25rem 2rem 0.8rem 0; }
.install-dialog p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.install-dialog__action { margin-top: 1.25rem; }
.install-dialog__action[hidden] { display: none; }
.install-dialog__close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft);
  font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.install-dialog__close:hover, .install-dialog__close:focus-visible {
  color: var(--wine); background: color-mix(in srgb, var(--rose-soft) 18%, transparent);
}

/* PWA v0.3 — non-modal install-request feedback; no simulated progress. */
.install-feedback {
  position: fixed;
  z-index: 1100;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  width: min(25rem, calc(100vw - 2rem));
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 40px -18px rgba(25, 20, 23, 0.55);
}
.install-feedback__title { display: block; font-size: 0.96rem; line-height: 1.4; }
.install-feedback__copy { margin: 0.45rem 0 0; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.6; }
.install-feedback__close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font: inherit;
  font-size: 1.4rem; cursor: pointer;
}
.install-feedback__close:focus-visible { outline: var(--focus); outline-offset: 2px; }

/* One primary action language (solid) and one secondary hero-level action
   language (outline) — both pill-shaped now, matching the approved
   reference's CTA treatment. In-page links stay text, never a button. */
.btn-primary, .btn-outline, .primary-nav .cta {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-pill);
  font-size: var(--step-label); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  border: 1px solid var(--wine);
}
.btn-primary { background: var(--wine); color: var(--on-wine); }
.btn-outline, .primary-nav .cta { background: transparent; color: var(--wine); }
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--wine-deep); border-color: var(--wine-deep);
}
.btn-outline:hover, .btn-outline:focus-visible,
.primary-nav .cta:hover, .primary-nav .cta:focus-visible { background: var(--rose-soft); }
.enquiry-form .btn-primary { width: 100%; }

/* Secondary actions are text, never a competing solid button. */
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; text-decoration: none; color: var(--wine); font-size: var(--step-small); font-weight: 500; border-bottom: 1px solid var(--rose); padding-bottom: 2px; }
.link-arrow:hover, .link-arrow:focus-visible { border-bottom-color: var(--wine); }

@media (min-width: 0px) {
  .site-header .container { padding-block: 0.82rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: calc(100% + 0.35rem); right: clamp(0.75rem, 3vw, 2rem); left: auto;
    width: min(12rem, calc(100vw - 2rem));
    background: var(--nav-glass);
    border: 1px solid var(--nav-glass-border);
    border-radius: 16px;
    box-shadow:
      0 12px 26px -20px rgba(67, 24, 38, 0.22),
      0 4px 12px -10px rgba(67, 24, 38, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px) saturate(108%);
    backdrop-filter: blur(10px) saturate(108%);
    overflow: hidden;
    display: none;
  }
  .primary-nav[data-open="true"] {
    display: block;
    animation: nav-float-in 0.18s ease-out both;
  }

  /* Chinese labels are shorter, so the menu can be more compact without
     changing the English panel width. */
  html[lang="en"] .primary-nav {
    background: color-mix(in srgb, var(--nav-glass) 64%, var(--bg) 36%);
  }
  html[lang="zh-Hans"] .primary-nav {
    width: min(9rem, calc(100vw - 2rem));
  }
  @keyframes nav-float-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .site-header .primary-nav { justify-self: end; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.28rem 0.76rem 0.44rem; }
  .primary-nav a { font-size: 0.80rem; letter-spacing: 0.052em; }
  .primary-nav li { width: 100%; border-bottom: 1px solid color-mix(in srgb, var(--line) 52%, transparent); text-align: center; }
  .primary-nav li:last-child { border-bottom: none; }
  .primary-nav li > a:not(.cta) { display: block; padding: 0.70rem 0.32rem; text-align: center; white-space: nowrap; }
  .primary-nav .cta {
    display: block; margin: 0; padding: 0.70rem 0.32rem;
    text-align: center;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 4px;
    background: transparent; color: var(--wine); font-weight: 600;
  }
  .primary-nav .cta:hover, .primary-nav .cta:focus-visible {
    background: rgba(192, 140, 151, 0.10); color: var(--wine-deep);
  }
  .primary-nav a.is-section-current,
  .primary-nav .cta.is-section-current {
    border-bottom-color: var(--wine);
    color: var(--wine);
    background: rgba(192, 140, 151, 0.10);
  }
  .primary-nav.has-section-current a[aria-current="page"]:not(.is-section-current) {
    border-bottom-color: transparent;
    color: var(--ink);
    background: transparent;
  }
  .site-footer a { display: inline-block; padding: 0.5rem; margin: -0.5rem; }
}



@media (max-width: 380px) {
  .site-header .container { padding-inline: var(--space-sm); gap: 0; }
  .site-header .brand { font-size: 1.52rem; line-height: 0.92; }
  .brand-word__lass { margin-left: 0.13em; }
  .brand-word__lass::before { right: -4%; opacity: 0.82; }
  .brand-word__lass::after { width: 70%; opacity: 0.68; }
  .nav-toggle { padding-inline: 0; }
}

/* Bonnie Line — one recurring seam/ribbon gesture across the brand system.
   It can read as a garment seam, fabric drape or makeup contour without becoming literal. */
.hero::after, #enquire::after, #cta::after, .site-footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background-image: var(--motif);
  background-repeat: no-repeat;
  background-size: contain;
}
.hero::after {
  right: 0; bottom: 0; width: min(58vw, 660px); aspect-ratio: 400 / 260;
  background-position: right bottom; opacity: 0.5;
}
#enquire::after, #cta::after {
  left: 0; top: 0; width: min(42vw, 460px); aspect-ratio: 400 / 260;
  background-position: left top; transform: scaleX(-1); opacity: 0.38;
}
.site-footer::before {
  right: 0; bottom: 0; width: min(30vw, 280px); aspect-ratio: 400 / 260;
  background-position: right bottom; opacity: 0.32;
}

/* ---------- Hero — one balanced editorial column, message-first ---------- */
.hero {
  position: relative; isolation: isolate;
  background:
    repeating-linear-gradient(45deg, rgba(43, 32, 40, 0.018) 0, rgba(43, 32, 40, 0.018) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(43, 32, 40, 0.018) 0, rgba(43, 32, 40, 0.018) 1px, transparent 1px, transparent 9px),
    linear-gradient(175deg, var(--bg-alt) 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-2xl) var(--space-xl);
}
.hero .container { max-width: var(--content-max); }
[data-theme="dark"] .hero {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 9px),
    linear-gradient(175deg, var(--bg-alt) 0%, var(--bg) 58%);
}
[data-theme="dark"] .primary-nav {
  box-shadow:
    0 14px 30px -20px rgba(0, 0, 0, 0.56),
    0 5px 14px -12px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .utility-menu {
  box-shadow:
    0 12px 26px -14px rgba(0, 0, 0, 0.58),
    0 28px 56px -30px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .portfolio-grid img.tile {
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 92%, #000 8%);
  box-shadow:
    0 12px 26px -20px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}
.hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-text { max-width: 40rem; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow {
  margin-bottom: var(--space-lg);
  border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  background: var(--glass-surface); padding: 0.55rem 1.2rem;
  box-shadow: 0 8px 22px -18px rgba(67, 24, 38, 0.26), inset 0 1px 0 rgba(255,255,255,0.24);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}
.hero .lede { margin-top: var(--space-md); max-width: 34rem; margin-inline: auto; }
/* Chinese hero copy needs a wider measure. */
html[lang="zh-Hans"] .hero-text { max-width: 56rem; }
html[lang="zh-Hans"] .hero .lede { max-width: 56rem; }
.lede-break { display: none; }
@media (max-width: 640px) {
  .lede-break { display: inline; }
  html[lang="zh-Hans"] .hero .lede { font-size: 0.95rem; }
}
@media (max-width: 375px) {
  html[lang="zh-Hans"] .hero .lede { font-size: 0.88rem; }
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-lg); }
.hero-portrait { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero-portrait img {
  display: block; width: 11rem; height: 11rem; object-fit: cover; object-position: top center;
  border-radius: 50%; border: 3px solid var(--surface); background: var(--surface);
  box-shadow: 0 1px 2px rgba(43, 32, 40, 0.06), 0 22px 40px -22px rgba(43, 32, 40, 0.38);
}
.hero-portrait figcaption {
  font-family: var(--font-display); font-size: 0.95rem; font-style: italic; color: var(--ink-soft);
}
@media (max-width: 900px) {
  .hero-portrait { margin-top: var(--space-lg); }
  .hero-portrait img { width: 9.5rem; height: 9.5rem; }
}

/* Compact desktop hero. */
@media (min-width: 901px) and (max-height: 820px) {
  .hero { padding-block: 3.5rem var(--space-lg); }
  .hero .eyebrow { margin-bottom: var(--space-md); }
  .hero .lede { margin-top: var(--space-sm); }
  .hero-actions { margin-top: var(--space-md); }
  .hero-portrait { margin-top: var(--space-md); }
  .hero-portrait img { width: 8rem; height: 8rem; }
}

/* ---------- About — short trust statement, no duplicate portrait ---------- */
.about-statement { max-width: 40rem; margin-inline: auto; text-align: center; }
.about-statement p { font-size: var(--step-1); color: var(--ink-soft); margin-inline: auto; }

.narrative { padding-block: var(--space-lg); }

/* ---------- Sections ---------- */
section { padding-block: var(--space-xl); }
#craft { padding-block: var(--space-lg); }
#enquire, #cta { position: relative; isolation: isolate; }
section.alt { background: var(--bg-alt); box-shadow: inset 0 2.5rem 2rem -2.5rem rgba(43, 32, 40, 0.025), inset 0 -2.5rem 2rem -2.5rem rgba(43, 32, 40, 0.025); }
.section-head { max-width: 42rem; margin-bottom: var(--space-lg); margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: var(--space-xs); }
.container > .section-head:last-child { margin-bottom: 0; }
.coming-soon {
  display: inline-block; margin-inline: auto;
  padding: 0.6rem 1.4rem; border: 1px dashed rgba(156, 80, 72, 0.35);
  border-radius: var(--radius-pill); color: var(--ink-soft); font-size: var(--step-small);
}

/* ---------- Craft cards ---------- */
.craft-intro { max-width: 46rem; margin-bottom: var(--space-md); margin-inline: auto; text-align: center; }
.craft-heading-singleline {
  white-space: nowrap;
}
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.craft-card {
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--glass-surface-strong) 0%, var(--glass-surface) 145%);
  border: 1px solid var(--glass-border); border-radius: calc(var(--radius) + 4px);
  padding: var(--space-md);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}
.craft-card .art {
  aspect-ratio: 5 / 4; margin-bottom: var(--space-md);
  background: linear-gradient(150deg, var(--rose-soft), var(--bg-alt));
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--step-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-align: center;
}
img.art { object-fit: cover; object-position: top center; padding: 0; }
.craft-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--rose-soft); color: var(--ink-soft);
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}
/* Service icons. */
.craft-badge svg { display: block; width: 1.5rem; height: 1.5rem; }
.craft-card .offerings { font-size: var(--step-small); color: var(--ink-soft); margin: 0 0 var(--space-md); }
.craft-card .offerings strong { color: var(--ink); font-weight: 500; }
#offer .craft-card { padding-block: var(--space-sm); }

@media (max-width: 780px) {
  .craft-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

/* ---------- Portfolio — an honest triptych of real work, no filler tiles ---------- */
.portfolio-section {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}
.portfolio-section .section-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.portfolio-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(3, 1fr);
}
.portfolio-grid img.tile {
  aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: 100%;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: calc(var(--radius) + 2px);
  background: color-mix(in srgb, var(--surface) 86%, var(--bg) 14%);
  box-shadow:
    0 10px 24px -20px rgba(43, 32, 40, 0.28),
    inset 0 0 0 1px color-mix(in srgb, #fff 18%, transparent);
}
.portfolio-note { margin-top: var(--space-md); font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 700px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid img.tile:first-child { grid-column: span 2; aspect-ratio: 3 / 2; }
}

/* Fashion portfolio uses two portrait images. */
.portfolio-grid.portfolio-grid--fashion {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr;
}
.portfolio-grid.portfolio-grid--fashion img.tile--primary {
  grid-column: 1; grid-row: 1; aspect-ratio: 3 / 4;
}
.portfolio-grid.portfolio-grid--fashion img.tile--support {
  grid-column: 2; grid-row: 1; aspect-ratio: 3 / 4;
}
@media (max-width: 700px) {
  .portfolio-grid.portfolio-grid--fashion {
    grid-template-columns: 1fr; grid-template-rows: none;
  }
  .portfolio-grid.portfolio-grid--fashion img.tile--primary,
  .portfolio-grid.portfolio-grid--fashion img.tile--support {
    grid-column: 1; grid-row: auto; aspect-ratio: 3 / 4;
  }
}

/* ---------- Trust / process ---------- */
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.trust-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--space-sm); align-items: baseline; border-top: 1px solid rgba(231, 210, 201, 0.55); padding-top: var(--space-md); }
.trust-list .num { font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); font-size: var(--step-small); }

/* Compact homepage process list. */
.trust-list--compact { gap: var(--space-xs); }
.trust-list--compact li { padding-top: var(--space-xs); }

/* Homepage evidence teaser. */
.homepage-evidence { padding-top: var(--space-lg); }
.evidence-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px;
  margin-inline: 0; margin-bottom: var(--space-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.evidence-strip img {
  aspect-ratio: unset; height: min(56vh, 520px); object-fit: cover; width: 100%;
  border: none; border-radius: 0;
}
.evidence-link { text-align: center; margin: 0 0 var(--space-lg); }

/* ---------- Enquiry ---------- */
.enquiry-form {
  display: grid; gap: var(--space-md); max-width: 36rem; margin-inline: auto;
  background: var(--glass-surface-strong); border: 1px solid var(--glass-border); border-radius: calc(var(--radius) + 6px);
  padding: var(--space-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step-label); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.75rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--ink);
  /* Prevent intrinsic control width from overflowing the grid. */
  width: 100%; min-width: 0; max-width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }

/* Remove the textarea resize grip on touch devices. */
@media (hover: none) and (pointer: coarse) {
  .field textarea { resize: none; }
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--wine); }
.form-note { font-size: var(--step-small); color: var(--ink-soft); }
.form-status { font-size: var(--step-small); margin-top: var(--space-xs); min-height: 1.2em; font-weight: 500; }
.form-status[data-state="success"] { color: var(--wine); }
.form-status[data-state="error"] { color: #9A3B3B; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-alt { margin-top: var(--space-md); text-align: center; }
.contact-alt-lede { font-size: var(--step-small); color: var(--ink-soft); margin-bottom: var(--space-xs); }
.contact-channels { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: center; list-style: none; padding: 0; margin: 0; }
.contact-chip {
  display: inline-block; padding: 0.5rem 1.1rem;
  border: 1px solid var(--glass-border); border-radius: var(--radius-pill);
  background: var(--glass-surface); color: var(--ink); font-size: var(--step-small); text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
}
.contact-chip:hover, .contact-chip:focus-within { background: var(--rose-soft); }
.contact-chip a { color: inherit; text-decoration: none; }
.contact-sep { color: var(--ink-soft); padding: 0 0.15em; }
/* Shared closing-section spacing. */
#enquire, #cta { padding-bottom: var(--space-lg); }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; border-top: 1px solid var(--line); padding-block: 0.125rem; color: var(--ink-soft); font-size: var(--step-small); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 var(--space-sm); }
.site-footer p { margin: 0; }
.site-footer .footer-language { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; padding: 0; }
.site-footer a { color: var(--ink-soft); }
.footer-language {
  position: relative;
  min-width: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.08rem 0.28rem;
  color: color-mix(in srgb, var(--ink-soft) 78%, transparent);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1;
}
.footer-language::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 1.15rem;
  height: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--rose) 82%, transparent);
  transform: translateX(-50%);
}
.footer-language:hover,
.footer-language:focus-visible { color: var(--wine); }
.footer-language:hover::after,
.footer-language:focus-visible::after {
  width: 1.35rem;
  background: var(--rose);
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  #craft { padding-block: var(--space-lg) var(--space-md); }

  /* Portfolio spacing belongs to the section, not the heading block. */
  #portfolio { padding-block: 0; }
  .portfolio-section { padding-block: 2rem 2.6rem; }
  .portfolio-section .section-head { margin-bottom: 1.55rem; }
  .portfolio-section .portfolio-grid { margin-top: 0; }

  /* Editorial alignment grammar:
     centered labels/headings, centered text blocks, left-aligned long copy. */
  .hero .lede,
  .about-statement > p:not(.eyebrow),
  .craft-intro > p:not(.eyebrow),
  .home-flow .evidence-process-intro > p:not(.eyebrow) {
    width: min(100%, 32rem);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    text-align-last: left;
    text-wrap: pretty;
  }

  html[lang="zh-Hans"] .hero .lede,
  html[lang="zh-Hans"] .about-statement > p:not(.eyebrow),
  html[lang="zh-Hans"] .craft-intro > p:not(.eyebrow),
  html[lang="zh-Hans"] .home-flow .evidence-process-intro > p:not(.eyebrow) {
    width: min(100%, 34rem);
    /* Fill normal lines, leave the final line at the reading edge. */
    text-align: justify;
    text-align-last: start;
    text-indent: 0;
    text-wrap: wrap;
  }

  /* English homepage: center short editorial intros with their display titles;
     keep the longer About narrative on a stable left reading edge. */
  html[lang="en"] .home-flow .hero .lede,
  html[lang="en"] .home-flow .craft-intro > p:not(.eyebrow) {
    text-align: center;
    text-align-last: center;
    text-wrap: balance;
    text-indent: 0;
  }

  html[lang="en"] .home-flow .about-statement .logic-break {
    margin-top: 0.62em;
  }

  /* Section descriptions are body copy by default. */
  .section-head > p:not(.eyebrow) {
    width: min(100%, 32rem);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    text-align-last: left;
    text-wrap: pretty;
    font-size: var(--step-0);
    color: var(--ink-soft);
  }

  /* Brief homepage enquiry guidance in EN and ZH follows its centered heading.
     This excludes full paragraphs and all form labels/fields. */
  .home-flow #enquire .section-head > p:not(.eyebrow) {
    text-align: center;
    text-align-last: center;
    text-wrap: balance;
  }

  /* Portfolio heading is intentionally minimal; its supporting line is a left-aligned caption. */
  #portfolio.section-head > p:not(.eyebrow),
  .section-head#portfolio > p:not(.eyebrow) {
    width: min(100%, 28rem);
    text-align: left;
    text-align-last: left;
  }

  /* Short interface/help copy stays centered; operational copy stays left. */
  .contact-alt-lede {
    width: min(100%, 26rem);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    text-align-last: center;
    text-wrap: pretty;
  }

  .form-note {
    text-align: left;
    text-align-last: left;
    text-wrap: pretty;
  }

  /* Mobile hierarchy cap: label → heading → body. Supporting copy no longer
     forms a separate fourth visual tier. */
  .craft-intro > p:not(.eyebrow),
  .home-flow .evidence-process-intro > p:not(.eyebrow) {
    font-size: var(--step-0);
    color: var(--ink-soft);
  }

  /* Progressive enhancement: content remains visible without JavaScript. */
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
  html.js .reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }

  html.js .reveal-img {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  html.js .reveal-img.is-visible { opacity: 1; transform: scale(1); }
  html.js .reveal-img[data-reveal-delay="1"] { transition-delay: 0.1s; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .primary-nav a {
    transition: none;
  }
  .primary-nav[data-open="true"] {
    animation: none;
  }
  .theme-toggle svg {
    transition: none;
  }
}

/* Tap feedback. */
.btn-primary, .btn-outline, .primary-nav .cta,
.craft-card, .contact-chip, .link-arrow {
  transition: transform 0.15s ease;
}
.btn-primary:active, .btn-outline:active, .primary-nav .cta:active,
.contact-chip:active { transform: scale(0.98); }
/* Preserve tap feedback over reveal transforms. */
.craft-card:active { transform: scale(0.98) !important; }
.link-arrow:active { transform: scale(0.97); }

@media (max-width: 900px) {
  .hero { padding-block: 4.75rem var(--space-xl); }
  body.service-detail .hero { padding-top: 2.55rem; }
  .section-head h2 { font-size: clamp(2rem, 7.6vw, 2.5rem); }

  .hero .eyebrow {
    margin-bottom: var(--space-md);
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hero h1 { line-height: 1.02; font-size: clamp(3.25rem, 15vw, 3.65rem); }
  .hero .eyebrow { font-size: 0.88rem; letter-spacing: 0.11em; }

  html[lang="zh-Hans"] .hero-primary {
    width: max-content;
    max-width: none;
    margin-left: -0.32em;
    margin-right: auto;
    white-space: nowrap;
    text-align: left;
    transform: none;
  }
  html[lang="zh-Hans"] .hero-secondary {
    width: max-content;
    max-width: none;
    margin-top: 0.34em;
    margin-left: auto;
    margin-right: -0.16em;
    white-space: nowrap;
    text-align: right;
    transform: none;
  }
}

@media (max-width: 480px) {
  .craft-heading-singleline {
    font-size: clamp(1.72rem, 7.8vw, 2.2rem);
    letter-spacing: -0.03em;
  }
  html[lang="zh-Hans"] .craft-heading-singleline {
    font-size: clamp(1.78rem, 8.2vw, 2.2rem);
    letter-spacing: -0.035em;
  }
  .portfolio-section { padding-block: 1.7rem 2.35rem; }
  .portfolio-section .section-head { margin-bottom: 1.35rem; }
  .portfolio-grid { gap: 1.15rem; }
  .site-header .container { padding-inline: 0.85rem; gap: 0; padding-block: 0.7rem; }
  .site-header .brand { font-size: clamp(1.62rem, 6.7vw, 1.88rem); }
  .site-header .brand-group { gap: 0; }
  .brand-mark { width: 38px; height: 29px; transform: none; }

  /* Keep enquiry hierarchy explicit: heading first, guidance second, fields third. */
  #enquire .section-head h2 { font-size: clamp(2.15rem, 9vw, 2.55rem); line-height: 1.16; }
  #enquire .section-head > p:not(.eyebrow) { font-size: 0.92rem; line-height: 1.65; }
  .enquiry-form .field label { font-size: 0.74rem; }
  .enquiry-form .field input,
  .enquiry-form .field textarea { font-size: 0.96rem; }
  .enquiry-form .field select { font-size: 0.84rem; }
  .enquiry-form .field select option { font-size: 0.84rem; }
  .enquiry-form .field input::placeholder,
  .enquiry-form .field textarea::placeholder { font-size: 0.84rem; color: var(--ink-soft); opacity: 0.82; }
  .enquiry-form .form-note { font-size: 0.82rem; }
}

/* Homepage continuous browsing candidate — scoped; current canonical header/Hero unchanged. */
.home-flow .narrative { padding-block: clamp(2rem, 4vw, 3.5rem) var(--space-md); }
.home-flow #craft { padding-top: var(--space-md); }
.home-flow .homepage-evidence {
  background: linear-gradient(to bottom, var(--bg), var(--bg-alt) 10rem);
  box-shadow: none;
  padding-bottom: var(--space-md);
}
.home-flow .homepage-evidence .section-head { margin-bottom: var(--space-md); }
.home-flow .evidence-strip { gap: var(--space-sm); margin-bottom: var(--space-lg); }
.home-flow .evidence-work { min-width: 0; margin: 0; }
.home-flow .evidence-work figcaption { padding: var(--space-sm) var(--space-md); }
.home-flow .evidence-work .link-arrow { min-height: 44px; align-items: center; }
.home-flow .flow-enquiry { max-width: none; margin: var(--space-md) 0 0; text-align: center; }
.home-flow .flow-enquiry .link-arrow { min-height: 44px; }
.home-flow #enquire { padding-top: var(--space-lg); }
@media (max-width: 780px) {
  .home-flow .craft-grid { gap: var(--space-lg); }
}
@media (max-width: 600px) {
  .home-flow .evidence-strip { grid-template-columns: 1fr; gap: var(--space-sm); }
  .home-flow .evidence-strip img { height: auto; aspect-ratio: 4 / 5; object-position: center; }
}

/* ---------- Experience refinement v0.1 ---------- */
/* Keep motion quiet and purposeful: reading order, image reveal, brand response. */
.nav-toggle .brand-mark,
.nav-toggle .bow-loop,
.nav-toggle .bow-tail,
.nav-toggle .bow-knot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-toggle[aria-expanded="true"] .brand-mark { transform: scale(1.04); }
.nav-toggle[aria-expanded="true"] .bow-loop:nth-child(1) { transform: rotate(-4deg) translate(-0.8px, 0.4px); }
.nav-toggle[aria-expanded="true"] .bow-loop:nth-child(2) { transform: rotate(4deg) translate(0.8px, 0.4px); }
.nav-toggle[aria-expanded="true"] .bow-knot { transform: scale(1.1); }
.nav-toggle[aria-expanded="true"] .bow-tail:nth-child(6) { transform: rotate(3deg) translateX(-0.4px); }
.nav-toggle[aria-expanded="true"] .bow-tail:nth-child(7) { transform: rotate(-3deg) translateX(0.4px); }

/* One-shot bow flourish on click/open; no continuous idle motion. */
.nav-toggle.is-bow-animating .brand-mark {
  animation: bow-float 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-toggle.is-bow-animating::before {
  animation: bow-halo 0.46s ease-out;
}
.nav-toggle.is-bow-animating::after {
  animation: bow-spark 0.46s ease-out;
}
@keyframes bow-float {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  38%  { transform: translateY(-1.5px) rotate(-2.2deg) scale(1.055); }
  72%  { transform: translateY(0.6px) rotate(1.1deg) scale(0.992); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes bow-halo {
  0%   { opacity: 0.34; transform: scale(0.94); }
  45%  { opacity: 0.62; transform: scale(1.08); }
  100% { opacity: 0.34; transform: scale(1); }
}
@keyframes bow-spark {
  0%   { opacity: 0.32; transform: rotate(0deg) scale(0.9); }
  48%  { opacity: 0.78; transform: rotate(12deg) scale(1.18); }
  100% { opacity: 0.48; transform: rotate(0deg) scale(1); }
}

/* Turn homepage sections into one continuous editorial flow without touching Hero. */
.home-flow .narrative {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 78%, color-mix(in srgb, var(--bg) 90%, var(--bg-alt)) 100%);
}
.home-flow #craft {
  position: relative;
  padding-bottom: clamp(3.25rem, 7vw, 5.75rem);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 82%, color-mix(in srgb, var(--bg) 72%, var(--bg-alt)) 100%);
}
.home-flow .homepage-evidence {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--rose-soft) 46%, transparent) 0%, transparent 28rem),
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 50%, var(--bg-alt)) 0%, var(--bg-alt) 9rem);
  padding-top: clamp(4rem, 8vw, 6.5rem);
}
.home-flow .homepage-evidence::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(to bottom, var(--line), var(--rose));
  opacity: 0.82;
}
.home-flow #enquire {
  background: linear-gradient(to bottom, var(--bg-alt) 0%, var(--bg-alt) 72%, color-mix(in srgb, var(--bg-alt) 70%, var(--bg)) 100%);
}

/* Repeat the Bonnie Line only at major handoffs; never as generic decoration. */
.home-flow #craft::after,
.home-flow .homepage-evidence::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: var(--motif);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
.home-flow #craft > .container,
.home-flow .homepage-evidence > .container {
  position: relative;
  z-index: 1;
}
.home-flow #craft::after {
  right: 0;
  bottom: -1.25rem;
  width: min(30vw, 340px);
  aspect-ratio: 400 / 260;
  background-position: right bottom;
  opacity: 0.16;
}
.home-flow .homepage-evidence::after {
  left: 0;
  bottom: 1rem;
  width: min(26vw, 300px);
  aspect-ratio: 400 / 260;
  background-position: left bottom;
  transform: scaleX(-1);
  opacity: 0.12;
}

/* Editorial reading order: label, title, then supporting copy. */
html.js .home-flow .editorial-reveal.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
html.js .home-flow .editorial-reveal > .eyebrow,
html.js .home-flow .editorial-reveal > h2,
html.js .home-flow .editorial-reveal > h3 {
  opacity: 0;
  transform: translateY(9px);
  transition:
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js .home-flow .editorial-reveal.is-visible > .eyebrow,
html.js .home-flow .editorial-reveal.is-visible > h2,
html.js .home-flow .editorial-reveal.is-visible > h3 {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
html.js .home-flow .editorial-reveal > h2,
html.js .home-flow .editorial-reveal > h3 { transition-delay: 0.05s; }

/* Key work images use compositor-friendly motion only: no clip-path repaint. */
html.js .home-flow img.reveal-img {
  opacity: 0.84;
  transform: scale(1.008);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
html.js .home-flow img.reveal-img.is-visible {
  opacity: 1;
  transform: scale(1);
  will-change: auto;
}

/* Make Selected Work visibly editorial without increasing image dominance. */
.home-flow .homepage-evidence .section-head {
  max-width: 46rem;
  margin-inline: 0;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
  text-align: left;
}
.home-flow .homepage-evidence .section-head > p:not(.eyebrow) {
  max-width: 38rem;
}
.home-flow .evidence-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.home-flow .evidence-work {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: calc(var(--radius) + 5px);
  background: var(--glass-surface-strong);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.22);
}
.home-flow .evidence-work:nth-child(2) {
  width: 100%;
  justify-self: stretch;
  margin-top: 0;
}
.home-flow .evidence-strip img,
.home-flow .evidence-work:nth-child(2) img {
  height: min(44vh, 410px);
}
.home-flow .evidence-work figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.15rem 1.25rem 1.3rem;
}
.home-flow .evidence-note {
  display: block;
  color: var(--ink-soft);
  font-size: var(--step-small);
  line-height: 1.58;
  max-width: 30rem;
}
.home-flow .evidence-process-intro {
  max-width: 42rem;
  margin: 0 auto var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  text-align: center;
}
.home-flow .evidence-process-intro .eyebrow { margin-bottom: 0.55rem; }
.home-flow .evidence-process-intro h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
}
.home-flow .trust-list--compact {
  max-width: 46rem;
  margin-inline: auto;
}
.home-flow .flow-enquiry {
  margin-top: var(--space-lg);
}
.home-flow .soft-enquiry {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: var(--glass-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  font-weight: 600;
  text-decoration: none;
}
.home-flow .soft-enquiry:hover,
.home-flow .soft-enquiry:focus-visible {
  background: var(--rose-soft);
}

@media (max-width: 700px) {
  html.js .home-flow .editorial-reveal > .eyebrow,
  html.js .home-flow .editorial-reveal > h2,
  html.js .home-flow .editorial-reveal > h3 {
    transform: translateY(6px);
    transition-duration: 0.3s;
  }
  html.js .home-flow img.reveal-img {
    opacity: 0.9;
    transform: scale(1.005);
    transition-duration: 0.32s;
  }

  .home-flow .homepage-evidence .section-head {
    margin-bottom: 0.85rem;
  }
  .home-flow .homepage-evidence .section-head > p:last-child {
    margin-bottom: 0;
  }
  .home-flow .evidence-strip {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 0;
    margin-bottom: var(--space-lg);
  }
  .home-flow .evidence-work,
  .home-flow .evidence-work:first-child,
  .home-flow .evidence-work:nth-child(2) {
    width: 100%;
    justify-self: stretch;
    margin-top: 0;
  }
  .home-flow .evidence-strip img,
  .home-flow .evidence-work:nth-child(2) img {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle.is-bow-animating .brand-mark,
  .nav-toggle.is-bow-animating::before,
  .nav-toggle.is-bow-animating::after {
    animation: none !important;
  }

  .nav-toggle .brand-mark,
  .nav-toggle .bow-loop,
  .nav-toggle .bow-tail,
  .nav-toggle .bow-knot {
    transition: none !important;
    transform: none !important;
  }

  html.js .home-flow .editorial-reveal > .eyebrow,
  html.js .home-flow .editorial-reveal > h2,
  html.js .home-flow .editorial-reveal > h3,
  html.js .home-flow img.reveal-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* Mobile scroll performance: prefer static brand polish over animated glass.
   This avoids continuous blur/repaint work while large images move under a sticky header. */
@media (max-width: 900px) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .primary-nav,
  .hero .eyebrow,
  .craft-card,
  .enquiry-form,
  .contact-chip {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .primary-nav { background: color-mix(in srgb, var(--bg) 97%, var(--surface) 3%); }
  html[lang="en"] .primary-nav {
    background: color-mix(in srgb, var(--bg) 94%, var(--surface) 6%);
    border-color: var(--nav-glass-border);
  }
  .hero .eyebrow { background: color-mix(in srgb, var(--bg) 94%, var(--surface) 6%); }
  .craft-card,
  .enquiry-form,
  .contact-chip { background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%); }

  html.js .home-flow .editorial-reveal > .eyebrow,
  html.js .home-flow .editorial-reveal > h2,
  html.js .home-flow .editorial-reveal > h3,
  html.js .home-flow img.reveal-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* Keep long Chinese process headings optically intentional on mobile. */
@media (max-width: 640px) {
  html[lang="zh-Hans"] body.zh-service-detail #process .section-head h2 {
    white-space: nowrap;
    font-size: clamp(1.6rem, 6.8vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
}

/* Chinese service-detail heroes use the same primary/secondary hierarchy. */
@media (max-width: 640px) {
  html[lang="zh-Hans"] body.zh-service-detail .hero h1.service-hero-title {
    max-width: min(100%, 21rem);
    font-size: clamp(2.8rem, 12vw, 3.2rem);
    line-height: 1;
    white-space: normal;
  }
  html[lang="zh-Hans"] body.zh-service-detail .hero-primary {
    font-size: 1em;
  }
  html[lang="zh-Hans"] body.zh-service-detail .hero-secondary {
    font-size: 0.66em;
    line-height: 1.08;
  }
}


/* Desktop integration on the current shared mobile/content baseline. */
@media (min-width: 1024px) {
  .site-header .container {
    max-width: var(--content-max);
    padding-inline: var(--space-md);
  }
  /* A second horizontal row gives the larger links their own space. */
  html .site-header .primary-nav {
    grid-column: 1 / -1; grid-row: 2;
    justify-self: center; margin-top: 0.55rem;
  }
  .primary-nav ul { gap: clamp(0.5rem, 1.5vw, 1.25rem); }
  .primary-nav li > a:not(.cta), .primary-nav .cta {
    font-size: 1rem; letter-spacing: 0.025em;
    padding: 0.7rem 0.5rem;
  }

  .home-flow .narrative .about-statement {
    max-width: var(--content-max);
    text-align: left;
  }
  .home-flow .narrative p {
    max-width: 48rem;
    margin-inline: 0;
  }
  .home-flow .craft-intro,
  body:not(.home-flow) .craft-intro,
  body:not(.home-flow) .section-head {
    margin-inline: 0;
    text-align: left;
  }
  /* These labels repeat the heading; desktop needs only title and description. */
  .home-flow .craft-intro > .eyebrow,
  body:not(.home-flow) #portfolio > .eyebrow {
    display: none;
  }
  .home-flow .craft-intro h2,
  body:not(.home-flow) #portfolio h2 { margin-top: 0; }

  /* Service pages use the same reading edge in both languages. */
  body:not(.home-flow) .hero-grid { align-items: flex-start; text-align: left; }
  body:not(.home-flow) .hero-text { align-items: flex-start; }
  body:not(.home-flow) .hero .lede { margin-inline: 0; }
  body:not(.home-flow) .hero-actions { justify-content: flex-start; }

  .home-flow .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(12rem, 1fr);
    column-gap: clamp(3rem, 5vw, 5rem);
    align-items: center;
    text-align: left;
  }
  html .home-flow .hero-text { max-width: none; align-items: flex-start; }
  html .home-flow .hero .lede { max-width: 38rem; margin-inline: 0; }
  html[lang="zh-Hans"] .hero-primary,
  html[lang="zh-Hans"] .hero-secondary { transform: none; }
  .home-flow .evidence-process-intro { margin-inline: 0; text-align: left; }
  .home-flow .hero-actions { justify-content: flex-start; }
  .home-flow .hero-portrait { margin: 2rem 0 0; justify-self: center; }
  .home-flow .hero-portrait img { width: 11rem; height: 11rem; }

  .home-flow .trust-list--compact {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }
  .home-flow .trust-list--compact li {
    grid-template-columns: 1fr;
    align-content: start;
    gap: var(--space-sm);
    padding-top: var(--space-md);
  }

  .home-flow #enquire > .container {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: min-content 1fr;
    column-gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
  .home-flow #enquire .section-head {
    grid-column: 1;
    grid-row: 1;
    margin: var(--space-md) 0 0;
    text-align: left;
  }
  .home-flow #enquire .section-head > p { margin-inline: 0; }
  .home-flow #enquire .enquiry-form {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 100%;
    max-width: 36rem;
    margin: 0 0 0 auto;
  }
  .home-flow #enquire .contact-alt {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
  }
  .home-flow #enquire .contact-channels { justify-content: flex-start; }
}

/* Fine woven lines derived from the original mobile Hero. */
html:not([data-theme="dark"]) {
  --weave: repeating-linear-gradient(45deg, rgba(131, 56, 74, 0.024) 0, rgba(131, 56, 74, 0.024) 1px, transparent 1px, transparent 9px), repeating-linear-gradient(-45deg, rgba(131, 56, 74, 0.024) 0, rgba(131, 56, 74, 0.024) 1px, transparent 1px, transparent 9px);
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='%23D0B477' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6 252C140 246 250 206 306 138 350 84 368 44 394 12'/%3E%3Cpath d='M104 256C200 246 286 206 334 144 366 102 380 76 396 54'/%3E%3C/svg%3E");
}
@media (max-width: 1023px) {
  html:not([data-theme="dark"]) body,
  html:not([data-theme="dark"]) main > section,
  html:not([data-theme="dark"]) .home-flow .homepage-evidence {
    background-image: var(--weave);
  }
  html:not([data-theme="dark"]) .hero {
    background: var(--weave), linear-gradient(175deg, var(--bg-alt) 0%, var(--bg) 55%);
  }
}

/* Light desktop: broad colour gradients with matching section endpoints. */
@media (min-width: 1024px) {
  html:not([data-theme="dark"]) {
    --bg-alt: #F3E1E6;
    --line: #E3DAD2;
    --glass-border: rgba(225, 215, 206, 0.68);
    --glass-shadow: 0 18px 44px -30px rgba(64, 48, 36, 0.22);
  }
  html:not([data-theme="dark"]) body { background-image: var(--weave); }
  html:not([data-theme="dark"]) .hero {
    background:
      var(--weave),
      linear-gradient(to bottom, #EBCED9 0%, #F5E4EA 48%, var(--bg) 100%);
    border-bottom-color: transparent;
  }
  html:not([data-theme="dark"]) section.alt {
    background: var(--weave), linear-gradient(to bottom, var(--bg) 0%, #F3DFE6 24%, var(--rose-soft) 52%, #F3DFE6 78%, var(--bg) 100%);
    box-shadow: none;
  }
  html:not([data-theme="dark"]) .home-flow .narrative {
    background: var(--weave), linear-gradient(to bottom, var(--bg), #F5E4EA);
  }
  html:not([data-theme="dark"]) .home-flow #craft {
    background: var(--weave), linear-gradient(to bottom, #F5E4EA 0%, #F0D8E1 55%, var(--rose-soft) 100%);
  }
  html:not([data-theme="dark"]) .home-flow .homepage-evidence {
    background: var(--weave), linear-gradient(to bottom, var(--rose-soft) 0%, #F0DBE3 48%, #F3E2E8 100%);
  }
  html:not([data-theme="dark"]) .home-flow #enquire {
    background: var(--weave), linear-gradient(to bottom, #F3E2E8 0%, #EED5DF 46%, var(--bg) 100%);
  }
}

/* One visible seam gesture, then the original static artwork. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero.has-seam-drawing::after { content: none; }
  html:not([data-theme="dark"]) .hero-seam { stroke: #D0B477; }
  .hero-seam {
    position: absolute; z-index: -1; pointer-events: none;
    right: 0; bottom: 0; width: min(58vw, 660px); aspect-ratio: 400 / 260;
    opacity: 0.5; fill: none; stroke: #C08C97; stroke-width: 1.4;
    stroke-linecap: round;
  }
  .hero-seam.is-pending path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .hero-seam.is-drawing path {
    stroke-dasharray: 1; animation: seam-draw 1.1s cubic-bezier(.22,.61,.36,1) both;
  }
  .hero-seam.is-drawing path + path { animation-delay: .12s; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  [data-theme="dark"] .hero-seam { stroke: #584E52; stroke-width: 1.25; }
}
@keyframes seam-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.service-portrait[hidden] { display: none; }

/* Desktop Header controls share the full bar's centerline; artwork is unchanged. */
@media (min-width: 901px) {
  .site-header .container {
    display: flex; justify-content: space-between;
    height: 5rem; padding-block: 0;
  }
  .site-header .brand-group {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
  }
  html .site-header .primary-nav {
    position: absolute; left: auto; right: var(--space-md);
    top: calc(100% + 0.4rem); bottom: auto;
    width: 18rem; max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 6rem); overflow-y: auto;
    margin: 0; transform: none;
    display: none;
  }
  html .site-header .primary-nav[data-open="true"] { display: block; }
  .primary-nav ul { padding: 0.5rem 1rem; gap: 0; }
  .primary-nav li > a:not(.cta), .primary-nav .cta {
    padding: 0.9rem 0.5rem; font-size: 1rem; letter-spacing: 0.025em;
  }
  .site-header .header-right { order: -1; transform: scale(1.25); transform-origin: left center; }
  .site-header .nav-toggle { order: 1; display: inline-flex; transform: scale(1.25); transform-origin: right center; }

}

@media (min-width: 1024px) {
  body.service-detail .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(12rem, 1fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: center;
  }
  html body.service-detail .hero-text { max-width: none; }
  .service-portrait[hidden] {
    display: flex; margin: 0; justify-self: center;
  }
}

@media (min-width: 901px) {
  .site-header .nav-toggle:focus:not(:focus-visible) { outline: none; }
  html:not([data-theme="dark"]) .site-header {
    background: rgba(250, 241, 242, 0.78);
    border-bottom: 1px solid rgba(180, 130, 147, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 20px -14px rgba(67, 24, 38, 0.24);
    -webkit-backdrop-filter: blur(12px) saturate(115%);
    backdrop-filter: blur(12px) saturate(115%);
  }
}

/* Release audit: readable links/buttons on charcoal; surfaces remain unchanged. */
[data-theme="dark"] { --wine: #B17D8D; --wine-deep: #C18A99; }

/* Keep native required-field validation clear of the sticky Header. */
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea { scroll-margin-top: 6rem; }
@media (min-width: 901px) {
  .enquiry-form input,
  .enquiry-form select,
  .enquiry-form textarea { scroll-margin-top: 7rem; }
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder { color: var(--ink-soft); opacity: 1; }

/* Original rose halo and three-star arrangement, modestly enlarged. */
.nav-toggle::after { font-size: 0.48rem; }

/* Supporting Hero words stay lighter and smaller than the primary message. */
html:not([data-theme="dark"]) .hero-secondary { color: #AA647A; }
.hero .eyebrow { font-weight: 400; }

/* Chinese mobile light Hero: one burgundy accent; dark and secondary use the base palette. */
@media (max-width: 900px) {
  html[lang="zh-Hans"]:not([data-theme="dark"]) .hero-primary { color: #7B2740; }
}
@media (min-width: 1024px) {
  html .hero-secondary {
    transform: none;
    margin-left: calc(clamp(2rem, 4vw, 4rem) + 5rem);
    margin-top: 0.3em;
  }
}


/* Light Visual Recovery v0.2 — bright rose, retain the original woven surfaces.
   Desktop's prior Hero primary pink is the common EN/ZH primary (all widths).
   Keep the original section gradients, woven textures and decorative motifs. */
html:not([data-theme="dark"]) {
  --bg: #FFF0F6;
  --bg-alt: #F9DDE7;
  --rose-soft: #F4D8E4;
  --hero-accent: #913D57;
  --hero-ink: #A75E79;
}

/* Existing mobile Chinese burgundy override is deliberately superseded:
   both languages inherit the same desktop-origin pink primary. */
html:not([data-theme="dark"]) .hero-primary,
html[lang="zh-Hans"]:not([data-theme="dark"]) .hero-primary {
  color: var(--hero-accent);
}
html:not([data-theme="dark"]) .hero-secondary {
  color: var(--hero-ink);
}

/* Keep the accepted thin label treatment and original bow behavior. */
.eyebrow { font-weight: 400; }
@media (max-width: 900px) {
  .eyebrow { font-size: max(var(--step-label), 0.82rem); }
}

/* The existing click flourish works. Restore a subtle, periodic resting motion
   while the menu is closed; user and OS reduced-motion preferences always win. */
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle:not([aria-expanded="true"]):not(.is-bow-animating) .brand-mark {
    animation: bow-idle 7.5s ease-in-out infinite;
  }
}

@keyframes bow-idle {
  0%, 76%, 100% { transform: translateY(0) rotate(0deg); }
  83% { transform: translateY(-1.5px) rotate(-2deg); }
  90% { transform: translateY(0.3px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle .brand-mark { animation: none !important; }
}

/* Light Visual Recovery v0.4 — unified EN/ZH light-home backgrounds.
   Shared rose tones are midway between the v0.3 English/Chinese backgrounds.
   Keep --weave, all motif assets and section structure byte-for-byte intact. */
html:not([data-theme="dark"]) body.home-flow {
  --bg: #FFF8F4;
  --bg-alt: #F9EDE4;
  --rose-soft: #F5E9E0;
  --flow-0: var(--bg);
  --flow-1: color-mix(in srgb, var(--bg) 82%, var(--bg-alt));
  --flow-2: color-mix(in srgb, var(--bg) 54%, var(--bg-alt));
  --flow-3: color-mix(in srgb, var(--bg) 68%, var(--bg-alt));
}

/* Both languages: end colour of each section equals the start of the next.
   Keep the fine woven lines as a distinct overlay, never flat colour blocks. */
html:not([data-theme="dark"]) body.home-flow .hero {
  background: var(--weave), linear-gradient(to bottom, var(--bg-alt) 0%, var(--flow-0) 100%);
}
html:not([data-theme="dark"]) body.home-flow .narrative {
  background: var(--weave), linear-gradient(to bottom, var(--flow-0) 0%, var(--flow-1) 100%);
}
html:not([data-theme="dark"]) body.home-flow #craft {
  background: var(--weave), linear-gradient(to bottom, var(--flow-1) 0%, var(--flow-2) 100%);
}
html:not([data-theme="dark"]) body.home-flow .homepage-evidence {
  background: var(--weave), linear-gradient(to bottom, var(--flow-2) 0%, var(--flow-3) 100%);
}
html:not([data-theme="dark"]) body.home-flow #enquire {
  background: var(--weave), linear-gradient(to bottom, var(--flow-3) 0%, var(--bg) 100%);
}


/* The English light Hero alone uses a square, browser-friendly prepared crop.
   Original image remains the dark-theme source, including its original crop. */
html[lang="en"] body.home-flow .hero-portrait .hero-portrait-optimized { display: none; }
html[lang="en"]:not([data-theme="dark"]) body.home-flow .hero-portrait .hero-portrait-original { display: none; }
html[lang="en"]:not([data-theme="dark"]) body.home-flow .hero-portrait .hero-portrait-optimized { display: block; }

/* Light Visual Recovery v0.5 — warm-cream pink under the original weave.
   Idle bow motion is now observable instead of paused for 76% of a 7.5s loop.
   Preserve reduced-motion accessibility and existing navigation behaviour. */
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle:not([aria-expanded="true"]):not(.is-bow-animating) .brand-mark {
    animation: bow-wave-v05 4.6s ease-in-out infinite;
  }
  .nav-toggle:not([aria-expanded="true"]):not(.is-bow-animating)::before {
    animation: bow-halo-idle-v05 4.6s ease-in-out infinite;
  }
  .nav-toggle.is-bow-animating .brand-mark {
    animation: bow-click-v05 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  }
}
@keyframes bow-wave-v05 {
  0%, 8%, 56%, 100% { transform: translateY(0) rotate(0deg); }
  18% { transform: translateY(-2.8px) rotate(-3.4deg); }
  28% { transform: translateY(0.7px) rotate(2.4deg); }
  38% { transform: translateY(-1px) rotate(-1.5deg); }
  47% { transform: translateY(0) rotate(0deg); }
}
@keyframes bow-halo-idle-v05 {
  0%, 8%, 56%, 100% { opacity: 0.34; transform: scale(1); }
  18% { opacity: 0.66; transform: scale(1.06); }
  30% { opacity: 0.46; transform: scale(1.015); }
  47% { opacity: 0.34; transform: scale(1); }
}
@keyframes bow-click-v05 {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  38% { transform: translateY(-2.8px) rotate(-3.6deg) scale(1.09); }
  72% { transform: translateY(1px) rotate(1.9deg) scale(0.988); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}


/* On touch-sized screens keep the already accepted bow identity, with a
   perceptible resting gesture when motion is allowed by the OS. No change to
   menu toggle logic or reduced-motion handling. */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .nav-toggle:not([aria-expanded="true"]):not(.is-bow-animating) .brand-mark {
    animation: bow-wave-mobile-v02 3.4s ease-in-out infinite;
  }
  .nav-toggle:not([aria-expanded="true"]):not(.is-bow-animating)::before {
    animation: bow-halo-mobile-v02 3.4s ease-in-out infinite;
  }
}
@keyframes bow-wave-mobile-v02 {
  0%, 6%, 65%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-3.2px) rotate(-4deg); }
  32% { transform: translateY(0.8px) rotate(2.3deg); }
  45% { transform: translateY(-1.2px) rotate(-1.8deg); }
  57% { transform: translateY(0) rotate(0); }
}
@keyframes bow-halo-mobile-v02 {
  0%, 6%, 65%, 100% { opacity: 0.34; transform: scale(1); }
  20% { opacity: 0.73; transform: scale(1.065); }
  40% { opacity: 0.48; transform: scale(1.025); }
  57% { opacity: 0.34; transform: scale(1); }
}


/* Light Visual Recovery v0.6 — homepage display-pink pairing.
   Reuse the desktop design system's display pink; both languages and widths.
   Keep the existing supporting Hero colour, dark mode, texture and layout. */
html:not([data-theme="dark"]) body.home-flow .site-header .brand,
html:not([data-theme="dark"]) body.home-flow .hero .hero-primary {
  color: var(--ink-display);
}


/* Light Palette Architecture v0.7 — one blush-cream foundation and three
   low-chroma business washes. EN/ZH share identical page assignments.
   Original brand/text, weave, motif assets and dark-theme rules stay intact. */
html:not([data-theme="dark"]) body.home-flow,
html:not([data-theme="dark"]) body.service-detail.palette-beauty,
html:not([data-theme="dark"]) body.service-detail.palette-fashion {
  --palette-base: #FFF6F3;
  --bg: var(--palette-base);
  --bg-alt: var(--palette-wash);
  --rose-soft: color-mix(in srgb, var(--palette-wash) 76%, var(--palette-base));
}
html:not([data-theme="dark"]) body.home-flow {
  --palette-wash: #F9E6E3; /* brand gateway: rosy champagne */
}
html:not([data-theme="dark"]) body.service-detail.palette-beauty {
  --palette-wash: #F8DEE9; /* makeup: soft blush rose */
}
html:not([data-theme="dark"]) body.service-detail.palette-fashion {
  --palette-wash: #F7E7D4; /* bespoke garments: champagne warmth */
}

/* Service pages: matching gradient endpoints, untouched woven top layer. */
html:not([data-theme="dark"]) body.service-detail.palette-beauty,
html:not([data-theme="dark"]) body.service-detail.palette-fashion {
  --service-flow-1: color-mix(in srgb, var(--bg) 82%, var(--bg-alt));
  --service-flow-2: color-mix(in srgb, var(--bg) 56%, var(--bg-alt));
  --service-flow-3: color-mix(in srgb, var(--bg) 70%, var(--bg-alt));
}
html:not([data-theme="dark"]) body.service-detail.palette-beauty .hero,
html:not([data-theme="dark"]) body.service-detail.palette-fashion .hero {
  background: var(--weave), linear-gradient(to bottom, var(--bg-alt) 0%, var(--bg) 100%);
}
html:not([data-theme="dark"]) body.service-detail.palette-beauty #offer,
html:not([data-theme="dark"]) body.service-detail.palette-fashion #offer {
  background: var(--weave), linear-gradient(to bottom, var(--bg) 0%, var(--service-flow-1) 100%);
}
html:not([data-theme="dark"]) body.service-detail.palette-beauty .portfolio-section,
html:not([data-theme="dark"]) body.service-detail.palette-fashion .portfolio-section {
  background: var(--weave), linear-gradient(to bottom, var(--service-flow-1) 0%, var(--service-flow-2) 100%);
}
html:not([data-theme="dark"]) body.service-detail.palette-beauty #process,
html:not([data-theme="dark"]) body.service-detail.palette-fashion #process {
  background: var(--weave), linear-gradient(to bottom, var(--service-flow-2) 0%, var(--service-flow-3) 100%);
}
html:not([data-theme="dark"]) body.service-detail.palette-beauty #cta,
html:not([data-theme="dark"]) body.service-detail.palette-fashion #cta {
  background: var(--weave), linear-gradient(to bottom, var(--service-flow-3) 0%, var(--bg) 100%);
}


/* Service detail process-to-enquiry rhythm v0.1: shrink only the adjacent
   section seam, leaving accepted brand colors, motifs and inner CTA spacing intact. */
body.service-detail #process {
  padding-bottom: clamp(3rem, 3.5vw, 3.5rem);
}
body.service-detail #cta {
  padding-top: clamp(3.75rem, 4.5vw, 4.5rem);
}


/* Product finish v0.2 — restore editorial breathing room on service pages.
   Do not modify Home or the accepted service gradient/texture layers. */
body.service-detail #cta { padding-bottom: clamp(4.5rem, 5vw, 4.75rem); }

/* After removing the redundant service CTA eyebrow, preserve a small
   intentional lead-in before the title without reinstating a fourth level. */
body.service-detail #cta .about-statement { padding-top: clamp(0.75rem, 1vw, 1rem); }

/* Footer is deliberately smaller than the centered brand header, but no
   longer reads as a hairline on compact screens. Preserve 44px hit targets. */
.site-footer { min-height: 4.5rem; padding-block: 0.75rem; }

