/* ============================================
   McKenzie Global Advisory
   Design system — luxo silencioso / editorial
   ============================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { min-height: 100vh; line-height: 1.5; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Tokens ---------- */
:root {
  /* Cores */
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --paper: #F5F2EC;
  --paper-pure: #FAFAF7;
  --gold: #B8945A;
  --gold-soft: #D4BC8B;
  --gold-dim: #8B7449;
  --gray-100: #E8E5DF;
  --gray-300: #B8B4AC;
  --gray-500: #6B6764;
  --gray-700: #3A3936;
  --line: rgba(10, 10, 10, 0.08);
  --line-dark: rgba(245, 242, 236, 0.12);

  /* Tipografia */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Escala */
  --step--2: clamp(0.69rem, 0.66rem + 0.18vw, 0.83rem);
  --step--1: clamp(0.83rem, 0.78rem + 0.27vw, 1.04rem);
  --step-0:  clamp(1.00rem, 0.91rem + 0.43vw, 1.30rem);
  --step-1:  clamp(1.20rem, 1.07rem + 0.66vw, 1.63rem);
  --step-2:  clamp(1.44rem, 1.24rem + 0.99vw, 2.03rem);
  --step-3:  clamp(1.73rem, 1.45rem + 1.46vw, 2.54rem);
  --step-4:  clamp(2.07rem, 1.68rem + 2.10vw, 3.18rem);
  --step-5:  clamp(2.49rem, 1.93rem + 2.99vw, 3.97rem);
  --step-6:  clamp(2.99rem, 2.21rem + 4.23vw, 4.97rem);
  --step-7:  clamp(3.58rem, 2.51rem + 5.91vw, 6.21rem);
  --step-8:  clamp(4.30rem, 2.83rem + 8.21vw, 7.76rem);
  --step-9:  clamp(5.16rem, 3.16rem + 11.30vw, 9.70rem);

  /* Espaçamento */
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section: clamp(5rem, 10vw, 9rem);

  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  cursor: none;
}

@media (pointer: coarse), (hover: none) {
  body { cursor: auto; }
}

.font-display { font-family: var(--font-display); }
.italic { font-style: italic; font-variation-settings: 'SOFT' 100, 'opsz' 144; }

