:root {
  --bg-dark: #080d14;
  --bg-surface: #0f1622;
  --bg-panel: rgba(255, 255, 255, 0.04);
  --line: rgba(148, 163, 184, 0.24);
  --text-soft: #b6c2d1;
  --accent: #b0121f;
  --accent-glow: rgba(176, 18, 31, 0.28);
  --scroll-depth: 0;
  --bp-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(176, 18, 31, 0.11), transparent 40%),
    radial-gradient(circle at 86% 78%, rgba(176, 18, 31, 0.07), transparent 34%),
    linear-gradient(180deg, #0d141d 0%, #111a25 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(182, 194, 209, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 194, 209, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: calc(0.02 + (var(--scroll-depth) * 0.16));
  transition: opacity 0.35s ease;
}

body.cursor-fx-enabled,
body.cursor-fx-enabled a,
body.cursor-fx-enabled button,
body.cursor-fx-enabled input,
body.cursor-fx-enabled select,
body.cursor-fx-enabled textarea,
body.cursor-fx-enabled summary,
body.cursor-fx-enabled [role="button"] {
  cursor: none !important;
}

.site-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  transform: translate3d(-100px, -100px, 0);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
}

.site-cursor.is-active {
  opacity: 1;
}

.site-cursor__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e11d2f;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px rgba(225, 29, 47, 0.72);
}

.site-cursor__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 74, 91, 0.8);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(225, 29, 47, 0.34);
}

.site-cursor__label {
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translate(-50%, -100%);
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #e8edf6;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.16s ease;
}

.site-cursor.is-press .site-cursor__ring {
  transform: translate(-50%, -50%) scale(0.8);
}

.site-cursor.is-hover .site-cursor__ring {
  border-color: rgba(255, 105, 122, 0.95);
  box-shadow: 0 0 18px rgba(225, 29, 47, 0.5);
  transform: translate(-50%, -50%) scale(1.22);
}

.site-cursor.is-hover .site-cursor__core {
  box-shadow: 0 0 20px rgba(225, 29, 47, 0.88);
  transform: translate(-50%, -50%) scale(1.1);
}

.site-cursor.is-hover .site-cursor__label {
  opacity: 0.9;
}

.technical-blueprint {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: calc(0.04 + var(--scroll-depth) * 0.04);
}

.technical-blueprint svg {
  width: 100%;
  height: 100%;
}

.technical-blueprint .bp-stroke {
  fill: none;
  stroke: rgba(189, 201, 216, 0.22);
  stroke-width: 1;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - (var(--bp-progress) * 100));
}

.technical-blueprint .bp-stroke.bp-accent {
  stroke: rgba(214, 59, 74, 0.28);
  stroke-width: 1.2;
  stroke-dashoffset: calc(100 - (var(--bp-progress) * 120));
}

.cursor-sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #ffa64d;
  opacity: 0;
  box-shadow: 0 0 10px rgba(255, 166, 77, 0.75);
  animation: cursorSpark 0.46s ease-out forwards;
}

.cursor-spark.spark-white {
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.82);
}

.cursor-spark.spark-red {
  background: #ff4d57;
  box-shadow: 0 0 10px rgba(255, 77, 87, 0.72);
}

@keyframes cursorSpark {
  0% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sx), var(--sy), 0) scale(0.15);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: 0.015em;
}

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: calc(0.18 + (var(--scroll-depth) * 0.15));
  transition: opacity 0.35s ease;
}

main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(176, 18, 31, 0.045) 29px 30px),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(176, 18, 31, 0.03) 48px 49px);
  opacity: calc(var(--scroll-depth) * 0.13);
  transition: opacity 0.35s ease;
}

main > section:not(.hero-section):nth-of-type(even) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 1.1rem;
}

.metal-reveal {
  position: relative;
  color: #58606b;
  background: linear-gradient(112deg, #3f4651 0%, #8e98a5 36%, #e4e9f0 50%, #8f98a4 64%, #3f4651 100%);
  background-size: 230% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(0.92) brightness(0.84);
}

.metal-reveal::after {
  content: "";
  position: absolute;
  inset: -8% -6%;
  pointer-events: none;
  background: linear-gradient(96deg, transparent 16%, rgba(255, 255, 255, 0.44) 48%, transparent 84%);
  transform: translateX(-120%) skewX(-16deg);
  opacity: 0;
}

.metal-reveal.is-active {
  animation: metalSettle 1.15s cubic-bezier(0.19, 0.9, 0.24, 1) forwards;
}

.metal-reveal.is-active::after {
  animation: metalSweep 0.95s cubic-bezier(0.2, 0.9, 0.25, 1) 0.08s forwards;
}

.hero-video {
  position: relative;
  isolation: isolate;
  --hero-px: 0;
  --hero-py: 0;
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.78) saturate(0.95) contrast(1.04);
  transform: translate3d(calc(var(--hero-px) * 1px), calc(var(--hero-py) * 1px), 0);
  transition: transform 0.22s ease;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(95deg, rgba(6, 10, 16, 0.56) 0%, rgba(8, 13, 22, 0.44) 46%, rgba(8, 14, 24, 0.62) 100%),
    radial-gradient(circle at 15% 12%, rgba(176, 18, 31, 0.18), transparent 42%);
}

