/* ══════════════════════════════════════════════════════════════
   KAT Design & Print — style.css
   Version: 2.0 (Production)
═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --red:          #DC1D38;
  --red-dark:     #B01528;
  --red-deep:     #7A0E1B;
  --orange:       #EA6324;
  --orange-lt:    #F48F22;
  --orange-pale:  #FEF0E7;
  --green:        #21AF4A;
  --white:        #FFFFFF;
  --off-white:    #FDF8F5;
  --gray-100:     #F5F0ED;
  --gray-300:     #D8CFC9;
  --gray-500:     #9A8F89;
  --gray-700:     #4A3F3A;
  --black:        #1A1210;
  --font-display: 'Barlow Condensed', 'Kanit', sans-serif;
  --font-body:    'Kanit', 'Noto Sans SC', sans-serif;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
  --radius:       6px;
  --nav-h:        96px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── ACCESSIBILITY ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: var(--nav-h);
  background: rgba(255,255,255,1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 2px solid transparent;
  transition: background 0.35s ease, border-color 0.3s, box-shadow 0.3s, backdrop-filter 0.35s;
}
nav.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--red);
  box-shadow: 0 2px 24px rgba(220,29,56,0.1);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo picture,
.nav-logo img { height: 72px; width: auto; object-fit: contain; display: block; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 60%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-logo-sub { font-size: 10px; color: var(--gray-500); letter-spacing: 2px; text-transform: uppercase; margin-top: -4px; display: block; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  color: var(--gray-700); letter-spacing: 0.3px;
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 2px; background: var(--red); transition: right 0.3s var(--ease);
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-switcher {
  display: flex;
  border: 1.5px solid var(--gray-300); border-radius: 20px; overflow: hidden;
}
.lang-btn {
  padding: 5px 11px; font-size: 11px; font-weight: 600;
  color: var(--gray-500); background: transparent; border: none;
  cursor: pointer; transition: all 0.2s; font-family: var(--font-body); letter-spacing: 0.5px;
}
.lang-btn:hover { color: var(--red); }
.lang-btn.active { background: var(--red); color: var(--white); }

.btn-quote {
  padding: 9px 20px; background: var(--red); color: var(--white);
  font-size: 13px; font-weight: 600; border: none; border-radius: 24px;
  cursor: pointer; transition: all 0.25s; font-family: var(--font-body);
  white-space: nowrap;
}
.btn-quote:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(220,29,56,0.3); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--black); transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── SECTION TAGS ───────────────────────────────────────────── */
.section-tag {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; display: block; width: 20px; height: 2px; background: currentColor; flex-shrink: 0; }
.tag-white  { color: rgba(255,255,255,0.7); }
.tag-red    { color: var(--red); }
.tag-orange { color: var(--orange); }

