/* =========================================================
   Suregate — Latin America Business and Risk Advisory
   Design tokens
   ========================================================= */
:root {
  /* Color */
  --ink: #0A0E1A;
  --ink-2: #10182C;
  --ink-3: #1B2540;
  --accent: #0033FF;
  --accent-bright: #3D5CFF;
  --paper: #F6F5F2;
  --paper-2: #FFFFFF;
  --line-on-light: rgba(10, 14, 26, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --text-ink: #12141C;
  --text-muted: #5B6270;
  --text-on-dark: #F6F5F2;
  --text-muted-on-dark: #9AA1B5;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1280px;
  --gutter: clamp(24px, 5vw, 72px);
  --radius: 2px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur-med: 480ms;
  --dur-slow: 900ms;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::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, h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

body {
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Type scale
   ========================================================= */
.section-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-dark .section-label,
.section-muted .section-label { color: var(--accent-bright); }

.section-title {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.75rem, 2.6vw + 1rem, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.section-head { margin-bottom: 56px; }

.accent-word { color: var(--accent-bright); }
.accent-word-ink { color: var(--accent); }

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-solid {
  background: var(--accent);
  color: #fff;
}
.btn-solid:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-large { padding: 18px 36px; font-size: 0.875rem; }

.btn-line {
  border: 1px solid var(--line-on-dark);
  color: var(--text-on-dark);
}
.btn-line:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.btn-outline {
  border: 1px solid var(--line-on-light);
  color: var(--text-ink);
  padding: 13px 24px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.text-link {
  font-size: 0.9375rem;
  font-weight: 600;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-on-light);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.text-link:hover { border-color: var(--text-ink); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.92);
  border-bottom-color: var(--line-on-dark);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 26px; width: auto; }

.main-nav {
  display: flex;
  gap: 32px;
  margin-right: auto;
}
.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted-on-dark);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease);
}
.main-nav a:hover { color: var(--text-on-dark); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: right var(--dur-med) var(--ease);
}
.main-nav a:hover::after { right: 0; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-on-dark);
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 28px;
  gap: 4px;
  border-top: 1px solid var(--line-on-dark);
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
.mobile-nav .btn { margin-top: 16px; text-align: center; }
.mobile-nav.is-open {
  display: flex;
  background: var(--ink);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 168px 0 120px;
  overflow: hidden;
}
.hero-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero-earth-square.webp");
  background-size: cover;
  background-position: center right;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(10, 14, 26, 0.94) 32%, rgba(10, 14, 26, 0.55) 58%, rgba(10, 14, 26, 0.25) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(10, 14, 26, 0) 22%);
}

.hero-inner {
  position: relative;
}

.hero-copy { max-width: 640px; }

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2.5rem, 4.4vw + 1rem, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  animation: reveal-up var(--dur-slow) var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 120ms);
}
.reveal-line:nth-child(2) > span { --i: 1; }

@keyframes reveal-up {
  to { transform: translateY(0); }
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1vw + 0.9rem, 1.4rem);
  color: var(--text-on-dark);
  margin-bottom: 20px;
  max-width: 30ch;
}
.hero-body {
  font-size: 1.0625rem;
  color: var(--text-muted-on-dark);
  max-width: 46ch;
  margin-bottom: 40px;
}
.reveal-fade {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up var(--dur-med) var(--ease) forwards;
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }
.hero-lede.reveal-fade { animation-delay: 380ms; }
.hero-body.reveal-fade { animation-delay: 480ms; }
.hero-actions.reveal-fade { animation-delay: 580ms; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-actions .text-link { color: var(--text-on-dark); border-color: var(--line-on-dark); }
.hero-actions .text-link:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

@media (min-width: 768px) {
  .hero-photo { background-image: url("../assets/hero-earth-wide.webp"); }
}

/* =========================================================
   Sections — base surfaces
   ========================================================= */
.section { padding: 108px 0; }
.section-light { background: var(--paper); color: var(--text-ink); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }
.section-muted { background: var(--paper-2); color: var(--text-ink); border-top: 1px solid var(--line-on-light); border-bottom: 1px solid var(--line-on-light); }

/* =========================================================
   The Gap
   ========================================================= */
.gap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.gap-copy p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 20px;
}
.gap-highlight {
  color: var(--text-ink) !important;
  font-family: var(--font-display);
  font-size: 1.2rem !important;
  line-height: 1.4;
}
.gap-tagline {
  font-size: 0.9375rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent) !important;
  margin-top: 4px;
}

