/* ==========================================================================
   Emigo Solutions — Design System
   Implements DESIGN-hp.md: HP-inspired enterprise system.
   One signal color (Electric Blue), ink headlines, Inter (Forma DJR Micro
   substitute), 16px cards / 4px buttons, dark-navy closing slabs, chevrons.
   ========================================================================== */

/* ---- Tokens --------------------------------------------------------------- */
:root {
  /* Brand & accent */
  --primary:        #024ad8;
  --primary-bright: #296ef9;
  --primary-deep:   #0e3191;
  --primary-soft:   #c9e0fc;
  --on-primary:     #ffffff;

  /* Ink */
  --ink:      #1a1a1a;
  --ink-deep: #000000;
  --ink-soft: #292929;
  --on-ink:   #ffffff;

  /* Surface */
  --canvas:         #ffffff;
  --paper:          #ffffff;
  --cloud:          #f7f7f7;
  --fog:            #e8e8e8;
  --steel:          #c2c2c2;
  --graphite:       #636363;
  --charcoal:       #3d3d3d;
  --hairline:       #e8e8e8;
  --hairline-strong:#c2c2c2;

  /* Accent / semantic */
  --coral: #ff5050;
  --link:  #024ad8;
  --error: #b3262b;

  /* Radius */
  --r-xs:2px; --r-sm:3px; --r-md:4px; --r-lg:8px; --r-xl:16px; --r-pill:9999px;

  /* Spacing (8px base) */
  --s-xxs:4px; --s-xs:8px; --s-sm:12px; --s-md:16px; --s-lg:20px;
  --s-xl:24px; --s-xxl:32px; --s-section:80px;

  /* Elevation */
  --lift:  0 2px 8px rgba(26,26,26,.08);
  --float: 0 8px 24px rgba(26,26,26,.12);

  --maxw: 1366px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- Typography ----------------------------------------------------------- */
/* Display headlines: weight 500, line-height 1.0 (the HP rule — no bump at hero scale) */
.display-xxl { font-size: clamp(40px, 6.2vw, 72px); font-weight: 500; line-height: 1.02; letter-spacing: -0.5px; }
.display-xl  { font-size: clamp(34px, 5vw, 56px);   font-weight: 500; line-height: 1.04; letter-spacing: -0.4px; }
.display-lg  { font-size: clamp(30px, 4vw, 44px);   font-weight: 500; line-height: 1.06; letter-spacing: -0.3px; }
.display-md  { font-size: clamp(26px, 3vw, 32px);   font-weight: 500; line-height: 1.1;  letter-spacing: -0.2px; }
.display-sm  { font-size: 24px; font-weight: 500; line-height: 1.17; }
.display-xs  { font-size: 20px; font-weight: 500; line-height: 1.2; }

.body-lg  { font-size: 18px; font-weight: 400; line-height: 1.5; }
.body-md  { font-size: 16px; font-weight: 400; line-height: 1.5; }
.body-emphasis { font-size: 16px; font-weight: 500; line-height: 1.5; }
.caption-md { font-size: 14px; font-weight: 400; line-height: 1.5; }
.caption-sm { font-size: 12px; font-weight: 400; line-height: 1.4; }

/* Eyebrow / section kicker */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--primary);
  display: inline-block; margin-bottom: var(--s-md);
}
.eyebrow.on-dark { color: var(--primary-bright); }

.text-muted  { color: var(--charcoal); }
.text-fine   { color: var(--graphite); }

/* ---- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-xxl); }
.section   { padding-block: var(--s-section); }
.section--tight { padding-block: 56px; }
.bg-canvas { background: var(--canvas); }
.bg-cloud  { background: var(--cloud); }
.bg-fog    { background: var(--fog); }
.bg-ink    { background: var(--ink); color: var(--on-ink); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--s-md); color: var(--charcoal); }
.bg-ink .section-head p { color: #c9c9c9; }

.grid { display: grid; gap: var(--s-xl); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons -------------------------------------------------------------- */
/* Sharp 4px radius, uppercase, 0.7px tracking, 44px height */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase;
  line-height: 1; white-space: nowrap; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

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

.btn-ink { background: var(--ink); color: var(--on-primary); }
.btn-ink:hover { background: #000; color: var(--on-primary); }

.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--on-primary); }

.btn-outline-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--on-primary); }