/* ── SERVICES ───────────────────────────────────────────────── */
.services { padding: 0 80px 100px; background: var(--white); position: relative; }
.svc-divider-bar {
  height: 6px; margin: 0 -80px 80px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 50%, var(--red-dark) 100%);
}
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.services-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px); font-weight: 800; line-height: 0.95;
  letter-spacing: -1px; color: var(--black);
}
.services-title span { color: var(--red); }
.services-sub { font-size: 14px; color: var(--gray-500); max-width: 240px; text-align: right; line-height: 1.7; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.svc-card {
  background: var(--gray-100); padding: 0 0 36px;
  position: relative; overflow: hidden; cursor: pointer;
  transition: all 0.4s var(--ease); min-height: 420px;
  display: flex; flex-direction: column;
  border-top: 3px solid var(--gray-300);
}
.svc-card:hover { border-top-color: var(--red); background: var(--black); }
.svc-card:hover .svc-num,
.svc-card:hover .svc-name,
.svc-card:hover .svc-desc { color: var(--white); }
.svc-card:hover .svc-tag { background: rgba(220,29,56,0.3); color: #FF8899; border-color: rgba(220,29,56,0.4); }
.svc-card:hover .svc-detail li { color: rgba(255,255,255,0.6); }
.svc-card:hover .svc-arrow-btn { opacity: 1; transform: translate(0,0); }

.svc-img-wrap { width: 100%; height: 200px; overflow: hidden; }
.svc-img-wrap img,
.svc-img-wrap picture { width: 100%; height: 100%; }
.svc-img-wrap img { object-fit: cover; transition: transform 0.5s var(--ease); }
.svc-card:hover .svc-img-wrap img { transform: scale(1.06); }

.svc-num { font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; color: var(--gray-300); padding: 20px 28px 0; transition: color 0.3s; font-weight: 700; }
.svc-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--black); margin: 10px 28px 8px; line-height: 1.1; transition: color 0.3s; }
.svc-desc { font-size: 13px; color: var(--gray-500); line-height: 1.7; flex: 1; padding: 0 28px; transition: color 0.3s; }
.svc-tag { display: inline-block; margin: 10px 28px 0; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; background: rgba(220,29,56,0.08); color: var(--red); border: 1px solid rgba(220,29,56,0.15); transition: all 0.3s; }
.svc-detail { list-style: none; margin: 12px 28px 0; display: flex; flex-direction: column; gap: 4px; }
.svc-detail li { font-size: 12px; color: var(--gray-500); display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.svc-detail li::before { content: ''; width: 3px; height: 3px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.svc-arrow-btn {
  position: absolute; bottom: 28px; right: 28px;
  width: 38px; height: 38px; border: 1px solid rgba(220,29,56,0.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(10px, 10px); transition: all 0.4s var(--ease);
}
.svc-arrow-btn svg { width: 14px; height: 14px; stroke: var(--red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── FEATURE SECTIONS ───────────────────────────────────────── */
.feature-section {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 600px;
}
.feature-dark { background: var(--black); }
.feature-light { background: var(--white); }

.feature-visual { position: relative; overflow: hidden; }
.feature-img-stack { position: absolute; inset: 0; }
.fi-main { width: 100%; height: 100%; object-fit: cover; }
.fi-inset {
  position: absolute; bottom: 80px; right: -20px;
  width: 45%; border: 4px solid var(--off-white);
  box-shadow: -8px 8px 32px rgba(0,0,0,0.4);
  border-radius: 4px; object-fit: cover; aspect-ratio: 4/3;
}

.feature-badge {
  position: absolute; top: 40px; left: 40px; z-index: 2;
  background: var(--red); color: var(--white);
  padding: 16px 20px; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 8px 32px rgba(220,29,56,0.4);
}
.badge-num { font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1; }
.badge-num sup { font-size: 20px; }
.badge-lbl { font-size: 11px; letter-spacing: 1px; opacity: 0.9; margin-top: 4px; text-align: center; }

.feature-content {
  padding: 80px 72px; display: flex; flex-direction: column; justify-content: center;
}
.feature-dark .feature-content { background: var(--black); }
.feature-light .feature-content { background: var(--white); }
.feature-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px); font-weight: 800; line-height: 1.0;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.feature-dark .feature-title  { color: var(--white); }
.feature-light .feature-title { color: var(--black); }
.feature-intro { font-size: 14px; line-height: 1.85; margin-bottom: 32px; color: var(--gray-500); }
.feature-dark  .feature-intro { color: rgba(255,255,255,0.65); }

.feature-benefits { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.benefit-item { display: flex; gap: 16px; align-items: flex-start; }
.benefit-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px;
  background: rgba(220,29,56,0.15); border: 1px solid rgba(220,29,56,0.25);
  display: flex; align-items: center; justify-content: center;
}
.benefit-icon svg { width: 16px; height: 16px; fill: var(--red); }
.benefit-item strong { display: block; font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.benefit-item p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; }

.feature-meta { display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; margin-bottom: 28px; }
.meta-item { flex: 1; padding: 0 20px 0 0; }
.meta-item + .meta-item { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.1); }
.meta-label { font-size: 13px; color: rgba(255,255,255,0.55); letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 6px; }
.meta-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }

.btn-feature {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--red); color: var(--white);
  font-size: 14px; font-weight: 600; border-radius: 4px;
  text-decoration: none; cursor: pointer; transition: all 0.25s; align-self: flex-start;
}
.btn-feature:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,29,56,0.35); }
.btn-feature-dark { background: var(--orange); border: none; color: var(--white); }
.btn-feature-dark:hover { background: var(--orange-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234,99,36,0.4); }

/* ── 2K COATING SECTION ─────────────────────────────────────── */
.coating-section { grid-template-columns: 1fr 1fr; }
.coating-visual { background: var(--black); overflow: hidden; }

.video-wrap {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--black);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Overlay visible when paused */
.video-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s;
}
.video-wrap.playing .video-overlay { opacity: 0; pointer-events: none; }

.video-play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(220,29,56,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.25s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.video-play-btn:hover { background: var(--red); transform: scale(1.1); }
.video-play-btn svg { width: 28px; height: 28px; fill: white; margin-left: 4px; }

/* Bottom controls bar */
.video-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transition: opacity 0.3s;
}
.video-wrap:hover .video-controls,
.video-wrap.playing:hover .video-controls { opacity: 1; }
.video-ctrl-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: white; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s;
}
.video-ctrl-btn:hover { opacity: 0.75; }
.video-ctrl-btn svg { width: 20px; height: 20px; fill: white; }
.video-ctrl-mute svg { stroke: white; fill: none; stroke-width: 2; }
.video-progress {
  flex: 1; height: 3px; background: rgba(255,255,255,0.3);
  border-radius: 2px; cursor: pointer; position: relative;
}
.video-progress-fill {
  height: 100%; background: var(--red); border-radius: 2px;
  width: 0%; transition: width 0.25s linear;
}
.video-time { font-size: 11px; color: rgba(255,255,255,0.75); white-space: nowrap; }