.gap-compare {
  border-top: 1px solid var(--line-on-light);
}
.gap-compare-art {
  width: 100%;
  height: 56px;
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.gap-art-grid line { stroke: var(--line-on-light); stroke-width: 1; }
.gap-art-link { stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.gap-art-nodes circle { fill: var(--accent); }
.gap-art-nodes line { stroke: var(--line-on-light); stroke-width: 1; }
.gap-compare-head, .gap-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-on-light);
}
.gap-compare-head span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.gap-compare-row span:first-child {
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.gap-compare-row span:last-child {
  font-weight: 500;
  font-size: 0.9375rem;
}

/* =========================================================
   Positioning
   ========================================================= */
.positioning { text-align: left; position: relative; overflow: hidden; }
.positioning-field { position: absolute; inset: 0; pointer-events: none; }
.positioning-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.positioning-glow-1 {
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(61, 92, 255, 0.35), rgba(61, 92, 255, 0) 70%);
}
.positioning-glow-2 {
  width: 420px;
  height: 420px;
  right: 60px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(0, 51, 255, 0.28), rgba(0, 51, 255, 0) 70%);
}
.positioning-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.positioning-lines circle {
  fill: none;
  stroke: var(--line-on-dark);
  stroke-width: 1;
}
.positioning-inner { padding-top: 24px; padding-bottom: 24px; position: relative; }

.continent-map {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  height: 94%;
  width: auto;
  max-width: 320px;
  opacity: 0.9;
}
.continent-shape {
  fill: none;
  stroke: var(--line-on-dark);
  stroke-width: 1.4;
}
.continent-links line {
  stroke: var(--accent-bright);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  opacity: 0.35;
}
.continent-node circle {
  fill: var(--accent-bright);
  animation: continent-blink 4.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.continent-node text {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  fill: var(--text-muted-on-dark);
  opacity: 0;
  animation: continent-label 4.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes continent-blink {
  0%, 100% { opacity: 0.25; r: 3; }
  15% { opacity: 1; r: 5; }
  35% { opacity: 1; r: 5; }
  55% { opacity: 0.25; r: 3; }
}
@keyframes continent-label {
  0%, 100% { opacity: 0; }
  15% { opacity: 0.9; }
  35% { opacity: 0.9; }
  55% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .continent-node circle, .continent-node text { animation: none; opacity: 1; }
}

@media (max-width: 1080px) {
  .continent-map { height: 88%; opacity: 0.55; }
}
@media (max-width: 640px) {
  .continent-map { display: none; }
}
.positioning-line {
  font-family: var(--font-display);
  font-weight: 440;
  font-size: clamp(1.8rem, 3.6vw + 0.5rem, 3.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-muted-on-dark);
}
.positioning-accent {
  color: var(--text-on-dark);
  margin-bottom: 36px;
}
.positioning-tag {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

/* =========================================================
   Services
   ========================================================= */
.services-list { border-top: 1px solid var(--line-on-light); }
.service-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-on-light);
  transition: background var(--dur-fast) var(--ease);
}
.service-row:hover { background: rgba(0, 51, 255, 0.03); }
.service-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 460;
}
.service-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.service-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--accent);
}
.service-icon svg { width: 30px; height: 30px; }
.service-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0;
}
.service-body p {
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1rem;
}

/* =========================================================
   Why Suregate
   ========================================================= */
.why { padding-top: 88px; padding-bottom: 88px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.why-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-light);
}
.why-icon { color: var(--accent); }
.why-icon svg { width: 26px; height: 26px; }
.why-figure {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(2rem, 3vw + 1rem, 3.1rem);
  letter-spacing: -0.01em;
  color: var(--accent);
}
.why-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 30ch;
}

/* =========================================================
   Why Suregate — network map
   ========================================================= */
.network-map { margin-bottom: 56px; }
.network-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.network-grid line { stroke: var(--line-on-light); stroke-width: 1; }

