/* =========================================================
   Epicsense — Design tokens
   ========================================================= */
:root {
  /* Color — eggshell base, with gold and navy-blue as the two accents */
  --navy-900: #0B1B32;
  --navy-800: #122B4A;
  --navy-700: #1D3A61;
  --navy-600: #2A4E7E;
  --ink: #22201A;
  --body-text: #55503F;
  --muted: #7A745E;
  --bg: #FAF6EC;
  --bg-alt: #F3EDDC;
  --bg-alt-2: #EEE6CF;
  --border: #E6DFC7;
  --gold-100: #FDF3DE;
  --gold-200: #F8E3B0;
  --gold-300: #F3C465;
  --gold-500: #E3A93B;
  --gold-600: #C6871E;
  --gold-700: #9C6A16;
  --white: #FFFFFF;
  --success: #1A7F5A;
  --success-bg: #E6F4EE;

  /* Typography — one family (Inter) carrying both display and body weight,
     mirroring the "huge + light" premium-editorial hero treatment. */
  --font-heading: "Inter", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: 4.5rem;

  /* Spacing (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--body-text);
  background: var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
}
h1 {
  font-weight: 300;
  letter-spacing: -0.01em;
}
.hero h1, .page-hero h1 { font-weight: 300; }
input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   Utility
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy-900); color: rgba(255,255,255,0.82); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--gold-100);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.section--navy .eyebrow {
  color: var(--gold-300);
  background: rgba(243, 196, 101, 0.12);
}

.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--fs-md); margin-top: var(--space-4); }

h1 { font-size: var(--fs-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-5xl); }
  h2 { font-size: var(--fs-3xl); }
}

.text-lead { font-size: var(--fs-md); color: var(--body-text); }
.text-muted { color: var(--muted); }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(1, 1fr); }
.grid-5 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  min-height: 48px;
  border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--navy-900);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy-700); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn--gold:hover { background: var(--gold-300); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn--outline-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--outline-dark:hover { border-color: var(--navy-900); background: var(--bg-alt); }

.btn--sm { min-height: 40px; padding: var(--space-2) var(--space-5); font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: auto; }
.brand__name { color: var(--navy-900); }

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-desktop a {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--body-text);
  padding-block: var(--space-2);
  position: relative;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"],
.nav-desktop .nav-dropdown__trigger[aria-current="page"] { color: var(--navy-900); }
.nav-desktop a[aria-current="page"]::after,
.nav-desktop .nav-dropdown__trigger[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

/* Nav dropdown ("mega menu") — adapted from 21st.dev/@sean0205 Navigation Menu */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--body-text);
  padding-block: var(--space-2);
  cursor: pointer;
}
.nav-dropdown__trigger:hover,
.nav-dropdown[data-open="true"] .nav-dropdown__trigger { color: var(--navy-900); }
.nav-dropdown__chevron { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.nav-dropdown[data-open="true"] .nav-dropdown__chevron { transform: rotate(180deg); }
.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 560px;
  max-width: 80vw;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 110;
}
.nav-dropdown[data-open="true"] .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__item {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease);
}
.nav-dropdown__item:hover { background: var(--bg-alt); }
.nav-dropdown__item strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  margin-bottom: 2px;
}
.nav-dropdown__item span { display: block; font-size: var(--fs-xs); color: var(--muted); }
.nav-dropdown__item--all {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy-900);
}
.nav-dropdown__item--all:hover { background: transparent; color: var(--gold-700); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-actions .btn--primary { display: none; }
@media (min-width: 460px) {
  .header-actions .btn--primary { display: inline-flex; }
}
@media (min-width: 1080px) {
  .header-actions { gap: var(--space-4); }
}
.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy-900);
}
.header-phone svg { width: 18px; height: 18px; color: var(--gold-600); flex-shrink: 0; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .header-phone { display: inline-flex; }
}

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
}
.nav-mobile[data-open="true"] { visibility: visible; }
.nav-mobile__scrim {
  position: absolute; inset: 0;
  background: rgba(11, 27, 50, 0.5);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.nav-mobile[data-open="true"] .nav-mobile__scrim { opacity: 1; }
.nav-mobile__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 86vw);
  background: var(--navy-900);
  color: var(--white);
  padding: var(--space-5);
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-mobile[data-open="true"] .nav-mobile__panel { transform: translateX(0); }
.nav-mobile__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.nav-mobile__close {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  background: transparent;
}
.nav-mobile__close svg { width: 20px; height: 20px; }
.nav-mobile ul { display: flex; flex-direction: column; }
.nav-mobile a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-md);
  padding-block: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile a[aria-current="page"] { color: var(--gold-300); }
