/* ============================================
   RAFTER KC — INDUSTRIAL WELDING
   Cinematic, brushed-steel, prairie-tough
   ============================================ */

:root {
  --bg:        #0a0a0a;
  --bg-2:      #111114;
  --panel:     #15161a;
  --panel-2:   #1c1d22;
  --line:      #2a2c33;
  --steel:     #c8ccd1;
  --steel-2:   #8a8f97;
  --steel-hi:  #f4f6f8;
  --ink:       #ededee;
  --ink-2:     #a7abb2;
  --ink-3:     #6a6e76;
  --arc:       #ff6a1a;       /* weld-arc orange */
  --arc-2:     #ffb070;
  --arc-glow:  rgba(255,106,26,.35);

  --f-display: "Bebas Neue", "Anton", Impact, sans-serif;
  --f-body:    "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "JetBrains Mono", "SF Mono", Menlo, monospace;

  --maxw: 1320px;
  --pad:  clamp(20px, 4vw, 56px);
  --r:    4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---- Type system ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--arc);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--arc);
}
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; line-height: .95; color: var(--steel-hi); }
h1 { font-size: clamp(56px, 9vw, 148px); }
h2 { font-size: clamp(44px, 6.2vw, 96px); }
h3 { font-size: clamp(28px, 3vw, 44px); }
h4 { font-size: clamp(20px, 2vw, 26px); letter-spacing: .04em; }

p { font-size: clamp(17px, 1.15vw, 19px); color: var(--ink-2); }
p.lead { font-size: clamp(20px, 1.6vw, 26px); color: var(--ink); line-height: 1.5; max-width: 64ch; }

.divider { height: 1px; background: var(--line); margin: 0 var(--pad); }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }
section.tight { padding: clamp(60px, 8vh, 100px) 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 1px solid var(--steel);
  color: var(--steel-hi);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.btn::after { content: "→"; font-family: var(--f-body); font-size: 16px; letter-spacing: 0; transition: transform .25s ease; }
.btn:hover { background: var(--steel-hi); color: var(--bg); border-color: var(--steel-hi); }
.btn:hover::after { transform: translateX(6px); }
.btn.primary {
  background: var(--arc); border-color: var(--arc); color: #0a0a0a;
  box-shadow: 0 0 0 0 var(--arc-glow);
}
.btn.primary:hover { background: var(--arc-2); border-color: var(--arc-2); color: #0a0a0a; box-shadow: 0 0 60px var(--arc-glow); }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad);
  background: linear-gradient(to bottom, rgba(10,10,10,.85), rgba(10,10,10,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s ease, padding .3s ease;
}
.nav.scrolled { background: rgba(10,10,10,.92); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav .brand { display: flex; align-items: center; gap: 14px; }
.nav .brand img { height: 112px; width: auto; }
.nav .menu { display: flex; gap: 44px; align-items: center; }
.nav .menu a {
  font-family: var(--f-mono);
  font-size: 24px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative; padding: 8px 0;
  transition: color .2s;
}
.nav .menu a:hover, .nav .menu a.active { color: var(--steel-hi); }
.nav .menu a.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--arc);
}
.nav .cta { padding: 16px 26px; border: 1px solid var(--arc); color: var(--arc); font-family: var(--f-mono); font-size: 24px; letter-spacing: .2em; text-transform: uppercase; transition: all .2s; }
.nav .cta:hover { background: var(--arc); color: #0a0a0a; }

.nav-toggle { display: none; }
@media (max-width: 880px) {
  .nav .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); padding: 20px var(--pad); border-bottom: 1px solid var(--line); }
  .nav .menu.open { display: flex; }
  .nav .menu a { padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .nav-toggle span { width: 24px; height: 1.5px; background: var(--steel); }
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(60px, 10vh, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.25) 35%, rgba(10,10,10,.95) 100%),
    radial-gradient(ellipse at 75% 35%, rgba(255,106,26,.22), transparent 55%),
    url("../assets/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #1a1a1d, #0a0a0a);
  z-index: -1;
  transform: scale(1.05);
  filter: contrast(1.05) saturate(.95);
}
.hero .meta {
  position: absolute; top: 50%; right: var(--pad);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .35em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 24px;
}
.hero .meta span { display: inline-flex; gap: 8px; }
.hero h1 { max-width: 16ch; }
.hero h1 .arc { color: var(--arc); }
.hero .sub {
  margin-top: 28px; max-width: 44ch;
  font-size: clamp(18px, 1.4vw, 22px); color: var(--ink);
  line-height: 1.55;
}
.hero .actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--ink-3), transparent); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip {
  0%, 100% { transform: scaleY(.3); transform-origin: top; }
  50% { transform: scaleY(1); }
}

