:root{
  --ink:#111111;
  --text:#2A2A2A;
  --text-dim:#666666;
  --text-faint:#999999;
  --bg:#FFFFFF;
  --bg-alt:#F5F5F5;
  --dark:#111111;
  --line:#E5E5E5;
  --violet-deep:#2050B8;
  --violet:#2050B8;
  --violet-bright:#2050B8;
  --gold:#F6AD55;
  --radius:2px;
  --maxw:1160px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}
body{ font-family:'Inter',sans-serif; color:var(--text); background:var(--bg); line-height:1.55; -webkit-font-smoothing:antialiased; }
h1,h2,h3{ font-family:'Inter',sans-serif; font-weight:800; letter-spacing:-0.02em; color:var(--ink); }
.mono{ font-family:'IBM Plex Mono',monospace; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
section{ position:relative; }

/* ===== HEADER ===== */
header{ position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.95); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:100px; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo-img{ height:78px; width:auto; display:block; }
@media (max-width:760px){ .logo-img{ height:54px; } }
nav.links{ display:flex; gap:34px; align-items:center; }
nav.links a{ font-size:14px; color:var(--text-dim); font-weight:600; padding:4px 0; transition:color 0.2s; background:none; border:none; cursor:pointer; font-family:inherit; }
nav.links > a:hover, nav.links > a:focus-visible, nav.links > a.active, .has-mega > a:hover, .has-mega > a:focus-visible{ color:var(--violet-bright); }
.menu-btn{ display:none; background:none; border:1px solid var(--line); color:var(--text); width:38px; height:38px; cursor:pointer; border-radius:6px; }
.menu-btn span{ display:block; width:16px; height:1.5px; background:var(--text); margin:4px auto; }

/* ===== MEGA MENU (Industries) ===== */
.has-mega{ position:relative; display:flex; align-items:center; }
.has-mega > a{ font-size:14px; color:var(--text-dim); font-weight:600; padding:4px 0; cursor:pointer; }
.mega-panel{
  position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(8px);
  background:#fff; box-shadow:0 24px 60px rgba(0,0,0,0.14); border:1px solid var(--line);
  min-width:640px; max-width:800px;
  padding:28px; display:grid; grid-template-columns:repeat(3,1fr); gap:4px;
  opacity:0; visibility:hidden; transition:opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index:200;
}
.has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.mega-item{ position:relative; }
.mega-item:hover, .mega-item:focus-within{ z-index:20; }
.mega-item > a{ display:block; padding:12px 14px; font-size:13.5px; font-weight:600; color:var(--ink); border-radius:6px; transition:background 0.15s; }
.mega-item:hover > a, .mega-item:focus-within > a{ background:var(--bg-alt); color:var(--violet-bright); }
.mega-flyout{
  position:absolute; left:100%; top:0;
  border-left:6px solid transparent; background-clip:padding-box;
  background:#fff; box-shadow:0 20px 50px rgba(0,0,0,0.16); border:1px solid var(--line);
  min-width:260px; max-width:300px; padding:16px 18px;
  display:grid; gap:6px;
  opacity:0; visibility:hidden; transform:translateX(-6px);
  transition:opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index:210;
}
.mega-item:hover .mega-flyout, .mega-item:focus-within .mega-flyout{ opacity:1; visibility:visible; transform:translateX(0); }
.mega-flyout a{ display:block; font-size:12.5px; color:var(--text-dim); padding:6px 4px; border-radius:4px; transition:background 0.15s, color 0.15s; }
.mega-flyout a:hover{ background:var(--bg-alt); color:var(--violet); }
@media (max-width:900px){
  .mega-panel{ position:static; transform:none; min-width:auto; max-width:none; grid-template-columns:1fr; box-shadow:none; border:none; padding:8px 0 0 16px; display:none; }
  .has-mega:hover .mega-panel, .has-mega:focus-within .mega-panel{ display:grid; }
  .mega-flyout{ position:static; box-shadow:none; border:none; margin:0; padding:6px 0 6px 14px; max-width:none; }
}

/* ===== HERO ===== */
.hero{
  position:relative; min-height:480px; overflow:hidden;
}
.hero-slide{
  position:absolute; inset:0; display:flex; align-items:flex-end;
  padding:64px 0 56px; color:#fff;
  opacity:0; transform:translateX(100%);
  transition: transform 0.7s cubic-bezier(0.65,0,0.35,1), opacity 0.5s ease;
  pointer-events:none;
}
.hero-slide.active{ opacity:1; transform:translateX(0); pointer-events:auto; position:relative; }
.hero-slide.prev{ transform:translateX(-100%); }

/* Three flat tonal steps of ONE violet family — no gradients. Makes the
   slide rotation perceptible. To revert to a single identical colour,
   set all three to var(--violet). */
.hero-slide.tone-violet{ background: var(--violet); }
.hero-slide.tone-blue{ background: var(--violet); }
.hero-slide.tone-gold{ background: var(--violet); }
.hero-inner{ position:relative; z-index:2; max-width:640px; }
.hero-dots{ position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:5; align-items:center; }
.hero-dots button{ width:8px; height:8px; border-radius:50%; border:none; background:rgba(255,255,255,0.4); cursor:pointer; padding:0; transition:background 0.2s, transform 0.2s; }
.hero-dots button.active{ background:#fff; transform:scale(1.3); }
.hero-dots .hero-pause{ width:auto; height:auto; border-radius:4px; background:rgba(255,255,255,0.15); color:#fff; font-size:11px; line-height:1; padding:5px 8px; margin-left:8px; }
.hero-dots .hero-pause:hover{ background:rgba(255,255,255,0.3); }
@media (prefers-reduced-motion: reduce){
  .hero-slide{ transition:opacity 0.3s ease; transform:none !important; }
}
.hero-inner{ position:relative; z-index:2; max-width:640px; }
.eyebrow{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:0.14em; color:rgba(255,255,255,0.8); margin-bottom:20px; text-transform:uppercase; }
.hero h1{ font-size:clamp(32px,5vw,56px); color:#fff; line-height:1.02; letter-spacing:-0.03em; margin-bottom:22px; }
.hero p.lead{ font-size:16.5px; color:rgba(255,255,255,0.85); max-width:480px; margin-bottom:34px; }
.cta-row{ display:flex; gap:16px; flex-wrap:wrap; }
.btn{ font-family:'Inter',sans-serif; font-size:14.5px; font-weight:700; padding:16px 30px; border:none; border-radius:4px; cursor:pointer; display:inline-flex; align-items:center; gap:8px; transition:transform 0.15s, box-shadow 0.15s; }
.btn-primary{ background:#fff; color:var(--violet-deep); }
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,0.15); }
.btn-ghost{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.5); }
.btn-ghost:hover{ border-color:#fff; }
.btn-dark{ background:var(--violet); color:#fff; }
.btn-dark:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,0.2); }
.btn:focus-visible{ outline:2px solid var(--violet-bright); outline-offset:2px; }

/* ===== STAT STRIP ===== */
.stats{ background:var(--bg-alt); display:flex; justify-content:center; gap:70px; padding:40px 24px; flex-wrap:wrap; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat{ text-align:center; }
.stat .num{ font-size:36px; font-weight:800; color:var(--violet); }
.stat .lbl{ font-size:12px; color:var(--text-dim); margin-top:6px; letter-spacing:0.04em; font-weight:600; text-transform:uppercase; }

/* ===== SECTIONS ===== */
section.pad{ padding:88px 0; }
section.alt{ background:var(--bg-alt); }
.section-head{ margin-bottom:48px; max-width:660px; }
.section-label{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-faint); letter-spacing:0.1em; margin-bottom:10px; text-transform:uppercase; }
.section-head h2{ font-size:clamp(26px,3.2vw,38px); line-height:1.15; }
.section-head p{ color:var(--text-dim); margin-top:14px; font-size:15.5px; }

.page-head{ padding:52px 0 40px; background:var(--bg-alt); color:var(--ink); border-bottom:1px solid var(--line); }
.page-head .section-label{ color:var(--text-faint); }
.page-head h1{ color:var(--ink); font-size:clamp(28px,4vw,42px); margin-bottom:14px; }
.page-head p{ color:var(--text-dim); font-size:15.5px; max-width:640px; }

/* ===== CARD GRID (services / sectors / capability cards) ===== */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.card-grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.tile{
  background:#fff; box-shadow:0 2px 12px rgba(0,0,0,0.06); overflow:hidden;
  border-radius:10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover{ transform:translateY(-4px); box-shadow:0 16px 32px rgba(0,0,0,0.12); }
.tile-link{ transition: padding-left 0.2s ease; }
.tile:hover .tile-link{ padding-left:4px; }
.tile-photo{
  height:140px; position:relative; overflow:hidden;
  background: var(--violet);
}
.tile-photo.has-photo{ background:var(--bg-alt); }
.tile-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.tile-body{ padding:24px; }
.tile-tag{ font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--violet-bright); letter-spacing:0.06em; margin-bottom:10px; text-transform:uppercase; }
.tile h3{ font-size:17px; color:var(--ink); margin-bottom:10px; line-height:1.3; }
.tile p{ font-size:13.5px; color:var(--text-dim); line-height:1.5; }
.tile-link{ display:block; margin-top:14px; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--violet); font-weight:600; background:none; border:none; cursor:pointer; padding:0; text-align:left; }
.tile-brief{ max-height:0; opacity:0; overflow:hidden; transition:max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease; }
.tile-brief.open{ max-height:300px; opacity:1; margin-top:14px; }
.tile-brief p{ font-size:13px; color:var(--text-dim); line-height:1.55; padding-top:14px; border-top:1px solid var(--line); }
.tile-brief .go-full{ display:inline-block; margin-top:10px; font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--violet); font-weight:700; }

