/* =========================================================
   Axion Fabrication — Core + Home
   Palette taken from the brand mark: carbon black, steel
   white / silver and the electric-blue "blade".
   ========================================================= */
:root {
  /* Carbon */
  --ink: #07090c;
  --ink-2: #0d1116;
  --ink-3: #151a21;
  --ink-4: #1d242d;
  /* Steel */
  --white: #ffffff;
  --steel: #b8bfc8;
  --steel-2: #8c95a0;
  --light: #f3f5f8;
  --light-2: #e8ecf1;
  /* Blade blue */
  --blue: #0b72d4;
  --blue-hover: #0961b6;
  --blue-bright: #3a95ff;   /* for text / lines on black */
  --blue-soft: rgba(11, 114, 212, .1);
  /* Text */
  --text: #0b1016;
  --text-2: #3b4550;
  --muted: #5c6672;
  --muted-light: #9aa3ae;
  --line: rgba(255, 255, 255, .1);
  --line-dark: rgba(11, 16, 22, .1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Michroma", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: 24px;
  --cut: 12px;              /* angled corner size, echoes the logo */
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.fill, svg .fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-dark { background: var(--ink); color: var(--white); }
.section-light { background: var(--light); }

/* Image fallback (brushed steel while loading / if missing) */
.hero-media, .card-img, .about-media, .process-media {
  background: linear-gradient(135deg, #1a2028 0%, #4a535e 45%, #1a2028 100%);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; flex-shrink: 0;
  background: currentColor;
  transform: skewX(-40deg);
}
.eyebrow i { font-style: normal; margin: 0 .35em; color: var(--steel-2); }
.eyebrow-dark { color: var(--blue); }
.eyebrow-plain { color: var(--blue); }
.eyebrow-white { color: var(--blue-bright); }
.hero .eyebrow { gap: 0; }
.hero .eyebrow::before { display: none; }

h2 { font-size: clamp(28px, 3vw, 42px); }

.accent-rule { display: block; width: 44px; height: 3px; background: var(--blue); margin: 24px 0 22px; transform: skewX(-40deg); transform-origin: left; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700;
  color: var(--blue);
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow svg { font-size: 17px; }
.link-arrow:hover { gap: 15px; color: var(--blue-hover); }
.link-accent { color: var(--blue-bright); }
.link-accent:hover { color: var(--white); }
.link-muted { color: var(--text-2); }
.link-muted:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 26px;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  border: 0; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: background .3s, color .3s, transform .3s var(--ease);
  white-space: nowrap;
}
.btn svg { font-size: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--blue); }
.btn-sm { padding: 12px 20px; font-size: 13px; }
.btn-block { width: 100%; justify-content: space-between; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  transition: opacity .4s;
}
.site-header.scrolled {
  background: rgba(7, 9, 12, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.site-header.scrolled::after { background: linear-gradient(90deg, transparent, rgba(58, 149, 255, .5) 50%, transparent); }
.header-inner { display: flex; align-items: center; gap: 32px; }

/* Logo: mark + wordmark */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); line-height: 1; flex-shrink: 0; }
.logo-mark { width: 52px; height: 30px; stroke: none; }
.logo-mark .lm-steel { fill: var(--white); }
.logo-mark .lm-blade { fill: var(--blue); transition: transform .5s var(--ease); transform-origin: 30% 80%; }
.logo:hover .lm-blade { transform: translateX(14px); }
.logo-text { display: flex; flex-direction: column; gap: 6px; }
.logo-word { font-family: var(--font-brand); font-size: 21px; letter-spacing: .04em; font-weight: 400; }
.logo-sub { font-size: 8px; font-weight: 700; letter-spacing: .3em; color: var(--steel); padding-left: 1px; white-space: nowrap; }

.main-nav { margin-left: auto; margin-right: auto; }
.main-nav ul { display: flex; gap: 36px; }
.main-nav ul a {
  position: relative; display: block;
  font-size: 14.5px; font-weight: 600; color: var(--white);
  padding: 8px 0;
  transition: color .3s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--blue-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.active { color: var(--white); }
.main-nav ul a.active::after, .main-nav ul a:hover::after { transform: scaleX(1); }
.nav-mobile-extra { display: none; }

/* Services dropdown */
.main-nav .has-sub { position: relative; }
.main-nav .has-sub > a { display: flex; align-items: center; gap: 6px; }
.main-nav .caret { font-size: 14px; transition: transform .3s var(--ease); }
.main-nav .has-sub:hover .caret, .main-nav .has-sub:focus-within .caret { transform: rotate(180deg); }
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 18px); left: -24px;
  display: block; min-width: 280px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: 10px 0;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .35s var(--ease), visibility .3s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.main-nav .has-sub:hover .sub-menu, .main-nav .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 10px 24px; font-size: 14px; font-weight: 500; color: var(--steel); transition: color .3s, background .3s, padding .3s var(--ease); }
.main-nav .sub-menu a::after { display: none; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu a.active { color: var(--white); background: var(--blue-soft); padding-left: 30px; box-shadow: inset 2px 0 0 var(--blue-bright); }

a.service-card { display: block; }

.header-actions { display: flex; align-items: center; gap: 26px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--white); transition: color .3s; }
.header-phone svg { font-size: 18px; color: var(--blue-bright); }
.header-phone:hover { color: var(--blue-bright); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .22);
  position: relative; z-index: 120;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white);
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; right: 18px; background: var(--blue-bright); }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(640px, 94vh, 860px);
  display: flex; align-items: center;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 62%;
  z-index: -2;
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; transform: scale(1.12); filter: saturate(.85); }
.loaded .hero-media img { transform: scale(1); transition: transform 2.4s var(--ease); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,12,.45) 0%, transparent 30%, transparent 65%, rgba(7,9,12,.75) 100%),
    linear-gradient(90deg, rgba(7,9,12,.35), transparent 40%);
}

