/* =========================================================
   آسان تامین آذر — Homepage styles
   ========================================================= */

:root {
  --red: #e0001b;
  --red-600: #c10017;
  --navy: #16232e;
  --navy-900: #0f1820;
  --navy-800: #13202a;
  --navy-700: #1d2e3b;
  --navy-600: #2a3f4f;
  --paper: #f3f2ee;
  --white: #ffffff;
  --ink: #16232e;
  --muted: #5d6872;
  --muted-2: #8a939b;
  --line: #e2e0d9;
  --line-dark: rgba(255, 255, 255, 0.09);

  --font: "Vazirmatn", "Tahoma", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 120px);
  --header-h: 84px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--red);
  color: var(--white);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

.section { padding-block: var(--section-y); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.eyebrow-light { color: #ff4d5e; }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.section-lead {
  margin-top: 16px;
  max-width: 620px;
  font-size: 1.02rem;
  color: var(--muted);
}

.section-head { margin-bottom: 56px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn-lg { min-height: 54px; padding-inline: 30px; font-size: 0.98rem; }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-600); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.link-arrow svg { width: 18px; height: 18px; color: var(--red); transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--red); border-color: var(--red); }
.link-arrow:hover svg { transform: translateX(-5px); }
.link-arrow-light { color: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: var(--white);
  transition: background-color 0.35s, box-shadow 0.35s, color 0.35s;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .header-inner { height: 70px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { width: 50px; height: 50px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; }
.brand-text small {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: #ff4d5e;
}
.is-scrolled .brand-text small { color: var(--red); }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
}
.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.is-current { opacity: 1; }
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.is-current::after { transform: scaleX(1); }

.has-sub > a { padding-inline-end: 26px !important; }
.has-sub > a::before {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-inline-start: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(-45deg);
  opacity: 0.7;
}
.sub-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 270px;
  padding: 8px;
  background: var(--white);
  color: var(--ink);
  border-top: 2px solid var(--red);
  box-shadow: 0 20px 50px -12px rgba(22, 35, 46, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  line-height: 1.6;
  transition: background-color 0.2s;
}
.sub-menu a span { font-weight: 700; font-size: 0.93rem; }
.sub-menu a small { color: var(--muted); font-size: 0.8rem; }
.sub-menu a:hover { background: var(--paper); }
.sub-menu a:hover span { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.9;
}
.header-phone svg { width: 17px; height: 17px; color: var(--red); }
.header-phone:hover { opacity: 1; }

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid currentColor;
  border-color: rgba(127, 127, 127, 0.35);
  border-radius: var(--radius);
}
.nav-toggle span {
  position: absolute;
  inset-inline: 12px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left, rgba(15, 24, 32, 0.94) 0%, rgba(15, 24, 32, 0.78) 45%, rgba(15, 24, 32, 0.35) 100%),
    linear-gradient(to top, rgba(15, 24, 32, 0.9) 0%, rgba(15, 24, 32, 0) 40%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to left, #000 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to left, #000 20%, transparent 80%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: calc(var(--header-h) + clamp(48px, 10vh, 110px));
  padding-bottom: 48px;
  gap: 56px;
}
.hero-content { max-width: 720px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: normal;
  color: var(--white);
  background: linear-gradient(var(--red), var(--red)) no-repeat;
  background-size: 100% 0.14em;
  background-position: 0 88%;
  padding-inline: 2px;
}
.hero-lead {
  margin-top: 24px;
  max-width: 580px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 2;
  color: rgba(255, 255, 255, 0.78);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.line-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px 8px 24px;
  transition: color 0.3s;
}
.line-card + .line-card { padding-inline-start: 28px; border-inline-start: 1px solid rgba(255, 255, 255, 0.16); }
.line-card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.line-card:hover::before { transform: scaleX(1); }
.line-card-num { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: #ff4d5e; }
.line-card-body { display: flex; flex-direction: column; line-height: 1.6; }
.line-card-body strong { font-size: 1.05rem; font-weight: 700; }
.line-card-body small { font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); }
.line-card-arrow {
  width: 22px;
  height: 22px;
  margin-inline-start: auto;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.35s var(--ease), color 0.3s;
}
.line-card:hover .line-card-arrow { color: var(--white); transform: translate(-3px, 3px); }

