/*
Theme Name: Ghuman Knits
Theme URI: https://www.ghumanknits.com/
Author: Ghuman Knits
Author URI: https://www.ghumanknits.com/
Description: Official theme for Ghuman Knits – Textile Project Consultants. Single-window consultancy for the knitting & knitwear industries.
Version: 1.9.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghuman-knits
*/

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0A1017;
  --surface:    #0F2235;
  --surface-2:  #162C42;
  --border:     rgba(255,255,255,0.08);
  --border-2:   rgba(255,255,255,0.14);
  --text:       #FFFFFF;
  --muted:      rgba(255,255,255,0.78);
  --muted-2:    rgba(255,255,255,0.45);
  --white:      #FFFFFF;
  --blue:       #3B97D3;
  --blue-dark:  #2A7DB8;
  --blue-light: #5BAEE0;
  --orange:     #F7924A;
  --orange-dark:#E07A35;
  --dark:       #0F2235;
  --dark-2:     #162C42;
  --font:       'Space Grotesk', 'Inter', system-ui, sans-serif;
  --radius:     4px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.35);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Scroll Reveal ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line, .visual-svg .stitches, .visual-svg .wale { animation: none !important; }
}

/* ── Top Bar ──────────────────────────────────────── */
.topbar {
  background: var(--dark);
  padding: 10px 0;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar a {
  color: rgba(255,255,255,0.85);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a:hover { color: var(--blue-light); }
.topbar .topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar-sep { color: rgba(255,255,255,0.2); }

/* ── Header ───────────────────────────────────────── */
header {
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

/* Header scroll shrink */
header {
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s,
              box-shadow 0.3s,
              backdrop-filter 0.3s;
}
.header-inner {
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
header.header-scrolled {
  background: rgba(22, 44, 66, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 2px 32px rgba(0,0,0,0.35);
}
header.header-scrolled .header-inner {
  height: 64px;
}
header.header-scrolled .site-logo,
header.header-scrolled .custom-logo {
  height: 52px;
}
header.header-scrolled nav a,
header.header-scrolled .nav-dropdown > .nav-link {
  height: 64px;
  line-height: 64px;
}
header.header-scrolled .nav-cta {
  height: auto !important;
}

/* Logo */
.site-logo-link,
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.site-logo-link:hover,
.custom-logo-link:hover { opacity: 0.85; }
.site-logo,
.custom-logo {
  height: 72px;
  width: auto;
  display: block;
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 0;
}
nav a {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 88px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
}
nav a:hover { color: #fff; }
nav a:hover::after { transform: scaleX(1); }
nav a.active { color: #fff; }
nav a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: var(--radius);
  height: auto !important;
  padding: 11px 24px !important;
  margin-left: 12px;
  letter-spacing: 0.08em !important;
  box-shadow: 0 2px 8px rgba(247,146,74,0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--orange-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(247,146,74,0.45) !important;
  transform: translateY(-1px);
}

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 24px;
  height: 88px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-dropdown > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
}
.nav-chevron { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown:hover > .nav-link { color: #fff; }
.nav-dropdown:hover > .nav-link::after { transform: scaleX(1); }
.nav-menu {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 260px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 50;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  display: block;
  height: auto;
  line-height: normal;
  padding: 13px 20px;
  border-left: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.77rem;
  color: rgba(255,255,255,0.65);
}
.nav-menu a::after { display: none; }
.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover { color: #fff; background: rgba(59,151,211,0.12); padding-left: 28px; }
.nav-menu a { transition: color 0.15s, background 0.15s, padding-left 0.2s; }

/* ── Hamburger ────────────────────────────────────── */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 120;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: rgba(255,255,255,0.35); }
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.2s;
}
body.nav-open .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
.btn-solid {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(247,146,74,0.35);
}
.btn-solid:hover {
  background: var(--orange-dark);
  box-shadow: 0 4px 20px rgba(247,146,74,0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(59,151,211,0.05);
}
.hero .btn-ghost,
.contact .btn-ghost {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}
.hero .btn-ghost:hover,
.contact .btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.about-content .btn-ghost {
  color: var(--blue);
  border-color: var(--blue);
}
.about-content .btn-ghost:hover {
  background: var(--blue);
  color: #fff;
}

/* ── Section helpers ──────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.55);
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10,18,30,0.97) 0%, rgba(10,18,30,0.82) 45%, rgba(10,18,30,0.45) 100%),
    linear-gradient(180deg, rgba(10,18,30,0.3) 0%, rgba(10,18,30,0) 25%, rgba(10,18,30,0) 65%, rgba(10,18,30,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 80px;
  padding-bottom: 120px;
}
.hero-inner { max-width: none; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--blue);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}
.hero-desc {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-divider {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 32px 0;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-num span { color: var(--text); }
.hero-stat-label {
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 5px;
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-scroll span {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.hero-scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ── Intro ────────────────────────────────────────── */
.intro {
  padding: 110px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.intro-label .section-tag { display: flex; margin-bottom: 24px; }
.intro-label h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.intro-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 22px;
}
.intro-body p:last-child { margin-bottom: 0; }
.intro-body strong { color: var(--text); font-weight: 600; }
.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* ── Services ─────────────────────────────────────── */
.services {
  padding: 110px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 24px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.service-card {
  padding: 56px 44px 60px;
  background: var(--surface);
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover { background: var(--surface-2); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  margin-bottom: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 28px;
}
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.15;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}
.service-card .service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-top: auto;
  padding-top: 32px;
  opacity: 1;
  transition: color 0.2s, transform 0.2s;
}
.service-card:hover .service-arrow {
  color: var(--orange);
  transform: translateX(4px);
}

/* ── About ────────────────────────────────────────── */
.about {
  padding: 110px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Custom woven-fabric visual */
.about-visual {
  position: relative;
  background: var(--dark);
  min-height: 520px;
  overflow: hidden;
}
.visual-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.visual-svg .stitches {
  animation: stitchShimmer 7s ease-in-out infinite;
}
@keyframes stitchShimmer {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.75; }
}
.visual-svg .wale { animation: waleGlow 5.5s ease-in-out infinite; }
.visual-svg .wale.w1 { animation-delay: 0s; }
.visual-svg .wale.w2 { animation-delay: 0.6s; }
.visual-svg .wale.w3 { animation-delay: 1.2s; }
.visual-svg .wale.w4 { animation-delay: 1.8s; }
@keyframes waleGlow {
  0%, 100% { stroke-opacity: 0.06; }
  50%      { stroke-opacity: 0.28; }
}

/* Viewfinder corner brackets */
.visual-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.visual-corner.tl { top: 24px;    left: 24px;   border-top:    1.5px solid rgba(255,255,255,0.3); border-left:  1.5px solid rgba(255,255,255,0.3); }
.visual-corner.tr { top: 24px;    right: 24px;  border-top:    1.5px solid rgba(255,255,255,0.3); border-right: 1.5px solid rgba(255,255,255,0.3); }
.visual-corner.bl { bottom: 24px; left: 24px;   border-bottom: 1.5px solid rgba(255,255,255,0.3); border-left:  1.5px solid rgba(255,255,255,0.3); }
.visual-corner.br { bottom: 24px; right: 24px;  border-bottom: 1.5px solid rgba(255,255,255,0.3); border-right: 1.5px solid rgba(255,255,255,0.3); }

/* Technical labels */
.visual-meta {
  position: absolute;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}
.visual-meta.tl-label { top: 28px;    left: 58px; }
.visual-meta.tr-label { top: 28px;    right: 58px; }
.visual-meta.bl-label { bottom: 28px; left: 58px; }
.visual-meta.br-label { bottom: 28px; right: 58px; color: rgba(255,255,255,0.45); }

/* Blue accent strip on visual */
.about-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--orange) 100%);
}

.about-content {
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}
.about-content .section-tag { margin-bottom: 24px; }
.about-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1.15;
}
.about-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-content p:last-of-type { margin-bottom: 36px; }

/* ── Stats Strip ──────────────────────────────────── */
.stats-strip {
  background: var(--dark);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 44px 36px;
  border-right: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: background 0.2s;
}
.stat-item:hover { background: rgba(255,255,255,0.03); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat-number span { color: var(--text); }
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ── Testimonials ─────────────────────────────────── */
.testimonials {
  padding: 110px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.testimonials .section-tag { color: var(--blue-light); }
.testimonials .section-tag::before { background: var(--blue-light); }
.testimonials .section-header { border: none; margin-bottom: 16px; }
.testimonials .section-header h2 { color: #fff; }
.testimonials-sub {
  color: rgba(255,255,255,0.45);
  font-size: 0.95rem;
  margin-bottom: 56px;
  max-width: 500px;
  line-height: 1.7;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.testimonial-card {
  padding: 44px 40px;
  background: rgba(255,255,255,0.04);
  transition: background 0.2s;
  position: relative;
}
.testimonial-card:hover { background: rgba(255,255,255,0.07); }
.testimonial-quote {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 20px;
  font-family: Georgia, serif;
}
.testimonial-card p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  margin-bottom: 32px;
  font-style: italic;
}
.testimonial-bar {
  width: 28px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.testimonial-author {
  margin-top: 20px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ── Contact ──────────────────────────────────────── */
.contact {
  padding: 110px 0;
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.contact-overlay { display: none; }
.contact .container { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-left {
  padding: 72px 56px;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.contact-left::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.12), transparent);
}
.contact-left .section-tag { color: var(--blue-light); }
.contact-left .section-tag::before { background: var(--blue-light); }
.contact-left h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 20px;
  margin-bottom: 40px;
}
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail { display: flex; flex-direction: column; gap: 5px; }
.detail-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.detail-value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  transition: color 0.15s;
}
.detail-value:hover { color: var(--blue-light); }
.contact-form-wrap {
  padding: 72px 56px;
  background: var(--surface-2);
}
.contact-form { display: flex; flex-direction: column; gap: 0; }
.field {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}
.field:focus-within { border-color: var(--blue); }
.field label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 22px 0 7px;
  transition: color 0.2s;
}
.field:focus-within label { color: var(--blue); }
.field input,
.field textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0 0 18px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field textarea { min-height: 88px; resize: none; }
.contact-form .btn { margin-top: 40px; align-self: flex-start; }
.contact-success {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-left: 3px solid #4CAF50;
  background: #f0fdf0;
  color: #2d6b2d;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
}
.contact-error {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: #fff8f4;
  color: #8b3800;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
}

/* Footer ghost button override — dark background */
footer .btn-ghost {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
footer .btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-top {
  padding: 56px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
}
.footer-brand .footer-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 24px;
}
.footer-col-title {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  padding: 5px 0;
  transition: color 0.15s;
  letter-spacing: 0.02em;
}
.footer-col a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.footer-contact-item .fc-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer-contact-item a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s;
  padding: 0;
}
.footer-contact-item a:hover { color: var(--blue-light); }
.footer-bottom {
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  color: rgba(255,255,255,0.55);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }

/* ── Industries Marquee ───────────────────────────── */
.marquee-strip {
  background: var(--dark-2);
  padding: 11px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 48s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ── Process / How We Work ────────────────────────── */
.process {
  padding: 110px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.process .section-tag { color: var(--text); }
.process .section-tag::before { background: var(--text); }
.process .section-header h2 { color: #fff; }
.process .section-header { border: none; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 32px;
  right: calc(25% - 32px);
  height: 1px;
  background: rgba(255,255,255,0.18);
  pointer-events: none;
}
.process-step {
  padding: 0 28px 0 0;
  position: relative;
}
.process-step:last-child { padding-right: 0; }
.process-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  transition: background 0.25s, border-color 0.25s;
}
.process-step:hover .process-num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.process-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.3;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.75;
}

/* ── Mid-page CTA Band ────────────────────────────── */
.cta-band {
  background: var(--orange);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.cta-band-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 540px;
}
.cta-band .btn-solid {
  background: #fff;
  color: var(--orange-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  white-space: nowrap;
  flex-shrink: 0;
}
.cta-band .btn-solid:hover {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ── Stat counter animation ───────────────────────── */
.stat-number[data-target] { transition: none; }

/* Staggered service card reveal */
.services-grid .service-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.2s;
}
.services-grid.is-visible .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid.is-visible .service-card:nth-child(2) { transition-delay: 0.12s; }
.services-grid.is-visible .service-card:nth-child(3) { transition-delay: 0.19s; }
.services-grid.is-visible .service-card:nth-child(4) { transition-delay: 0.26s; }
.services-grid.is-visible .service-card:nth-child(5) { transition-delay: 0.33s; }
.services-grid.is-visible .service-card:nth-child(6) { transition-delay: 0.40s; }
.services-grid.is-visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

/* ── Page Template ────────────────────────────────── */
.page-content {
  padding: 100px 0;
  min-height: 60vh;
  background: var(--bg);
}
.page-article-header {
  padding-bottom: 36px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-article-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  max-width: 760px;
}
.page-article-body h2,
.page-article-body h3,
.page-article-body h4 {
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 44px 0 18px;
}
.page-article-body p  { margin-bottom: 22px; }
.page-article-body ul,
.page-article-body ol { padding-left: 24px; margin-bottom: 22px; }
.page-article-body li { margin-bottom: 8px; }
.page-article-body a  { color: var(--blue); text-decoration: underline; text-decoration-color: var(--border-2); }
.page-article-body a:hover { text-decoration-color: var(--blue); }
.page-article-body strong { color: var(--text); font-weight: 600; }

/* ── Service / Sub-Service Pages ──────────────────── */
.service-page { background: var(--bg); }

.page-hero {
  position: relative;
  background: var(--surface);
  padding: 72px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.page-hero-bg svg { width: 100%; height: 100%; display: block; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,18,30,0) 0%, rgba(10,18,30,0.2) 60%, var(--surface) 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 24px;
}
.page-breadcrumb a { color: var(--muted); transition: color 0.15s; }
.page-breadcrumb a:hover { color: var(--blue-light); }
.page-breadcrumb .sep { color: rgba(255,255,255,0.22); }

.page-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 960px;
}
.page-hero-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}

.page-body {
  padding: 88px 0 112px;
  background: var(--bg);
}
.page-body .page-body-inner { max-width: 880px; }
.page-body h2 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 64px 0 24px;
  line-height: 1.15;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 40px 0 16px;
}
.page-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 12px;
}
.page-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 22px;
  max-width: 760px;
}
.page-body ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
}
.page-body ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.page-body ul li:last-child { border-bottom: none; }
.legal-content ol { padding-left: 24px; margin: 20px 0 28px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.legal-content ol li { margin-bottom: 10px; }
.legal-content a { color: var(--blue-light); text-decoration: underline; }
.legal-content a:hover { color: var(--orange); }
.legal-content blockquote { border-left: 2px solid var(--blue); padding: 4px 0 4px 24px; margin: 24px 0; color: var(--muted); font-style: italic; }
.legal-content strong { color: var(--text); }
.page-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 16px;
  height: 1px;
  background: var(--blue-light);
}

/* Services Hub — numbered checklist */
.service-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-checklist-item {
  padding: 26px 32px 28px 68px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  transition: background 0.2s;
}
.service-checklist-item:hover { background: rgba(255,255,255,0.02); }
.service-checklist-item .checklist-num {
  position: absolute;
  left: 28px;
  top: 28px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue-light);
}