.nav-mobile__footer {
  margin-top: auto;
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.nav-mobile__footer a {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-sm); color: rgba(255,255,255,0.75);
}
.nav-mobile__footer svg { width: 18px; height: 18px; color: var(--gold-300); }
body[data-nav-open="true"] { overflow: hidden; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(243, 196, 101, 0.16), transparent 60%), var(--navy-900);
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  padding-block: var(--space-9) var(--space-8);
}
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 59, 0.18), transparent 70%);
  pointer-events: none;
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}
.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__content { max-width: 640px; }
.hero h1 { color: var(--white); margin-bottom: var(--space-5); font-size: var(--fs-4xl); }
@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
}
.hero p.text-lead { color: rgba(255,255,255,0.72); font-size: var(--fs-lg); margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero__stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero__stat-num {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--gold-300);
}
.hero__stat-label { font-size: var(--fs-xs); color: rgba(255,255,255,0.6); margin-top: var(--space-1); }

.page-hero {
  background: var(--navy-900);
  color: rgba(255,255,255,0.78);
  padding-block: var(--space-8) var(--space-7);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 59, 0.16), transparent 70%);
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--space-3); position: relative; }
.page-hero .breadcrumb {
  position: relative;
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
  text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-heading); font-weight: 600;
}
.page-hero .breadcrumb a:hover { color: var(--gold-300); }
.page-hero p { max-width: 620px; position: relative; font-size: var(--fs-md); }

/* Multi-layer parallax scene (Team/Partners page) — adapted from
   osmosupply's "Parallax Scrolling" technique: several depth layers
   moving at different rates as the section scrolls past. */
.page-hero--parallax { overflow: hidden; }
.page-hero--parallax::before { display: none; }
.page-hero__parallax-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.parallax-layer {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.parallax-layer--1 {
  top: -35%; right: -12%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(227, 169, 59, 0.22), transparent 70%);
}
.parallax-layer--2 {
  bottom: -45%; left: -8%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(42, 78, 126, 0.35), transparent 70%);
}
.parallax-layer--3 {
  top: 10%; left: 38%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(243, 196, 101, 0.18), transparent 70%);
}

/* =========================================================
   Trust bar
   ========================================================= */
.trust-bar {
  border-block: 1px solid var(--border);
  padding-block: var(--space-6);
}
.trust-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
}
.trust-item {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-900);
  font-size: var(--fs-sm);
  text-align: left;
}
.trust-item svg { width: 28px; height: 28px; color: var(--gold-600); flex-shrink: 0; }
.trust-item span { display: block; }
.trust-item small { display: block; color: var(--muted); font-weight: 500; font-size: var(--fs-xs); }

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-2px); }

.icon-tile {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.icon-tile svg { width: 26px; height: 26px; color: var(--gold-700); }

.service-card__media {
  aspect-ratio: 4 / 3;
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-5);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  position: relative;
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-base) var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.04); }

.service-card h3 { margin-bottom: var(--space-3); }
.service-card p { margin-bottom: var(--space-4); }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-sm);
  color: var(--navy-900);
}
.service-card .card-link svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease); }
.service-card .card-link:hover svg { transform: translateX(3px); }
.service-card .card-link:hover { color: var(--gold-700); }

.value-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.value-card .icon-tile { margin-bottom: 0; flex-shrink: 0; }
.value-card h3 { margin-bottom: var(--space-2); font-size: var(--fs-md); }

/* =========================================================
   Team
   ========================================================= */
