/* ═══════════════════════════════════════════════════════════════
   MAJU TRANSMISSION SDN BHD — style.css
   Dark industrial theme · Allison blue + signal red accents
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #070d19;
  --bg-raise:    #0c1526;
  --bg-card:     #101c31;
  --bg-card-2:   #142238;
  --line:        rgba(148, 178, 224, .14);
  --text:        #e9eff9;
  --text-muted:  #97a6bd;
  --blue:        #2f7bff;
  --blue-soft:   #6ea3ff;
  --blue-deep:   #1b5faa;
  --red:         #e63b4e;
  --glow:        rgba(47, 123, 255, .35);
  --font-head:   "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:   "Inter", "Segoe UI", system-ui, sans-serif;
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h:       76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1180px, 92%); margin-inline: auto; }

::selection { background: var(--blue); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #22314e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }

/* ── Preloader ─────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .6s ease, visibility .6s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; place-items: center; gap: 18px; }
.preloader__gear { color: var(--blue); animation: spin 2.4s linear infinite; }
.preloader__text {
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .42em;
  color: var(--text-muted); animation: pulse-txt 1.6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-txt { 50% { opacity: .35; } }

/* ── Scroll progress ───────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue), var(--red));
  z-index: 150;
}

/* ── Cursor glow ───────────────────────────────────────────── */
.cursor-glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,123,255,.07) 0%, transparent 65%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .4s;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) { .cursor-glow { opacity: 1; } }

