/* ============================================================
   ITS — Industrial Technical Services
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #111114;
  --bg-3: #16171a;
  --surface: #1c1d21;
  --line: #26272c;
  --text: #f4f4f5;
  --text-dim: #a1a1a8;
  --text-mute: #6a6b72;
  --accent: #ff6a1a;
  --accent-2: #ffb454;
  --accent-soft: rgba(255, 106, 26, 0.14);
  --max: 1280px;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,0.6);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: .5rem 1rem; z-index: 9999;
}
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem;
  font-weight: 600; font-size: .92rem;
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 1.05rem 1.75rem; font-size: 1rem; }
.btn-accent { background: var(--accent); color: #0b0b0c; }
.btn-accent:hover { background: var(--accent-2); color: #0b0b0c; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,12, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), padding .25s var(--ease);
}
.site-header.scrolled {
  background: rgba(11,11,12, .92);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 0;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: 'Archivo Black', Inter, sans-serif;
  font-size: 1.25rem; letter-spacing: .04em;
}
.logo-mark { color: var(--accent); font-size: 1.05rem; transform: translateY(-1px); }
.logo-dot { color: var(--accent); }
.logo:hover { color: var(--text); }

.nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 2rem;
}
.nav a {
  font-size: .92rem; color: var(--text-dim); font-weight: 500;
  position: relative; padding: .25rem 0;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.header-cta { padding: .7rem 1.1rem; font-size: .88rem; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); border-radius: 4px;
  padding: .55rem; cursor: pointer; color: var(--text);
  flex-direction: column; gap: 4px;
}
.nav-toggle span {
  width: 18px; height: 2px; background: currentColor; display: block;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--bg-2);
}
.mobile-nav ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .75rem; }
.mobile-nav a { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 0;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(95deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.55) 45%, rgba(11,11,12,.25) 75%, rgba(11,11,12,.6) 100%),
    linear-gradient(180deg, transparent 50%, rgba(11,11,12,.85) 95%, var(--bg) 100%),
    url('https://images.unsplash.com/photo-1745448797901-2a4c9d9af1c1?w=2000&q=80&auto=format&fit=crop') center/cover no-repeat;
  filter: contrast(1.08) saturate(.85);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 75%);
  pointer-events: none;
}
.hero-inner {
  padding-bottom: clamp(4rem, 10vw, 7rem);
  max-width: 1180px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
  padding: .4rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 0 0 8px rgba(255,106,26,0); }
}
.hero-title {
  font-family: 'Archivo Black', Inter, sans-serif;
  font-size: clamp(2.6rem, 7.2vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.025em;
  margin: 1.4rem 0 1.5rem;
  text-transform: none;
}
.hero-title .accent {
  color: var(--accent);
  display: inline-block;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-dim);
  max-width: 56ch;
  margin: 0 0 2.25rem;
}
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-stats {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.hero-stats > div { padding: 0; }
.hero-stats dt {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -.02em;
  margin: 0 0 .25rem;
}
.hero-stats dd {
  margin: 0; color: var(--text-mute);
  font-size: .85rem; letter-spacing: .04em;
  text-transform: uppercase;
}

/* Ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 1rem 0;
}
.ticker-track {
  display: flex; gap: 2rem;
  white-space: nowrap;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.1rem; letter-spacing: .04em;
  color: var(--text);
  animation: ticker 40s linear infinite;
}
.ticker-track span:nth-child(even) { color: var(--accent); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .55rem;
}
.section-label .num { color: var(--text-mute); }
.section-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 1.25rem;
  max-width: 22ch;
}
.section-sub {
  color: var(--text-dim);
  max-width: 60ch;
  font-size: 1.05rem;
}
.lead { color: var(--text-dim); font-size: 1.08rem; max-width: 56ch; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.badge-list {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.badge-list li {
  border: 1px solid var(--line);
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text-dim);
  background: rgba(255,255,255,.02);
}
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255,106,26,.12), rgba(0,0,0,.4)),
    url('https://images.unsplash.com/photo-1738162837408-5fbf53f0b97a?w=1400&q=80&auto=format&fit=crop') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.about-card {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: var(--accent);
  color: #0b0b0c;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  max-width: 230px;
  box-shadow: var(--shadow-lg);
}
.about-card-num {
  font-family: 'Archivo Black', sans-serif;
  font-size: 2.6rem; line-height: 1;
  margin-bottom: .35rem;
}
.about-card-text { font-size: .92rem; font-weight: 500; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); }
.services-head { max-width: 760px; margin: 0 0 3rem; }
.service-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem 1.85rem;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(255,106,26,.10), transparent 40%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(255,106,26,.45); }
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-mute);
  font-size: .85rem; letter-spacing: .14em;
  margin-bottom: 1.5rem;
}
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.45rem;
  letter-spacing: -.01em;
  margin: 0 0 .9rem;
  line-height: 1.15;
}
.service-card p { color: var(--text-dim); margin: 0 0 1.25rem; }
.service-list {
  list-style: none; padding: 0; margin: 0 0 1.75rem;
  display: grid; gap: .55rem;
}
.service-list li {
  position: relative; padding-left: 1.4rem;
  color: var(--text-dim); font-size: .95rem;
}
.service-list li::before {
  content: ''; position: absolute; left: 0; top: .55rem;
  width: 8px; height: 2px; background: var(--accent);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto;
  color: var(--text); font-weight: 600; font-size: .95rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
  width: max-content;
  transition: color .2s var(--ease), border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: .75rem; }

.service-card--accent {
  background: linear-gradient(160deg, #1d1410 0%, var(--bg-3) 70%);
  border-color: rgba(255,106,26,.35);
}

/* ---------- Process ---------- */
.process { background: var(--bg); }
.process-head { max-width: 760px; margin: 0 0 3rem; }
.process-steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.process-steps li {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
  position: relative;
}
.process-steps .step-num {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-mute);
  font-size: .82rem; letter-spacing: .14em;
}
.process-steps h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.3rem;
  margin: .6rem 0 .65rem;
  letter-spacing: -.01em;
}
.process-steps p { margin: 0; color: var(--text-dim); font-size: .96rem; }