.team-card { text-align: left; scroll-margin-top: 96px; }
.team-avatar-link { display: block; }
.team-avatar-link:hover .team-avatar { box-shadow: var(--shadow-lg); }
.team-avatar-link .team-avatar { transition: box-shadow var(--dur-base) var(--ease); }
.team-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}
.team-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(227,169,59,0.28), transparent 60%);
}
.team-avatar span {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--gold-300);
  position: relative;
}
.team-avatar--lg { width: 220px; height: 220px; }
.team-avatar--lg span { font-size: 4rem; }
.team-avatar--photo { background: var(--bg-alt-2); }
.team-avatar--photo::after { content: none; }
.team-avatar--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card h3 { margin-bottom: var(--space-1); font-size: var(--fs-md); }
.team-card .role { color: var(--gold-700); font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.team-card p.bio { font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.socials { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
  transition: color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.socials a:hover { color: var(--navy-900); border-color: var(--navy-900); }
.socials svg { width: 16px; height: 16px; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta-banner {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 50% 0%, rgba(227,169,59,0.18), transparent 65%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: var(--space-4); }
.cta-banner p { color: rgba(255,255,255,0.72); max-width: 560px; margin-inline: auto; margin-bottom: var(--space-6); }
.cta-banner .hero__actions { justify-content: center; }

/* =========================================================
   Tags / badges
   ========================================================= */
.tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  background: var(--gold-100);
  color: var(--gold-700);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xs);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
}

/* =========================================================
   Forms
   ========================================================= */
.form-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
}
.field .required { color: var(--gold-700); }
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-base);
  min-height: 48px;
  background: var(--white);
  transition: border-color var(--dur-base) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(11, 27, 50, 0.1);
}
.field small { font-size: var(--fs-xs); color: var(--muted); }
.form-note { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--space-4); }
.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-top: var(--space-5);
}
.form-success[data-visible="true"] { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* =========================================================
   Office cards / Contact
   ========================================================= */
.office-stack { display: flex; flex-direction: column; gap: var(--space-5); }
.office-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.office-card__flag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-lg);
  color: var(--ink); margin-bottom: var(--space-5);
}
.office-card__flag svg { width: 28px; height: 28px; color: var(--gold-600); }
.office-card dl { display: flex; flex-direction: column; gap: var(--space-4); }
.office-card dt {
  font-family: var(--font-heading); font-weight: 600; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: var(--space-1);
}
.office-card dd { color: var(--body-text); font-size: var(--fs-sm); }
.office-card dd a { color: var(--navy-900); font-weight: 600; }
.office-card dd a:hover { color: var(--gold-700); }

/* =========================================================
   Article / insight cards
   ========================================================= */
.article-card__media {
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}
.article-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(227,169,59,0.25), transparent 60%);
}
.article-card__media svg { width: 40px; height: 40px; color: var(--gold-300); position: relative; }
.article-card__media--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}
.article-card .tag { margin-bottom: var(--space-3); }
.article-card h3 { margin-bottom: var(--space-2); font-size: var(--fs-md); }
.article-card .meta { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--space-4); }
.article-card { scroll-margin-top: 96px; }
.article-card .meta a:hover { color: var(--gold-700); }

a.article-card { display: block; color: inherit; }
a.article-card:hover h3 { color: var(--gold-700); }
.page-hero h1.page-hero__title--article { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 22em; line-height: 1.2; }

/* Blog article body */
.article-body { max-width: 760px; margin-inline: auto; }
.article-body h2 { font-size: var(--fs-xl, 1.5rem); margin: var(--space-8) 0 var(--space-3); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: var(--space-4); font-size: var(--fs-md); }
.article-body ul, .article-body ol { margin: 0 0 var(--space-5) var(--space-5); padding-left: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: var(--fs-md); padding-left: var(--space-1); }
.article-body a { color: var(--gold-700); text-decoration: underline; word-break: break-word; }
.article-body strong { color: var(--ink); }
.article-note { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: var(--space-4); color: var(--muted); text-align: center; font-size: var(--fs-sm); }
.table-wrap { overflow-x: auto; margin: var(--space-5) 0 var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--white); }
.article-body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.article-body th, .article-body td { padding: var(--space-3) var(--space-4); text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.article-body th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.article-body tr:last-child td { border-bottom: 0; }

/* Publications list (partner profile) */
.publications {
  margin-top: var(--space-4);
}
.publications__label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.publications__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.publications__list a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy-900);
}
.publications__list a:hover { color: var(--gold-700); }
.publications__list svg { width: 16px; height: 16px; color: var(--gold-600); flex-shrink: 0; margin-top: 2px; }