/* Angled carbon panel + blue blade edge (from the logo) */
.hero-shade, .hero::before {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero::before {
  content: "";
  background: linear-gradient(180deg, var(--blue-bright), var(--blue) 70%);
  clip-path: polygon(0 0, 56.5% 0, 44.5% 100%, 0 100%);
}
.hero-shade {
  background:
    radial-gradient(ellipse 60% 70% at 15% 30%, rgba(11, 114, 212, .16), transparent 70%),
    linear-gradient(90deg, #07090c 0%, #0d1116 100%);
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
}
.hero-shade::after {
  /* faint engineering grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent 75%);
  mask-image: linear-gradient(90deg, #000 20%, transparent 75%);
}
.js .hero::before, .js .hero-shade { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.loaded .hero::before { clip-path: polygon(0 0, 56.5% 0, 44.5% 100%, 0 100%); transition: clip-path 1.2s .1s var(--ease); }
.loaded .hero-shade  { clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%); transition: clip-path 1.2s var(--ease); }

.hero-inner { position: relative; padding-top: 130px; padding-bottom: 90px; min-height: inherit; display: flex; align-items: center; }
.hero-content { max-width: 560px; }
.hero h1 { font-size: clamp(36px, 4.2vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; margin-bottom: 24px; }
.hero-text { font-size: 17px; color: var(--steel); line-height: 1.75; max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 40px; }
.play-btn { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; transition: color .3s; }
.play-btn:hover { color: var(--blue-bright); }
.play-circle {
  position: relative;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
  color: var(--white);
  transition: background .3s, border-color .3s;
}
.play-circle svg { font-size: 15px; fill: currentColor; stroke: none; margin-left: 2px; }
.play-circle::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid var(--blue-bright);
  animation: pulse 2.2s infinite;
}
.play-btn:hover .play-circle { background: var(--blue); border-color: var(--blue); }

.hero-list {
  position: absolute; right: var(--gutter); bottom: 48px;
  background: rgba(7, 9, 12, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 16px 24px 16px 20px;
}
.hero-list li { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 2.2; }
.hero-list li::before { content: ""; width: 6px; height: 6px; background: var(--blue-bright); transform: rotate(45deg); }

@keyframes pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Hero on-load stagger */
.js .hero-anim { opacity: 0; transform: translateY(30px); }
.loaded .hero-anim {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0s) + .35s);
}
.js .hero-list.hero-anim { transform: translateX(30px); }
.loaded .hero-list.hero-anim { transform: none; }

/* =========================================================
   SERVICES (home)
   ========================================================= */
.services { padding: 110px 0 100px; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.services .section-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; }
.services .section-intro .eyebrow, .services .section-intro h2 { grid-column: 1; }
.services .section-intro h2 { max-width: 640px; }
.services .accent-rule { display: none; }
.services .link-arrow { grid-column: 2; grid-row: 2; margin-bottom: 8px; }

.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-dark);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.service-card .card-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service-card .card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 12, .55));
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card .card-body { padding: 24px 20px 26px; position: relative; }
.card-icon {
  position: absolute; top: -26px; left: 20px; z-index: 1;
  width: 52px; height: 52px; padding: 14px;
  background: var(--ink); color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background .35s;
}
.service-card h3 { font-size: 17px; font-weight: 700; margin: 22px 0 6px; letter-spacing: -.01em; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.service-card .card-body::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 0;
  background: var(--blue); transition: width .45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(7, 9, 12, .14); border-color: transparent; }
