/* ==========================================================================
   PREMIER GLOBAL ADVISORY SERVICE — Stylesheet
   --------------------------------------------------------------------------
   Design tokens live at the top as CSS custom properties. Change palette,
   type, or spacing scale from here — the rest of the file references tokens
   only, so brand tweaks never require hunting through component rules.
   ========================================================================== */

:root {
  /* Color — one dominant (navy), one warm metal accent (gold), quiet neutrals */
  --navy: #0F1F3D;
  --navy-deep: #081020;
  --navy-soft: #1A2C52;
  --gold: #C9A227;
  --gold-light: #E4CE7B;
  --gold-deep: #826319; /* AA-safe gold for small text/labels on light backgrounds */
  --ink: #16202E;
  --slate: #4B5566;
  --slate-light: #7A8494; /* decorative use only (borders, icons) — fails AA for small text, see muted-onlight/-ondark below */
  --muted-onlight: #5E6A7A; /* AA-safe muted label color on white/mist */
  --muted-ondark: #A8B2C4;  /* AA-safe muted label color on navy/navy-deep */
  --paper: #FFFFFF;
  --mist: #F2F3F5;
  --line: #E3E5E9;
  --line-dark: #2A3A5C;

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 6vw, 4.75rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2.1rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-micro: 0.78rem;

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;
  --sp-7: 8rem;

  --content-max: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset & base ---------------------------------------------------- */

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

html { scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

@media (min-width: 640px) {
  .container { padding-inline: var(--sp-4); }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--sp-2);
}

.eyebrow--onnavy { color: var(--gold-light); }

.section { padding-block: var(--sp-6); }
@media (max-width: 720px) { .section { padding-block: var(--sp-5); } }

.section--alt { background: var(--mist); }
.section--navy { background: var(--navy); color: #C9D0DE; }
.section--navy h2, .section--navy h3 { color: var(--paper); }

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

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* On navy/dark backgrounds, gold-deep is too dark to read as a ring —
   swap to gold-light, which meets contrast against navy instead. */
.site-header :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold-light);
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--gold:hover { background: var(--gold-light); }

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(15, 31, 61, 0);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(8, 16, 32, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img { height: 34px; width: auto; }

.brand__word {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand__word small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav__links {
  display: flex;
  gap: var(--sp-4);
}

.nav__links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: #C9D0DE;
  position: relative;
  padding-block: 0.3em;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}

.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { right: 0; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  padding: 0.4rem;
}

.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta.btn { display: none; }
  .nav__toggle { display: inline-flex; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: 68px;
    background: var(--navy-deep);
    padding: var(--sp-4) var(--sp-3);
    gap: var(--sp-3);
  }
  .nav__links.is-open a { font-size: 1.1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 80% 60% at 70% 10%, var(--navy-soft), var(--navy) 55%, var(--navy-deep) 100%);
  color: #C9D0DE;
  overflow: hidden;
  padding-top: 6rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
}
.hero::before { width: 40vw; height: 40vw; top: -15vw; right: -10vw; }
.hero::after { width: 30vw; height: 30vw; bottom: -12vw; left: -8vw; }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-5);
  align-items: center;
  width: 100%;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin-inline: auto; }
}

.hero__tagline {
  font-size: var(--fs-hero);
  color: var(--paper);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}
.hero__tagline em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__lead {
  font-size: var(--fs-lead);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
  color: #C9D0DE;
}

.hero__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1em;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-ondark);
  margin-bottom: var(--sp-4);
}
.hero__locations li:not(:last-child)::after {
  content: "\2022";
  margin-left: 1em;
  color: var(--gold);
}

.hero__ctas { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

.hero__scrollcue {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ondark);
  z-index: 2;
}
.hero__scrollcue .line {
  width: 1px; height: 28px;
  background: linear-gradient(var(--gold), transparent);
  animation: pulseLine 2.2s ease-in-out infinite;
}
@keyframes pulseLine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* signature network-globe drawing animation */
.globe-draw circle,
.globe-draw ellipse,
.globe-draw line.meridian {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s var(--ease) forwards;
}
.globe-draw .node-line {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1s var(--ease) forwards;
  animation-delay: 1.8s;
}
.globe-draw .node-dot {
  opacity: 0;
  transform-origin: center;
  animation: popIn 0.5s var(--ease) forwards;
  animation-delay: 2.4s;
}
.globe-draw .node-dot:nth-of-type(2) { animation-delay: 2.55s; }
.globe-draw .node-dot:nth-of-type(3) { animation-delay: 2.7s; }
.globe-draw .node-dot:nth-of-type(4) { animation-delay: 2.85s; }
.globe-draw .node-dot:nth-of-type(5) { animation-delay: 3.0s; }
.globe-draw .hub { opacity: 0; animation: popIn 0.4s var(--ease) forwards; animation-delay: 2.2s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } from { transform: scale(0.2); } }