.hero-video__blueprint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(197, 209, 224, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 209, 224, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 72% 32%, rgba(214, 59, 74, 0.15), transparent 32%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  transform: translate3d(calc(var(--hero-px) * 3px), calc(var(--hero-py) * 3px), 0);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hero-video__shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 16%, rgba(235, 241, 248, 0.2) 48%, transparent 82%);
  transform: skewX(-16deg) translateX(-120%);
  animation: heroVideoShine 6s ease-in-out infinite;
}

.hero-video .metal-reveal {
  background: none !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: initial;
  color: #f5f8fd;
  filter: none;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: 15ch;
}

.hero-video .metal-reveal::after {
  display: none;
}

.hero-video p {
  color: #e6edf7;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.36);
  line-height: 1.72;
}

.hero-video .btn-outline {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(9, 14, 22, 0.22);
}

.hero-video .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-video .reveal {
  position: relative;
  z-index: 3;
}

.hero-video__content {
  position: relative;
  z-index: 4;
  transform: translate3d(calc(var(--hero-px) * -2px), calc(var(--hero-py) * -2px), 0);
  transition: transform 0.22s ease;
}

.machine-section {
  position: relative;
}

.tech-divider {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.45;
}

.tech-divider__light {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(214, 59, 74, 0.24);
  box-shadow: 0 0 0 rgba(214, 59, 74, 0);
}

.tech-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(186, 198, 212, 0.35), rgba(214, 59, 74, 0.6), rgba(186, 198, 212, 0.18));
  transform: scaleX(0);
  transform-origin: left;
}

.tech-divider__coords {
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(195, 206, 220, 0.74);
  white-space: nowrap;
}

.machine-section.machine-on .tech-divider__line {
  animation: techLineOn 0.7s ease-out forwards;
}

.machine-section.machine-on .tech-divider__light {
  animation: techLightOn 0.55s ease-out forwards;
}

@keyframes techLineOn {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes techLightOn {
  0% { background: rgba(214, 59, 74, 0.2); box-shadow: 0 0 0 rgba(214, 59, 74, 0); }
  45% { background: rgba(255, 96, 112, 0.98); box-shadow: 0 0 10px rgba(214, 59, 74, 0.74); }
  100% { background: rgba(214, 59, 74, 0.72); box-shadow: 0 0 4px rgba(214, 59, 74, 0.34); }
}

@keyframes heroVideoShine {
  0% {
    opacity: 0;
    transform: skewX(-16deg) translateX(-120%);
  }
  16% {
    opacity: 0.35;
  }
  36% {
    opacity: 0;
    transform: skewX(-16deg) translateX(150%);
  }
  100% {
    opacity: 0;
    transform: skewX(-16deg) translateX(150%);
  }
}

@keyframes metalSettle {
  0% {
    filter: saturate(0.8) brightness(0.58);
    background-position: 0% 50%;
  }
  100% {
    filter: saturate(1) brightness(1);
    background-position: 82% 50%;
  }
}

@keyframes metalSweep {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-16deg);
  }
  26% {
    opacity: 0.62;
  }
  100% {
    opacity: 0;
    transform: translateX(128%) skewX(-16deg);
  }
}

header nav a {
  position: relative;
  color: #d9e0ea;
  transition: color 0.25s ease;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 22%, var(--accent) 78%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

header nav a:hover::after,
header nav a:focus-visible::after {
  transform: scaleX(1);
}

header nav a.is-active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent 0%, rgba(233, 63, 83, 0.98) 20%, rgba(233, 63, 83, 0.98) 80%, transparent 100%);
}

header nav a.is-active {
  color: #fff;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown summary {
  list-style: none;
}

.lang-dropdown summary::-webkit-details-marker {
  display: none;
}

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  color: #e5eaf2;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lang-dropdown__trigger:hover {
  border-color: rgba(176, 18, 31, 0.65);
  background: rgba(176, 18, 31, 0.14);
}

.lang-dropdown[open] .lang-dropdown__trigger {
  border-color: rgba(176, 18, 31, 0.7);
  background: rgba(176, 18, 31, 0.18);
}

.lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 170px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8rem;
  background: rgba(10, 15, 24, 0.97);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  z-index: 70;
}

.lang-dropdown__item {
  display: block;
  padding: 0.62rem 0.72rem;
  font-size: 0.85rem;
  color: #dbe2ed;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-dropdown__item:hover {
  background: rgba(176, 18, 31, 0.14);
  color: #fff;
}

.lang-dropdown__item.is-active {
  background: rgba(176, 18, 31, 0.22);
  color: #fff;
}