.network-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 6;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: network-line-in 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes network-line-in { to { opacity: 1; } }
.network-line-eu {
  stroke: var(--accent-bright);
  stroke-width: 1.2;
  opacity: 0;
}
.network-line-eu.network-line { animation-name: network-line-in-eu; }
@keyframes network-line-in-eu { to { opacity: 0.55; } }

.network-node circle:first-child {
  fill: var(--accent);
  opacity: 0;
  animation: network-fade 0.4s ease forwards;
  animation-delay: var(--d, 0s);
}
.network-node text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  fill: var(--text-muted);
  opacity: 0;
  animation: network-fade 0.4s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes network-fade { to { opacity: 1; } }

.network-node-us circle:first-child { opacity: 1; animation: none; }
.network-node-us text { opacity: 1; animation: none; fill: var(--text-ink); font-weight: 700; }
.network-node-eu text { fill: var(--text-ink); font-weight: 700; }
.network-pulse-eu { animation-delay: 2.55s; }
.network-sub { font-size: 10.5px !important; font-weight: 400 !important; fill: var(--text-muted) !important; }

.network-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: network-pulse 2.6s ease-out infinite;
  animation-delay: 1.4s;
}
@keyframes network-pulse {
  0% { opacity: 0.5; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.9); }
}

@media (max-width: 640px) {
  .network-map { margin-bottom: 40px; }
  .network-node text { font-size: 28px; }
  .network-node-us text { font-size: 30px; }
  .network-node circle:first-child { r: 9; }
  .network-node-us circle:first-child { r: 11; }
  .network-line { stroke-width: 2.6; }
  .network-sub { display: none; }
}
.statement { position: relative; overflow: hidden; }
.statement-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.statement-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 78% 40%, black, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 90% at 78% 40%, black, transparent 72%);
}
.statement-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--accent-bright) 1px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 80% 45%, black, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 70% at 80% 45%, black, transparent 70%);
  animation: statement-drift 18s linear infinite;
}
@keyframes statement-drift {
  0% { background-position: 0 0; }
  100% { background-position: 112px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .statement-dots { animation: none; }
}

.statement-inner { max-width: 900px; position: relative; }
.statement-title em {
  font-style: italic;
  font-weight: 460;
}

.ghost-word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.16em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  color: var(--text-on-dark);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.ghost-word-light { color: var(--text-ink); opacity: 0.035; }
.services-section { position: relative; overflow: hidden; padding-bottom: 200px; }
.services-section .ghost-word { bottom: -0.06em; }
@media (max-width: 640px) {
  .services-section { padding-bottom: 130px; }
}

@media (max-width: 640px) {
  .ghost-word { font-size: 4.2rem; }
}
.statement-title {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.9rem, 3vw + 1rem, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.statement-body {
  font-size: 1.125rem;
  color: var(--text-muted-on-dark);
  max-width: 58ch;
}

/* =========================================================
   Team
   ========================================================= */
.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}
.team-member { display: flex; flex-direction: column; }
.team-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-2);
  margin-bottom: 28px;
}
.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.team-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.team-bio {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 46ch;
  margin-bottom: 18px;
}
.team-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.team-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--line-on-light);
  padding: 5px 12px;
}

/* =========================================================
   Legal
   ========================================================= */
.legal { position: relative; overflow: hidden; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.legal-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-visual svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  color: var(--accent);
  opacity: 0.9;
}
.legal-inner { max-width: 560px; position: relative; }
.legal-body {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 16px;
}
.legal-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.8;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-visual { order: -1; }
  .legal-visual svg { max-width: 140px; }
}

/* =========================================================
   Final CTA
   ========================================================= */