@media (prefers-reduced-motion: reduce) {
  .globe-draw circle, .globe-draw ellipse, .globe-draw line.meridian,
  .globe-draw .node-line, .globe-draw .node-dot, .globe-draw .hub {
    animation: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
}

/* ==========================================================================
   OVERVIEW
   ========================================================================== */

.overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 860px) { .overview { grid-template-columns: 1fr; gap: var(--sp-4); } }

.overview__lead {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--navy);
  font-style: italic;
  max-width: 20ch;
}

.overview__body p { color: var(--slate); font-size: var(--fs-body); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-grid__item .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  display: block;
}
.stat-grid__item .label {
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-onlight);
  margin-top: 0.25em;
}

/* ==========================================================================
   EXPERTISE / GROUP CORE SKILLS
   ========================================================================== */

.expertise-head {
  max-width: 60ch;
  margin-bottom: var(--sp-5);
}
.expertise-head p { color: var(--slate); }

.capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .capability-list { grid-template-columns: 1fr; } }

.capability-list__item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--line);
}
.capability-list__item:nth-child(odd) { border-right: 1px solid var(--line); }
@media (max-width: 720px) { .capability-list__item:nth-child(odd) { border-right: none; } }

.capability-list__icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.capability-list__icon svg { width: 20px; height: 20px; stroke: var(--navy); }

.capability-list__item h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.3em;
}
.capability-list__item p { color: var(--slate); font-size: var(--fs-small); }

/* ==========================================================================
   TEAM
   ========================================================================== */

.team-intro {
  max-width: 62ch;
  margin-bottom: var(--sp-6);
}
.team-intro p { color: #C9D0DE; }

.team-member {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
}
.team-member:not(:last-child) { border-bottom: 1px solid var(--line); }

@media (max-width: 780px) {
  .team-member { grid-template-columns: 1fr; gap: var(--sp-3); }
}

.team-member__side { position: relative; }

.team-member__photo-wrap {
  width: 148px; height: 148px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  margin-bottom: var(--sp-3);
}
.team-member__photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
}
.team-member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.team-member__name {
  font-size: var(--fs-h2);
  margin-bottom: 0.15em;
}
.team-member__title {
  font-style: italic;
  color: var(--slate);
  font-size: var(--fs-small);
  margin-bottom: 0.5em;
}
.team-member__region {
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}
.team-member__email {
  font-size: var(--fs-small);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.team-member__email:hover { color: var(--gold); border-color: var(--gold); }

.team-member__bio {
  columns: 2;
  column-gap: var(--sp-5);
  color: var(--slate);
}
@media (max-width: 780px) { .team-member__bio { columns: 1; } }

.team-member__bio p { break-inside: avoid; }

.team-member__bio h4 {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin: 1.2em 0 0.5em;
  break-after: avoid;
}
.team-member__bio h4:first-child { margin-top: 0; }

.team-member__bio ul {
  margin-bottom: 1em;
}
.team-member__bio li {
  position: relative;
  padding-left: 1.1em;
  margin-bottom: 0.5em;
  font-size: var(--fs-small);
  break-inside: avoid;
}
.team-member__bio li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ==========================================================================
   CONTACT / FOOTER
   ========================================================================== */

.contact {
  text-align: center;
}
.contact__title {
  font-size: var(--fs-h1);
  color: var(--paper);
  margin-bottom: var(--sp-2);
}
.contact__lead {
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--sp-4);
  color: #C9D0DE;
}
.contact__cta { margin-bottom: var(--sp-6); }

.directory {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
  max-width: 980px;
  margin-inline: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .directory { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .directory { grid-template-columns: 1fr; } }

.directory__item .name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 0.3em;
}
.directory__item .email {
  font-size: var(--fs-micro);
  color: var(--gold-light);
  word-break: break-word;
}
.directory__item .email:hover { color: var(--paper); }

.site-footer {
  background: var(--navy-deep);
  color: var(--muted-ondark);
  padding-block: var(--sp-4);
  text-align: center;
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
}
.site-footer .locations {
  margin-top: 0.6em;
  text-transform: uppercase;
  color: var(--muted-ondark);
}

/* ---- Scroll reveal ------------------------------------------------------ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