.flag-icon {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  vertical-align: -1px;
  margin-right: 0.4rem;
}

.flag-pt {
  background: linear-gradient(90deg, #1f8f44 0 40%, #d11f2e 40% 100%);
}

.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cg stroke='%23fff' stroke-width='6' clip-path='url(%23a)'%3E%3Cpath d='m0 0 60 30M60 0 0 30'/%3E%3C/g%3E%3Cg stroke='%23C8102E' stroke-width='4' clip-path='url(%23a)'%3E%3Cpath d='m0 0 60 30M60 0 0 30'/%3E%3C/g%3E%3Cpath d='M25 0h10v30H25zM0 10h60v10H0z' fill='%23fff'/%3E%3Cpath d='M27 0h6v30h-6zM0 12h60v6H0z' fill='%23C8102E'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.flag-fr {
  background: linear-gradient(90deg, #1b4ea3 0 33.33%, #ffffff 33.33% 66.66%, #d32633 66.66% 100%);
}

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: 1rem;
  transition: border-color 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 52%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 10%, rgba(255, 255, 255, 0.2) 50%, transparent 90%);
  transform: skewX(-18deg);
  opacity: 0;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -24px rgba(7, 14, 26, 0.95);
}

.service-card:hover::before {
  border-color: rgba(176, 18, 31, 0.58);
}

.service-card:hover::after {
  animation: steelPass 0.55s ease-out;
}

.service-card img {
  transition: transform 0.28s ease, filter 0.28s ease;
}

.service-card img.no-reveal-mask {
  opacity: 1 !important;
  clip-path: inset(0 0 0 0) !important;
}

.service-card:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.service-card h3,
.service-card h2,
.service-card .icon {
  transition: transform 0.24s ease, color 0.24s ease;
}

.service-card:hover h3,
.service-card:hover h2,
.service-card:hover .icon {
  transform: translateY(-2px);
}

.hover-fx {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, filter 0.22s ease;
}

.hover-fx::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--hover-x, 50%) - 26%);
  width: 52%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 10%, rgba(255, 255, 255, 0.3) 50%, transparent 90%);
  transform: skewX(-18deg) translateX(-130%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hover-fx:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -20px rgba(0, 0, 0, 0.75);
  filter: saturate(1.03);
}

.hover-fx:hover::before {
  opacity: 0.8;
  animation: hoverSweep 0.45s ease-out 1;
}

@keyframes hoverSweep {
  0% {
    transform: skewX(-18deg) translateX(-130%);
    opacity: 0;
  }
  28% {
    opacity: 0.8;
  }
  100% {
    transform: skewX(-18deg) translateX(165%);
    opacity: 0;
  }
}

.portfolio-thumb {
  position: relative;
}

.portfolio-thumb img {
  transition: transform 0.34s ease, filter 0.34s ease;
}

.portfolio-thumb__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.05) 0%, rgba(7, 12, 20, 0.62) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-thumb__overlay span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f8fafc;
  backdrop-filter: blur(3px);
}

.portfolio-thumb__cutline {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 93, 106, 0.95), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.portfolio-item:hover .portfolio-thumb img,
.service-card:hover .portfolio-thumb img {
  transform: scale(1.06);
}

.portfolio-item:hover .portfolio-thumb__overlay,
.service-card:hover .portfolio-thumb__overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-thumb__cutline,
.service-card:hover .portfolio-thumb__cutline {
  transform: scaleX(1);
}

@keyframes steelPass {
  0% {
    left: -140%;
    opacity: 0;
  }
  30% {
    opacity: 0.42;
  }
  100% {
    left: 145%;
    opacity: 0;
  }
}

.btn-metal,
.btn-outline {
  position: relative;
  overflow: hidden;
}

.btn-metal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.78rem;
  border: 1px solid rgba(185, 35, 48, 0.68);
  background: linear-gradient(120deg, #7a0f1a 0%, #b0121f 100%);
  padding: 0.82rem 1.32rem;
  font-weight: 600;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-metal:hover {
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0) scale(1.02);
  box-shadow: 0 0 0 1px rgba(231, 132, 141, 0.5), 0 0 20px var(--accent-glow);
}

.btn-metal:hover::before,
.btn-outline:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 48%;
  height: 100%;
  background: linear-gradient(102deg, transparent 12%, rgba(255, 255, 255, 0.35) 50%, transparent 88%);
  transform: skewX(-20deg);
  animation: steelPass 0.35s ease-out;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(11, 17, 26, 0.4);
  padding: 0.82rem 1.32rem;
  font-weight: 600;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.btn-outline:hover {
  border-color: rgba(176, 18, 31, 0.74);
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0) scale(1.02);
}

.process-line {
  position: relative;
}

.process-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 38%;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 196, 211, 0.18), rgba(214, 59, 74, 0.72), rgba(184, 196, 211, 0.18));
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 1.1rem;
}