/* ---- TICKER ---- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden; padding: 22px 0;
}
.ticker-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 56px);
  color: var(--steel);
  animation: ticker 40s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 60px; }
.ticker-track span::after { content: "✦"; color: var(--arc); margin-left: 60px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- TWO COL ---- */
.two-col {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.figure { position: relative; overflow: hidden; }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.figure:hover img { transform: scale(1.04); }
.figure .tag { position: absolute; bottom: 16px; left: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--steel-hi); background: rgba(10,10,10,.75); padding: 8px 12px; border: 1px solid var(--line); }

/* ---- MANIFESTO ---- */
.manifesto {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255,106,26,.08), transparent 60%);
  pointer-events: none;
}
.manifesto .quote {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 1.05;
  color: var(--steel-hi);
  max-width: 22ch;
  position: relative;
}
.manifesto .quote em { color: var(--arc); font-style: normal; }
.manifesto .signature {
  margin-top: 32px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em;
  color: var(--ink-2); text-transform: uppercase;
}

/* ---- SERVICE GRID ---- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  background: var(--bg);
  padding: clamp(32px, 4vw, 56px);
  position: relative;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 320px;
  transition: background .3s;
}
.svc:hover { background: var(--panel); }
.svc .num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em; color: var(--arc); }
.svc h3 { color: var(--steel-hi); }
.svc p { color: var(--ink-2); max-width: 50ch; }
.svc .more { margin-top: auto; font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); display: inline-flex; gap: 8px; align-items: center; transition: color .2s, gap .2s; }
.svc .more::after { content: "→"; font-family: var(--f-body); }
.svc:hover .more { color: var(--arc); gap: 14px; }

/* ---- GALLERY ---- */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 80vh; min-height: 600px;
}
.gallery .g { overflow: hidden; position: relative; background: var(--panel); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.gallery .g:hover img { transform: scale(1.05); }
.gallery .g1 { grid-row: 1 / span 2; }
.gallery .g .label {
  position: absolute; left: 20px; bottom: 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(10,10,10,.8); color: var(--steel-hi);
  padding: 8px 14px; border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(4, 280px); height: auto; }
  .gallery .g1 { grid-row: auto; }
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, #15161a 0%, #0a0a0a 100%);
  border-top: 1px solid var(--arc);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,106,26,.15), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,106,26,.04) 14px 15px);
  pointer-events: none;
}
.cta-band .row { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; position: relative; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 40ch; margin-top: 16px; }

/* ---- FOOTER ---- */
footer {
  background: #050505; border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}
footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
@media (max-width: 720px) { footer .grid { grid-template-columns: 1fr 1fr; } }
footer h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--arc); margin-bottom: 18px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: var(--ink-2); font-size: 15px; transition: color .2s; }
footer ul a:hover { color: var(--steel-hi); }
footer .brand img { height: 64px; margin-bottom: 18px; }
footer .brand p { font-size: 14px; color: var(--ink-3); max-width: 32ch; }
footer .legal { border-top: 1px solid var(--line); padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

/* ---- ABOUT page bits ---- */
.page-hero {
  padding: 200px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,106,26,.08), transparent 60%);
}
.page-hero h1 { font-size: clamp(64px, 10vw, 160px); }
.page-hero p { margin-top: 24px; max-width: 50ch; font-size: clamp(18px, 1.4vw, 22px); color: var(--ink); }

