:root {
  color-scheme: light;
  --navy-900: #0b1426;
  --navy-800: #0e1a2f;
  --navy-600: #1d3156;
  --ivory: #fbf9f4;
  --ivory-deep: #f1ece1;
  --gold: #b8862b;
  --gold-text: #8a6417;
  --gold-light: #e0bd6a;
  --ink: #18202e;
  --ink-muted: #4a5466;
  --line: #ddd5c4;
  --display: "Marcellus", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--navy-800); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-muted); }
.small { font-size: 0.875rem; color: var(--ink-muted); margin-top: 12px; }
.num { font-variant-numeric: tabular-nums; }

/* Top bar: slim ivory, mark centred, links either side */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(251, 249, 244, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.topbar-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: block; line-height: 0; }
.brand img { width: 48px; height: 48px; }
.topbar nav { display: flex; gap: 2px; }
.nav-right { justify-content: flex-end; }
.topbar nav a { color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; padding: 10px 8px; border-radius: 6px; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a:focus-visible { background: var(--ivory-deep); }

/* Live prices strip, below the hero */
.prices { background: #fff; border-bottom: 1px solid var(--line); }
.prices-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 10px; }
.prices-label { font-family: var(--display); color: var(--navy-800); font-size: 1.05rem; }
.prices-note { font-size: 0.8rem; color: var(--ink-muted); }
.ticker iframe { display: block; width: 100%; height: 46px; border: 0; }

/* Hero: full-bleed split — navy text half, photo half edge to edge */
.hero { display: grid; grid-template-columns: 1fr; background: var(--navy-800); }
.hero-text { display: flex; align-items: center; padding: 36px var(--gutter) 40px; }
.hero-inner { max-width: 560px; margin-left: auto; width: 100%; }
.hero-logo { width: 150px; margin-bottom: 16px; }
.hero h1 { color: #fff; }
.hero .lede { color: #c7cede; }
.hero .kicker { color: var(--gold-light); }
.hero-photo { min-height: 260px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.kicker { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 0.6em; }
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 0; }

.button { display: inline-block; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 6px; border: 1px solid var(--navy-800); }
.button-navy { background: var(--navy-800); color: #fff; }
.button-navy:hover, .button-navy:focus-visible { background: var(--navy-600); border-color: var(--navy-600); }
.button-line { color: var(--navy-800); background: transparent; }
.button-line:hover, .button-line:focus-visible { background: var(--ivory-deep); }
.button-white { background: #fff; border-color: #fff; color: var(--navy-800); }
.button-white:hover, .button-white:focus-visible { background: var(--ivory-deep); }
.text-link { align-self: center; color: var(--gold-light); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; padding: 10px 4px; }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: var(--ivory-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-logo { width: 84px; flex: none; }

/* Product matrix: a table on wide screens, cards on phones */
.matrix { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.matrix-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.matrix-row:first-child { border-top: 0; }
.matrix-head { display: none; }
.product { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 1.2rem; color: var(--navy-800); }
.product img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
.cell-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }

/* Reference */
.ref-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ref { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.ref dl { margin: 0; display: grid; gap: 8px; }
.ref dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.ref dt { color: var(--ink-muted); }
.ref dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Guide */
.mt { margin-top: 48px; }
.mt-sm { margin-top: 32px; }
.narrow { max-width: 820px; }
.metals { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.metal { border-radius: 8px; padding: 20px; border: 1px solid var(--line); background: #fff; }
.metal-gold { border-top: 4px solid var(--gold); }
.metal-silver { border-top: 4px solid #9aa3ae; }
.metal-symbol { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.sym { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--navy-800); }
.metal-name { font-family: var(--display); font-size: 1.3rem; color: var(--ink-muted); }
.metal dl { margin: 0; display: grid; gap: 8px; }
.metal dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.metal dt { color: var(--ink-muted); }
.metal dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.compare { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); }
.compare-row:first-child { border-top: 0; }
.compare-head { display: none; }
.compare-row [role="rowheader"] { font-family: var(--display); font-size: 1.1rem; color: var(--navy-800); }

.two-col { display: grid; gap: 32px; }
.ticks, .steps { margin: 0; padding-left: 1.2em; }
.ticks li, .steps li { margin-bottom: 10px; }
.ticks li::marker { color: var(--gold); }
.steps li::marker { color: var(--gold-text); font-weight: 600; }

.ref-wide { grid-column: 1 / -1; }
.conv { display: grid; font-variant-numeric: tabular-nums; }
.conv-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.conv-row span:not(:first-child) { text-align: right; }
.conv-head { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }

.glossary { margin: 0; display: grid; gap: 12px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.glossary dt { font-weight: 600; color: var(--navy-800); }
.glossary dd { margin: 2px 0 0; color: var(--ink-muted); }

/* Questions */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-size: 1.15rem; color: var(--navy-800); list-style-position: inside; }
.faq details p { margin: 0 0 16px; color: var(--ink-muted); }

/* Hong Kong band */
.band { background: var(--navy-800); color: #e6e9ef; padding: 48px 0; }
.band h2 { color: var(--gold-light); }
.band-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.band h3 { color: #fff; margin-bottom: 0.3em; }
.band p { margin: 0; color: #c7cede; }

/* Registration */
.reg-grid { display: grid; gap: 28px; }
.register { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--navy-800); border-radius: 8px; background: #fff; overflow: hidden; }
.register div { padding: 14px 16px; border-top: 1px solid var(--line); }
.register div:first-child { border-top: 0; }
.register dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.register dd { margin: 4px 0 0; font-size: 1.05rem; }

.footer { background: var(--navy-900); color: #c7cede; padding: 22px 0; font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer p { margin: 0; }

@media (max-width: 419px) {
  .topbar nav a { padding: 10px 6px; font-size: 0.9rem; }
}
@media (max-width: 379px) {
  .nav-extra { display: none; }
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .hero-text { padding: 56px 48px 56px var(--gutter); }
  .hero-photo { min-height: 0; }
  .section { padding: 80px 0; }
  .matrix-head { display: grid; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); background: var(--ivory-deep); }
  .matrix-row { grid-template-columns: 1.1fr 1.6fr 0.9fr; align-items: center; gap: 16px; padding: 14px 20px; }
  .cell-label { display: none; }
  .reg-grid { grid-template-columns: 1fr 1.2fr; align-items: start; }
  .compare-head { display: grid; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); background: var(--ivory-deep); }
  .compare-row { grid-template-columns: 0.8fr 1.6fr 1.6fr; gap: 20px; padding: 14px 20px; align-items: start; }
  .compare .cell-label { display: none; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
  .register { grid-template-columns: 1fr 1fr; }
  .register div:nth-child(2) { border-top: 0; }
  .register div:nth-child(even) { border-left: 1px solid var(--line); }
  .register .wide { grid-column: 1 / -1; border-left: 0 !important; }
}
