/* ============================================================
   SPACE SPECTRUM LIMITED — DESIGN SYSTEM
   Brand: Red #C0392B · White #FEFEFE · Ash #F0EEEB · Charcoal #2C2C2B
   Font: IBM Plex Sans (body) + IBM Plex Serif (accent)
   Grid: 12-column, max 1280px
   ============================================================ */

/* ── RESET & TOKENS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --red:         #E8005A;
  --red-dark:    #B8004A;
  --red-light:   #FF3380;
  --red-pale:    #FFE6F0;
  --ash:         #F0EEEB;
  --ash-mid:     #DDD9D4;
  --ash-deep:    #B0AAA3;
  --charcoal:    #2C2C2B;
  --charcoal-2:  #3D3D3C;
  --charcoal-3:  #525250;
  --white:       #FEFEFE;
  --text:        #3D3D3C;
  --text-muted:  #7A756F;
  --text-faint:  #A8A29C;
  --border:      #DDD9D4;
  --border-lt:   #ECEAE7;

  --font-sans:   'IBM Plex Sans', sans-serif;
  --font-brand:  'Barlow Condensed', sans-serif;
  --font-serif:  'IBM Plex Serif', serif;
  --font-mono:   'IBM Plex Mono', monospace;

  --nav-h:  64px;
  --max-w:  1280px;
  --r:      2px;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: pointer; font: inherit; }
ul, ol { list-style: none; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section-pad    { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 500; line-height: 1.15;
  color: var(--charcoal);
}
.serif        { font-family: var(--font-serif); font-weight: 300; font-style: italic; }
.h-xl         { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.01em; }
.h-lg         { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.h-md         { font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
.h-sm         { font-size: 1.15rem; }
.h-xs         { font-size: 1rem; }
p             { color: var(--text); font-weight: 300; line-height: 1.82; }
.text-muted   { color: var(--text-muted); }
.text-mono    { font-family: var(--font-mono); }

/* ── EYEBROW ── */
.eyebrow {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 22px; height: 2px;
  background: var(--red); flex-shrink: 0;
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.07em;
  text-transform: uppercase; font-weight: 500;
  padding: 3px 9px;
  background: var(--red-pale); color: var(--red-dark);
  border-left: 2px solid var(--red);
}
.tag-ash   { background: var(--ash);     color: var(--charcoal-3); border-left-color: var(--ash-deep); }
.tag-dark  { background: var(--charcoal); color: var(--ash-mid);   border-left-color: var(--red);      }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.72rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500; letter-spacing: 0.03em;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  cursor: pointer; white-space: nowrap;
}
.btn-red     { background: var(--red);  color: var(--white); border: 1px solid var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--text);  border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-white   { background: var(--white); color: var(--charcoal); border: 1px solid var(--white); }
.btn-white:hover { background: var(--ash); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: stretch;
  transition: box-shadow 0.22s;
}
#site-nav.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,0.09); }

/* logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem; /* Space between logo image and text */
  text-decoration: none;
  flex-shrink: 0; /* Prevents the logo from being squashed */
}
.nav-logo-sq {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--white); letter-spacing: 0.04em;
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Brand name logo treatment ── */
.nav-logo {
  padding: 0 1.75rem 0 1.5rem;
  gap: 0;
}
.nav-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.nav-brand-space {
  color: transparent;
  -webkit-text-stroke: 1px var(--red);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.nav-brand-spectrum {
  color: var(--red);
}
.nav-brand-limited {
  color: var(--red);
  font-weight: 700;
}
.nav-brand-tag {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
  display: block;
}
.nav-brand { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-name {
  font-size: 12px; font-weight: 600; color: var(--charcoal);
  line-height: 1; white-space: nowrap;
}
.nav-brand-tag {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.04em; white-space: nowrap;
}

.logo-img {
  height: 45px; /* Adjust this value to match your nav height */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

/* desktop menu */
.nav-menu {
  display: flex; align-items: stretch; flex: 1;
  padding: 0 0.5rem;
}
.nav-menu > li { display: flex; align-items: stretch; position: relative; }
.nav-menu > li > a,
.nav-menu > li > .nav-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 0 1rem;
  font-size: 13px; font-weight: 400; color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > .nav-btn:hover,
.nav-menu > li.active > a,
.nav-menu > li.active > .nav-btn {
  color: var(--red); border-bottom-color: var(--red);
}

/* dropdown */
.nav-drop {
  position: absolute; top: calc(var(--nav-h) - 1px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  min-width: 230px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.18s ease;
  padding: 0.5rem 0;
  z-index: 600;
}
.nav-menu > li:hover .nav-drop,
.nav-menu > li:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: none;
}
.nav-drop a {
  display: block; padding: 0.6rem 1.2rem;
  font-size: 13px; color: var(--text);
  border-left: 2px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.nav-drop a:hover { background: var(--ash); color: var(--red); border-left-color: var(--red); }
.nav-drop a small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* nav right */
.nav-right {
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.25rem;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-tel {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); white-space: nowrap;
}
.nav-cta-btn {
  padding: 0.5rem 1.15rem;
  background: var(--red); color: var(--white);
  font-size: 12.5px; font-weight: 500;
  transition: background 0.18s; white-space: nowrap;
}
.nav-cta-btn:hover { background: var(--red-dark); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: var(--nav-h);
  padding: 0 0.9rem;
  cursor: pointer;
  border-left: 1px solid var(--border);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal);
  transition: all 0.25s;
}
/* mobile nav open state */
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 1.5rem;
  z-index: 490;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body.nav-open .mobile-menu { display: block; }
.mobile-menu a {
  display: block; padding: 0.8rem 0;
  font-size: 15px; font-weight: 400; color: var(--text);
  border-bottom: 1px solid var(--border-lt);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.indent { padding-left: 1.25rem; font-size: 13px; color: var(--text-muted); }
.mobile-menu a:hover { color: var(--red); }
.mobile-cta {
  display: block; margin-top: 1.25rem;
  padding: 0.85rem; text-align: center;
  background: var(--red); color: var(--white);
  font-weight: 500; font-size: 14px;
}

/* ============================================================
   PAGE HERO BAND (reusable across inner pages)
   ============================================================ */
.page-hero {
  background: var(--charcoal);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 3px solid var(--red);
  margin-top: var(--nav-h);
}
.page-hero .eyebrow { color: rgba(255,255,255,0.45); }
.page-hero .eyebrow::before { background: rgba(255,255,255,0.25); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--ash-deep); max-width: 58ch; margin-top: 1rem; font-size: 15px; }

/* ============================================================
   SECTOR STRIP
   ============================================================ */
.sector-strip {
  background: var(--charcoal);
  border-bottom: 3px solid var(--red);
  overflow-x: auto;
}
.sector-strip-inner {
  display: flex; align-items: stretch;
  min-width: max-content;
}
.sector-item {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 1.1rem 1.75rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  cursor: pointer; transition: background 0.18s;
  text-decoration: none;
}
.sector-item:last-child { border-right: none; }
.sector-item:hover { background: rgba(192,57,43,0.18); }
.sector-dot { width: 7px; height: 7px; background: var(--red); flex-shrink: 0; }
.sector-label { font-size: 12.5px; font-weight: 400; color: var(--ash-mid); white-space: nowrap; }
.sector-sub {
  display: block; font-family: var(--font-mono);
  font-size: 9.5px; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-top: 1px;
}

/* ============================================================
   SERVICES GRID (home + services page)
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}
.svc-tile {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.18s; cursor: pointer;
  text-decoration: none; display: block;
}
.svc-tile:nth-child(3n)  { border-right: none; }
.svc-tile:hover          { background: var(--ash); }
.svc-tile:hover .svc-arrow { transform: translate(3px,-3px); }
.svc-num  { font-family: var(--font-mono); font-size: 10px; color: var(--red); margin-bottom: 0.9rem; }
.svc-name { font-size: 15px; font-weight: 500; color: var(--charcoal); margin-bottom: 0.4rem; line-height: 1.3; }
.svc-desc { font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.6; margin-bottom: 1.1rem; }
.svc-arrow { display: inline-block; font-size: 13px; color: var(--red); transition: transform 0.2s; }

/* ============================================================
   PROJECT CARD GRID
   ============================================================ */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--border);
  border-top:  1px solid var(--border);
}
.proj-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  text-decoration: none; display: block;
  transition: box-shadow 0.2s;
}
.proj-card:hover { box-shadow: inset 0 0 0 2px var(--red); }
.proj-card-img {
  aspect-ratio: 4/3; overflow: hidden;
  background: var(--ash); position: relative;
}
.proj-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.85; transition: transform 0.5s ease, opacity 0.3s;
}
.proj-card:hover .proj-card-img img { transform: scale(1.04); opacity: 0.95; }
.proj-img-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ash-deep);
  background: repeating-linear-gradient(
    -45deg, var(--ash) 0, var(--ash) 6px, var(--ash-mid) 6px, var(--ash-mid) 7px
  );
  padding: 1rem; text-align: center;
}
.proj-card-info { padding: 1.4rem 1.5rem; }
.proj-cat {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--red); margin-bottom: 0.4rem;
}
.proj-name { font-size: 14.5px; font-weight: 500; color: var(--charcoal); line-height: 1.25; margin-bottom: 0.3rem; }
.proj-loc  { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 0.7rem; }
.proj-tag  {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 7px; background: var(--ash);
  border: 1px solid var(--border); color: var(--text-muted);
}
.proj-card.hidden { display: none; }

