/* =========================================================
   ZGS Precision Engineering & Automation
   Static cPanel build
   ========================================================= */

:root {
  --black: #0a0b0b;
  --black-soft: #111313;
  --paper: #efeee8;
  --paper-soft: #e7e5dc;
  --warm: #d9d4c7;
  --lime: #c9f14b;
  --white: #f7f7f2;
  --text-muted-dark: #a5a8a2;
  --text-muted-light: #5a5f59;
  --line-dark: rgba(255,255,255,.16);
  --line-light: rgba(10,11,11,.18);
  --shell: min(1440px, calc(100vw - 72px));
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.dark-section {
  color: var(--white);
  background: var(--black);
}

.light-section {
  color: var(--black);
  background: var(--paper);
}

.warm-section {
  color: var(--black);
  background: var(--warm);
}

.accent-section {
  color: var(--black);
  background: var(--lime);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--black);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  color: var(--white);
  background: rgba(10,11,11,.92);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-zgs {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.09em;
  line-height: 1;
}

.brand-divider {
  width: 1px;
  height: 32px;
  margin: 0 16px;
  background: rgba(255,255,255,.28);
}

.brand-name {
  color: #d6d8d2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
  font-size: 13px;
}

.main-nav > a {
  position: relative;
  padding: 12px 0;
}

.main-nav > a:not(.quote-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}

.main-nav > a:not(.quote-link):hover::after {
  right: 0;
}

.quote-link {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px 16px !important;
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
}

.quote-link:hover {
  background: var(--white);
}

.menu-button {
  display: none;
}

/* ---------- Typography ---------- */

.eyebrow,
.section-kicker,
.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin: 0 0 25px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 500;
}

h1 {
  margin-bottom: 36px;
  font-size: clamp(62px, 7.35vw, 116px);
  line-height: .87;
  letter-spacing: -.066em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 6.1vw, 94px);
  line-height: .93;
  letter-spacing: -.058em;
}

h1 .serif-line,
h2 span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

h1 .serif-line {
  color: #c8c8c1;
}

h2 span {
  color: #666962;
}

.dark-heading h2 span {
  color: #b6b8b2;
}

.section-heading {
  padding-bottom: 74px;
}

.two-column-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: end;
}

.two-column-heading > p {
  max-width: 440px;
  margin: 0 0 5px auto;
  color: var(--text-muted-light);
  font-size: 15px;
  line-height: 1.7;
}

.dark-heading > p {
  color: var(--text-muted-dark);
}

/* ---------- Buttons ---------- */

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-width: 224px;
  padding: 17px 18px;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
}

.light-button {
  color: var(--black);
  background: var(--white);
}

.dark-button {
  color: var(--white);
  background: var(--black);
}

.dark-button:hover {
  background: #202323;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.38);
  font-size: 12px;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-layout {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  border-inline: 1px solid var(--line-dark);
}

.hero-copy {
  padding: clamp(72px, 8vw, 124px) clamp(32px, 4vw, 68px) 68px 0;
}

.hero-copy .eyebrow {
  color: #c2c4bf;
}

.hero-description {
  max-width: 680px;
  margin-bottom: 46px;
  color: #afb2ad;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid var(--line-dark);
  background:
    radial-gradient(circle at 58% 48%, rgba(201,241,75,.13), transparent 26%),
    radial-gradient(circle at 52% 48%, rgba(255,255,255,.06), transparent 42%),
    #0c0d0d;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: .52;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
}

.visual-axis {
  position: absolute;
  background: rgba(201,241,75,.18);
}

.visual-axis-x {
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
}

.visual-axis-y {
  top: 7%;
  bottom: 7%;
  left: 52%;
  width: 1px;
}

.part-shadow {
  position: absolute;
  left: 53%;
  top: 57%;
  width: 58%;
  aspect-ratio: 1.65;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: radial-gradient(ellipse, rgba(0,0,0,.85), transparent 66%);
  filter: blur(14px);
}

.precision-part {
  position: absolute;
  left: 52%;
  top: 50%;
  width: min(30vw, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-14deg);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(255,255,255,.14) 0 1px,
      rgba(255,255,255,.025) 2px 8px);
  box-shadow:
    0 0 0 22px rgba(255,255,255,.018),
    0 0 0 23px rgba(255,255,255,.11),
    0 0 85px rgba(201,241,75,.08);
}

.precision-part::before,
.precision-part::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.precision-part::before {
  inset: 11%;
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 0 40px rgba(255,255,255,.03);
}

.precision-part::after {
  inset: 29%;
  background: var(--lime);
  box-shadow: inset 0 0 0 17px rgba(10,11,11,.08);
}

.outer-groove {
  position: absolute;
  inset: 21%;
  z-index: 2;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.32);
}