/* ── Navbar ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: rgba(7, 13, 25, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(0, 0, 0, .35);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  transition: height .35s;
}
.nav.is-scrolled .nav__inner { height: 62px; }

.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__gear { color: var(--blue); transition: transform .8s var(--ease-out); }
.nav__brand:hover .nav__gear { transform: rotate(120deg); }
.nav__brand-text {
  font-family: var(--font-head); font-size: 1rem; letter-spacing: .06em; line-height: 1.15;
  display: flex; flex-direction: column;
}
.nav__brand-text strong { color: var(--blue-soft); }
.nav__brand-text small {
  font-family: var(--font-body); font-size: .62rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--text-muted);
  padding: 6px 0; transition: color .25s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blue);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active:not(.btn) { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active:not(.btn)::after {
  transform: scaleX(1); transform-origin: left;
}

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 15px 30px; border-radius: 10px;
  transition: transform .3s var(--ease-spring), box-shadow .3s, background .3s, color .3s;
  overflow: hidden; white-space: nowrap;
}
.btn--sm { padding: 10px 20px; font-size: .85rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--glow); }
.btn--primary::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease-out);
}
.btn--primary:hover::before { left: 130%; }
.btn--ghost {
  border: 1px solid var(--line); color: var(--text);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-soft); transform: translateY(-2px); }
.btn svg { transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 110px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -8% 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 14s var(--ease-out) forwards;
}
@keyframes hero-zoom { to { transform: scale(1.0); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7,13,25,.96) 22%, rgba(7,13,25,.78) 50%, rgba(7,13,25,.45) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 32%);
}
.hero__ring {
  position: absolute; color: var(--blue); opacity: .16; z-index: 0; pointer-events: none;
}
.hero__ring--1 { width: 560px; right: -160px; top: -120px; animation: spin 60s linear infinite; }
.hero__ring--2 { width: 380px; right: -60px; top: 40px; animation: spin 40s linear infinite reverse; }

.hero__content { position: relative; z-index: 2; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-soft);
  padding: 9px 18px; border: 1px solid rgba(110,163,255,.3); border-radius: 99px;
  background: rgba(47,123,255,.08); backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  position: relative; flex: none;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--red);
  animation: pulse-ring 1.8s var(--ease-out) infinite;
}
@keyframes pulse-ring { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.hero__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 4.9rem);
  line-height: 1.06; letter-spacing: -.02em;
  max-width: 13ch;
  margin-bottom: 26px;
}
.hero__word {
  display: inline-block; overflow: hidden; vertical-align: top;
  opacity: 0; transform: translateY(110%) rotate(3deg);
  animation: word-in .9s var(--ease-out) forwards;
}
.hero__word:nth-child(1) { animation-delay: .55s; }
.hero__word:nth-child(2) { animation-delay: .68s; }
.hero__word:nth-child(3) { animation-delay: .81s; }
.hero__word:nth-child(4) { animation-delay: .94s; }
@keyframes word-in { to { opacity: 1; transform: translateY(0) rotate(0); } }
.hero__word--accent {
  background: linear-gradient(100deg, var(--blue-soft), var(--blue) 55%, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub { max-width: 52ch; font-size: 1.08rem; color: var(--text-muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

.reveal-line { opacity: 0; transform: translateY(24px); animation: line-in .9s var(--ease-out) forwards; }
.hero__kicker.reveal-line { animation-delay: .35s; }
.hero__sub.reveal-line { animation-delay: 1.1s; }
.hero__actions.reveal-line { animation-delay: 1.25s; }
.hero__stats.reveal-line { animation-delay: 1.4s; }
@keyframes line-in { to { opacity: 1; transform: translateY(0); } }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero__stat {
  flex: 1 1 150px; padding: 22px 26px 0 0; margin-right: 26px;
  border-top: 2px solid transparent; margin-top: -1px;
  transition: border-color .3s;
}
.hero__stat:hover { border-top-color: var(--blue); }
.hero__stat strong {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--text);
  display: block; line-height: 1.1;
}
.hero__stat span { font-size: .8rem; color: var(--text-muted); letter-spacing: .04em; }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted);
  transition: color .3s;
  z-index: 3;
}
.hero__scroll:hover { color: var(--blue-soft); }
.hero__scroll-track {
  width: 24px; height: 38px; border: 1.5px solid currentColor; border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.hero__scroll-dot {
  width: 4px; height: 8px; border-radius: 2px; background: currentColor;
  animation: scroll-dot 1.8s var(--ease-out) infinite;
}
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── Marquee ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--bg-raise);
  padding: 18px 0;
  position: relative; z-index: 2;
}
.marquee__track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
  white-space: nowrap;
  transition: color .3s;
}
.marquee__track span:hover { color: var(--blue-soft); }
.marquee__track i { color: var(--red); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections (shared) ─────────────────────────────────────── */
.section { padding: 110px 0; position: relative; }
.section__kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12; letter-spacing: -.015em;
  margin-bottom: 26px;
}
.section__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue-soft), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__lede { max-width: 62ch; color: var(--text-muted); margin-bottom: 48px; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--stagger, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Tilt */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ── About ─────────────────────────────────────────────────── */
.about { background: var(--bg); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 70px; align-items: start;
}
.about__img-frame {
  position: relative; border-radius: 16px; overflow: visible;
}
.about__img-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--line); border-radius: 16px; z-index: -1;
  transition: transform .5s var(--ease-out);
}
.about__img-frame:hover::before { transform: translate(6px, 6px); }
.about__img-frame img {
  border-radius: 16px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
.about__badge {
  position: absolute; right: -16px; bottom: -22px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; border-radius: 14px; padding: 16px 22px;
  font-family: var(--font-head); text-align: center;
  box-shadow: 0 16px 40px -10px var(--glow);
  animation: float 5s ease-in-out infinite;
}
.about__badge strong { display: block; font-size: .72rem; letter-spacing: .2em; opacity: .8; }
.about__badge span { font-size: 1.7rem; font-weight: 800; }
@keyframes float { 50% { transform: translateY(-8px); } }

.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip {
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  padding: 8px 16px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--text-muted);
  background: var(--bg-card);
  transition: color .3s, border-color .3s, transform .3s var(--ease-spring);
}
.chip:hover { color: var(--blue-soft); border-color: var(--blue); transform: translateY(-3px); }

.about__body > p { color: var(--text-muted); margin-bottom: 18px; max-width: 60ch; }

.about__mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.mv-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.mv-card:hover { border-color: rgba(47,123,255,.45); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.mv-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; color: var(--blue-soft);
  background: rgba(47,123,255,.1); margin-bottom: 16px;
  transition: transform .4s var(--ease-spring), background .3s, color .3s;
}
.mv-card:hover .mv-card__icon { transform: rotate(-8deg) scale(1.08); background: var(--blue); color: #fff; }
.mv-card h3 { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 8px; }
.mv-card p { font-size: .88rem; color: var(--text-muted); }

/* ── Services ──────────────────────────────────────────────── */
.services { background: var(--bg-raise); }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(47,123,255,.07), transparent),
    radial-gradient(500px 260px at 10% 100%, rgba(230,59,78,.05), transparent);
}
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px;
}
.service-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s, box-shadow .35s;
}
.service-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(47,123,255,.4); box-shadow: 0 24px 50px -20px rgba(0,0,0,.65); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 800;
  color: rgba(151, 166, 189, .12);
  transition: color .35s;
}
.service-card:hover .service-card__num { color: rgba(47,123,255,.28); }
.service-card__icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center; color: var(--blue-soft);
  background: rgba(47,123,255,.1);
  margin-bottom: 22px;
  transition: transform .45s var(--ease-spring), background .35s, color .35s;
}
.service-card:hover .service-card__icon { transform: translateY(-4px) rotate(-6deg); background: var(--blue); color: #fff; }
.service-card h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.3; margin-bottom: 10px; }
.service-card p { font-size: .9rem; color: var(--text-muted); }

