/* Smart Tech Industries: site styles */
:root {
  --ink: #111214;
  --ink-2: #1a1c1f;
  --steel: #5b6068;
  --line: #e4e5e7;
  --paper: #ffffff;
  --mist: #f4f4f2;
  --red: #e62225;
  --red-dark: #c41a1d;
  --maxw: 1240px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 78px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -.005em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(36px, 4.4vw, 58px); }
h3 { font-size: 26px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; font: 600 15px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* Header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
footer .brand { color: #fff; }
.brand .b-mark { height: 46px; width: auto; }
.brand .b-word { height: 15px; width: auto; }
.menu { display: flex; gap: 34px; font: 500 15px/1 var(--body); color: var(--steel); }
.menu a:hover { color: var(--ink); }
.nav-cta { height: 44px; padding: 0 20px; font-size: 13px; }
.burger { display: none; background: none; border: 0; color: var(--ink); padding: 8px; }

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero .gear { position: absolute; right: -160px; top: -90px; width: 760px; opacity: .06; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 96px 32px 110px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 92px); margin: 26px 0 24px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.72); max-width: 520px; margin: 0 0 38px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.media { position: relative; aspect-ratio: 4/3.2; background: linear-gradient(135deg, #2a2d31, #17181b); overflow: hidden; }
.media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.media .label { position: absolute; left: 20px; bottom: 18px; font: 500 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.media .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(230,34,37,.18); }
.hero .media { clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 86%); }
.hero .media .label { left: auto; right: 20px; }
.hero .tag { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,.45); padding: 8px 12px; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }

/* Stats */
.stats { background: var(--red); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 28px; border-left: 1px solid rgba(255,255,255,.25); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font: 600 52px/1 var(--display); }
.stat span { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

section.block { padding: 120px 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.head h2 { margin-top: 18px; max-width: 640px; }
.head p { max-width: 400px; color: var(--steel); margin: 0; }

/* Production line explorer */
.explorer { display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line); }
.tabs { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.tab { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 22px 26px; border-bottom: 1px solid var(--line); position: relative; transition: background .2s; }
.tab:last-child { border-bottom: 0; }
.tab .n { font: 600 15px/1 var(--display); color: #a3a6ab; letter-spacing: .06em; }
.tab .t { font: 600 21px/1.1 var(--display); text-transform: uppercase; }
.tab .a { opacity: 0; transform: translateX(-6px); transition: .2s; color: var(--red); }
.tab::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .25s; }
.tab:hover, .tab[aria-selected="true"] { background: var(--mist); }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab[aria-selected="true"] .n { color: var(--red); }
.tab[aria-selected="true"] .a, .tab:hover .a { opacity: 1; transform: none; }
.tab:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.stage { display: grid; grid-template-rows: 1fr auto; min-height: 560px; }
.photo { position: relative; background: radial-gradient(ellipse 60% 55% at 50% 52%, #3a2c1f 0%, #22201e 55%, #151617 100%); overflow: hidden; min-height: 400px; }
.photo::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 9%; height: 7%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); pointer-events: none; }
.photo img { position: absolute; inset: 7% 12% 12%; width: 76%; height: 81%; object-fit: contain; z-index: 1; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); transition: opacity .45s, transform .6s cubic-bezier(.2,.8,.2,1); }
.photo img.swap { opacity: 0; transform: translateY(18px) scale(.94) rotate(-3deg); }
.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: rgba(255,255,255,.4); font: 500 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; }
.ph[hidden], .photo img[hidden] { display: none; }
.ph svg { width: 44px; height: 44px; }
.count { position: absolute; right: 22px; top: 18px; color: rgba(255,255,255,.7); font: 500 14px/1 var(--display); letter-spacing: .1em; }
.count b { color: #fff; font-size: 30px; font-weight: 600; }
.badge { position: absolute; left: 22px; top: 20px; z-index: 2; background: var(--red); color: #fff; padding: 9px 14px; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.badge[hidden] { display: none; }
.info { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; padding: 32px 36px; }
.info h3 { font-size: 34px; }
.info p { color: var(--steel); margin: 10px 0 0; max-width: 520px; }
.chips { grid-column: 1; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); padding: 9px 14px 9px 30px; font-size: 14px; font-weight: 500; position: relative; }
.chips li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--red); }
.info .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }

