/* ============================================================
   whaletech.hk · 泊港 Moored — the whale's harbour chart
   One stylesheet for every page. Tokens first, then primitives,
   then page sections in reading order, then legal-page primitives,
   then the responsive and motion overrides.
   ============================================================ */

:root {
  /* palette */
  --paper: #FAF8F5;        /* 海圖紙 chart paper */
  --sand: #F0EDE8;         /* 沙洲 sandbank */
  --shallows: #DCEBF4;     /* 淺灘 shallows */
  --night: #08192B;        /* 夜港 night harbour */
  --whale: #4DB1FE;        /* 鯨藍 whale blue (sampled from the mark) */
  --fairway: #1D4ED8;      /* 航道 fairway · action blue on paper */
  --label: #2E6DBA;        /* 標籤藍 label blue */
  --magenta: #D1338C;      /* 海圖洋紅 chart magenta · lights only */
  --ink: #1D1D1F;
  --ink-head: #0F172A;
  --muted: #6E6E73;
  --sounding: #7A8797;     /* 測深灰 · soundings and captions on 夜港 */
  --caption: #5C6B7A;      /* mono captions on paper / white / 淺灘 (AA at 0.66rem) */
  --fog: #F1F6FA;          /* 霧白 text on night */
  --exit: #F7C600;         /* skip-link amber */
  --hairline: rgba(15, 23, 42, 0.08);
  --hairline-dark: rgba(241, 246, 250, 0.10);

  /* type */
  --sans: 'Chiron Hei HK', 'Noto Sans HK', 'PingFang HK', 'Microsoft JhengHei', system-ui, sans-serif;
  --latin: 'Space Grotesk', 'Chiron Hei HK', 'Noto Sans HK', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Cactus Classical Serif', 'Noto Serif HK', 'Songti TC', serif;

  /* motion */
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --standard: cubic-bezier(0.4, 0, 0.2, 1);

  /* layout */
  --container: 1080px;
  --gutter: 2rem;
  --nav-h: 72px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }
h1, h2, h3, h4 { font-weight: 700; color: var(--ink-head); line-height: 1.3; letter-spacing: 0; }
/* Rule 1 · the typeface seam: only deliberate Latin chunks (.latin) switch to Space Grotesk.
   Plain English body text stays in Chiron Hei HK's own Latin. */
