/* Mechvanta Engineering — plant node grid + status chips
   Palette from logo: charcoal gear, crimson orbit, paper white */

:root {
  --void:     #121010;
  --ink:      #1F1D1D;
  --ink-2:    #2A2626;
  --panel:    #262222;
  --crimson:  #911515;
  --ember:    #C43A3A;
  --deep:     #751010;
  --steel:    #A09F9F;
  --steel-2:  #616060;
  --paper:    #F7F4F4;
  --snow:     #FEFDFD;
  --text:     #F4EEEE;
  --muted:    #D4CBCB;
  --line:     rgba(160, 159, 159, .28);
  --ease:     cubic-bezier(.22, .61, .36, 1);
  --maxw:     1180px;
  --display:  "Rajdhani", "Segoe UI", sans-serif;
  --sans:     "Public Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, .mail, .chip-k, .nid, .method-chip, .kicker {
  font-family: var(--display);
  margin: 0;
  letter-spacing: .02em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.35rem, 6vw, 4.15rem); font-weight: 700; color: var(--snow); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--crimson); color: var(--snow); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 14px;
}
.kicker.dark { color: var(--crimson); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary {
  background: var(--crimson);
  color: var(--snow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(18, 16, 16, .88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 3px; background: var(--snow); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name strong {
  font-size: 18px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.brand-name span {
  font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--steel); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--display);
  font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav .nav-cta {
  color: var(--snow);
  border: 1px solid var(--crimson);
  padding: 8px 16px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--snow); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — node diagram */
.hero {
  position: relative;
  padding: 120px 0 56px;
  background:
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(145, 21, 21, .18), transparent 60%),
    var(--void);
  overflow: hidden;
}
.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 36px 40px;
  align-items: center;
}
.lede {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}

/* Status chips */
.chip-bus {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 34px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(145, 21, 21, .45);
  background: rgba(31, 29, 29, .7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}
.chip-k {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--snow);
}
.chip-v {
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember);
}
.chip-link {
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--steel-2));
  position: relative;
}
.chip-link::after {
  content: "";
  position: absolute; right: -3px; top: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson);
}
.led {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E24A4A;
  box-shadow: 0 0 0 0 rgba(196, 58, 58, .7);
  animation: led 1.8s ease-in-out infinite;
}
.led-2 { animation-delay: .4s; background: #C43A3A; }
.led-3 { animation-delay: .9s; background: #911515; }

@keyframes led {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196, 58, 58, .55); }
  50% { opacity: .45; box-shadow: 0 0 0 7px rgba(196, 58, 58, 0); }
}

.hero-graph { position: relative; min-width: 0; }
.node-svg {
  width: 100%; height: auto;
  display: block;
  background: rgba(31, 29, 29, .5);
  border: 1px solid var(--line);
}
.node rect {
  fill: #1F1D1D;
  stroke: #A09F9F;
  stroke-width: 1.4;
}
.node text {
  fill: #FEFDFD;
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}
.node text.sub {
  fill: #A09F9F;
  font-size: 9px;
  letter-spacing: .2em;
}
.halo {
  fill: none;
  stroke: #911515;
  stroke-width: 1.2;
  opacity: .55;
  transform-origin: center;
  animation: halo 2.8s ease-in-out infinite;
}
.halo.h2 { animation-delay: .3s; }
.halo.h3 { animation-delay: .6s; }
.halo.h4 { animation-delay: .9s; }
.halo.h5 { animation-delay: 1.2s; }
.halo.h6 { animation-delay: .2s; }
.halo.h7 { animation-delay: .8s; }
.halo.h8 { animation-delay: 1.4s; }

@keyframes halo {
  0%, 100% { opacity: .25; transform: scale(.92); }
  50% { opacity: .9; transform: scale(1.12); }
}

.edge.draw {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw 2.2s var(--ease) forwards;
}
.edge.d2 { animation-delay: .15s; }
.edge.d3 { animation-delay: .3s; }
.edge.d4 { animation-delay: .45s; }
.edge.d5 { animation-delay: .6s; }
.edge.d6 { animation-delay: .75s; }
.edge.d7 { animation-delay: .9s; }
.edge.d8 { animation-delay: 1.05s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.flow {
  stroke-dasharray: 10 14;
  animation: flow 1.6s linear infinite;
}
.flow.f2 { animation-duration: 2s; animation-delay: .2s; }
.flow.f3 { animation-duration: 1.4s; animation-delay: .4s; }
.flow.f4 { animation-duration: 2.2s; }
.flow.f5 { animation-duration: 1.8s; animation-delay: .6s; }

@keyframes flow {
  to { stroke-dashoffset: -48; }
}

.graph-cap {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 10px;
}

/* About band */
.band {
  padding: 88px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.band-inner {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  align-items: start;
}
.rail {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  min-height: 100%;
  padding-top: 8px;
}
.rail-id {
  font-family: var(--display);
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--steel); writing-mode: vertical-rl; transform: rotate(180deg);
}
.rail-line {
  width: 2px; flex: 1; min-height: 80px;
  background: linear-gradient(var(--crimson), var(--steel-2));
  position: relative;
}
.rail-line::before, .rail-line::after {
  content: ""; position: absolute; left: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 4px rgba(145, 21, 21, .2);
}
.rail-line::before { top: 0; }
.rail-line::after { bottom: 0; }
.band-copy h2 { color: var(--snow); max-width: 22ch; }
.band-copy p { color: var(--muted); max-width: 68ch; margin-top: 16px; }

/* Sectors — light paper, connected bus */
.sectors {
  background: var(--paper);
  color: var(--ink);
  padding: 88px 0 96px;
}
.sec-head { max-width: 52ch; margin-bottom: 12px; }
.sec-head p:last-child { color: var(--steel-2); margin-top: 12px; }
.sec-head.light h2 { color: var(--snow); }
.sector-bus {
  position: relative;
  height: 28px;
  margin: 8px 0 4px;
}
.bus-bar {
  position: absolute; left: 8%; right: 8%; top: 50%;
  height: 3px;
  background: var(--crimson);
}
.bus-bar::before, .bus-bar::after {
  content: "";
  position: absolute; top: -5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--crimson);
}
.bus-bar::before { left: 0; }
.bus-bar::after { right: 0; }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sector {
  position: relative;
  background: var(--snow);
  border: 1px solid #E4DCDC;
  padding: 28px 24px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.sector::before, .sector::after {
  content: "";
  position: absolute; width: 10px; height: 10px;
  border: 1.5px solid var(--crimson);
}
.sector::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.sector::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.sector .nid {
  display: block;
  font-size: 11px; letter-spacing: .2em; color: var(--crimson);
  margin-bottom: 14px;
}
.sector .dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--crimson);
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px rgba(145, 21, 21, .12);
  animation: led 2.4s ease-in-out infinite;
}
.sector h3 { margin-bottom: 10px; }
.sector p { color: var(--steel-2); }