/* Clients */
.clients { background: var(--mist); padding: 110px 0 120px; overflow: hidden; }
.clients-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 60px; }
.clients h2 { margin-top: 18px; }
.clients h2 em { font-style: normal; color: var(--red); }
.clients-stat { display: flex; align-items: center; gap: 18px; max-width: 300px; }
.clients-stat strong { font: 600 84px/.8 var(--display); color: var(--red); }
.clients-stat span { color: var(--steel); font-size: 15px; }
.marquee { display: grid; gap: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; width: max-content; animation: slide 40s linear infinite; }
.track.rev { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .track { animation-play-state: paused; }
.track li { width: 260px; height: 140px; flex: none; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 26px 34px; transition: border-color .25s, transform .25s, box-shadow .25s; }
.track li img { max-width: 100%; max-height: 84px; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.track li:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
.track li:hover img { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .track [aria-hidden] { display: none; } }

/* Stage arrows and dots */
.stage-nav { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 8px; }
.stage-nav button { all: unset; box-sizing: border-box; width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; color: #fff; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s; }
.stage-nav button:hover { background: var(--red); border-color: var(--red); }
.stage-nav button:active { transform: scale(.94); }
.stage-nav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.stage-dots { display: none; position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%); gap: 6px; }
.stage-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); transition: width .3s, background .3s; }
.stage-dots i.on { width: 20px; background: var(--red); }
.photo { touch-action: pan-y; }

/* Engineering */
.eng { background: var(--mist); }
.eng-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.eng .media { aspect-ratio: 1/1.05; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 32px; margin-top: 44px; }
.feat svg { width: 36px; height: 36px; color: var(--red); margin-bottom: 16px; }
.feat h4 { font: 600 20px/1.1 var(--display); text-transform: uppercase; margin: 0 0 8px; letter-spacing: .02em; }
.feat p { margin: 0; color: var(--steel); font-size: 15.5px; }

/* Services */
.services { background: var(--ink); color: #fff; }
.services .head p { color: rgba(255,255,255,.6); }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.svc > div { padding: 44px 36px 8px 0; }
.svc > div + div { padding-left: 36px; border-left: 1px solid rgba(255,255,255,.14); }
.svc .n { font: 600 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px rgba(255,255,255,.35); margin-bottom: 26px; }
.svc h3 { margin-bottom: 14px; }
.svc p { color: rgba(255,255,255,.65); margin: 0; font-size: 16px; }

/* Mission */
.mission { position: relative; padding: 130px 0; overflow: hidden; }
.mission blockquote { margin: 0; font: 600 clamp(34px, 4.4vw, 60px)/1.08 var(--display); text-transform: uppercase; max-width: 980px; }
.mission blockquote em { font-style: normal; color: var(--red); }
.mission p { color: var(--steel); max-width: 560px; font-size: 19px; margin: 28px 0 0; }
.mission .gear { position: absolute; right: -120px; bottom: -160px; width: 620px; opacity: .05; pointer-events: none; }

/* Quote */
.quote { background: var(--ink-2); color: #fff; }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.quote h2 { margin: 18px 0 22px; }
.quote .intro { color: rgba(255,255,255,.65); max-width: 420px; }
.contact-list { margin-top: 40px; display: grid; gap: 18px; }
.contact-list > div { display: flex; gap: 16px; align-items: start; }
.contact-list svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); padding: 40px; }
label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
label.full { grid-column: 1 / -1; }
input, select, textarea { font: 400 16px/1.4 var(--body); color: #fff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15); padding: 14px 16px; outline: none; border-radius: 0; }
select option { color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--red); }
textarea { min-height: 120px; resize: vertical; }
/* Fields fill their column instead of keeping the browser's default width, so the form never spills out of its box */
label, input, select, textarea { min-width: 0; width: 100%; box-sizing: border-box; }
form .btn { grid-column: 1 / -1; justify-content: center; border: 0; }