/* ===== WHO WE ARE / ABOUT ===== */
.who-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:start; }
.who-copy{ font-size:16px; color:var(--text-dim); line-height:1.6; }
.quote-box{ background:var(--bg-alt); border-left:3px solid var(--violet-bright); padding:26px 28px; margin-top:26px; }
.quote-box p{ font-size:17px; color:var(--ink); font-weight:600; line-height:1.5; }
.info-panel{ background:var(--violet); color:#fff; padding:30px; }
.info-panel .row{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.12); font-size:13px; }
.info-panel .row:last-child{ border-bottom:none; }
.info-panel .row span:first-child{ color:rgba(255,255,255,0.5); }
.info-panel .row span:last-child{ font-weight:600; }

.why-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:20px; margin-top:8px; }
.why-card{ background:#fff; box-shadow:0 2px 12px rgba(0,0,0,0.06); padding:26px; }
.why-card .num{ font-family:'IBM Plex Mono',monospace; color:var(--violet-bright); font-size:11px; margin-bottom:10px; display:block; font-weight:700; }
.why-card h3{ font-size:16px; margin-bottom:8px; }
.why-card p{ font-size:13.5px; color:var(--text-dim); }

/* ===== DEEP-DIVE ACCORDIONS ===== */
.deepdive{ border-top:1px solid var(--line); }
.dd-item{ border-bottom:1px solid var(--line); }
.dd-item summary{ list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; padding:26px 0; user-select:none; }
.dd-item summary::-webkit-details-marker{ display:none; }
.dd-item summary .dd-title{ display:flex; align-items:baseline; gap:14px; }
.dd-item summary .code{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--violet-bright); font-weight:700; }
.dd-item summary h3{ font-size:19px; }
.dd-item summary .plus{ font-family:'Inter',sans-serif; font-size:22px; font-weight:300; color:var(--violet-bright); transition:transform 0.2s; flex-shrink:0; }
.dd-item[open] summary .plus{ transform:rotate(45deg); }
.dd-body{ padding:0 0 34px; display:grid; gap:22px; max-width:820px; }
.dd-body .tagline{ font-size:16px; color:var(--violet-bright); font-weight:700; }
.dd-body p.desc{ font-size:14.5px; color:var(--text-dim); }
.dd-block h4{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-faint); letter-spacing:0.08em; margin-bottom:10px; text-transform:uppercase; }
.dd-ai-list{ display:grid; gap:8px; }
.dd-ai-list div{ font-size:13.5px; color:var(--text-dim); padding-left:16px; position:relative; }
.dd-ai-list div::before{ content:''; position:absolute; left:0; top:8px; width:6px; height:2px; background:var(--violet-bright); }
.dd-ai-list strong{ color:var(--ink); font-weight:700; }
.dd-outcomes{ display:grid; grid-template-columns:1fr 1fr; gap:6px 20px; }
.dd-outcomes div{ font-size:13px; color:var(--text-dim); padding-left:18px; position:relative; }
.dd-outcomes div::before{ content:'\2713'; position:absolute; left:0; top:0; color:var(--violet-bright); font-size:11px; font-weight:700; }
.dd-coe{ background:var(--bg-alt); border-left:3px solid var(--gold); padding:16px 20px; font-size:13.5px; color:var(--text-dim); }
.dd-coe strong{ color:var(--ink); }
.dd-integration{ font-size:12.5px; color:var(--text-faint); font-style:italic; }