/* ============================================================
   TEAM CARD
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.team-card {
  border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: 0 4px 22px rgba(0,0,0,0.08); }
.team-head {
  background: var(--ash); padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 0.85rem; align-items: flex-start;
}
.team-avatar {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--white);
}
.team-name  { font-size: 14.5px; font-weight: 500; color: var(--charcoal); line-height: 1.2; }
.team-role  { font-size: 11px; color: var(--red); margin-top: 3px; line-height: 1.3; }
.team-creds {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--text-muted);
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid var(--border-lt); line-height: 1.5;
}
.team-body { padding: 1.4rem 1.5rem; }
.team-body p { font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.72; }

/* ============================================================
   CREDENTIAL BAR
   ============================================================ */
.cred-bar { background: var(--ash); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cred-bar-inner {
  display: flex; align-items: stretch;
  overflow-x: auto;
}
.cred-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.35rem 1.75rem;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}
.cred-item:last-child { border-right: none; }
.cred-abbr { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--red); }
.cred-full  { font-size: 12px; color: var(--text-muted); font-weight: 300; line-height: 1.3; }

/* ============================================================
   CEO QUOTE BLOCK
   ============================================================ */
.ceo-block { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--border); }
.ceo-left {
  background: var(--red); padding: 2.5rem 1.75rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.75rem;
}
.ceo-avatar-sq {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--white);
}
.ceo-name  { font-size: 15px; font-weight: 500; color: var(--white); line-height: 1.2; }
.ceo-title { font-size: 10px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.07em; }
.ceo-right {
  padding: 2.5rem; display: flex; align-items: center;
  border-left: 1px solid var(--border);
}
.ceo-quote {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-style: italic; font-weight: 300;
  color: var(--charcoal); line-height: 1.65;
}
.ceo-quote::before { content: '\201C'; }
.ceo-quote::after  { content: '\201D'; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--charcoal);
  border-top: 3px solid var(--red);
}
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem; padding: 4rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-logo-sq {
  width: 26px; height: 26px; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; color: var(--white);
}
.footer-brand-name { font-size: 12.5px; font-weight: 500; color: var(--white); }
.footer-desc {
  font-size: 13px; color: rgba(255,255,255,0.38); font-weight: 300;
  line-height: 1.75; max-width: 30ch;
}
.footer-col-title {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.38);
  margin-bottom: 1.1rem;
}
.footer-links li { padding: 0.28rem 0; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.58); font-weight: 300;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--red-light); }
.footer-contact-item {
  font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 300;
  line-height: 1.6; margin-bottom: 0.7rem;
}
.footer-contact-item strong {
  display: block; color: rgba(255,255,255,0.65);
  font-weight: 400; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.06em; font-family: var(--font-mono);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.35rem 0; flex-wrap: wrap; gap: 0.5rem;
}
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.28); }
.footer-reg  { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.28); }

/* ============================================================
   UTILITIES
   ============================================================ */