/* =========================================================
   Partner profile page (photo + bio left, contact card right)
   ========================================================= */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-9) var(--space-8);
  align-items: start;
}
.profile-photo { margin-bottom: var(--space-6); }
.profile-main { padding-top: calc(var(--fs-lg) * 1.3 + var(--space-4)); }
.profile-main p.bio { font-size: var(--fs-md); text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.profile-tagline { font-family: var(--font-heading); font-weight: 600; color: var(--gold-700); font-size: var(--fs-md); margin-bottom: var(--space-3); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.profile-sidebar__heading { font-size: var(--fs-lg); line-height: 1.3; margin-bottom: var(--space-4); }
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
.profile-card h3 { margin-bottom: var(--space-1); font-size: var(--fs-md); }
.profile-card .role { color: var(--gold-700); font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.profile-sidebar .publications { margin-top: var(--space-7); }
@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-main { padding-top: 0; }
}

/* Service-line lead contact (e.g. Corporate Secretarial) */
.service-lead { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.service-lead .team-avatar { width: 64px; height: 64px; margin: 0; flex-shrink: 0; }
.service-lead__text { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); color: var(--muted); }
.service-lead__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.service-lead__name { font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-md); color: var(--navy-900); }
.service-lead__text a:hover { color: var(--gold-700); }

/* Empty blog state */
.empty-state { max-width: 560px; margin-inline: auto; text-align: center; padding: var(--space-8) 0; }
.empty-state__icon { width: 64px; height: 64px; margin: 0 auto var(--space-5); border-radius: 50%; background: var(--gold-100); display: flex; align-items: center; justify-content: center; }
.empty-state__icon svg { width: 28px; height: 28px; color: var(--gold-700); }
.empty-state h2 { margin-bottom: var(--space-3); }
.empty-state .hero__actions { justify-content: center; margin-top: var(--space-6); }

/* =========================================================
   Job listings
   ========================================================= */
.job-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.job-row + .job-row { margin-top: var(--space-4); }
.job-row__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.job-row h3 { font-size: var(--fs-md); }

/* =========================================================
   Timeline / list check
   ========================================================= */
.check-list { display: flex; flex-direction: column; gap: var(--space-3); }
.check-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); color: var(--body-text); }
.check-list svg { width: 20px; height: 20px; color: var(--gold-600); flex-shrink: 0; margin-top: 2px; }
@media (min-width: 640px) {
  .check-list--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-6);
    row-gap: var(--space-3);
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.62); }
.site-footer .container { padding-block: var(--space-8) var(--space-6); }
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.footer-brand .brand { color: var(--white); margin-bottom: var(--space-4); }
.footer-brand p { max-width: 320px; font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.footer-brand .header-phone { color: var(--white); display: inline-flex; margin-bottom: var(--space-2); }
.footer-col h4 { color: var(--white); font-size: var(--fs-sm); margin-bottom: var(--space-4); letter-spacing: 0.02em; }
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--fs-sm); transition: color var(--dur-base) var(--ease); }
.footer-col a:hover { color: var(--gold-300); }
.footer-col address { font-style: normal; font-size: var(--fs-sm); line-height: 1.7; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  font-size: var(--fs-xs);
}
.footer-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-badges .tag { background: rgba(243, 196, 101, 0.12); color: var(--gold-300); }

/* =========================================================
   Misc page sections
   ========================================================= */
.split {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__visual { order: 2; }
}
.split__visual {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.split__visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(227,169,59,0.3), transparent 55%);
}
.split__visual img { width: 96px; position: relative; }
.split__visual--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip__item { text-align: center; }
.stat-strip__num { font-family: var(--font-heading); font-size: var(--fs-3xl); font-weight: 700; color: var(--navy-900); }
.stat-strip__label { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--space-2); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.industry-card {
  text-align: left;
}
.industry-card .icon-tile { background: var(--bg-alt-2); }