/* ── Process ───────────────────────────────────────────────── */
.process { background: var(--bg); }
.process__wrap { margin-top: 30px; }
.process__rail {
  height: 3px; background: var(--line); border-radius: 2px; position: relative;
  margin: 0 30px 0;
}
.process__rail-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  border-radius: 2px;
  transition: width .6s var(--ease-out);
}
.process__steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-top: -13px;
}
.process-step__btn {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 100%; padding: 0 4px 8px;
}
.process-step__dot {
  width: 23px; height: 23px; border-radius: 50%;
  border: 3px solid var(--bg); background: #2a3a58;
  box-shadow: 0 0 0 1px var(--line);
  transition: background .3s, transform .3s var(--ease-spring), box-shadow .3s;
}
.process-step__btn:hover .process-step__dot { transform: scale(1.25); }
.process-step.is-active .process-step__dot,
.process-step.is-done .process-step__dot { background: var(--blue); }
.process-step.is-active .process-step__dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(47,123,255,.18), 0 0 20px var(--glow);
}
.process-step__label {
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--text-muted); text-align: center;
  transition: color .3s;
}
.process-step.is-active .process-step__label { color: var(--text); }

.process__panel {
  margin-top: 36px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 38px 40px 30px;
  position: relative; overflow: hidden;
}
.process__panel::before {
  content: ""; position: absolute; top: 0; left: 0; width: 340px; height: 100%;
  background: radial-gradient(280px 200px at 0% 50%, rgba(47,123,255,.09), transparent);
  pointer-events: none;
}
.process__panel-inner {
  display: flex; gap: 28px; align-items: flex-start;
  transition: opacity .3s, transform .3s;
}
.process__panel-inner.is-switching { opacity: 0; transform: translateY(12px); }
.process__panel-num {
  font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, var(--blue-soft), var(--blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  flex: none;
}
.process__panel h3 { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 8px; }
.process__panel p { color: var(--text-muted); max-width: 68ch; }
.process__controls { margin-top: 22px; display: flex; justify-content: flex-end; }
.process__autoplay {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px;
  transition: color .3s, border-color .3s;
}
.process__autoplay:hover { color: var(--blue-soft); border-color: var(--blue); }
.process__autoplay .icon-play { display: none; }
.process__autoplay[aria-pressed="false"] .icon-pause { display: none; }
.process__autoplay[aria-pressed="false"] .icon-play { display: block; }

/* ── Facilities ────────────────────────────────────────────── */
.facilities { background: var(--bg-raise); }
.facilities__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px;
}
.facility {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 22px;
  transition: transform .35s var(--ease-out), border-color .35s, background .35s;
}
.facility:hover { transform: translateY(-5px); border-color: rgba(47,123,255,.4); background: var(--bg-card-2); }
.facility--highlight { border-color: rgba(230,59,78,.4); }
.facility--highlight:hover { border-color: var(--red); }
.facility__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  color: var(--blue-soft); background: rgba(47,123,255,.1);
  margin-bottom: 16px;
  transition: transform .4s var(--ease-spring);
}
.facility--highlight .facility__icon { color: #ff8b96; background: rgba(230,59,78,.12); }
.facility:hover .facility__icon { transform: scale(1.12) rotate(-6deg); }
.facility h3 { font-family: var(--font-head); font-size: .98rem; line-height: 1.3; margin-bottom: 6px; }
.facility p { font-size: .82rem; color: var(--text-muted); }

/* ── Gallery ───────────────────────────────────────────────── */
.gallery { background: var(--bg); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery__item {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3 / 4; padding: 0;
  outline-offset: 3px;
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .5s;
  filter: saturate(.85);
}
.gallery__item::after {
  content: "+"; position: absolute; inset: auto 12px 12px auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(47,123,255,.9); color: #fff; font-size: 1.3rem; font-weight: 300;
  opacity: 0; transform: scale(.5);
  transition: opacity .35s, transform .35s var(--ease-spring);
}
.gallery__item::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(7,13,25,.65), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.gallery__item:hover img { transform: scale(1.07); filter: saturate(1.05); }
.gallery__item:hover::after { opacity: 1; transform: scale(1); }
.gallery__item:hover::before { opacity: 1; }

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 180;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  background: rgba(4, 8, 16, .93); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure { max-width: min(78vw, 900px); text-align: center; }
.lightbox__figure img {
  max-height: 76vh; width: auto; max-width: 100%;
  border-radius: 12px; margin-inline: auto;
  box-shadow: 0 40px 90px rgba(0,0,0,.6);
  animation: lightbox-in .4s var(--ease-out);
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(.92); } }
.lightbox__figure figcaption { margin-top: 16px; color: var(--text-muted); font-size: .92rem; }
.lightbox__count {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-head); font-size: .75rem; letter-spacing: .2em; color: var(--blue-soft);
}
.lightbox__close {
  position: absolute; top: 22px; right: 28px;
  font-size: 2.4rem; line-height: 1; color: var(--text-muted);
  transition: color .25s, transform .3s var(--ease-spring);
}
.lightbox__close:hover { color: #fff; transform: rotate(90deg); }
.lightbox__nav {
  font-size: 3rem; line-height: 1; color: var(--text-muted);
  padding: 20px 14px;
  transition: color .25s, transform .3s;
  user-select: none;
}
.lightbox__nav:hover { color: #fff; }
.lightbox__nav--prev:hover { transform: translateX(-4px); }
.lightbox__nav--next:hover { transform: translateX(4px); }

/* ── 3D Model ──────────────────────────────────────────────── */
.model { background: var(--bg); }
.model::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 30% 45%, rgba(47,123,255,.06), transparent);
}
.model__wrap {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 24px; align-items: stretch;
}
.model__stage {
  position: relative;
  background:
    radial-gradient(420px 300px at 50% 42%, rgba(47,123,255,.12), transparent 70%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-raise) 100%);
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
  min-height: 520px;
}
#modelCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: pan-y;
  cursor: grab;
}
#modelCanvas.is-dragging { cursor: grabbing; }
.model__fallback { position: absolute; inset: 0; }
.model__fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.model__fallback p {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 22px; font-size: .85rem; color: var(--text);
  background: linear-gradient(to top, rgba(7,13,25,.92), transparent);
}
.model__hint {
  position: absolute; top: 18px; left: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; color: var(--text-muted);
  padding: 8px 14px; border-radius: 99px;
  background: rgba(7,13,25,.55); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: opacity .6s;
  pointer-events: none;
}
.model__hint.is-hidden { opacity: 0; }
.model__controls {
  position: absolute; bottom: 18px; left: 20px; right: 20px;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.model-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  padding: 10px 18px; border-radius: 99px;
  color: var(--text-muted);
  background: rgba(7,13,25,.6); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: color .3s, border-color .3s, background .3s, transform .25s var(--ease-spring);
}
.model-btn:hover { color: var(--text); border-color: var(--blue); transform: translateY(-2px); }
.model-btn[aria-pressed="true"] {
  color: #fff; background: rgba(47,123,255,.25); border-color: var(--blue);
}
.model__parts {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.model__parts-title {
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 16px;
}
.model__parts-list { display: flex; flex-direction: column; gap: 6px; }
.part-btn {
  display: flex; align-items: center; gap: 12px;
  text-align: left; font-size: .9rem; font-weight: 500; color: var(--text-muted);
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.part-btn::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #2a3a58; flex: none;
  transition: background .25s, box-shadow .25s;
}
.part-btn:hover { color: var(--text); background: var(--bg-card-2); transform: translateX(3px); }
.part-btn.is-active {
  color: var(--text); background: var(--bg-card-2); border-color: rgba(47,123,255,.35);
}
.part-btn.is-active::before {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,123,255,.2), 0 0 10px var(--glow);
}
.model__part-info {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line);
  min-height: 118px;
}
.model__part-info h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 6px; }
.model__part-info p { font-size: .84rem; color: var(--text-muted); }
.model__part-info.is-switching { opacity: 0; }
.model__part-info { transition: opacity .25s; }