/* ===== CAREERS ===== */
.careers-panel{ background:#fff; box-shadow:0 2px 12px rgba(0,0,0,0.06); padding:44px; display:flex; justify-content:space-between; align-items:center; gap:30px; flex-wrap:wrap; }
.careers-panel h3{ font-size:22px; margin-bottom:10px; }
.careers-panel p{ color:var(--text-dim); font-size:14px; max-width:440px; }
.chip{ font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-dim); border:1px solid var(--line); padding:8px 14px; background:#fff; display:inline-block; margin:4px 6px 4px 0; }

/* ===== CONTACT ===== */
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:56px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--text-faint); letter-spacing:0.06em; margin-bottom:8px; text-transform:uppercase; }
.field input, .field textarea, .field select{ width:100%; background:#fff; border:1.5px solid var(--line); color:var(--ink); padding:13px 14px; font-family:'Inter',sans-serif; font-size:14px; border-radius:4px; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--violet); }
.contact-info .item{ display:flex; gap:14px; padding:18px 0; border-bottom:1px solid var(--line); }
.contact-info .item:first-child{ padding-top:0; }
.contact-info .k{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; color:var(--text-faint); width:90px; flex-shrink:0; padding-top:2px; text-transform:uppercase; }
.contact-info .v{ font-size:14.5px; color:var(--ink); font-weight:600; }
.contact-info .v small{ display:block; color:var(--text-dim); font-size:12.5px; margin-top:3px; font-weight:400; }

footer{ background:var(--violet); color:rgba(255,255,255,0.75); padding:36px 0; }
.footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; font-family:'IBM Plex Mono',monospace; font-size:11px; }
.footer-row a{ color:rgba(255,255,255,0.6); }
.footer-row a:hover{ color:#fff; }

/* ===== FLOATING CONTACT WIDGET ===== */
.float-contact{ position:fixed; right:24px; bottom:24px; z-index:500; display:flex; align-items:center; gap:10px; background:var(--violet); color:#fff; font-family:'Inter',sans-serif; font-size:13.5px; font-weight:700; padding:15px 22px; border:none; border-radius:6px; box-shadow:0 10px 26px rgba(74,44,138,0.35); transition:transform 0.2s, box-shadow 0.2s; }
.float-contact:hover{ transform:translateY(-2px); box-shadow:0 14px 32px rgba(74,44,138,0.45); }
.float-contact .dot{ width:6px; height:6px; background:#fff; border-radius:50%; animation:pulse 2s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:0.35;} }
.float-contact:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }

.contact-popup{ position:fixed; right:24px; bottom:92px; z-index:500; width:340px; max-width:calc(100vw - 32px); background:#fff; box-shadow:0 24px 60px rgba(0,0,0,0.2); opacity:0; visibility:hidden; transform:translateY(12px); transition:opacity 0.22s ease, transform 0.22s ease, visibility 0.22s; border-radius:8px; overflow:hidden; }
.contact-popup.open{ opacity:1; visibility:visible; transform:translateY(0); }
.cp-head{ display:flex; justify-content:space-between; align-items:flex-start; padding:20px 22px 14px; border-bottom:1px solid var(--line); background:var(--bg-alt); }
.cp-head h4{ font-size:16px; color:var(--ink); margin-bottom:4px; }
.cp-head p{ font-size:12.5px; color:var(--text-dim); }
.cp-close{ background:none; border:none; cursor:pointer; font-size:16px; color:var(--text-faint); line-height:1; padding:2px; }
.cp-close:hover{ color:var(--ink); }
.cp-body{ padding:14px 22px 20px; display:grid; gap:2px; }
.cp-option{ display:flex; align-items:center; gap:12px; padding:12px 8px; border-bottom:1px solid var(--line); transition:background 0.15s; }
.cp-option:last-child{ border-bottom:none; }
.cp-option:hover{ background:var(--bg-alt); }
.cp-icon{ width:32px; height:32px; flex-shrink:0; border-radius:6px; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-size:10px; color:#fff; font-weight:700; background:var(--violet); }
.cp-option .txt{ flex:1; }
.cp-option .label{ font-size:13.5px; color:var(--ink); font-weight:600; }
.cp-option .sub{ font-size:11.5px; color:var(--text-faint); margin-top:1px; }
.cp-footer{ padding:14px 22px 20px; border-top:1px solid var(--line); }
.cp-footer a{ font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--violet-bright); font-weight:600; }
.cp-footer a:hover{ text-decoration:underline; }

@media (max-width:900px){
  .hero-inner{ max-width:100%; }
  .card-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:760px){
  .who-grid, .contact-grid{ grid-template-columns:1fr; }
  .card-grid, .card-grid.cols-2{ grid-template-columns:1fr; }
  nav.links{ display:none; }
  .menu-btn{ display:block; }
  section.pad{ padding:56px 0; }
  .hero{ padding:48px 0 44px; min-height:auto; }
  .stats{ gap:36px; }
  .dd-outcomes{ grid-template-columns:1fr; }
}
@media (max-width:600px){
  .float-contact{ right:16px; bottom:16px; padding:13px 18px; }
  .contact-popup{ right:16px; bottom:82px; width:calc(100vw - 32px); }
}
