/* Night City — layout replacement. Loaded after styles.css. */

html.nc {
  --ink: #050505;
  --ink-deep: #000000;
  --canvas: #050505;
  --canvas-soft: #0c0c0c;
  --canvas-card: #0a0a0a;
  --body: #f3f3f3;
  --mute: #c8c8c8;
  --primary: #ff1a1a;
  --accent-cyan: #f3e600;
  background: #050505;
  color: #f3f3f3;
}

html.nc body {
  background: #050505;
  color: #f3f3f3;
}

html.nc .display-xl,
html.nc .display-lg,
html.nc .display-md,
html.nc .display-sm,
html.nc .display-xs,
html.nc h1, html.nc h2, html.nc h3 {
  color: #f7f7f7;
}

html.nc .noise,
html.nc .flickering-grid,
html.nc .hero-glow,
html.nc .border-beam {
  display: none !important;
}

/* HUD frame */
html.nc .nc-frame {
  position: fixed;
  inset: 10px;
  z-index: 90;
  pointer-events: none;
  border: 1px solid rgba(255, 26, 26, 0.35);
}
html.nc .nc-frame i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid #ff1a1a;
}
html.nc .nc-c--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
html.nc .nc-c--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
html.nc .nc-c--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
html.nc .nc-c--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

html.nc .nc-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: #ff1a1a;
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 12px #ff1a1a;
}

html.nc .nc-scan {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 18vh;
  z-index: 80;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 26, 26, 0.07), transparent);
  mix-blend-mode: screen;
}