.latin { font-family: var(--latin); font-weight: 500; letter-spacing: -0.01em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.latin { margin: 0 0.2em; }                          /* 盤古之白 · the one thin space either side of a Latin run (no literal spaces beside .latin) */
/* the reset applies only where a Latin run really starts or ends its line, never to a run that merely happens to be
   the first element of a wrapper (the H1's .nowrap once hid the gap before 「build」) */
.hero-h1 .line > .latin:first-child, .sec-title > .latin:first-child, .page-head h1 > .latin:first-child, .panel-name > .latin:first-child,
.sign-board > .latin:first-child, .sign-desc > .latin:first-child, .pcard p > .latin:first-child, .pillar-card p > .latin:first-child { margin-left: 0; }
.hero-h1 .line > .latin:last-child, .sec-title > .latin:last-child, .page-head h1 > .latin:last-child,
.sign-desc > .latin:last-child, .panel-desc > .latin:last-child, .pillar-card p > .latin:last-child { margin-right: 0; }

/* ---------- focus ---------- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--fairway); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .site-nav.is-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--magenta); }
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 2000;
  padding: 0.6rem 1rem; background: var(--exit); color: #000;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em;
  transform: translateY(-120%); transition: transform 0.2s var(--standard);
}
.skip-link:focus { transform: none; outline-color: var(--night); }

/* ---------- bilingual devices ---------- */
/* Rule 2 · stacked signage pair: Chinese on top, mono English caption beneath */
.pair { display: inline-flex; flex-direction: column; line-height: 1.2; }
.pair > [lang="zh-Hant-HK"], .pair > :first-child { font-weight: 600; }
.pair-en {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--caption);
  margin-top: 0.35rem;
}.pair-en .pn, .sec-title-en .pn, .tide-h .pn, .sign-status .pn, .unis-label .pn { text-transform: none; }   /* Whale LaTeX and the product names stay proper nouns */
/* on 夜港 the caption is 測深灰 (4.85:1 on #08192B) */
.page-home .site-nav .pair-en, .site-footer .pair-en, .hero .pair-en, .btn-ghost .pair-en { color: var(--sounding); }
/* the .ai 'Blue Whale' lockup with the company's Chinese name */
.lockup {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-size: 1.25rem; font-weight: 700; letter-spacing: 0.42em; text-indent: 0.42em; white-space: nowrap;
}
.lockup::before, .lockup::after { content: ''; width: 1.2em; height: 1.5px; background: var(--whale); flex: none; }
.lockup::after { margin-left: -0.42em; }
.sec-label {
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--label);
  margin-bottom: 0.6rem;
}
.sec-label.pair { display: flex; }
.sec-label .pair-en { margin-top: 0.25rem; color: var(--label); }
.sec-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.3; margin-bottom: 1rem; text-wrap: balance; }
.sec-desc { font-size: 1rem; line-height: 1.85; color: var(--muted); max-width: 34em; }
.sec-head { margin-bottom: 2.5rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  transition: padding 0.3s var(--standard), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; }
.nav-mark { width: 36px; height: 36px; flex: none; }
.nav-lockup { display: flex; flex-direction: column; }
.nav-lockup .lockup { font-size: 1rem; }
.nav-lockup .pair-en { margin-top: 0.15rem; font-size: 0.66rem; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-link { display: inline-flex; align-items: flex-start; padding: 0.35rem 0.15rem; position: relative; min-height: 44px; }
.nav-link .pair-en { font-size: 0.66rem; }
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 0; height: 1.5px;
  background: var(--whale); transform: translateX(-50%);
  transition: width 0.4s var(--expo);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform 0.25s var(--expo), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* light skin (contact / company / legal) */
.page-light .site-nav { background: rgba(250, 248, 245, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: var(--shallows); color: var(--ink-head); }
.page-light .site-nav.scrolled { background: rgba(250, 248, 245, 0.97); padding: 0.55rem 0; }
.page-light .nav-link > .pair > :first-child { color: var(--ink-head); }
/* dark skin (home, over the hero) */
.page-home .site-nav { color: var(--fog); }
.page-home .site-nav.scrolled { background: rgba(8, 25, 43, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: var(--hairline-dark); padding: 0.55rem 0; }
.page-home .nav-mark { filter: drop-shadow(0 0 12px rgba(77, 177, 254, 0.55)); }   /* the site's one neon */
/* the lockup appears once per screen: in the hero eyebrow over the chart, in the nav once the page scrolls */
.page-home .nav-lockup { transition: opacity 0.3s var(--standard); }
.page-home .site-nav:not(.scrolled) .nav-lockup { opacity: 0; }
.page-home .nav-link > .pair > :first-child { color: rgba(241, 246, 250, 0.86); transition: color 0.25s; }
.page-home .nav-link:hover > .pair > :first-child, .page-home .nav-link[aria-current="page"] > .pair > :first-child { color: #fff; }

/* ============================================================
   HERO · 海圖
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh; min-height: 88svh;
  background: var(--night); color: var(--fog);
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.soundings {
  position: absolute; inset: var(--nav-h) 0 0 0; z-index: 0; pointer-events: none;
  font-family: var(--mono); font-size: 0.8rem; font-variant-numeric: tabular-nums;
  color: var(--sounding); opacity: 0; transition: opacity 0.3s ease;
  -webkit-mask-image: radial-gradient(ellipse 58% 70% at 26% 48%, transparent 0 36%, #000 72%);
          mask-image: radial-gradient(ellipse 58% 70% at 26% 48%, transparent 0 36%, #000 72%);
}
.soundings.is-in { opacity: 0.62; }
.soundings span { position: absolute; transform: translate(-50%, -50%); }
.soundings span::before { content: '· '; opacity: 0.6; }
.contour {
  position: absolute; left: 0; right: 0; bottom: 5.5rem; z-index: 1; pointer-events: none;
  height: 90px; width: 100%;
}
.contour path { fill: none; stroke: var(--whale); stroke-opacity: 0.45; stroke-width: 1; vector-effect: non-scaling-stroke; }
.contour text { fill: var(--whale); fill-opacity: 0.55; font-family: var(--mono); font-size: 11px; }
.hero-eyebrow { display: flex; margin-bottom: 1.75rem; }
.hero-eyebrow .lockup { color: var(--fog); }
.hero-eyebrow .pair-en { margin-left: 1.2rem; align-self: flex-end; margin-bottom: 0.2rem; }
.hero-h1 {
  font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 900; line-height: 1.15;
  color: #fff; letter-spacing: 0; max-width: 14em; cursor: default;
}
.hero-h1 .line { display: block; }
.hero-h1 .latin { display: inline-block; white-space: nowrap; font-family: var(--latin); font-weight: 700; font-size: 0.92em; letter-spacing: -0.02em; }
.hero-h1 .char { display: inline-block; }
.nowrap { white-space: nowrap; }
.hero-h1 .char.scrambling, .hero-h1 .switching { color: var(--sounding); opacity: 0.55; }
.hero-h1 .switching { font-family: var(--sans); font-weight: 900; font-size: 1em; letter-spacing: 0; }
.hero-sub { margin-top: 1.5rem; max-width: 40em; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.75; color: rgba(241, 246, 250, 0.8); }
.hero-sub .hero-sub-en { display: block; margin-top: 0.35rem; color: rgba(241, 246, 250, 0.62); font-weight: 500; font-size: 0.92em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem;
  min-height: 48px; padding: 0.6rem 1.5rem; border-radius: 12px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--standard), box-shadow 0.3s var(--standard), background 0.25s, border-color 0.25s;
}
.btn .pair-en { display: inline; margin: 0; font-size: 0.66rem; }
.btn-primary { background: var(--whale); color: var(--night); }
.btn-primary .pair-en { color: rgba(8, 25, 43, 0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -8px rgba(77, 177, 254, 0.55); }
.btn-ghost { border-color: rgba(241, 246, 250, 0.35); color: var(--fog); background: rgba(241, 246, 250, 0.04); }
.btn-ghost .pair-en { color: rgba(241, 246, 250, 0.6); }
.btn-ghost:hover { transform: translateY(-3px); border-color: rgba(241, 246, 250, 0.7); }
.btn-paper { background: var(--fairway); color: #fff; }
.btn-paper .pair-en { color: rgba(255, 255, 255, 0.72); }
.btn-paper:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -8px rgba(29, 78, 216, 0.45); }
.hero-chart {
  position: absolute; right: var(--gutter); bottom: 5.5rem; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 0.15rem;
  font-family: var(--mono); font-size: 0.8rem; color: rgba(241, 246, 250, 0.7);
}
.hero-chart .place { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--fog); }
.hero-chart .pair-en { margin-top: 0; }
.light {
  display: inline-block; color: var(--magenta); font-size: 1.15em; margin-right: 0.35em;
  text-shadow: 0 0 10px rgba(209, 51, 140, 0.75);
  animation: fl2 10s step-end infinite 1.2s;
}
.light-mark { color: var(--magenta); font-size: 0.9em; }
@keyframes fl2 {
  0%, 4%   { opacity: 1; }
  5%, 9%   { opacity: 0.4; }
  10%, 14% { opacity: 1; }
  15%, 100% { opacity: 0.4; }
}
.chart-caption {
  position: absolute; left: var(--gutter); bottom: 1.6rem; z-index: 2;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(241, 246, 250, 0.55);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  color: rgba(241, 246, 250, 0.5); animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ============================================================
   SECTIONS on chart paper
   ============================================================ */
main > section { padding: 6rem 0; scroll-margin-top: 88px; }
main > section.band-sand { background: var(--sand); }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -8px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s var(--standard), box-shadow 0.3s var(--standard), border-color 0.3s;
}
.card-link:hover, .card-link:focus-within {
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05), 0 18px 36px -10px rgba(29, 78, 216, 0.18);
}

/* 我哋賣乜 · what we sell */
.sell-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.sell-copy p { margin-top: 1rem; }
.sell-copy p[lang="en"] { color: var(--muted); font-size: 0.98rem; line-height: 1.75; font-weight: 500; }
.manifest { padding: 1.6rem 1.75rem; }
.manifest-h { display: flex; align-items: baseline; gap: 0.75rem; padding-bottom: 0.9rem; margin-bottom: 0.4rem; border-bottom: 1px solid var(--shallows); font-size: 1.05rem; }
.manifest-h .pair-en { display: inline; margin: 0; }
.manifest dl, .notice dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.85rem 1.25rem; }
.manifest dt, .notice dt { font-size: 0.8rem; font-weight: 600; color: var(--ink-head); line-height: 1.35; }
.manifest dt .pair-en, .notice dt .pair-en { margin-top: 0.2rem; font-size: 0.66rem; }
.manifest dd, .notice dd { font-size: 1rem; line-height: 1.65; }
.manifest dd [lang="en"], .notice dd [lang="en"] { color: var(--muted); font-size: 0.94rem; font-weight: 500; }
.notice dd > span, .notice dd > a { display: block; }
.notice dd > span + span { margin-top: 0.15rem; }

/* 產品 · products */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.product { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.6rem 1.6rem 1.4rem; min-height: 100%; }
.product h3 { font-size: 1.2rem; line-height: 1.25; }
.product h3 .name { font-family: var(--latin); font-weight: 700; letter-spacing: -0.01em; }
.product h3 .desc { display: block; font-size: 0.92rem; font-weight: 500; color: var(--muted); margin-top: 0.25rem; }
.product p { font-size: 0.95rem; line-height: 1.7; color: #475569; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.status {
  display: inline-flex; flex-direction: column; padding: 0.35rem 0.7rem; border-radius: 8px;
  background: var(--shallows); color: var(--ink-head); font-size: 0.82rem; font-weight: 600; line-height: 1.2;
}
.status .pair-en { margin-top: 0.15rem; font-size: 0.62rem; letter-spacing: 0.16em; }
.product-go { font-size: 0.9rem; font-weight: 600; color: var(--fairway); display: inline-flex; align-items: center; }
.product-go .latin { font-weight: 500; }

/* 團隊 · team */
.team-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.pull { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 400; line-height: 1.5; color: var(--ink-head); letter-spacing: 0.04em; }
.pull-cap { margin-top: 0.5rem; }
.triad { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 1.15rem; font-weight: 600; color: var(--ink-head); }
.triad + .pair-en { margin-top: 0.4rem; }
.unis-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sounding); text-align: center; margin: 2.75rem 0 1.1rem; }
.unis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));   /* 11 tiles → 4 · 4 · 3, no orphan */ gap: 0.9rem 0.75rem; max-width: 960px; margin: 0 auto; }
.uni { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; width: 100%; text-align: center; font-size: 0.72rem; line-height: 1.3; color: var(--muted); }
.uni-badge { width: 100%; max-width: 96px; aspect-ratio: 1; padding: 14px; background: #fff; border-radius: 16px; border: 1px solid var(--hairline); display: grid; place-items: center; transition: transform 0.35s var(--standard), box-shadow 0.35s var(--standard); }
.uni-badge img { max-width: 100%; max-height: 100%; object-fit: contain; }
.uni:hover .uni-badge { transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(29, 78, 216, 0.3); }

/* 港口告示 · harbour notice */
.notice { padding: 1.75rem 2rem 2rem; border-color: var(--shallows); }
.notice-h { display: flex; align-items: baseline; gap: 0.9rem; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--shallows); font-size: 1.15rem; }
.notice-h .pair-en { display: inline; margin: 0; }
.notice-h .bulletin { margin-left: auto; }
.bulletin { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--sounding); font-variant-numeric: tabular-nums; }
.notice dl { gap: 1.1rem 1.5rem; }
.notice dd.law { line-height: 1.7; }
.notice .coord { font-family: var(--mono); font-size: 0.8rem; color: var(--sounding); }
.policy-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
.policy-links a { color: var(--fairway); font-weight: 600; }
.policy-links a [lang="en"] { font-weight: 500; color: var(--muted); }
.policy-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.notice-updated { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--shallows); }