.scroll-cue {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: 48px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 46px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}
.scroll-cue span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--white);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-8px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* hero intro animation */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: calc(0.15s + var(--d, 0) * 0.12s);
}
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* =========================================================
   ABOUT / WHY US
   ========================================================= */
.about-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 88px);
}
.about-text .section-lead strong { color: var(--ink); font-weight: 700; }

.check-list { display: grid; gap: 12px; margin-top: 28px; }
.check-list li {
  position: relative;
  padding-inline-start: 32px;
  font-weight: 600;
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  padding: 0;
  border: 0;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #e9e8e3 0 14px, #efeeea 14px 28px);
  box-shadow: 0 30px 60px -30px rgba(22, 35, 46, 0.45);
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.video-card:hover video { transform: scale(1.05); }
.video-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 35, 46, 0.55), rgba(22, 35, 46, 0.1));
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 12px 30px -6px rgba(224, 0, 27, 0.6);
  transition: transform 0.4s var(--ease);
}
.play-btn::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(224, 0, 27, 0.35);
  animation: pulse 2.4s var(--ease) infinite;
}
.play-btn svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 4px; }
.video-card:hover .play-btn { transform: scale(1.08); }
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.media-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted-2);
}
.media-caption svg { width: 16px; height: 16px; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  position: relative;
  padding: 36px 32px 38px;
  background: var(--white);
  transition: background-color 0.35s;
}
.feature::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: -1px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.feature:hover::before { transform: scaleX(1); }
.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  color: var(--red);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature:hover .feature-icon { background: var(--red); border-color: var(--red); color: var(--white); }
.feature-num {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: #eceae4;
}
.feature h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 10px; line-height: 1.6; }
.feature p { font-size: 0.9rem; line-height: 1.95; color: var(--muted); }

/* =========================================================
   PRODUCTION LINES
   ========================================================= */
.lines {
  position: relative;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--white);
}
.lines .section-lead { color: rgba(255, 255, 255, 0.72); }

.lines-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.lines-bar .eyebrow { margin: 0; }

.tabs {
  position: relative;
  display: inline-flex;
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: none;
  border: 0;
  border-radius: 3px;
  font-size: 0.93rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s;
}
.tab span { font-family: var(--mono); font-size: 0.75rem; opacity: 0.7; }
.tab:hover { color: var(--white); }
.tab.is-active { color: var(--white); }
.tab-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  background: var(--red);
  border-radius: 3px;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

.line-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.line-panel[hidden] { display: none; }
.line-panel.is-entering .line-info > *,
.line-panel.is-entering .line-media {
  animation: panelIn 0.7s var(--ease) both;
}
.line-panel.is-entering .line-info > :nth-child(2) { animation-delay: 0.05s; }
.line-panel.is-entering .line-info > :nth-child(3) { animation-delay: 0.1s; }
.line-panel.is-entering .line-info > :nth-child(4) { animation-delay: 0.15s; }
.line-panel.is-entering .line-media { animation-delay: 0.12s; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.line-media { align-self: center; }

/* Background-free product render floating on the navy section, kept inside
   its grid column so it lines up with the container edges. */
.line-stage {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0;
  padding-block: 24px 8px;
  isolation: isolate;
}
/* soft spotlight so the dark machine lifts off the background */
.line-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 55% 50% at 55% 50%, rgba(140, 170, 200, 0.2), transparent 70%);
  pointer-events: none;
}
/* floor shadow */
.line-stage::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 12%;
  bottom: 4%;
  height: 22%;
  z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 70%);
  transform: rotate(8deg);
  filter: blur(6px);
  pointer-events: none;
}
.line-stage img {
  width: 100%;
  max-width: 1000px; /* native width — never upscale */
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.35));
  transition: transform 1.2s var(--ease);
}
.line-stage:hover img { transform: translateY(-6px); }
.line-panel.is-entering .line-stage img { animation: machineIn 1.1s var(--ease) both 0.15s; }
@keyframes machineIn {
  from { opacity: 0; transform: translateX(-48px); }
  to { opacity: 1; transform: none; }
}