.process-step h3 {
  font-size: 1rem;
  color: #e5ebf3;
}

.process-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 237, 248, 0.5);
  background: rgba(214, 59, 74, 0.8);
  box-shadow: 0 0 8px rgba(214, 59, 74, 0.38);
}

.tech-icon {
  width: 34px;
  height: 34px;
  color: rgba(178, 190, 205, 0.85);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-card:hover .tech-icon {
  color: rgba(214, 59, 74, 0.95);
  transform: translateY(-1px);
}

.btn-metal::after,
.btn-outline::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 7px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.btn-metal:hover::after,
.btn-outline:hover::after {
  transform: scaleX(1);
}

.btn-metal:active,
.btn-outline:active {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.98);
}

.input-field {
  width: 100%;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.76rem 0.9rem;
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: rgba(176, 18, 31, 0.82);
  box-shadow: 0 0 0 3px rgba(176, 18, 31, 0.16);
}

.attachments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.attachments-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.65rem;
  padding: 0.48rem 0.62rem;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.attachments-remove {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  background: rgba(176, 18, 31, 0.14);
  color: #f8fafc;
  font-size: 0.74rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.attachments-remove:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(176, 18, 31, 0.28);
}

.laser-line {
  position: relative;
  overflow: hidden;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 51, 64, 0.88), transparent);
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
}

.laser-line.is-drawn {
  animation: laserDraw 1s ease-out forwards;
}

.laser-line::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -18%;
  width: 18%;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(214, 59, 74, 0.95), rgba(255, 255, 255, 0));
  filter: drop-shadow(0 0 7px rgba(214, 59, 74, 0.65));
}

.laser-line.is-drawn::after {
  animation: laserBeamRun 1s ease-out;
}

.laser-line.weld-hot::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224, 245, 255, 0.95) 0%, rgba(255, 145, 76, 0.88) 40%, rgba(255, 145, 76, 0) 100%);
  filter: drop-shadow(0 0 7px rgba(118, 207, 255, 0.58));
  animation: weldPulse 0.7s ease-out 1;
}

@keyframes laserDraw {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes laserBeamRun {
  0% {
    left: -18%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes weldPulse {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.3);
  }
  35% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.8);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
  transition: opacity 0.62s ease, transform 0.62s ease, filter 0.62s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-cnc {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.65s ease;
}

.reveal-cnc.reveal-left {
  transform: translate3d(-22px, 14px, 0);
}

.reveal-cnc.reveal-right {
  transform: translate3d(22px, 14px, 0);
}

.reveal-cnc.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-mask {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s ease, opacity 0.35s ease;
}

.reveal-mask.is-visible {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.join-glow {
  position: relative;
}

.join-glow::after {
  content: "";
  position: absolute;
  inset: 8% -4%;
  pointer-events: none;
  background: linear-gradient(95deg, transparent 14%, rgba(224, 236, 246, 0.46) 48%, transparent 84%);
  transform: translateX(-120%) skewX(-14deg);
  animation: joinMetal 0.42s ease-out 1;
}

@keyframes joinMetal {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-14deg);
  }
  35% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: translateX(128%) skewX(-14deg);
  }
}

.scanline-section {
  position: relative;
  overflow: hidden;
}

.scanline-section::after {
  content: "";
  position: absolute;
  left: -120%;
  top: 0;
  width: 90%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(176, 18, 31, 0.16) 50%, transparent 100%);
  transform: skewX(-18deg);
  opacity: 0;
}

.scanline-section.scanline-active::after {
  animation: scanline 0.55s ease-out forwards;
}

@keyframes scanline {
  0% {
    left: -120%;
    opacity: 0;
  }
  25% {
    opacity: 0.65;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

.cnc-intro {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 13, 0.98);
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

.cnc-intro.hidden {
  opacity: 0;
  visibility: hidden;
}

.cnc-intro__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
}

.cnc-intro__center {
  position: relative;
  width: min(70vw, 520px);
}

.cnc-intro__logo {
  width: 100%;
  opacity: 0;
  filter: grayscale(0.35);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s ease, opacity 0.25s ease;
}

.cnc-intro.play .cnc-intro__logo {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.cnc-intro__laser {
  position: absolute;
  top: 48%;
  left: -2%;
  width: 104%;
  height: 12px;
  opacity: 0;
}

.cnc-intro__laser line {
  stroke: #d63b4a;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  filter: drop-shadow(0 0 7px rgba(214, 59, 74, 0.55));
}

.cnc-intro.play .cnc-intro__laser {
  opacity: 1;
}

.cnc-intro.play .cnc-intro__laser line {
  animation: laserSweep 0.82s ease forwards;
}

@keyframes laserSweep {
  to {
    stroke-dashoffset: 0;
  }
}

.cnc-intro__sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d86e79;
  opacity: 0;
  box-shadow: 0 0 8px rgba(216, 110, 121, 0.58);
  animation: sparkOut 0.34s ease-out forwards;
}

@keyframes sparkOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) scale(0.2);
  }
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.page-transition::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 13, 20, 0.96), rgba(8, 13, 20, 0.9));
  transform: translateX(-102%);
  transition: transform 0.42s cubic-bezier(0.35, 0.75, 0.2, 1);
}

