/* ==========================================================================
   NEXGRA — stylesheet
   Palette: ink #0B0D0F / red #E31E24 / paper #FFFFFF / panel #F3F4F5
   Type: Cond (display) + Body (text)
   ========================================================================== */

@font-face{
  font-family:'Cond';
  src:url('../fonts/DejaVuSansCondensed.woff') format('woff'),
      url('../fonts/DejaVuSansCondensed.ttf') format('truetype');
  font-weight:400; font-display:swap;
}
@font-face{
  font-family:'Cond';
  src:url('../fonts/DejaVuSansCondensed-Bold.woff') format('woff'),
      url('../fonts/DejaVuSansCondensed-Bold.ttf') format('truetype');
  font-weight:700; font-display:swap;
}
@font-face{
  font-family:'Body';
  src:url('../fonts/LiberationSans-Regular.woff') format('woff'),
      url('../fonts/LiberationSans-Regular.ttf') format('truetype');
  font-weight:400; font-display:swap;
}
@font-face{
  font-family:'Body';
  src:url('../fonts/LiberationSans-Bold.woff') format('woff'),
      url('../fonts/LiberationSans-Bold.ttf') format('truetype');
  font-weight:700; font-display:swap;
}
@font-face{
  font-family:'Body';
  src:url('../fonts/LiberationSans-Italic.woff') format('woff'),
      url('../fonts/LiberationSans-Italic.ttf') format('truetype');
  font-weight:400; font-style:italic; font-display:swap;
}

:root{
  --ink:#0B0D0F;
  --ink-2:#15181B;
  --red:#E31E24;
  --red-dim:#B91318;
  --paper:#FFFFFF;
  --panel:#F3F4F5;
  --slate:#55595E;
  --steel:#D9DCDF;
  --maxw:1180px;
}

*,*:before,*:after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:'Body',Arial,Helvetica,sans-serif; color:var(--ink);
  background:var(--paper); line-height:1.6; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family:'Cond',Arial,sans-serif; font-weight:700; line-height:1.08; margin:0; }