/* ============================================================
   FOOTER · tide table
   ============================================================ */
.site-footer { background: var(--night); color: rgba(241, 246, 250, 0.85); padding: 3.5rem 0 2.25rem; font-size: 0.85rem; line-height: 1.7; }
.site-footer a { color: inherit; }
.foot-brand { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.foot-brand .nav-mark { width: 28px; height: 28px; }
.foot-brand .lockup { font-size: 1.05rem; color: var(--fog); }
.foot-brand .pair-en { margin: 0; align-self: center; }
.tide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline-dark); }
.tide-h { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--whale); margin-bottom: 0.9rem; }
.tide-h [lang="en"] { font-family: var(--mono); color: var(--sounding); }
.tide-col p { margin: 0; }
.tide-col p + p { margin-top: 0.15rem; }
.tide-name { color: var(--fog); font-weight: 600; }
.tide-name[lang="en"] { font-weight: 500; }
.tide-mail { display: inline-block; margin-top: 0.6rem; color: var(--whale); font-family: var(--latin); font-weight: 500; }
.tide-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.tide-addr > span { display: block; }
.tide-addr + p { margin-top: 0.6rem; }
.tide-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.8rem 0; }
.tide-links a { color: var(--fog); font-weight: 600; }
.tide-links a [lang="en"] { font-weight: 400; color: rgba(241, 246, 250, 0.6); }
.tide-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tide-note { font-size: 0.78rem; color: rgba(241, 246, 250, 0.6); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline-dark); font-size: 0.8rem; color: rgba(241, 246, 250, 0.62); }
.foot-bottom .exit { display: inline-flex; align-items: center; gap: 0.4rem; }
.foot-group img { width: 60px; height: auto; opacity: 0.85; }

/* ============================================================
   PAGE HEADERS on light pages (contact / company / legal)
   ============================================================ */
.page-light main { padding-top: calc(var(--nav-h) + 3.5rem); }
.page-head { padding: 2rem 0 2.5rem; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.2; margin-top: 0.75rem; }
.page-head h1 .latin { font-size: 0.92em; font-weight: 700; }
.page-head h1 .pair-en { margin-top: 0.5rem; }
.page-head .bulletin { margin-top: 1rem; display: block; }

