:root{
  --ink:#222324;
  --charcoal:#1c1d1f;
  --steel:#6f7378;
  --steel-light:#aeb2b6;
  --blue:#1f84c6;
  --blue-dark:#136aa3;
  --red:#e23631;
  --red-dark:#c2241f;
  --paper:#f3f2ee;
  --line:#dcdad3;
  --white:#ffffff;
}

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

html{scroll-behavior:smooth;}

body{
  font-family:'Inter',sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
}

h1,h2,h3,h4{
  font-family:'Oswald',sans-serif;
  text-transform:uppercase;
  letter-spacing:0.03em;
  color:var(--ink);
  line-height:1.15;
}

.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.75rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--steel);
  margin-bottom:0.8rem;
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 2rem;
}

/* ============ HEADER / NAV ============ */
header{
  position:sticky;
  top:0;
  background:var(--white);
  border-bottom:1px solid var(--line);
  z-index:100;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.1rem 2rem;
  max-width:1180px;
  margin:0 auto;
}
.logo{
  display:flex;
  align-items:center;
  gap:0.65rem;
  text-decoration:none;
}
.logo svg{ width:42px; height:42px; flex-shrink:0; }
.logo-text{
  font-family:'Oswald',sans-serif;
  font-weight:700;
  font-style:italic;
  font-size:1.35rem;
  letter-spacing:0.04em;
  color:var(--ink);
  white-space:nowrap;
}
.logo-text span{ color:var(--steel); }
.logo-sub{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.62rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--steel);
  display:block;
  margin-top:1px;
}

nav{
  display:flex;
  align-items:center;
  gap:1.3rem;
}
nav a{
  color:var(--ink);
  text-decoration:none;
  font-size:0.92rem;
  font-weight:500;
  letter-spacing:0.01em;
}
nav a.nav-link:hover{ color:var(--blue); }
nav a.nav-link.active{ color:var(--blue); font-weight:600; }

.btn{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.78rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  text-decoration:none;
  padding:0.75rem 1.4rem;
  border-radius:2px;
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
  transition:background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--red);
  color:var(--white);
  border:1px solid var(--red);
}
.btn-primary:hover{ background:var(--red-dark); border-color:var(--red-dark); }
.btn-ghost{
  background:transparent;
  border:1px solid var(--steel-light);
  color:var(--ink);
}
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue); }
.btn-ghost-dark{
  background:transparent;
  border:1px solid rgba(255,255,255,0.3);
  color:var(--white);
}
.btn-ghost-dark:hover{ border-color:var(--white); }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px;
  height:38px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  margin-left:0.6rem;
}
.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background:var(--ink);
  transition:transform 0.2s ease, opacity 0.2s ease;
}
nav.open .nav-toggle span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2){ opacity:0; }
nav.open .nav-toggle span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px){
  .header-inner{ padding:1rem 1.4rem; }
  .nav-toggle{ display:flex; order:3; }
  nav{
    position:fixed;
    top:73px;
    left:0; right:0;
    bottom:0;
    background:var(--white);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:0.5rem 0 2rem;
    overflow-y:auto;
    transform:translateX(100%);
    transition:transform 0.25s ease;
    border-top:1px solid var(--line);
  }
  nav.open{ transform:translateX(0); }
  nav .nav-link{
    width:100%;
    padding:1rem 1.6rem;
    font-size:1rem;
    border-bottom:1px solid var(--line);
  }
  nav .btn-primary{
    margin:1.2rem 1.6rem;
    justify-content:center;
  }
}

