/* ==========================================================================
   Global PharmaPartners, Inc. — Site stylesheet
   Palette drawn from the GPP logo: deep pine, leaf green, lime swoosh.
   Type: Fraunces (display) · Archivo (body) · IBM Plex Mono (data/labels)
   ========================================================================== */

:root {
  /* Color tokens */
  --pine: #0f2e1d;        /* deep evergreen — footer, dark bands */
  --pine-2: #16402a;      /* lifted pine for cards on dark */
  --leaf: #1e8a3c;        /* primary brand green */
  --leaf-deep: #156d2f;   /* hover / emphasis */
  --lime: #9bcb3b;        /* swoosh accent */
  --paper: #f7f9f5;       /* page background */
  --white: #ffffff;
  --ink: #15241b;         /* primary text */
  --slate: #4f5c53;       /* secondary text (logo gray, greened) — AA-safe on light surfaces */
  --mist: #dfe8df;        /* hairlines & borders */
  --mist-2: #ecf2ea;      /* subtle fills */

  /* Type */
  --display: "Fraunces", Georgia, serif;
  --body: "Archivo", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--leaf-deep); text-decoration: none; }
a:hover { color: var(--leaf); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip to main content (keyboard / screen-reader users) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--leaf);
  color: var(--white);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Type scale ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.h-hero { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
.h-page { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; line-height: 1.3; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--slate);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--lime);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--lime); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--leaf); color: var(--white); }
.btn-primary:hover { background: var(--leaf-deep); color: var(--white); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--mist); }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf-deep); }

.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.on-dark .btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn-lime { background: var(--lime); color: var(--pine); }
.btn-lime:hover { background: #aedd4e; color: var(--pine); }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  border-radius: 8px;
}
.nav-links a:hover { background: var(--mist-2); color: var(--leaf-deep); }
.nav-links a.active { color: var(--leaf-deep); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
  margin-top: 2px;
}

/* Dropdown (About Us group) */
.has-dropdown > a::after { content: " ▾"; font-size: 0.7em; }
.dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 6px;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(15, 46, 29, 0.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a { padding: 9px 12px; }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% 10%, rgba(155, 203, 59, 0.13), transparent 60%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 7vw, 96px);
}

.hero-copy .h-hero { margin-bottom: 22px; }
.hero-copy .h-hero em {
  font-style: italic;
  color: var(--leaf-deep);
}
.hero-copy .lede { margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-globe { position: relative; }
.hero-globe svg { width: 100%; height: auto; }

/* Rotating Earth globe (drawn on canvas by js/globe.js) */
#globeCanvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
}

/* ---------- Ledger strip (key figures) ---------- */

.ledger {
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  background: var(--white);
}
.ledger-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ledger-cell {
  padding: 30px 22px;
  border-left: 1px solid var(--mist);
}
.ledger-cell:first-child { border-left: none; }
.ledger-num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 600;
  color: var(--pine);
  line-height: 1.1;
}
.ledger-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

.section-dark {
  background: var(--pine);
  color: #e9f1e9;
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lede { color: #b9cdbb; }

.section-tint { background: var(--mist-2); }

/* ---------- Card grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 18px 40px rgba(15, 46, 29, 0.1);
}
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--slate); font-size: 0.97rem; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--mist-2);
  color: var(--leaf-deep);
  display: grid;
  place-items: center;
}
.card-icon svg { width: 24px; height: 24px; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mist-2);
  color: var(--leaf-deep);
  margin-bottom: 12px;
}
.tag-lime { background: var(--lime); color: var(--pine); }

/* ---------- Process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 22px 24px;
  border-top: 2px solid var(--mist);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--leaf-deep);
  position: absolute;
  top: -0.75em;
  left: 22px;
  background: var(--paper);
  padding: 0 8px;
}
.section-tint .step::before { background: var(--mist-2); }
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--slate); font-size: 0.94rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(800px 360px at 12% 110%, rgba(155, 203, 59, 0.22), transparent 60%),
    var(--pine);
  color: var(--white);
  border-radius: 22px;
  padding: clamp(44px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { color: var(--white); max-width: 18ch; margin-bottom: 10px; }
.cta-band p { color: #b9cdbb; max-width: 46ch; }

/* CTA band with a full-bleed video background (e.g. NYC skyline) */
.cta-video {
  position: relative;
  overflow: hidden;
  display: block; /* let .cta-content own the flex layout */
  background: var(--pine);
  isolation: isolate;          /* own stacking context */
  transform: translateZ(0);    /* force a paint layer so border-radius clips the video */
}
.cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  border-radius: inherit;      /* belt-and-suspenders clip */
}
.cta-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(95deg, rgba(15,46,29,0.92) 0%, rgba(15,46,29,0.66) 52%, rgba(15,46,29,0.40) 100%);
}
.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(155, 203, 59, 0.14), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--mist);
  padding: clamp(48px, 7vw, 88px) 0;
}
.page-hero .lede { margin-top: 18px; }

/* ---------- Timeline (about) ---------- */

.timeline { position: relative; margin-top: 12px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--lime), var(--leaf));
}
.timeline-item {
  position: relative;
  padding: 0 0 36px 42px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--leaf);
}
.timeline-year {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--leaf-deep);
}
.timeline-item h3 { margin: 4px 0 6px; }
.timeline-item p { color: var(--slate); }