.service-card:hover img { transform: scale(1.08); }
.service-card:hover .card-icon { background: var(--blue); }
.service-card:hover .card-body::after { width: 100%; }

/* =========================================================
   ABOUT (home)
   ========================================================= */
.about { position: relative; overflow: hidden; }
.about-media {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 36%;
  clip-path: polygon(0 0, 70% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.about-media::after {
  /* blue blade along the cut edge */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 60%, rgba(11, 114, 212, .35));
}
.about-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.85); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  padding-top: 110px; padding-bottom: 110px;
  padding-left: calc(var(--gutter) + 30%);
  position: relative;
}
.about-text { max-width: 460px; }
.about-text h2 { margin-bottom: 24px; }
.about-text > p:not(.eyebrow) { font-size: 16px; color: var(--steel); line-height: 1.8; margin-bottom: 30px; }

.about-features { display: grid; gap: 14px; align-content: center; }
.about-features li {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 22px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: border-color .35s, background .35s, transform .35s var(--ease);
}
.about-features li:hover { border-color: rgba(58, 149, 255, .45); background: var(--ink-3); transform: translateX(-4px); }
.about-features svg { font-size: 30px; color: var(--blue-bright); transition: transform .4s var(--ease); }
.about-features li:hover svg { transform: scale(1.1) rotate(-6deg); }
.about-features h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; letter-spacing: -.01em; }
.about-features p { font-size: 14px; color: var(--muted-light); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { padding: 110px 0 100px; }
.projects-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.projects h2 { margin-bottom: 18px; }
.intro-text { font-size: 15.5px; color: var(--muted); line-height: 1.75; margin-bottom: 24px; }

.projects-slider { position: relative; min-width: 0; }
.slider-nav { display: flex; gap: 6px; margin-top: 32px; }
.slider-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: transparent; color: var(--text);
  border: 1px solid rgba(11, 16, 22, .2);
  transition: background .3s, color .3s, border-color .3s;
}
.slider-btn svg { font-size: 18px; }
.slider-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.slider-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--text); border-color: rgba(11, 16, 22, .2); }

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 18px) / 3);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.slider-track::-webkit-scrollbar { display: none; }
.project-card { scroll-snap-align: start; }
.project-card .card-img { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 18px; position: relative; }
.project-card .card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 12, .7));
  opacity: .5; transition: opacity .4s;
}
.project-card .card-img::before {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 1;
  height: 4px; width: 0; background: var(--blue);
  transition: width .5s var(--ease);
}
.project-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.01em; transition: color .3s; }
.project-card p { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.project-card:hover img { transform: scale(1.06); }
.project-card:hover .card-img::after { opacity: 1; }
.project-card:hover .card-img::before { width: 100%; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { padding: 110px 0; background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 48px; align-items: start; }
.testimonials h2 { margin-bottom: 18px; }
.testi-slider { min-width: 0; }
.testi-track { grid-auto-columns: calc((100% - 18px) / 2); padding-bottom: 8px; }
.testi-card {
  position: relative; margin: 0;
  display: flex; flex-direction: column;
  background: var(--light);
  padding: 38px 36px 32px;
  scroll-snap-align: start;
  border-top: 3px solid transparent;
  transition: border-color .45s, background .45s;
}
.testi-card:hover { border-top-color: var(--blue); background: var(--light-2); }
.testi-quote {
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-size: 20px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  margin-bottom: 22px;
}
.testi-stars { font-size: 15px; letter-spacing: 3px; color: var(--blue); }
.testi-card blockquote { flex: 1; margin: 14px 0 28px; font-size: 16.5px; line-height: 1.75; color: var(--text-2); }
.testi-card figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line-dark); }
.testi-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  box-shadow: inset 0 -3px 0 var(--blue);
}
.testi-card figcaption strong { display: block; font-size: 15.5px; font-weight: 700; }
.testi-card figcaption span span { display: block; font-size: 13.5px; color: var(--muted); }