/* ============ HERO (home) ============ */
.hero{
  background:var(--charcoal);
  color:var(--white);
  padding:5rem 0;
}
.hero .eyebrow{ color:var(--steel-light); }
.hero h1{
  color:var(--white);
  font-size:2.8rem;
  margin-bottom:1rem;
}
.hero p{
  font-size:1.05rem;
  color:#c7c9cc;
  max-width:34rem;
  margin-bottom:2rem;
}
.hero-ctas{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

@media (max-width: 880px){
  .hero{ padding:3.5rem 0; }
  .hero h1{ font-size:2.2rem; }
}

/* ============ PAGE HEADER (about / facility / contact) ============ */
.page-header{
  background:var(--charcoal);
  color:var(--white);
  padding:3.6rem 0;
}
.page-header .eyebrow{ color:var(--steel-light); }
.page-header h1{
  color:var(--white);
  font-size:2.6rem;
  margin-bottom:0.8rem;
}
.page-header p{
  color:#c7c9cc;
  max-width:36rem;
  font-size:1rem;
}

/* ============ SECTION GENERIC ============ */
section{ padding:4.5rem 0; }
.section-head{
  max-width:42rem;
  margin-bottom:2.4rem;
}
.section-head h2{ font-size:2rem; margin-bottom:0.7rem; }
.section-head p{ color:var(--steel); font-size:1rem; max-width:38rem; }

/* ============ SPEC LIST (about) ============ */
.spec-list{
  list-style:none;
  display:grid;
  gap:0.7rem;
  margin-top:1rem;
}
.spec-list li{
  display:flex;
  align-items:flex-start;
  gap:0.7rem;
  font-size:0.92rem;
  color:var(--ink);
  padding:0.7rem 0;
  border-bottom:1px solid var(--line);
}
.spec-list li::before{
  content:"";
  width:7px; height:7px;
  margin-top:0.4rem;
  background:var(--blue);
  flex-shrink:0;
}

/* ============ FACILITY PAGE ============ */
.facility-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
}
.facility-card{
  background:var(--white);
  border:1px solid var(--line);
}
.facility-card-head{
  padding:1.8rem 1.8rem 1.4rem;
  border-bottom:1px solid var(--line);
}
.facility-card-head .eyebrow{ margin-bottom:0.6rem; }
.facility-card-head h3{ font-size:1.4rem; margin-bottom:0.3rem; }
.facility-card-head p{ color:var(--steel); font-size:0.9rem; }
.facility-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1px solid var(--line);
}
.facility-stats div{
  padding:1.2rem 1.8rem;
  border-right:1px solid var(--line);
}
.facility-stats div:nth-child(2n){ border-right:none; }
.facility-stats strong{
  font-family:'Oswald',sans-serif;
  font-size:1.4rem;
  display:block;
}
.facility-stats span{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.68rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--steel);
}
.facility-features{
  list-style:none;
  padding:1.6rem 1.8rem 1.8rem;
  display:flex;
  flex-direction:column;
  gap:0.7rem;
}
.facility-features li{
  display:flex;
  align-items:flex-start;
  gap:0.7rem;
  font-size:0.9rem;
  color:var(--ink);
}
.facility-features li::before{
  content:"";
  width:7px; height:7px;
  margin-top:0.45rem;
  background:var(--red);
  flex-shrink:0;
}
.facility-card-foot{
  padding:0 1.8rem 1.8rem;
}

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

/* ============ TEAM (about) ============ */
.team-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:1.6rem;
}
.team-card{
  text-align:left;
}
.team-photo{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  background:var(--paper);
  border:1px solid var(--line);
  overflow:hidden;
  margin-bottom:1rem;
}
.team-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.team-photo .team-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Oswald',sans-serif;
  font-size:2rem;
  letter-spacing:0.04em;
  color:var(--steel-light);
  background:var(--paper);
}
.team-card h3{
  font-size:1rem;
  margin-bottom:0.15rem;
}
.team-role{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:0.6rem;
  display:block;
}
.team-card a{
  display:block;
  font-size:0.86rem;
  color:var(--steel);
  text-decoration:none;
  word-break:break-word;
}
.team-card a:hover{ color:var(--blue); }

@media (max-width: 980px){
  .team-grid{ grid-template-columns:repeat(3, 1fr); row-gap:2.4rem; }
}
@media (max-width: 600px){
  .team-grid{ grid-template-columns:repeat(2, 1fr); }
}

/* ============ ABOUT STORY / STATS ============ */
.story-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:start;
}
.cap-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.story-stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.story-stat{
  background:var(--white);
  padding:1.8rem;
}
.story-stat strong{
  font-family:'Oswald',sans-serif;
  font-size:2rem;
  display:block;
  color:var(--ink);
}
.story-stat span{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--steel);
}

@media (max-width: 880px){
  .story-grid{ grid-template-columns:1fr; gap:2.2rem; }
}

/* ============ CONTACT PAGE ============ */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-bottom:3rem;
}
.contact-card{
  background:var(--white);
  padding:2.2rem 1.8rem;
}
.contact-card h3{
  font-size:1.05rem;
  margin-bottom:0.3rem;
}
.contact-card .contact-name{
  font-size:0.92rem;
  color:var(--ink);
  margin-bottom:0.9rem;
  display:block;
}
.contact-card a{
  display:block;
  color:var(--blue);
  text-decoration:none;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.85rem;
  margin-bottom:0.5rem;
  word-break:break-word;
}
.contact-card a:hover{ color:var(--blue-dark); }
.contact-card p.note{
  color:var(--steel);
  font-size:0.88rem;
  margin-top:0.6rem;
}

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

.contact-info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
}
.contact-info-block h4{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.75rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:0.7rem;
}
.contact-info-block p{
  font-size:0.98rem;
  color:var(--ink);
  margin-bottom:1.6rem;
  line-height:1.7;
}

@media (max-width: 880px){
  .contact-info-grid{ grid-template-columns:1fr; gap:1.6rem; }
}

/* ============ FOOTER (simple) ============ */
footer{
  background:var(--charcoal);
  color:var(--steel-light);
  padding:2.4rem 0;
}
.footer-simple{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1.4rem;
}
.footer-simple .logo-text{ color:var(--white); }
.footer-simple .logo-text span{ color:var(--steel-light); }
.footer-simple .logo-sub{ color:var(--steel-light); }
.footer-simple-links{
  display:flex;
  gap:1.6rem;
  flex-wrap:wrap;
}
.footer-simple-links a{
  color:var(--steel-light);
  text-decoration:none;
  font-size:0.88rem;
}
.footer-simple-links a:hover{ color:var(--white); }
.footer-copy{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem;
  letter-spacing:0.04em;
  color:var(--steel-light);
  width:100%;
  padding-top:1.4rem;
  border-top:1px solid rgba(255,255,255,0.1);
}

