/* =========================================================================
   IPK — شرکت ایده پسند کوشا
   Stylesheet: dark industrial / machine-shop aesthetic, RTL first.
   -------------------------------------------------------------------------
   TABLE OF CONTENTS
   01. Fonts
   02. Design tokens (:root)
   03. Reset & base
   04. Utilities & shared components (wrap, buttons, headings, icons…)
   05. Top bar
   06. Header & navigation
   07. Hero + nameplate
   08. Trust strip
   09. About
   10. Services
   11. Process line (8 stations)
   12. Solutions showcase
   13. Why us
   14. Final CTA band
   15. Contact (form, info, map)
   16. Footer & back-to-top
   17. Scroll reveal + reduced motion
   ========================================================================= */

/* ============================ 01. FONTS ================================= */
/* Primary Persian face — served from the client's own server. */
@font-face {
  font-family: 'IRANSans';
  src: url('https://servernet.cloud/fonts/IRANSans.woff2') format('woff2'); /* Adjust path if needed */
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*
  OPTIONAL — real weights.
  The design uses font-weight 500/700/800. With only the Regular file above,
  browsers synthesise bold, which is acceptable. If you upload the real
  weight files, uncomment these blocks for sharper typography.
  IMPORTANT: only uncomment for files that actually exist (a 404 makes the
  browser fall back to the system sans for that weight).

@font-face {
  font-family: 'IRANSans';
  src: url('https://servernet.cloud/fonts/IRANSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('https://servernet.cloud/fonts/IRANSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('https://servernet.cloud/fonts/IRANSans-Black.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
*/

/* ========================= 02. DESIGN TOKENS ============================ */
:root {
  /* --- Surfaces: deep charcoal -> metallic gray ------------------------- */
  --ink:          #0B0D0F;   /* page background */
  --steel-950:    #101317;   /* alternating section background */
  --steel-900:    #15191E;   /* panels */
  --steel-850:    #1B2027;   /* cards */
  --steel-800:    #222831;   /* raised elements */
  --line:         #2C333C;   /* hairlines / borders */
  --line-soft:    rgba(255, 255, 255, .07);

  /* --- Text ------------------------------------------------------------ */
  --white:        #EEF1F3;
  --gray:         #9BA4AD;   /* body text on dark: passes AA */
  --gray-dim:     #737C85;   /* captions only */

  /* --- Accents: electric orange + safety yellow ------------------------ */
  --orange:       #FF6A1F;
  --orange-600:   #E2551A;
  --orange-soft:  rgba(255, 106, 31, .12);
  --yellow:       #FFC61A;
  --glow:         rgba(255, 106, 31, .35);

  /* --- Type ------------------------------------------------------------ */
  --font: 'IRANSans', 'Segoe UI', Tahoma, Arial, sans-serif;
  /* Utility face for Latin technical data (codes, phone, specs).
     System monospace: zero extra network cost, machined character. */
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;

  /* --- Rhythm ---------------------------------------------------------- */
  --wrap:         1240px;
  --gutter:       clamp(16px, 4vw, 32px);
  --sec-pad:      clamp(56px, 8vw, 116px);

  /* --- Shape (machined, low radius) ------------------------------------ */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 8px;
  --chamfer: 14px;           /* corner cut used on cards */

  /* --- Motion ---------------------------------------------------------- */
  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t-mid:  260ms cubic-bezier(.16, .84, .44, 1);

  --header-h: 72px;
}

/* ========================= 03. RESET & BASE ============================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchors land below the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'IRANSans', sans-serif; /* required base rule */
  font-family: var(--font);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.85;
  color: var(--gray);
  background: var(--ink);
  overflow-x: hidden; /* guarantee: no horizontal scroll */
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--white); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--orange); }

ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, iframe { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Visible keyboard focus everywhere (never removed) */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* Text selection matches the brand */
::selection { background: var(--orange); color: #0B0D0F; }

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--orange);
  color: #0B0D0F;
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 12px; top: 12px; }