.page-transition.active::before {
  transform: translateX(0);
}

.page-transition.active {
  opacity: 1;
}

.transition-weld {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82vw, 760px);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.page-transition.active .transition-weld {
  opacity: 1;
}

.transition-weld svg {
  width: 100%;
  height: 110px;
  display: block;
}

.transition-weld__base {
  stroke: rgba(198, 205, 215, 0.45);
  stroke-width: 2;
}

.transition-weld__fused {
  stroke: rgba(146, 214, 255, 0.85);
  stroke-width: 2.2;
  stroke-dasharray: 780;
  stroke-dashoffset: 780;
}

.transition-weld__torch {
  transform: translate(60px, 38px);
}

.transition-weld__torch rect {
  fill: rgba(226, 233, 244, 0.9);
}

.transition-weld__torch line {
  stroke: rgba(165, 230, 255, 0.95);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 4px rgba(165, 230, 255, 0.5));
}

.transition-weld__glow {
  fill: rgba(160, 225, 255, 0.45);
  opacity: 0;
}

.page-transition.active .transition-weld__fused {
  animation: transitionWeldFuse 0.46s ease-out forwards;
}

.page-transition.active .transition-weld__torch {
  animation: transitionWeldTorch 0.46s ease-out forwards;
}

.page-transition.active .transition-weld__glow {
  animation: transitionWeldGlow 0.46s ease-out forwards;
}

@keyframes transitionWeldFuse {
  to { stroke-dashoffset: 0; }
}

@keyframes transitionWeldTorch {
  from { transform: translate(60px, 38px); }
  to { transform: translate(810px, 38px); }
}

@keyframes transitionWeldGlow {
  0% { cx: 84px; opacity: 0.1; }
  60% { opacity: 0.5; }
  100% { cx: 834px; opacity: 0.08; }
}

.transition-sparks,
.ambient-sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
}

.transition-spark,
.ambient-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffc889;
  opacity: 0;
  box-shadow: 0 0 7px rgba(255, 200, 137, 0.6);
}

.transition-spark {
  animation: transitionSpark 0.42s ease-out forwards;
}

.ambient-spark {
  animation: ambientSpark 0.62s ease-out forwards;
}

.transition-spark.spark-white,
.ambient-spark.spark-white {
  background: #f7fbff;
  box-shadow: 0 0 10px rgba(247, 251, 255, 0.8);
}

.transition-spark.spark-hot,
.ambient-spark.spark-hot {
  background: #ff9f47;
  box-shadow: 0 0 10px rgba(255, 159, 71, 0.82);
}

.transition-spark.spark-red,
.ambient-spark.spark-red {
  background: #ff5a54;
  box-shadow: 0 0 9px rgba(255, 90, 84, 0.72);
}

@keyframes transitionSpark {
  0% { opacity: 0.95; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(var(--sx), var(--sy), 0) scale(0.2); }
}

@keyframes ambientSpark {
  0% { opacity: 0.92; transform: translate3d(0, 0, 0) scale(1); }
  65% { opacity: 0.62; }
  100% { opacity: 0; transform: translate3d(var(--sx), var(--sy), 0) scale(0.12); }
}

.transition-flare {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 171, 112, 0.8) 35%, rgba(255, 171, 112, 0) 100%);
  opacity: 0;
  pointer-events: none;
}

.page-transition.active .transition-flare {
  animation: transitionFlare 0.42s ease-out 0.06s;
}

@keyframes transitionFlare {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}

.weld-module {
  position: relative;
}

.weld-svg {
  width: 100%;
  height: 140px;
  display: block;
}

.weld-line-base {
  stroke: rgba(196, 204, 216, 0.55);
  stroke-width: 3;
}

.weld-line-fused {
  stroke: rgba(115, 193, 255, 0.85);
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.weld-torch {
  transform: translate(60px, 68px);
}

.weld-torch rect {
  fill: rgba(218, 226, 238, 0.88);
}

.weld-torch line {
  stroke: rgba(149, 226, 255, 0.95);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(149, 226, 255, 0.55));
}

.weld-glow {
  fill: rgba(163, 228, 255, 0.5);
  opacity: 0.2;
}

