:root {
  --bg: #07090d;
  --bg1: #0c1118;
  --bg2: #121a25;
  --bg3: #1b2533;

  --line: #243246;
  --line-soft: #18222f;

  --white: #ffffff;
  --light: #e8e6dc;
  --muted: #aab2c0;

  --red: #d42b2b;
  --amber: #f1a340;

  --maxw: 1380px;

  --font-display: "Saira Condensed", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.contact-cta:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

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

section {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* wp template */

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-content h1 {
  font-size: 48px;
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content p,
.page-content li {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.page-content ul {
  padding-left: 24px;
}

.page-content a {
  text-decoration: underline;
}

/* desktop navi */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 9, 13, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background-image: url(../images/ravensafe_logo.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--red);
}

.main-nav a:hover::after {
  text-decoration: underline;
}

/* hero */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-image: url(../images/grid_bg_2.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 140px);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
}

/* spec box */

.spec-box {
  border: 1px solid var(--line);
  background: rgba(12, 17, 24, 0.65);
  padding: 40px;
  backdrop-filter: blur(8px);
}

.spec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.spec-item small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 11px;
}

.spec-item strong {
  font-family: var(--font-display);
  font-size: 26px;
}

/* section headers */

.section-head {
  margin-bottom: 60px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 6vw, 80px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-head h2 span {
  color: var(--red);
}

.section-head p {
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}

.sec-num {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

.sec-num span {
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  border: 1px solid var(--line);
  padding: 36px;
  background: var(--bg2);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

/* footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  align-items: flex-end;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-meta{
  color: var(--red);
}

.footer-links{
  text-decoration: underline;
  display: flex;
  gap: 24px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo img {
  display: block;
  width: 200px;
  height: auto;
}

/* at a glance */

.glance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.glance-left h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 32px;
}

.glance-list {
  list-style: none;
}

.glance-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: baseline;
}

.glance-list li .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--red);
}

.glance-list li p {
  font-size: 17px;
  color: var(--light);
  line-height: 1.5;
}

.glance-list li p strong {
  color: var(--light);
  font-weight: 600;
}

.glance-list li:last-child {
  border-bottom: 0;
}

/* cards */

.deliver-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 8px;
}

.deliver-card-head {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.deliver-card-head h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deliver-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.deliver-row .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deliver-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.deliver-row .name small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--red);
}

.deliver-row:last-child {
  border-bottom: 0;
}

/* platform */

.platform {
  background: var(--bg);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  background: var(--bg);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product:hover {
  background: var(--bg2);
  transform: translateY(-1px);
}

.id-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.product .visual {
  width: 100%;
  height: 220px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg1);
}

.product h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}

.product .acro {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product .desc {
  flex-grow: 1;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.product .features {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.product .features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.product .features li::before {
  content: ">";
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* MTPS Featured */

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.featured-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}

.featured-visual img {
    position: absolute;
    bottom: -2%;
    width: 120%;
    height: auto;
}

.featured-content .ftag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 12px;
  border: 1px solid var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
}

.featured-content h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.featured-content h2 em {
  font-style: normal;
  color: var(--amber);
}

.featured-content > p {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.fquote {
  padding: 20px 24px;
  border-left: 3px solid var(--red);
  background: rgba(212, 43, 43, 0.06);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* MTPS */

#mtps {
  background-image: linear-gradient(to bottom, #07090d, #080b11, #0a0d14, #0b0f17, #0c1119);
}

.panel {
  margin-top: 2px;
  border: 1px solid var(--line);
  background-color: var(--bg2);
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 2px;
  font-family: var(--font-body);
  text-transform: uppercase;
}

.panel-item {
  padding: 24px;
}

.panel-item p {
  margin: 0;
}

.panel-item:not(:last-child) {
  border-bottom: 1px solid var(--line);
}


/* applications */

.applications {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  background: #0c1119;
}

.applications .m-card {
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.applications .m-card span {
  color: var(--red);
}

.applications h3 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.applications p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.applications .mfoot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
}

/* engineering */

.engineering {
  background: var(--bg);
}

.eng-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 80px;
}

.eng-stats div {
  background: var(--bg);
  padding: 36px 28px;
}

.eng-stats div .num {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  color: var(--red);
}

.eng-stats div .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .eng-stats div .lbl {
    font-size: 14px;
  }
}

.eng-stats div .desc {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .eng-stats div .desc {
    font-size: 16px;
  }
}

.team-table {
  background: var(--bg2);
  border: 1px solid var(--line);
}

.team-table-row {
  display: grid;
  grid-template-columns: 280px 80px 1fr;
  gap: 32px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.team-table-row:last-child {
  border-bottom: 0;
}

.team-table-row .dept {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .team-table-row .dept {
    font-size: 28px;
  }
}

.team-table-row .count {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--red);
}

.team-table-row .disc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .team-table-row .disc {
    font-size: 16px;
  }
}

.team-head {
  padding: 14px 32px !important;
  background: var(--bg3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-head .dept,
.team-head .count,
.team-head .disc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--muted);
}

/* NEW - Engi Card */

.engi-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--line);
  background: #0c1119;
}

