/* ==========================================================================
   Robust Instruments
   Design tokens — steel gray / industrial orange
   ========================================================================== */

@font-face {
  font-family: 'Roboto';
  src: url('../assets/fonts/Roboto-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../assets/fonts/Roboto-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../assets/fonts/Roboto-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-dark: #14161A;
  --bg-darker: #0E1013;
  --bg-light: #FAF9F7;
  --bg-tint: #EFEDE9;
  --ink: #1A1D21;
  --ink-soft: #4C5560;
  --ink-mute: #6E7680;
  --inverse: #F4F2EF;
  --inverse-soft: #B8B4AE;
  --inverse-mute: #96938E;
  --accent: #F5951F;
  --accent-2: #B45309;
  --accent-dark-text: #F7A845;
  --grad: linear-gradient(120deg, #F7A845 0%, #D9740C 100%);
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-light: rgba(26, 29, 33, 0.10);
  --font-sans: 'Roboto', Arial, 'Helvetica Neue', Helvetica, sans-serif;
  --radius: 8px;
  --nav-h: 68px;
}

/* Base ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, p, ul { margin: 0; }

::selection { background: rgba(245, 149, 31, 0.32); }

:focus-visible { outline: 2px solid #E8830F; outline-offset: 3px; border-radius: 4px; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.container.narrow { max-width: 800px; }

.skip-link {
  position: absolute; top: -48px; left: 16px; z-index: 200;
  background: #fff; color: var(--ink);
  padding: 10px 18px; border-radius: 6px;
  font-weight: 700; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Type patterns ----------------------------------------------------------- */

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin-right: 12px;
  vertical-align: 0.3em;
}

h1 {
  font-size: clamp(42px, 7.5vw, 86px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--inverse);
}

h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.45em;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  color: #23282E;
  margin-top: 14px;
}

.body-copy {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-top: 20px;
}

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

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  border-radius: 6px;
  padding: 17px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-small { padding: 11px 18px; font-size: 12px; }

.btn-primary {
  color: #17130B;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(216, 116, 12, 0.30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(216, 116, 12, 0.40); }

.btn-ghost {
  color: var(--inverse);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.5); }

.text-link {
  display: inline-block;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-2);
  text-decoration: none;
}
.text-link span { display: inline-block; transition: transform 0.25s ease; }
.text-link:hover { text-decoration: underline; }
.text-link:hover span { transform: translateX(5px); }

/* Navigation ---------------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(20, 22, 26, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line-dark);
}

.nav-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo img { height: 38px; width: auto; }

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #EDEAE5;
  white-space: nowrap;
}
.wordmark b { color: var(--accent); font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}
.nav-links a:not(.btn) {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--inverse-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 10px;
  width: 24px; height: 2px;
  background: var(--inverse);
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px clamp(20px, 5vw, 48px) 26px;
    background: rgba(14, 16, 19, 0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 4px; font-size: 16px; }
  .nav-links .btn { margin-top: 12px; text-align: center; }
  .site-nav:has(.nav-links.open) { background: rgba(14, 16, 19, 0.96); }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background:
    linear-gradient(97deg, rgba(10, 11, 13, 0.96) 0%, rgba(10, 11, 13, 0.88) 46%, rgba(12, 13, 15, 0.62) 78%, rgba(12, 13, 15, 0.48) 100%),
    url('../assets/img/hero.jpg') center 38% / cover no-repeat var(--bg-darker);
}

.ember-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.hero-content::before {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 28px;
}
.hero .eyebrow { color: var(--accent-dark-text); }
.hero .eyebrow::before { display: none; }
.hero h1, .hero-sub { text-shadow: 0 2px 26px rgba(8, 9, 11, 0.6); }
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--inverse-soft);
  max-width: 560px;
  margin: 26px 0 0;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero {
    background:
      linear-gradient(rgba(11, 12, 14, 0.88), rgba(11, 12, 14, 0.84)),
      url('../assets/img/hero.jpg') center / cover no-repeat var(--bg-darker);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-dark-text);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0.2; }
}

/* Global network band -------------------------------------------------------- */