.weld-sparks {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.weld-spark {
  position: absolute;
  left: 74px;
  top: 88px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffc57a;
  opacity: 0;
}

.weld-module.is-active .weld-torch {
  animation: weldTorchMove 2.7s ease-in-out infinite;
}

.weld-module.is-active .weld-line-fused {
  animation: weldFuse 2.7s ease-in-out infinite;
}

.weld-module.is-active .weld-glow {
  animation: weldGlow 2.7s ease-in-out infinite;
}

.weld-module.is-active .weld-spark:nth-child(1) { --sx: 10px; --sy: -18px; animation: weldSpark 0.32s ease-out infinite 0.02s; }
.weld-module.is-active .weld-spark:nth-child(2) { --sx: 18px; --sy: -8px; animation: weldSpark 0.28s ease-out infinite 0.07s; }
.weld-module.is-active .weld-spark:nth-child(3) { --sx: 24px; --sy: -16px; animation: weldSpark 0.35s ease-out infinite 0.12s; }
.weld-module.is-active .weld-spark:nth-child(4) { --sx: 16px; --sy: -26px; animation: weldSpark 0.31s ease-out infinite 0.18s; }
.weld-module.is-active .weld-spark:nth-child(5) { --sx: -8px; --sy: -14px; animation: weldSpark 0.27s ease-out infinite 0.22s; }
.weld-module.is-active .weld-spark:nth-child(6) { --sx: 7px; --sy: -21px; animation: weldSpark 0.29s ease-out infinite 0.28s; }
.weld-module.is-active .weld-spark:nth-child(7) { --sx: 22px; --sy: -24px; animation: weldSpark 0.34s ease-out infinite 0.33s; }
.weld-module.is-active .weld-spark:nth-child(8) { --sx: -2px; --sy: -12px; animation: weldSpark 0.26s ease-out infinite 0.38s; }

@keyframes weldTorchMove {
  0% { transform: translate(60px, 68px); }
  50% { transform: translate(410px, 68px); }
  100% { transform: translate(760px, 68px); }
}

@keyframes weldFuse {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@keyframes weldGlow {
  0% { cx: 88px; opacity: 0.15; }
  50% { cx: 438px; opacity: 0.48; }
  100% { cx: 788px; opacity: 0.2; }
}

@keyframes weldSpark {
  0% {
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--sx), var(--sy), 0) scale(0.15);
  }
}

.cnc-blueprint {
  position: relative;
}

.hero-cnc-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
}

.hero-cnc-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 14%, rgba(255, 255, 255, 0.12) 47%, transparent 78%);
  transform: translateX(-115%) skewX(-14deg);
  animation: heroSteelSweep 5.2s ease-in-out infinite;
}

.hero-reflection {
  position: absolute;
  left: 0;
  top: 0;
  width: 34%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 10%, rgba(255, 255, 255, 0.26) 50%, transparent 90%);
  transform: translate3d(-150%, 0, 0) skewX(-16deg);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hero-section:hover .hero-reflection {
  opacity: 0.38;
}

