/* Xing Xing Hair Salon
   Colours come from the shopfront sign: lacquer red, gold and warm black,
   with a warm off-white for reading sections. */

/* Fonts (self-hosted, SIL Open Font License) -------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/playfair-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Noto Serif SC, cut down to the characters of the shop name and the welcome screen. */
@font-face {
  font-family: "Xing Brand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/brand-zh.woff2") format("woff2");
  unicode-range: U+4E2D, U+53D1, U+5E97, U+6587, U+661F, U+6B22, U+7406, U+8FCE;
}

/* Fallback faces shaped like Inter and Playfair Display (measured from the font
   files), so text doesn't jump when the web fonts finish loading on a slow phone. */
@font-face {
  font-family: "Inter Fallback";
  font-weight: 100 500;
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.81%;
  ascent-override: 90.7%;
  descent-override: 22.58%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 101.46%;
  ascent-override: 95.48%;
  descent-override: 23.77%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Playfair Fallback";
  font-weight: 100 500;
  src: local("Georgia");
  size-adjust: 101.5%;
  ascent-override: 106.6%;
  descent-override: 24.73%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Playfair Fallback";
  font-weight: 600 900;
  src: local("Georgia Bold"), local("Georgia-Bold");
  size-adjust: 88.04%;
  ascent-override: 122.9%;
  descent-override: 28.51%;
  line-gap-override: 0%;
}

/* Tokens ------------------------------------------------------------------ */
:root {
  --night: #140d0c;
  --night-2: #1d1311;
  --night-3: #2b1b18;
  --red: #a01b22;
  --red-dark: #7f141a;
  --lacquer: #8e171d;
  --gold: #d9b467;
  --gold-hover: #e7c67f;
  --gold-ink: #7a5a17;
  --cream: #f6ecda;
  --cream-dim: #d9cbb5;
  --paper: #faf6ef;
  --paper-2: #f3ece1;
  --card: #fffdf9;
  --ink: #1d1513;
  --ink-soft: #5a4c45;
  --line: #e3d7c5;
  --line-strong: #cdbfab;
  --error: #9b1c1c;
  --open: #7fd49b;
  --shut: #f2a093;

  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", "Playfair Fallback", Georgia, "Times New Roman", serif;
  --font-brand: "Xing Brand", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 3px;
  --header-h: 68px;
  --cta-h: 72px;
}