.coating-product-img { position: relative; height: 220px; overflow: hidden; }
.coating-product-img picture,
.coating-product-img img { width: 100%; height: 100%; object-fit: cover; }
.coating-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 16px; background: rgba(234,99,36,0.9);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; color: var(--white); text-align: center;
}

.coating-benefits { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.coating-benefit { display: flex; gap: 20px; align-items: flex-start; }
.cb-num {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  color: var(--orange); line-height: 1; flex-shrink: 0; width: 40px;
}
.coating-benefit strong { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.coating-benefit p { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   MACHINES — Carousel
═══════════════════════════════════════════════════════════════ */
.machines {
  background: linear-gradient(180deg, #0a0807 0%, #14100e 100%);
  padding: 120px 80px;
  position: relative; overflow: hidden;
}
.machines::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,29,56,0.6), rgba(234,99,36,0.6), transparent);
}

.machines-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px; gap: 32px;
}
.machines-header-left { flex: 1; min-width: 0; }
.machines-title {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px);
  font-weight: 800; color: var(--white); margin-bottom: 8px;
  letter-spacing: -1px; line-height: 1;
}
.machines-sub { font-size: 15px; color: rgba(255,255,255,0.55); letter-spacing: 0.3px; }

/* Nav controls (top-right) */
.machines-nav {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.mach-counter {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: rgba(255,255,255,0.55); letter-spacing: 1px; margin-right: 6px;
}
.mach-counter #machCurrent { color: var(--red); font-size: 26px; }
.mach-nav-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
}
.mach-nav-btn:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.mach-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; background: rgba(255,255,255,0.04); }
.mach-nav-btn svg { width: 20px; height: 20px; }

/* Carousel container */
.mach-carousel {
  position: relative;
  margin: 0 -80px; /* edge-to-edge */
  padding: 0 80px;
}

.mach-track {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0 32px;
  cursor: grab;
}
.mach-track::-webkit-scrollbar { display: none; }
.mach-track.dragging { cursor: grabbing; scroll-behavior: auto; }

/* Cards */
.mach-card {
  flex: 0 0 calc((100% - 72px) / 4);  /* 4 visible, 24px gap */
  scroll-snap-align: start;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.mach-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220,29,56,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(220,29,56,0.2);
}

.mach-photo {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #0a0807;
}
.mach-photo picture,
.mach-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s var(--ease);
}
.mach-card:hover .mach-photo img { transform: scale(1.06); }

/* Flag badge top-right — red bg, white text */
.mach-flag {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white; font-weight: 700;
  font-family: var(--font-display); letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 2px 10px rgba(220,29,56,0.5);
}

.mach-info { padding: 22px 24px 26px; }
.mach-origin {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700; color: var(--red); margin-bottom: 10px;
}
.mach-origin-line { width: 24px; height: 2px; flex-shrink: 0; background: var(--red); }

.mach-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--white); margin-bottom: 6px; line-height: 1.15;
  letter-spacing: -0.3px;
}
.mach-type { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }

/* Progress bar at bottom */
.mach-progress-bar {
  height: 3px; background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden;
  margin: 0 0 0 0;
}
.mach-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--red), var(--orange));
  width: 20%; border-radius: 2px;
  transition: width 0.4s var(--ease);
}

/* Responsive */
@media (max-width: 1200px) {
  .mach-card { flex: 0 0 calc((100% - 48px) / 3); }
}
@media (max-width: 900px) {
  .mach-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 768px) {
  .machines { padding: 80px 24px; }
  .mach-carousel { margin: 0 -24px; padding: 0 24px; }
  .machines-header { flex-direction: column; align-items: flex-start; }
  .mach-card { flex: 0 0 82%; }
  .mach-info { padding: 18px 20px 22px; }
  .mach-name { font-size: 18px; }
}

/* ── PROJECTS ───────────────────────────────────────────────── */
.projects { padding: 120px 80px; background: var(--off-white); }
.projects-header { margin-bottom: 40px; }
.projects-title {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px);
  font-weight: 800; color: var(--black); letter-spacing: -0.5px; margin-bottom: 6px;
}
.projects-title span:last-child { color: var(--orange); }
.projects-sub { font-size: 14px; color: var(--gray-500); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  padding: 8px 20px; border-radius: 24px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  background: transparent; border: 1.5px solid var(--gray-300);
  color: var(--gray-700); cursor: pointer; transition: all 0.25s; font-family: var(--font-body);
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

.gallery-grid {
  display: grid; gap: 8px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 280px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.gallery-item.featured { grid-row: span 2; }
.gallery-item picture,
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.hide { opacity: 0; pointer-events: none; display: none; }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,5,5,0.85) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease);
}
.gallery-item:hover .gallery-info { opacity: 1; transform: translateY(0); }
.gallery-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: white; }
.gallery-type { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1fr; }
.about-left {
  background: var(--red); padding: 100px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.about-left::after {
  content: ''; position: absolute; right: -40px; top: 0; bottom: 0; width: 80px;
  background: white; opacity: 0.05; transform: skewX(-6deg); pointer-events: none;
}
.about-right {
  background: var(--white); padding: 80px 72px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px); font-weight: 800; line-height: 1.05;
  color: var(--white); margin-bottom: 16px; letter-spacing: -0.5px;
}
.about-body { font-size: 15px; line-height: 1.85; color: rgba(255,255,255,0.8); margin-bottom: 28px; }