.hero-cnc-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-cnc-overlay .cnc-track {
  stroke: rgba(203, 214, 227, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.hero-cnc-overlay .cnc-head {
  fill: rgba(217, 52, 70, 0.94);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1;
  filter: drop-shadow(0 0 5px rgba(217, 52, 70, 0.62));
}

@keyframes heroSteelSweep {
  0% {
    transform: translateX(-115%) skewX(-14deg);
    opacity: 0;
  }
  16% {
    opacity: 0.34;
  }
  34% {
    transform: translateX(132%) skewX(-14deg);
    opacity: 0;
  }
  100% {
    transform: translateX(132%) skewX(-14deg);
    opacity: 0;
  }
}

.cnc-svg {
  width: 100%;
  height: 240px;
  display: block;
}

.cnc-track {
  fill: none;
  stroke: rgba(188, 198, 210, 0.62);
  stroke-width: 2;
  stroke-dasharray: 920;
  stroke-dashoffset: 920;
}

.cnc-head {
  fill: #d63b4a;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.4;
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(214, 59, 74, 0.55));
}

.cnc-module.is-active .cnc-track {
  animation: cncTrackDraw 2.2s ease-out forwards;
}

.cnc-module.is-active .cnc-head {
  opacity: 1;
}

.counter.counter-hit {
  animation: metalCounterHit 0.22s ease-out 1;
}

@keyframes metalCounterHit {
  0% { transform: translateX(0); text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  20% { transform: translateX(-0.5px); text-shadow: 0 0 8px rgba(236, 244, 255, 0.4); }
  40% { transform: translateX(0.8px); }
  60% { transform: translateX(-0.4px); }
  100% { transform: translateX(0); text-shadow: 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes cncTrackDraw {
  to { stroke-dashoffset: 0; }
}

body.admin-page {
  background: #f4f7fb;
}

.table {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.table thead th {
  background: #f1f5f9;
  color: #334155;
}

.text-sky-300 {
  color: #cb2938 !important;
}

.hover\:text-sky-300:hover {
  color: #df3f4f !important;
}

.hover\:border-sky-400\/60:hover {
  border-color: rgba(176, 18, 31, 0.58) !important;
}

@media (max-width: 767px) {
  header .mx-auto {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .mobile-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 11, 18, 0.98);
    backdrop-filter: blur(8px);
  }

  .mobile-nav__links {
    display: grid;
    gap: 0.3rem;
  }

  .mobile-nav__links a {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.65rem;
    padding: 0.62rem 0.75rem;
    color: #d9e2ef;
    font-size: 0.92rem;
  }

  .mobile-nav__links a:active {
    border-color: rgba(176, 18, 31, 0.68);
  }

  .mobile-nav .lang-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    border-radius: 0.65rem;
    font-size: 0.86rem;
    padding: 0.62rem 0.75rem;
  }

  .mobile-nav .lang-dropdown__menu {
    position: static;
    margin-top: 0.35rem;
    min-width: 100%;
    border-radius: 0.65rem;
  }

  main h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    line-height: 1.16 !important;
  }

  main h2 {
    font-size: clamp(1.35rem, 5.4vw, 1.8rem) !important;
    line-height: 1.2 !important;
  }

  main p {
    line-height: 1.55;
  }

  .service-card img {
    height: 11.5rem !important;
  }

  .hero-section {
    gap: 1.2rem !important;
    padding-top: 1.15rem !important;
    padding-bottom: 1.35rem !important;
  }

  .hero-cnc-frame {
    height: 300px !important;
  }

  .hero-cnc-frame::before,
  .hero-reflection {
    display: none !important;
  }

  .process-track {
    display: none;
  }

  .process-step {
    text-align: left;
    padding-top: 0.2rem;
  }

  .btn-metal,
  .btn-outline {
    width: 100%;
  }

  .cnc-intro__center {
    width: min(82vw, 420px);
  }

  footer .mx-auto {
    width: min(1200px, calc(100% - 1.1rem)) !important;
  }

  footer a {
    display: inline-block;
    padding: 0.2rem 0;
  }
}

@media (max-width: 430px) {
  .input-field {
    font-size: 0.95rem;
  }

  .card,
  .service-card {
    border-radius: 0.85rem !important;
  }

  .mobile-nav__links a {
    padding: 0.58rem 0.72rem;
  }

  .hero-video__content {
    padding-top: 1rem !important;
    padding-bottom: 1.1rem !important;
  }

  .hero-video__content .btn-metal,
  .hero-video__content .btn-outline {
    min-height: 44px;
  }
}

@media (hover: none), (pointer: coarse) {
  .site-cursor,
  .cursor-sparks {
    display: none !important;
  }

  body.cursor-fx-enabled,
  body.cursor-fx-enabled a,
  body.cursor-fx-enabled button,
  body.cursor-fx-enabled input,
  body.cursor-fx-enabled select,
  body.cursor-fx-enabled textarea,
  body.cursor-fx-enabled summary,
  body.cursor-fx-enabled [role="button"] {
    cursor: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-cnc,
  .reveal-mask,
  .laser-line,
  .service-card,
  .btn-metal,
  .btn-outline,
  .metal-reveal,
  .hover-fx,
  .hero-video__media,
  .hero-video__blueprint,
  .hero-video__content,
  .tech-divider__line,
  .tech-divider__light {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }

  .cnc-intro,
  .page-transition,
  .site-cursor,
  .cursor-sparks,
  .technical-blueprint {
    display: none !important;
  }

  .ambient-sparks {
    display: none !important;
  }

  .weld-module.is-active .weld-torch,
  .weld-module.is-active .weld-line-fused,
  .weld-module.is-active .weld-glow,
  .weld-module.is-active .weld-spark,
  .cnc-module.is-active .cnc-track {
    animation: none !important;
  }

  .cnc-head,
  .weld-spark {
    opacity: 0 !important;
  }

  .hero-reflection {
    display: none !important;
  }
}

.blog-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.blog-search__input {
  flex: 1 1 280px;
  min-height: 2.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f7fd;
  padding: 0 0.9rem;
}

.blog-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background: rgba(6, 10, 18, 0.65);
}

.blog-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.image-lightbox.hidden {
  display: none !important;
}

.image-lightbox.is-open {
  opacity: 1;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.78);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.image-lightbox.is-open .image-lightbox__backdrop {
  opacity: 1;
}

.image-lightbox__dialog {
  position: relative;
  width: min(94vw, 1150px);
  max-height: 90vh;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 12, 0.86);
  box-shadow: 0 22px 60px -28px rgba(0, 0, 0, 0.85);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.image-lightbox.is-open .image-lightbox__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.image-lightbox__viewport {
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  touch-action: none;
  cursor: default;
}

.image-lightbox__img {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.18s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.image-lightbox__caption {
  margin: 0;
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.92rem;
  color: #d6deea;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 12, 0.72);
}

.image-lightbox__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 14, 24, 0.82);
  color: #f8fafc;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

[data-image-lightbox-open] {
  cursor: zoom-in;
}

.image-lightbox__tools {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 3;
  display: inline-flex;
  gap: 0.35rem;
}

.image-lightbox__tool-btn {
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 14, 24, 0.82);
  color: #f8fafc;
  font-size: 0.85rem;
  cursor: pointer;
}

.blog-like-btn[aria-pressed="true"] {
  border-color: rgba(220, 38, 38, 0.8);
  color: #fff1f2;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.25) inset;
}

.blog-like-count {
  margin-left: 0.2rem;
}

.blog-comment {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.blog-comment--reply {
  background: rgba(255, 255, 255, 0.03);
}

.blog-comment__head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #b6c2d1;
}

.blog-reply-toggle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #93c5fd;
}