/* Methods */
.methods {
  background: var(--void);
  color: var(--text);
  padding: 88px 0 96px;
  border-top: 1px solid var(--line);
}
.method-stack {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-left: 2px solid var(--crimson);
}
.method {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 26px 0 26px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.method:last-of-type { border-bottom: 0; }
.method::before {
  content: "";
  position: absolute; left: -6px; top: 34px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--crimson);
}
.method-id {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 22px; font-weight: 700; color: var(--steel);
}
.method-body h3 { color: var(--snow); margin-bottom: 8px; }
.method-body p { color: var(--muted); max-width: 58ch; }
.method-chip {
  align-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(145, 21, 21, .5);
  font-size: 11px; letter-spacing: .16em;
  color: var(--ember);
  white-space: nowrap;
}

.pull {
  margin: 48px 0 0;
  padding: 32px 32px 28px;
  border-left: 4px solid var(--crimson);
  background: var(--ink-2);
}
.pull p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--snow);
  max-width: 34ch;
}
.pull cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--display);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--ember);
}

/* FAQ */
.faq-sec {
  background: var(--paper);
  color: var(--ink);
  padding: 88px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px 56px;
  align-items: start;
}
.faq-lead p:last-child { color: var(--steel-2); margin-top: 12px; max-width: 36ch; }
.faq-item { border-bottom: 1px solid #E4DCDC; }
.faq-item:first-child { border-top: 1px solid #E4DCDC; }
.faq-q {
  width: 100%; background: none; border: 0; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; cursor: pointer; color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 600;
}
.faq-ico { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--crimson); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--steel-2); margin: 0 0 18px; padding-right: 20px; }

/* Contact */
.contact {
  background: var(--ink);
  color: var(--text);
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px 48px;
  align-items: center;
}
.contact-copy h2 { color: var(--snow); max-width: 18ch; }
.contact-copy p:last-child { color: var(--muted); margin-top: 14px; max-width: 44ch; }
.contact-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.contact-card .nid {
  font-size: 11px; letter-spacing: .2em; color: var(--ember); margin-bottom: 12px;
}
.mail {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: var(--snow);
  word-break: break-all;
}
.addr { color: var(--muted); margin: 14px 0 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer {
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 42px 0 28px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-tag { color: var(--steel); margin-top: 10px; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.footer-nav a {
  font-family: var(--display);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 18px;
  color: var(--steel);
  font-size: 14px;
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .led, .halo, .flow, .edge.draw, .pkt, .sector .dot { animation: none !important; }
  .chip-link::after { animation: none; }
}

/* Hover AFTER .reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--snow); }
  .nav .nav-cta:hover {
    background: var(--crimson);
    transform: translateY(-2px);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--ember);
    box-shadow: 0 14px 28px -12px rgba(145, 21, 21, .7);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--crimson);
    color: var(--snow);
  }
  .sector:hover {
    transform: translateY(-6px);
    border-color: var(--crimson);
    box-shadow: 0 18px 40px -24px rgba(31, 29, 29, .45);
  }
  .method:hover { transform: translateY(-4px); }
  .contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--crimson);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55);
  }
  .faq-q:hover { color: var(--crimson); }
  .footer-nav a:hover { color: var(--ember); }
  .mail:hover { color: var(--ember); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-board { grid-template-columns: 1fr; gap: 28px; }
  .hero-graph { order: -1; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-inner { grid-template-columns: 1fr; }
  .method { grid-template-columns: 64px 1fr; }
  .method-chip { grid-column: 2; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(18, 16, 16, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-cta { text-align: center; margin-top: 12px; }
  .sector-grid { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; }
  .rail { flex-direction: row; gap: 10px; min-height: 0; }
  .rail-id { writing-mode: horizontal-tb; transform: none; }
  .rail-line { width: 40px; height: 2px; min-height: 0; flex: 1; }
  .rail-line::before, .rail-line::after {
    top: -4px; left: auto;
  }
  .rail-line::before { left: 0; }
  .rail-line::after { right: 0; bottom: auto; }
  .hero { padding: 108px 0 40px; }
  .chip-link { display: none; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 100px 0 36px; }
  .band, .sectors, .methods, .faq-sec, .contact { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .chip-bus { gap: 8px; }
  .method { grid-template-columns: 1fr; padding-left: 22px; gap: 10px; }
  .method-chip { justify-self: start; }
  .pull { padding: 24px 18px; }
  .contact-card { padding: 24px 18px; }
  .header-inner { height: 64px; }
  .nav { inset: 64px 0 auto 0; }
}