.coating-box {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-left: 4px solid rgba(255,255,255,0.6); border-radius: 0 8px 8px 0; padding: 20px 24px;
}
.coating-box-title { font-size: 13px; font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: 0.5px; }
.coating-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.coating-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5;
}
.coating-list li::before {
  content: ''; width: 5px; height: 5px; background: var(--orange-lt);
  border-radius: 50%; flex-shrink: 0; margin-top: 8px;
}

.about-img { border-radius: 4px; overflow: hidden; height: 280px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-right-title { font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; line-height: 1.2; color: var(--black); }
.about-right-body { font-size: 14px; line-height: 1.85; color: var(--gray-700); }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact-left {
  background: var(--black); padding: 100px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-right { padding: 80px 72px; background: var(--gray-100); }

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 58px); font-weight: 800;
  color: var(--white); margin-bottom: 16px; line-height: 1.05;
}
.contact-title span { color: var(--red); }
.contact-body { font-size: 14px; color: var(--gray-500); line-height: 1.85; margin-bottom: 36px; }

.contact-info-list { font-style: normal; display: flex; flex-direction: column; gap: 20px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 16px; }
.cinfo-icon {
  width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  background: rgba(220,29,56,0.15); border: 1px solid rgba(220,29,56,0.25);
  display: flex; align-items: center; justify-content: center;
}
.cinfo-icon svg { width: 15px; height: 15px; stroke: var(--red); fill: none; stroke-width: 1.5; }
.cinfo-label { font-size: 10px; color: var(--red); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 4px; display: block; }
.cinfo-val { font-size: 13px; color: var(--gray-300); line-height: 1.7; display: block; text-decoration: none; transition: color 0.2s; }
a.cinfo-val:hover { color: var(--white); }
.cinfo-todo { color: var(--gray-700); font-style: italic; }

/* Form */
.form-honeypot { display: none !important; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 11px; letter-spacing: 1px; color: var(--gray-700); text-transform: uppercase; margin-bottom: 7px; font-weight: 600; }
.form-input,
.form-textarea,
select.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--white); border: 1.5px solid var(--gray-300);
  border-radius: 4px; font-size: 14px; color: var(--black);
  font-family: var(--font-body); transition: border-color 0.2s; outline: none;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, select.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(220,29,56,0.1); }
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-status { margin-bottom: 12px; font-size: 13px; padding: 10px 14px; border-radius: 4px; display: none; }
.form-status.success { background: rgba(33,175,74,0.1); border: 1px solid rgba(33,175,74,0.3); color: var(--green); display: block; }
.form-status.error   { background: rgba(220,29,56,0.1); border: 1px solid rgba(220,29,56,0.3); color: var(--red); display: block; }

.btn-submit {
  width: 100%; padding: 14px; background: var(--red); color: var(--white);
  font-size: 14px; font-weight: 700; font-family: var(--font-body);
  border: none; border-radius: 4px; cursor: pointer; transition: all 0.25s;
  letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(220,29,56,0.3); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════════════════
   FOOTER — Premium Multi-Column
═══════════════════════════════════════════════════════════════ */
.ftr {
  background: linear-gradient(180deg, #0a0807 0%, #14100e 100%);
  color: rgba(255,255,255,0.6);
  position: relative;
}
.ftr::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--orange) 50%, var(--red-dark) 100%);
}

.ftr-grid {
  max-width: 1500px; margin: 0 auto;
  padding: 80px 80px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
}

.ftr-col { min-width: 0; }
.ftr-brand-col { padding-right: 24px; }

.ftr-logo { display: block; margin-bottom: 22px; }
.ftr-logo img { height: 64px; width: auto; object-fit: contain; }

.ftr-about {
  font-size: 16px; font-weight: 400; line-height: 1.75;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px; max-width: 380px;
}

.ftr-socials { display: flex; gap: 10px; }
.ftr-social {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.25s var(--ease);
}
.ftr-social:hover {
  background: var(--red); border-color: var(--red); color: white;
  transform: translateY(-2px);
}
.ftr-social svg { width: 16px; height: 16px; }

.ftr-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; color: white;
  margin-bottom: 22px;
  position: relative; padding-bottom: 12px;
}
.ftr-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 28px; height: 2px; background: var(--red);
}