/* On dark slabs */
.btn-on-dark { background: var(--canvas); color: var(--ink); }
.btn-on-dark:hover { background: var(--primary-soft); color: var(--ink); }
.btn-outline-on-dark { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.btn-outline-on-dark:hover { background: rgba(255,255,255,.1); color: var(--on-ink); }

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 500; color: var(--primary);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Utility strip -------------------------------------------------------- */
.utility-strip {
  background: var(--ink); color: var(--on-ink);
  font-size: 13px; line-height: 36px; height: 36px;
}
.utility-strip .container { display: flex; align-items: center; justify-content: space-between; }
.utility-strip a { color: #d4d4d4; }
.utility-strip a:hover { color: #fff; }
.utility-left { display: inline-flex; align-items: center; gap: 8px; color: #d4d4d4; }
.utility-left svg { width: 14px; height: 14px; }
.utility-right { display: inline-flex; align-items: center; gap: var(--s-lg); }
.utility-right .sep { color: #555; }

/* ---- Top nav -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .2s ease;
}
.nav.scrolled { box-shadow: 0 2px 12px rgba(26,26,26,.07); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.3px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--primary); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-sm);
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: var(--s-md); }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 60; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  background: var(--canvas); z-index: 70; padding: var(--s-xl);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-lg); }
.drawer-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.drawer-close svg { width: 24px; height: 24px; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font-size: 18px; font-weight: 500; color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--hairline); }
.drawer nav a:hover { color: var(--primary); text-decoration: none; }
.drawer .btn { margin-top: var(--s-xl); }

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; background: var(--canvas); overflow: hidden; padding-block: 72px 88px; }
/* Chevron decorations — sharp blue slashes echoing the brand mark */
.chevron { position: absolute; top: 0; bottom: 0; width: 240px; pointer-events: none; z-index: 0; }
.chevron::before, .chevron::after { content: ''; position: absolute; top: -10%; height: 120%; width: 46px; }
.chevron-left { left: -60px; }
.chevron-left::before  { left: 70px;  background: var(--primary);      transform: skewX(-18deg); opacity: .9; }
.chevron-left::after   { left: 130px; background: var(--primary-soft); transform: skewX(-18deg); opacity: .7; }
.chevron-right { right: -60px; }
.chevron-right::before  { right: 70px;  background: var(--primary);      transform: skewX(-18deg); opacity: .12; }
.chevron-right::after   { right: 130px; background: var(--primary-soft); transform: skewX(-18deg); opacity: .5; }

.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy .display-xxl { color: var(--ink); margin-bottom: var(--s-lg); }
.hero-copy .lead { color: var(--charcoal); font-size: 19px; line-height: 1.55; max-width: 38ch; margin-bottom: var(--s-xl); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-md); margin-bottom: var(--s-xl); }
.hero-trust { display: flex; align-items: center; gap: var(--s-lg); color: var(--graphite); font-size: 13px; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--steel); }

.hero-figure { position: relative; }
.hero-figure img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--float); aspect-ratio: 4/5; object-fit: cover; }
.hero-badge {
  position: absolute; left: -22px; bottom: 28px; background: var(--canvas);
  border-radius: var(--r-xl); box-shadow: var(--lift); padding: 18px 22px;
  border: 1px solid var(--hairline); display: flex; align-items: center; gap: 14px;
}
.hero-badge .val { font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1; }
.hero-badge .lbl { font-size: 13px; color: var(--graphite); margin-top: 4px; }
.hero-badge .icn { width: 46px; height: 46px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; }
.hero-badge .icn svg { width: 24px; height: 24px; }

/* ---- Stats ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-xl); }
.stat { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: var(--s-xl); box-shadow: var(--lift); }
.stat .num { font-size: 44px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -1px; }
.stat .num b { color: var(--primary); font-weight: 600; }
.stat .lbl { margin-top: var(--s-sm); color: var(--charcoal); font-size: 15px; font-weight: 500; }

/* ---- Split (about) -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--float); aspect-ratio: 4/3; object-fit: cover; }
.split-copy p { color: var(--charcoal); margin-top: var(--s-md); }
.split-copy p.lead { color: var(--ink); font-size: 19px; }
.split-copy .btn { margin-top: var(--s-xl); }
.split-figure { position: relative; }
.split-figure .accent { position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--primary-soft); border-radius: var(--r-xl); z-index: -1; }

/* ---- Feature cards (approach) -------------------------------------------- */
.feature-card {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: var(--s-xl); box-shadow: var(--lift); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); transform: scaleY(0); transform-origin: top; transition: transform .25s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--float); }
.feature-card:hover::before { transform: scaleY(1); }
.feature-icon { width: 52px; height: 52px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; margin-bottom: var(--s-lg); }
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 20px; font-weight: 500; margin-bottom: var(--s-xs); }
.feature-card p { color: var(--charcoal); font-size: 15px; line-height: 1.5; }