/* ---------- Cursor customizado ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  border-radius: 50%; transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--paper-pure);
  transition: transform 0.15s var(--ease-out), width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}
.cursor-ring {
  width: 32px; height: 32px; border: 1px solid var(--paper-pure);
  transition: transform 0.35s var(--ease-out), width 0.4s var(--ease-out), height 0.4s var(--ease-out), opacity 0.3s;
  opacity: 0.6;
}
.cursor-hover .cursor-dot { width: 0; height: 0; }
.cursor-hover .cursor-ring { width: 64px; height: 64px; opacity: 1; }

@media (pointer: coarse), (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Layout grid ---------- */
.container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem var(--gutter);
  transition: padding 0.4s var(--ease-out), background 0.4s var(--ease-out), backdrop-filter 0.4s;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-body);
}
.nav.scrolled {
  padding: 1rem var(--gutter);
  background: rgba(245, 242, 236, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.nav.nav-dark { color: var(--paper); }
.nav.nav-dark.scrolled { background: rgba(10, 10, 10, 0.85); color: var(--ink); border-bottom-color: var(--line-dark); }
.nav.nav-dark.scrolled { color: var(--paper); }

.nav-logo {
  height: 38px; display: flex; align-items: center;
  transition: transform 0.5s var(--ease-out);
}
.nav-logo svg, .nav-logo img { height: 100%; width: auto; }

/* === Brand logo (SVG inline) ===
   Reproduz o logo McKenzie programaticamente para garantir
   nitidez em qualquer tamanho e fundo.
   Duas variantes:
   - .brand-mark  → apenas "McKenzie." + quadrado dourado (usado no nav)
   - .brand-full  → logo completo com tarja "GLOBAL ADVISORY" (usado no footer)
*/
.brand-mark, .brand-full {
  height: 100%; width: auto;
  display: block;
}
.brand-mark .lm-name, .brand-full .lm-name {
  fill: var(--ink); font-family: 'Manrope', sans-serif; font-weight: 800;
}
.brand-mark .lm-dot, .brand-full .lm-dot  { fill: var(--gold); }
.brand-full .lm-bar  { fill: var(--ink); }
.brand-full .lm-tag  { fill: var(--paper); font-family: 'Manrope', sans-serif; font-weight: 500; }

/* Variante em nav-dark: tudo branco/papel */
.nav.nav-dark .brand-mark .lm-name { fill: var(--paper); }
.nav.nav-dark.scrolled .brand-mark .lm-name { fill: var(--paper); }

/* Logo no footer (sempre fundo preto) */
.footer-logo .brand-full .lm-name { fill: var(--paper); }
.footer-logo .brand-full .lm-bar  { fill: var(--paper); }
.footer-logo .brand-full .lm-tag  { fill: var(--ink); }
.footer-logo .brand-full {
  height: 54px; margin-bottom: 2rem;
}

.nav-menu {
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-menu a {
  position: relative; padding: 0.25rem 0;
  transition: opacity 0.3s;
}
.nav-menu a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }

.lang-switcher {
  display: flex; gap: 0; font-size: var(--step--2); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; overflow: hidden;
  padding: 2px;
}
.lang-switcher button {
  padding: 0.4rem 0.7rem; border-radius: 999px;
  opacity: 0.5; transition: all 0.3s; font-family: var(--font-body);
}
.lang-switcher button.active { background: var(--ink); color: var(--paper); opacity: 1; }
.nav.nav-dark .lang-switcher button.active { background: var(--paper); color: var(--ink); }
.nav.nav-dark.scrolled .lang-switcher button.active { background: var(--paper); color: var(--ink); }

.nav-cta {
  font-size: var(--step--1); font-weight: 500;
  padding: 0.7rem 1.25rem; border: 1px solid currentColor;
  border-radius: 999px; transition: all 0.4s var(--ease-out);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav.nav-dark .nav-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.mobile-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .mobile-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 28px; height: 18px; justify-content: space-between;
  }
  .mobile-toggle span {
    display: block; width: 100%; height: 1px; background: currentColor;
    transition: transform 0.4s var(--ease-out), opacity 0.3s;
  }
  .mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.open span:nth-child(2) { opacity: 0; }
  .mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .mobile-menu {
    position: fixed; inset: 0; z-index: 99;
    background: var(--ink); color: var(--paper);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem; font-family: var(--font-display); font-size: var(--step-3);
    opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out);
  }
  .mobile-menu.open { opacity: 1; pointer-events: auto; }
  .mobile-menu a { padding: 0.5rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
  color: var(--paper-pure);
  background: var(--ink);
}

.hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.hero-bg-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s var(--ease-in-out);
  animation: kenburns 20s infinite alternate ease-in-out;
}
.hero-bg-slide.active { opacity: 0.45; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.2) 30%,
    rgba(10, 10, 10, 0.5) 70%,
    rgba(10, 10, 10, 0.95) 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 3;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 3px 3px;
  pointer-events: none;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, -1%); }
}

.hero-inner {
  position: relative; z-index: 4;
  width: 100%; padding-left: var(--gutter); padding-right: var(--gutter);
  max-width: 1680px; margin: 0 auto;
}

.hero-eyebrow {
  font-size: var(--step--2); letter-spacing: 0.25em; text-transform: uppercase;
  font-weight: 500; opacity: 0; transform: translateY(20px);
  animation: rise 1.2s var(--ease-out) 0.3s forwards;
  margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; width: 40px; height: 1px; background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--step-9);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  max-width: 18ch;
}
.hero-title .line {
  display: block; overflow: hidden;
}
.hero-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise-text 1.4s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) span { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.7s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.9s; }
.hero-title em {
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--gold);
}