/* Icon sprite host */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ================ 04. UTILITIES & SHARED COMPONENTS ===================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* --- Icons -------------------------------------------------------------- */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico--lg { width: 30px; height: 30px; stroke-width: 1.4; }

/* --- Eyebrow (section kicker) ------------------------------------------ */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--orange);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.eyebrow__bar {
  width: 34px;
  height: 2px;
  background: linear-gradient(to left, var(--orange), transparent);
}
.eyebrow--center { justify-content: center; }

/* --- Headings scale ---------------------------------------------------- */
.h2 { font-size: clamp(1.55rem, 4vw, 2.5rem); font-weight: 800; }
.h3 { font-size: clamp(1.1rem, 2.2vw, 1.28rem); }
.h4 { font-size: 1.05rem; margin-bottom: .4em; }

.lead { color: var(--white); font-size: 1.05em; }

.link-strong { color: var(--orange); font-weight: 700; }
.link-strong:hover { color: var(--yellow); }

/* --- Section headers --------------------------------------------------- */
.sec-head { max-width: 720px; margin-bottom: clamp(30px, 5vw, 52px); }
.sec-head__lead { color: var(--gray); margin-bottom: 0; }
.sec-head--center { margin-inline: auto; text-align: center; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;              /* touch target */
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}
.btn .ico { width: 18px; height: 18px; stroke-width: 2; }

.btn--primary {
  background: var(--orange);
  color: #0B0D0F;
  box-shadow: 0 6px 20px -8px var(--glow);
}
.btn--primary:hover {
  background: var(--yellow);
  color: #0B0D0F;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(255, 198, 26, .45);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-soft);
}

.btn--sm { min-height: 40px; padding: 9px 16px; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: 15px 30px; font-size: 1rem; }

/* --- Hazard stripe: safety-tape divider (used sparingly) --------------- */
.hazard {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 8px,
    #0B0D0F 8px 16px
  );
  opacity: .85;
}

/* --- Chip -------------------------------------------------------------- */
.chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--steel-800);
  color: var(--gray);
  font-size: .74rem;
  font-weight: 700;
}
.chip--hot { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

/* --- Tick list --------------------------------------------------------- */
.ticks { display: grid; gap: 10px; margin: 0 0 26px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--white); }
.ticks .ico { margin-top: 5px; color: var(--orange); stroke-width: 2.4; }

/* --- Media frame / image placeholder ----------------------------------- */
.frame { margin: 0; }
.frame__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
/* Replace .frame__media--placeholder markup with a real <img> */
.frame__media--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 106, 31, .07), transparent 55%),
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 34px),
    var(--steel-900);
}
.frame__label {
  padding: 7px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--r-xs);
  color: var(--gray-dim);
  font-size: .72rem;
}
.frame__cap {
  margin-top: 12px;
  color: var(--gray-dim);
  font-size: .84rem;
}

/* --- Shared card shell (chamfered corner = machined edge) --------------- */
.card, .scase, .plate, .vision {
  background: var(--steel-850);
  border: 1px solid var(--line);
}

/* ============================ 05. TOP BAR =============================== */
.topbar {
  position: relative;
  background: #08090B;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  min-height: 42px;
  padding-block: 7px;
}
.topbar__tag {
  margin: 0;
  color: var(--gray-dim);
  /* Hidden on the smallest screens to keep the bar to one line */
  display: none;
}
.topbar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  color: var(--gray);
}
.topbar__meta li { display: flex; align-items: center; gap: 7px; }
.topbar__meta .ico { width: 15px; height: 15px; color: var(--orange); }
.topbar__meta li:nth-child(2) { display: none; }   /* work hours: desktop only */
.topbar__phone {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .05em;
}
.topbar__phone:hover { color: var(--orange); }

/* ======================= 06. HEADER & NAVIGATION ======================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 15, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-mid), background var(--t-mid);
}
/* .is-stuck is toggled by JS after the first scroll */
.header.is-stuck {
  background: rgba(11, 13, 15, .96);
  box-shadow: 0 10px 30px -18px #000;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* --- Logo -------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: #0B0D0F;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: background var(--t-fast);
}
.logo:hover .logo__mark { background: var(--yellow); }
.logo__text { display: flex; flex-direction: column; line-height: 1.3; }
.logo__text strong { color: var(--white); font-size: 1rem; }
.logo__text em {
  color: var(--gray-dim);
  font-size: .72rem;
  font-style: normal;
  letter-spacing: .01em;
}