.blog-input,
.blog-textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f9ff;
  padding: 0.72rem 0.85rem;
}

.blog-textarea {
  resize: vertical;
  min-height: 5.2rem;
}

.portfolio-filter-select {
  color: #ffffff;
}

.portfolio-filter-select option {
  color: #000000;
  background: #ffffff;
}

.portfolio-filter-select option:checked {
  color: #ffffff;
  background: #b0121f;
}

.blog-content-html p {
  margin: 0.8rem 0;
}

.blog-content-html h2,
.blog-content-html h3 {
  margin-top: 1.15rem;
  margin-bottom: 0.5rem;
}

.blog-content-html ul {
  margin: 0.8rem 0 0.8rem 1.2rem;
  list-style: disc;
}

.blog-content-html a {
  color: #93c5fd;
  text-decoration: underline;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 64px;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(176, 18, 31, 0.42));
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-year {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  min-width: 84px;
  padding: 0 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(176, 18, 31, 0.18);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.timeline-year::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #d63346;
  box-shadow: 0 0 0 5px rgba(214, 51, 70, 0.15);
}

.timeline-content {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1rem;
}

.project-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.project-hero__image {
  width: 100%;
  height: clamp(280px, 52vw, 560px);
  object-fit: cover;
  display: block;
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 16, 0.25) 0%, rgba(5, 9, 16, 0.62) 62%, rgba(5, 9, 16, 0.78) 100%);
}

.project-hero__content {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 2;
}

.project-gallery {
  display: grid;
  gap: 0.9rem;
}

.project-gallery__main-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.project-gallery__main {
  width: 100%;
  height: clamp(260px, 48vw, 560px);
  object-fit: cover;
  display: block;
}

.project-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 13, 22, 0.62);
  color: #f8fbff;
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.project-gallery__nav:hover {
  border-color: rgba(176, 18, 31, 0.72);
  background: rgba(176, 18, 31, 0.34);
  transform: translateY(-50%) scale(1.04);
}

.project-gallery__nav--prev {
  left: 0.65rem;
}

.project-gallery__nav--next {
  right: 0.65rem;
}

.project-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.55rem;
}

.project-gallery__caption {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  color: #d6deea;
}

.project-gallery__thumb {
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-gallery__thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.project-gallery__thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(176, 18, 31, 0.6);
}

.project-gallery__thumb.is-active {
  border-color: rgba(176, 18, 31, 0.9);
  box-shadow: 0 0 0 1px rgba(176, 18, 31, 0.32), 0 10px 20px -18px rgba(176, 18, 31, 0.55);
}

@media (max-width: 680px) {
  .timeline::before {
    left: 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-left: 2.05rem;
    position: relative;
  }

  .timeline-year {
    width: fit-content;
  }

  .timeline-year::after {
    left: -1.55rem;
    right: auto;
  }

  .project-gallery__thumb img {
    height: 64px;
  }

  .project-gallery__nav {
    width: 2rem;
    height: 2rem;
    font-size: 1.12rem;
  }

  .project-hero__content {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .project-hero__content h1 {
    font-size: clamp(1.45rem, 6.5vw, 2rem) !important;
    line-height: 1.18;
  }

  .project-gallery__main {
    height: clamp(210px, 56vw, 320px);
  }

  .project-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .project-gallery__caption {
    font-size: 0.84rem;
  }

  .portfolio-filters .btn-metal,
  .portfolio-filters .btn-outline,
  .blog-search .btn-metal,
  .blog-search .btn-outline {
    width: 100%;
    min-height: 44px;
  }

  .image-lightbox {
    padding: 0.5rem;
  }

  .image-lightbox__dialog {
    width: min(98vw, 98vw);
    border-radius: 0.8rem;
  }

  .image-lightbox__tools {
    top: 0.45rem;
    left: 0.45rem;
    gap: 0.28rem;
  }

  .image-lightbox__tool-btn {
    min-width: 1.85rem;
    height: 1.85rem;
    font-size: 0.78rem;
    padding: 0 0.42rem;
  }

  .image-lightbox__close {
    top: 0.45rem;
    right: 0.45rem;
    width: 1.9rem;
    height: 1.9rem;
  }

  .image-lightbox__caption {
    font-size: 0.82rem;
    padding: 0.52rem 0.68rem 0.65rem;
  }

  .blog-comment-form .blog-input,
  .blog-comment-form .blog-textarea,
  .input-field {
    min-height: 44px;
  }
}