.ftr-list { list-style: none; padding: 0; margin: 0; }
.ftr-list li { margin-bottom: 10px; }
.ftr-list a {
  color: rgba(255,255,255,0.55);
  text-decoration: none; font-size: 16px; font-weight: 400;
  transition: color 0.2s, transform 0.2s, padding 0.2s;
  display: inline-block;
}
.ftr-list a:hover {
  color: white;
  transform: translateX(4px);
}

.ftr-contact-list { list-style: none; padding: 0; margin: 0; }
.ftr-contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
  font-size: 15px; font-weight: 400; line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.ftr-contact-list a {
  color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 400;
  transition: color 0.2s;
}
.ftr-contact-list a:hover { color: var(--red); }
.ftr-ico {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  color: var(--red);
}
.ftr-ico svg { width: 100%; height: 100%; }

/* Bottom bar */
.ftr-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 80px;
  max-width: 1500px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
}
.ftr-copy {
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.45);
  letter-spacing: 0.3px;
}
.ftr-totop {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px; cursor: pointer;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  transition: all 0.25s var(--ease);
}
.ftr-totop:hover {
  background: var(--red); border-color: var(--red); color: white;
  transform: translateY(-2px);
}
.ftr-totop svg { width: 14px; height: 14px; }

/* Responsive */
@media (max-width: 1024px) {
  .ftr-grid {
    grid-template-columns: 1fr 1fr;
    padding: 64px 40px 40px;
    gap: 40px 32px;
  }
  .ftr-brand-col { grid-column: 1/-1; padding-right: 0; }
  .ftr-bottom { padding: 20px 40px; }
}

@media (max-width: 600px) {
  .ftr-grid {
    grid-template-columns: 1fr;
    padding: 56px 24px 32px;
    gap: 36px;
  }
  .ftr-bottom {
    padding: 18px 24px;
    flex-direction: column; text-align: center;
  }
  .ftr-about { max-width: 100%; }
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .services { padding: 0 40px 80px; }
  .svc-divider-bar { margin: 0 -40px 60px; }
  .machines { padding: 80px 40px; }
  .projects { padding: 80px 40px; }
  .about-left, .about-right { padding: 80px 48px; }
  .contact-left, .contact-right { padding: 80px 48px; }
}

@media (max-width: 1024px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 2px solid var(--red);
    padding: 16px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open li a { display: block; padding: 12px 24px; font-size: 15px; }

  .feature-section { grid-template-columns: 1fr; }
  .feature-dark .feature-content { order: 2; padding: 60px 28px; }
  .feature-visual { height: 400px; }
  .feature-light .feature-content { order: 1; padding: 60px 28px; }
  .feature-light .feature-visual { order: 2; height: 400px; }
  .coating-section .feature-content { padding: 60px 28px; }
  .coating-visual { height: 400px; flex-direction: row; }
  .video-wrap { flex: 2; }
  .coating-product-img { flex: 1; height: 100%; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .services { padding: 0 24px 60px; }
  .svc-divider-bar { margin: 0 -24px 48px; }
  .services-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .services-sub { text-align: left; max-width: 100%; }

  .projects { padding: 80px 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery-item.featured { grid-row: span 1; }

  .about, .contact { grid-template-columns: 1fr; }
  .about-left, .about-right, .contact-left, .contact-right { padding: 60px 24px; }
  .about-right { order: -1; }

}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .form-row { grid-template-columns: 1fr; }

  .fi-inset { width: 55%; right: 10px; bottom: 60px; }
  .feature-badge { top: 20px; left: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   HERO V2 — Cinematic Full-Bleed
═══════════════════════════════════════════════════════════════ */
.hero-v2 {
  position: relative; min-height: 100vh;
  width: 100%; overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-h);
  isolation: isolate;
}

/* — Image stage — */
.hv2-stage { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide picture,
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

@keyframes kenBurnsV2 {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.16) translate(-1.5%, -1.2%); }
}
.hero-slide.active img { animation: kenBurnsV2 11s ease-out forwards; }

/* — Cinematic gradient overlay — */
.hv2-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(8,6,5,0.92) 0%, rgba(8,6,5,0.65) 38%, rgba(8,6,5,0.25) 65%, rgba(8,6,5,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 22%, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* — Content area (left, vertically centered) — */
.hv2-content {
  position: relative; z-index: 3;
  max-width: 1500px; margin: 0 auto;
  padding: 80px 80px 220px;
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
}

@keyframes hv2FadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hv2-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; margin-bottom: 28px;
  background: rgba(220,29,56,0.18);
  border: 1px solid rgba(220,29,56,0.4);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  font-size: 12px; letter-spacing: 2.5px;
  color: white; font-weight: 600; text-transform: uppercase;
  opacity: 0; animation: hv2FadeUp 0.7s var(--ease) 0.15s forwards;
}
.hv2-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 14px var(--red);
  animation: hv2Pulse 2s ease-in-out infinite;
}
@keyframes hv2Pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.55; }
}

