@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Spline Sans Mono';
  src: url('/assets/fonts/spline-sans-mono-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

/* nextgensoft.co homepage.
   Generated by scripts/port-concept.py from the v2 concept's <helmet> block.
   Edit the porter, not this file. */

:root { --acc: #E1491F; }

body { margin: 0; background: #F5F1E8; }

::selection { background: var(--acc, #E1491F); color: #FBF8F1; }

/* Film-grain overlay across the whole page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

a { color: #191613; text-decoration: none; }
a:hover { color: #E1491F; }

@keyframes ngsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.8); }
}

@keyframes ngsFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes ngsSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .g-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 48px !important;
    padding-top: 64px !important;
    padding-bottom: 72px !important;
  }
  .g-svc { grid-template-columns: 1fr !important; }
  .tilt-el { --tY: 0deg; --tX: 0deg; }
  .win-wrap { max-width: 660px; margin: 0 auto; width: 100%; }
}

@media (max-width: 860px) {
  .m-hide { display: none !important; }
  .bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .g-crm { grid-template-columns: 1fr !important; }
}

/* The three keyframe animations above are CSS-driven, so app.js cannot gate
   them. Stop them outright when the visitor asks for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* --- Hover states -------------------------------------------------------
   Ported from the concept's style-hover attributes. The properties below are
   deliberately absent from the elements' inline styles: an inline declaration
   would outrank these rules. Keep them here, not there. */

.btn-nav {
  background: #191613;
  color: #F5F1E8;
  transition: background .18s ease, color .18s ease;
}
.btn-nav:hover {
  background: var(--acc, #E1491F);
  color: #F5F1E8;
}

.btn-primary {
  background: var(--acc, #E1491F);
  color: #FBF8F1;
  transition: background .18s ease, color .18s ease;
}
.btn-primary:hover {
  background: color-mix(in oklab, var(--acc, #E1491F), black 18%);
  color: #FBF8F1;
}

.btn-secondary {
  border: 1px solid #B9B09C;
  color: #191613;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-secondary:hover {
  background: #191613;
  color: #F5F1E8;
  border-color: #191613;
}

.card-hover {
  border: 1px solid #D5CDBB;
  transition: border-color .18s ease;
}
.card-hover:hover {
  border-color: #191613;
}

.lnk-footer {
  color: #F5F1E8;
  transition: color .18s ease;
}
.lnk-footer:hover {
  color: var(--acc, #E1491F);
}