/* ── Quality ───────────────────────────────────────────────── */
.quality { background: var(--bg-raise); }
.quality__policy {
  max-width: 74ch; font-size: 1.12rem; line-height: 1.8; color: var(--text);
  border-left: 3px solid var(--blue);
  padding: 6px 0 6px 26px; margin-bottom: 56px;
  font-style: italic;
}
.quality__policy cite { display: block; margin-top: 12px; font-style: normal; font-size: .85rem; color: var(--text-muted); }
.quality__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quality-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 24px; text-align: center;
  transition: transform .35s var(--ease-out), border-color .35s;
}
.quality-card:hover { transform: translateY(-5px); border-color: rgba(47,123,255,.4); }
.quality-card__ring { position: relative; width: 120px; height: 120px; margin: 0 auto 20px; }
.quality-card__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.quality-card__ring .ring-bg,
.quality-card__ring .ring-val { fill: none; stroke-width: 7; }
.quality-card__ring .ring-bg { stroke: rgba(148,178,224,.12); }
.quality-card__ring .ring-val {
  stroke: url(#none); stroke: var(--blue); stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.quality-card.is-visible .ring-val { stroke-dashoffset: var(--ring-offset, 60); }
.quality-card__ring strong {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.75rem; font-weight: 800; line-height: 1.05;
}
.quality-card__ring .ring-line { display: inline-flex; align-items: baseline; white-space: nowrap; }
.quality-card__ring strong small { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }
.quality-card h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 8px; }
.quality-card p { font-size: .85rem; color: var(--text-muted); }

/* ── Locations ─────────────────────────────────────────────── */
.locations { background: var(--bg); }
.locations__wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 26px; margin-top: 50px; align-items: stretch;
}
.locations__list { display: flex; flex-direction: column; gap: 8px; }
.loc-tab {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  text-align: left;
  padding: 15px 18px; border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--text-muted);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.loc-tab em {
  grid-column: 2; font-family: var(--font-body); font-style: normal; font-weight: 400;
  font-size: .76rem; color: var(--text-muted); opacity: .8;
}
.loc-tab__marker {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a3a58; grid-row: span 2;
  transition: background .3s, box-shadow .3s;
}
.loc-tab:hover { color: var(--text); background: var(--bg-card); transform: translateX(4px); }
.loc-tab.is-active {
  color: var(--text); background: var(--bg-card); border-color: rgba(47,123,255,.35);
  transform: translateX(6px);
}
.loc-tab.is-active .loc-tab__marker {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,123,255,.2), 0 0 14px var(--glow);
  animation: marker-pulse 2s ease-in-out infinite;
}
@keyframes marker-pulse { 50% { box-shadow: 0 0 0 7px rgba(47,123,255,.12), 0 0 16px var(--glow); } }