.final-cta {
  text-align: left;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding-top: 80px;
  padding-bottom: 80px;
}
.final-cta-art {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  height: 460px;
  color: var(--line-on-dark);
  pointer-events: none;
}
.final-cta-inner { max-width: 760px; position: relative; }
.final-cta-title {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2rem, 3.6vw + 1rem, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.final-cta-sub {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  font-weight: 560;
  letter-spacing: -0.005em;
  color: var(--accent-bright);
  margin-bottom: 28px;
}
.final-cta-body {
  font-size: 1.0625rem;
  color: var(--text-muted-on-dark);
  margin-bottom: 40px;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.contact-copy {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 40ch;
  margin-bottom: 20px;
}
.contact-confidential {
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.contact-form { width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.form-field { margin-bottom: 24px; }
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-on-light);
  border-radius: 0;
  font-size: 1rem;
  color: var(--text-ink);
  transition: border-color var(--dur-fast) var(--ease);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form-footer { margin-top: 8px; }
.form-status {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.form-status.is-success { color: #0A7A3D; }
.form-status.is-error { color: #B3261E; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--text-muted-on-dark);
  padding: 72px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand img { margin-bottom: 14px; }
.footer-brand p { font-size: 0.875rem; }
.footer-address { margin-top: 14px; opacity: 0.75; line-height: 1.5; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 0.9375rem; transition: color var(--dur-fast) var(--ease); }
.footer-nav a:hover { color: var(--text-on-dark); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-contact a { font-size: 0.9375rem; transition: color var(--dur-fast) var(--ease); }
.footer-contact a:hover { color: var(--accent-bright); }
.footer-social { display: flex; gap: 12px; margin-top: 6px; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-on-dark);
  color: var(--text-muted-on-dark);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer-social-link svg { width: 18px; height: 18px; }
.footer-social-link:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.footer-bottom { padding: 24px 0; font-size: 0.8125rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .hero { padding-top: 148px; }
  .gap-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .team-list { grid-template-columns: 1fr; max-width: 420px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .final-cta-art { display: none; }
  .hero { padding-top: 128px; }
  .hero-copy { max-width: 100%; }
  .hero-overlay {
    background:
      linear-gradient(180deg, var(--ink) 0%, rgba(10, 14, 26, 0.9) 18%, rgba(10, 14, 26, 0.86) 55%, rgba(10, 14, 26, 0.72) 100%);
  }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .gap-compare-head span, .gap-compare-row span { font-size: 0.85rem; }
  .service-row { grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-contact { margin-top: 4px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .btn { width: 100%; }
  .hero-actions .text-link { text-align: center; }
}

@media (max-width: 420px) {
  :root { --gutter: 20px; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Blog — merged from blog.css (single stylesheet for one request)
   ========================================================= */
/* =========================================================
   Blog — Insights
   Extends the design tokens defined in style.css
   ========================================================= */

.main-nav a.is-active { color: var(--text-on-dark); }
.main-nav a.is-active::after { right: 0; }

/* ---------- Blog hero ---------- */
.blog-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 168px 0 64px;
}
.blog-hero-title {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: 22px;
}
.blog-hero-lede {
  font-size: 1.0625rem;
  color: var(--text-muted-on-dark);
  max-width: 52ch;
}

/* ---------- Category filters ---------- */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 32px;
  padding-bottom: 32px;
  background: var(--ink);
  border-bottom: 1px solid var(--line-on-dark);
}
.filter-chip {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--line-on-dark);
  color: var(--text-muted-on-dark);
  border-radius: 999px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--accent-bright); color: var(--text-on-dark); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Post tag ---------- */
.post-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------- Post meta ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Featured post ---------- */
.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-on-light);
}
.featured-art {
  aspect-ratio: 3 / 2;
  background: var(--ink);
  overflow: hidden;
  order: 2;
}
.featured-art svg { width: 100%; height: 100%; color: var(--accent-bright); }
.featured-body { order: 1; }
.featured-body h2 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: clamp(1.4rem, 2vw + 0.8rem, 2rem);
  line-height: 1.2;
  letter-spacing: -0.008em;
  color: var(--text-ink);
  margin-bottom: 14px;
  max-width: 22ch;
}
.featured-body p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-bottom: 20px;
}

/* ---------- Post grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding: 56px 0;
}
.post-card { display: flex; flex-direction: column; }
.post-art {
  aspect-ratio: 3 / 2;
  background: var(--ink);
  overflow: hidden;
  margin-bottom: 20px;
}
.post-art svg { width: 100%; height: 100%; color: var(--accent-bright); }
.post-card h3 {
  font-family: var(--font-display);
  font-weight: 480;
  font-size: 1.1875rem;
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--text-ink);
  margin-bottom: 10px;
  transition: color var(--dur-fast) var(--ease);
}
.post-card:hover h3 { color: var(--accent); }
.post-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

/* Shared abstract art strokes */
.art-grid line, .art-grid-sm line { stroke: var(--line-on-dark); stroke-width: 1; }
.art-arc { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.art-node { fill: currentColor; }
.art-ring { fill: none; stroke: currentColor; stroke-width: 1.3; }
.art-ring-2 { opacity: 0.5; stroke-dasharray: 2 6; }
.art-line { stroke: var(--line-on-dark); stroke-width: 1.4; stroke-linecap: round; }
.art-line-thick { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.art-shield { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.art-check { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-doc { fill: none; stroke: var(--line-on-dark); stroke-width: 1.4; }

/* ---------- Blog CTA strip ---------- */
.blog-cta { padding: 88px 0; text-align: left; }
.blog-cta-inner { max-width: 640px; }
.blog-cta h2 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem);
  line-height: 1.25;
  margin-bottom: 16px;
}
.blog-cta p {
  color: var(--text-muted-on-dark);
  font-size: 1.0625rem;
  margin-bottom: 28px;
}

/* =========================================================
   Single post
   ========================================================= */
.post-header {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 168px 0 56px;
}
.post-header-inner { max-width: 760px; }
.post-back {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-on-dark);
  margin-bottom: 28px;
  transition: color var(--dur-fast) var(--ease);
}
.post-back:hover { color: var(--text-on-dark); }
.post-header h1 {
  font-family: var(--font-display);
  font-weight: 460;
  font-size: clamp(1.8rem, 3vw + 1rem, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.post-meta-lg { font-size: 0.875rem; color: var(--text-muted-on-dark); }

.post-cover {
  background: var(--ink);
  border-bottom: 1px solid var(--line-on-dark);
}
.post-cover svg { width: 100%; height: auto; display: block; color: var(--accent-bright); max-height: 360px; }
.post-cover img { width: 100%; height: 360px; object-fit: cover; display: block; }

.post-body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 72px);
  padding: 64px var(--gutter) 48px;
  align-items: start;
}
.post-body { max-width: 66ch; }
.post-lede {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-ink);
  margin-bottom: 28px;
}
.post-body p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.post-body strong { color: var(--text-ink); font-weight: 600; }
.post-body h2 {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.375rem;
  color: var(--text-ink);
  letter-spacing: -0.005em;
  margin: 40px 0 18px;
}
.post-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin: 32px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-ink);
  line-height: 1.5;
}
.post-disclaimer {
  font-size: 0.8125rem !important;
  color: var(--text-muted);
  opacity: 0.8;
  border-top: 1px solid var(--line-on-light);
  padding-top: 20px;
  margin-top: 8px;
}

.post-sidebar-card {
  border: 1px solid var(--line-on-light);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.post-sidebar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.post-sidebar-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.btn-block { display: flex; width: 100%; }

.post-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line-on-light);
  margin-top: 8px;
}
.post-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--ink-2);
}
.post-author-name { font-weight: 600; font-size: 0.9375rem; }
.post-author-role { font-size: 0.8125rem; color: var(--text-muted); }

.related-posts { padding-bottom: 96px; }
.blog-grid-related { padding-top: 24px; padding-bottom: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =========================================================
   Insights preview block (homepage)
   ========================================================= */
.insights-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.insights-cta { flex-shrink: 0; }
.home-insights-grid { padding: 0; margin-top: 8px; }

@media (max-width: 640px) {
  .insights-head { align-items: flex-start; }
  .insights-cta { width: 100%; justify-content: center; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-art { order: 1; }
  .featured-body { order: 2; }
  .blog-grid, .blog-grid-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body-layout { grid-template-columns: 1fr; }
  .post-sidebar-card { position: static; }
}

@media (max-width: 640px) {
  .blog-hero { padding-top: 128px; }
  .post-header { padding-top: 128px; }
  .blog-grid, .blog-grid-related { grid-template-columns: 1fr; }
  .blog-filters { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .post-body-layout { padding-left: var(--gutter); padding-right: var(--gutter); }
}