.hero-sub {
  font-size: var(--step-1); max-width: 50ch; line-height: 1.45;
  font-weight: 300; color: var(--gray-100);
  opacity: 0; transform: translateY(20px);
  animation: rise 1.2s var(--ease-out) 1.2s forwards;
}

.hero-scroll {
  position: absolute; bottom: 2rem; right: var(--gutter);
  z-index: 5; font-size: var(--step--2); letter-spacing: 0.25em;
  text-transform: uppercase; opacity: 0;
  animation: fade-in 1s var(--ease-out) 2s forwards;
  display: flex; align-items: center; gap: 0.75rem;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px; background: var(--paper);
  animation: scroll-line 2.5s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-text {
  to { transform: translateY(0); }
}
@keyframes fade-in {
  to { opacity: 1; }
}

/* ---------- Section / Manifesto ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-dark { background: var(--ink); color: var(--paper-pure); }
.section-paper { background: var(--paper-pure); }

.section-label {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: var(--step--2); letter-spacing: 0.25em;
  text-transform: uppercase; font-weight: 500;
  margin-bottom: 3rem;
}
.section-label::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}
.section-label .num {
  color: var(--gold); font-family: var(--font-mono); font-size: var(--step--2);
}

.manifesto {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-5);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 24ch;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.manifesto em {
  font-style: italic; color: var(--gold);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.manifesto-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: end;
}
@media (max-width: 800px) { .manifesto-grid { grid-template-columns: 1fr; } }

.manifesto-aside {
  font-size: var(--step-0); line-height: 1.65;
  max-width: 38ch;
  color: var(--gray-500);
}
.section-dark .manifesto-aside { color: var(--gray-100); }

.manifesto-aside p + p { margin-top: 1.25rem; }

/* ---------- Jurisdictions ---------- */
.jurisdictions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.jurisdiction-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 80px 1fr 1.2fr auto;
  gap: clamp(1rem, 4vw, 4rem); align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding 0.6s var(--ease-out);
}
.jurisdiction-card:hover { padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 900px) {
  .jurisdiction-card { grid-template-columns: 1fr; gap: 1.5rem; }
}

.jurisdiction-num {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--gold); letter-spacing: 0.1em;
}
.jurisdiction-flag {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.jurisdiction-flag .country-tag {
  display: block; font-family: var(--font-body); font-size: var(--step--2);
  font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.jurisdiction-desc {
  font-size: var(--step-0); line-height: 1.55;
  color: var(--gray-100); max-width: 50ch;
}
.section-paper .jurisdiction-desc { color: var(--gray-500); }
.jurisdiction-arrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--step--1); letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500;
  white-space: nowrap;
}
.jurisdiction-arrow svg {
  transition: transform 0.5s var(--ease-out);
}
.jurisdiction-card:hover .jurisdiction-arrow svg { transform: translateX(8px); }

.jurisdiction-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(184, 148, 90, 0.08), transparent);
  opacity: 0; transition: opacity 0.6s;
}
.jurisdiction-card:hover::before { opacity: 1; }

/* ---------- Metrics ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark .metrics-grid { border-color: var(--line-dark); }
@media (max-width: 800px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }

.metric {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  position: relative;
}
.section-dark .metric { border-color: var(--line-dark); }
.metric:last-child { border-right: none; }
@media (max-width: 800px) {
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(odd) { border-right: 1px solid var(--line); }
  .section-dark .metric:nth-child(odd) { border-right-color: var(--line-dark); }
}

.metric-value {
  font-family: var(--font-display);
  font-weight: 300; font-size: var(--step-6);
  line-height: 0.95; letter-spacing: -0.04em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  display: flex; align-items: baseline; gap: 0.15em;
  margin-bottom: 1rem;
}
.metric-value .suffix {
  font-size: 0.4em; color: var(--gold);
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.metric-label {
  font-size: var(--step--2); letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
  color: var(--gray-500); max-width: 22ch;
}
.section-dark .metric-label { color: var(--gray-100); }

/* ---------- Approach pillars ---------- */
.approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 900px) { .approach-grid { grid-template-columns: 1fr; } }