.locations__detail {
  background:
    radial-gradient(500px 320px at 90% 8%, rgba(47,123,255,.1), transparent),
    var(--bg-card);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 44px 46px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.locations__detail::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 260px; height: 260px;
  border: 1px dashed rgba(110,163,255,.2); border-radius: 50%;
  animation: spin 50s linear infinite;
}
.loc-detail { transition: opacity .3s, transform .3s; position: relative; z-index: 1; }
.loc-detail.is-switching { opacity: 0; transform: translateY(14px); }
.loc-detail__tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 12px;
}
.loc-detail h3 { font-family: var(--font-head); font-size: 1.9rem; margin-bottom: 14px; }
.loc-detail address { font-style: normal; color: var(--text-muted); margin-bottom: 24px; line-height: 1.8; }
.loc-detail__contacts { display: flex; flex-wrap: wrap; gap: 12px; }
.loc-contact {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 600;
  padding: 10px 18px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: border-color .3s, color .3s, transform .3s var(--ease-spring);
}
a.loc-contact:hover { border-color: var(--blue); color: var(--blue-soft); transform: translateY(-2px); }
.loc-contact--muted { color: var(--text-muted); }

/* ── Contact ───────────────────────────────────────────────── */
.contact { background: var(--bg-raise); }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 380px at 12% 20%, rgba(47,123,255,.06), transparent);
}
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 70px; align-items: start;
}
.contact__points { list-style: none; margin: 26px 0 34px; display: grid; gap: 12px; }
.contact__points li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: .95rem; }
.contact__points svg { color: var(--blue); flex: none; }
.contact__phone {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  color: var(--text);
  transition: color .3s;
}
.contact__phone svg { color: var(--blue); }
.contact__phone small { font-family: var(--font-body); font-weight: 400; font-size: .74rem; color: var(--text-muted); }
.contact__phone:hover { color: var(--blue-soft); }

