/* ============================================================
   KEYUDA CASTING — Design System v2 "Foundry Engineering"
   Layered on top of style.css (loaded after it).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0c1014;
  --graphite: #14191f;
  --graphite-2: #1a2129;
  --paper: #f7f5f1;
  --paper-2: #efeadf;
  --orange: #e4571e;
  --orange-2: #ff7a3d;
  --steel: #8b97a3;
  --line-l: #ddd7cc;
  --line-d: rgba(255, 255, 255, .09);
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --radius: 2px;
}

/* ---------- Base overrides ---------- */
body { background: var(--paper); }
::selection { background: var(--orange); color: #fff; }

.mono { font-family: var(--mono); }

h1, h2, h3, h4 { letter-spacing: 0; }
h2 { font-size: clamp(32px, 4vw, 52px); }

/* ---------- Buttons ---------- */
.btn {
  background: var(--orange); color: #fff; border: none;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .12em; font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 2px; position: relative;
  overflow: hidden; transition: transform .25s, background .25s;
}
.btn:hover { background: var(--orange-2); transform: translateY(-2px); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--graphite-2); }
.btn.ghost {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange-2); color: var(--orange-2); }
.btn .ar { transition: transform .25s; display: inline-block; margin-left: 8px; }
.btn:hover .ar { transform: translateX(4px); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink); color: #9aa5ae; font-family: var(--mono);
  font-size: 12px; letter-spacing: .04em; border-bottom: 1px solid var(--line-d);
}
.topbar a { color: #cfd6dd; transition: color .2s; }
.topbar a:hover { color: var(--orange-2); }
.topbar .tb-left { color: #6d7883; }

/* ---------- Nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(12, 16, 20, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d);
}
.site-head .nav { padding: 14px 0; }
.site-head .b1 { font-size: 24px; letter-spacing: .06em; }
.site-head .b1 span { color: var(--orange); }
.site-head .b2 { font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: #78838e; }
.nav ul { gap: 34px; }
.nav ul a {
  font-family: var(--font-head); font-size: 17px; letter-spacing: .1em;
  text-transform: uppercase; color: #cfd6dd; position: relative; padding: 6px 0;
}
.nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--orange); transition: width .28s;
}
.nav ul a:hover::after, .nav ul a.active::after { width: 100%; }
.nav ul a.active { color: #fff; }
.nav .btn { padding: 11px 22px; font-size: 14px; }
.nav-toggle { color: #fff; }

/* ---------- Hero v2 ---------- */
.hero2 {
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(228, 87, 30, .16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--graphite) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero2::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 700px at 50% 0%, #000 30%, transparent 85%);
}
.hero2 .container {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 40px; align-items: center; padding: 88px 0 110px;
}
.hero2 .eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em;
  color: var(--orange-2); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero2 .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--orange); }
.hero2 h1 {
  font-size: clamp(46px, 6.4vw, 88px); line-height: .98;
  margin: 22px 0 20px; text-transform: uppercase; font-weight: 700;
}
.hero2 h1 em { font-style: normal; color: var(--orange-2); }
.hero2 .lead { color: #b9c2ca; font-size: 17px; max-width: 560px; }
.hero2 .cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero2 .meta-row {
  display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: #78838e;
}
.hero2 .meta-row span { display: inline-flex; gap: 8px; align-items: center; }
.hero2 .meta-row span::before { content: ""; width: 6px; height: 6px; background: var(--orange); }

/* hero product figure */
.hero2 .fig { position: relative; }
.hero2 .fig .halo {
  position: absolute; inset: -8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(228,87,30,.22), transparent 70%);
}
.spec-card {
  position: relative; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 44px 80px rgba(0,0,0,.55);
}
.spec-card::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px dashed rgba(12,16,20,.14);
}
.spec-card .sc-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: #5c666f; border-bottom: 1px solid #e7e2d8; padding: 12px 16px;
}
.spec-card .sc-head span:first-child { color: var(--orange); font-weight: 500; }
.spec-card img { display: block; width: 100%; }
.hero2 .fig .callout {
  position: absolute; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .1em; color: #e8edf1; background: rgba(12,16,20,.82);
  border: 1px solid var(--line-d); border-left: 2px solid var(--orange);
  padding: 8px 12px; backdrop-filter: blur(6px); z-index: 2;
}
.hero2 .fig .c1 { top: 12%; right: -2%; }
.hero2 .fig .c2 { bottom: 14%; left: -3%; }