.hv2-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 156px);
  font-weight: 800; line-height: 0.86;
  letter-spacing: -2.5px;
  color: white;
  margin-bottom: 32px;
  text-shadow: 0 6px 40px rgba(0,0,0,0.4);
}
.hv2-line { display: block; opacity: 0; animation: hv2FadeUp 0.8s var(--ease) forwards; }
.hv2-line.line-1 { animation-delay: 0.25s; }
.hv2-line.line-2 { animation-delay: 0.38s; color: var(--red); }
.hv2-line.line-3 { animation-delay: 0.51s; color: var(--orange); }

.hv2-tagline {
  max-width: 540px; font-size: 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7; margin-bottom: 36px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  opacity: 0; animation: hv2FadeUp 0.7s var(--ease) 0.65s forwards;
}

.hv2-cta {
  display: flex; gap: 14px;
  opacity: 0; animation: hv2FadeUp 0.7s var(--ease) 0.78s forwards;
}
.hv2-btn-primary,
.hv2-btn-ghost {
  padding: 16px 30px; border-radius: 50px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  letter-spacing: 0.3px; cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex; align-items: center; gap: 10px;
  border: none;
}
.hv2-btn-primary {
  background: var(--red); color: white;
  box-shadow: 0 10px 32px rgba(220,29,56,0.45);
}
.hv2-btn-primary svg { width: 16px; height: 16px; transition: transform 0.25s; }
.hv2-btn-primary:hover {
  background: var(--red-dark); transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(220,29,56,0.55);
}
.hv2-btn-primary:hover svg { transform: translateX(4px); }
.hv2-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}
.hv2-btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-2px);
}

/* — Floating Trust Card — */
.hv2-trust-card {
  position: absolute; z-index: 3;
  top: 50%; right: 80px; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0;
  padding: 24px 28px;
  background: rgba(15,10,8,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  opacity: 0; animation: hv2FadeUp 0.8s var(--ease) 0.9s forwards;
}
.hv2-trust-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 0; min-width: 160px;
}
.hv2-trust-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.hv2-trust-num {
  font-family: var(--font-display); font-size: 38px; font-weight: 800;
  color: var(--red); line-height: 1; letter-spacing: -1px;
}
.hv2-trust-num sup { font-size: 0.45em; vertical-align: super; }
.hv2-trust-num.hv2-flag { font-size: 30px; }
.hv2-trust-lbl {
  font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); font-weight: 500;
}

/* — Service Tabs (bottom horizontal row) — */
.hv2-tabs {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 0 80px 0;
  gap: 0;
  background: rgba(8,6,5,0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hv2-tab {
  position: relative;
  background: transparent; border: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  padding: 22px 24px 22px;
  text-align: left;
  font-family: var(--font-body);
  display: flex; align-items: flex-start; gap: 14px;
  transition: background 0.25s;
}
.hv2-tab + .hv2-tab { border-left: 1px solid rgba(255,255,255,0.08); }
.hv2-tab:hover { background: rgba(255,255,255,0.04); }
.hv2-tab.active { background: rgba(220,29,56,0.08); }

.hv2-tab-progress {
  position: absolute; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--red); pointer-events: none;
}
.hv2-tab.active .hv2-tab-progress {
  animation: hv2TabProgress 5s linear forwards;
}
@keyframes hv2TabProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

.hv2-tab-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.5px; line-height: 1.6; flex-shrink: 0;
}
.hv2-tab.active .hv2-tab-num { color: var(--red); }

.hv2-tab-info {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; flex: 1;
}
.hv2-tab-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: #ffffff; letter-spacing: 0.4px; line-height: 1.15;
}
.hv2-tab-sub {
  font-size: 13px; color: rgba(255,255,255,0.78);
  letter-spacing: 0.3px; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* — Hero V2 Responsive — */
@media (max-width: 1280px) {
  .hv2-trust-card { right: 40px; padding: 20px 22px; }
  .hv2-trust-row  { min-width: 140px; }
  .hv2-trust-num  { font-size: 32px; }
  .hv2-content    { padding: 60px 60px 220px; }
  .hv2-tabs       { padding: 0 60px 32px; }
}

@media (max-width: 1024px) {
  .hv2-trust-card { display: none; }
  .hv2-content    { padding: 60px 40px 240px; }
  .hv2-tabs       { padding: 0 40px 28px; }
  .hv2-tab-name   { font-size: 18px; }
  .hv2-tab-sub    { font-size: 11px; }
  .hv2-title      { font-size: clamp(56px, 11vw, 120px); }
}

@media (max-width: 768px) {
  .hv2-content { padding: 40px 24px 280px; }
  .hv2-tabs    {
    grid-template-columns: 1fr;
    padding: 0 24px 24px;
    gap: 6px;
  }
  .hv2-tab { padding: 14px 16px 10px; gap: 12px; }
  .hv2-tab-name { font-size: 16px; }
  .hv2-tagline  { font-size: 16px; }
  .hv2-eyebrow  { font-size: 11px; padding: 6px 14px 6px 10px; }
  .hv2-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hv2-btn-primary, .hv2-btn-ghost { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   PROJECTS — NEW DARK LAYOUT
═══════════════════════════════════════════════════════════════ */
.projects-new {
  position: relative; min-height: 100vh;
  overflow: hidden;
}

/* BG dynamic layers */
.proj-bg-wrap { position: absolute; inset: 0; }
.proj-bg-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
  filter: blur(2px); transform: scale(1.04);
}
.proj-bg-layer.active { opacity: 1; }
.proj-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12,8,6,0.95) 0%,
    rgba(12,8,6,0.82) 45%,
    rgba(12,8,6,0.60) 100%
  );
  z-index: 1;
}