/* Nav */
html.nc .nav-bar {
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid #ff1a1a;
  box-shadow: none;
  backdrop-filter: none;
}
html.nc .nav-link {
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: #f3f3f3;
}
html.nc .nav-link:hover { color: #f3e600; }

/* Hero — full viewport, type leads, image is a shard */
html.nc .hero-band {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 1.5rem) 0 4.5rem;
  background:
    linear-gradient(115deg, #050505 42%, transparent 42.2%),
    repeating-linear-gradient(90deg, rgba(255, 26, 26, 0.05) 0 1px, transparent 1px 72px),
    #050505;
  overflow: hidden;
}
html.nc .hero-band__grid {
  display: block;
  position: relative;
  width: 100%;
}
html.nc .hero-title {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
  max-width: 12ch;
  text-transform: uppercase;
}
html.nc .hero-title span {
  display: block;
  overflow: hidden;
}
html.nc .hero-title .nc-line {
  display: block;
}
html.nc .hero-band__content {
  position: relative;
  z-index: 2;
}
html.nc .hero-lead {
  max-width: 36rem;
  color: #e6e6e6;
  font-size: 1.2rem;
}
@media (min-width: 1024px) {
  html.nc .hero-band__content { width: min(56%, 38rem); }
  html.nc .hero-title { max-width: none; }
}
html.nc .badge-positive {
  border-radius: 0;
  background: transparent;
  border: 1px solid #f3e600;
  color: #f3e600;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
html.nc .hero-visual {
  position: absolute;
  right: 0;
  top: -6vh;
  width: min(42vw, 520px);
  max-width: none;
  z-index: 1;
}
html.nc .hero-art-wrap,
html.nc .hero-art-ring,
html.nc .hero-photo-ring {
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
html.nc .hero-art-ring {
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
  border: 1px solid #ff1a1a;
  aspect-ratio: 4 / 5;
}
html.nc .hero-art {
  filter: contrast(1.15) saturate(0.7);
}
html.nc .hero-photo-stats { left: 0.75rem; bottom: 0.75rem; }
html.nc .hero-photo-stat {
  border-radius: 0;
  background: #050505;
  color: #f3f3f3;
  border-color: #ff1a1a;
  backdrop-filter: none;
}
html.nc .hero-band__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ff1a1a;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Marquee cuts across the page */
html.nc .marquee-band {
  background: #ff1a1a;
  transform: rotate(-1.5deg) scale(1.04);
  margin: 1.5rem 0 2.5rem;
  border: 0;
}
html.nc .marquee span {
  color: #050505;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html.nc .marquee span::before { color: #050505; }

/* Services — mission cards. Desktop becomes a sideways rail. */
html.nc .showcase-band {
  background: #050505;
  border-top: 0;
  padding-top: 2rem;
}
html.nc .showcase-row,
html.nc .showcase-row--alt {
  background: transparent;
  border-top: 0;
}
html.nc .showcase-row--alt .showcase-row__inner,
html.nc .showcase-row--alt .showcase-row__inner > * {
  direction: ltr;
}
html.nc .showcase-row__visual {
  border-radius: 0;
  background: #000;
  border: 1px solid rgba(255, 26, 26, 0.55);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
html.nc .showcase-row__num { color: #f3e600; }
html.nc .showcase-row__link { color: #ff4d4d; }

@media (min-width: 1024px) {
  html.nc .showcase-band.nc-pin {
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(260px, 34vw) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0;
    overflow: hidden;
  }
  html.nc .showcase-band.nc-pin > .container {
    padding-left: clamp(1.5rem, 4vw, 4rem);
  }
  html.nc .nc-stage {
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  html.nc .nc-track {
    display: flex;
    gap: 1.1rem;
    height: 74vh;
    padding-right: 6vw;
    will-change: transform;
  }
  html.nc .showcase-band.nc-pin .showcase-row {
    flex: 0 0 min(58vw, 520px);
    width: min(58vw, 520px);
    height: 100%;
    margin: 0;
    padding: 0;
    background: #070707;
    border: 1px solid rgba(255, 26, 26, 0.7);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  }
  html.nc .showcase-band.nc-pin .showcase-row__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0;
  }
  html.nc .showcase-band.nc-pin .showcase-row__visual {
    order: -1;
    height: 48%;
    min-height: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 26, 26, 0.45);
    clip-path: none;
  }
  html.nc .showcase-band.nc-pin .showcase-row__visual img {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }
  html.nc .showcase-band.nc-pin .showcase-row__copy {
    padding: 1.2rem 1.35rem 1.4rem;
  }
}

/* Portfolio frame */
html.nc .portfolio-band { background: #050505; }
html.nc .pf-browser,
html.nc .pf-phone {
  border-radius: 0;
  background: #000;
  border: 1px solid #ff1a1a;
  box-shadow: none;
}
html.nc .pf-browser__bar { background: #120000; color: #f3e600; }
html.nc .pf-slide__body { background: transparent; }
html.nc .pf-carousel {
  position: relative;
}
html.nc .pf-carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #f3e600;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* Proof / dark bands — kill the purple wash */
html.nc .hero-band-dark,
html.nc .content-band,
html.nc .team-band,
html.nc .cta-strip {
  background: #050505;
  border-color: rgba(255, 26, 26, 0.35);
}
html.nc .card-feature-dark .display-xs,
html.nc .card-feature-dark .body-md,
html.nc .tag-list--light li {
  color: #f3f3f3;
}

/* Team — character select */
html.nc .team-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 0.7rem;
  max-width: none;
  align-items: stretch;
}
html.nc .team-member {
  background: #070707;
  border: 1px solid rgba(255, 26, 26, 0.45);
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: border-color 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
html.nc .team-member:hover,
html.nc .team-member:focus-within {
  border-color: #f3e600;
  transform: translateY(-10px);
}
html.nc .team-member__photo-wrap {
  aspect-ratio: 3 / 4;
  clip-path: none;
  border-radius: 0;
}
html.nc .team-member__photo { border-radius: 0; filter: contrast(1.08) saturate(0.85); }
html.nc .team-member__body { padding: 0.9rem 0.85rem 1.1rem; }
html.nc .team-member__role { color: #f3e600; }
html.nc .team-member:first-child .team-member__photo-wrap { aspect-ratio: 4 / 5; }

/* FAQ + form as terminal */
html.nc .faq-item,
html.nc .contact-form,
html.nc .connect-direct {
  border-radius: 0;
  background: #070707;
  border: 1px solid rgba(255, 26, 26, 0.45);
}
html.nc .contact-form input,
html.nc .contact-form textarea,
html.nc .contact-form select {
  border-radius: 0;
  background: #000;
  color: #f3f3f3;
  border: 1px solid rgba(255, 26, 26, 0.55);
  font-family: "Share Tech Mono", ui-monospace, monospace;
}
html.nc .contact-form input:focus,
html.nc .contact-form textarea:focus,
html.nc .contact-form select:focus {
  outline: none;
  border-color: #f3e600;
  box-shadow: 0 0 0 1px #f3e600;
}
html.nc .section-head--center { text-align: left; margin-inline: 0; }
html.nc #contato .section-lead { margin-inline: 0; }

html.nc .home-region__links a {
  border-radius: 0;
  color: #f3f3f3;
  border-color: rgba(255, 26, 26, 0.4);
}
html.nc .home-region__links a:hover {
  border-color: #f3e600;
  background: transparent;
  color: #f3e600;
}

html.nc .logo__mark { display: none; }
html.nc .footer {
  background: #000;
  border-top: 1px solid #ff1a1a;
}
html.nc .footer__brand::before {
  content: "FORTES";
  display: block;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ff1a1a;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

html.nc .blog-card {
  border-radius: 0;
  background: #070707;
  border-color: rgba(255, 26, 26, 0.4);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
html.nc ::selection { background: #ff1a1a; color: #050505; }

@media (max-width: 1023px) {
  html.nc .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 420px;
    margin-top: 1.5rem;
  }
  html.nc .hero-title { max-width: 14ch; }
  html.nc .team-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }
  html.nc .team-member {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
  }
  html.nc .nc-frame { inset: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html.nc .nc-scan { display: none; }
  html.nc .marquee-band { transform: none; }
  html.nc .team-member { transition: none; }
}
