/* ============================================================
   KRAFTR INDUSTRIES — core stylesheet
   Industrial / fabrication visual language.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root{
  --black:        #060706;
  --near-black:   #0a0c0a;
  --panel:        #101210;
  --panel-2:      #14160f;
  --line:         #26291f;
  --line-soft:    #1b1d17;
  --off-white:    #ececea;
  --grey:         #9a9d95;
  --grey-dim:     #6b6e65;
  --green:        #0fb14d;
  --green-bright: #17d661;
  --green-dim:    #0a7d38;
  --green-wash:   rgba(15,177,77,0.08);

  --font:        'Montserrat', Arial, sans-serif;
  --font-mono:   'Montserrat', Arial, sans-serif;

  --container:   1280px;
  --edge:        clamp(20px, 5vw, 64px);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4,p{ margin:0; }

/* faint fabrication grid painted on the page background */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  z-index:0;
  background-image:
    linear-gradient(rgba(15,177,77,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,177,77,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
  position: relative;
  z-index: 1;
}

/* ---------- typographic utilities ---------- */
/* eyebrow: rendered as a two-piece spec-plate tag (filled index + outlined
   label strip), like a machined part marking, rather than a dash + caps line */
.eyebrow{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
}
.eyebrow .idx{
  display:flex;
  align-items:center;
  background: var(--green);
  color: #04150a;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 8px 13px;
  margin-right: 13px;
}
.eyebrow{ padding-right: 15px; }

h1, .h1{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  font-size: clamp(42px, 7vw, 92px);
}
h2, .h2{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-size: clamp(30px, 4.2vw, 54px);
}
h3, .h3{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(18px, 2vw, 22px);
}
.lede{
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--grey);
  font-weight: 400;
  max-width: 640px;
}
.mono-tag{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-dim);
}

.accent{ color: var(--green); }

/* ---------- corner-bracket frame, used on cards/media ---------- */
.bracket{
  position: relative;
}
.bracket::before,
.bracket::after{
  content:"";
  position:absolute;
  width: 16px; height:16px;
  border: 2px solid var(--green);
  z-index: 2;
  opacity: 0.85;
}
.bracket::before{ top:-1px; left:-1px; border-right:none; border-bottom:none; }
.bracket::after{ bottom:-1px; right:-1px; border-left:none; border-top:none; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--off-white);
  cursor: pointer;
  position: relative;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn svg{ width:14px; height:14px; flex:none; transition: transform .2s ease; }
.btn:hover{ border-color: var(--green); color: var(--green-bright); }
.btn:hover svg{ transform: translateX(3px); }
.btn-solid{
  background: var(--green);
  border-color: var(--green);
  color: #04150a;
  font-weight: 700;
}
.btn-solid:hover{
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: #04150a;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6,7,6,0.82);
  backdrop-filter: blur(10px);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 82px;
}
.logo{
  display:flex;
  align-items:center;
}
.logo img{
  height: 26px;
  width: auto;
  display:block;
}
.footer-brand .logo img{ height: 30px; }
.main-nav{
  display:flex;
  align-items:center;
  gap: 40px;
}
.main-nav ul{ display:flex; gap: 34px; }
.main-nav a{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  height:1px; width:0;
  background: var(--green);
  transition: width .2s ease;
}
.main-nav a:hover,
.main-nav a.active{ color: var(--off-white); }
.main-nav a.active::after,
.main-nav a:hover::after{ width:100%; }
.main-nav a.active{ color: var(--green-bright); }

.nav-cta{ display:flex; align-items:center; gap:24px; }
.nav-cta .btn{ padding: 12px 20px; }

.burger{
  display:none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}
.burger span{ height:2px; width:100%; background: var(--off-white); display:block; }

.mobile-nav{
  display:none;
  position: fixed;
  inset: 82px 0 0 0;
  background: var(--black);
  z-index: 99;
  padding: 30px var(--edge);
  border-top: 1px solid var(--line-soft);
}
.mobile-nav.open{ display:block; }
.mobile-nav ul{ display:flex; flex-direction:column; gap:0; }
.mobile-nav a{
  display:block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 15px;
  color: var(--off-white);
}
.mobile-nav .btn{ margin-top: 26px; width:100%; justify-content:center; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero{
  padding: 190px 0 70px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.page-hero .tag-row{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.page-hero .lede{ margin-top: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  border-top: 1px solid var(--line-soft);
  padding: 70px 0 0;
  position: relative;
  z-index:1;
}
.footer-top{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand .logo{ margin-bottom: 18px; }
.footer-brand p{
  color: var(--grey);
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 18px;
}
.footer-col ul{ display:flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col p{
  font-size: 14px;
  color: var(--grey);
  transition: color .2s ease;
}
.footer-col a:hover{ color: var(--green-bright); }
.footer-bottom{
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 26px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey-dim);
  text-transform: uppercase;
}

/* ============================================================
   SHARED SECTION HELPERS
   ============================================================ */
section{ position: relative; z-index:1; }
.section{ padding: 110px 0; border-bottom: 1px solid var(--line-soft); }
.section-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.section-head h2{ margin-top: 14px; }

/* number index badges e.g. 01 / 05 */
.idx-badge{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--grey-dim);
}

/* generic responsive image with bracket frame + caption */
.media{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.media img{
  width:100%; height:100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transition: transform .5s ease, filter .5s ease;
}
.media:hover img{ transform: scale(1.035); filter: saturate(1.05) contrast(1.04); }

/* Diagonal cut divider strip */
.cut-strip{
  height: 46px;
  background: repeating-linear-gradient(
    -45deg,
    var(--panel), var(--panel) 10px,
    var(--near-black) 10px, var(--near-black) 20px
  );
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Marquee for client strip */
.marquee{
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 26px 0;
}
.marquee-track{
  display:flex;
  gap: 64px;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}
.marquee-track span{
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dim);
  white-space: nowrap;
}
.marquee-track span b{ color: var(--grey); font-weight: 600; }
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* back to top / scroll cue */
.scroll-cue{
  position:fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 46px; height:46px;
  border:1px solid var(--line);
  background: rgba(10,12,10,0.9);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease, border-color .2s ease;
}
.scroll-cue.show{ opacity:1; pointer-events:auto; }
.scroll-cue:hover{ border-color: var(--green); }
.scroll-cue svg{ width:16px; height:16px; stroke: var(--green); }

/* reveal-on-scroll */
[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].in{ opacity:1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px){
  .main-nav{ display:none; }
  .burger{ display:flex; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 640px){
  .footer-top{ grid-template-columns: 1fr 1fr; gap: 30px; }
  .site-header .wrap{ height: 70px; }
  .page-hero{ padding-top: 150px; }
}