/* Inner grid */
.proj-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 360px 1fr;
  min-height: 100vh; align-items: center;
  padding: 140px 80px 80px;
  gap: 60px;
}

/* Left panel */
.proj-left { padding-right: 20px; }
.proj-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 800; line-height: 0.92; letter-spacing: -1.5px;
  color: white; margin: 16px 0 20px;
}
.proj-title-accent { color: var(--orange); }
.proj-intro { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.9; margin-bottom: 40px; }

/* Filter vertical list */
.proj-filter-wrap { display: flex; flex-direction: column; gap: 2px; }
.proj-filter-btn {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; border-left: 2px solid transparent;
  cursor: pointer; padding: 10px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4); text-align: left;
  transition: all 0.25s; font-family: var(--font-body);
  text-transform: uppercase;
}
.proj-filter-btn::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor; flex-shrink: 0;
}
.proj-filter-btn:hover { color: rgba(255,255,255,0.75); border-left-color: rgba(255,255,255,0.2); }
.proj-filter-btn.active {
  color: white; border-left-color: var(--red);
  background: rgba(220,29,56,0.1);
}
.proj-filter-btn.active::before { background: var(--red); }

.proj-count-bar {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: baseline; gap: 8px;
}
.proj-count-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 800;
  color: var(--red); line-height: 1;
}
.proj-count-lbl { font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 1px; text-transform: uppercase; }

/* Cards grid */
.proj-cards-wrap { align-self: center; }
.proj-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.proj-card {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer;
  background: #1a1210;
}
.proj-card.hide { display: none; }
.proj-card-img { position: absolute; inset: 0; }
.proj-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.proj-card:hover .proj-card-img img { transform: scale(1.07); }

.proj-card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
  transform: translateY(4px); transition: transform 0.4s var(--ease);
}
.proj-card:hover .proj-card-info { transform: translateY(0); }
.proj-card-cat {
  font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 5px;
}
.proj-card-title {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: white; line-height: 1.25;
}
.proj-card-loc { font-size: 10px; color: rgba(255,255,255,0.45); margin-top: 4px; }

.proj-card-open {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(220,29,56,0.85); border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.6); transition: all 0.35s var(--ease);
  cursor: pointer;
}
.proj-card-open svg { width: 14px; height: 14px; stroke: white; }
.proj-card:hover .proj-card-open { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════════════════════════════
   POPUP MODAL — PROJECT VIEWER
═══════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88); z-index: 900;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.modal-backdrop.active { opacity: 1; pointer-events: all; }