.stage-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: stretch;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}
.stage-caption::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
}
.stage-caption::after {
  content: "";
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: var(--line-dark);
}

.line-stage.is-empty {
  padding: 0;
  aspect-ratio: 1000 / 451;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 16px, transparent 16px 32px);
}
.line-stage.is-empty::before,
.line-stage.is-empty::after,
.line-stage.is-empty .stage-caption { display: none; }

.parts { display: grid; gap: 14px; margin-top: 32px; }
.parts li {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.04);
  border-inline-start: 2px solid var(--red);
  transition: background-color 0.3s, transform 0.4s var(--ease);
}
.parts li:hover { background: rgba(255, 255, 255, 0.075); transform: translateX(-4px); }
.parts-num {
  flex-shrink: 0;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ff4d5e;
}
.parts h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.6; }
.parts p { margin-top: 4px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); line-height: 1.9; }

.media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.media-placeholder code { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; }
.line-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.services-head { position: sticky; top: 120px; }
.services-head .link-arrow { margin-top: 32px; }

.service-list { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s, padding 0.45s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: -1px;
  bottom: -1px;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform 0.45s var(--ease);
}
.service:hover { background: var(--paper); padding-inline: 28px; }
.service:hover::before { transform: scaleY(1); }
.service-num {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-2);
  padding-top: 4px;
  transition: color 0.3s;
}
.service:hover .service-num { color: var(--red); }
.service h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.6; }
.service p { margin-top: 6px; font-size: 0.93rem; color: var(--muted); }
.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.3s, border-color 0.3s, transform 0.5s var(--ease);
}
.service-icon svg { width: 22px; height: 22px; }
.service:hover .service-icon { color: var(--red); border-color: var(--red); transform: rotate(-12deg); }

/* =========================================================
   PROCESS
   ========================================================= */
.process .section-head { max-width: 680px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 28px 36px;
  background: var(--white);
  border-top: 3px solid #cfccc3;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.step::before {
  content: "";
  position: absolute;
  top: -3px;
  inset-inline: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.9s var(--ease);
  transition-delay: calc(0.3s + var(--d, 0) * 0.25s);
}
.step.is-visible::before { transform: scaleX(1); }
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(22, 35, 46, 0.35); }
.step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 34px;
}
.step-icon { color: var(--red); }
.step-icon svg { width: 30px; height: 30px; }
.step-num {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #ebe9e3;
}
.step h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.95; }

/* =========================================================
   NEWS
   ========================================================= */
.news { background: var(--white); }
.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.post-link { display: flex; flex-direction: column; height: 100%; }
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 80% 20%, rgba(224, 0, 27, 0.35), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.post:nth-child(2) .post-thumb { background-image:
    radial-gradient(circle at 20% 80%, rgba(224, 0, 27, 0.3), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); }