/* Fabric product swatch grid */
.product-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  margin: 48px 0;
}
.product-swatch {
  background: var(--surface);
  padding: 40px 24px 32px;
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background 0.25s;
}
.product-swatch:hover { background: var(--surface-2); }
.product-swatch-visual {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.25s;
}
.product-swatch:hover .product-swatch-visual { opacity: 0.55; }
.product-swatch-visual svg { width: 100%; height: 100%; display: block; }
.product-swatch h4 {
  position: relative;
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}
.product-swatch-num {
  position: relative;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  margin-bottom: 12px;
}

/* Machine stack — for circular knitting machines page */
.machine-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  margin: 40px 0;
}
.machine-item {
  background: var(--surface);
  padding: 48px 56px 52px;
  transition: background 0.25s;
  position: relative;
}
.machine-item:hover { background: var(--surface-2); }
.machine-item-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.machine-item-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 48px;
}
.machine-item h2 {
  margin: 0 0 20px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.machine-item p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: none;
}
.machine-item ul { margin: 16px 0; }
.machine-item ul li {
  padding: 6px 0 6px 24px;
  border-bottom: none;
  font-size: 0.94rem;
}
.machine-item ul li::before { top: 16px; }
.machine-spec-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.machine-spec {
  font-size: 0.85rem;
  color: var(--muted);
}
.machine-spec .label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}