.inner-disc {
  position: absolute;
  inset: 38%;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  font-size: clamp(11px, 1vw, 16px);
  font-weight: 900;
  letter-spacing: -.08em;
}

.inner-cut {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(10,11,11,.30);
  border-radius: 50%;
}

.bolt {
  position: absolute;
  z-index: 3;
  width: 5.5%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: #0d0f0f;
}

.bolt-1 { left: 47%; top: 6%; }
.bolt-2 { right: 7%; top: 47%; }
.bolt-3 { left: 47%; bottom: 6%; }
.bolt-4 { left: 7%; top: 47%; }

.tech-tag {
  position: absolute;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(8,9,9,.74);
  color: #cfd1cc;
  font-family: "Courier New", monospace;
  font-size: 9px;
  letter-spacing: .06em;
}

.tag-1 { left: 7%; top: 18%; }
.tag-2 { right: 6%; bottom: 20%; }
.tag-3 { right: 4%; top: 48%; }
.tag-4 { left: 11%; bottom: 14%; }

.hero-footer-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, .62fr);
  border: 1px solid var(--line-dark);
  border-bottom: 0;
}

.scale-mark,
.hero-stat {
  min-height: 172px;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
}

.hero-stat:last-child {
  border-right: 0;
}

.scale-mark {
  display: flex;
  align-items: flex-end;
  gap: 21px;
  padding-left: 0;
}

.scale-zgs {
  font-size: 57px;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.10em;
}

.scale-copy {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-label {
  color: #898d87;
}

.stat-value {
  margin-top: auto;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: -.05em;
}

.stat-caption {
  margin-top: 8px;
  color: #9fa29c;
  font-size: 11px;
}

/* ---------- Proof ---------- */

.proof-section {
  border-bottom: 1px solid var(--line-light);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-light);
}

.proof-grid article {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 26px;
  border-right: 1px solid var(--line-light);
}

.proof-grid strong {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.proof-grid span {
  max-width: 210px;
  color: var(--text-muted-light);
  font-size: 11px;
  line-height: 1.5;
}

/* ---------- Capabilities ---------- */

.capabilities {
  padding: 145px 0 0;
}

.capability-table {
  border-top: 1px solid var(--line-light);
}

.capability-row {
  display: grid;
  grid-template-columns: .18fr 1.12fr .70fr;
  gap: 34px;
  padding: 52px 0 56px;
  border-bottom: 1px solid var(--line-light);
}

.item-number {
  padding-top: 7px;
  font-size: 11px;
  font-weight: 700;
}

.capability-main h3 {
  margin: 0 0 20px;
  font-size: clamp(29px, 3.1vw, 48px);
  line-height: 1;
  letter-spacing: -.045em;
}

.capability-main p {
  max-width: 690px;
  margin: 0;
  color: var(--text-muted-light);
  font-size: 14px;
  line-height: 1.7;
}

.capability-row ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-row li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(10,11,11,.12);
  font-size: 11px;
}

.capability-row li::before {
  content: "↳";
  margin-right: 15px;
  color: #8a8d86;
}

/* ---------- Industries ---------- */

.industries {
  padding: 145px 0 116px;
}

.industries .section-heading {
  border-bottom: 1px solid var(--line-dark);
}

.industry-item {
  display: grid;
  grid-template-columns: 86px 1fr 42px;
  align-items: center;
  min-height: 110px;
  border-bottom: 1px solid var(--line-dark);
  transition: color .22s ease, background .22s ease, padding .22s ease;
}

.industry-item span {
  color: #9ea19b;
  font-size: 10px;
  font-weight: 700;
}

.industry-item strong {
  font-size: clamp(27px, 4vw, 62px);
  font-weight: 400;
  letter-spacing: -.048em;
}

.industry-item i {
  font-size: 22px;
  font-style: normal;
  text-align: right;
}

.industry-item:hover {
  margin-inline: calc((100vw - var(--shell)) / -2);
  padding-inline: calc((100vw - var(--shell)) / 2);
  color: var(--black);
  background: var(--lime);
}

.industry-item:hover span {
  color: var(--black);
}

/* ---------- Process ---------- */

.process {
  padding: 145px 0 128px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}