@media (max-width: 560px){
  .hero h1{ font-size:2rem; }
  .page-header h1{ font-size:2rem; }
  section{ padding:3rem 0; }
}

/* ============ CTA STRIP ============ */
.cta-strip{
  background:var(--charcoal);
  padding:2.8rem 0;
  text-align:center;
}
.cta-strip .wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.6rem;
  flex-wrap:wrap;
}
.cta-strip h2{
  color:var(--white);
  font-size:1.4rem;
  margin:0;
}

/* ============ LOGO IMAGE ============ */
.logo-img{
  height:38px;
  width:auto;
  display:block;
}

/* ============ FOOTER TAGLINE ============ */
.footer-tagline-bar{
  text-align:center;
  font-family:'Oswald',sans-serif;
  font-size:1rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--white);
  padding-bottom:1.6rem;
  margin-bottom:1.6rem;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-tagline-bar span{ color:var(--blue); }

/* ============ MEDIA PLACEHOLDER (photos/video pending) ============ */
.media-placeholder{
  aspect-ratio:16/9;
  border:1px dashed var(--steel-light);
  background:var(--white);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  color:var(--steel);
  text-align:center;
  padding:1.5rem;
}
.media-placeholder .mp-icon{
  font-size:1.6rem;
}
.media-placeholder .mp-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.72rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
}

/* ============ HOME HERO (redesigned) ============ */
.home-hero{
  background:var(--charcoal);
  color:var(--white);
  padding:4.5rem 0 4rem;
  text-align:center;
}
.home-hero-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.4rem;
}
.home-hero-logo{
  height:64px;
  width:auto;
}
.home-hero-tagline{
  font-family:'Oswald',sans-serif;
  font-size:1.3rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
  color:var(--white);
  max-width:36rem;
}
@media (max-width:560px){
  .home-hero-logo{ height:48px; }
  .home-hero-tagline{ font-size:1.05rem; }
}

/* ============ HOME INTRO / LEAD COPY ============ */
.home-intro{ text-align:center; }
.lead-copy{
  max-width:42rem;
  margin:0 auto 2rem;
  font-size:1.08rem;
  color:var(--ink);
  line-height:1.75;
}

/* ============ GALLERY GRID (photos / home) ============ */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:1.2rem;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  width: 100%;             /* Fills the parent container/grid cell */
  overflow: hidden;        /* Clips any image overflow without showing scrollbars */
  border: 1px solid var(--line);
  border-radius: 4px;      /* Optional: subtle rounded corners */
  background-color: var(--bg-alt, #f8f9fa); /* Clean fallback while image loads */
  display: flex;           /* Centers smaller images seamlessly */
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;       /* Fills the 4:3 frame without distorting aspect ratio */
  object-position: center; /* Keeps the focus centered on the image */
  display: block;
}
@media (max-width:880px){
  .gallery-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:560px){
  .gallery-grid{ grid-template-columns:1fr; }
}

/* ============ CAPABILITY PAGE SECTIONS ============ */
.cap-section:nth-child(even){ background:var(--white); }
.cap-section-head{ margin-bottom:2rem; }
.cap-section-head h2{ font-size:1.8rem; margin-bottom:0.8rem; }
.cap-section-head p{ max-width:44rem; font-size:1rem; color:var(--ink); }
.cap-media-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:1.2rem;
  margin-top:1.6rem;
}
@media (max-width:700px){
  .cap-media-grid{ grid-template-columns:1fr; }
}
.cap-actions{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
  margin-top:2.2rem;
}

/* ============ EQUIPMENT GRID ============ */
.equipment-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-top:1.6rem;
}
.equipment-col{
  background:var(--white);
  padding:1.8rem;
}
.equipment-col h4{
  font-family:'IBM Plex Mono',monospace;
  font-size:0.75rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:1rem;
}
.equipment-col ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:0.6rem;
}
.equipment-col li{
  font-size:0.92rem;
  color:var(--ink);
  padding-bottom:0.6rem;
  border-bottom:1px solid var(--line);
}
@media (max-width:880px){
  .equipment-grid{ grid-template-columns:1fr; }
}


.pamphlet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pamphlet-page img {
  width: 100%;
  height: auto;
  display: block;
}
.capability-hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:center;
}
.capability-hero .cap-photo{
  aspect-ratio:4 / 3;
  overflow:hidden;
  border:1px solid var(--line);
}
.capability-hero .cap-photo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.capability-hero .cap-copy p{
  color:var(--steel);
  margin-bottom:1.1rem;
  font-size:0.98rem;
}