/* --- Nav (mobile drawer by default) ----------------------------------- */
.nav {
  /* Anchored to the sticky header (its own positioning context), so the
     drawer always opens directly beneath it — including at scroll 0 where
     the top bar is still visible. */
  position: absolute;
  top: 100%;
  inset-inline: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  padding: 18px var(--gutter) 26px;
  background: #0B0D0F;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -26px #000;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid);
  max-height: 74vh;
  max-height: 74dvh;
  overflow-y: auto;
}
.nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
.nav__list { display: grid; gap: 2px; }
.nav__link {
  display: block;
  padding: 13px 12px;
  border-inline-start: 2px solid transparent;
  border-radius: var(--r-xs);
  color: var(--gray);
  font-weight: 700;
  font-size: .98rem;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--white);
  background: var(--steel-900);
  border-inline-start-color: var(--orange);
}
.nav__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--orange);
  font-family: var(--mono);
  font-weight: 700;
}

/* --- Header actions --------------------------------------------------- */
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__actions .btn { display: none; }   /* desktop only */

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--steel-850);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--white);
}
.burger:hover { border-color: var(--orange); color: var(--orange); }
.burger .ico { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ========================= 07. HERO + NAMEPLATE ========================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 9vw, 104px);
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(255, 106, 31, .13), transparent 65%),
    linear-gradient(180deg, var(--ink), var(--steel-950));
}
/* Blueprint grid, faded out toward the bottom */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
/* Laser-cut sweep: the one ambient motion on the page */
.hero__sweep {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -20%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 31, .10), transparent);
  animation: sweep 9s linear infinite;
  pointer-events: none;
}
@keyframes sweep {
  0%   { transform: translateX(0); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(560%); opacity: 0; }
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(34px, 5vw, 56px);
  align-items: center;
}

.hero__title {
  margin-bottom: 20px;
  font-size: clamp(2rem, 7.4vw, 4.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
}
.hero__title-accent {
  color: var(--orange);
  /* thin underline rule, like a dimension line on a drawing */
  box-shadow: inset 0 -.14em 0 rgba(255, 106, 31, .28);
}
.hero__title-sub {
  display: block;
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(.98rem, 2.4vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0;
  opacity: .92;
}
.hero__lead { max-width: 58ch; margin-bottom: 30px; font-size: 1.03em; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 auto; min-width: 200px; }

.hero__note {
  margin-top: 22px;
  color: var(--gray-dim);
  font-size: .88rem;
}

/* --- Nameplate (spec plate) ------------------------------------------- */
.plate {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-md);
  background:
    linear-gradient(160deg, var(--steel-800), var(--steel-900) 60%);
  box-shadow: 0 30px 60px -34px #000, inset 0 1px 0 rgba(255, 255, 255, .05);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
}
.plate__rivet {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A535D, #14181D);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}
.plate__rivet--tr { top: 12px; right: 12px; }
.plate__rivet--tl { top: 12px; left: 12px; }
.plate__rivet--br { bottom: 12px; right: 12px; }
.plate__rivet--bl { bottom: 12px; left: 12px; }

.plate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.plate__brand {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .1em;
}
.plate__id {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--orange);
  letter-spacing: .12em;
}

.plate__rows { margin: 0; }
.plate__row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  padding-block: 11px;
  border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.plate__row dt { color: var(--gray-dim); }
.plate__row dd { margin: 0; color: var(--white); }

.plate__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  text-align: center;
}
.plate__stats li {
  padding: 12px 6px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
}
.plate__stats b {
  display: block;
  color: var(--orange);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.plate__stats span { font-size: .72rem; color: var(--gray-dim); }

/* =========================== 08. TRUST STRIP ============================ */
.trust {
  position: relative;
  padding-block: clamp(28px, 4vw, 40px);
  background: var(--steel-900);
  border-block: 1px solid var(--line);
}
.trust__inner {
  display: grid;
  gap: 20px 30px;
}
.trust__item { display: flex; align-items: flex-start; gap: 13px; }
.trust__item .ico {
  width: 26px;
  height: 26px;
  margin-top: 3px;
  color: var(--orange);
}
.trust__item b { display: block; color: var(--white); font-size: .98rem; }
.trust__item span { font-size: .86rem; line-height: 1.7; }

/* ============================= 09. ABOUT ================================ */
.about { background: var(--ink); }
.about__inner { display: grid; gap: clamp(32px, 5vw, 60px); align-items: start; }
.about__aside { display: grid; gap: 20px; }

.vision {
  padding: 22px;
  border-radius: var(--r-md);
  border-inline-start: 3px solid var(--orange);
}
.vision p { margin: 0; font-size: .94rem; }

/* ============================ 10. SERVICES ============================== */
.services { background: var(--steel-950); }
.cards { display: grid; gap: 18px; }

.card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-md);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer)) 0,
    100% var(--chamfer),
    100% 100%,
    var(--chamfer) 100%,
    0 calc(100% - var(--chamfer))
  );
  transition: border-color var(--t-fast), transform var(--t-mid), background var(--t-fast);
}
.card::after {
  /* thin accent that grows on hover, like a machining pass */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right center; /* RTL: starts from the right */
  transition: transform var(--t-mid);
}
.card:hover {
  transform: translateY(-4px);
  border-color: #3A424C;
  background: var(--steel-800);
}
.card:hover::after { transform: scaleX(1); }