.process-card {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 29px;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.process-card > span {
  font-size: 10px;
  font-weight: 700;
}

.process-card h3 {
  margin: 0 0 14px;
  font-size: clamp(29px, 2.65vw, 43px);
  line-height: 1;
  letter-spacing: -.045em;
}

.process-card p {
  max-width: 230px;
  margin: 0;
  color: var(--text-muted-light);
  font-size: 11px;
  line-height: 1.55;
}

/* ---------- About ---------- */

.about {
  padding: 142px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(54px, 10vw, 150px);
}

.about-body {
  padding-top: 50px;
}

.about-body p {
  color: #444842;
  font-size: 14px;
  line-height: 1.72;
}

.about-body .about-lead {
  margin-bottom: 34px;
  color: var(--black);
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.42;
  letter-spacing: -.025em;
}

/* ---------- Contact ---------- */

.contact {
  padding: 136px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(54px, 10vw, 150px);
}

.contact h2 {
  font-size: clamp(52px, 6.1vw, 92px);
}

.contact h2 span {
  color: rgba(10,11,11,.58);
}

.contact-body {
  padding-top: 48px;
}

.contact-body > p:first-child {
  max-width: 650px;
  margin-bottom: 40px;
  font-size: 17px;
  line-height: 1.62;
}

.formats {
  margin: 16px 0 0;
  font-family: "Courier New", monospace;
  font-size: 10px;
  letter-spacing: .04em;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 58px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.footer-title {
  font-size: clamp(27px, 3vw, 43px);
  line-height: .98;
  letter-spacing: -.048em;
}

.footer-grid > p {
  max-width: 450px;
  margin: 0 0 0 auto;
  color: #92958f;
  font-size: 11px;
  line-height: 1.6;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  margin-top: 42px;
  border-top: 1px solid var(--line-dark);
  color: #878a85;
  font-size: 10px;
}

.footer-bottom a {
  color: var(--white);
}

/* ---------- Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 44px, 1180px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .precision-part {
    width: min(55vw, 430px);
  }

  .hero-footer-grid {
    grid-template-columns: 1fr repeat(3, .65fr);
  }

  .two-column-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .two-column-heading > p {
    margin-left: 0;
  }

  .about-body,
  .contact-body {
    padding-top: 0;
  }
}

@media (max-width: 880px) {
  :root {
    --header-height: 72px;
    --shell: calc(100vw - 32px);
  }

  .brand-name,
  .brand-divider {
    display: none;
  }

  .menu-button {
    position: relative;
    z-index: 1100;
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    background: transparent;
  }

  .menu-line {
    display: block;
    width: 19px;
    height: 1px;
    background: var(--white);
    transition: transform .2s ease;
  }

  .menu-button[aria-expanded="true"] .menu-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-line:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 16px;
    background: var(--black);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    padding: 22px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 23px;
    letter-spacing: -.035em;
  }

  .main-nav > a:not(.quote-link)::after {
    display: none;
  }

  .main-nav .quote-link {
    margin-top: 26px;
    padding: 18px !important;
    font-size: 15px;
  }

  .hero-copy {
    padding-top: 82px;
    padding-right: 0;
  }

  h1 {
    font-size: clamp(54px, 14vw, 83px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scale-mark {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero-stat:nth-of-type(3) {
    border-right: 0;
  }

  .hero-stat:last-child {
    border-top: 1px solid var(--line-dark);
  }

  .proof-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid article:nth-child(2) {
    border-right: 0;
  }

  .proof-grid article:nth-child(n+3) {
    border-top: 1px solid var(--line-light);
  }

  .capability-row {
    grid-template-columns: 54px 1fr;
  }

  .capability-row ul {
    grid-column: 2;
    max-width: 440px;
  }

  .industry-item {
    grid-template-columns: 52px 1fr 28px;
  }
}

@media (max-width: 580px) {
  :root {
    --shell: calc(100vw - 24px);
  }

  h2 {
    font-size: 45px;
  }

  .hero-layout {
    border-inline: 0;
  }

  .hero-copy {
    padding-top: 62px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: 49px;
    line-height: .91;
  }

  .hero-description {
    font-size: 15px;
  }

  .primary-button {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    min-height: 390px;
  }

  .precision-part {
    width: 72vw;
  }

  .hero-footer-grid {
    grid-template-columns: 1fr;
    border-inline: 0;
  }

  .scale-mark,
  .hero-stat {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  .proof-grid,
  .process-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .proof-grid article,
  .process-card {
    border-right: 0;
  }

  .proof-grid article:nth-child(n+2) {
    border-top: 1px solid var(--line-light);
  }

  .capabilities,
  .industries,
  .process,
  .about,
  .contact {
    padding-top: 88px;
  }

  .industries,
  .process {
    padding-bottom: 88px;
  }

  .section-heading {
    padding-bottom: 48px;
  }

  .capability-row {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .capability-main h3 {
    font-size: 29px;
  }

  .industry-item {
    min-height: 90px;
    grid-template-columns: 36px 1fr 24px;
  }

  .industry-item strong {
    font-size: 29px;
  }

  .industry-item:hover {
    margin-inline: 0;
    padding-inline: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid > p {
    margin-left: 0;
  }

  .footer-bottom {
    gap: 18px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