/* spec ticker */
.ticker {
  background: var(--orange); color: #fff; overflow: hidden;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em;
}
.ticker .track {
  display: flex; gap: 64px; white-space: nowrap; padding: 12px 0;
  width: max-content; animation: tick 30s linear infinite;
}
.ticker span { display: inline-flex; align-items: center; gap: 14px; }
.ticker span::after { content: "◆"; font-size: 8px; opacity: .7; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Standards marquee ---------- */
.std-band { background: var(--paper-2); border-bottom: 1px solid var(--line-l); overflow: hidden; }
.std-band .track {
  display: flex; gap: 70px; width: max-content; padding: 20px 0;
  animation: tick 36s linear infinite;
  font-family: var(--font-head); font-size: 21px; letter-spacing: .16em;
  color: #a39a8c; text-transform: uppercase;
}
.std-band b { color: var(--ink); font-weight: 600; }

/* ---------- Section header v2 ---------- */
.sec2 { padding: 96px 0; }
.sec2 .sec-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: end; margin-bottom: 52px; }
.sec2 .idx {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em;
  color: var(--orange); writing-mode: vertical-rl; transform: rotate(180deg);
  border-left: 1px solid var(--line-l); padding-left: 10px; height: 74px;
}
.sec2 h2 { margin: 6px 0 0; }
.sec2 .sec-sub { color: #6d7680; max-width: 520px; font-size: 15.5px; }
.sec2 .more {
  font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink); white-space: nowrap; font-size: 15px;
}
.sec2 .more:hover { color: var(--orange); }
.sec2 .more::after { content: " →"; color: var(--orange); }

/* ---------- Bento product showcase ---------- */
.bento { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: repeat(2, 270px); gap: 14px; }
.tile {
  position: relative; overflow: hidden; border-radius: 3px; background: #fff;
  display: block;
}
.tile.big { grid-row: 1 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.05); }
.tile .shade {
  position: absolute; inset: 0;
  background: linear-gradient(185deg, transparent 40%, rgba(10,13,17,.88) 92%);
}
.tile .tag {
  position: absolute; top: 18px; left: 18px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em; color: #fff;
  border: 1px solid rgba(255,255,255,.35); padding: 6px 12px; background: rgba(12,16,20,.35);
  backdrop-filter: blur(4px);
}
.tile .info { position: absolute; left: 22px; right: 22px; bottom: 18px; color: #fff; }
.tile .info h3 { font-size: clamp(22px, 2.4vw, 34px); margin-bottom: 4px; }
.tile .info p { font-size: 13.5px; color: #b9c2ca; max-width: 420px; }
.tile .go {
  position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center;
  color: #fff; font-size: 18px; transition: background .3s, border-color .3s;
}
.tile:hover .go { background: var(--orange); border-color: var(--orange); }

/* ---------- Capability band (dark, image bg) ---------- */
.cap-band {
  position: relative; color: #fff; overflow: hidden;
  background: url("../img/factory/pour-sparks.jpg") 72% center/cover fixed;
}
.cap-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(9,12,16,.95) 30%, rgba(9,12,16,.62) 62%, rgba(9,12,16,.30)); }
.cap-band .container { position: relative; padding: 100px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.cap-band .kicker2 { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--orange-2); text-transform: uppercase; }
.cap-band h2 { font-size: clamp(32px, 4vw, 50px); margin: 14px 0 18px; }
.cap-band .sub { color: #aeb8c0; max-width: 460px; }
.cap-list { display: flex; flex-direction: column; }
.cap-list a {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 6px; border-top: 1px solid var(--line-d); transition: background .25s, padding .25s;
}
.cap-list a:last-child { border-bottom: 1px solid var(--line-d); }
.cap-list a:hover { background: rgba(228,87,30,.1); padding-left: 16px; }
.cap-list .n { font-family: var(--mono); font-size: 12px; color: var(--orange-2); letter-spacing: .12em; }
.cap-list h4 { font-size: 21px; color: #fff; margin: 0; }
.cap-list p { grid-column: 2; font-size: 13px; color: #8f9aa4; margin: 0; }
.cap-list .ar { color: var(--orange-2); font-size: 18px; }

/* ---------- Figures ---------- */
.figures { background: #fff; border-block: 1px solid var(--line-l); }
.figures .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.figures .cell { padding: 46px 30px; border-left: 1px solid var(--line-l); }
.figures .cell:first-child { border-left: none; }
.figures b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--ink);
}
.figures b i { font-style: normal; color: var(--orange); font-size: .55em; }
.figures .cell > span { display: block; margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: #79828b; text-transform: uppercase; }

/* ---------- Process rail ---------- */
.proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.proc::before { content: ""; position: absolute; top: 9px; left: 2%; right: 2%; height: 1px; background: var(--line-l); }
.proc .p {
  position: relative; padding: 34px 20px 8px 0;
}
.proc .p::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 11px; height: 11px;
  background: var(--paper); border: 2px solid var(--orange); border-radius: 50%;
}
.proc .p .n { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--orange); }
.proc .p h4 { font-size: 22px; margin: 8px 0 6px; }
.proc .p p { font-size: 13.5px; color: #6d7680; }

/* ---------- Quality split ---------- */
.qual { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.qual .imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.qual .imgs img { border-radius: 3px; width: 100%; filter: saturate(.92); }
.qual .imgs img:first-child { height: 420px; object-fit: cover; }
.qual .imgs img:last-child { height: 320px; object-fit: cover; }
.qual .kicker2 { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--orange); text-transform: uppercase; }
.qual h2 { margin: 14px 0 16px; }
.qual .ticks li { border-bottom: 1px solid var(--line-l); padding: 12px 0 12px 32px; font-size: 15px; }
.qual .ticks li::before { content: "＋"; color: var(--orange); font-weight: 700; top: 12px; }
.qual .dl { margin-top: 30px; display: flex; gap: 14px; align-items: center; }
.qual .link {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--orange); padding-bottom: 4px;
}
.qual .link:hover { color: var(--orange); }

/* ---------- Yard band (applications) ---------- */
.yard {
  position: relative; color: #fff; overflow: hidden;
  background: url("../img/factory/finished-yard.jpg") center/cover;
}
.yard::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,12,16,.82), rgba(9,12,16,.62) 50%, rgba(9,12,16,.85)); }
.yard .container { position: relative; padding: 92px 0; }
.yard h2 { max-width: 640px; }
.yard .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); margin-top: 46px; }
.yard .apps a {
  background: rgba(12,16,20,.72); padding: 26px 24px; backdrop-filter: blur(3px);
  transition: background .3s;
}
.yard .apps a:hover { background: var(--orange); }
.yard .apps b { display: block; font-family: var(--font-head); font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }
.yard .apps span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #97a1ab; }
.yard .apps a:hover span { color: rgba(255,255,255,.75); }