.post:nth-child(3) .post-thumb { background-image:
    radial-gradient(circle at 50% 110%, rgba(224, 0, 27, 0.35), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); }
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.post-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../logo.png") center / 64px no-repeat;
  opacity: 0.16;
  filter: grayscale(1) brightness(2);
  transition: transform 0.9s var(--ease);
}
.post-thumb:has(img)::after { display: none; }
.post-link:hover .post-thumb img,
.post-link:hover .post-thumb::after { transform: scale(1.06); }
.post-cat {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 1;
  padding: 4px 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 0 0;
}
.post-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
}
.post h3 {
  margin-top: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.7;
  transition: color 0.25s;
}
.post-link:hover h3 { color: var(--red); }
.post p {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.87rem;
  font-weight: 700;
}
.post-more svg { width: 16px; height: 16px; color: var(--red); transition: transform 0.3s var(--ease); }
.post-link:hover .post-more svg { transform: translateX(-5px); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(64px, 8vw, 96px);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 4vw, 48px) clamp(24px, 4vw, 56px);
  background: var(--navy);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--red);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to right, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(to right, #000, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .eyebrow { margin-bottom: 12px; }
.cta-band h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.5; }
.cta-band p { margin-top: 6px; color: rgba(255, 255, 255, 0.65); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.cta-phone { display: flex; flex-direction: column; line-height: 1.5; }
.cta-phone small { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.cta-phone strong { font-family: var(--mono); font-size: 1.3rem; color: var(--white); transition: color 0.25s; }
.cta-phone:hover strong { color: #ff4d5e; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-block: 72px 56px;
}
.brand-light { color: var(--white); }
.footer-brand p { margin-top: 20px; font-size: 0.9rem; max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.socials a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.socials svg { width: 19px; height: 19px; }

.footer-col h3 {
  margin-bottom: 20px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--white);
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 12px; font-size: 0.9rem; line-height: 1.9; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 5px; color: #ff4d5e; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-mono { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em; }

/* =========================================================
   VIDEO MODAL
   ========================================================= */
.video-modal {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: #000;
  overflow: visible;
}
.video-modal::backdrop { background: rgba(10, 16, 22, 0.88); backdrop-filter: blur(4px); }
.video-modal[open] { animation: modalIn 0.45s var(--ease); }
.video-modal video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.modal-close {
  position: absolute;
  top: -52px;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--red);
  border: 0;
  color: var(--white);
}
.modal-close svg { width: 22px; height: 22px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 0.1s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* keep the hover transform working after reveal */
.js .step[data-reveal].is-visible,
.js .feature[data-reveal].is-visible { transition-delay: 0s; }
.js .step[data-reveal].is-visible:hover { transform: translateY(-6px); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1140px) {
  .header-phone { display: none; }
  .main-nav > ul > li > a { padding-inline: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-inner { justify-content: space-between; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: var(--white);
    color: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s, transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { color: var(--ink); background: var(--white); }
  .nav-open { overflow: hidden; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { padding: 16px 0; font-size: 1.05rem; opacity: 1; }
  .main-nav > ul > li > a::after,
  .has-sub > a::before { display: none; }
  .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
  }
  .sub-menu a { padding: 8px 16px; border-inline-start: 2px solid var(--line); }
  .nav-cta-mobile { display: inline-flex; }

  .about-top,
  .line-panel,
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .services-head,
  .line-media { position: static; }
  /* mobile order: heading → machine → parts → buttons */
  .line-panel { gap: 0; }
  .line-info,
  .line-media { display: contents; }
  .line-stage { order: 1; margin-block: 28px 8px; }
  .line-info .section-lead,
  .parts { order: 2; }
  .line-links { order: 3; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-grid .post:nth-child(3) { display: none; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 0.98rem; }

  .hero-inner { padding-top: calc(var(--header-h) + 40px); gap: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-lines { grid-template-columns: minmax(0, 1fr); }
  .line-card { padding: 16px 0 !important; border-inline-start: 0 !important; }
  .line-card + .line-card { border-top: 1px solid rgba(255, 255, 255, 0.16); }

  .features,
  .steps,
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-grid .post:nth-child(3) { display: block; }
  .feature { padding: 28px 22px; }

  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding-inline: 10px; font-size: 0.86rem; }
  .parts li { padding: 18px; }

  .service { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding-inline: 0; }
  .service:hover { padding-inline: 12px; }
  .service-icon { display: none; }

  .news-head { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .modal-close { top: -52px; }
}

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