.pillar {
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.section-dark .pillar { border-color: var(--line-dark); }

.pillar-num {
  font-family: var(--font-mono); font-size: var(--step--2);
  color: var(--gold); letter-spacing: 0.1em;
  margin-bottom: 2rem; display: block;
}
.pillar-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); line-height: 1.15;
  letter-spacing: -0.015em; margin-bottom: 1rem;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.pillar-text {
  font-size: var(--step--1); line-height: 1.65;
  color: var(--gray-500);
}
.section-dark .pillar-text { color: var(--gray-100); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

.team-member {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.team-photo {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  background: var(--ink-soft);
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}
.team-member:hover .team-photo img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.04);
}
.team-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.8));
  opacity: 0; transition: opacity 0.6s;
}
.team-member:hover .team-photo::after { opacity: 1; }

.team-info {
  display: flex; flex-direction: column; gap: 0.25rem;
}
.team-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-1); letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.team-role {
  font-size: var(--step--2); letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500; color: var(--gold);
}
.team-bio {
  font-size: var(--step--1); line-height: 1.6;
  color: var(--gray-500); margin-top: 0.75rem;
}
.section-dark .team-bio { color: var(--gray-100); }

/* ---------- Insights ---------- */
.insights-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}
@media (max-width: 900px) { .insights-list { grid-template-columns: 1fr; } }

.insight-card {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
.section-dark .insight-card { border-color: var(--line-dark); }
.insight-card:hover { padding-top: 1.5rem; }

.insight-meta {
  display: flex; gap: 1.5rem;
  font-size: var(--step--2); letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gray-500);
}
.section-dark .insight-meta { color: var(--gray-100); }
.insight-meta .cat { color: var(--gold); }
.insight-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); line-height: 1.2;
  letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.insight-excerpt {
  font-size: var(--step--1); line-height: 1.65;
  color: var(--gray-500);
}
.section-dark .insight-excerpt { color: var(--gray-100); }
.insight-link {
  align-self: flex-start; margin-top: 0.5rem;
  font-size: var(--step--2); letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding-bottom: 2px; border-bottom: 1px solid currentColor;
}

/* ---------- CTA block ---------- */
.cta-block {
  text-align: center; padding: var(--section) var(--gutter);
}
.cta-eyebrow {
  font-size: var(--step--2); letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 2rem;
}
.cta-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-7); line-height: 0.95;
  letter-spacing: -0.035em; max-width: 18ch; margin: 0 auto 3rem;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.cta-title em { font-style: italic; color: var(--gold); font-variation-settings: 'opsz' 144, 'SOFT' 100; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.25rem 2.5rem; background: var(--gold); color: var(--ink);
  font-size: var(--step--1); letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; border-radius: 999px;
  transition: all 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--paper-pure);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { color: var(--ink); }
.btn-primary svg { transition: transform 0.5s var(--ease-out); }
.btn-primary:hover svg { transform: translateX(6px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--step--1); letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 500; padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.btn-ghost svg { transition: transform 0.4s var(--ease-out); }
.btn-ghost:hover svg { transform: translateX(6px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) 2rem;
}
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 4rem; border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-main { grid-template-columns: 1fr; } }

.footer-logo img { height: 36px; width: auto; margin-bottom: 2rem; }
.footer-tag {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-2); line-height: 1.2;
  letter-spacing: -0.015em; max-width: 16ch;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.footer-tag em { font-style: italic; color: var(--gold); }

.footer-col h4 {
  font-size: var(--step--2); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem; font-weight: 600;
}
.footer-col p, .footer-col a {
  font-size: var(--step--1); line-height: 1.7;
  color: var(--gray-100);
}
.footer-col a { display: block; padding: 0.15rem 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem; flex-wrap: wrap;
  font-size: var(--step--2); letter-spacing: 0.1em;
  color: var(--gray-300);
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Interior pages ---------- */
.page-hero {
  padding: clamp(8rem, 18vw, 14rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  background: var(--ink); color: var(--paper-pure);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 3px 3px;
}
.page-hero > * { position: relative; z-index: 1; }

.page-hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: end;
}
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

.page-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-8); line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.page-title em { font-style: italic; color: var(--gold); font-variation-settings: 'opsz' 144, 'SOFT' 100; }