/* =========================================================
   PROCESS
   ========================================================= */
.process { position: relative; background: var(--light-2); overflow: hidden; }
.process-media {
  position: absolute; top: 0; bottom: 0; left: 0; width: 32%;
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  overflow: hidden;
}
.process-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.9); }
.process-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11, 114, 212, .25), transparent 60%); }
.process-inner {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-top: 100px; padding-bottom: 100px;
  padding-left: calc(var(--gutter) + 30%);
}

.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; counter-reset: step; }
.process-steps::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(11, 114, 212, .25));
  transform-origin: left; transform: scaleX(var(--line-scale, 1));
  transition: transform 1.6s .2s var(--ease);
}
.js .process-steps::before { --line-scale: 0; }
.js .process-steps.line-in::before { --line-scale: 1; }
.process-steps li { position: relative; }
.step-num {
  position: relative; z-index: 1;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-family: var(--font-brand); font-size: 12px;
  background: var(--ink); color: var(--white);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  margin-bottom: 20px;
  transition: background .3s, transform .4s var(--ease);
}
.process-steps li:hover .step-num { background: var(--blue); transform: translateY(-3px); }
.process-steps h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.process-steps p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* =========================================================
   INDUSTRIES
   ========================================================= */
.industries { padding: 80px 0; position: relative; overflow: hidden; }
.industries::before {
  content: ""; position: absolute; right: -8%; top: -40%; width: 40%; height: 180%;
  background: linear-gradient(180deg, rgba(11, 114, 212, .14), transparent);
  transform: skewX(-32deg);
  pointer-events: none;
}
.industries-inner { position: relative; display: flex; align-items: center; gap: 48px; }
.industries-title { flex: 0 0 300px; }
.industries-title h2 { font-size: clamp(24px, 2.2vw, 30px); }
.industry-list { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.industry-list li {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--steel);
  transition: border-color .35s, background .35s, color .35s;
}
.industry-list svg { font-size: 30px; color: var(--blue-bright); transition: transform .4s var(--ease); }
.industry-list li:hover { border-color: rgba(58, 149, 255, .5); background: var(--ink-2); color: var(--white); }
.industry-list li:hover svg { transform: translateY(-4px); }
.industries-arrow {
  width: 56px; height: 56px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-size: 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background .3s, transform .3s var(--ease);
}
.industries-arrow:hover { background: var(--blue-hover); transform: translateX(4px); }

/* =========================================================
   IMPACT + CTA + FORM
   ========================================================= */