/* ---------- Team ---------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.person { text-align: left; }
.person-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--mist-2), var(--mist)),
    var(--mist-2);
  border: 1px solid var(--mist);
  display: grid;
  place-items: center;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-top: 16px; font-size: 1.15rem; }
.person .role {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-top: 4px;
}
.person p { color: var(--slate); font-size: 0.93rem; margin-top: 10px; }
.person-creds {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--slate);
  margin-top: 8px;
  line-height: 1.5;
}
.person-email {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Team cards link to individual profile pages */
.person-photo { transition: border-color 0.18s ease; }
a.person { color: inherit; text-decoration: none; display: block; }
a.person:hover h3 { color: var(--leaf-deep); }
a.person:hover .person-photo { border-color: var(--lime); }
.person-more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--leaf-deep);
}
a.person:hover .person-more { color: var(--leaf); }

/* Rob's full-body shot cropped to a headshot on the team grid only */
.person-photo.crop-head img {
  transform: scale(2) translateY(25%);
  transform-origin: 50% 50%;
}

/* Individual profile pages */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.profile-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--mist);
  background: var(--mist-2);
}
.profile-photo img { width: 100%; height: auto; display: block; }
.profile-bio { margin: 18px 0 28px; color: var(--ink); }
.profile-back { margin-top: 22px; font-family: var(--mono); font-size: 0.85rem; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio ---------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--mist);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.16s ease;
}
.filter-btn:hover { border-color: var(--leaf); color: var(--leaf-deep); }
.filter-btn.active { background: var(--pine); border-color: var(--pine); color: var(--white); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.program {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,46,29,0.1); }
.program-band {
  height: 6px;
  background: linear-gradient(90deg, var(--lime), var(--leaf));
}
.program-body { padding: 26px 24px; }
.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.status {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mist-2);
  color: var(--leaf-deep);
}
.status.live { background: var(--lime); color: var(--pine); }
.program h3 { font-size: 1.12rem; margin-bottom: 8px; }
.program p { color: var(--slate); font-size: 0.93rem; }

.confidential-note {
  margin-top: 36px;
  padding: 22px 26px;
  border: 1px dashed var(--mist);
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--slate);
  background: var(--white);
}

/* ---------- Services ---------- */

.audience-split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.audience {
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
}
.audience-rd { background: var(--pine); color: #e9f1e9; }
.audience-rd h3, .audience-rd h2 { color: var(--white); }
.audience-us { background: var(--white); border: 1px solid var(--mist); }
.audience ul { list-style: none; margin-top: 20px; }
.audience li {
  padding: 14px 0 14px 30px;
  position: relative;
  border-top: 1px solid rgba(127, 146, 130, 0.25);
  font-size: 0.97rem;
}
.audience-rd li { color: #c9d9ca; }
.audience-us li { color: var(--slate); }
.audience li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}
.audience-us li::before { color: var(--leaf); }

.service-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* Capabilities grid (compact service list) */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--white);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cap:hover { border-color: var(--lime); transform: translateY(-3px); }
.cap h3 { font-size: 1.02rem; margin-bottom: 6px; display: flex; align-items: baseline; gap: 8px; }
.cap h3::before { content: "→"; color: var(--leaf); font-weight: 700; font-size: 0.9em; }
.cap p { color: var(--slate); font-size: 0.9rem; }
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-info .card { margin-bottom: 18px; }

form .field { margin-bottom: 20px; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 13px 15px;
  border: 1px solid var(--mist);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(30, 138, 60, 0.15);
}
textarea { resize: vertical; min-height: 140px; }

.form-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Honeypot — visually hidden but reachable by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Newsletter opt-in */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 22px;
}
.consent-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex: none;
  accent-color: var(--leaf);
  cursor: pointer;
}
.consent-row label {
  margin: 0;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--slate);
  cursor: pointer;
}

/* Submit status message */
.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.93rem;
}
.form-status.success { background: var(--mist-2); color: var(--leaf-deep); border: 1px solid var(--lime); }
.form-status.error { background: #fdecec; color: #b42318; border: 1px solid #f3b4b4; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pine);
  color: #b9cdbb;
  padding: clamp(48px, 6vw, 72px) 0 32px;
  margin-top: clamp(56px, 8vw, 104px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--white);
  line-height: 1.2;
}
.footer-brand span { color: var(--lime); }
.footer-tag { font-size: 0.92rem; margin-top: 12px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cfdecf; font-size: 0.95rem; }
.footer-col a:hover { color: var(--lime); }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: #7f9282;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Globe animation ---------- */

.route {
  fill: none;
  stroke-dasharray: 6 8;
  animation: routeflow 2.6s linear infinite;
}
@keyframes routeflow {
  to { stroke-dashoffset: -56; }
}
.pulse {
  animation: pulse 2.2s ease-out infinite;
  transform-origin: center;
}
@keyframes pulse {
  0% { opacity: 0.9; }
  70% { opacity: 0.15; }
  100% { opacity: 0.9; }
}
.globe-spin line, .globe-spin ellipse, .globe-spin circle { vector-effect: non-scaling-stroke; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route, .pulse { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta-bg { display: none; }
  .cta-video {
    background: linear-gradient(95deg, rgba(15,46,29,0.85), rgba(15,46,29,0.5)), url("../assets/poster/nyc.jpg");
    background-size: cover;
    background-position: center;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-globe { max-width: 520px; margin: 0 auto; }
  .grid-3, .portfolio-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .audience-split, .service-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--mist);
    box-shadow: 0 22px 38px rgba(15,46,29,0.12);
    display: none;
    padding: 14px var(--gutter) 22px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
  }
  .has-dropdown > a::after { content: ""; }
  .nav-cta { margin: 12px 0 0; justify-content: center; }
  .ledger-row { grid-template-columns: 1fr 1fr; }
  .ledger-cell:nth-child(3) { border-left: none; }
  .ledger-cell { border-top: 1px solid var(--mist); }
  .ledger-cell:nth-child(-n+2) { border-top: none; }
  .grid-3, .grid-2, .portfolio-grid, .team-grid, .steps, .form-row { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
}