.page-intro {
  font-size: var(--step-1); line-height: 1.5;
  max-width: 40ch; color: var(--gray-100);
  font-weight: 300;
}

/* ---------- Content body ---------- */
.content-body {
  max-width: 70ch; font-size: var(--step-0); line-height: 1.75;
  color: var(--ink-soft);
}
.content-body h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.02em;
  margin: 3rem 0 1.5rem; font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.content-body h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem; font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.content-body p + p { margin-top: 1.5rem; }
.content-body p { color: var(--gray-700); }
.content-body em { font-style: italic; color: var(--gold-dim); }
.content-body strong { font-weight: 600; color: var(--ink); }
.content-body blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--step-2); line-height: 1.3; font-weight: 400;
  padding: 2rem 0 2rem 2rem; margin: 2.5rem 0;
  border-left: 2px solid var(--gold);
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
  color: var(--ink);
}
.content-body ul, .content-body ol { padding-left: 1.5rem; margin: 1.5rem 0; }
.content-body li { margin-bottom: 0.5rem; color: var(--gray-700); }
.content-body ul li { list-style: none; padding-left: 1rem; position: relative; }
.content-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.7em;
  width: 6px; height: 6px; background: var(--gold);
}

/* ---------- Service detail page ---------- */
.service-features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem);
}
@media (max-width: 800px) { .service-features { grid-template-columns: 1fr; } }

.feature {
  display: flex; flex-direction: column; gap: 1rem;
}
.feature-num {
  font-family: var(--font-mono); font-size: var(--step--2);
  color: var(--gold); letter-spacing: 0.1em;
}
.feature-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.015em;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
}
.feature-text {
  font-size: var(--step--1); line-height: 1.65; color: var(--gray-500);
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 6rem);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.form-field label {
  font-size: var(--step--2); letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gray-500); font-weight: 500;
}
.form-field input, .form-field textarea, .form-field select {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 0.6rem 0; font-size: var(--step-0); font-family: var(--font-body);
  color: var(--ink); transition: border-color 0.3s; border-radius: 0;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-bottom-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.office-card {
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.office-flag {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--step-2); letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  margin-bottom: 0.5rem;
}
.office-tag {
  font-size: var(--step--2); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.5rem; font-weight: 500;
}
.office-card p {
  font-size: var(--step--1); line-height: 1.7;
  color: var(--gray-500);
}

/* ---------- Article (blog post) ---------- */
.article-hero {
  padding: clamp(8rem, 16vw, 12rem) var(--gutter) clamp(2rem, 5vw, 4rem);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.article-hero-inner { max-width: 920px; margin: 0 auto; }
.article-meta {
  display: flex; gap: 2rem; margin-bottom: 2.5rem;
  font-size: var(--step--2); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gray-500);
}
.article-meta .cat { color: var(--gold); font-weight: 600; }
.article-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--step-7); line-height: 1; letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  margin-bottom: 2rem;
}
.article-deck {
  font-size: var(--step-1); line-height: 1.5; max-width: 50ch;
  color: var(--gray-700); font-weight: 300;
}
.article-body {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  max-width: 800px; margin: 0 auto;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.marquee-inner {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: scroll-marquee 40s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display); font-style: italic;
  font-weight: 300; font-size: var(--step-3); letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  color: var(--gold);
}
.marquee-item::after {
  content: '✦'; margin-left: 4rem; color: var(--paper); font-style: normal;
  font-family: var(--font-body); font-size: 0.5em; vertical-align: middle;
}
@keyframes scroll-marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Utilities ---------- */
.text-gold { color: var(--gold); }
.divider { height: 1px; background: var(--line); width: 100%; }
.section-dark .divider { background: var(--line-dark); }
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }
.hidden { display: none; }

/* Disable some animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
