/* ============================================================
   Sovereign — light edition
   Goldman-inspired: white space, hairline rules, restraint
   Type: Raleway · Accent: deep gold
   ============================================================ */

:root {
  --paper:       #ffffff;
  --paper-warm:  #ecf0f4;   /* cool off-white for alternating sections */
  --ink:         #14171c;
  --ink-soft:    #434a54;
  --muted:       #818790;
  --line:        #e6e9ed;   /* cool neutral hairline */
  --blue:        #4f93c4;
  --blue-soft:   #8fc1e0;

  --sans: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* turns the white-filled logo SVGs into near-black ink */
  --logo-dark: brightness(0) saturate(100%) invert(7%) sepia(8%)
               saturate(900%) hue-rotate(178deg) brightness(95%) contrast(92%);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}

.accent { color: var(--blue); }

.section-head { max-width: 680px; margin-bottom: 80px; }
.section-index {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 520px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 17px 36px;
  border: 1px solid transparent;
  transition: all 0.45s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(20, 23, 28, 0.25);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-lg { padding: 21px 46px; font-size: 0.8rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease),
              border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  padding: 16px 0;
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark {
  height: 52px;            /* bigger logo */
  width: auto;
  /* white over the dark hero by default; inked once header turns solid */
  filter: brightness(0) invert(1);
  transition: height 0.5s var(--ease), filter 0.5s var(--ease);
}
.site-header.scrolled .brand-mark { height: 42px; filter: var(--logo-dark); }
.brand-word {
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.5s var(--ease);
}
.site-header.scrolled .brand-word { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 44px; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.4s var(--ease);
}
.nav a:hover { color: #fff; }
.site-header.scrolled .nav a { color: var(--ink-soft); }
.site-header.scrolled .nav a:hover { color: var(--ink); }
.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 11px 26px;
  color: #fff !important;
  transition: all 0.4s var(--ease) !important;
}
.nav-cta:hover { border-color: #fff; background: #fff; color: var(--ink) !important; }
.site-header.scrolled .nav-cta { border-color: rgba(20, 23, 28, 0.22); color: var(--ink) !important; }
.site-header.scrolled .nav-cta:hover { border-color: var(--ink); background: var(--ink); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 28px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease),
              background 0.4s var(--ease);
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(3.7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.7px) rotate(-45deg); }

/* ---- Language switch ---- */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 3px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.4s var(--ease);
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; }
.lang-sep { color: rgba(255, 255, 255, 0.28); font-size: 0.78rem; }
.site-header.scrolled .lang-btn { color: var(--muted); }
.site-header.scrolled .lang-btn:hover,
.site-header.scrolled .lang-btn.active { color: var(--ink); }
.site-header.scrolled .lang-sep { color: var(--line); }