/* Related services links at bottom of each detail page */
.related-services {
  padding: 72px 0 100px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.related-services h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.related-services h3::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--blue);
  display: inline-block;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}
.related-card {
  background: var(--bg);
  padding: 36px 32px 40px;
  display: block;
  transition: background 0.25s;
  position: relative;
}
.related-card:hover { background: var(--surface-2); }
.related-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.related-card h4 {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  line-height: 1.25;
  text-transform: none;
}
.related-card-arrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-top: 18px;
  display: inline-flex;
  gap: 6px;
}

/* Yarn strand visual */
.yarn-strand-svg { width: 100%; height: 100%; }
.yarn-strand-svg .strand {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  animation: yarnFlow 14s linear infinite;
  stroke-dasharray: 8 14;
}
.yarn-strand-svg .strand.s1 { stroke: var(--blue); opacity: 0.55; }
.yarn-strand-svg .strand.s2 { stroke: var(--orange); opacity: 0.55; animation-direction: reverse; }
@keyframes yarnFlow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -400; }
}

/* Circular machine visual — concentric rings */
.machine-rings-svg .ring {
  fill: none;
  stroke-width: 1;
  opacity: 0.25;
  transform-origin: 50% 50%;
  animation: ringSpin 36s linear infinite;
}
.machine-rings-svg .ring.r1 { stroke: var(--blue-light); animation-duration: 40s; }
.machine-rings-svg .ring.r2 { stroke: var(--blue); animation-duration: 60s; animation-direction: reverse; }
.machine-rings-svg .ring.r3 { stroke: var(--blue-light); animation-duration: 80s; }
.machine-rings-svg .ring.r4 { stroke: var(--orange); opacity: 0.2; animation-duration: 100s; animation-direction: reverse; }
.machine-rings-svg .tick { stroke: rgba(255,255,255,0.2); stroke-width: 1; }
@keyframes ringSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Services hub — abstract grid visual */
.hub-grid-svg .line {
  stroke: var(--blue-light);
  stroke-width: 1;
  opacity: 0.25;
}
.hub-grid-svg .dot {
  fill: var(--blue);
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .yarn-strand-svg .strand,
  .machine-rings-svg .ring { animation: none; }
}