/* contact */
.contact-chip {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.25rem; border-radius: 999px; margin-top: 1.5rem;
  font-family: var(--latin); font-size: 1.05rem; font-weight: 600; color: #1E3A8A;
  background: linear-gradient(180deg, #fff, #f8fafc) padding-box, linear-gradient(135deg, rgba(77, 177, 254, 0.55), rgba(29, 78, 216, 0.4)) border-box;
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--standard), box-shadow 0.22s var(--standard);
}
.contact-chip svg { width: 18px; height: 18px; color: var(--fairway); }
.contact-chip:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(29, 78, 216, 0.35); }
.reply-line { margin-top: 1rem; color: var(--muted); font-size: 0.95rem; }
.reply-line [lang="en"] { display: block; font-weight: 500; }
.postal { margin-top: 2.5rem; padding: 1.5rem 1.75rem; border-color: var(--shallows); max-width: 40rem; }
.postal-h { display: flex; align-items: baseline; gap: 0.75rem; font-size: 1rem; padding-bottom: 0.75rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--shallows); }
.postal-h .pair-en { display: inline; margin: 0; }
.postal address > span { display: block; }
.postal .tide-name { color: var(--ink-head); }
.postal .coord { font-family: var(--mono); font-size: 0.8rem; color: var(--sounding); margin-top: 0.4rem; }
.pics { margin-top: 2.5rem; max-width: 44rem; padding: 1.25rem 1.5rem; background: var(--shallows); border-left: 3px solid var(--whale); border-radius: 0 12px 12px 0; font-size: 0.95rem; }
.pics h2 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.pics p + p { margin-top: 0.5rem; }
.pics a { color: var(--fairway); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.law-line { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: 0.9rem; color: var(--muted); }
.law-line [lang="en"] { display: block; font-weight: 500; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; }
.lost .mono { color: var(--sounding); margin-top: 1rem; }

/* ============================================================
   LEGAL PAGE PRIMITIVES (used by /terms /privacy /refund-policy /company)
   ============================================================ */
.precedence {
  padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--shallows); border-left: 3px solid var(--whale); border-radius: 0 12px 12px 0;
  font-size: 0.95rem; line-height: 1.7;
}
.precedence p + p { margin-top: 0.35rem; }
.precedence [lang="en"] { font-weight: 500; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; align-items: start; padding-bottom: 5rem; }
.contents { position: sticky; top: 96px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; }
.contents summary { list-style: none; cursor: default; }
.contents summary::-webkit-details-marker { display: none; }
.contents .contents-h { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--label); margin-bottom: 0.75rem; }
.contents ol { list-style: none; counter-reset: none; }
.contents li { padding: 0.25rem 0; border-top: 1px solid var(--hairline); }
.contents a { color: var(--ink); }
.contents a:hover { color: var(--fairway); }
.legal-body { max-width: 68ch; font-size: 1rem; line-height: 1.75; }
.legal-body > section { padding: 0; scroll-margin-top: 96px; margin-bottom: 2.75rem; }
.legal-body h2 { font-size: 1.35rem; margin-bottom: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; align-items: baseline; }
.legal-body h2 .num { font-family: var(--mono); font-size: 0.85rem; color: var(--sounding); font-weight: 500; }
.legal-body h2 [lang="zh-Hant-HK"] { font-family: var(--sans); font-weight: 700; }
.legal-body h3 { font-size: 1.05rem; margin: 1.25rem 0 0.5rem; }
.legal-body p, .legal-body li { margin-bottom: 0.75rem; }
.legal-body ul, .legal-body ol { padding-left: 1.4rem; margin-bottom: 0.75rem; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body a { color: var(--fairway); text-decoration: underline; text-underline-offset: 3px; }
.summary {
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.9; letter-spacing: 0.02em;
  padding: 0.9rem 1.2rem; margin-bottom: 1rem; background: var(--shallows); border-radius: 10px; color: var(--ink-head);
}
.summary::before { content: '摘要'; display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; color: var(--label); margin-bottom: 0.2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  main > section { padding: 4rem 0; }
  .sell-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .contents { position: static; }
  .contents summary { cursor: pointer; }
  .contents summary .contents-h::after { content: ' ▾'; }
  .contents[open] summary .contents-h::after { content: ' ▴'; }
  .hero-chart { position: static; align-items: flex-start; text-align: left; margin: 2rem var(--gutter) 0; }
  .contour { bottom: 4rem; }
}
@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: fixed; top: var(--nav-h); right: 0.75rem; width: min(220px, calc(100vw - 1.5rem));
    flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0.75rem;
    background: var(--night); color: var(--fog); border-radius: 14px; box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  }
  .nav-links.open { display: flex; }
  .nav-links .pair-en { color: var(--sounding); }
  .nav-link { padding: 0.65rem 0.25rem; border-top: 1px solid var(--hairline-dark); }
  .nav-link:first-child { border-top: 0; }
  .nav-link::after { display: none; }
  .page-light .nav-link > .pair > :first-child, .page-home .nav-link > .pair > :first-child { color: var(--fog); }
}
@media (max-width: 640px) {
  :root { --gutter: 1rem; }
  .nav-lockup .lockup { font-size: 0.9rem; letter-spacing: 0.3em; text-indent: 0.3em; }
  .nav-lockup .pair-en { display: none; }
  /* on a phone the nav carries the lockup and the hero eyebrow is dropped */
  .page-home .site-nav:not(.scrolled) .nav-lockup { opacity: 1; }
  .hero-eyebrow { display: none; }
  .hero { padding: calc(var(--nav-h) + 3.75rem) 0 3rem; min-height: 0; }
  .hero-h1 { font-size: 2.25rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  /* ≤10 soundings in one band between the nav and the headline, never behind text or buttons */
  .soundings { inset: calc(var(--nav-h) + 0.35rem) 0 auto 0; height: 2.6rem; -webkit-mask-image: none; mask-image: none; }
  .soundings span:nth-child(n + 11) { display: none; }
  .contour, .chart-caption, .hero-scroll { display: none; }
  .hero-chart { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-top: 1.75rem; }
  .hero-chart .pair-en { display: none; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .manifest dl, .notice dl { grid-template-columns: minmax(0, 1fr); gap: 0.35rem 0; }
  .manifest dd, .notice dd { margin-bottom: 0.75rem; }
  .notice { padding: 1.4rem 1.2rem; }
  .notice-h { flex-wrap: wrap; }
  .notice-h .bulletin { margin-left: 0; width: 100%; }
  .tide { grid-template-columns: minmax(0, 1fr); }
  .unis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem 0.4rem; }
  .uni-badge { max-width: 72px; padding: 10px; border-radius: 12px; }
}
@media (max-width: 400px) {
  body { font-size: 1rem; }
}

/* ============================================================
   MOTION · one site-wide guard (the .ai had none)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .light { animation: none; opacity: 1; }
  .hero-scroll { animation: none; }
  .fade-up { opacity: 1; transform: none; }
  .soundings { opacity: 0.62; }
  .card-link:hover, .btn:hover, .uni:hover .uni-badge, .contact-chip:hover { transform: none; }
  .hero-h1 .char.scrambling, .hero-h1 .switching { color: inherit; opacity: 1; }
}

/* ============================================================
   V2 · DARK HOME · 維港夜景 Symphony of Lights
   Everything below is scoped to .page-home or to the new home
   components (.harbour, .agents, .glass …). The v1 rules above are
   still used by /contact /company and the legal pages.
   Motion budget: transform and opacity only; the water mirror is
   the page's one blur; the H1 carries a drop-shadow. Accepted
   heritage exceptions (small elements, measured at 60 fps): the
   agent tiles' rail and border glow (opacity, border-color,
   box-shadow) and the neon signs' tube flicker. One fixed
   <canvas> (#descent, assets/descent.js) sits at z 3 in the root
   stacking context: above the hero's scenery layers (z 0–2), below
   its text (z 4) and below every other section (position relative,
   z 4, translucent grounds so the deep-sea lights show through).
   ============================================================ */
:root {
  --deep: #041022;          /* 深水 deep water */
  --neon-green: #35D07F;    /* 霓虹綠 */
  --neon-amber: #F7C600;    /* 霓虹黃 */
  --neon-pink: #FF6FB5;     /* 霓虹粉 */
  --glass: rgba(8, 25, 43, 0.72);
  --glass-border: rgba(77, 177, 254, 0.18);
  --sky-h: clamp(200px, 34vh, 340px);   /* height of the skyline box; the water mirror uses the same value */
}
.page-home { background: var(--deep); color: var(--fog); }
/* 下潛 · the descent: one fixed canvas behind the whole page; its state is a function of scroll and time only */
.descent { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; display: block; }
.page-home main > section:not(.harbour), .page-home .site-footer { position: relative; z-index: 4; }
.page-home .site-footer { background: rgba(8, 25, 43, 0.5); }   /* the seabed lights rest under the tide table */
.depth-readout {
  position: fixed; right: 1.1rem; bottom: 1rem; z-index: 900; pointer-events: none;
  display: flex; align-items: baseline; gap: 0.6rem; padding: 0.35rem 0.6rem; border-radius: 6px;
  background: rgba(4, 16, 34, 0.55); border: 1px solid rgba(77, 177, 254, 0.16);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sounding);
  font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(6px); transition: opacity 0.5s var(--standard), transform 0.5s var(--standard);
}
.depth-readout.is-on { opacity: 1; transform: none; }
.nav-open .depth-readout { opacity: 0; }   /* never under the open phone menu */
.depth-readout .depth-val { color: var(--whale); font-weight: 700; letter-spacing: 0.06em; text-transform: none; min-width: 3.4em; text-align: right; }
.page-home h2, .page-home h3, .page-home h4 { color: var(--fog); }
.page-home .sec-label { color: var(--whale); }
.page-home .sec-label .pair-en, .page-home .pair-en { color: var(--sounding); }
.page-home .sec-desc { color: rgba(241, 246, 250, 0.72); max-width: 40em; }
.page-home .sec-title { color: #fff; }
.page-home .sec-title .latin { font-weight: 700; font-size: 0.92em; letter-spacing: -0.02em; }
.page-home .sec-title-en { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sounding); margin: -0.4rem 0 1rem; }
.page-home .status { background: rgba(77, 177, 254, 0.12); color: var(--fog); border: 1px solid rgba(77, 177, 254, 0.3); }
.page-home .status .pair-en { color: var(--sounding); }
.page-home :focus-visible { outline-color: var(--magenta); }
.page-home .nav-toggle { color: var(--fog); }

/* surfaces and glow utilities */
.glass { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; }
/* no backdrop blur on any glass: every panel is plain rgba over the canvas, so the fixed layer is never
   re-composited through a stack of blurs per frame */
