/* MechNova — arch span + three piers. Palette from logo lime #90D431 on ink/white. */
:root {
  --lime:        #90D431;
  --lime-deep:   #6FB81F;
  --lime-ink:    #3F7A12;
  --ink:         #0E110C;
  --ink-2:       #161A13;
  --ink-3:       #1E2419;
  --paper:       #F6F7F1;
  --paper-alt:   #EBEEE3;
  --surface:     #FFFFFF;
  --border:      #D5DCC8;
  --text:        #121410;
  --muted:       #5C6354;
  --on-dark:     #F4F7EE;
  --on-dark-dim: #D0D6C4;
  --radius:      18px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.22,.61,.36,1);
  --shadow:      0 22px 44px -24px rgba(14,17,12,.28);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name, blockquote {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }

.container { 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(--lime); color: var(--ink); padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; 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(--lime); color: var(--ink);
  box-shadow: 0 10px 28px -12px rgba(144,212,49,.7);
}
.btn-ghost {
  background: transparent; color: var(--on-dark); border-color: rgba(244,247,238,.28);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14,17,12,.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(144,212,49,.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 8px; background: #fff; }
.brand-name { font-size: 1.15rem; font-weight: 600; color: var(--on-dark); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; color: var(--on-dark-dim); transition: color .2s var(--ease); }
.nav .nav-cta {
  color: var(--ink); background: var(--lime); border: 0; padding: 9px 18px; border-radius: 999px; font-weight: 600;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--on-dark); border-radius: 2px; 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 — full-viewport arch span */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(144,212,49,.16), transparent 62%),
    radial-gradient(ellipse 40% 30% at 80% 8%, rgba(144,212,49,.08), transparent 60%),
    linear-gradient(180deg, #0E110C 0%, #12160F 55%, #0E110C 100%);
}
.hero-copy {
  position: relative; z-index: 2;
  text-align: center;
  padding: 128px 24px 28px;
  max-width: 860px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime); margin: 0 0 18px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 600;
  color: var(--on-dark);
}
.hero h1 em {
  font-style: italic; font-weight: 500; color: var(--lime);
}
.hero-sub {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  color: var(--on-dark-dim);
  margin: 22px auto 0;
  max-width: 58ch;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.hero-bridge {
  position: relative; z-index: 1;
  width: 100%;
  margin-top: auto;
  line-height: 0;
}
.span-svg { width: 100%; height: auto; display: block; overflow: visible; }

.ground line { stroke: rgba(144,212,49,.22); stroke-width: 1; }
.ground path { fill: #0A0C09; }

.pier-shaft { fill: #1A2016; stroke: rgba(144,212,49,.35); stroke-width: 1.5; }
.pier-cap { fill: var(--lime); }
.piers-draw { transform-origin: 720px 492px; animation: pierRise 1.4s var(--ease) .2s both; }

.hangers line {
  stroke: rgba(144,212,49,.38);
  stroke-width: 1.25;
  animation: hangerDrop 1.6s var(--ease) both;
}
.hangers line:nth-child(odd) { animation-delay: .55s; }
.hangers line:nth-child(even) { animation-delay: .75s; }

.deck { stroke: rgba(244,247,238,.18); stroke-width: 2; }
.deck-beam { fill: url(#deckGrad); animation: deckSlide 1.8s var(--ease) .4s both; }

.arch-glow {
  stroke: rgba(144,212,49,.35);
  stroke-width: 14;
  filter: url(#softGlow);
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: drawArch 2.6s var(--ease) .15s forwards;
}
.arch {
  stroke: url(#limeStroke);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: drawArch 2.6s var(--ease) .15s forwards;
}
.arch-inner {
  stroke: rgba(144,212,49,.35);
  stroke-width: 1.5;
  stroke-dasharray: 8 10;
  animation: dashDrift 18s linear infinite;
}

.pulse-dot {
  fill: #F4F7EE;
  filter: url(#softGlow);
  offset-path: path("M80 352 Q720 20 1360 352");
  offset-rotate: 0deg;
  animation: travelArch 5.5s linear 2.4s infinite;
}
.deck-load {
  fill: var(--lime);
  animation: travelDeck 7s linear 2.8s infinite;
}

@keyframes drawArch { to { stroke-dashoffset: 0; } }
@keyframes pierRise {
  from { transform: scaleY(0.15); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes hangerDrop {
  from { transform: translateY(-18px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes deckSlide {
  from { transform: scaleX(0.2); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes travelArch {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}
@keyframes travelDeck {
  from { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  to { transform: translateX(1258px); opacity: 0; }
}
@keyframes dashDrift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -360; }
}

@media (prefers-reduced-motion: reduce) {
  .arch, .arch-glow { stroke-dashoffset: 0; animation: none; }
  .piers-draw, .hangers line, .deck-beam { animation: none; }
  .pulse-dot, .deck-load, .arch-inner, .pier-load { animation: none !important; }
}

/* Sections */
.section { padding: 88px 0; }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.kicker {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--lime-ink); font-weight: 600; margin: 0 0 12px;
}
.kicker-lime { color: var(--lime); }
.section-head h2, .about-copy h2, .faq-head h2, .contact-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 14px;
}
.lead { color: var(--muted); margin: 0; font-size: 1.05rem; }
.section-dark .lead, .section-dark p { color: var(--on-dark-dim); }
.section-dark h2 { color: var(--on-dark); }

/* Three piers */
.piers-section { background: var(--paper); padding-top: 72px; }
.pier-deck { position: relative; height: 18px; margin: 0 8px 0; }
.pier-deck-line {
  display: block; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--lime) 8%, var(--lime) 92%, transparent);
  box-shadow: 0 8px 18px -8px rgba(144,212,49,.7);
}

.piers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pier {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 22px 22px;
  padding: 36px 26px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pier-mid { transform: translateY(18px); }
.pier-cap-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: var(--lime);
}
.pier-load {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 0;
  background: linear-gradient(180deg, var(--lime), transparent);
  transform: translateX(-50%);
  animation: loadDrop 3.2s var(--ease) infinite;
}
.pier:nth-child(2) .pier-load { animation-delay: .5s; }
.pier:nth-child(3) .pier-load { animation-delay: 1s; }
@keyframes loadDrop {
  0% { height: 0; opacity: 0; }
  20% { opacity: 1; }
  70% { height: 72%; opacity: .7; }
  100% { height: 88%; opacity: 0; }
}
.pier-index {
  font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--lime-ink);
  margin: 8px 0 0; line-height: 1; font-weight: 600;
}
.pier h3 { font-size: 1.45rem; }
.pier > p { color: var(--muted); margin: 0; font-size: .98rem; flex: 1; }
.pier-list { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.pier-list li {
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--lime-ink);
  padding-left: 14px;
  position: relative;
}
.pier-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px;
  background: var(--lime); border-radius: 1px; transform: rotate(45deg);
}
.pier-foot {
  position: absolute; left: 18%; right: 18%; bottom: 0; height: 10px;
  background: var(--ink); border-radius: 6px 6px 0 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
}
.about-copy p + p { margin-top: 16px; }
.about-panel {
  background: var(--ink-2);
  border: 1px solid rgba(144,212,49,.22);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.about-panel-label {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--lime); font-weight: 600; margin: 0 0 18px;
}
.about-steps { list-style: none; display: grid; gap: 18px; counter-reset: step; }
.about-steps li {
  color: var(--on-dark-dim);
  padding-left: 44px;
  position: relative;
}
.about-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: "Fraunces", serif; color: var(--lime); font-weight: 600; font-size: 1.05rem;
}
.about-steps strong { color: var(--on-dark); display: block; font-weight: 600; margin-bottom: 4px; }

/* Fields as deck plates */
.fields-deck {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.field-plate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px 22px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field-mark {
  display: block; width: 36px; height: 6px; border-radius: 3px;
  background: var(--lime); margin-bottom: 16px;
}
.field-plate h3 { font-size: 1.18rem; margin-bottom: 8px; }
.field-plate p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Brand pull-quote */
.section-quote {
  background: var(--ink);
  color: var(--on-dark);
  padding: 100px 0;
}
.quote-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-mark {
  display: block; font-family: "Fraunces", serif; font-size: 5.5rem; line-height: .5;
  color: var(--lime); margin-bottom: 18px;
}
.quote-inner blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.45rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--on-dark);
}
.quote-inner em { font-style: italic; color: var(--lime); }
.quote-attr {
  margin: 28px 0 0;
  color: var(--on-dark-dim);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.faq-head { margin: 0; text-align: left; max-width: none; position: sticky; top: 100px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item.open { border-color: var(--lime-deep); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--text);
  font-family: "Fraunces", serif; font-size: 1.08rem; font-weight: 600; padding: 20px 22px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--lime-deep); border-radius: 2px;
  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(--muted); margin: 0; padding: 0 22px 22px; font-size: .98rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy p { margin: 0 0 18px; }
.contact-email {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--lime);
  border-bottom: 1px solid transparent;
  margin: 8px 0 18px;
  transition: border-color .2s, color .2s;
}
.contact-note { font-size: .95rem; }
.contact-note a { color: var(--lime); border-bottom: 1px solid rgba(144,212,49,.4); }
.contact-form {
  background: var(--ink-2);
  border: 1px solid rgba(144,212,49,.22);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--on-dark-dim); font-weight: 500; }
.field input, .field textarea {
  background: var(--ink); border: 1px solid rgba(244,247,238,.14); border-radius: 10px;
  color: var(--on-dark); padding: 12px 14px; font: inherit; font-size: 15px;
  width: 100%; resize: vertical; transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.contact-form .btn { justify-self: start; margin-top: 4px; }

/* Footer */
.site-footer {
  background: #0A0C09;
  color: var(--on-dark);
  padding: 54px 0 28px;
  border-top: 1px solid rgba(144,212,49,.16);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(244,247,238,.1);
}
.footer-tag { color: var(--on-dark-dim); margin: 14px 0 0; font-size: .95rem; max-width: 36ch; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--on-dark-dim); font-size: 15px; transition: color .2s; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--on-dark-dim); font-size: 14px; padding-top: 20px;
}

/* Reveal BEFORE hover transforms */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pier-mid.reveal.in { transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .pier-mid.reveal.in { transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    background: #A3E24A;
    box-shadow: 0 16px 32px -12px rgba(144,212,49,.8);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--lime);
    color: var(--lime);
  }
  .nav a:hover { color: var(--on-dark); }
  .nav .nav-cta:hover { background: #A3E24A; color: var(--ink); }
  .pier:hover {
    transform: translateY(-8px);
    border-color: var(--lime);
    box-shadow: 0 28px 48px -22px rgba(14,17,12,.35);
  }
  .js .pier-mid.reveal.in:hover { transform: translateY(-8px); }
  .field-plate:hover {
    transform: translateY(-6px);
    border-color: var(--lime);
    box-shadow: var(--shadow);
  }
  .faq-q:hover { color: var(--lime-ink); }
  .faq-item:hover { box-shadow: var(--shadow); }
  .contact-email:hover { border-bottom-color: var(--lime); }
  .footer-nav a:hover { color: var(--lime); }
  .contact-form .btn-primary:hover { transform: translateY(-2px); }
  .about-panel:hover { border-color: rgba(144,212,49,.5); }
}

/* Responsive */
@media (max-width: 980px) {
  .piers-grid { grid-template-columns: 1fr; gap: 18px; max-width: 520px; margin: 0 auto; }
  .js .pier-mid.reveal.in, .pier-mid { transform: none; }
  .fields-deck { grid-template-columns: 1fr 1fr; }
  .about-grid, .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(14,17,12,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(144,212,49,.18);
    padding: 16px 24px 24px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid rgba(244,247,238,.1); color: var(--on-dark); }
  .nav .nav-cta { text-align: center; margin-top: 10px; border: 0; }
  .hero { min-height: auto; }
  .hero-copy { padding: 108px 20px 16px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .section { padding: 68px 0; }
  .section-quote { padding: 72px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-copy { padding: 104px 20px 12px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .fields-deck { grid-template-columns: 1fr; }
  .pier { padding: 32px 20px 44px; }
  .footer-inner { flex-direction: column; }
  .quote-mark { font-size: 4rem; }
  .contact-form { padding: 22px 18px; }
  .about-panel { padding: 22px 18px; }
}