/* ---------- RFQ band ---------- */
.rfq { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.rfq::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px;
  border: 1px solid var(--line-d); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.015);
}
.rfq .container { position: relative; padding: 84px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.rfq h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 640px; }
.rfq h2 em { font-style: normal; color: var(--orange-2); }
.rfq .note { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: #79828b; margin-top: 14px; }

/* ---------- Footer v2 ---------- */
.site-foot { background: #0a0d11; border-top: 1px solid var(--line-d); }
.site-foot .wordmark {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: .02em;
  color: rgba(255,255,255,.06); padding: 48px 0 8px; user-select: none;
}
.foot-grid { border-top: 1px solid var(--line-d); }
.site-foot h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .22em; color: #6d7883; text-transform: uppercase; }
.site-foot a:hover { color: var(--orange-2); }
.foot-badges span { font-family: var(--mono); border-radius: 2px; }

/* ---------- Reveal animation ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ticker .track, .std-band .track { animation: none; }
  .cap-band { background-attachment: scroll; }
}

/* ---------- Page-level overrides for existing sections ---------- */
.paper { background: var(--paper-2) !important; }
.sec-head .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--orange);
}
.spec-table thead th { background: var(--graphite); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.spec-table th, .spec-table td { border-color: var(--line-l); }
.steps { background: var(--graphite) !important; border-radius: 3px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero2 .container { grid-template-columns: 1fr; padding: 64px 0 84px; }
  .hero2 .fig { max-width: 460px; margin: 0 auto; }
  .cap-band .container { grid-template-columns: 1fr; gap: 34px; }
  .cap-band { background-attachment: scroll; }
  .qual { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 230px 230px; }
  .tile.big { grid-column: 1 / 3; grid-row: 1; }
  .figures .container { grid-template-columns: 1fr 1fr; }
  .figures .cell:nth-child(3) { border-left: none; }
  .figures .cell { border-top: 1px solid var(--line-l); }
  .figures .cell:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 720px) {
  .sec2 { padding: 64px 0; }
  .sec2 .sec-head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .sec2 .idx { writing-mode: horizontal-tb; transform: none; border-left: none; border-bottom: 1px solid var(--line-l); padding: 0 0 8px; height: auto; }
  .bento { grid-template-columns: 1fr; grid-template-rows: repeat(3, 240px); }
  .tile.big { grid-column: 1; }
  .proc { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .proc::before { display: none; }
  .proc .p::before { display: none; }
  .proc .p { padding: 16px 0; border-top: 1px solid var(--line-l); }
  .proc .p .n::before { content: "● "; color: var(--orange); }
  .yard .apps { grid-template-columns: 1fr 1fr; }
  .qual .imgs img:first-child { height: 300px; }
  .qual .imgs img:last-child { height: 300px; }
  .rfq .container { padding: 60px 0; }
}

/* ================= EJ-style additions (v3) ================= */
/* top promo strip */
.ej-promo { background: var(--orange); color: #fff; }
.ej-promo .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.ej-promo .msg { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.ej-promo a { font-size: 13px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ej-promo a:hover { opacity: .85; }

/* full-bleed hero slider */
.ej-hero { position: relative; height: 78vh; min-height: 560px; max-height: 860px; overflow: hidden; background: #0b0e12; }
.ej-hero .slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center; pointer-events: none;
}
.ej-hero .slide.on { opacity: 1; pointer-events: auto; }
.ej-hero .slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(92deg, rgba(8,10,14,.93) 22%, rgba(8,10,14,.68) 52%, rgba(8,10,14,.25) 85%);
}
.ej-hero .container { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 1200px; }
.ej-hero .kick { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; color: var(--orange-2); text-transform: uppercase; margin-bottom: 18px; }
.ej-hero h1 { color: #fff; font-family: var(--disp); font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; max-width: 760px; margin: 0 0 20px; }
.ej-hero p.lead { color: #c6ccd2; font-size: 17px; max-width: 560px; margin: 0 0 30px; }
.ej-hero .dots { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 26px; display: flex; gap: 10px; }
.ej-hero .dots button { width: 34px; height: 4px; border: 0; background: rgba(255,255,255,.28); cursor: pointer; transition: background .3s; }
.ej-hero .dots button.on { background: var(--orange-2); }

/* EJ grouped catalog */
.ej-cat { display: grid; gap: 34px; }
.ej-cat .grp {}
.ej-cat .g-title {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .18em; color: #6c757d; text-transform: uppercase;
}
.ej-cat .g-title b { font-family: var(--disp); font-size: 22px; letter-spacing: 0; color: var(--ink); text-transform: none; }
.ej-cat .g-title .line { flex: 1; height: 1px; background: var(--line-l); }
.ej-cat .g-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ej-cat .g-item {
  display: grid; grid-template-columns: 148px 1fr; gap: 0; background: #fff; border: 1px solid var(--line-l);
  transition: box-shadow .25s, transform .25s, border-color .25s; text-decoration: none; overflow: hidden;
}
.ej-cat .g-item:hover { box-shadow: 0 16px 36px rgba(15,18,22,.12); transform: translateY(-3px); border-color: transparent; }
.ej-cat .g-item .im { background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; border-right: 1px solid var(--line-l); }
.ej-cat .g-item .im img { width: 100%; height: 108px; object-fit: contain; }
.ej-cat .g-item .tx { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.ej-cat .g-item h4 { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.ej-cat .g-item p { margin: 0; font-size: 12.8px; line-height: 1.5; color: #6c757d; }
.ej-cat .g-item .see { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--orange); text-transform: uppercase; }
.ej-cat .g-item:hover .see .ar { transform: translateX(4px); }
.ej-cat .g-item .see .ar { display: inline-block; transition: transform .25s; }

/* mega menu */
.nav li.has-mega { position: static; }
.nav li.has-mega > a::after { content: " ▾"; font-size: 10px; opacity: .55; }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 2px solid var(--orange); box-shadow: 0 30px 60px rgba(10,13,17,.18);
  z-index: 60;
}
.nav li.has-mega:hover .mega, .nav li.has-mega:focus-within .mega { display: block; }
.mega .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; padding: 26px 0 30px; }
.mega h5 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: #98a0a8; text-transform: uppercase; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.mega li a small { display: block; font-size: 12px; color: #8b939b; margin-top: 1px; }
.mega li a:hover { color: var(--orange); }
.mega .m-cta { border-left: 1px solid var(--line-l); padding-left: 40px; }

@media (max-width: 1020px) {
  .ej-cat .g-items { grid-template-columns: 1fr 1fr; }
  .mega .container { grid-template-columns: 1fr 1fr; }
  .mega .m-cta { border-left: none; padding-left: 0; grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .ej-promo .container { flex-direction: column; align-items: flex-start; padding: 10px 0; gap: 4px; }
  .ej-hero { height: auto; min-height: 0; }
  .ej-hero .slide { position: relative; display: none; }
  .ej-hero .slide.on { display: block; }
  .ej-hero .container { padding: 72px 0 64px; }
  .ej-cat .g-items { grid-template-columns: 1fr; }
  .ej-cat .g-item { grid-template-columns: 120px 1fr; }
}