:lang(zh) {
  --font-sans: "Inter", "Inter Fallback", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-serif: "Playfair Display", "Playfair Fallback", "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "Microsoft YaHei", serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-sans);
  /* Playfair Display defaults to old-style figures, which make "Kiosk 10" read like "1o". */
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:lang(zh) body,
body:lang(zh) {
  line-height: 1.8;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3 {
  line-height: 1.35;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
}

p,
li,
dd,
figcaption {
  text-wrap: pretty;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.gate :focus-visible,
.mobile-cta :focus-visible,
.page-hero :focus-visible,
.consent :focus-visible {
  outline-color: var(--gold);
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  /* Keeps content clear of the notch when an iPhone is held sideways. */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Touch: a soft gold tap flash instead of the grey default, and no double-tap zoom delay on controls. */
a,
button,
summary {
  -webkit-tap-highlight-color: rgba(217, 180, 103, 0.25);
}

.btn,
.gate-option,
.menu-toggle,
.faq summary,
.lang-switch a {
  touch-action: manipulation;
}

.sr-only {
  position: absolute !important;
  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: 12px;
  top: -100px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.eyebrow {
  margin: 0;
  font: 600 0.8rem/1.4 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

:lang(zh) .eyebrow {
  letter-spacing: 0.08em;
}

/* Brand mark -------------------------------------------------------------- */
.seal {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: var(--gold);
  font: 700 22px/1 var(--font-brand);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(231, 198, 127, 0.7), inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(231, 198, 127, 0.35);
}

.seal-lg {
  width: 64px;
  height: 64px;
  font-size: 38px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--cream);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font: 600 1.12rem/1.1 var(--font-serif);
  letter-spacing: 0.01em;
}

.brand-sub {
  font: 600 0.66rem/1.4 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Buttons (square corners on purpose) -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-position 0.6s ease;
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background-color: var(--gold);
  background-image: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  color: #1a110f;
}

.btn-outline-light {
  border-color: rgba(217, 180, 103, 0.65);
  color: var(--cream);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.text-link,
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Bigger tap areas for small links, without changing the layout. */
.text-link {
  padding-block: 10px;
  margin-block: -10px;
}

.text-link .icon {
  width: 16px;
  height: 16px;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Language switch --------------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(217, 180, 103, 0.4);
  border-radius: 2px;
}

.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--cream-dim);
  font: 600 0.85rem/1 var(--font-sans);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.lang-switch a + a {
  border-left: 1px solid rgba(217, 180, 103, 0.4);
}

.lang-switch a:hover {
  color: var(--gold);
}

.lang-switch a[aria-current="true"] {
  background: rgba(217, 180, 103, 0.16);
  color: var(--gold);
}

/* Header ------------------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--night);
  color: var(--cream);
  border-bottom: 1px solid rgba(217, 180, 103, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

.header-inner .brand {
  margin-right: auto;
}

.nav-desktop,
.header-cta {
  display: none;
}

.nav-desktop a,
.menu-panel a {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 500;
}

.nav-desktop a:hover,
.menu-panel a:hover {
  color: var(--gold);
}

.menu {
  position: static;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(217, 180, 103, 0.4);
  border-radius: 2px;
  color: var(--cream);
  font: 600 0.88rem/1 var(--font-sans);
  cursor: pointer;
  list-style: none;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu[open] .menu-toggle {
  border-color: var(--gold);
  color: var(--gold);
}

.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  padding: 8px max(var(--gutter), env(safe-area-inset-right)) 20px max(var(--gutter), env(safe-area-inset-left));
  background: var(--night);
  border-bottom: 1px solid rgba(217, 180, 103, 0.25);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.35);
}

.menu-panel a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(217, 180, 103, 0.12);
  font-size: 1.05rem;
}

.menu-panel a:last-child {
  border-bottom: 0;
}

@media (max-width: 399px) {
  .header-inner {
    gap: 8px;
  }

  .lang-switch a {
    min-width: 40px;
    padding: 0 8px;
  }

  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 359px) {
  .header-inner .brand-text {
    display: none;
  }
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1060px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    min-height: var(--header-h);
  }

  .nav-desktop {
    display: flex;
    gap: 24px;
    margin-right: 8px;
    font-size: 0.95rem;
  }

  .menu {
    display: none;
  }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background:
    radial-gradient(110% 80% at 88% 8%, rgba(142, 23, 29, 0.55), transparent 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(110, 16, 22, 0.45), transparent 65%),
    var(--night);
}

.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  right: -6vw;
  bottom: -14vw;
  z-index: -1;
  font: 700 min(70vw, 760px)/1 var(--font-brand);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(217, 180, 103, 0.13);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  display: grid;
  gap: 40px;
  padding-top: clamp(24px, 5vw, 80px);
  padding-bottom: clamp(36px, 6vw, 96px);
}

.hero-zh {
  margin: 14px 0 0;
  font: 700 1.55rem/1 var(--font-brand);
  letter-spacing: 0.14em;
  color: var(--gold);
}

.hero h1 {
  margin: 14px 0 14px;
  max-width: 15ch;
  font-size: clamp(2rem, 1.25rem + 3.6vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero h1:lang(zh),
:lang(zh) .hero h1 {
  max-width: 13em;
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-size: clamp(1.85rem, 1.2rem + 3vw, 3.6rem);
}

.lede {
  max-width: 46ch;
  margin: 0;
  color: var(--cream-dim);
  font-size: clamp(1rem, 0.94rem + 0.35vw, 1.2rem);
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.lbl-long {
  display: none;
}

@media (min-width: 560px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
  }

  .lbl-long {
    display: inline;
  }

  .lbl-short {
    display: none;
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.hero-meta li,
.hero-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta .icon {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.hero-meta a {
  padding-block: 10px;
  margin-block: -10px;
  color: inherit;
  text-decoration: none;
}

.hero-meta a:hover {
  color: var(--gold);
}

.status {
  color: var(--cream);
  font-weight: 600;
}

/* The open/closed line is filled in by script; keep its space so nothing below it jumps. */
.status[hidden] {
  visibility: hidden;
}

.no-js .status {
  display: none !important;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--shut);
  box-shadow: 0 0 0 4px rgba(242, 160, 147, 0.16);
}

.status.is-open .status-dot {
  background: var(--open);
  box-shadow: 0 0 0 4px rgba(127, 212, 155, 0.16);
}

.hero-link {
  margin-top: 12px;
  margin-bottom: -10px;
  padding-block: 10px;
  color: var(--gold);
  text-decoration: none;
}

.hero-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.hero-link:hover {
  color: var(--gold-hover);
}

.hero-sign {
  display: none;
}

/* Small phones: keep the WhatsApp and Call buttons on the first screen. */
@media (max-width: 379px) {
  .hero-inner {
    padding-top: 16px;
  }

  .hero-zh {
    margin-top: 10px;
    font-size: 1.3rem;
  }

  .hero h1 {
    margin: 10px 0;
    font-size: 1.85rem;
  }

  .lede {
    font-size: 0.97rem;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 18px;
  }
}

/* Phones held sideways have very little height. */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 1059px) {
  .hero-inner {
    padding-top: 16px;
    padding-bottom: 28px;
  }

  .hero-zh {
    display: none;
  }

  .hero h1 {
    max-width: 30ch;
    margin: 8px 0 10px;
    font-size: 2rem;
  }

  .lede {
    max-width: 62ch;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 16px;
  }
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 56px;
    min-height: min(calc(100svh - var(--header-h)), 820px);
  }

  .hero-zh {
    display: none;
  }

  .hero-sign {
    display: block;
    position: relative;
    padding-top: 64px;
    margin-right: clamp(0px, 3vw, 48px);
  }

  .hero-sign::before,
  .hero-sign::after {
    content: "";
    position: absolute;
    top: 0;
    width: 1px;
    height: 64px;
    background: linear-gradient(rgba(217, 180, 103, 0), rgba(217, 180, 103, 0.75));
  }

  .hero-sign::before {
    left: 28%;
  }

  .hero-sign::after {
    right: 28%;
  }

  .sign {
    position: relative;
    writing-mode: vertical-rl;
    padding: 30px 24px;
    background: linear-gradient(180deg, #a41d24, #741219);
    color: var(--gold);
    font: 700 clamp(3.2rem, 5vw, 5rem)/1 var(--font-brand);
    letter-spacing: 0.16em;
    text-shadow: 0 2px 0 rgba(60, 6, 9, 0.45);
    border-radius: 2px;
    box-shadow:
      inset 0 0 0 1px rgba(231, 198, 127, 0.7),
      inset 0 0 0 7px #8a151c,
      inset 0 0 0 8px rgba(231, 198, 127, 0.4),
      0 40px 90px rgba(0, 0, 0, 0.5),
      0 0 120px rgba(160, 27, 34, 0.35);
  }
}

/* Reviews strip ----------------------------------------------------------- */
.proof {
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--line);
}

.proof-inner {
  display: grid;
  gap: 32px;
}

.proof-num {
  margin: 0;
  font: 600 3.4rem/1 var(--font-serif);
}

.rating-stars {
  width: 120px;
  height: 24px;
  margin: 10px 0 14px;
}

.rating-empty {
  fill: var(--line-strong);
}

.rating-full {
  fill: #c8992f;
}

.proof-title {
  font: 600 1.05rem/1.4 var(--font-sans);
  margin: 0;
}

.proof-count {
  margin: 0;
  color: var(--ink-soft);
}

.proof-asof {
  margin: 4px 0 14px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.proof-quote {
  margin: 0;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote,
.story-quote {
  margin: 0;
  font: 500 1.08rem/1.6 var(--font-serif);
}

.quote p,
.story-quote p {
  margin: 0;
}

.translation {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.translation-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
}

.proof-quote figcaption,
.story-author {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .proof-inner {
    grid-template-columns: 260px 1fr 1fr;
    align-items: start;
    gap: 28px;
  }
}

/* Sections ---------------------------------------------------------------- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section-tight {
  padding-top: clamp(48px, 6vw, 80px);
}

.section-alt {
  background: var(--paper-2);
}

.section-head {
  max-width: 700px;
  margin-bottom: clamp(30px, 4.5vw, 52px);
}

.section-head .eyebrow {
  color: var(--red);
}

.section-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Services ---------------------------------------------------------------- */
.menu-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.menu-item h3 {
  margin-bottom: 4px;
  font-size: 1.22rem;
}

.menu-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.menu-item .price {
  flex: none;
  max-width: 45%;
  color: var(--gold-ink);
  font-weight: 600;
  text-align: right;
}

.price-quote {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.services-note {
  margin: 26px 0 0;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .menu-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
  }
}

/* What to expect ---------------------------------------------------------- */
.steps {
  display: grid;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding-top: 22px;
  border-top: 2px solid var(--gold);
}

.step-num {
  font: 600 0.82rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  color: var(--gold-ink);
}

.step h3 {
  margin: 12px 0 8px;
  font-size: 1.3rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
  }
}

/* Client stories ---------------------------------------------------------- */
.stories {
  display: grid;
  gap: 20px;
}

.story {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.story h3 {
  font-size: 1.28rem;
}

.facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.facts div {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  gap: 12px;
}

.facts dt {
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

.story-quote {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 1.02rem;
}

.story .translation {
  margin-top: -6px;
}

.story-author {
  margin-top: -4px;
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: auto 0 0;
  font-size: 0.93rem;
  font-weight: 600;
}

.story-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 10px;
  margin-block: -10px;
}

.story-links .icon {
  width: 15px;
  height: 15px;
}

@media (min-width: 900px) {
  .stories {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Placeholders for photos that haven't been supplied yet ------------------- */
.ph {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(160, 27, 34, 0.45), transparent 70%),
    var(--night-2);
  color: var(--cream-dim);
  text-align: center;
  border-radius: var(--radius);
}

.ph::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(217, 180, 103, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

.ph-text {
  max-width: 28ch;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Stylist ----------------------------------------------------------------- */
.stylist {
  display: grid;
  gap: 32px;
  align-items: center;
}

.stylist-media {
  margin: 0;
}

.stylist-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.stylist-copy .section-head {
  margin-bottom: 0;
}

/* Until the real photo arrives, a shorter placeholder saves scrolling on phones. */
@media (max-width: 899px) {
  .stylist-photo.ph {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 900px) {
  .stylist {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }

  .stylist-media {
    max-width: 420px;
  }
}

/* Gallery ----------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery figure {
  margin: 0;
}

.tile {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
}

/* Find us ----------------------------------------------------------------- */
.find-grid {
  display: grid;
  gap: 40px;
}

.find-grid-lower {
  margin-top: 40px;
}

.find-info h3,
.hours-card h3,
.address-block h3 {
  font-size: 1.3rem;
}

.address-block address {
  margin: 10px 0 18px;
  font-size: 1.08rem;
}

.find-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

/* On phones, stack paired buttons full width so they're easy to hit with a thumb. */
@media (max-width: 479px) {
  .find-actions .btn,
  .button-row .btn,
  .book-intro .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

.lookfor {
  margin: 32px 0;
}

.shopfront {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius);
}

.lookfor figcaption {
  margin-top: 12px;
  font-weight: 600;
}

.zh-brand {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
}

.sf-zh {
  font: 700 30px var(--font-brand);
  letter-spacing: 6px;
  fill: #ecc770;
}

.sf-en {
  font: 600 8.5px var(--font-sans);
  letter-spacing: 2.4px;
  fill: rgba(246, 236, 218, 0.72);
}

.routes {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.routes li {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}

.routes strong {
  display: block;
  font-weight: 600;
}

.routes span {
  color: var(--ink-soft);
}

.map-figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-figure figcaption {
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

.wayfinding {
  width: 100%;
  height: auto;
}

/* Map drawing styles */
.m-bg { fill: #f3ece1; }
.m-bld { fill: #e4d7c3; }
.m-square { fill: #edd59b; stroke: #c49a43; stroke-width: 1; }
.m-case,
.m-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-case { stroke: #cdbca3; }
.m-road { stroke: #ffffff; }
.m-case.m-minor { stroke-width: 7; }
.m-road.m-minor { stroke-width: 5; }
.m-road.m-walk { stroke: #f1dcaa; stroke-width: 4; }
.m-case.m-main { stroke-width: 10; }
.m-road.m-main { stroke-width: 8; }
.m-case.m-ring { stroke-width: 14; stroke: #c9b394; }
.m-road.m-ring { stroke-width: 12; stroke: #fffaf1; }
.m-route { fill: none; stroke: var(--red); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0.1 6.5; }
.m-label {
  font: 600 12.5px var(--font-sans);
  fill: #4b3e37;
  stroke: #fffdf9;
  stroke-width: 3.5px;
  stroke-linejoin: round;
  paint-order: stroke;
}
.m-label-major { font-size: 13.5px; fill: #2c211d; }
.m-label-square { font: 700 12.5px var(--font-serif); fill: #5f4510; stroke: #f6e6bd; }
.m-salon-tag { fill: var(--red); }
.m-salon-text { font: 700 12.5px var(--font-sans); fill: #f6dc9b; }
.m-salon-dot { fill: var(--red); stroke: #ffffff; stroke-width: 2.5; }
.m-salon-star { fill: var(--gold); }
.m-bus-bg { fill: #2b211e; }
.m-bus-body { fill: #ffffff; }
.m-bus-glass { fill: #2b211e; }
.m-park rect { fill: #2f5d8a; }
.m-park text { font: 700 11.5px var(--font-sans); fill: #ffffff; }
.m-north circle { fill: #fffdf9; stroke: #cdbca3; }
.m-north path { fill: var(--red); }
.m-north text { font: 700 9px var(--font-sans); fill: #2c211d; }
.m-legend-bg { fill: rgba(255, 253, 249, 0.94); stroke: #d9ccb8; }
.m-legend-text { font: 500 12px var(--font-sans); fill: #2c211d; }

@media (max-width: 599px) {
  .map-figure {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  /* The map is drawn smaller on a phone, so its lettering is set larger to stay readable. */
  .m-label { font-size: 14px; }
  .m-label-major { font-size: 15px; }
  .m-label-square { font-size: 14px; }
  .m-salon-text { font-size: 14px; }
  .m-legend-text { font-size: 13.5px; }
  .m-north text { font-size: 10px; }
}

.hours-card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hours-table {
  width: 100%;
  margin: 12px 0 0;
  border-collapse: collapse;
}

.hours-table th,
.hours-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}

.hours-table td {
  text-align: right;
}

.hours-table tr.is-today th,
.hours-table tr.is-today td {
  font-weight: 700;
  color: var(--red);
}

.today-tag {
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}

.hours-note {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.gmap {
  display: grid;
  min-height: 340px;
  background:
    repeating-linear-gradient(45deg, rgba(205, 191, 171, 0.18) 0 2px, transparent 2px 14px),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.gmap-inner {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}

.gmap-inner h3 {
  font-size: 1.3rem;
}

.gmap-inner p {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.gmap-icon {
  width: 34px;
  height: 34px;
  color: var(--red);
}

.gmap-alt {
  font-size: 0.9rem;
}

.gmap-alt a {
  padding-block: 10px;
}

.gmap iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.no-js .gmap button {
  display: none;
}

@media (min-width: 1000px) {
  .find-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }

  .find-grid-lower {
    align-items: stretch;
  }

  .map-figure {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* FAQ --------------------------------------------------------------------- */
.faq {
  max-width: 860px;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  font: 600 1.16rem/1.4 var(--font-serif);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  margin-top: 3px;
  color: var(--red);
  transition: transform 0.2s ease;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .answer {
  max-width: 68ch;
  padding: 0 0 24px;
  color: var(--ink-soft);
}

.faq .answer p {
  margin: 0;
}

/* Booking ----------------------------------------------------------------- */
.book-grid {
  display: grid;
  gap: 40px;
}

.book-intro .section-head {
  margin-bottom: 24px;
}

.promise {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}

.promise .icon {
  margin-top: 3px;
  color: var(--gold-ink);
}

.book-or {
  margin: 0 0 10px;
  font-weight: 600;
}

.book-online {
  margin: 0 0 16px;
}

.book-hours {
  display: grid;
  gap: 2px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.booking-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background-color: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4c45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

/* iPhone date fields: stop the native styling from shrinking or centring the field. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}

.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
  outline: 3px solid rgba(160, 27, 34, 0.18);
  outline-offset: 0;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-hint {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.field-error {
  margin: 6px 0 0;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-error[hidden] {
  display: none;
}

.field-row {
  display: grid;
  gap: 18px;
}

.form-help {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.form-noscript {
  display: none;
}

.no-js .booking-form {
  display: none;
}

.no-js .form-noscript {
  display: block;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .book-grid {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
    align-items: start;
  }
}

/* Sub pages --------------------------------------------------------------- */
.page-hero {
  padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
  background:
    radial-gradient(90% 120% at 90% 0%, rgba(142, 23, 29, 0.5), transparent 60%),
    var(--night);
  color: var(--cream);
}

.page-hero h1 {
  max-width: 22ch;
  margin-top: 18px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
}

.page-meta {
  margin: 14px 0 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(217, 180, 103, 0.6);
}

.breadcrumb a {
  padding-block: 12px;
  color: var(--gold);
}

.section-page {
  padding-top: clamp(40px, 6vw, 72px);
}

.narrow,
.prose {
  max-width: calc(760px + 2 * var(--gutter));
}

.prose h2 {
  margin: 2em 0 0.6em;
  font-size: 1.45rem;
}

.lead {
  font-size: 1.15rem;
}

.translation-note {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
}

.thanks-actions {
  margin: 28px 0 40px;
}

.thanks-label {
  margin-bottom: 12px;
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.small-heading {
  margin: 0 0 12px;
  font-size: 1.3rem;
}

.link-list {
  display: grid;
  gap: 2px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.link-list a {
  display: inline-block;
  padding-block: 10px;
}

.link-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  padding: 60px 0 32px;
  background: var(--night);
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font: 600 0.8rem/1.4 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-brand p {
  max-width: 34ch;
  margin: 16px 0 0;
}

.footer-zh {
  font: 700 1.3rem/1 var(--font-brand);
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-contact {
  margin: 0;
  line-height: 1.6;
}

/* Footer links are spaced as 44px rows so each is easy to tap. */
.footer-contact a,
.footer-links a {
  display: inline-block;
  padding-block: 10px;
}

.footer-hours,
.footer-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links {
  gap: 0;
}

.footer-links a {
  display: block;
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 280px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(217, 180, 103, 0.18);
  font-size: 0.86rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

/* Sticky call-to-action bar on phones and tablets -------------------------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: rgba(20, 13, 12, 0.97);
  border-top: 1px solid rgba(217, 180, 103, 0.28);
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s linear 0s;
}

.mobile-cta .btn {
  min-height: 50px;
}

/* On the homepage the bar waits until the hero's own buttons scroll away
   (script adds .is-shown), so it never doubles up or flashes on load. */
.js .page-home .mobile-cta:not(.is-shown) {
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

@media (orientation: landscape) and (max-height: 500px) {
  .mobile-cta {
    padding-top: 7px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }

  .mobile-cta .btn {
    min-height: 44px;
  }
}

.site-footer {
  padding-bottom: calc(32px + var(--cta-h) + env(safe-area-inset-bottom));
}

@media (min-width: 1060px) {
  .mobile-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 32px;
  }
}

/* Analytics consent (only rendered when Google Analytics is switched on) --- */
.consent {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--cta-h) + 12px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  gap: 12px;
  max-width: 520px;
  padding: 18px;
  background: var(--night-2);
  color: var(--cream);
  border: 1px solid rgba(217, 180, 103, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  font-size: 0.93rem;
}

.consent[hidden] {
  display: none;
}

.consent p {
  margin: 0;
}

.consent a {
  color: var(--gold);
}

.consent-actions {
  display: flex;
  gap: 10px;
}

@media (min-width: 1060px) {
  .consent {
    left: 24px;
    right: auto;
    bottom: 24px;
  }
}

/* Language welcome screen -------------------------------------------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Nearly opaque by default so the page behind never shows through sharply. */
  background: rgba(16, 10, 9, 0.97);
  color: var(--cream);
}

/* Where the browser can blur what's behind, let the hero's stars glow through softly. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .gate {
    background: rgba(16, 10, 9, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.gate-open .gate {
  display: flex;
}

html.gate-open {
  overflow: hidden;
}

.gate-open .mobile-cta {
  display: none;
}

.gate.is-closing {
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* margin: auto centres the panel but, unlike align-items: center, lets it scroll
   from the top when the screen is shorter than the panel (phones held sideways). */
.gate-panel {
  width: min(100%, 440px);
  margin: auto;
  text-align: center;
  animation: gate-in 0.5s ease both;
}

.gate-panel .seal {
  margin-bottom: 26px;
}

.gate-welcome {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 14px;
  font-size: clamp(1.55rem, 1.2rem + 1.8vw, 2.15rem);
  line-height: 1.3;
}

.gate-zh {
  font-family: var(--font-brand);
  font-weight: 700;
}

.gate-dot {
  color: var(--gold);
}

/* On narrow screens, one greeting per line instead of a wrapped row with stray dots. */
@media (max-width: 519px) {
  .gate-welcome {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .gate-dot {
    display: none;
  }
}

.gate-choose {
  display: grid;
  gap: 2px;
  margin: 14px 0 30px;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.gate-options {
  display: grid;
  gap: 12px;
}

.gate-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px;
  border: 1px solid rgba(217, 180, 103, 0.5);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cream);
  font: 600 1.15rem/1.2 var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gate-option:active {
  transform: translateY(1px);
}

.gate-text {
  display: grid;
  gap: 3px;
}

.gate-label-zh {
  font-family: var(--font-brand);
  font-size: 1.25rem;
}

.gate-suggest {
  display: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gate-option.is-suggested {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a110f;
}

.gate-option.is-suggested .gate-suggest {
  display: block;
}

.gate-option .icon {
  width: 20px;
  height: 20px;
}

/* Movement only, no fade: if a browser ever pauses the animation, the choices are still visible. */
@keyframes gate-in {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}

/* Short screens (phones held sideways): a compact welcome with the languages side by side. */
@media (max-height: 560px) and (min-width: 520px) {
  .gate-panel {
    width: min(100%, 720px);
  }

  .gate-panel .seal {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    font-size: 26px;
  }

  .gate-welcome {
    font-size: 1.45rem;
  }

  .gate-choose {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px 16px;
    margin: 8px 0 18px;
    font-size: 0.9rem;
  }

  .gate-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .gate-option {
    min-height: 56px;
    padding: 8px 14px;
    font-size: 1.05rem;
  }
}

/* Short phones held upright. */
@media (max-height: 640px) and (max-width: 519px) {
  .gate-panel .seal {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    font-size: 31px;
  }

  .gate-choose {
    margin: 10px 0 20px;
  }

  .gate-option {
    min-height: 56px;
  }
}

/* Hover effects only where there's a real mouse, so colours don't stay stuck after a tap on a phone. */
@media (hover: hover) {
  .btn-gold:hover {
    background-color: var(--gold-hover);
    background-position: -30% 0;
    color: #1a110f;
  }

  .btn-outline-light:hover {
    border-color: var(--gold);
    background: rgba(217, 180, 103, 0.1);
    color: var(--cream);
  }

  .btn-red:hover {
    background: var(--red-dark);
    color: #fff;
  }

  .btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
  }

  .hero-link:hover .icon {
    transform: translateX(3px);
  }

  .faq summary:hover {
    color: var(--red);
  }

  .gate-option:not(.is-suggested):hover {
    border-color: var(--gold);
    background: rgba(217, 180, 103, 0.1);
  }
}

/* While a returning visitor is redirected to their language, show nothing. */
.redirecting body {
  visibility: hidden;
}

/* Motion and print -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media print {
  .gate,
  .mobile-cta,
  .consent,
  .stars,
  .menu,
  .nav-desktop,
  .header-cta,
  .gmap {
    display: none !important;
  }

  .hero,
  .site-header,
  .site-footer,
  .page-hero {
    background: none;
    color: #000;
  }
}