/* ---- Capital band (dark slab) -------------------------------------------- */
.slab { background: var(--ink); color: var(--on-ink); border-radius: var(--r-xl); padding: 56px; position: relative; overflow: hidden; }
.slab-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.slab h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.1; margin-bottom: var(--s-md); }
.slab p { color: #c9c9c9; max-width: 52ch; margin-bottom: var(--s-xl); }
.slab .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
.slab .metric .v { font-size: 40px; font-weight: 600; color: #fff; line-height: 1; }
.slab .metric .v b { color: var(--primary-bright); font-weight: 600; }
.slab .metric .k { color: #b3b3b3; font-size: 14px; margin-top: 6px; }
.slab-chevron { position: absolute; right: -40px; top: -20px; bottom: -20px; width: 200px; opacity: .5; }
.slab-chevron::before, .slab-chevron::after { content:''; position:absolute; top:0; height:100%; width:40px; background: var(--primary); transform: skewX(-18deg); }
.slab-chevron::before { right: 60px; opacity:.25; }
.slab-chevron::after { right: 110px; opacity:.5; background: var(--primary-bright); }

/* ---- Portfolio ------------------------------------------------------------ */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); }
.pf-card {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: var(--s-xxl); box-shadow: var(--lift); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--float); }
.pf-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--s-lg); }
.pf-icon { width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; }
.pf-icon svg { width: 28px; height: 28px; }
.pf-own { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--ink); background: var(--cloud); border: 1px solid var(--hairline); padding: 6px 12px; border-radius: var(--r-pill); }
.pf-sector { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.pf-card h3 { font-size: 24px; font-weight: 500; margin-bottom: var(--s-sm); }
.pf-card p { color: var(--charcoal); font-size: 15px; line-height: 1.5; margin-bottom: var(--s-md); }
.pf-metrics { display: flex; gap: var(--s-xl); padding: var(--s-md) 0; margin-top: auto; border-top: 1px solid var(--hairline); }
.pf-metric .v { font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1; }
.pf-metric .v b { color: var(--primary); }
.pf-metric .k { font-size: 12px; color: var(--graphite); margin-top: 4px; }
.pf-card .link-arrow { margin-top: var(--s-md); }

/* ---- Leadership ----------------------------------------------------------- */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xl); max-width: 980px; margin-inline: auto; }
.leader { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl); box-shadow: var(--lift); overflow: hidden; display: grid; grid-template-columns: 160px 1fr; }
.leader-photo { background: var(--cloud); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.leader-body { padding: var(--s-xl); }
.leader-body h3 { font-size: 20px; font-weight: 500; }
.leader-role { color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; margin: 4px 0 14px; }
.leader-body p { color: var(--charcoal); font-size: 14px; line-height: 1.5; }
.leader-quote { margin-top: var(--s-md); padding-left: var(--s-md); border-left: 3px solid var(--primary-soft); color: var(--ink); font-style: italic; font-size: 14px; }
.leader-social { display: flex; gap: 10px; margin-top: var(--s-md); }
.leader-social a { width: 34px; height: 34px; border-radius: var(--r-md); display: grid; place-items: center; color: var(--graphite); border: 1px solid var(--hairline); }
.leader-social a:hover { color: var(--primary); border-color: var(--primary); }
.leader-social svg { width: 16px; height: 16px; }

/* ---- Timeline ------------------------------------------------------------- */
.timeline { position: relative; max-width: 920px; margin-inline: auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: var(--hairline-strong); transform: translateX(-50%); }
.tl-row { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; margin-bottom: var(--s-xxl); }
.tl-row:last-child { margin-bottom: 0; }
.tl-year { font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: -0.5px; }
.tl-node { display: grid; place-items: center; position: relative; z-index: 1; }
.tl-node span { width: 54px; height: 54px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--primary); color: var(--primary); display: grid; place-items: center; box-shadow: var(--lift); }
.tl-node svg { width: 24px; height: 24px; }
.tl-desc { color: var(--charcoal); font-size: 15px; line-height: 1.5; }
.tl-row:nth-child(odd)  .tl-year { text-align: right; padding-right: var(--s-xl); }
.tl-row:nth-child(odd)  .tl-desc { padding-left: var(--s-xl); }
.tl-row:nth-child(even) .tl-year { order: 3; padding-left: var(--s-xl); }
.tl-row:nth-child(even) .tl-desc { order: 1; text-align: right; padding-right: var(--s-xl); }
.tl-row:nth-child(even) .tl-node { order: 2; }

