/* elitesoft — Twinmotion and Unreal Engine pages (inc/epic-page.php). The maker's film fills the first screen; the
 * rest is quiet: one list of features with its picture beside it. The site's tungsten stays for actions. */
.epx .sec { border-top: 1px solid var(--line); }
.epx-h2 { margin: 0 0 14px; max-width: 22ch; text-wrap: balance; }
.epx-intro { margin: 0 0 clamp(26px, 3.6vw, 42px); max-width: 62ch; color: var(--ink-soft); font-size: var(--t-lg); line-height: 1.55; }
.epx-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.epx-fig { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface); }
.epx-fig img, .epx-fig video { display: block; width: 100%; height: 100%; object-fit: cover; }
.epx-play { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-pill); background: rgba(11, 14, 18, .74); box-shadow: 0 0 0 1px rgba(238, 234, 227, .22); color: #fff; cursor: pointer; }
.epx-play::before { content: ''; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; }
.epx-play.is-on::before { width: 10px; height: 12px; margin: 0; border-width: 0 3px; border-color: currentColor; box-sizing: border-box; }
.epx-play:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }

/* ---------- the film ---------- */
.epx-hero { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 900px); padding: calc(var(--top-h) + 60px) 0 clamp(36px, 5vw, 64px); overflow: hidden; background: var(--ground-deep); }
.epx-hero__film { position: absolute; inset: 0; }
.epx-hero__film video { width: 100%; height: 100%; object-fit: cover; display: block; }
.epx-hero__film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 9, 12, .9) 0%, rgba(7, 9, 12, .72) 42%, rgba(7, 9, 12, .12) 78%), linear-gradient(180deg, rgba(7, 9, 12, .88), rgba(7, 9, 12, .6) 110px, rgba(7, 9, 12, 0) 220px), linear-gradient(0deg, rgba(7, 9, 12, .8), rgba(7, 9, 12, 0) 45%); }
.epx-hero__copy { position: relative; z-index: 1; }
.epx-h1 { margin: 20px 0 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.epx-h1__name { display: block; margin-bottom: 10px; color: var(--epx); font-size: clamp(18px, 1.6vw, 22px); letter-spacing: 0; }
.epx-h1__say { display: block; max-width: 14ch; font-size: clamp(40px, 5.4vw, 84px); line-height: .98; }
.epx-hero__lead { margin: 22px 0 0; max-width: 54ch; color: var(--ink); font-size: var(--t-lg); line-height: 1.55; }
.epx-price { margin: 20px 0 0; color: var(--ink-soft); }
.epx-price b { color: var(--ink); font: 600 clamp(26px, 2.4vw, 34px) var(--display); letter-spacing: -0.02em; }
.epx-cap { margin: 22px 0 0; max-width: 60ch; color: var(--ink-soft); font-size: var(--t-xs); }

/* ---------- features ---------- */
.epx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.epx-tabs[hidden] { display: none; }
.epx-tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: none; color: var(--ink-soft); font: 600 15px/1 var(--sans); cursor: pointer; }
.epx-tab[aria-selected="true"] { border-color: var(--epx); background: var(--epx); color: #0B0E12; }
.epx-tab:focus-visible, .epx-item__b:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 2px; }
.epx-pan + .epx-pan { margin-top: 48px; }
.epx-pan__h { margin: 0 0 16px; font: 600 24px/1.25 var(--display); }
.epx-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.epx-item { border-bottom: 1px solid var(--line); }
.epx-item__h { margin: 0; font: inherit; }
.epx-item__b { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 8px 0; border: 0; background: none; color: var(--ink); font: 600 18px/1.3 var(--display); text-align: left; cursor: pointer; }
.epx-item__c { padding: 0 0 20px; }
.epx-item__c p { margin: 0; max-width: 62ch; color: var(--ink-soft); line-height: 1.6; }
.epx-item__fig { margin: 16px 0 0; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface); }
.epx-item__fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.epx-js .epx-pan[hidden] { display: none; }
.epx-js .epx-pan + .epx-pan { margin-top: 0; }
.epx-js .epx-pan__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.epx-js .epx-item:not(.is-on) .epx-item__c { display: none; }
.epx-js .epx-item:not(.is-on) .epx-item__b { color: var(--muted); }
.epx-js .epx-item.is-on .epx-item__b { color: var(--epx); }
@media (hover: hover) and (pointer: fine) { .epx-js .epx-item:not(.is-on) .epx-item__b:hover { color: var(--ink); } }
@media (min-width: 900px) {
  .epx-js .epx-pan { container-type: inline-size; }
  .epx-js .epx-list { position: relative; width: 34%; min-height: calc(62cqw * .5625); }
  .epx-js .epx-item__fig { position: absolute; top: 0; left: 111.8%; width: 182.4%; margin: 0; }
}
@media (prefers-reduced-motion: no-preference) { .epx-js .epx-item.is-on .epx-item__fig img { animation: epx-in .35s var(--ease-out) both; } }
@keyframes epx-in { from { opacity: 0; } }