.card__idx {
  position: absolute;
  top: 18px;
  inset-inline-end: 20px;
  color: var(--gray-dim);
  font-size: .8rem;
}
.card .ico--lg { margin-bottom: 16px; color: var(--orange); }
.card p { font-size: .93rem; }

.card__list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.card__list li {
  position: relative;
  padding-inline-start: 15px;
  font-size: .86rem;
  color: var(--gray);
}
.card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .78em;
  width: 6px;
  height: 1px;
  background: var(--orange);
}

/* ========================= 11. PROCESS LINE ============================= */
.process {
  background:
    radial-gradient(760px 400px at 50% 0%, rgba(255, 106, 31, .08), transparent 70%),
    var(--ink);
}

/* Vertical rail (mobile / tablet default) */
.line {
  position: relative;
  display: grid;
  gap: 26px;
  padding-inline-start: 4px;
}
.line__rail {
  position: absolute;
  inset-inline-start: 22px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.line__fill {
  display: block;
  width: 100%;
  height: var(--p, 0%);
  background: linear-gradient(180deg, var(--yellow), var(--orange));
  box-shadow: 0 0 14px var(--glow);
  transition: height 120ms linear;
}
.line__step {
  position: relative;
  padding-inline-start: 62px;
  min-height: 46px;
}
.line__node {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--steel-850);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gray);
  transition: color var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), box-shadow var(--t-fast);
}
.line__node .ico { width: 22px; height: 22px; }
/* .is-reached is toggled by JS as the rail fill passes each station */
.line__step.is-reached .line__node {
  color: #0B0D0F;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}
.line__num {
  display: block;
  margin-bottom: 2px;
  color: var(--orange);
  font-size: .76rem;
}
.line__title { margin: 0 0 5px; font-size: 1.02rem; }
.line__desc { margin: 0; font-size: .87rem; line-height: 1.7; }

/* ======================= 12. SOLUTIONS SHOWCASE ========================= */
.solutions { background: var(--steel-950); }
.showcase { display: grid; gap: 20px; }

.scase {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-mid);
}
.scase:hover { transform: translateY(-4px); border-color: #3A424C; }
.scase__media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.scase__body { padding: clamp(20px, 2.6vw, 26px); }
.scase__body p { font-size: .92rem; }
.scase__specs {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: .76rem;
  color: var(--gray-dim);
}
.scase__specs li { display: flex; align-items: center; gap: 8px; }
.scase__specs li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--yellow);
  transform: rotate(45deg);
  flex: none;
}