.contact-band { display: grid; grid-template-columns: 42% 1fr; }
.impact {
  position: relative; color: var(--white);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(11, 114, 212, .35), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 2px, transparent 2px 6px),
    linear-gradient(135deg, #07090c, #121820 60%, #07090c);
  display: flex; align-items: center;
  padding: 80px var(--gutter);
  overflow: hidden;
}
.impact::before {
  /* subtle light sweep across brushed metal */
  content: ""; position: absolute; top: -50%; left: -30%; width: 40%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: rotate(20deg);
  animation: sweep 7s infinite;
}
@keyframes sweep { 0% { left: -40%; } 60%, 100% { left: 130%; } }
.impact-inner { position: relative; width: 100%; max-width: 460px; margin-left: auto; margin-right: 40px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 10px; background: var(--line); border: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; position: relative; background: rgba(7, 9, 12, .6); }
.stat strong { font-family: var(--font-brand); font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; color: var(--white); line-height: 1; letter-spacing: -.02em; }
.stat strong::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 14px; background: var(--blue-bright); transform: skewX(-40deg); }
.stat > span { font-size: 13.5px; font-weight: 600; color: var(--steel); }

.cta-form {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
  padding: 80px var(--gutter) 80px 64px;
  background: var(--white);
}
.cta-form > * { max-width: 420px; }
.cta h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 16px; }
.cta p { font-size: 15.5px; color: var(--muted); line-height: 1.75; margin-bottom: 26px; }
.quote-form { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-grid #fEmail, .form-grid textarea { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea {
  width: 100%;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--light);
  border: 1px solid transparent; border-bottom: 2px solid #d3d9e0; border-radius: 0;
  padding: 14px 16px;
  transition: border-color .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #7b8591; }
.form-grid textarea { resize: vertical; min-height: 120px; }
.form-grid input:focus, .form-grid textarea:focus {
  outline: none; border-bottom-color: var(--blue); background: var(--white); border-color: var(--line-dark);
  border-bottom-color: var(--blue);
}
.form-grid .invalid, .form-grid .invalid:focus { border-bottom-color: #d64545; background: #fff5f5; }
.form-status { font-size: 14px; font-weight: 600; margin-top: 12px; min-height: 1em; color: #1f8a4c; }
.form-status.error { color: #c53030; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; background: var(--ink); color: var(--steel); padding: 88px 0 30px; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 30%, transparent 70%);
}
.footer-top { display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1.4fr; gap: 48px; align-items: start; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-brand .logo-mark { width: 58px; height: 34px; }
.footer-brand .logo-word { font-size: 23px; }
.footer-brand p { font-size: 14.5px; margin: 22px 0 28px; max-width: 300px; line-height: 1.8; }
.footer-col strong, .footer-social strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; transition: color .3s, padding .3s var(--ease); }
.footer-col a:hover { color: var(--blue-bright); padding-left: 4px; }
.footer-contact { display: grid; gap: 26px; }
.footer-item { display: flex; gap: 16px; font-size: 14.5px; line-height: 1.85; }
.footer-item svg { font-size: 20px; color: var(--blue-bright); margin-top: 4px; }
.footer-item div { display: flex; flex-direction: column; }
.footer-item strong { font-weight: 700; color: var(--white); }
.footer-item a { transition: color .3s; }
.footer-item a:hover { color: var(--blue-bright); }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--white); font-size: 16px;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.social-links a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 26px; font-size: 13px; color: var(--muted-light); }