.glow-whale { box-shadow: 0 0 4px rgba(77, 177, 254, 0.9), 0 0 16px rgba(77, 177, 254, 0.5), 0 0 40px rgba(77, 177, 254, 0.25); }
.glow-text { text-shadow: 0 0 4px rgba(77, 177, 254, 0.9), 0 0 16px rgba(77, 177, 254, 0.5), 0 0 40px rgba(77, 177, 254, 0.25); }
.grad-text { background: linear-gradient(92deg, #fff 0%, #BFDBFE 55%, #60A5FA 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- HERO · the harbour ---------- */
.harbour {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 3.5rem) 0 5.5rem;
  background: linear-gradient(180deg, #08192B 0%, #061428 48%, #041022 100%);
  display: flex; align-items: center;
}
.harbour .container { z-index: 4; }
.sky {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(45% 45% at 87% 30%, rgba(4, 16, 34, 0.55), transparent 70%),   /* a darker patch under the constellation */
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 28% 9%, rgba(255, 255, 255, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 41% 22%, rgba(191, 219, 254, 0.5), transparent 100%),
    radial-gradient(1px 1px at 57% 12%, rgba(255, 255, 255, 0.45), transparent 100%),
    radial-gradient(1px 1px at 66% 28%, rgba(255, 255, 255, 0.35), transparent 100%),
    radial-gradient(1.5px 1.5px at 78% 8%, rgba(191, 219, 254, 0.5), transparent 100%),
    radial-gradient(1px 1px at 86% 20%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 93% 33%, rgba(255, 255, 255, 0.35), transparent 100%),
    radial-gradient(1px 1px at 8% 38%, rgba(255, 255, 255, 0.3), transparent 100%),
    radial-gradient(1px 1px at 49% 6%, rgba(255, 255, 255, 0.4), transparent 100%),
    radial-gradient(1px 1px at 72% 40%, rgba(255, 255, 255, 0.3), transparent 100%),
    radial-gradient(1.5px 1.5px at 19% 30%, rgba(191, 219, 254, 0.4), transparent 100%);
}
.harbour .soundings {
  inset: var(--nav-h) 34% 42% 0;   /* the right third is the constellation's; no numerals among its points */
  -webkit-mask-image: radial-gradient(ellipse 50% 60% at 28% 55%, transparent 0 38%, #000 74%);
          mask-image: radial-gradient(ellipse 50% 60% at 28% 55%, transparent 0 38%, #000 74%);
}
.harbour .soundings.is-in { opacity: 0.4; }

/* skyline */
.skyline {
  position: absolute; left: 0; right: 0; bottom: 33%; z-index: 1;
  width: 100%; height: var(--sky-h); overflow: visible; pointer-events: none;
}
#skyline-art .ridge { fill: #071630; }
#skyline-art .ridge-lights circle { fill: #FFE2B0; opacity: 0.55; }
.skyline .wheel { fill: none; stroke: rgba(77, 177, 254, 0.42); stroke-width: 1; }
.skyline .wheel-leg { stroke: rgba(77, 177, 254, 0.3); }
.skyline .wheel-rim { transform-box: fill-box; transform-origin: 50% 50%; animation: spin 150s linear infinite; }
.skyline .wheel-cabins circle { fill: var(--whale); stroke: none; opacity: 0.75; }
@keyframes spin { to { transform: rotate(360deg); } }
.skyline .apex circle { opacity: 0.95; }
#skyline-art .far rect { fill: #0A1B33; }
#skyline-art .b1 { fill: #0C2039; }
#skyline-art .b2 { fill: #0E2440; }
#skyline-art .b3 { fill: #112B4A; }
.skyline .wash { fill: var(--magenta); opacity: 0; mix-blend-mode: screen; animation: wash 14s ease-in-out infinite; }
.skyline .wash-b { fill: var(--whale); animation-delay: -7s; }
@keyframes wash { 0%, 100% { opacity: 0; } 50% { opacity: 0.28; } }
.skyline .twk rect { opacity: 0.25; animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
/* Symphony of Lights beams: rotate about the tower top, transform only */
.skyline .beam {
  transform-box: fill-box; transform-origin: 50% 100%; mix-blend-mode: screen;
  will-change: transform; opacity: 0.85;
  animation: sweep var(--t, 12s) ease-in-out var(--d, 0s) infinite alternate;
}
.skyline .beam-magenta { fill: url(#beamMagenta); }
.skyline .beam-green { fill: url(#beamGreen); }
.skyline .beam-whale { fill: url(#beamWhale); }
.skyline .beam-amber { fill: url(#beamAmber); }
@keyframes sweep { from { transform: rotate(var(--from, -20deg)); } to { transform: rotate(var(--to, 20deg)); } }
.harbour.is-offscreen .beam, .harbour.is-offscreen .twk rect, .harbour.is-offscreen .wash, .harbour.is-offscreen .water-mirror, .harbour.is-offscreen .wheel-rim, .harbour.is-offscreen .ferry, .harbour.is-offscreen .junk { animation-play-state: paused; }

/* water: the skyline mirrored, blurred and faded; the reflection breathes (opacity) and never translates */
.water { position: absolute; left: 0; right: 0; bottom: 0; height: 33%; z-index: 2; overflow: hidden; pointer-events: none; background: var(--deep); }
.water::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(77, 177, 254, 0.45) 30%, rgba(77, 177, 254, 0.45) 70%, transparent); z-index: 3; }
.water-mirror { position: absolute; left: 0; top: 0; width: 100%; height: var(--sky-h); transform: scaleY(-1); transform-origin: 50% 0; opacity: 0.78; filter: blur(1.6px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.62; } 50% { opacity: 0.84; } }
.water-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 16, 34, 0) 0%, rgba(4, 16, 34, 0.3) 55%, #041022 100%); }

/* harbour traffic · silhouettes and lights only. The ferry crosses left to right in 84 s, the junk drifts the other way
   in 130 s; both sit on the waterline (the water is the bottom 35%) and are transform-only. */
.ferry { position: absolute; left: 0; bottom: calc(33% - 11px); z-index: 2; width: 210px; height: auto; pointer-events: none; transform: translateX(-240px); animation: ferryCross 84s linear infinite; will-change: transform; }
@keyframes ferryCross { from { transform: translateX(-240px); } to { transform: translateX(calc(100vw + 40px)); } }
/* the hull carries a faint warm rim so the ferry reads as a shape on the water, not as a row of loose windows */
.ferry .hull { fill: #0B1D33; stroke: rgba(255, 216, 154, 0.32); stroke-width: 0.6; }
.ferry .deck { fill: #12294A; }
.ferry .deck-low { fill: #0E2240; }
.ferry .roof, .ferry .funnel, .ferry .mast { fill: #16304F; }
.ferry .win rect { fill: #FFD89A; opacity: 0.82; }
.ferry .lamp { fill: #fff; opacity: 0.9; }
.ferry .lamp-bow { fill: #35D07F; }
.ferry .lamp-stern { fill: #FF6B6B; }
.junk { position: absolute; left: 0; bottom: calc(33% - 4px); z-index: 2; width: 74px; height: auto; pointer-events: none; opacity: 0.8; transform: translateX(100vw); animation: junkDrift 130s linear infinite -40s; will-change: transform; }
@keyframes junkDrift { from { transform: translateX(100vw); } to { transform: translateX(-140px); } }
.junk .hull, .junk .mast { fill: #06121F; }
.junk .sail { fill: #5E1A25; }
.junk .batten { fill: none; stroke: #3F0F17; stroke-width: 1; }
.junk .lamp { fill: #FFD89A; }
/* the clock tower on the near shore, beside the ✦ office light */
.clock-tower { position: absolute; left: calc(var(--gutter) + 12.5rem); bottom: 2.4rem; z-index: 3; width: 44px; height: auto; pointer-events: none; }
.clock-tower .ct { fill: #0E2240; stroke: rgba(255, 226, 176, 0.3); stroke-width: 0.6; }
.clock-tower .ct-finial { fill: #FFE9C0; opacity: 0.7; }
.clock-tower .ct-face { fill: #FFE9C0; opacity: 0.85; }
.clock-tower .ct-hands { fill: none; stroke: #03101F; stroke-width: 1.2; stroke-linecap: round; }
.clock-tower .ct-win { fill: #FFD89A; opacity: 0.5; }
@media (max-height: 760px) and (min-width: 641px) {
  .harbour { padding: calc(var(--nav-h) + 2rem) 0 4.5rem; }
  .pillars { margin-top: 1rem; }
  .harbour .hero-actions { margin-top: 1.3rem; }
  .foreshore { bottom: 2.2rem; }
}

/* text */
.hero-body { position: relative; z-index: 4; }
.hero-body::before { content: ""; position: absolute; z-index: -1; left: -14%; top: -12%; width: 78%; height: 124%; pointer-events: none; background: radial-gradient(60% 60% at 40% 50%, rgba(4, 16, 34, 0.62), rgba(4, 16, 34, 0) 100%); }
.harbour .hero-h1 { max-width: 12.5em; filter: drop-shadow(0 0 22px rgba(96, 165, 250, 0.35)); }
.harbour .hero-h1 .line {
  display: block; width: fit-content;
  background: linear-gradient(92deg, #fff 0%, #BFDBFE 55%, #60A5FA 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-right: 0.05em;
}
.harbour .hero-h1 .char.scrambling, .harbour .hero-h1 .switching { -webkit-text-fill-color: var(--sounding); color: var(--sounding); opacity: 0.6; }
.pillars { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.pillar {
  --glow: var(--whale);
  padding: 0.5rem 0.95rem; border-radius: 12px;
  background: rgba(4, 16, 34, 0.82); border: 1px solid color-mix(in srgb, var(--glow) 45%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--glow) 28%, transparent), inset 0 0 12px color-mix(in srgb, var(--glow) 8%, transparent);
  opacity: 0; transform: translateY(8px);
}
.harbour.is-live .pillar { animation: rise 0.6s var(--expo) both; }
.harbour.is-live .pillar:nth-child(1) { animation-delay: 0.9s; }
.harbour.is-live .pillar:nth-child(2) { animation-delay: 1.02s; }
.harbour.is-live .pillar:nth-child(3) { animation-delay: 1.14s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.pillar .pair > :first-child { color: var(--glow); font-weight: 700; font-size: 0.98rem; text-shadow: 0 0 8px color-mix(in srgb, var(--glow) 55%, transparent); }
.pillar .pair-en { margin-top: 0.2rem; font-size: 0.62rem; color: rgba(241, 246, 250, 0.7); }
.harbour .hero-sub { margin-top: 1.4rem; max-width: 36em; }
.harbour .hero-actions { margin-top: 1.9rem; }
.btn-glow { box-shadow: 0 0 4px rgba(77, 177, 254, 0.9), 0 0 16px rgba(77, 177, 254, 0.5), 0 0 40px rgba(77, 177, 254, 0.25); }
.btn-glow:hover { box-shadow: 0 0 6px rgba(77, 177, 254, 1), 0 0 24px rgba(77, 177, 254, 0.65), 0 0 56px rgba(77, 177, 254, 0.35); }
.foreshore {
  position: absolute; left: var(--gutter); bottom: 3.2rem; z-index: 3;
  display: flex; flex-direction: column; gap: 0.1rem; font-family: var(--mono); font-size: 0.78rem; color: rgba(241, 246, 250, 0.7);
}
.foreshore .place { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--fog); }
.foreshore .pair-en { margin-top: 0; }
.harbour .chart-caption { bottom: 1.5rem; }

/* ---------- 我哋做乜 · AGENTS · three glass tiles, each lit in its product sign's tube colour ---------- */
.agents { background: radial-gradient(60% 34% at 50% 0%, rgba(77, 177, 254, 0.1), transparent 70%); }
.agents .sec-head { margin-bottom: 2rem; }
.agent-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.agent-grid > li { display: flex; }
.pillar-card {
  --glow: var(--whale);
  position: relative; display: flex; flex-direction: column; gap: 0.7rem; width: 100%;
  padding: 1.4rem 1.3rem 1.3rem; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* the rail: a strip of tube light along the top edge, brighter when the tile is the hover or focus target */
.pillar-card::before { content: ''; position: absolute; left: 1.3rem; right: 1.3rem; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--glow); box-shadow: 0 0 12px var(--glow); opacity: 0.7; transition: opacity 0.3s; }
.pillar-card h3 { display: flex; margin: 0; }
.pillar-card h3 > :first-child { font-size: 1.3rem; color: var(--glow); text-shadow: 0 0 10px color-mix(in srgb, var(--glow) 55%, transparent); }
.pillar-card p { flex: 1; font-size: 1rem; line-height: 1.75; }
.agent-tile:hover, .agent-tile:focus-visible { border-color: color-mix(in srgb, var(--glow) 45%, transparent); box-shadow: 0 0 30px color-mix(in srgb, var(--glow) 18%, transparent); }
.agent-tile:hover::before, .agent-tile:focus-visible::before { opacity: 1; }
.agent-tile .pcard-go { color: var(--glow); font-size: 0.9rem; }

/* outbound pill links (product panels) */
.mlink { display: inline-flex; align-items: center; min-height: 40px; padding: 0.35rem 0.9rem; border-radius: 10px; border: 1px solid rgba(77, 177, 254, 0.4); color: var(--whale); font-weight: 600; font-size: 0.9rem; transition: background 0.25s, border-color 0.25s, transform 0.25s var(--standard); }
.mlink:hover { background: rgba(77, 177, 254, 0.12); border-color: var(--whale); box-shadow: 0 0 18px rgba(77, 177, 254, 0.3); }
.mlink-primary { background: var(--whale); color: var(--night); border-color: var(--whale); box-shadow: 0 0 16px rgba(77, 177, 254, 0.45); }
.mlink-primary:hover { background: #6BBFFF; }
.mlink-primary [lang="en"] { font-weight: 500; margin-left: 0.35rem; }


/* ---------- responsive (v2 home) ---------- */
@media (max-width: 900px) {
  .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .clock-tower { left: calc(var(--gutter) + 11.5rem); }
}
@media (max-width: 640px) {
  :root { --sky-h: clamp(150px, 30vh, 240px); }
  .harbour { padding: calc(var(--nav-h) + 12.5rem) 0 3.4rem; min-height: 100vh; min-height: 100svh; }
  /* the text block sits on a glass strip so the harbour traffic never runs behind a line of type */
  .hero-body::before { left: -0.5rem; right: -0.5rem; top: -0.75rem; bottom: -0.75rem; width: auto; height: auto; border-radius: 12px; background: linear-gradient(180deg, rgba(4, 16, 34, 0) 0%, rgba(4, 16, 34, 0.55) 12%, rgba(4, 16, 34, 0.55) 88%, rgba(4, 16, 34, 0) 100%); }
  .harbour .hero-h1 { font-size: 2.15rem; max-width: none; }
  .harbour .hero-sub { margin-top: 1.1rem; font-size: 0.98rem; }
  .harbour .hero-actions { margin-top: 1.4rem; }
  .pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin-top: 1.2rem; }
  .pillar { padding: 0.45rem 0.7rem; }   /* above the mark, clear of the headline */
  .harbour .soundings { display: none; }.skyline .beam-lg, .skyline .twk-lg, .skyline .wheel-lg, .junk-lg { display: none; }
  /* the ferry crosses along the near shore, in the strip under the foreshore line, and passes behind the clock tower */
  .ferry { width: 120px; bottom: 0.6rem; }
  .clock-tower { left: auto; right: 1.1rem; bottom: 0.7rem; width: 30px; }
  .depth-readout { right: 0.6rem; bottom: max(0.6rem, env(safe-area-inset-bottom)); padding: 0.25rem 0.5rem; font-size: 0.58rem; gap: 0.45rem; }
  .water { height: 30%; }
  .foreshore { position: static; order: 2; align-self: flex-start; margin: 1.4rem var(--gutter) 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
  .hero-body { order: 1; }
  .foreshore .pair-en { display: none; }
  .harbour .chart-caption, .harbour .hero-scroll { display: none; }
  .pillar-card { padding: 1.2rem 1.1rem 1.1rem; }
}

/* ---------- reduced motion (v2 home): every new animation rendered in its finished state ---------- */
@media (prefers-reduced-motion: reduce) {
  .skyline .beam { animation: none; transform: none; opacity: 0.5; }
  .skyline .twk rect { animation: none; opacity: 0.8; }
  .skyline .wash { animation: none; opacity: 0.18; }
  .water-mirror { animation: none; opacity: 0.78; }
  .skyline .wheel-rim { animation: none; }
  .ferry { animation: none; transform: translateX(38vw); }
  .junk { animation: none; transform: translateX(72vw); }
  .depth-readout { transition: none; }
  .pillar, .harbour.is-live .pillar { animation: none; opacity: 1; transform: none; }
  .pillar-card::before, .agent-tile:hover::before { opacity: 1; transition: none; }
  .mlink:hover { transform: none; }
}

/* ============================================================
   BUILD B · 產品 (霓虹招牌街 + panels) · 團隊 · 一齊游
   Every product carries --neon (hex) and --neon-rgb (r, g, b) inline; the tube glow is a fixed layered shadow on a
   pseudo element whose opacity animates (never the shadow itself). Motion: transform and opacity only.
   ============================================================ */

/* ---------- 產品 · the neon-sign street ---------- */
.products { background: radial-gradient(50% 30% at 50% 0%, rgba(209, 51, 140, 0.08), transparent 70%); }
.products .sec-head { margin-bottom: 1.5rem; }
.street { position: relative; padding: 0 0 2.5rem; margin-bottom: 3rem; }
.street::before { content: ''; position: absolute; left: -2rem; right: -2rem; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(241, 246, 250, 0.22) 12%, rgba(241, 246, 250, 0.22) 88%, transparent); }
.signs { display: flex; align-items: flex-start; list-style: none; padding: 0; margin: 0; }
.sign-slot { flex: 1 1 0; min-width: 0; position: relative; z-index: var(--z, 1); }
.sign-slot + .sign-slot { margin-left: -1.4rem; }
.sign {
  --neon: var(--whale); --neon-rgb: 77, 177, 254;
  display: block; position: relative; padding: 46px 0 10px;   /* 10px below: hit area stays under the lifted board */
  transform: rotate(var(--rot, 0deg)) translateY(var(--dy, 0px)); transform-origin: 50% 0;
}
.sign:hover, .sign:focus-visible { z-index: 9; outline: none; }   /* the hovered element itself never moves */
.sign .sign-board { transition: transform 0.45s var(--expo); will-change: transform; }
.sign:hover .sign-board, .sign:focus-visible .sign-board { transform: translateY(-8px); }
.sign:focus-visible .sign-board { outline: 2px solid var(--magenta); outline-offset: 4px; }
/* the bracket: a rod from the street rail and a short arm on the board */
.sign-arm { position: absolute; left: 50%; top: 0; width: 2px; height: 46px; margin-left: -1px; background: linear-gradient(180deg, rgba(241, 246, 250, 0.55), rgba(241, 246, 250, 0.18)); }
.sign-arm::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 56%; min-width: 64px; height: 2px; transform: translateX(-50%); background: rgba(241, 246, 250, 0.28); }
.sign-arm::after { content: ''; position: absolute; left: 50%; top: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(241, 246, 250, 0.5); }
.sign-board {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem;
  min-height: 150px; padding: 1.3rem 0.9rem 1.1rem; border-radius: 8px;
  background: linear-gradient(180deg, #0C1B30 0%, #071224 100%);
  border: 2px solid rgba(var(--neon-rgb), 0.55);
}
.sign-board::before { content: ''; position: absolute; inset: 5px; border-radius: 4px; border: 1px solid rgba(var(--neon-rgb), 0.28); pointer-events: none; }
/* the pre-rendered glow layer; only its opacity changes */
.sign-board::after {
  content: ''; position: absolute; inset: -2px; border-radius: 8px; pointer-events: none;
  box-shadow: 0 0 4px rgba(var(--neon-rgb), 0.9), 0 0 16px rgba(var(--neon-rgb), 0.5), 0 0 40px rgba(var(--neon-rgb), 0.25), inset 0 0 18px rgba(var(--neon-rgb), 0.12);
  opacity: 0.5; transition: opacity 0.4s var(--standard);
}
.sign:hover .sign-board::after, .sign:focus-visible .sign-board::after { opacity: 1; }
.sign-name {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: #fff;
  -webkit-text-stroke: 0.4px rgba(var(--neon-rgb), 0.9);
  text-shadow: 0 0 4px rgba(var(--neon-rgb), 0.9), 0 0 12px rgba(var(--neon-rgb), 0.6), 0 0 28px rgba(var(--neon-rgb), 0.35);
}
.sign-desc { font-size: 0.92rem; font-weight: 600; color: var(--neon); text-shadow: 0 0 6px rgba(var(--neon-rgb), 0.55), 0 0 18px rgba(var(--neon-rgb), 0.3); }
.sign-desc .latin { font-weight: 600; }
.sign-status { margin-top: 0.35rem; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(241, 246, 250, 0.6); }
.sign-lit { opacity: 0.86; transition: opacity 0.3s; }
.sign:hover .sign-lit, .sign:focus-visible .sign-lit { animation: neonOn 0.6s steps(1, end) both; }
.sign.is-flicker .sign-lit { animation: neonIdle 0.7s steps(1, end) both; }
.sign.is-flicker .sign-board::after { animation: neonIdleGlow 0.7s steps(1, end) both; }
@keyframes neonOn { 0% { opacity: 0.35; } 9% { opacity: 1; } 16% { opacity: 0.3; } 24% { opacity: 1; } 31% { opacity: 0.55; } 40% { opacity: 1; } 56% { opacity: 0.85; } 62%, 100% { opacity: 1; } }
@keyframes neonIdle { 0% { opacity: 0.86; } 12% { opacity: 0.25; } 20% { opacity: 0.9; } 33% { opacity: 0.4; } 41% { opacity: 1; } 58% { opacity: 0.3; } 70%, 100% { opacity: 0.86; } }
@keyframes neonIdleGlow { 0% { opacity: 0.5; } 12% { opacity: 0.1; } 20% { opacity: 0.8; } 33% { opacity: 0.2; } 41% { opacity: 0.9; } 58% { opacity: 0.15; } 70%, 100% { opacity: 0.5; } }

/* ---------- 產品 · the three panels ---------- */
.panels { display: grid; gap: 1.5rem; }
.panel {
  --neon: var(--whale); --neon-rgb: 77, 177, 254;
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem; align-items: start;
  padding: 1.75rem 1.75rem 1.75rem 2.1rem; scroll-margin-top: 96px;   /* no overflow clip: the sticky media would scroll against the panel instead of the viewport */
}
.panel::before { content: ''; position: absolute; left: 0; top: 1.75rem; bottom: 1.75rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--neon); box-shadow: 0 0 6px rgba(var(--neon-rgb), 0.9), 0 0 18px rgba(var(--neon-rgb), 0.5); }
.panel:nth-of-type(even) { padding: 1.75rem 2.1rem 1.75rem 1.75rem; }
.panel:nth-of-type(even)::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }
.panel:nth-of-type(even) .panel-media { order: 2; }
.panel-media { margin: 0; position: sticky; top: 96px; }
.panel-video { width: 100%; height: auto; display: block; border-radius: 14px; background: var(--deep); border: 1px solid rgba(var(--neon-rgb), 0.35); box-shadow: 0 0 28px rgba(var(--neon-rgb), 0.14), 0 18px 40px -22px rgba(0, 0, 0, 0.7); }
.panel-video { aspect-ratio: 16 / 9; object-fit: cover; }
.panel-media figcaption { margin-top: 0.55rem; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--sounding); }
.panel-name { display: flex; flex-direction: column; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; margin-bottom: 1.1rem; }
.panel-name .latin { font-weight: 700; letter-spacing: -0.02em; color: #fff; text-shadow: 0 0 14px rgba(var(--neon-rgb), 0.35); }
.panel-desc { font-family: var(--sans); font-size: 1.02rem; font-weight: 500; color: var(--neon); margin-top: 0.35rem; }
.panel-desc .latin { font-weight: 500; }
.panel-line { font-size: 1.1rem; line-height: 1.8; max-width: 26em; }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline-dark); }
.panel-foot .status { border-color: rgba(var(--neon-rgb), 0.45); background: rgba(var(--neon-rgb), 0.1); }
.panel-foot .status > :first-child { color: var(--neon); }
.panel-foot .mlink-primary { background: var(--neon); border-color: var(--neon); color: var(--night); box-shadow: 0 0 16px rgba(var(--neon-rgb), 0.45); margin-left: auto; }
.panel-foot .mlink-primary:hover { background: color-mix(in srgb, var(--neon) 84%, #fff); }
.panel-foot .mlink-primary [lang="en"] { font-weight: 500; margin-left: 0.35rem; opacity: 0.75; }

/* ---------- 團隊 · the sandbank band, on 夜港 ---------- */
.team-band { background: linear-gradient(180deg, rgba(6, 20, 40, 0.5), rgba(8, 25, 43, 0.5)); border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark); }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.pull-dark { color: #fff; }
.team-band .pull-cap { margin-top: 0.4rem; }
.triad-dark { margin-top: 1.5rem; color: var(--whale); text-shadow: 0 0 12px rgba(77, 177, 254, 0.4); }
.team-band .unis-label { margin: 0 0 1rem; text-align: left; }
.team-band .unis { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; gap: 0.9rem 0.6rem; }
.team-band .uni { color: var(--sounding); }
.team-band .uni-badge { border-color: rgba(241, 246, 250, 0.16); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.8); }
.team-band .uni-badge img { width: 100%; height: 100%; }   /* every tile the same square, whatever the logo's intrinsic box */
.team-band .uni:hover .uni-badge { box-shadow: 0 0 22px rgba(77, 177, 254, 0.3); }

/* ---------- 一齊游 · partnership cards ---------- */
.swim-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.swim-head .sec-title { margin-bottom: 0.9rem; }
.swim-x { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--glass-border); color: var(--fog); font-weight: 600; font-size: 0.9rem; transition: border-color 0.25s, background 0.25s; }
.swim-x:hover { border-color: rgba(77, 177, 254, 0.5); background: rgba(77, 177, 254, 0.08); }
.swim-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.pcard { display: flex; flex-direction: column; gap: 0.75rem; height: 100%; padding: 1.5rem 1.5rem 1.4rem; transition: transform 0.3s var(--standard), border-color 0.3s, box-shadow 0.3s; }
.pcard:hover, .pcard:focus-visible { border-color: rgba(77, 177, 254, 0.45); box-shadow: 0 0 30px rgba(77, 177, 254, 0.18); }
.pcard-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--whale); background: rgba(77, 177, 254, 0.1); border: 1px solid var(--glass-border); }
.pcard h3 { display: flex; font-size: 1.2rem; }
.pcard h3 > :first-child { color: #fff; }
.pcard p { flex: 1; font-size: 0.95rem; line-height: 1.75; }
.pcard p [lang="en"] { display: block; margin-top: 0.25rem; font-size: 0.86rem; font-weight: 500; color: rgba(241, 246, 250, 0.62); }
.pcard-go { font-family: var(--latin); font-weight: 500; color: var(--whale); }

/* ---------- company strip · one slim band above the tide table ---------- */
.page-home .strip-h { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; margin: 0; }
.page-home .strip-h .light-mark { font-size: 1em; line-height: 1.4; }
.page-home .strip-names span:first-child { font-size: 0.85rem; }
.page-home .strip-names a { display: block; margin-top: 0.3rem; color: var(--whale); font-family: var(--latin); font-weight: 500; }
.page-home .strip-law [lang="en"] { font-size: 0.74rem; line-height: 1.55; }
.page-home .strip-link { margin-top: 0.4rem; }

/* ---------- responsive (build B) ---------- */
@media (max-width: 968px) {
  .swim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 900px) {
  /* the street becomes a straight list: no rotation, no overlap, one board per row */
  .street { padding-bottom: 0; }
  .street::before { display: none; }
  .signs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .sign-slot + .sign-slot { margin-left: 0; }
  .sign { padding: 0; transform: none; }
  .sign:hover .sign-board, .sign:focus-visible .sign-board { transform: none; }
  .sign-arm { display: none; }
  .sign-board { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; text-align: left; min-height: 0; padding: 0.85rem 1rem; gap: 0.35rem 0.8rem; }
  .sign-name { font-size: 1.15rem; }
  .sign-status { margin-top: 0; margin-left: auto; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
  .panel:nth-of-type(even) { padding: 1.25rem 1.5rem 1.25rem 1.25rem; }
  .panel:nth-of-type(even) .panel-media { order: 0; }
  .panel-media { position: static; }
}
@media (max-width: 640px) {
  .sign-board { padding: 0.75rem 0.85rem; }
  .sign-status { flex: 1 1 100%; margin-left: 0; }
  .panel { padding: 1rem 1rem 1rem 1.2rem; }
  .panel:nth-of-type(even) { padding: 1rem 1.2rem 1rem 1rem; }
  .panel-foot .mlink-primary { margin-left: 0; width: 100%; justify-content: center; }
  .team-band .unis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem 0.4rem; }
  .swim-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- reduced motion (build B): tubes lit, boards still, pet still ---------- */
@media (prefers-reduced-motion: reduce) {
  .sign, .sign .sign-board, .sign:hover .sign-board, .sign:focus-visible .sign-board { transform: none; transition: none; }
  .sign-lit, .sign:hover .sign-lit, .sign.is-flicker .sign-lit { animation: none; opacity: 1; }
  .sign-board::after, .sign.is-flicker .sign-board::after { animation: none; opacity: 0.85; }
  .pcard:hover, .panel-foot .mlink:hover { transform: none; }
}