p{ margin:0; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.hide{ display:none !important; }

:focus-visible{ outline:2px solid var(--red); outline-offset:2px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center;
  font-family:'Cond',sans-serif; font-weight:700; font-size:15px; letter-spacing:.3px;
  padding:14px 26px; border-radius:2px; border:1.5px solid transparent; cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--red); color:#fff; }
.btn-primary:hover{ background:var(--red-dim); }
.btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.4); }
.btn-ghost:hover{ border-color:#fff; }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:var(--ink-2); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:#fff; }

/* ---------- header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(11,13,15,.94); backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:72px; }
.brand{ display:flex; align-items:baseline; color:#fff; font-family:'Cond',sans-serif; font-weight:700; font-size:22px; letter-spacing:.5px; }
.brand em{ font-style:normal; color:var(--red); margin-left:2px; }
.brand small{ display:block; font-family:'Body',sans-serif; font-weight:400; font-size:9px; letter-spacing:3px; color:#9aa0a6; margin-top:2px; }

.main-nav{ display:flex; align-items:center; }
.main-nav a{
  color:#d7d9db; font-size:14.5px; font-weight:400; position:relative; padding:4px 0;
  margin-right:36px;
}
.main-nav a:last-child{ margin-right:0; }
.main-nav a:hover{ color:#fff; }
.main-nav a.active{ color:#fff; }
.main-nav a.active:after{
  content:''; position:absolute; left:0; right:0; bottom:-3px; height:2px; background:var(--red);
}
.header-cta{ display:flex; align-items:center; }
.header-cta .btn{ margin-right:22px; }
.header-cta .nav-toggle{ margin-right:0; }

.nav-toggle{
  display:none; width:40px; height:40px; border:none; background:none; cursor:pointer;
  flex-direction:column; align-items:center; justify-content:center;
}
.nav-toggle span{ width:22px; height:2px; background:#fff; display:block; transition:transform .2s ease, opacity .2s ease; margin-bottom:5px; }
.nav-toggle span:last-child{ margin-bottom:0; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero{
  position:relative; background:var(--ink); color:#fff; overflow:hidden;
  padding:168px 0 76px 0;
}
.hero-grid-lines{
  position:absolute; inset:0; pointer-events:none;
  background-image:repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 96px);
}
.hero .wrap{ position:relative; z-index:2; display:flex; align-items:center; }
.hero-copy{ flex:1 1 55%; margin-right:56px; }
.hero-art{ flex:1 1 45%; }
.eyebrow{
  display:inline-flex; align-items:center; color:#c7c9cb; font-size:13.5px;
  border:1px solid rgba(255,255,255,.18); border-radius:20px; padding:6px 14px; margin-bottom:22px;
}
.eyebrow i{ width:6px; height:6px; border-radius:50%; background:var(--red); display:block; margin-right:8px; }
.hero h1{ font-size:52px; letter-spacing:.2px; max-width:14ch; }
.hero h1 .accent{ color:var(--red); }
.hero-sub{ font-size:17px; color:#c7c9cb; max-width:46ch; margin-top:20px; line-height:1.65; }
.hero-actions{ display:flex; margin-top:34px; flex-wrap:wrap; }
.hero-actions .btn{ margin-right:14px; margin-bottom:14px; }
.hero-actions .btn:last-child{ margin-right:0; }

.hero-stats{ display:flex; margin-top:56px; border-top:1px solid rgba(255,255,255,.14); padding-top:26px; }
.hstat{ flex:1; padding-right:18px; margin-right:18px; border-right:1px solid rgba(255,255,255,.1); }
.hstat:last-child{ margin-right:0; border-right:none; }
.hstat b{ display:block; font-family:'Cond',sans-serif; font-weight:700; font-size:26px; color:#fff; }
.hstat span{ font-size:12.5px; color:#9aa0a6; letter-spacing:.3px; }

/* hero graphic */
.hero-art{ position:relative; }
.hero-art svg{ width:100%; height:auto; display:block; }

/* ---------- section shell ---------- */
section{ padding:96px 0; }
.section-panel{ background:var(--panel); }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head .kicker{ color:var(--red); font-weight:700; font-size:13.5px; letter-spacing:.4px; margin-bottom:10px; display:block; }
.section-head h2{ font-size:36px; }
.section-head p{ color:var(--slate); font-size:16px; margin-top:14px; line-height:1.65; }

/* ---------- services ---------- */
.services-grid{ display:flex; flex-wrap:wrap; }
.services-grid .row1{ display:flex; width:100%; margin-bottom:22px; }
.services-grid .row2{ display:flex; width:100%; }
.svc-card{
  background:var(--paper); border:1px solid var(--steel); border-top:4px solid var(--ink);
  padding:30px 28px; transition:border-color .2s ease, transform .2s ease;
  flex:1; margin-right:22px;
}
.services-grid .row1 .svc-card:last-child,
.services-grid .row2 .svc-card:last-child{ margin-right:0; }
.svc-card.accent{ border-top-color:var(--red); }
.svc-card:hover{ transform:translateY(-3px); }
.svc-card h3{ font-size:21px; margin-bottom:12px; }
.svc-card > p{ color:var(--slate); font-size:14.5px; margin-bottom:16px; }
.svc-card ul li{
  font-size:14px; color:var(--slate); padding-left:18px; position:relative; margin-bottom:8px; line-height:1.5;
}
.svc-card ul li:before{
  content:''; position:absolute; left:0; top:7px; width:6px; height:6px; background:var(--red);
}

/* ---------- approach ---------- */
.approach-track{ display:flex; position:relative; margin-top:20px; }
.approach-track:before{
  content:''; position:absolute; top:22px; left:22px; right:22px; height:1px; background:var(--steel);
}
.astep{ flex:1; text-align:center; position:relative; padding:0 6px; }
.astep .num{
  width:44px; height:44px; border-radius:50%; background:var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; margin:0 auto 16px auto;
  font-family:'Cond',sans-serif; font-weight:700; font-size:17px; position:relative; z-index:1;
}
.astep.on .num{ background:var(--red); }
.astep h4{ font-size:16px; margin-bottom:6px; }
.astep p{ font-size:13px; color:var(--slate); line-height:1.5; }

/* ---------- why us ---------- */
.why-grid{ display:flex; align-items:flex-start; }
.why-stats{ flex:0 0 340px; margin-right:64px; display:flex; flex-wrap:wrap; border:1px solid var(--steel); }
.why-list{ flex:1; min-width:0; }
.wstat{
  background:var(--paper); padding:28px 20px; flex:0 0 50%;
  border-right:1px solid var(--steel); border-bottom:1px solid var(--steel);
}
.wstat:nth-child(2n){ border-right:none; }
.wstat:nth-last-child(-n+2){ border-bottom:none; }
.wstat b{ display:block; font-family:'Cond',sans-serif; font-weight:700; font-size:34px; }
.wstat b.red{ color:var(--red); }
.wstat span{ font-size:13px; color:var(--slate); }
.why-list{ display:flex; flex-direction:column; gap:0; }
.wrow{ display:flex; gap:20px; padding:22px 0; border-top:1px solid var(--steel); }
.wrow:last-child{ border-bottom:1px solid var(--steel); }
.wrow .wn{ font-family:'Cond',sans-serif; font-weight:700; font-size:15px; color:var(--red); width:30px; flex-shrink:0; padding-top:2px; }
.wrow h4{ font-size:17px; margin-bottom:4px; }
.wrow p{ font-size:14.5px; color:var(--slate); }

/* ---------- partners ---------- */
.partners{ background:var(--ink); color:#fff; overflow:hidden; }
.partners .section-head h2{ color:#fff; }
.partners .section-head p{ color:#c7c9cb; }
.marquee{ position:relative; margin-top:12px; -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track{ display:flex; gap:0; width:max-content; animation:scroll 32s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
.ptile{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.14); padding:26px 44px; margin-right:16px; min-width:200px;
}
.ptile b{ font-family:'Cond',sans-serif; font-weight:700; font-size:19px; }
.ptile span{ font-size:11px; letter-spacing:.5px; color:var(--red); margin-top:6px; }
@keyframes scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- cta band ---------- */
.cta-band{ background:var(--red); color:#fff; text-align:center; }
.cta-band h2{ font-size:34px; max-width:20ch; margin:0 auto; }
.cta-band p{ font-size:16.5px; margin-top:14px; max-width:56ch; margin-left:auto; margin-right:auto; opacity:.92; }
.cta-band .hero-actions{ justify-content:center; margin-top:30px; }
.cta-band .btn-ghost{ border-color:rgba(255,255,255,.55); }
.cta-band .btn-dark{ background:#fff; color:var(--ink); }
.cta-band .btn-dark:hover{ background:var(--ink); color:#fff; }

/* ---------- contact ---------- */
.contact-grid{ display:flex; }
.contact-info{ flex:0 0 42%; margin-right:56px; }
.contact-form{ flex:1; min-width:0; }
.contact-info h2{ font-size:32px; }
.contact-info > p{ color:var(--slate); margin-top:14px; font-size:15.5px; }
.cinfo-list{ margin-top:32px; display:flex; flex-direction:column; }
.cinfo-item{ display:flex; align-items:flex-start; margin-bottom:22px; }
.cinfo-item:last-child{ margin-bottom:0; }
.cinfo-item .ic{
  width:38px; height:38px; border:1.4px solid var(--ink); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; margin-right:16px;
}
.cinfo-item .ic svg{ width:18px; height:18px; }
.cinfo-item .lbl{ font-family:'Cond',sans-serif; font-weight:700; font-size:13px; letter-spacing:.4px; color:var(--red); text-transform:uppercase; }
.cinfo-item p{ font-size:15px; margin-top:2px; }

.contact-form{ background:var(--panel); padding:36px; border-top:4px solid var(--ink); }
.form-row{ display:flex; }
.form-row .field{ flex:1; margin-right:16px; }
.form-row .field:last-child{ margin-right:0; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:700; margin-bottom:7px; color:var(--ink); }
.field input, .field select, .field textarea{
  width:100%; border:1px solid var(--steel); background:#fff; padding:12px 14px; font-family:'Body',sans-serif;
  font-size:14.5px; color:var(--ink); border-radius:0;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--ink); outline:none; }
.field textarea{ min-height:120px; resize:vertical; }
.form-note{ font-size:12.5px; color:var(--slate); margin-top:10px; }
.form-status{ font-size:14px; margin-top:14px; display:none; }
.form-status.ok{ color:#1a7f37; display:block; }
.form-status.err{ color:var(--red); display:block; }

/* ---------- footer ---------- */
.site-footer{ background:var(--ink); color:#c7c9cb; padding:56px 0 26px 0; }
.footer-top{ display:flex; justify-content:space-between; flex-wrap:wrap; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand{ margin-right:40px; margin-bottom:24px; }
.footer-brand .brand{ margin-bottom:12px; }
.footer-brand p{ font-size:14px; max-width:34ch; color:#9aa0a6; }
.footer-cols{ display:flex; }
.footer-col{ margin-right:64px; }
.footer-col:last-child{ margin-right:0; }
.footer-col h5{ font-family:'Cond',sans-serif; font-weight:700; font-size:13px; letter-spacing:1px; text-transform:uppercase; color:#fff; margin-bottom:14px; }
.footer-col a{ display:block; font-size:14px; color:#9aa0a6; margin-bottom:10px; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:22px; font-size:13px; color:#7d8288; flex-wrap:wrap; }
.footer-bottom > *{ margin:4px 0; }
.footer-bottom .tag{ font-family:'Cond',sans-serif; font-weight:700; color:#fff; letter-spacing:.5px; }
.footer-bottom .tag em{ font-style:normal; color:var(--red); }
.footer-legal{ display:flex; }
.footer-legal a{ margin-right:20px; }
.footer-legal a:last-child{ margin-right:0; }
.footer-legal a:hover{ color:#fff; }

/* ---------- reveal-on-load hero moment ---------- */
.hero h1, .hero-sub, .hero-actions, .hero-stats{
  opacity:0; transform:translateY(14px);
  animation:rise .7s ease forwards;
}
.hero h1{ animation-delay:.05s; }
.hero-sub{ animation-delay:.18s; }
.hero-actions{ animation-delay:.3s; }
.hero-stats{ animation-delay:.42s; }
@keyframes rise{ to{ opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: reduce){
  .hero h1,.hero-sub,.hero-actions,.hero-stats{ animation:none; opacity:1; transform:none; }
  .marquee-track{ animation:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero .wrap{ flex-direction:column; align-items:stretch; }
  .hero-copy{ margin-right:0; }
  .hero-art{ order:-1; max-width:320px; margin:0 auto 8px auto; }
  .why-grid{ flex-direction:column; }
  .why-stats{ margin-right:0; margin-bottom:32px; flex-basis:auto; width:100%; }
  .contact-grid{ flex-direction:column; }
  .contact-info{ margin-right:0; margin-bottom:36px; flex-basis:auto; }
  .services-grid .row1{ flex-wrap:wrap; }
  .services-grid .row1 .svc-card{ flex:1 1 45%; margin-bottom:22px; }
  .services-grid .row1 .svc-card:nth-child(2n){ margin-right:0; }
  .services-grid .row2 .svc-card{ flex:1 1 45%; }
}
@media (max-width: 760px){
  .main-nav, .header-cta .btn{ display:none; }
  .nav-toggle{ display:flex; }
  .site-header.open .main-nav{
    display:flex; position:absolute; top:72px; left:0; right:0; background:var(--ink);
    flex-direction:column; align-items:flex-start; padding:22px 24px;
  }
  .site-header.open .main-nav a{ margin-right:0; margin-bottom:18px; }
  .hero{ padding:132px 0 56px 0; }
  .hero h1{ font-size:36px; }
  .hero-stats{ flex-wrap:wrap; }
  .hstat{ flex:1 1 40%; margin-bottom:16px; }
  section{ padding:64px 0; }
  .section-head h2{ font-size:28px; }
  .services-grid .row1{ flex-direction:column; }
  .services-grid .row1 .svc-card{ margin-right:0; margin-bottom:22px; flex-basis:auto; }
  .services-grid .row2{ flex-direction:column; }
  .services-grid .row2 .svc-card{ margin-right:0; margin-bottom:22px; flex-basis:auto; }
  .approach-track{ flex-wrap:wrap; }
  .approach-track:before{ display:none; }
  .astep{ flex:1 1 33%; margin-bottom:28px; }

  .form-row{ flex-direction:column; }
  .form-row .field{ margin-right:0; }
  .footer-top{ flex-direction:column; }
  .footer-brand{ margin-right:0; }
  .footer-cols{ flex-wrap:wrap; }
  .footer-col{ margin-right:40px; margin-bottom:24px; }
  .cta-band h2{ font-size:27px; }
}