.proj-modal {
  position: fixed; inset: 0; z-index: 901;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.proj-modal:not([hidden]) { pointer-events: all; }

.modal-inner {
  background: #111; border-radius: 0;
  width: 95vw; height: 95vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 48px 96px rgba(0,0,0,0.9);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.proj-modal.active .modal-inner { opacity: 1; transform: translateY(0); }

/* Top bar */
.modal-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; flex-shrink: 0;
}
.modal-cat-label {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  letter-spacing: 2px; color: white; text-transform: uppercase;
}
.modal-close {
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.5; transition: opacity 0.2s;
}
.modal-close:hover { opacity: 1; }
.modal-close svg { width: 20px; height: 20px; stroke: white; }

/* Main image stage */
.modal-stage {
  flex: 1; min-height: 0; background: #0d0b0a; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.modal-img-wrap {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.modal-img-wrap img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: opacity 0.25s ease;
}
.modal-img-wrap img.fade-out { opacity: 0; }

/* No arrows inside stage — they live in .modal-bottom */
.modal-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-arrow:hover { background: var(--red); }
.modal-arrow svg { width: 22px; height: 22px; stroke: white; }

/* Bottom bar */
.modal-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px 32px 16px; flex-shrink: 0;
}
.modal-brand-block {}
.modal-brand-name {
  font-family: var(--font-display); font-size: 28px; font-weight: 800;
  color: white; letter-spacing: 1px; line-height: 1;
}
.modal-event-name {
  font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 5px; letter-spacing: 0.3px;
}
.modal-proj-loc {
  font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 3px; letter-spacing: 0.3px;
}
.modal-nav-block {
  display: flex; gap: 10px; align-items: center;
}
/* green arrows like in reference */
.modal-nav-block .modal-arrow svg { stroke: #4ade80; }
.modal-nav-block .modal-arrow:hover { background: rgba(74,222,128,0.15); }

/* Thumbnail strip */
.modal-thumbs-wrap {
  padding: 10px 32px 20px; overflow-x: auto; flex-shrink: 0;
}
.modal-thumbs-wrap::-webkit-scrollbar { height: 3px; }
.modal-thumbs-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.modal-thumbs { display: flex; gap: 10px; }
.modal-thumb {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  cursor: pointer; gap: 6px;
}
.modal-thumb-img {
  width: 110px; height: 76px;
  border-radius: 3px; overflow: hidden;
  border: 2px solid transparent; transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.5;
}
.modal-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb:hover .modal-thumb-img { opacity: 0.8; }
.modal-thumb.active .modal-thumb-img { border-color: white; opacity: 1; }
.modal-thumb-label {
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); white-space: nowrap; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.modal-thumb.active .modal-thumb-label { color: rgba(255,255,255,0.7); }

/* ── RESPONSIVE additions ─── */
@media (max-width: 1200px) {
  .proj-inner { grid-template-columns: 300px 1fr; padding: 120px 48px 80px; gap: 40px; }
  .proj-title { font-size: clamp(38px, 4.5vw, 64px); }
}

@media (max-width: 1024px) {
  .proj-inner { grid-template-columns: 1fr; padding: 120px 28px 60px; gap: 48px; }
  .proj-left { padding-right: 0; }
  .proj-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .proj-cards { grid-template-columns: repeat(2, 1fr); }
  .proj-inner { padding: 100px 20px 60px; }
  .proj-filter-wrap { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .proj-filter-btn { border-left: none; border-bottom: 2px solid transparent; padding: 7px 12px; }
  .proj-filter-btn.active { border-left: none; border-bottom-color: var(--red); background: rgba(220,29,56,0.08); }
  .modal-brand-name { font-size: 20px; }
  .modal-topbar { padding: 14px 20px; }
  .modal-bottom { padding: 12px 20px 10px; }
  .modal-thumbs-wrap { padding: 8px 20px 14px; }
  .modal-thumb-img { width: 80px; height: 56px; }
}

@media (max-width: 480px) {
  .proj-cards { grid-template-columns: 1fr 1fr; }
  .modal-thumb-img { width: 64px; height: 46px; }
  .modal-thumb-label { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   FONT SIZE SCALE +2 STEP (body text, descriptions, labels)
   ไม่รวม heading / display fonts
═══════════════════════════════════════════════════════════════ */

/* Base body */
body { font-size: 19px; }

/* Nav */
.nav-links a { font-size: 16px; }
.btn-quote   { font-size: 15px; }

/* Hero V2 (handled in hero-v2 block) */

/* Section tags */
.section-tag { font-size: 13px; }

/* Services */
.services-sub   { font-size: 16px; }
.svc-desc       { font-size: 16px; }
.svc-tag        { font-size: 13px; }
.svc-detail li  { font-size: 15px; }

/* Feature sections */
.feature-intro          { font-size: 16px; }
.benefit-item strong    { font-size: 16px; }
.benefit-item p         { font-size: 15px; }
.meta-label             { font-size: 12px; }
.btn-feature            { font-size: 16px; }

/* Coating benefits */
.coating-benefit strong { font-size: 16px; }
.coating-benefit p      { font-size: 15px; }

/* Machines */
.machines-sub   { font-size: 16px; }
.mach-type      { font-size: 14px; }

/* About */
.about-body       { font-size: 17px; }
.about-right-body { font-size: 16px; }
.coating-box-title{ font-size: 16px; }
.coating-list li  { font-size: 15px; }

/* Contact */
.contact-body   { font-size: 16px; }
.cinfo-label    { font-size: 12px; }
.cinfo-val      { font-size: 15px; }

/* Form */
.form-label     { font-size: 13px; }
.form-input,
.form-select,
.form-textarea  { font-size: 16px; }
.form-status    { font-size: 15px; }
.btn-submit     { font-size: 16px; }

/* Footer */
/* Footer fonts handled inline in .ftr block */

/* Projects section */
.proj-intro         { font-size: 15px; }
.proj-filter-btn    { font-size: 14px; }
.proj-count-lbl     { font-size: 14px; }
.proj-card-title    { font-size: 16px; }
.proj-card-loc      { font-size: 12px; }
.proj-card-cat      { font-size: 11px; }

/* Modal */
.modal-cat-label    { font-size: 20px; }
.modal-brand-name   { font-size: 30px; }
.modal-event-name   { font-size: 15px; }
.modal-proj-loc     { font-size: 14px; }
.modal-thumb-label  { font-size: 11px; }