/* ---------- what is new, uses, cards ---------- */
.epx-new { background: var(--ground-deep); }
.epx-new__list, .epx-uses__list, .epx-cards__list, .epx-lic__list { display: grid; gap: clamp(24px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.epx-new__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.epx-new__item { grid-column: span 2; }
.epx-new__item:nth-child(1), .epx-new__item:nth-child(2) { grid-column: span 3; }
.epx-new__list:not(:has(> :nth-child(4))) > li { grid-column: span 2; }
.epx-uses__list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(22px, 3vw, 34px); }
.epx-cards__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.epx-cards__list.epx-n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.epx-new h3, .epx-uses h3, .epx-cards h3 { margin: 16px 0 0; font: 600 20px/1.25 var(--display); letter-spacing: -0.01em; }
.epx-new li p, .epx-uses li p, .epx-cards li p { margin: 8px 0 0; color: var(--ink-soft); font-size: var(--t-sm); line-height: 1.55; }
.epx-more { margin: clamp(26px, 3vw, 38px) 0 0; padding: 0 0 0 20px; color: var(--ink-soft); line-height: 1.7; }
.epx-cards__top.has-film { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- programs, licences, questions ---------- */
.epx-tbl { overflow-x: auto; }
.epx-tbl table { width: 100%; max-width: 900px; border-collapse: collapse; }
.epx-tbl th, .epx-tbl td { padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: var(--t-sm); }
.epx-tbl thead th { color: var(--muted); font-weight: 600; }
.epx-tbl tbody th { font: 600 17px/1.3 var(--display); }
.epx-tbl td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.epx-tbl .is-yes { color: var(--epx); font-weight: 600; }
.epx-lic__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: clamp(20px, 3vw, 32px); }
.epx-lic__list li { padding-top: 18px; border-top: 2px solid var(--epx); }
.epx-lic__list h3 { margin: 0; font: 600 22px/1.25 var(--display); }
.epx-lic__list p { margin: 10px 0 0; color: var(--ink-soft); line-height: 1.6; }
.epx-faq { margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.epx-faq details { border-bottom: 1px solid var(--line); }
.epx-faq summary { padding: 18px 0; font: 600 18px/1.35 var(--display); cursor: pointer; }
.epx-faq p { margin: 0 0 20px; max-width: 70ch; color: var(--ink-soft); line-height: 1.6; }
.epx-lic { background: var(--ground); }
.epx-end { background: var(--ground-deep); }
.epx-end .epx-intro { margin-bottom: 0; }
.epx-see { margin: 28px 0 0; color: var(--ink-soft); }
.epx-note { margin: 22px 0 0; max-width: 92ch; color: var(--muted); font-size: var(--t-xs); line-height: 1.7; overflow-wrap: anywhere; }
.epx-note a { margin-left: 6px; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .epx-cards__list, .epx-cards__list.epx-n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .epx-hero { min-height: 0; padding-top: calc(var(--top-h) + 24px); flex-direction: column; align-items: stretch; }
  .epx-hero__film { position: relative; inset: auto; aspect-ratio: 16 / 9; order: -1; margin-bottom: 22px; }
  .epx-hero__film::after { display: none; }
  .epx-hero .epx-play { bottom: auto; top: calc(var(--top-h) + 24px + 56.25vw - 56px); }
  .epx-new__list, .epx-uses__list, .epx-cards__list, .epx-cards__list.epx-n5, .epx-cards__top.has-film { grid-template-columns: minmax(0, 1fr); }
  .epx-new__item, .epx-new__item:nth-child(1), .epx-new__item:nth-child(2), .epx-new__list:not(:has(> :nth-child(4))) > li { grid-column: auto; }
}