/* ---------- Projects ---------- */
.projects { background: var(--bg-2); }
.projects-head { max-width: 760px; margin: 0 0 3rem; }
.projects-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
}
.project {
  position: relative; margin: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.project--lg { grid-column: span 2; grid-row: span 2; }
.project-img {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.project:hover .project-img { transform: scale(1.05); }
.project::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.85));
}
.project figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
}
.project .tag {
  display: inline-block;
  padding: .3rem .7rem;
  background: var(--accent); color: #0b0b0c;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: .75rem;
}
.project h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.2rem; margin: 0;
  letter-spacing: -.01em;
}
.project--lg h3 { font-size: 1.6rem; }

.project-img--1 { background-image: url('https://images.unsplash.com/photo-1764114440403-4dd539cb582a?w=1600&q=80&auto=format&fit=crop'); }
.project-img--2 { background-image: url('https://images.unsplash.com/photo-1532186773960-85649e5cb70b?w=1200&q=80&auto=format&fit=crop'); }
.project-img--3 { background-image: url('https://images.unsplash.com/photo-1647586028042-1de4d4a935e6?w=1200&q=80&auto=format&fit=crop'); }
.project-img--4 { background-image: url('https://images.unsplash.com/photo-1689961476760-4a6b2461eec0?w=1200&q=80&auto=format&fit=crop'); }

/* ---------- Quote / Logos ---------- */
.quote-section { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-inner { max-width: 1000px; text-align: center; }
.quote-inner .section-label { justify-content: center; }
.big-quote { margin: 0 0 3rem; }
.big-quote p {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.2; letter-spacing: -.02em;
  margin: 0 0 1.5rem;
}
.big-quote footer {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
  color: var(--text-dim); font-size: .95rem;
}
.big-quote cite { font-style: normal; color: var(--text); font-weight: 600; }
.logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.05rem; letter-spacing: .12em;
  color: var(--text-mute);
}
.logos span { transition: color .2s var(--ease); }
.logos span:hover { color: var(--text); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-meta {
  list-style: none; padding: 0; margin: 1.75rem 0 0;
  display: grid; gap: .85rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.contact-meta li {
  display: grid; grid-template-columns: 100px 1fr;
  align-items: baseline;
  font-size: .98rem;
}
.contact-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.contact-meta a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: grid; gap: .5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .85rem 1rem;
  color: var(--text);
  font: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--accent);
  background: #0e0e10;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-success { color: var(--accent); margin: 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 4rem 0 1.75rem;
  color: var(--text-dim);
  font-size: .92rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  margin-bottom: 3rem;
}
.footer-brand p { margin: 1rem 0 0; max-width: 32ch; }
.footer-col h4 {
  font-family: 'Archivo Black', sans-serif;
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .06em;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .service-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project--lg { grid-column: span 2; grid-row: span 1; min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-card { left: auto; right: -1rem; bottom: -1rem; }
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .service-grid, .process-steps, .projects-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .project--lg { grid-column: span 1; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-meta li { grid-template-columns: 80px 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