.divider       { height: 1px; background: var(--border); }
.divider-thick { height: 3px; background: var(--red); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.flex  { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end   { display: flex; justify-content: flex-end; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.wrap  { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: 1024px */
@media (max-width: 1024px) {
  .nav-tel { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-tile:nth-child(3n)  { border-right: 1px solid var(--border); }
  .svc-tile:nth-child(2n)  { border-right: none; }
  .proj-grid  { grid-template-columns: repeat(2, 1fr); }
  .team-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ceo-block   { grid-template-columns: 160px 1fr; }
}

/* Mobile: 768px */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 1.25rem; }
  .section-pad { padding: 3.5rem 0; }
  .section-pad-sm { padding: 2rem 0; }

  /* Hide desktop nav items */
  .nav-menu, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo { padding: 0 1rem; }
  .nav-brand-tag { display: none; }

  /* Stack grids */
  .svc-grid   { grid-template-columns: 1fr; }
  .svc-tile   { border-right: none !important; }
  .proj-grid  { grid-template-columns: 1fr; }
  .team-grid  { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.35rem; }

  /* CEO block */
  .ceo-block { grid-template-columns: 1fr; }
  .ceo-left  { padding: 1.75rem; flex-direction: row; align-items: center; gap: 1rem; }
  .ceo-right { padding: 1.75rem; }

  /* Sector strip */
  .sector-strip-inner { min-width: max-content; }

  /* Page hero */
  .page-hero { padding: 3rem 0 2.5rem; }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  .h-xl { font-size: 2rem; }
  .h-lg { font-size: 1.6rem; }
  .h-md { font-size: 1.3rem; }
  .cred-bar-inner { flex-direction: column; }
  .cred-item { border-right: none; border-bottom: 1px solid var(--border); }
  .cred-item:last-child { border-bottom: none; }
}


/* ============================================================
   ANIMATIONS & MOTION — v3 upgrade
   ============================================================ */

/* ── Base reveal (already defined, upgraded transitions) ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.42s; }

/* ── Reveal from left ── */
.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.in { opacity: 1; transform: none; }

/* ── Reveal from right ── */
.reveal-right {
  opacity: 0; transform: translateX(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.in { opacity: 1; transform: none; }

/* ── Scale in ── */
.reveal-scale {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* ── Filter card re-entry ── */
@keyframes filterIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.filter-in { animation: filterIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Sector strip item hover lift ── */
.sector-item {
  transition: background 0.18s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.sector-item:hover { transform: translateY(-2px); }

/* ── Service tile hover ── */
.svc-tile {
  transition: background 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease;
}
.svc-tile:hover {
  background: var(--ash);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
}

/* ── Project card hover ── */
.proj-card {
  transition: box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.proj-card:hover {
  box-shadow: inset 0 0 0 2px var(--red), 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* ── Team card hover ── */
.team-card {
  transition: box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* ── Value/reg card top border reveal ── */
.reg-card::before,
.val-cell::before,
.prin-cell::before,
.cred-item-bar::before {
  transition: width 0.35s ease;
}

/* ── Button press feedback ── */
.btn { transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.14s; }
.btn:active { transform: scale(0.97); }

/* ── CEO block image pan ── */
.ceo-block { transition: box-shadow 0.25s ease; }
.ceo-block:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

/* ── Process step hover ── */
.ps-step {
  transition: background 0.18s;
  border-radius: 2px;
  padding-left: 1rem; padding-right: 1rem; margin-left: -1rem; margin-right: -1rem;
}
.ps-step:hover { background: var(--ash); }

/* ── Credential bar items pulse on hover ── */
.cred-item { transition: background 0.2s; }
.cred-item:hover { background: var(--white); }

/* ── Nav CTA button pulse on load ── */
@keyframes navCtaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(192,57,43,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(192,57,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(192,57,43,0); }
}
.nav-cta-btn {
  animation: navCtaPulse 2.5s ease 2s 2;
}

/* ── Hero visual image scale-in on load ── */
@keyframes heroImgIn {
  from { transform: scale(1.04); opacity: 0.4; }
  to   { transform: scale(1);    opacity: 0.82; }
}
.hero-vis-cell img {
  animation: heroImgIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-vis-cell:nth-child(2) img { animation-delay: 0.25s; }

/* ── Red accent line draw animation ── */
@keyframes drawLine {
  from { width: 0; }
  to   { width: 22px; }
}
.eyebrow::before {
  animation: drawLine 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ── Page hero heading word reveal ── */
@keyframes wordSlideUp {
  from { opacity: 0; transform: translateY(30px); clip-path: inset(100% 0 0 0); }
  to   { opacity: 1; transform: translateY(0);    clip-path: inset(0% 0 0 0); }
}
.page-hero h1 {
  animation: wordSlideUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.page-hero p {
  animation: wordSlideUp 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}
.page-hero .eyebrow {
  animation: wordSlideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

/* ── Footer links hover underline ── */
.footer-links a {
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--red-light);
  transition: width 0.22s ease;
}
.footer-links a:hover::after { width: 100%; }

/* ── Scope/deliverable tag hover ── */
.ps-del, .proj-tag, .scope-tag {
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ps-del:hover, .proj-tag:hover {
  background: var(--red-pale);
  border-color: var(--red);
  color: var(--red-dark);
}

/* ── Sidebar card hover ── */
.sidebar-card {
  transition: box-shadow 0.2s, border-left-color 0.2s;
}
.sidebar-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
}

/* ── Service tab indicator slide ── */
.svc-tab-btn {
  position: relative;
  transition: color 0.18s;
}
.svc-tab-btn::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 3px; background: var(--red);
  transition: left 0.25s ease, right 0.25s ease;
}
.svc-tab-list li.active .svc-tab-btn::after { left: 0; right: 0; }

/* ── Compliance reg card slide-in ── */
.reg-card {
  transition: background 0.18s, transform 0.22s cubic-bezier(0.22,1,0.36,1);
}
.reg-card:hover { transform: translateY(-2px); }

/* ── Prof item ── */
.prof-item {
  transition: border-left-color 0.2s, background 0.2s, transform 0.2s;
}
.prof-item:hover { transform: translateX(3px); }

/* ── CTA band button hover glow ── */
.cta-band .btn-white:hover {
  box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

/* ── Mobile nav slide in ── */
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.nav-open .mobile-menu {
  animation: mobileNavIn 0.22s ease both;
}

/* ── Reduce motion (accessibility) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important;
  }
}