@media (max-width: 960px) {
  .service-checklist { grid-template-columns: 1fr; border-left: none; }
  .service-checklist-item { border-right: none; }
  .product-swatch-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-item { padding: 36px 32px 40px; }
  .related-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 48px; }
  .page-body { padding: 56px 0 80px; }
}
@media (max-width: 600px) {
  .product-swatch-grid { grid-template-columns: 1fr; }
  .machine-spec-row { gap: 20px; }
}

/* ── 404 Template ─────────────────────────────────── */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.error-404-inner { max-width: 560px; }
.error-404-inner .section-tag { display: flex; margin-bottom: 24px; }
.error-404-inner h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.05;
}
.error-404-inner p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .process-grid::before { display: none; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .container { padding: 0 28px; }
  .hero { min-height: 85vh; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,18,30,0.92) 0%, rgba(10,18,30,0.7) 50%, rgba(10,18,30,0.9) 100%);
  }
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 320px; }
  .contact-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Mobile nav */
  .hamburger { display: flex; }
  nav#primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    background: var(--dark);
    border-left: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 88px 0 48px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    z-index: 110;
    box-shadow: -8px 0 32px rgba(0,0,0,0.35);
  }
  body.nav-open nav#primary-nav { transform: translateX(0); }
  body.nav-open header { z-index: 120; }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 105;
  }
  nav#primary-nav .nav-link,
  nav#primary-nav > a {
    height: auto;
    line-height: 1.4;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.83rem;
    color: rgba(255,255,255,0.75);
  }
  nav#primary-nav .nav-link::after,
  nav#primary-nav > a::after { display: none; }
  nav#primary-nav .nav-cta {
    margin: 20px 28px 0;
    padding: 16px 24px !important;
    text-align: center;
    border-bottom: none;
    height: auto;
  }
  .nav-dropdown { position: static; }
  .nav-dropdown > .nav-link {
    width: 100%;
    justify-content: space-between;
    height: auto;
  }
  .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-top: none;
    background: rgba(0,0,0,0.25);
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    box-shadow: none;
    border-radius: 0;
  }
  .nav-dropdown.is-open .nav-menu { max-height: 400px; }
  .nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
  .nav-menu a {
    padding: 13px 28px 13px 48px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.79rem;
    color: rgba(255,255,255,0.5);
  }
  .nav-menu a:hover { color: var(--white); background: rgba(59,151,211,0.1); padding-left: 48px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; gap: 36px; }
  .container { padding: 0 20px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-content,
  .contact-left,
  .contact-form-wrap { padding: 40px 28px; }
  .footer-top { padding: 40px 0 36px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 16px 0; }
  .visual-meta { font-size: 0.57rem; }
  .intro { padding: 72px 0; }
  .services, .about, .testimonials, .contact { padding: 80px 0; }
}
