:root {
  --ink: #17202a;
  --muted: #66717d;
  --line: #d9dee5;
  --paper: #f7f8fa;
  --white: #ffffff;
  --steel: #263542;
  --copper: #b96f2d;
  --green: #27715f;
  --shadow: 0 18px 45px rgba(16, 27, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(23, 32, 42, 0.08);
  backdrop-filter: blur(14px);
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(23, 32, 42, 0.10);
  box-shadow: 0 8px 26px rgba(16, 27, 39, 0.10);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 156px;
}

.brand img {
  width: 170px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 1vw, 10px);
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 10px 16px;
  border-radius: 9px;
  color: rgba(23, 32, 42, 0.80);
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(23, 32, 42, 0.05);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.footer a {
  transition: color 160ms ease;
}

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

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 200ms ease, background 160ms ease;
}

.nav-action {
  color: var(--white);
  background: var(--copper);
  box-shadow: 0 4px 14px rgba(185, 111, 45, 0.22);
}

.nav-action:hover,
.button:hover {
  transform: translateY(-1px);
}

.nav-action:hover {
  box-shadow: 0 10px 22px rgba(185, 111, 45, 0.34);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 14, 22, 0.88) 0%, rgba(6, 14, 22, 0.58) 44%, rgba(6, 14, 22, 0.20) 100%),
    linear-gradient(0deg, rgba(6, 14, 22, 0.40), rgba(6, 14, 22, 0.10));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  padding: 190px 0 190px clamp(20px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-metrics {
  position: absolute;
  left: clamp(20px, 7vw, 96px);
  right: clamp(20px, 7vw, 96px);
  bottom: 32px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.hero-metrics div {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}

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

.hero-metrics strong {
  display: block;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 80px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-inner h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.section-lede {
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  background: var(--white);
}

.intro-text p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-media {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-media figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 6px;
  background: rgba(23, 32, 42, 0.80);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Facility / Tabs ---------- */
.facility {
  background: var(--paper);
}

.facility .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tabs {
  max-width: 1080px;
  margin: 0 auto;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 6px 18px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--copper);
}

.tab-icon {
  display: inline-flex;
  color: var(--copper);
}

.tab-icon svg {
  width: 19px;
  height: 19px;
}

.tabpanel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-top: clamp(36px, 5vw, 56px);
  animation: panel-fade 420ms ease both;
}

@keyframes panel-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.tabpanel[hidden] {
  display: none;
}

.panel-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.panel-copy p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 17px;
}

.panel-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.panel-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-size: 16px;
}

.panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background:
    radial-gradient(circle at center, var(--green) 0 3px, transparent 4px);
}

.panel-visual {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(16, 27, 39, 0.07);
}

.diagram {
  width: 100%;
  height: auto;
  font-family: Arial, Helvetica, sans-serif;
}

.dgm-label { fill: var(--ink); font-size: 13px; font-weight: 700; }
.dgm-sub { fill: var(--muted); font-size: 11px; }
.dgm-label-light { fill: var(--white); font-size: 13px; font-weight: 700; }
.dgm-sub-light { fill: rgba(255, 255, 255, 0.82); font-size: 11px; }
.dgm-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.dgm-foot { fill: var(--muted); font-size: 11px; font-style: italic; }

/* ---------- Capabilities ---------- */
.capabilities {
  position: relative;
  overflow: hidden;
  padding-top: clamp(98px, 12vw, 156px);
  color: var(--white);
  background: var(--steel);
}

.section-wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}

.section-wave svg {
  display: block;
  width: 100%;
  height: clamp(44px, 6vw, 74px);
}

.capabilities .section-heading h2 {
  color: var(--white);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.capability-grid article {
  min-height: 280px;
  padding: 28px;
  background: #1e2b36;
  transition: background 200ms ease, transform 200ms ease;
}

.capability-grid article:hover {
  background: #22303c;
  transform: translateY(-3px);
}

.capability-grid h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.capability-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 36px;
  border-radius: 10px;
  color: var(--copper);
  background: rgba(185, 111, 45, 0.14);
  border: 1px solid rgba(185, 111, 45, 0.35);
}

.cap-icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 12vw, 148px) clamp(20px, 6vw, 80px);
  color: var(--white);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(38, 53, 66, 0.85), transparent 60%),
    linear-gradient(180deg, #1b2733 0%, #16202a 58%, #131c25 100%);
}

.contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .eyebrow {
  color: var(--copper);
}

.contact-inner h2 {
  margin-bottom: 16px;
}

.contact-lede {
  max-width: 560px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.cta-pill {
  min-height: 54px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  color: var(--white);
  background: var(--copper);
  box-shadow: 0 14px 32px rgba(185, 111, 45, 0.34);
  cursor: pointer;
}

.cta-pill:hover {
  box-shadow: 0 20px 40px rgba(185, 111, 45, 0.44);
}

.cta-pill:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 620px;
  margin: 40px auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form textarea {
  min-height: 116px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(185, 111, 45, 0.25);
}

.contact-form .cta-pill {
  width: 100%;
  margin-top: 6px;
}

/* spam honeypot — visually hidden */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 14px;
  text-align: center;
}

.form-status.is-success { color: #82d6c1; }
.form-status.is-error { color: #e7a37d; }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.72);
  background: #111a22;
  font-size: 14px;
}

/* ---------- Scroll reveal ---------- */
body.anim-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  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);
  will-change: opacity, transform;
}

body.anim-ready .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    padding-top: 150px;
    padding-left: 20px;
  }

  .hero-metrics,
  .intro,
  .tabpanel,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .intro-media {
    order: -1;
  }

  .capability-grid article {
    min-height: auto;
  }

  .cap-icon {
    margin-bottom: 20px;
  }

  .tablist {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 138px;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 14px;
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-right: 16px;
  }

  .hero-metrics {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }

  .hero-metrics div {
    padding: 18px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

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

  .nav-action,
  .button,
  .tab,
  .capability-grid article,
  .contact-form input,
  .contact-form textarea {
    transition: none;
  }

  .tabpanel {
    animation: none;
  }

  .nav a::after {
    transition: none;
  }
}