.value-note {
  display: flex; align-items: flex-start; gap: var(--space-3);
  background: var(--gold-100);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.value-note svg { width: 20px; height: 20px; color: var(--gold-700); flex-shrink: 0; margin-top: 2px; }

@media (min-width: 720px) {
  .section { padding-block: var(--space-10); }
}

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-5);
}
.faq-item:first-child { padding-top: 0; }
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-600);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--body-text);
}

/* =========================================================
   Team contact card (service pages)
   ========================================================= */
.team-contact-card {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  flex-wrap: wrap;
  scroll-margin-top: 96px;
}
.team-contact-card .team-avatar {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  margin-bottom: 0;
}
.team-contact-card__body { flex: 1; min-width: 240px; }
.team-contact-card .bio { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy-900);
}
.contact-link svg { width: 18px; height: 18px; color: var(--gold-600); flex-shrink: 0; }
.contact-link:hover { color: var(--gold-700); }

/* =========================================================
   Gradient Menu — dock-style icon badges (credentials row)
   Adapted from 21st.dev/@minhxthanh "Gradient Menu"
   ========================================================= */
.gradient-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}
.gradient-menu__item {
  position: relative;
  width: 64px;
  height: 64px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.gradient-menu__item:hover {
  width: 190px;
  box-shadow: none;
}
.gradient-menu__fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g-from, var(--gold-300)), var(--g-to, var(--navy-800)));
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.gradient-menu__item:hover .gradient-menu__fill { opacity: 1; }
.gradient-menu__glow {
  position: absolute;
  top: 10px;
  inset-inline: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--g-from, var(--gold-300)), var(--g-to, var(--navy-800)));
  filter: blur(16px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.45s var(--ease);
}
.gradient-menu__item:hover .gradient-menu__glow { opacity: 0.55; }
.gradient-menu__icon {
  position: relative;
  z-index: 1;
  display: flex;
  color: var(--gold-700);
  transition: transform 0.4s var(--ease);
}
.gradient-menu__item:hover .gradient-menu__icon { transform: scale(0); }
.gradient-menu__icon svg { width: 26px; height: 26px; }
.gradient-menu__label {
  position: absolute;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--fs-xs);
  text-align: center;
  padding-inline: var(--space-3);
  transform: scale(0);
  transition: transform 0.4s var(--ease) 0.1s;
}
.gradient-menu__item:hover .gradient-menu__label { transform: scale(1); }

/* =========================================================
   Interactive hover button — big CTAs
   Adapted from 21st.dev/@dillionverma "Interactive Hover Button"
   ========================================================= */
.btn-interactive {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-sm);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.35s var(--ease);
}
.btn-interactive:hover { border-color: transparent; }
.btn-interactive--dark {
  border-color: var(--border);
  color: var(--ink);
}
.btn-interactive--dark .btn-interactive__reveal { color: var(--white); }
.btn-interactive--dark .btn-interactive__dot { background: var(--navy-900); }
.btn-interactive__dot {
  position: absolute;
  left: 18%;
  top: 45%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-500);
  transform: scale(1);
  transition: all 0.45s var(--ease);
}
.btn-interactive:hover .btn-interactive__dot {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.6);
}
.btn-interactive__label {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform: translateX(2px);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.btn-interactive:hover .btn-interactive__label {
  transform: translateX(56px);
  opacity: 0;
}
.btn-interactive__reveal {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--navy-900);
  font-weight: 700;
  transform: translateX(-56px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.btn-interactive:hover .btn-interactive__reveal {
  transform: translateX(0);
  opacity: 1;
}
.btn-interactive__reveal svg { width: 18px; height: 18px; flex-shrink: 0; }

/* =========================================================
   Language toggle (EN / 中文)
   ========================================================= */
.lang-toggle {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.lang-toggle:hover { border-color: var(--gold-600); color: var(--gold-700); }
.lang-toggle:focus-visible { outline: 2px solid var(--gold-500, var(--gold-600)); outline-offset: 2px; }
.lang-toggle--block { width: 100%; margin-top: var(--space-3); color: #fff; border-color: rgba(255,255,255,0.3); padding: 12px 14px; }
.lang-toggle--block:hover { color: var(--gold-300); border-color: var(--gold-300); }
.header-actions .lang-toggle { display: none; }
@media (min-width: 768px) { .header-actions .lang-toggle { display: inline-block; } }