/* ---- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.contact-list { display: grid; gap: var(--s-lg); margin-top: var(--s-xl); }
.contact-item { display: flex; gap: var(--s-md); }
.contact-item .ic { width: 48px; height: 48px; flex: none; border-radius: var(--r-lg); background: var(--primary-soft); color: var(--primary-deep); display: grid; place-items: center; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.contact-item p { color: var(--charcoal); font-size: 14px; line-height: 1.55; }
.contact-item a { color: var(--charcoal); }
.contact-item a:hover { color: var(--primary); }
.contact-actions { display: flex; gap: var(--s-md); margin-top: var(--s-xl); flex-wrap: wrap; }
.contact-map { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--lift); border: 1px solid var(--hairline); min-height: 460px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.map-facade {
  height: 100%; min-height: 460px; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(2,74,216,.06), transparent 60%),
    repeating-linear-gradient(0deg, var(--cloud), var(--cloud) 23px, var(--fog) 24px),
    repeating-linear-gradient(90deg, var(--cloud), var(--cloud) 23px, var(--fog) 24px);
  padding: var(--s-xl);
}
.map-facade-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--float); margin-bottom: var(--s-sm); }
.map-pin svg { width: 30px; height: 30px; }
.map-title { font-size: 18px; font-weight: 600; color: var(--ink); }
.map-sub { font-size: 14px; color: var(--graphite); margin-bottom: var(--s-md); }
.map-facade .btn { margin-top: var(--s-xs); }
.map-external { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; margin-top: var(--s-sm); }
.map-external svg { width: 14px; height: 14px; }

/* ---- Help band (closing dark slab) --------------------------------------- */
.help-band { background: var(--ink); color: var(--on-ink); text-align: center; padding-block: 72px; }
.help-band h2 { color: #fff; margin-bottom: var(--s-sm); }
.help-band p { color: #c9c9c9; max-width: 56ch; margin: 0 auto var(--s-xl); }
.help-chips { display: flex; flex-wrap: wrap; gap: var(--s-md); justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border-radius: var(--r-pill); background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.16); font-weight: 500; font-size: 15px;
  transition: background .18s ease, border-color .18s ease;
}
.chip:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); text-decoration: none; color: #fff; }
.chip svg { width: 18px; height: 18px; }

/* ---- Footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-ink); padding-block: 64px 28px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
.footer .brand { color: #fff; margin-bottom: var(--s-md); }
.footer-about { color: #b3b3b3; font-size: 14px; line-height: 1.6; max-width: 38ch; }
.footer h5 { font-size: 14px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: #fff; margin-bottom: var(--s-md); }
.footer-links a, .footer-links span { color: #b3b3b3; font-size: 14px; display: block; padding: 5px 0; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-contact li { display: flex; gap: 10px; color: #b3b3b3; font-size: 14px; padding: 5px 0; }
.footer-contact svg { width: 16px; height: 16px; color: var(--primary-bright); flex: none; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: var(--s-lg); }
.footer-social a { width: 38px; height: 38px; border-radius: var(--r-md); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-md); margin-top: 48px; padding-top: var(--s-lg); border-top: 1px solid rgba(255,255,255,.1); color: #8a8a8a; font-size: 13px; }
.footer-bottom a { color: #8a8a8a; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: var(--s-lg); }

/* ---- Back to top ---------------------------------------------------------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; z-index: 40;
  background: var(--primary); color: #fff; border-radius: var(--r-md); display: grid; place-items: center;
  box-shadow: var(--float); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .18s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-deep); }
.to-top svg { width: 22px; height: 22px; }

/* ---- Scroll reveal (progressive enhancement) ------------------------------
   Content is visible by default. The hidden start-state applies ONLY when JS
   is active (html.js), so the page is never blank if JS/observer fails. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --s-section: 64px; }
  .nav-links, .utility-strip { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 460px; }
  .hero-figure img { aspect-ratio: 16/12; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-media { order: -1; }
  .split-figure .accent { display: none; }
  .slab-grid { grid-template-columns: 1fr; gap: 32px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .leaders { grid-template-columns: 1fr; max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --s-section: 56px; }
  .container { padding-inline: var(--s-md); }
  .chevron { display: none; }
  .nav-right .btn-primary { display: none; } /* CTA lives in the drawer on small screens */
  .hero { padding-block: 48px 56px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { left: 12px; bottom: 12px; padding: 12px 16px; }
  .hero-badge .val { font-size: 22px; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--s-md); }
  .stat { padding: var(--s-lg); }
  .stat .num { font-size: 34px; }
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .slab { padding: 32px 24px; }
  .slab .metrics { grid-template-columns: 1fr 1fr; }
  .pf-card { padding: var(--s-xl); }
  .leader { grid-template-columns: 1fr; }
  .leader-photo { height: 220px; }
  .leader-photo img { aspect-ratio: 16/9; }
  /* Timeline collapses to a single left rail */
  .timeline::before { left: 26px; }
  .tl-row { grid-template-columns: 54px 1fr; gap: var(--s-md); margin-bottom: var(--s-xl); }
  .tl-node { order: 0 !important; }
  .tl-year, .tl-desc { text-align: left !important; padding: 0 !important; }
  .tl-year { order: 1 !important; font-size: 26px; }
  .tl-desc { order: 2 !important; grid-column: 2; }
  .tl-row:nth-child(even) .tl-year, .tl-row:nth-child(even) .tl-desc { text-align: left !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
