@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink:     #000000;
  --ink2:    #0a0a0a;
  --ink3:    #141414;
  --white:   #ffffff;
  --off:     #f5f5f7;
  --stone:   #ebebed;
  --border:  #e4e1dc;
  --border2: #d0cdc8;
  --text:    #0a0a0a;
  --text2:   #3a3a3a;
  --muted:   #7a7a7a;

  --red:     #e63946;
  --red2:    #c8303d;
  --gold:    #f4a020;
  --gold2:   #d98a12;

  --teal:    #3ab5b0;
  --orange:  #e8722a;
  --coral:   #d94f3d;
  --tan:     #c4a96d;
  --olive:   #7a8070;

  --spectrum: linear-gradient(90deg, #6b7278 0%, #3ab5b0 18%, #7a8070 38%, #e8722a 58%, #d97055 78%, #d94f3d 100%);

  --ff:    'Outfit', system-ui, sans-serif;
  --ff-mono: 'Space Mono', monospace;

  --r:     4px;
  --r-lg:  8px;
  --sh:    0 2px 8px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --sh-lg: 0 8px 16px rgba(0,0,0,.06), 0 24px 64px rgba(0,0,0,.12);

  --nav-h: 70px;
  --max:   1440px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: var(--ff);
  background: var(--ink);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
video, iframe { max-width: 100%; }
::selection { background: var(--red); color: #fff; }

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 48px;
  overflow: hidden;
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.6); }
.nav-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: .95rem;
  font-weight: 400;
  color: var(--white);
  border-radius: 100px;
  transition: background .25s, color .25s;
  min-width: 40px;
}
.nav-links a:hover { background: rgba(255,255,255,.08); }
.nav-links a.active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 28px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  position: relative;
  z-index: 2;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ═══ TYPOGRAPHY ═══ */
.eyebrow-mono {
  display: inline-block;
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
}
.eyebrow-mono.dark { color: var(--ink); }

.display-xl {
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--white);
}
.display-xl.dark { color: var(--ink); }

.display-lg {
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--white);
}
.display-lg.dark { color: var(--ink); }

.display-md {
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--white);
}
.display-md.dark { color: var(--ink); }

.body-xl { font-size: 1.15rem; line-height: 1.65; font-weight: 400; }
.body-md { font-size: 1rem; line-height: 1.7; font-weight: 400; }
.body-sm { font-size: .9rem; line-height: 1.7; font-weight: 400; }

.t-red  { color: var(--red); }
.t-gold { color: var(--gold); }
.t-teal { color: var(--teal); }

/* ═══ READ MORE ═══ */
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 320px;
  max-width: 100%;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.4);
  font-family: var(--ff-mono);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  transition: border-color .3s, color .3s, gap .3s;
}
.read-more.dark {
  border-bottom-color: rgba(0,0,0,.5);
  color: var(--ink);
}
.read-more:hover { gap: 24px; border-bottom-color: var(--white); }
.read-more.dark:hover { border-bottom-color: var(--ink); }
.read-more .arr { font-size: 1.15rem; transition: transform .3s; }
.read-more:hover .arr { transform: translateX(4px); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
}
.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }

/* ═══ REVEAL ═══ */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.rv.d1 { transition-delay: .12s; }
.rv.d2 { transition-delay: .24s; }
.rv.d3 { transition-delay: .36s; }
.rv.show { opacity: 1; transform: translateY(0); }

/* ═══ FOOTER ═══ */
.footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
.footer-spectrum { height: 3px; background: var(--spectrum); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 72px 48px 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo img { height: auto; width: 100%; max-width: 340px; object-fit: contain; margin-bottom: 24px; display: block; }
.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 320px;
}

/* ═══ CLIENTS / PARTNERS SECTION ═══ */
.clients {
  background: var(--white);
  padding: 120px 0 140px;
  border-top: 1px solid var(--border);
}
.clients-inner { max-width: var(--max); margin: 0 auto; padding: 0 64px; }
.clients-head {
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 820px;
}
.clients-head em { font-style: italic; font-weight: 400; color: var(--gold); }
.clients-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: 72px;
  max-width: 640px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.client-card {
  aspect-ratio: 16 / 10;
  background: var(--white);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #2a2a2a;
  transition: background .3s, color .3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.client-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 100%);
  opacity: 0;
  transition: opacity .4s;
}
.client-card:hover { color: var(--white); }
.client-card:hover::before { opacity: 1; }
.client-card img,
.client-card svg {
  max-width: 76%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: grayscale(100%);
  opacity: .65;
  transition: filter .35s, opacity .35s, transform .35s;
}
.client-card:hover img,
.client-card:hover svg {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}
.client-card .visit {
  position: absolute;
  bottom: 18px; right: 24px;
  font-family: var(--ff-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s, transform .3s;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.client-card:hover .visit { opacity: .85; transform: translateX(0); }
@media (max-width: 1024px) {
  .clients-inner { padding: 0 40px; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .clients { padding: 72px 0 80px; }
  .clients-inner { padding: 0 24px; }
  .clients-grid { grid-template-columns: 1fr; }
  .clients-sub { margin-bottom: 48px; }
  .client-card { aspect-ratio: 2 / 1; padding: 32px; }
  /* Mobile fix — let read-more shrink to fit narrow screens */
  .read-more { min-width: 0; width: 100%; }
  /* Make sure no nav element pushes the page wider than the viewport */
  .nav { padding: 0 24px; }
  /* Global safety net — no element should exceed viewport width on mobile */
  section, .hero1-inner, .partners-inner, .clients-inner, .about-cta-inner,
  .story-inner, .leadership-inner, .values-inner, .about-hero-inner,
  .footer-inner, .vision-inner, .services-inner {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  /* Constrain images to viewport width but DO NOT override their explicit heights
     (the nav-logo, for example, needs height: 52px to stay small) */
  section img, section video, .footer img,
  .partner-card img, .client-card img, .team-img img {
    max-width: 100%;
  }
}
.footer-col h5 {
  font-family: var(--ff-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy {
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  letter-spacing: .06em;
}
.footer-socials { display: flex; gap: 10px; }
.footer-soc {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.5);
  transition: all .2s;
}
.footer-soc:hover { color: var(--white); border-color: var(--white); }
.footer-soc svg { width: 14px; height: 14px; fill: currentColor; }

@media (max-width: 1024px) {
  .nav { padding: 0 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-inner { padding: 48px 28px 24px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; height: 60px; }
  :root { --nav-h: 60px; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--ink); border-top: 1px solid rgba(255,255,255,.1);
    flex-direction: column; gap: 0; padding: 16px 20px;
    transform: none;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links a.active {
    width: 100%; padding: 16px; justify-content: flex-start;
    border-radius: var(--r);
    font-size: 1rem;
  }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══ Global paragraph justification ═══
   Justify body-copy paragraphs across the site for a cleaner block-text feel.
   Selectors target body paragraphs explicitly to avoid justifying:
   - eyebrow labels (.eyebrow-mono, .ct-info-label)
   - titles / headings
   - compact UI text (nav, footer columns, social links, team role/title labels)
   - short single-line addresses, tags, buttons
   Also sets word-break and hyphens to keep justification looking natural and
   prevent ugly gaps on narrow columns. */
.intro-text,
.story-body p,
.team-bio,
.val p,
.psec-desc,
.clients-sub,
.pd-section p,
.pd-feature p,
.pd-hero-sub,
.footer-brand p,
.pd-body,
.pd-body p,
.about-cta p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