/* ============================= 13. WHY US =============================== */
.why { background: var(--ink); }
.why__inner { display: grid; gap: clamp(32px, 5vw, 56px); align-items: start; }
.why__head .btn { margin-top: 22px; }

.why__list { display: grid; gap: 4px; }
.why__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 20px;
  border-top: 1px solid var(--line);
  transition: background var(--t-fast);
}
.why__item:last-child { border-bottom: 1px solid var(--line); }
.why__item:hover { background: var(--steel-900); }
.why__num {
  color: var(--orange);
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 2px;
}
.why__item p { margin: 0; font-size: .92rem; }

/* ========================== 14. FINAL CTA BAND ========================== */
.cta-band {
  position: relative;
  padding-block: clamp(44px, 6vw, 76px);
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(255, 198, 26, .10), transparent 70%),
    linear-gradient(120deg, var(--steel-900), #0E1114);
  border-block: 1px solid var(--line);
}
.cta-band__inner {
  display: grid;
  gap: 26px;
  align-items: center;
}
.cta-band .h2 { margin-bottom: .5em; }
.cta-band p { max-width: 62ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__actions .btn { flex: 1 1 auto; min-width: 210px; }

/* ============================= 15. CONTACT ============================== */
.contact { background: var(--steel-950); }
.contact__grid { display: grid; gap: clamp(26px, 4vw, 44px); align-items: start; }

/* --- Form -------------------------------------------------------------- */
.form {
  display: grid;
  gap: 16px 18px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--steel-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.field { display: grid; gap: 7px; }
.field label { color: var(--white); font-size: .89rem; font-weight: 700; }
.req { color: var(--orange); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  font-size: .93rem;
  color: var(--white);
  background: #0D1013;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 120px; line-height: 1.8; resize: vertical; }
.field select {
  /* Native arrow, dark-friendly */
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%),
                    linear-gradient(135deg, var(--gray) 50%, transparent 50%);
  background-position: calc(0% + 18px) 21px, calc(0% + 24px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field ::placeholder { color: #5C656E; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
  outline: none;
}
/* Validation states set by JS on blur */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #F0563D; }
.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea { border-color: #3E8E5A; }

.field__msg {
  margin: 0;
  min-height: 1em;
  font-size: .78rem;
  color: #F0563D;
}
.field.is-valid .field__msg { color: #63B183; }

.form__foot {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}
.form__hint { margin: 0; font-size: .8rem; color: var(--gray-dim); }

.form__alert {
  margin: 0;
  min-height: 1em;
  font-size: .88rem;
  font-weight: 700;
}
.form__alert.is-ok { color: #63B183; }
.form__alert.is-err { color: #F0563D; }

/* --- Info + map -------------------------------------------------------- */
.contact__aside { display: grid; gap: 20px; }

.info { display: grid; gap: 2px; }
.info li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  background: var(--steel-900);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.info .ico { margin-top: 4px; color: var(--orange); }
.info b { display: block; color: var(--gray-dim); font-size: .78rem; font-weight: 500; }
.info div > span,
.info div > a { color: var(--white); font-size: .95rem; }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  overflow: hidden;
  background: var(--steel-900);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.map__grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 30px);
}
.map__pin {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--orange);
  color: #0B0D0F;
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--orange-soft);
}
.map__tag {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, .6);
  border: 1px dashed var(--line);
  border-radius: var(--r-xs);
  color: var(--gray-dim);
  font-size: .7rem;
}

/* ====================== 16. FOOTER & BACK-TO-TOP ======================== */
.footer { background: #08090B; border-top: 1px solid var(--line); }
.footer__top {
  display: grid;
  gap: 32px;
  padding-block: clamp(38px, 5vw, 64px);
}
.footer__brand p {
  margin-top: 16px;
  max-width: 42ch;
  font-size: .89rem;
}
.footer__title {
  margin-bottom: 14px;
  color: var(--white);
  font-size: .95rem;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a, .footer__contact li { color: var(--gray); font-size: .89rem; }
.footer__col a:hover { color: var(--orange); }
.footer__contact { display: grid; gap: 9px; margin-bottom: 18px; }
.footer__contact a { color: var(--white); font-weight: 700; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--gray-dim);
  font-size: .82rem;
}
.footer__bottom p { margin: 0; }
.footer__meta { font-size: .72rem; }

.totop {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--orange);
  color: #0B0D0F;
  border: none;
  border-radius: var(--r-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--t-mid), transform var(--t-mid), visibility var(--t-mid), background var(--t-fast);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--yellow); }

/* ================== 17. SCROLL REVEAL + REDUCED MOTION ================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease-out, transform 520ms ease-out;
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__sweep { display: none; }
}

/* =========================================================================
   RESPONSIVE — mobile-first breakpoints
   ========================================================================= */

/* --- ≥ 560px: two-up grids ------------------------------------------- */
@media (min-width: 560px) {
  .trust__inner { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
  .form__foot {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
  }
  .form__alert { grid-column: 1 / -1; }
  .topbar__tag { display: block; }
}

/* --- ≥ 760px: showcase + footer columns ------------------------------ */
@media (min-width: 760px) {
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .topbar__meta li:nth-child(2) { display: flex; }
  .cta-band__inner { grid-template-columns: 1.3fr auto; }
  .cta-band__actions .btn { min-width: 0; }
}

/* --- ≥ 1000px: desktop layout ---------------------------------------- */
@media (min-width: 1000px) {
  :root { --header-h: 80px; }

  /* Header: full nav, no drawer */
  .burger { display: none; }
  .header__actions .btn { display: inline-flex; }
  .nav {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    max-height: none;
    overflow: visible;
  }
  .nav__list { display: flex; gap: 4px; }
  .nav__link {
    padding: 10px 15px;
    border-inline-start: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: .93rem;
    background: none;
  }
  .nav__link:hover,
  .nav__link.is-active {
    background: none;
    border-inline-start-color: transparent;
    border-bottom-color: var(--orange);
    color: var(--white);
  }
  .nav__call { display: none; }

  /* Hero: copy + nameplate */
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
  .hero__cta .btn { flex: 0 0 auto; }

  /* Content grids */
  .trust__inner { grid-template-columns: repeat(4, 1fr); }
  .about__inner { grid-template-columns: 1.15fr .85fr; }
  .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .showcase { grid-template-columns: repeat(3, 1fr); }
  .why__inner { grid-template-columns: .8fr 1.2fr; gap: 60px; }
  .why__head { position: sticky; top: calc(var(--header-h) + 28px); }
  .contact__grid { grid-template-columns: 1.25fr .75fr; }
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; }
  .footer__brand { grid-column: auto; }

  /* The vertical rail stays until there is real room for 8 columns */
  .line { max-width: 800px; margin-inline: auto; }
  .line__step { padding-inline-start: 72px; }
}

/* --- ≥ 1180px: breathing room -------------------------------------- */
@media (min-width: 1180px) {
  .hero__inner { gap: 70px; }
}

/* --- ≥ 1280px: process line becomes a horizontal production rail ---- */
@media (min-width: 1280px) {
  .line {
    grid-template-columns: repeat(8, 1fr);
    gap: 0;
    max-width: none;
    padding-inline-start: 0;
    text-align: center;
  }
  .line__rail {
    inset-inline: 6.25%;          /* aligns with the first/last node centres */
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .line__fill {
    width: var(--p, 0%);
    height: 100%;
    background: linear-gradient(to left, var(--yellow), var(--orange));
    transition: width 120ms linear;
  }
  .line__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 0 12px;
  }
  .line__node {
    position: static;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
  }
  .line__title { font-size: .95rem; }
  .line__desc { font-size: .79rem; line-height: 1.7; }
}

/* --- Print: readable, ink-friendly --------------------------------- */
@media print {
  .header, .topbar, .totop, .hero__sweep, .hero__grid, .map { display: none !important; }
  body { background: #fff; color: #000; }
  .h2, h1, h2, h3, h4 { color: #000; }
}