/* ============================================================
   Hero — video banner
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 96px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* dark tint so white text/logo stays legible over the office video */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,13,0.55) 0%, rgba(8,10,13,0.35) 35%, rgba(8,10,13,0.45) 65%, rgba(8,10,13,0.8) 100%),
    linear-gradient(90deg, rgba(8,10,13,0.6) 0%, rgba(8,10,13,0.15) 55%);
}
.hero-inner { max-width: 900px; position: relative; }
.hero .eyebrow { margin-bottom: 28px; color: var(--blue-soft); }
.hero-title {
  font-weight: 200;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  color: #ffffff;
}
.hero-sub {
  max-width: 520px;
  font-size: 1.12rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* hero buttons sit on a dark tint — invert them to read on white text */
.hero .btn-primary { background: #ffffff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--blue); color: #fff; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.hero .btn-ghost:hover { border-color: #fff; background: #fff; color: var(--ink); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.hero-scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* ============================================================
   Statement
   ============================================================ */
.statement { padding: 150px 0 130px; }
.statement-text {
  font-weight: 300;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 1040px;
}

/* ============================================================
   Metrics
   ============================================================ */
.metrics { padding: 0 0 140px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.metric {
  padding: 56px 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric-value {
  display: block;
  font-weight: 200;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.metric-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio { padding: 140px 0; background: var(--paper-warm); }
.portfolio-list { display: flex; flex-direction: column; }
.company {
  display: grid;
  grid-template-columns: 280px 1fr 190px;
  gap: 52px;
  align-items: center;
  padding: 58px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease);
}
.company:last-child { border-bottom: 1px solid var(--line); }
.company:hover { padding-left: 16px; }
.company-logo { height: 38px; display: flex; align-items: center; }
.company-logo img {
  height: 100%;
  width: auto;
  max-width: 230px;
  filter: var(--logo-dark);
}
.company-sector {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.company-desc { color: var(--ink-soft); font-weight: 300; max-width: 480px; }
.company-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
  font-size: 0.82rem;
  color: var(--muted);
}
.company-link {
  color: var(--ink);
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color 0.4s var(--ease);
}
.company-link:hover { color: var(--blue); }

/* ============================================================
   Approach
   ============================================================ */
.approach { padding: 150px 0; }
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px;
}
.approach-grid .section-head { margin-bottom: 0; }
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 52px;
}
.principle h3 {
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  position: relative;
  padding-top: 24px;
}
.principle h3::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 30px;
  height: 2px;
  background: var(--blue);
}
.principle p { color: var(--ink-soft); font-weight: 300; font-size: 0.98rem; }

/* ============================================================
   Firm
   ============================================================ */
.firm { padding: 150px 0; background: var(--paper-warm); }
.firm-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 90px;
}
.firm-inner .section-head { margin-bottom: 0; }
.firm-copy p {
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 28px;
}
.firm-copy p:last-child { color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  padding: 170px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact .eyebrow { margin-bottom: 28px; }
.contact-title {
  font-weight: 200;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.contact-sub {
  max-width: 480px;
  margin: 0 auto 46px;
  color: var(--ink-soft);
  font-weight: 300;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding: 90px 0 44px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-mark { height: 46px; margin-bottom: 24px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255, 255, 255, 0.55); max-width: 260px; font-weight: 300; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-head {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 6px;
}
.footer-col a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  font-weight: 300;
  transition: color 0.4s var(--ease);
}
.footer-col a:hover { color: var(--blue-soft); }
.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .approach-grid,
  .firm-inner { grid-template-columns: 1fr; gap: 56px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .company {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .company:hover { padding-left: 0; }
  .company-meta { flex-direction: row; gap: 28px; text-align: left; }
}

/* lock the page behind the open mobile menu */
body.menu-open { overflow: hidden; }

@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .brand-mark { height: 44px; }

  /* keep the logo + toggle above the overlay */
  .brand { position: relative; z-index: 111; }
  .nav-toggle { display: flex; z-index: 111; }

  /* full-screen overlay menu — fixed to the viewport, not the header,
     so it never depends on the header's blur/scroll state */
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 80px 32px;
    background: var(--paper);
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  }
  .nav.open { opacity: 1; visibility: visible; }

  /* panel is white — links always read dark, centered and larger.
     keep the fade ONLY on the base selector so it isn't overridden by
     the more-specific .site-header.scrolled .nav a rule */
  .nav a {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--ink);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .site-header.scrolled .nav a { color: var(--ink); }
  .nav.open a,
  .site-header.scrolled .nav.open a { opacity: 1; transform: none; }
  .nav.open a:nth-child(1) { transition-delay: 0.08s; }
  .nav.open a:nth-child(2) { transition-delay: 0.14s; }
  .nav.open a:nth-child(3) { transition-delay: 0.20s; }
  .nav.open a:nth-child(4) { transition-delay: 0.26s; }
  .nav-cta,
  .site-header.scrolled .nav-cta {
    margin-top: 8px;
    padding: 15px 40px;
    color: var(--ink) !important;
    border-color: rgba(20, 23, 28, 0.25);
  }

  /* language switch reads dark inside the white overlay */
  .lang-switch { margin-top: 18px; gap: 10px; }
  .lang-btn { font-size: 1.05rem; color: var(--muted); }
  .lang-btn.active,
  .lang-btn:hover,
  .site-header.scrolled .lang-btn.active { color: var(--ink); }
  .lang-sep,
  .site-header.scrolled .lang-sep { color: var(--muted); font-size: 1.05rem; }

  /* while the menu is open the bar sits on white — ink the brand + toggle */
  body.menu-open .brand-mark { filter: var(--logo-dark); }
  body.menu-open .brand-word { color: var(--ink); }
  body.menu-open .nav-toggle span { background: var(--ink); }

  /* solid header on mobile (no backdrop-filter — it would trap the
     fixed overlay as a containing block and break it on scroll) */
  .site-header.scrolled { background: #fff; backdrop-filter: none; }

  .hero { align-items: center; padding-top: 120px; }
  .hero-scroll { display: none; }
  .principles { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 10px; }
  .statement, .portfolio, .approach, .firm { padding: 100px 0; }
}

@media (max-width: 460px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .brand-word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Mobile hardening
   ============================================================ */
html, body { max-width: 100%; }
img, video { max-width: 100%; }

/* use small-viewport units where supported so mobile browser
   chrome doesn't crop the hero */
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}

@media (max-width: 720px) {
  .hero-title { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .hero-sub { font-size: 1rem; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .section-head { margin-bottom: 48px; }
  .metric { padding: 40px 28px; }
  .company-meta { flex-wrap: wrap; }
}

/* avoid sticky :hover states getting stuck on touch devices */
@media (hover: none) {
  .company:hover { padding-left: 0; }
  .btn-primary:hover { transform: none; }
}

/* ============================================================
   Sub-page: page hero (dark band so the white header reads)
   ============================================================ */
.page-hero {
  position: relative;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(79,147,196,0.18), transparent 55%),
    var(--ink);
  color: #fff;
  padding: 210px 0 110px;
}
.page-hero .container { position: relative; }
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 30px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color .4s var(--ease); }
.breadcrumb a:hover { color: #fff; }
.page-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-soft);
  font-weight: 600;
  display: block;
  margin-bottom: 24px;
}
.page-title {
  font-weight: 200;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.page-lead {
  margin-top: 28px;
  max-width: 560px;
  font-size: 1.12rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
}

/* generic light section on sub-pages */
.section { padding: 130px 0; }
.section.warm { background: var(--paper-warm); }
.section.tight { padding: 90px 0; }

/* ============================================================
   Team grid
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.member-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(79,147,196,0.16), transparent 60%),
    var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.member-photo span {
  font-weight: 200;
  font-size: 3.2rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.member-name { font-size: 1.18rem; font-weight: 500; margin-bottom: 6px; }
.member-role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.member-bio { color: var(--ink-soft); font-weight: 300; font-size: 0.95rem; }

/* ============================================================
   Timeline
   ============================================================ */
.timeline { border-top: 1px solid var(--line); }
.milestone {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.milestone-year {
  font-weight: 200;
  font-size: 2.2rem;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.milestone-body h3 { font-weight: 500; font-size: 1.25rem; margin-bottom: 10px; }
.milestone-body p { color: var(--ink-soft); font-weight: 300; max-width: 620px; }

/* ============================================================
   Offices
   ============================================================ */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.offices-grid--single { grid-template-columns: 1fr; max-width: 480px; }
.office {
  padding: 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.office h3 { font-weight: 500; font-size: 1.3rem; margin-bottom: 14px; }
.office p { color: var(--ink-soft); font-weight: 300; font-size: 0.95rem; }
.office .office-tag {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ============================================================
   Company detail (portfolio page)
   ============================================================ */
.company-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.company-detail:nth-child(even) .company-card-visual { order: 2; }
.company-card-visual {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(79,147,196,0.14), transparent 55%),
    var(--paper-warm);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.company-card-visual img { max-height: 64px; width: auto; filter: var(--logo-dark); }
.company-detail .company-sector { margin-bottom: 20px; }
.company-detail h2 {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.company-detail p { color: var(--ink-soft); font-weight: 300; margin-bottom: 28px; max-width: 520px; }
.stat-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-row .stat-value {
  display: block;
  font-weight: 200;
  font-size: 2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-row .stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   Insights / articles
   ============================================================ */
.articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.article-card {
  background: var(--paper);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background 0.45s var(--ease);
}
.article-card:hover { background: var(--paper-warm); }
.article-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
.article-title {
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.article-excerpt { color: var(--ink-soft); font-weight: 300; font-size: 0.95rem; }
.article-card .article-more {
  margin-top: auto;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink);
}
.article-card:hover .article-more { color: var(--blue); }

.feature-article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 90px;
  margin-bottom: 90px;
  border-bottom: 1px solid var(--line);
}
.feature-visual {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(79,147,196,0.18), transparent 55%),
    var(--ink);
}
.feature-article h2 {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 18px 0 20px;
}
.feature-article p { color: var(--ink-soft); font-weight: 300; margin-bottom: 26px; max-width: 520px; }

/* ============================================================
   Blog article (single post)
   ============================================================ */
.blog-body { max-width: 720px; margin: 0 auto; }
.blog-body > * + * { margin-top: 28px; }
.blog-body p { color: var(--ink-soft); font-weight: 300; font-size: 1.08rem; line-height: 1.8; }
.blog-lede { font-size: 1.28rem; color: var(--ink); line-height: 1.7; font-weight: 300; }
.blog-body h2 {
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 64px;
}
.blog-body h2 + p { margin-top: 18px; }
.blog-body ul { padding-left: 1.15em; color: var(--ink-soft); font-weight: 300; font-size: 1.08rem; }
.blog-body li { margin-top: 12px; line-height: 1.7; }
.blog-body li::marker { color: var(--blue); }
.blog-body strong { font-weight: 600; color: var(--ink); }
.blog-body blockquote {
  border-left: 2px solid var(--blue);
  padding-left: 28px;
  margin: 52px 0;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* author byline (sits in the dark hero) */
.blog-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.blog-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 9px;
  flex-shrink: 0;
}
.blog-byline-name { font-weight: 600; font-size: 0.95rem; color: #fff; }
.blog-byline-meta { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 300; }

/* cover image bridging the hero and the article */
.blog-cover {
  max-width: 960px;
  margin: 0 auto 76px;
}
.blog-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* inline figures inside the prose */
.blog-figure { margin-top: 48px; }
.blog-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.blog-figure figcaption,
.blog-cover figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.5;
}

/* tag chips */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 60px;
}
.blog-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 7px 15px;
  border-radius: 999px;
}

.blog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.blog-foot .article-meta { margin: 0; }
.article-back {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--blue);
  transition: opacity 0.3s var(--ease);
}
.article-back:hover { opacity: 0.65; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.contact-aside h2 {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.contact-aside p { color: var(--ink-soft); font-weight: 300; margin-bottom: 34px; max-width: 420px; }
.contact-detail { margin-bottom: 26px; }
.contact-detail .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-detail a, .contact-detail span { color: var(--ink); font-weight: 300; }

.form-field { margin-bottom: 26px; }
.form-field label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.4s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-note { font-size: 0.82rem; color: var(--muted); font-weight: 300; margin-top: 18px; }
.btn-submit { border: none; cursor: pointer; }

/* ---------- Sub-page responsive ---------- */
@media (max-width: 980px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .offices-grid { grid-template-columns: 1fr; }
  .company-detail { grid-template-columns: 1fr; gap: 36px; padding: 64px 0; }
  .company-detail:nth-child(even) .company-card-visual { order: 0; }
  .articles { grid-template-columns: 1fr 1fr; }
  .feature-article { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 720px) {
  .page-hero { padding: 160px 0 80px; }
  .section { padding: 90px 0; }
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .milestone { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
  .milestone-year { font-size: 1.8rem; }
  .articles { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stat-row { gap: 28px; }
}