/* Footer */
footer { background: #0a0b0c; color: rgba(255,255,255,.6); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 32px 56px; }
.foot h5 { font: 600 14px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 20px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a:hover { color: #fff; }
.foot .brand { margin-bottom: 20px; }
.legal { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 32px; display: flex; justify-content: space-between; font-size: 13px; }

@media (max-width: 980px) {
  .nav-cta { display: none; }
  .burger { display: block; }
  .hero-grid, .eng-grid, .quote-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { padding: 64px 20px 72px; }
  .svc { grid-template-columns: 1fr; }
  /* Line picker becomes swipeable pills above a full-bleed stage */
  .explorer { grid-template-columns: 1fr; border: 0; }
  .tabs { flex-direction: row; gap: 8px; overflow-x: auto; border-right: 0; margin: 0 -32px; padding: 2px 32px 18px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab, .tab:last-child { grid-template-columns: auto auto; gap: 8px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; scroll-snap-align: start; flex: none; }
  .tab .t { font-size: 16px; }
  .tab .n { font-size: 13px; }
  .tab .a, .tab::before { display: none; }
  .tab:hover { background: #fff; }
  .tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .stage { min-height: 0; margin: 0 -32px; }
  .photo { aspect-ratio: 1 / .82; min-height: 0; }
  .info { grid-template-columns: 1fr; gap: 16px; padding: 26px 32px 0; }
  .info p { margin-top: 8px; }
  .info .btn { grid-column: 1; grid-row: auto; justify-self: stretch; justify-content: center; }
  .stage-dots { display: flex; }
  .clients-head { flex-direction: column; align-items: start; }
  .svc > div, .svc > div + div { padding: 36px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 26px 0; border-left: 0; }
  .head { flex-direction: column; align-items: start; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap, .foot, .legal { padding-left: 16px; padding-right: 16px; }
  .hero-grid { padding: 48px 16px 60px; }
  section.block { padding: 80px 0; }
  .feats, form { grid-template-columns: minmax(0, 1fr); }
  form { padding: 24px; }
  .stat strong { font-size: 42px; }
  .tabs { margin: 0 -16px; padding: 2px 16px 16px; }
  .stage { margin: 0 -16px; }
  .info { padding: 24px 16px 0; }
  .info h3 { font-size: 30px; }
  .photo .badge, .badge { left: 14px; top: 14px; padding: 7px 10px; font-size: 10.5px; letter-spacing: .1em; }
  .count { right: 16px; top: 12px; }
  .count b { font-size: 24px; }
  .track li { width: 200px; height: 110px; padding: 20px 26px; }
  .clients { padding: 80px 0; }
  .brand .b-mark { height: 38px; }
  .brand .b-word { height: 12px; }
  .foot { grid-template-columns: 1fr; }
  .legal { flex-direction: column; gap: 6px; }
}

/* ---------- Shared additions for multi-page site ---------- */
.nav { position: relative; }
.menu a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); padding-bottom: 6px; margin-bottom: -8px; }
.menu .menu-cta { display: none; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.link-more { display: inline-flex; gap: 8px; margin-top: 30px; font: 600 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.link-more:hover { color: var(--red); }
.services .link-more { color: #fff; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: rgba(255,255,255,.5); }
.photo .badge { left: 18px; top: 16px; }

/* Page hero */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 80px 0 92px; }
.page-hero .gear, .line-hero .gear, .highlight .gear { position: absolute; right: -110px; top: -70px; width: 620px; opacity: .07; pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 30px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: #fff; }
.page-hero h1 { position: relative; font-size: clamp(44px, 5.6vw, 82px); margin: 22px 0; max-width: 920px; }
.page-hero h1 em, .line-hero h1 em { font-style: normal; color: var(--red); }
.page-hero .lead { position: relative; font-size: 19px; color: rgba(255,255,255,.72); max-width: 640px; margin: 0; }

/* Production lines grid */
.lines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.line-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .25s, box-shadow .25s; }
.line-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.4); }
.line-card .photo { min-height: 0; aspect-ratio: 4/3; }
.line-card .photo img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.line-card:hover .photo img { transform: scale(1.06) rotate(-2deg); }
.line-card .body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 26px 28px 28px; }
.line-card .num { font: 600 14px/1 var(--display); letter-spacing: .1em; color: var(--red); }
.line-card h3 { font-size: 28px; }
.line-card p { margin: 0; color: var(--steel); font-size: 15.5px; }
.line-card .more { margin-top: auto; padding-top: 8px; display: inline-flex; gap: 8px; font: 600 14px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.line-card:hover .more { color: var(--red); }
.line-card.feature { grid-column: 1 / -1; flex-direction: row; }
.line-card.feature .photo { flex: 1.3; aspect-ratio: auto; min-height: 440px; }
.line-card.feature .body { flex: 1; justify-content: center; padding: 48px 56px; }
.line-card.feature h3 { font-size: 42px; }

/* Red call-to-action band */
.ask-band { background: var(--red); color: #fff; padding: 64px 0; }
.ask-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.ask-band h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 760px; }
.ask-band p { margin: 12px 0 0; opacity: .85; max-width: 620px; }

/* Line detail */
.line-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: #fff; overflow: hidden; }
.line-hero .photo { min-height: 600px; }
.line-hero .content { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px 56px; }
.line-hero .crumbs { margin: 0; }
.line-hero .idx { font: 600 15px/1 var(--display); letter-spacing: .12em; color: rgba(255,255,255,.5); }
.line-hero .idx b { color: var(--red); }
.line-hero h1 { font-size: clamp(44px, 5vw, 76px); }
.line-hero .badge { position: static; align-self: flex-start; }
.line-hero p { margin: 0; max-width: 560px; color: rgba(255,255,255,.72); font-size: 18px; }
.line-hero .chips li { border-color: rgba(255,255,255,.2); }
.line-hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); counter-reset: step; }
.steps li { position: relative; border-top: 2px solid var(--ink); padding: 30px 22px 0 0; }
.steps li::after { content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--red); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: 18px; font: 600 15px/1 var(--display); letter-spacing: .1em; color: var(--red); }
.steps h4 { margin: 0 0 8px; font: 600 22px/1.1 var(--display); text-transform: uppercase; }
.steps p { margin: 0; color: var(--steel); font-size: 15px; }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.steps-note { margin: 40px 0 0; color: var(--steel); font-size: 14px; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.spec-grid h2 { margin: 18px 0 22px; }
.spec-grid > div > p { color: var(--steel); margin: 0 0 30px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table th, .spec-table td { text-align: left; padding: 17px 0; border-bottom: 1px solid var(--line); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.spec-table th { width: 45%; font-weight: 500; color: var(--steel); }
.spec-table td { font-weight: 600; }
.others { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.other { display: block; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.other .photo { min-height: 0; aspect-ratio: 1; }
.other .photo img { transition: transform .5s; }
.other:hover { border-color: var(--ink); }
.other:hover .photo img { transform: scale(1.07); }
.other span { display: block; padding: 14px 16px; font: 600 17px/1.1 var(--display); text-transform: uppercase; }

/* Split content blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.rev > :first-child { order: 2; }
.split .media { aspect-ratio: 5/4; }
.split h2 { margin: 18px 0 22px; }
.split p { margin: 0 0 16px; color: var(--steel); font-size: 18px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.svc-num { font: 600 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px #c5c7ca; }

/* Values row */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.values > .feat { padding: 40px 32px 8px 0; }
.values > .feat + .feat { padding-left: 32px; border-left: 1px solid var(--line); }

/* Dark highlight block */
.highlight { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.highlight .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.highlight .photo { min-height: 460px; }
.highlight h2 { margin: 18px 0 22px; }
.highlight p { color: rgba(255,255,255,.7); font-size: 18px; margin: 0 0 30px; }

/* Contact page */
.map { display: block; width: 100%; height: 440px; border: 0; filter: grayscale(1) contrast(1.05); }
.careers { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.careers h2 { margin-top: 18px; }
.careers p { color: var(--steel); font-size: 18px; margin: 0 0 24px; }

@media (max-width: 980px) {
  .menu { display: none; position: absolute; top: 78px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 32px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); }
  header.open .menu { display: flex; }
  .menu a { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; }
  .menu a.active { box-shadow: none; margin: 0; padding-bottom: 16px; color: var(--red); }
  .menu .menu-cta { display: inline-flex; justify-content: center; margin-top: 18px; border-bottom: 0; color: #fff; }
  .lines-grid { grid-template-columns: 1fr 1fr; }
  .line-card.feature { grid-column: 1 / -1; flex-direction: column; }
  .line-card.feature .photo { min-height: 0; aspect-ratio: 4/3; }
  .line-card.feature .body { padding: 28px; }
  .line-card.feature h3 { font-size: 32px; }
  .ask-band .wrap { flex-direction: column; align-items: start; }
  .line-hero { grid-template-columns: 1fr; }
  .line-hero .photo { min-height: 0; aspect-ratio: 4/3; }
  .line-hero .content { padding: 44px 32px 56px; }
  .steps, .steps.five { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .spec-grid, .split, .highlight .wrap, .careers { grid-template-columns: 1fr; gap: 44px; }
  .split.rev > :first-child { order: 0; }
  .split + .split { margin-top: 80px; }
  .others { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr 1fr; }
  .values > .feat, .values > .feat + .feat { padding: 32px 24px 8px 0; border-left: 0; }
  .highlight .photo { min-height: 0; aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  .menu { padding: 6px 20px 20px; }
  .page-hero { padding: 52px 0 60px; }
  .lines-grid, .steps, .steps.five, .values { grid-template-columns: 1fr; }
  .line-hero .content { padding: 36px 16px 48px; }
  .others { grid-template-columns: 1fr 1fr; }
  .map { height: 320px; }
}

/* ---------- Motion ---------- */
/* Loading screen */
#loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform 1s cubic-bezier(.76,0,.24,1), opacity .45s ease; animation: ld-fallback 0s 7s forwards; }
#loader.done { transform: translateY(-100%); }
#loader.quick.done { transform: none; opacity: 0; }
.ld-center { display: grid; justify-items: center; gap: 26px; }
.ld-mark { width: 130px; height: auto; animation: ld-pop 1s cubic-bezier(.2,.8,.2,1) both; }
.ld-word { width: 280px; height: auto; opacity: 0; animation: ld-rise .9s .25s cubic-bezier(.2,.8,.2,1) forwards; }
.ld-bar { width: 280px; height: 3px; background: rgba(255,255,255,.12); overflow: hidden; opacity: 0; animation: ld-rise .9s .4s cubic-bezier(.2,.8,.2,1) forwards; }
.ld-bar i, .ld-top i { display: block; width: 0; height: 100%; background: var(--red); box-shadow: 0 0 14px rgba(230,34,37,.7); }
.ld-pct { position: absolute; right: 32px; bottom: 18px; font: 600 clamp(72px, 12vw, 170px)/.8 var(--display); color: rgba(255,255,255,.07); letter-spacing: -.02em; }
.ld-top { position: absolute; top: 0; left: 0; right: 0; height: 3px; display: none; }
#loader.quick .ld-center, #loader.quick .ld-pct { display: none; }
#loader.quick .ld-top { display: block; }
@keyframes ld-pop { from { opacity: 0; transform: scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes ld-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ld-fallback { to { opacity: 0; visibility: hidden; } }

/* Page transition curtain */
.pt { position: fixed; inset: 0; z-index: 999; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .38s ease; }
.pt i { position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--red); box-shadow: 0 0 14px rgba(230,34,37,.7); transition: width .42s cubic-bezier(.2,.8,.2,1); }
html.leaving .pt { opacity: 1; pointer-events: all; }
html.leaving .pt i { width: 70%; }

/* Header behaviour */
header { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
header.scrolled { box-shadow: 0 10px 30px -22px rgba(0,0,0,.45); }
header.hide { transform: translateY(-100%); }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), transform 1s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* Headline words rising */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 60ms + 80ms); }
.split-in .w > span { transform: none; }

/* Smoother details */
.gear { will-change: transform; }
.hero .media { will-change: transform; }
.btn { transition: background .25s, color .25s, border-color .25s, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-red:hover { box-shadow: 0 12px 24px -12px rgba(230,34,37,.7); }
.media .play { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(230,34,37,.45); } 100% { box-shadow: 0 0 0 26px rgba(230,34,37,0); } }

@media (prefers-reduced-motion: reduce) {
  #loader, .pt { display: none; }
  .media .play { animation: none; }
  html { scroll-behavior: auto; }
}

/* Smooth-scroll library (Lenis) base rules */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Concept preview label and contact fallback */
.concept-tag { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; max-width: calc(100% - 32px); padding: 9px 14px; background: var(--ink); color: #fff; border-left: 3px solid var(--red); box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); font: 600 11.5px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.map-link { background: var(--mist); padding: 36px 0; }
.map-link .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-weight: 500; }
.form-note.is-alert { padding: 10px 14px; background: rgba(230,34,37,.18); border-left: 3px solid var(--red); color: #fff; font-size: 14px; }

/* ---------- Language switch ---------- */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--line); color: var(--ink); font: 600 15px/1 var(--body); transition: border-color .2s, background .2s, color .2s; }
.lang-switch:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.lang-switch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Cairo", sans-serif; font-size: 16px; }
.lang-switch[lang="en"] { font-family: "Barlow", system-ui, sans-serif; }
@media (max-width: 600px) { .lang-switch { height: 38px; padding: 0 12px; font-size: 14px; } }

/* ---------- Arabic typography ---------- */
html[lang="ar"] { --display: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; --body: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] body { line-height: 1.85; }
/* Letter-spacing breaks the joins between Arabic letters */
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; line-height: 1.35; }
html[lang="ar"] .hero h1, html[lang="ar"] .page-hero h1, html[lang="ar"] .line-hero h1 { line-height: 1.3; }
html[lang="ar"] .mission blockquote { line-height: 1.45; }
html[lang="ar"] .eyebrow, html[lang="ar"] .crumbs, html[lang="ar"] .btn, html[lang="ar"] .link-more, html[lang="ar"] .more,
html[lang="ar"] .stat span, html[lang="ar"] .badge, html[lang="ar"] label, html[lang="ar"] .foot h5, html[lang="ar"] .idx,
html[lang="ar"] .line-card .num, html[lang="ar"] .concept-tag, html[lang="ar"] .contact-list small, html[lang="ar"] .media .label { font-size: max(1em, 14px); font-weight: 600; }
html[lang="ar"] .btn { height: auto; min-height: 52px; padding-block: 10px; }
html[lang="ar"] .nav-cta { min-height: 44px; }
html[lang="ar"] .tab .t, html[lang="ar"] .other span { line-height: 1.4; }
/* Room for Arabic letters above and below the line in the word-by-word headline animation */
html[lang="ar"] .w { padding-block: .18em; margin-block: -.18em; }

/* ---------- Right-to-left layout ---------- */
html[dir="rtl"] .hero .gear { right: auto; left: -160px; }
html[dir="rtl"] .page-hero .gear, html[dir="rtl"] .line-hero .gear, html[dir="rtl"] .highlight .gear { right: auto; left: -110px; }
html[dir="rtl"] .mission .gear { right: auto; left: -120px; }
html[dir="rtl"] .hero .media { clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%); }
html[dir="rtl"] .media .label { left: auto; right: 20px; }
html[dir="rtl"] .hero .media .label { right: auto; left: 20px; }
html[dir="rtl"] .hero .tag { right: auto; left: 20px; }
html[dir="rtl"] .btn:hover .arr { transform: translateX(-4px); }

html[dir="rtl"] .tabs { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .tab::before { left: auto; right: 0; }
html[dir="rtl"] .tab:not([aria-selected="true"]):not(:hover) .a { transform: translateX(6px); }
html[dir="rtl"] .count { right: auto; left: 22px; }
html[dir="rtl"] .badge, html[dir="rtl"] .photo .badge { left: auto; right: 18px; }
html[dir="rtl"] .line-hero .badge { right: auto; }
html[dir="rtl"] .stage-nav { right: auto; left: 18px; }
html[dir="rtl"] .stage-nav svg { transform: scaleX(-1); }

html[dir="rtl"] .chips li { padding: 9px 30px 9px 14px; }
html[dir="rtl"] .chips li::before { left: auto; right: 14px; }
html[dir="rtl"] .ticks li { padding-left: 0; padding-right: 32px; }
html[dir="rtl"] .ticks li::before { left: auto; right: 2px; border-left: 0; border-right: 2px solid var(--red); transform: rotate(45deg); }
html[dir="rtl"] .steps li { padding: 30px 0 0 22px; }
html[dir="rtl"] .steps li::after { left: auto; right: 0; }

/* Keep the logo strip scrolling the same way in both languages */
html[dir="rtl"] .marquee { direction: ltr; }

/* Phone numbers read left to right inside Arabic text */
html[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }

html[dir="rtl"] .ld-pct { right: auto; left: 32px; }
html[dir="rtl"] .pt i { left: auto; right: 0; }
html[dir="rtl"] .concept-tag { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); border-left: 0; border-right: 3px solid var(--red); }
html[dir="rtl"] .form-note.is-alert { border-left: 0; border-right: 3px solid var(--red); }

@media (min-width: 981px) {
  html[dir="rtl"] .stat { border-left: 0; border-right: 1px solid rgba(255,255,255,.25); }
  html[dir="rtl"] .stat:first-child { border-right: 0; padding-left: 28px; padding-right: 0; }
  html[dir="rtl"] .svc > div { padding: 44px 0 8px 36px; }
  html[dir="rtl"] .svc > div + div { padding-right: 36px; border-left: 0; border-right: 1px solid rgba(255,255,255,.14); }
  html[dir="rtl"] .values > .feat { padding: 40px 0 8px 32px; }
  html[dir="rtl"] .values > .feat + .feat { padding-right: 32px; border-left: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 600px) {
  html[dir="rtl"] .badge, html[dir="rtl"] .photo .badge { left: auto; right: 14px; }
  html[dir="rtl"] .count { right: auto; left: 16px; }
}

/* Narrow phones: let long addresses wrap and keep the header within the screen */
.quote-grid > *, .contact-list > div > div { min-width: 0; }
.contact-list a, .foot a, .careers p { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .brand { gap: 10px; }
  .brand .b-mark { height: 34px; }
  .brand .b-word { height: 10px; }
  .nav-actions { gap: 6px; }
  .lang-switch { padding: 0 10px; }
  .burger { padding: 6px; }
}