.story-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
@media (max-width: 880px) { .story-block { grid-template-columns: 1fr; gap: 40px; } }
.story-block .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--arc); position: sticky; top: 120px; }
.story-block .body p { margin-bottom: 24px; max-width: 60ch; }
.story-block .body p:first-of-type::first-letter {
  font-family: var(--f-display);
  font-size: 5em; line-height: .85; float: left;
  margin: 6px 14px 0 0; color: var(--arc);
}

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 720px) { .values { grid-template-columns: repeat(2, 1fr); } }
.values .v { background: var(--bg); padding: 36px; min-height: 220px; }
.values .v .num { font-family: var(--f-mono); color: var(--arc); font-size: 12px; letter-spacing: .25em; margin-bottom: 16px; }
.values .v h4 { font-family: var(--f-display); font-size: 28px; color: var(--steel-hi); margin-bottom: 12px; }
.values .v p { font-size: 15px; color: var(--ink-2); }

/* ---- SERVICES page ---- */
.svc-list { display: flex; flex-direction: column; }
.svc-row {
  display: grid; grid-template-columns: 100px 1fr 1.4fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  transition: background .25s;
  padding-left: 16px; padding-right: 16px; margin-left: -16px; margin-right: -16px;
}
.svc-row:hover { background: var(--panel); }
.svc-row:hover .arrow { color: var(--arc); transform: translateX(6px); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row .num { font-family: var(--f-mono); font-size: 13px; letter-spacing: .25em; color: var(--arc); padding-top: 6px; }
.svc-row h3 { font-size: clamp(28px, 3vw, 42px); color: var(--steel-hi); }
.svc-row p { color: var(--ink-2); }
.svc-row ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.svc-row ul li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .15em; color: var(--ink-2); display: flex; gap: 10px; }
.svc-row ul li::before { content: "▸"; color: var(--arc); }
.svc-row .arrow { font-size: 28px; color: var(--steel-2); transition: transform .25s, color .25s; justify-self: end; align-self: center; }
@media (max-width: 880px) { .svc-row { grid-template-columns: 1fr; gap: 16px; } .svc-row .arrow { display: none; } }

/* ---- PROCESS ---- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .process { grid-template-columns: 1fr 1fr; } }
.process .step { padding: 32px 0; border-top: 2px solid var(--arc); }
.process .step .n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em; color: var(--arc); margin-bottom: 16px; }
.process .step h4 { font-family: var(--f-display); font-size: 32px; color: var(--steel-hi); margin-bottom: 12px; line-height: 1; }
.process .step p { font-size: 15px; color: var(--ink-2); }

/* ---- CONTACT ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info dl { display: flex; flex-direction: column; gap: 36px; }
.contact-info dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--arc); margin-bottom: 8px; }
.contact-info dd { font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px); color: var(--steel-hi); line-height: 1.1; }
.contact-info dd a { transition: color .2s; }
.contact-info dd a:hover { color: var(--arc); }
.contact-info .small { font-family: var(--f-body); font-size: 16px; color: var(--ink-2); margin-top: 8px; }

.form { background: var(--panel); border: 1px solid var(--line); padding: 40px; }
.form .field { margin-bottom: 22px; }
.form label { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 14px 16px; font-family: var(--f-body); font-size: 16px;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--arc); }
.form textarea { resize: vertical; min-height: 140px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .form .row { grid-template-columns: 1fr; } }
.form button { margin-top: 8px; width: 100%; }

.service-area {
  margin-top: 80px;
  background: var(--bg-2); border: 1px solid var(--line); padding: 40px;
}
.service-area h3 { color: var(--steel-hi); margin-bottom: 12px; }
.service-area .towns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.service-area .towns span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .15em; padding: 8px 14px; border: 1px solid var(--line); color: var(--ink-2); }

/* ---- REVEAL animations ---- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Section header pattern ---- */
.section-head { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: end; margin-bottom: 64px; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }
.section-head .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--arc); }
.section-head .label .num { color: var(--ink-3); margin-right: 14px; }
.section-head h2 { max-width: 18ch; }

/* selection */
::selection { background: var(--arc); color: #0a0a0a; }
