/* ==========================================================================
   Silver Engineering Works — Modern Industrial Minimal
   Single stylesheet. No build tooling, no frameworks.
   ========================================================================== */

:root{
  --red: rgb(236, 48, 19);
  --red-dark: rgb(189, 34, 10);
  --charcoal: #1c1c1a;
  --charcoal-soft: #4a4a46;
  --steel: #767670;
  --steel-light: #9a9a94;
  --border: #dcdad4;
  --bg-white: #ffffff;
  --bg-light: #f6f5f2;
  --bg-dark: #17171533;
  --dark: #191815;
  --dark-2: #242320;

  --font-head: -apple-system, "Helvetica Neue", "Arial Black", Arial, system-ui, sans-serif;
  --font-body: -apple-system, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --container: 1280px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--charcoal);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4{
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1{ font-size: clamp(2.4rem, 4.4vw + 1rem, 4.6rem); }
h2{ font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem); }
h3{ font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }
h4{ font-size: 1.05rem; letter-spacing: -0.01em; }

p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

a{ color: var(--red); text-decoration: none; }
a:hover{ text-decoration: underline; }

ul, ol{ margin: 0; padding: 0; list-style: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow{
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9em;
}

.on-red .eyebrow{ color: #fff; opacity: 0.85; }

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
.btn:focus-visible{
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}
.on-red a:focus-visible,
.on-dark a:focus-visible,
.on-red .btn:focus-visible,
.on-dark .btn:focus-visible{
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 0.95em 1.7em;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ text-decoration: none; }

.btn-red{
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover{ background: var(--red-dark); border-color: var(--red-dark); }

.btn-dark{
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}
.btn-dark:hover{ background: #000; border-color: #000; }

.btn-outline-white{
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover{ background: #fff; color: var(--charcoal); }

.btn-white{
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.btn-white:hover{ background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.btn-outline-dark{
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover{ background: var(--charcoal); color: #fff; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.wordmark{
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  text-decoration: none;
  line-height: 1.15;
}
.wordmark:hover{ text-decoration: none; color: var(--red); }
.wordmark span{
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.15em;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.1rem);
}

.main-nav a{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.3em 0.1em;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"]{
  color: var(--red);
  border-bottom-color: var(--red);
  text-decoration: none;
}

.main-nav .btn{ padding: 0.65em 1.3em; font-size: 0.88rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{
  background: var(--bg-light);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(56rem, 92vw);
  aspect-ratio: 1000 / 910;
  transform: translate(-50%, -50%);
  background-image: url("../assets/image001.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.hero .container{
  display: grid;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px){
  .hero::before{
    width: 92vw;
    opacity: 0.05;
  }
}

.hero-lede{
  max-width: 46rem;
}

.hero-lede p.lede{
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.3rem);
  color: var(--charcoal-soft);
  max-width: 42rem;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-facts{
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-fact strong{
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.hero-fact span{
  display: block;
  margin-top: 0.4em;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
}

/* Page header (hero) for interior pages */
.page-hero{
  background: var(--charcoal);
  color: #fff;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.page-hero .eyebrow{ color: var(--red); opacity: 1; }
.page-hero h1{ color: #fff; }
.page-hero .lede{ color: #d9d8d3; max-width: 46rem; font-size: 1.15rem; }

.meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #3a3934;
}
.meta-row dt{
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 0.3em;
}
.meta-row dd{
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
}

/* ==========================================================================
   Two-path split (home)
   ========================================================================== */

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-panel{
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.split-panel img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.split-panel::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.split-panel.panel-fab::before{
  background: linear-gradient(180deg, rgba(19,18,16,0.35) 0%, rgba(19,18,16,0.55) 45%, rgba(236,48,19,0.94) 100%);
}
.split-panel.panel-equip::before{
  background: linear-gradient(180deg, rgba(19,18,16,0.4) 0%, rgba(19,18,16,0.6) 45%, rgba(19,18,16,0.95) 100%);
}

.split-panel-content{
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 4vw, 3.25rem);
  width: 100%;
}

.split-panel h2{ color: #fff; font-size: clamp(1.8rem, 2.4vw + 1rem, 2.6rem); }
.split-panel p{ color: #f1efe9; max-width: 30rem; font-size: 1.05rem; font-weight: 500; }
.split-panel .panel-tag{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 0.9em;
  display: block;
}

.split-panel .btn{ margin-top: 1.5rem; }

/* ==========================================================================
   Section spacing / generic sections
   ========================================================================== */

.section{ padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight{ padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-head{ max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-light{ background: var(--bg-light); }

/* Heritage band */
.heritage{
  background: var(--dark);
  color: #fff;
}
.heritage .section-head p{ color: #cfcdc6; }
.heritage h2{ color: #fff; }

.heritage-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #3a3934;
  margin-top: 2.5rem;
}

.heritage-item{
  position: relative;
  background: var(--dark-2);
}

.heritage-item img{
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: grayscale(15%);
}

.heritage-item .heritage-caption{
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}

.heritage-item .heritage-caption strong{
  display: block;
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.35em;
}

.heritage-item .heritage-caption p{
  color: #cfcdc6;
  font-size: 0.95rem;
  margin: 0;
}

.heritage-item .img-credit{
  font-size: 0.78rem;
  color: var(--steel-light);
  padding: 0.6rem clamp(1.25rem, 3vw, 2rem) 1.25rem;
  margin: 0;
}

/* ==========================================================================
   Case study teaser (home)
   ========================================================================== */

.teaser{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
}

.teaser-media{ position: relative; min-height: 340px; }
.teaser-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.teaser-body{
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.teaser-body .eyebrow{ margin-bottom: 0.6em; }

.teaser-body h3{ font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); margin-bottom: 0.5em; }

/* ==========================================================================
   Capabilities snapshot (home)
   ========================================================================== */

.cap-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

.cap-card{
  background: #fff;
  padding: 1.75rem;
}

.cap-card h4{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.85em;
}

.cap-card ul li{
  font-size: 0.95rem;
  padding: 0.3em 0;
  border-bottom: 1px dashed var(--border);
  color: var(--charcoal-soft);
}
.cap-card ul li:last-child{ border-bottom: none; }

.cap-card ul li strong{ color: var(--charcoal); font-weight: 600; }

/* ==========================================================================
   CTA band (red block, full bleed)
   ========================================================================== */

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

.cta-band .container{
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2{ color: #fff; margin-bottom: 0.3em; font-size: clamp(1.8rem, 2.6vw + 1rem, 2.75rem); }
.cta-band p{ color: #ffe6e0; font-size: 1.1rem; font-weight: 500; max-width: 34rem; }

.cta-band-actions{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{
  background: var(--dark);
  color: #cfcdc6;
}

.footer-top{
  padding: clamp(3rem, 5vw, 4rem) 0 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo img{ height: 34px; width: auto; margin-bottom: 1.25rem; }

.footer-top p{ color: #b8b6ae; font-size: 0.95rem; max-width: 26rem; }

.footer-col h4{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1em;
}

.footer-col ul li{ margin-bottom: 0.65em; }
.footer-col ul li a{ color: #cfcdc6; font-size: 0.95rem; }
.footer-col ul li a:hover{ color: #fff; }

.footer-col address{ font-style: normal; color: #b8b6ae; font-size: 0.95rem; line-height: 1.7; }
.footer-col address a{ color: #cfcdc6; }

.footer-bottom{
  border-top: 1px solid #3a3934;
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--steel-light);
}

/* ==========================================================================
   Case study page
   ========================================================================== */

.hero-media{
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  overflow: hidden;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media .img-credit{
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(19,18,16,0.75);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.5em 0.9em;
}

.narrative-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.narrative-block .eyebrow{ display: block; }
.narrative-block p{ color: var(--charcoal-soft); }

.spec-note{
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  background: var(--bg-light);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.spec-table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}
.spec-table caption{ text-align: left; margin-bottom: 1rem; }
.spec-table th, .spec-table td{
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.spec-table thead th{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: #fff;
  border-bottom: none;
}
.spec-table tbody tr:nth-child(odd){ background: var(--bg-light); }
.spec-table td:first-child{ font-weight: 700; color: var(--charcoal); width: 40%; }
.spec-table td:last-child{ color: var(--charcoal-soft); }

.stat-callouts{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2rem 0;
}
.stat-callout{ background: #fff; padding: 1.5rem; }
.stat-callout strong{
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--red);
  line-height: 1.05;
}
.stat-callout span{
  display: block;
  margin-top: 0.4em;
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

/* Asymmetric gallery */
.gallery{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery-item{
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}
.gallery-item.is-photo img{ object-fit: cover; padding: 0; }
.gallery-item figcaption{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(19,18,16,0.85), rgba(19,18,16,0));
  color: #fff;
  font-size: 0.82rem;
  padding: 1.75rem 0.9rem 0.7rem;
}
.gallery-item.is-product figcaption{
  position: static;
  background: none;
  color: var(--charcoal-soft);
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
}
.gallery-item.is-product{ display: flex; flex-direction: column; }
.gallery-item.is-product img{ flex: 1; }

.gallery-item.g-a{ grid-column: span 3; grid-row: span 2; }
.gallery-item.g-b{ grid-column: span 3; grid-row: span 1; }
.gallery-item.g-c{ grid-column: span 3; grid-row: span 1; }
.gallery-item.g-d{ grid-column: span 3; grid-row: span 2; }

.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.tag-list a{
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--charcoal);
  border: 1px solid var(--border);
  padding: 0.55em 1.1em;
  border-radius: 3px;
  text-decoration: none;
}
.tag-list a:hover{ border-color: var(--red); color: var(--red); }

/* ==========================================================================
   Capability page
   ========================================================================== */

.two-col{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.spec-list{ margin-top: 0.5rem; }
.spec-list dt{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 1.4em;
}
.spec-list dt:first-child{ margin-top: 0; }
.spec-list dd{
  margin: 0.35em 0 0;
  color: var(--charcoal-soft);
  font-size: 0.98rem;
}

.app-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.app-card{ background: #fff; padding: 1.6rem; }
.app-card h4{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.5em;
}
.app-card p{ font-size: 0.92rem; color: var(--charcoal-soft); margin: 0; }

.proof-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin-top: 2rem;
}
.proof-media{ position: relative; min-height: 280px; }
.proof-media img{ width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.proof-body{ padding: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.proof-body p{ color: var(--charcoal-soft); }

/* ==========================================================================
   Utility
   ========================================================================== */

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 200;
  font-family: var(--font-head);
  font-weight: 700;
}
.skip-link:focus{ left: 1rem; top: 1rem; }

.list-check li{
  position: relative;
  padding: 0.35em 0 0.35em 1.5em;
  font-size: 0.98rem;
  color: var(--charcoal-soft);
}
.list-check li::before{
  content: "—";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px){
  .main-nav{ gap: 1rem; }
  .main-nav a:not(.btn){ display: none; }

  .split{ grid-template-columns: 1fr; }
  .split-panel{ min-height: 460px; }

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

  .teaser{ grid-template-columns: 1fr; }
  .teaser-media{ min-height: 260px; }

  .footer-top{ grid-template-columns: 1fr; gap: 2rem; }

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

  .two-col{ grid-template-columns: 1fr; }

  .proof-block{ grid-template-columns: 1fr; }
  .proof-media{ min-height: 220px; }

  .gallery{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-item.g-a, .gallery-item.g-b, .gallery-item.g-c, .gallery-item.g-d{
    grid-column: span 2; grid-row: span 1;
  }
}

@media (max-width: 560px){
  .wordmark{ font-size: 1rem; }
  .hero-facts{ gap: 1.5rem; }
  .cta-band .container{ flex-direction: column; align-items: flex-start; }
  .footer-bottom{ flex-direction: column; }
}