.contact__form {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.6);
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--text);
  background: var(--bg-raise);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 16px 10px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  resize: vertical;
}
.field select { appearance: none; height: 60px; cursor: pointer; }
.field label {
  position: absolute; left: 16px; top: 18px;
  font-size: .95rem; color: var(--text-muted);
  pointer-events: none;
  transition: all .25s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47,123,255,.15);
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  top: 8px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-soft);
}
.field.is-error input, .field.is-error select, .field.is-error textarea {
  border-color: var(--red);
  animation: shake .4s;
}
@keyframes shake {
  25% { transform: translateX(-5px); } 50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
.contact__submit { grid-column: 1 / -1; justify-content: center; position: relative; }
.contact__submit.is-sending .contact__submit-plane { animation: plane-fly .8s var(--ease-out) forwards; }
@keyframes plane-fly {
  40% { transform: translate(6px, -6px) scale(.9); opacity: 1; }
  100% { transform: translate(60px, -40px) scale(.4); opacity: 0; }
}
.contact__note { grid-column: 1 / -1; font-size: .74rem; color: var(--text-muted); text-align: center; opacity: .7; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 70px 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.3fr; gap: 44px;
  padding-bottom: 50px;
}
.footer__logo { width: 240px; background: #fff; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer__brand p { font-size: .88rem; color: var(--text-muted); max-width: 34ch; }
.footer__col h4 {
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); margin-bottom: 16px;
}
.footer__col a, .footer__col p { display: block; font-size: .88rem; color: var(--text-muted); margin-bottom: 10px; transition: color .25s, transform .25s; }
.footer__col a:hover { color: var(--blue-soft); transform: translateX(3px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  font-size: .78rem; color: var(--text-muted);
}

/* ── Back to top ───────────────────────────────────────────── */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text-muted);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s, transform .35s var(--ease-spring), visibility .35s, color .3s, border-color .3s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--blue-soft); border-color: var(--blue); }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 190;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid rgba(47,123,255,.4);
  color: var(--text); font-size: .9rem; font-weight: 500;
  padding: 15px 24px; border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  transform: translate(-50%, 140%);
  transition: transform .5s var(--ease-spring);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { color: #34d399; flex: none; }

/* ═══ Responsive ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .facilities__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .quality__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 60px; }
  .model__wrap { grid-template-columns: 1fr; }
  .model__stage { min-height: 420px; }
  .process__steps { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .process__rail { display: none; }
  .process__steps { margin-top: 0; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .section { padding: 80px 0; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0; z-index: 105;
    flex-direction: column; justify-content: center; gap: 8px;
    background: rgba(7,13,25,.97); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) {
    font-size: 1.4rem; font-family: var(--font-head); padding: 12px;
    opacity: 0; transform: translateY(18px);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), color .25s;
  }
  .nav__links.is-open a:not(.btn) { opacity: 1; transform: none; }
  .nav__links a:nth-child(1) { transition-delay: .05s; }
  .nav__links a:nth-child(2) { transition-delay: .1s; }
  .nav__links a:nth-child(3) { transition-delay: .15s; }
  .nav__links a:nth-child(4) { transition-delay: .2s; }
  .nav__links a:nth-child(5) { transition-delay: .25s; }
  .nav__links a:nth-child(6) { transition-delay: .3s; }
  .nav__links a:nth-child(7) { transition-delay: .35s; }
  .nav__links a:nth-child(8) { transition-delay: .4s; }
  .nav__cta { margin-top: 18px; }

  .hero { padding-bottom: 90px; }
  .hero__stats { gap: 0; }
  .hero__stat { flex: 1 1 40%; padding-right: 12px; margin-right: 12px; }
  .hero__ring--1, .hero__ring--2 { display: none; }
  .hero__scroll { display: none; }

  .about__badge { right: 8px; }
  .about__mv { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .facilities__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .quality__grid { grid-template-columns: 1fr; }
  .locations__wrap { grid-template-columns: 1fr; }
  .locations__detail { padding: 34px 26px; }
  .contact__form { grid-template-columns: 1fr; padding: 30px 22px; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__panel { padding: 28px 24px 22px; }
  .process__panel-inner { flex-direction: column; gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .lightbox__nav { position: absolute; bottom: 20px; z-index: 2; }
  .lightbox__nav--prev { left: 24%; }
  .lightbox__nav--next { right: 24%; }
}

/* ═══ Reduced motion ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-line, .hero__word { opacity: 1 !important; transform: none !important; }
}