.engi-card h3 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}

.engi-card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* timeline */

.timeline-section {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: "EST. 2018";
  position: absolute;
  top: 30%;
  right: -2%;
  font-family: var(--font-display);
  font-size: clamp(140px, 18vw, 280px);
  font-weight: 900;
  color: var(--bg1);
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tl-item {
  padding: 32px 20px;
  border-right: 1px solid var(--line-soft);
  position: relative;
  min-height: 220px;
}
.tl-item:last-child { border-right: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px; height: 11px;
  background: var(--bg-0);
  border: 2px solid var(--red);
  border-radius: 50%;
}
.tl-item .yr {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
  margin-top: 12px;
}
.tl-item .ev {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .tl-item:nth-child(4) { border-right: 0; }
  .tl-item:nth-child(n+5) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .tl-item:nth-child(2n) { border-right: 0; }
  .tl-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* leadership */

#leadership {
  background-image: linear-gradient(to bottom, #07090d, #080b11, #0a0d14, #0b0f17, #0c1119);
}

.leadership {
  background: var(--bg1);
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.leader {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 32px;
  background: var(--bg1);
}

.leader::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 8px;
  height: 8px;
  background: var(--red);
}

.leader .role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
}

.leader h4 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.leader ul {
  list-style: none;
  margin-top: 8px;
}

.leader ul li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.leader ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
}

/* contact */

.contact {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 80px;
  align-items: start;
}

.contact-content {
  display: flex;
  flex-direction: column;
}

.contact-headline {
  margin-bottom: 32px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.contact-headline em {
  font-style: normal;
  color: var(--red);
}

.contact-content > p {
  max-width: 540px;
  margin-bottom: 0;
  font-size: 17px;
  color: var(--muted);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 32px 0 40px;
  padding: 16px 28px;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contact-cta:hover {
  background: var(--red);
  color: #fff;
}

.discussion {
  margin-top: 12px;
}

.discussion-label {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.discussion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.discussion-list span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}

.contacts-card {
  background: var(--bg1);
  border: 1px solid var(--line);
  padding: 36px;
}

.contacts-card-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.contact-person {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-person:last-child {
  border-bottom: none;
}

.contact-person .name {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1;
}

.contact-person .title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-person a {
  display: block;
  margin: 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-person a:hover {
  color: var(--red);
}

.hq-address {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}


/* animated fade */

.fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* mobs navi */

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.mobile-nav {
  position: fixed;
  top: 80px; 
  left: 0;
  width: 100%;
  height: calc(100dvh - 80px);
  background: var(--bg);
  border-top: 1px solid var(--bg3);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0px);
  z-index: 999;
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding: 18px 24px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--bg3);
}

.mobile-nav a:hover {
  color: var(--white);
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }
}


/* responsive */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .glance {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .deliver-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .eng-stats {
    grid-template-columns: 1fr;
  }

  .eng-stats div {
    padding: 20px 24px;
  }

  .team-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .team-head {
    display: none;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contacts-card {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .main-nav {
    display: none;
  }

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

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

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

  .hero h1 {
    font-size: clamp(56px, 14vw, 72px);
  }
}

@media (max-width: 720px) {
  .section-head {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .applications-grid {
    grid-template-columns: 1fr;
  }

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