/* Floating actions */
.float-actions { position: fixed; right: 20px; bottom: 28px; display: flex; flex-direction: column; gap: 12px; z-index: 90; }
.float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 23px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease), background .3s;
  animation: floatIn .7s 1.4s both var(--ease);
}
.float-btn:nth-child(2) { animation-delay: 1.55s; }
.float-btn:hover { transform: scale(1.08); }
.float-wa { background: #25d366; color: var(--white); }
.float-call { background: var(--blue); color: var(--white); font-size: 20px; }
.float-call:hover { background: var(--blue-hover); }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */
.js [data-anim] {
  opacity: 0;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-anim="fade-up"]    { transform: translateY(40px); }
.js [data-anim="fade-right"] { transform: translateX(-40px); }
.js [data-anim="fade-left"]  { transform: translateX(40px); }
.js [data-anim="zoom"]       { transform: scale(.88); }
.js [data-anim="reveal-left"] { transform: translateX(-60px); transition-duration: 1.2s; }
.js [data-anim="reveal-left"] img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.js [data-anim].in-view { opacity: 1; transform: none; }
.js [data-anim="reveal-left"].in-view img { transform: scale(1); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .main-nav ul { gap: 26px; }
  .header-inner { gap: 20px; }
  .header-actions { gap: 18px; }
  .service-cards { grid-template-columns: repeat(3, 1fr); gap: 16px 16px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; padding-left: calc(var(--gutter) + 34%); }
  .about-media { width: 38%; }
  .about-features { grid-template-columns: 1fr 1fr; }
  .process-inner { padding-left: calc(var(--gutter) + 32%); }
  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process-steps::before { display: none; }
  .contact-band { grid-template-columns: 1fr; }
  .impact { padding: 70px var(--gutter); }
  .impact-inner { margin: 0 auto; max-width: var(--container); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cta-form { padding: 70px var(--gutter); justify-content: center; grid-template-columns: minmax(0, 420px) minmax(0, 520px); }
  .cta-form > * { max-width: none; }
  .industries-inner { flex-wrap: wrap; gap: 36px; }
  .industries-title { flex-basis: 100%; }
  .industry-list { flex-basis: calc(100% - 92px); }
}

@media (max-width: 1024px) {
  .site-header { padding: 14px 0; }
  .header-actions { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    padding: 100px 32px 32px;
    display: flex; flex-direction: column; justify-content: space-between;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .5s var(--ease), visibility .5s;
    box-shadow: -20px 0 50px rgba(0,0,0,.4);
    z-index: 110;
    margin: 0;
    overflow-y: auto;
  }
  .main-nav::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(20px); transition: opacity .4s, transform .4s var(--ease); }
  .nav-open .main-nav ul li { opacity: 1; transform: none; }
  .nav-open .main-nav ul li:nth-child(1) { transition-delay: .15s; }
  .nav-open .main-nav ul li:nth-child(2) { transition-delay: .2s; }
  .nav-open .main-nav ul li:nth-child(3) { transition-delay: .25s; }
  .nav-open .main-nav ul li:nth-child(4) { transition-delay: .3s; }
  .main-nav ul a { font-size: 18px; padding: 16px 0; }
  .main-nav ul a::after { display: none; }
  .main-nav ul a.active { color: var(--blue-bright); }
  .main-nav .caret { display: none; }
  .main-nav .sub-menu {
    position: static; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; box-shadow: none;
    padding: 0 0 14px 14px;
    border-left: 1px solid var(--line) !important;
    margin-left: 2px;
  }
  .main-nav .sub-menu::before { display: none; }
  .main-nav .sub-menu li { border-bottom: 0; opacity: 1; transform: none; }
  .main-nav .sub-menu a { font-size: 15px; padding: 7px 0; background: none; }
  .main-nav .sub-menu a:hover, .main-nav .sub-menu a.active { padding-left: 6px; background: none; box-shadow: none; color: var(--blue-bright); }
  .nav-mobile-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 32px; }
  .nav-mobile-extra .btn { width: 100%; }
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 105;
  }
  body.nav-open { overflow: hidden; }
  /* Header must sit above the overlay, and must not use backdrop-filter while
     open: it would become the containing block for the fixed drawer. */
  .nav-open .site-header { z-index: 120; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open .site-header.scrolled { background: var(--ink); }

  .hero-media { width: 72%; }
  .hero::before, .loaded .hero::before { clip-path: polygon(0 0, 66.5% 0, 50.5% 100%, 0 100%); }
  .hero-shade, .loaded .hero-shade { clip-path: polygon(0 0, 66% 0, 50% 100%, 0 100%); }
  .js .hero::before, .js .hero-shade { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  .loaded .hero::before { clip-path: polygon(0 0, 66.5% 0, 50.5% 100%, 0 100%); }
  .loaded .hero-shade { clip-path: polygon(0 0, 66% 0, 50% 100%, 0 100%); }
  .hero-content { max-width: 480px; }
  .hero-list { display: none; }

  .services, .projects, .testimonials { padding: 84px 0; }
  .projects-grid, .testimonials-grid { grid-template-columns: 1fr; gap: 36px; }
  .projects .section-intro, .testimonials .section-intro { display: grid; grid-template-columns: 1fr auto; column-gap: 30px; align-items: end; }
  .projects .section-intro > *, .testimonials .section-intro > * { grid-column: 1; }
  .projects .section-intro .slider-nav, .testimonials .section-intro .slider-nav { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin: 0; }
  .projects h2 br { display: none; }
  .intro-text { max-width: 560px; }

  .about-inner { padding-top: 90px; padding-bottom: 90px; }
  .process-inner { padding-top: 80px; padding-bottom: 80px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }
  body { font-size: 15.5px; }

  /* Hero: full-bleed photo with overlay */
  .hero { min-height: min(100svh, 820px); align-items: flex-end; }
  .hero-media { width: 100%; }
  .hero-media img { object-position: 70% center; }
  .hero::before { display: none; }
  .hero-shade, .js .hero-shade, .loaded .hero-shade {
    clip-path: none;
    background: linear-gradient(180deg, rgba(7,9,12,.55) 0%, rgba(7,9,12,.72) 40%, rgba(7,9,12,.95) 75%, #07090c 100%);
  }
  .js .hero-shade { opacity: 0; }
  .loaded .hero-shade { opacity: 1; transition: opacity 1s; }
  .hero-shade::after { display: none; }
  .hero-inner { flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-top: 130px; padding-bottom: 56px; }
  .hero-text { font-size: 16px; }
  .hero-cta { gap: 20px 28px; }

  .services, .projects, .testimonials { padding: 68px 0; }
  .services .section-intro { display: block; }
  .services .link-arrow { margin-top: 18px; }
  .service-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .about-media { position: relative; width: 100%; height: 280px; clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%); }
  .about-inner { padding: 36px var(--gutter) 68px; }
  .about-features { grid-template-columns: 1fr; gap: 10px; }

  .projects .section-intro, .testimonials .section-intro { display: block; }
  .projects .section-intro .slider-nav, .testimonials .section-intro .slider-nav { margin-top: 24px; }
  .slider-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .testi-track { grid-auto-columns: 88%; }
  .testi-card { padding: 30px 24px 26px; }
  .testi-card blockquote { font-size: 15.5px; }

  .process-media { position: relative; width: 100%; height: 220px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%); }
  .process-inner { padding: 30px var(--gutter) 68px; }
  .process-steps { grid-template-columns: 1fr; gap: 0; }
  .process-steps::before { display: block; top: 23px; bottom: 23px; left: 22px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), rgba(11, 114, 212, .2)); transform-origin: top; transform: scaleY(var(--line-scale, 1)); }
  .process-steps li { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 26px; }
  .process-steps li:last-child { padding-bottom: 0; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .process-steps h4 { align-self: end; }

  .industries { padding: 64px 0; }
  .industry-list { flex-basis: 100%; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .industry-list li:last-child { grid-column: 1 / -1; }
  .industries-arrow { display: none; }

  .impact { padding: 60px var(--gutter); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 18px; }

  .cta-form { grid-template-columns: 1fr; gap: 32px; padding: 60px var(--gutter); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > * { grid-column: 1 / -1; }

  .site-footer { padding-top: 64px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 70px; }
  .float-actions { right: 14px; bottom: 18px; gap: 10px; }
  .float-btn { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  .logo-mark { width: 44px; height: 26px; }
  .logo-word { font-size: 18px; }
  .logo-sub { font-size: 7px; letter-spacing: .26em; }
  .hero h1 { font-size: 34px; }
  .hero-cta .btn { width: 100%; justify-content: space-between; }
  .service-cards { grid-template-columns: 1fr; }
  .service-cards .service-card { display: grid; grid-template-columns: 120px 1fr; }
  .service-cards .card-img { aspect-ratio: auto; min-height: 110px; }
  .service-cards .card-body { padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; }
  .service-cards .card-icon { display: none; }
  .service-cards .service-card h3 { margin-top: 0; font-size: 16px; }
  .slider-track { grid-auto-columns: 82%; }
  .footer-top { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-anim], .js .hero-anim { opacity: 1 !important; transform: none !important; }
}