.global {
  background: var(--bg-dark);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line-dark);
  padding: 52px 0 58px;
  text-align: center;
}
.global-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark-text);
  margin-bottom: 22px;
}
.global-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 20px;
  row-gap: 12px;
}
.global-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F3EFE8;
  white-space: nowrap;
}
.global-list li:not(:last-child)::after {
  content: '·';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2em;
  line-height: 1;
}

/* Sections ------------------------------------------------------------------- */

.section { padding: clamp(84px, 12vw, 150px) 0; }
.section-light { background: var(--bg-light); }
.section-tint { background: var(--bg-tint); }

/* Engineering cards */

.card-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 26px 28px 32px; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { font-size: 15.5px; line-height: 1.68; color: var(--ink-soft); }

@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(20, 23, 27, 0.12); }
}
@media (max-width: 880px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Footprint band ---------------------------------------------------------------- */

.vision {
  background:
    linear-gradient(rgba(11, 12, 14, 0.62), rgba(11, 12, 14, 0.68)),
    url('../assets/img/vision.jpg') center / cover no-repeat;
  padding: clamp(110px, 16vw, 190px) 0;
  text-align: center;
}
.vision .eyebrow { color: var(--accent-dark-text); }
.vision h2 { color: #fff; max-width: 860px; margin-inline: auto; }
.vision p {
  color: #C6C1B9;
  font-size: clamp(16px, 2vw, 19px);
  max-width: 620px;
  margin: 10px auto 0;
}
@media (min-width: 1024px) {
  .vision { background-attachment: fixed, fixed; }
}

/* Products ---------------------------------------------------------------------- */

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  margin-top: clamp(64px, 9vw, 110px);
}
.product-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 26px 60px rgba(20, 23, 27, 0.20);
}
.product.flip .product-media { order: 2; }
.product-copy h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
}
.product-copy > p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }

.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}
.chips li {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--accent-2);
  background: rgba(217, 116, 12, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.30);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .product { grid-template-columns: 1fr; gap: 34px; }
  .product.flip .product-media { order: 0; }
}

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

.app-grid {
  list-style: none;
  padding: 0;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.app-grid li {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 19px 22px;
}
.app-grid svg { width: 27px; height: 27px; color: var(--accent-2); flex-shrink: 0; }
.app-grid span { font-size: 15px; font-weight: 500; color: #313A44; }

@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }

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

.contact {
  background:
    radial-gradient(820px 520px at 80% 10%, rgba(217, 116, 12, 0.18), transparent 62%),
    radial-gradient(640px 460px at 10% 92%, rgba(245, 149, 31, 0.08), transparent 60%),
    var(--bg-dark);
  border-top: 2px solid var(--accent);
  text-align: center;
}
.contact .eyebrow { color: var(--accent-dark-text); }
.contact h2 { color: var(--inverse); }
.contact-sub { color: var(--inverse-soft); font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin: 8px auto 0; }

.contact-card {
  display: block;
  max-width: 560px;
  margin: 48px auto 0;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  padding: 34px 36px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 168, 69, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--inverse-mute);
  margin-bottom: 10px;
}
.contact-value {
  font-size: clamp(16px, 2.4vw, 21px);
  font-weight: 500;
  color: #F3EFE8;
}

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

.site-footer {
  background: var(--bg-darker);
  padding: 58px 0 44px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 14px;
}
.footer-logo img { height: 30px; width: auto; }
.footer-logo .wordmark { font-size: 13px; }
.footer-brand p { font-size: 14.5px; color: var(--inverse-mute); max-width: 340px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 14px;
  color: var(--inverse-soft);
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; }
.footer-legal {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #6B6862;
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Scroll reveal ------------------------------------------------------------------ */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}

/* Reduced motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { display: none; }
  .vision { background-attachment: scroll, scroll; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
