/* elitesoft — front page. */
/* ---------- home: choosing ---------- */
.choose { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line-2); }
.choose .lead { margin: 18px 0 28px; }
.choose__cmp .h3 { margin-bottom: 14px; }
.choose__cmp .btn { margin-top: 24px; }
.paths { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paths a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; min-height: 64px; padding: 12px 6px 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color var(--d-fast) ease; }
.paths a::after { content: ''; grid-column: 2; grid-row: 1 / span 2; width: 8px; height: 8px; margin-right: 6px; border-top: 2px solid var(--tungsten); border-right: 2px solid var(--tungsten); transform: rotate(45deg); transition: transform var(--d-fast) var(--ease-out); }
.paths__t { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.paths__s { font-size: 14px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .paths a:hover { background-color: rgba(238, 234, 227, .035); }
  .paths a:hover::after { transform: translateX(3px) rotate(45deg); }
}
@media (max-width: 900px) { .choose { grid-template-columns: minmax(0, 1fr); } }
/* ---------- home: the three disciplines, the main way in ---------- */
.discs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r-xs); overflow: hidden; }
.disc { position: relative; display: grid; grid-template-rows: auto auto 1fr; min-width: 0; transition: background-color var(--d-fast) ease; }
.disc + .disc { border-left: 1px solid var(--line-2); }
.disc__sheet { aspect-ratio: 3 / 2; overflow: hidden; padding: 5% 6%; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px, var(--sheet); }
.disc__sheet .pl { transition: transform 600ms var(--ease-out); }
.disc__strip { margin: 0; max-width: none; display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.disc__body { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 22px 24px 24px; }
.disc__name { font-size: clamp(26px, 2.3vw, 34px); line-height: 1.04; letter-spacing: -0.03em; overflow-wrap: break-word; }
.disc__name a { text-decoration: none; }
.disc__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.disc__name a:focus-visible { outline: none; }
.disc:has(.disc__name a:focus-visible) { outline: 2px solid var(--tungsten); outline-offset: -2px; }
.disc__lede { margin: 0; color: var(--ink-soft); font-size: var(--t-sm); }
.disc__state { margin: 6px 0 0; display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 14px; font-weight: 600; }
.disc__state::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tungsten); }
.disc__state.is-soon { color: var(--ink-soft); font-weight: 500; }
.disc__state.is-soon::before { background: none; border: 1px dashed var(--ink-soft); width: 7px; height: 7px; }
.disc__state::after { content: ''; margin-left: auto; margin-right: 4px; width: 8px; height: 8px; border-top: 2px solid var(--tungsten); border-right: 2px solid var(--tungsten); transform: rotate(45deg); transition: transform var(--d-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .disc:hover { background-color: rgba(238, 234, 227, .03); }
  .disc:hover .disc__sheet .pl { transform: scale(1.03); }
  .disc:hover .disc__state::after { transform: translateX(3px) rotate(45deg); }
}
@media (max-width: 960px) {
  .discs { grid-template-columns: minmax(0, 1fr); }
  .disc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .disc + .disc { border-left: 0; border-top: 1px solid var(--line-2); }
  .disc__sheet { grid-row: 1 / 3; align-self: stretch; aspect-ratio: auto; min-height: 220px; border-right: 1px solid var(--line-2); }
  .disc__strip { grid-column: 2; border-top: 0; }
  .disc__body { grid-column: 2; }
}
@media (max-width: 600px) {
  .disc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .disc__sheet { grid-row: auto; aspect-ratio: 3 / 2; min-height: 0; border-right: 0; }
  .disc__strip { grid-column: auto; border-top: 1px solid var(--line-2); padding: 9px 16px; }
  .disc__body { grid-column: auto; padding: 18px 16px 20px; }
}
/* ---------- αρχική: στο επίκεντρο ---------- */
.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat__item { position: relative; min-width: 0; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 6px; padding: 22px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform var(--d-ui) var(--ease-out), border-color var(--d-fast) ease; }
.feat__item .tags { margin-top: 4px; }
.feat__cat { margin: 0; font-size: 13px; font-weight: 600; color: var(--draft); }
.feat__name { font-size: clamp(30px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.feat__name a { text-decoration: none; }
.feat__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.feat__name a:focus-visible { outline: none; }
.feat__item:has(.feat__name a:focus-visible) { outline: 2px solid var(--tungsten); outline-offset: 3px; }
.feat__by { margin: 0; font-size: 14px; color: var(--muted); }
.feat__state { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 14px; color: var(--ink-soft); }
.feat__state b { font: 600 20px var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.feat__state .sample { margin: 0; }
.feat__item:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .feat__item:hover { transform: translateY(-2px); border-color: var(--line-2); } }
@media (max-width: 1100px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .feat { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
/* ---------- the live model (assets/js/scene.js): in the hero and behind the page ---------- */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.hero__draw.is-live .art { visibility: hidden; }
.hero__draw.is-live { touch-action: pan-y; }
.scene-film { position: absolute; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
.is-live .draw__cut { opacity: 0; transition: opacity 260ms ease; }
.is-live.is-wiping .draw__cut { opacity: 1; }
.is-live .draw__legend { bottom: 72px; }

/* on the picture: the name of the state, one line about it, two real product screens, and the bar that chooses */
.show { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.show[hidden] { display: none; }
.show__set { position: absolute; inset: 0 0 56px; visibility: hidden; opacity: 0; transition: opacity 320ms ease, visibility 0s 320ms; }
.show__set.is-on { visibility: visible; opacity: 1; transition: opacity 520ms ease 380ms; }
.show__what { position: absolute; left: 22px; top: 20px; margin: 0; max-width: 26ch; pointer-events: auto; text-shadow: 0 1px 14px rgba(8, 10, 14, .85); }
.show__what b { display: block; font: 600 clamp(26px, 2.7vw, 40px)/1 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.show__what span { display: block; margin-top: 10px; font-size: var(--t-sm); line-height: 1.45; color: var(--ink-soft); }
.show__what a { display: inline-block; margin-top: 10px; font: 600 14px var(--sans); color: var(--tungsten); text-underline-offset: 4px; }
.show__card { position: absolute; right: 22px; top: 20px; width: clamp(150px, 29%, 232px); display: block; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 22px 44px rgba(0, 0, 0, .55); text-decoration: none; pointer-events: auto; opacity: 0; transform: translateY(18px) rotate(var(--rot, 1.6deg)); transition: transform 700ms var(--ease-out), opacity 420ms ease, border-color var(--d-fast) ease; }
.show__card + .show__card { top: 46%; right: 52px; --rot: -2.2deg; }
.show__set.is-on .show__card { opacity: 1; transform: rotate(var(--rot, 1.6deg)); transition-delay: 520ms, 520ms, 0ms; }
.show__set.is-on .show__card + .show__card { transition-delay: 660ms, 660ms, 0ms; }
.show__set.is-on .show__card:hover, .show__set.is-on .show__card:focus-visible { z-index: 2; transform: scale(1.05); border-color: var(--tungsten); transition-delay: 0ms; }
.show__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.show__card span { display: block; padding: 9px 12px 11px; font: 600 15px/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.show__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); background: rgba(11, 14, 18, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: auto; }
.show__tab { position: relative; min-height: 56px; padding: 0 18px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); font: 600 14px var(--sans); text-align: left; cursor: pointer; transition: color var(--d-fast) ease, background-color var(--d-fast) ease; }
.show__tab:last-child { border-right: 0; }
.show__short { display: none; }
.show__tab:hover { color: var(--ink); background-color: rgba(242, 176, 94, .06); }
.show__tab.is-on { color: var(--ink); }
.show__tab:focus-visible { outline: 2px solid var(--tungsten); outline-offset: -2px; }
.show__tab i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--tungsten); transform: scaleX(0); transform-origin: left; }
.show__tab.is-on i { transform: scaleX(1); }
.is-auto .show__tab.is-on i { animation: showbar 5s linear both; }
.is-hold .show__tab.is-on i { animation-play-state: paused; }
@keyframes showbar { from { transform: scaleX(0); } }
@media (max-width: 600px) {
  .is-live .draw__legend { display: none; }
  .show__set { inset: 0 0 48px; }
  .show__what { left: 14px; top: 14px; }
  .show__what b { font-size: 22px; }
  .show__what span, .show__what a, .show__card + .show__card { display: none; }
  .show__card { right: 12px; top: 12px; width: 124px; }
  .show__card span { padding: 6px 8px 8px; font-size: 12px; }
  .show__tab { min-height: 48px; padding: 0 6px; font-size: 12px; text-align: center; }
  .show__long { display: none; }
  .show__short { display: inline; }
}
/* 100vh, not 100%: as tall as the screen with a phone's address bar hidden, so the bar coming and going while the page scrolls does not resize the canvas (scene.js).
 * The fade at the edges and the dimming are drawn into the canvas by scene.js (--bg-fade: radius x, radius y, centre x, centre y,
 * where the fade starts, as fractions of the canvas, like radial-gradient(120% 90% at 60% 50%, #000 46%, transparent);
 * --bg-alpha: like opacity). A css mask or opacity made Firefox render the whole canvas again at every frame of a scroll. */
.scene-bg { position: fixed; inset: 0; width: 100%; height: 100vh; z-index: -1; pointer-events: none; --bg-fade: 1.2 .9 .6 .5 .46; }
/* with the live model behind the page, cards let a little of it through */
.has-scene .c8, .has-scene .feat__item, .has-scene .chain__node { background-color: rgba(18, 23, 30, .8); }
@media (max-width: 760px) { .scene-bg { --bg-alpha: .7; } }
/* text that sits straight on the page keeps a dark halo, so the lines behind never cross it bare */
.has-scene .sec__head p, .has-scene .sec__head .h2 { text-shadow: 0 0 3px #0B0E12, 0 0 10px #0B0E12, 0 0 22px #0B0E12; }
/* behind every block of text that sits straight on the page the model is dimmed: a soft dark veil, widest where the text is */
.has-scene .sec__head, .has-scene .c8s__fam > :first-child, .has-scene .reel__head { isolation: isolate; position: relative; }
.has-scene .sec__head::before, .has-scene .c8s__fam > :first-child::before, .has-scene .reel__head::before { content: ''; position: absolute; z-index: -1; inset: -28px -24px; background: linear-gradient(90deg, rgba(11, 14, 18, .9) 0, rgba(11, 14, 18, .86) 46%, rgba(11, 14, 18, 0) 80%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(180deg, transparent, #000 26px, #000 calc(100% - 26px), transparent); pointer-events: none; }
@media (max-width: 760px) { .has-scene .sec__head::before, .has-scene .c8s__fam > :first-child::before, .has-scene .reel__head::before { inset: -24px -14px; } }

/* ---------- wide screens: the picture is the whole hero, the heading sits on it ---------- */
@media (min-width: 1001px) {
  .hero__sheet { grid-template-columns: minmax(0, 1fr); }
  .hero__draw { grid-column: 1; grid-row: 1; min-height: 560px; }
  .tblock { grid-column: 1; }
  .hero__copy { grid-column: 1; grid-row: 1; z-index: 4; align-self: end; justify-self: start; border-right: 0; padding: 0 0 clamp(84px, 11vh, 104px) clamp(22px, 2.4vw, 34px); max-width: min(46%, 560px); pointer-events: none; }
  .hero__copy a { pointer-events: auto; }
  .hero__copy::before { content: ''; position: absolute; z-index: -1; left: 0; bottom: 0; width: 150%; height: 190%; background: radial-gradient(closest-side at 30% 70%, rgba(8, 10, 14, .86), rgba(8, 10, 14, .5) 55%, rgba(8, 10, 14, 0)); pointer-events: none; }
  .hero__copy { position: relative; }
  .hero__copy h1 { font-size: clamp(32px, 3.3vw, 50px); max-width: 15ch; }
  .hero__copy .lead { margin: 16px 0 22px; max-width: 44ch; font-size: var(--t-sm); }
  .hero__copy.is-lit { background-image: none; }
  .is-live .draw__legend { left: auto; right: 22px; }
  .show__card { width: clamp(180px, 20%, 270px); }
  .show__card + .show__card { top: 44%; right: 64px; }
}
/* low windows: the picture keeps only the name of the state, the heading loses its paragraph */
@media (min-width: 1001px) and (max-height: 840px) {
  .show__what span, .show__what a, .hero__copy .lead { display: none; }
  .hero__copy h1 { margin-bottom: 20px; }
}
/* blocks of text that have no card of their own get a dark ground with soft edges; cards over the model are nearly opaque */
.has-scene .disc, .has-scene .tblock { background-color: rgba(11, 14, 18, .92); }
.has-scene .choose__adv, .has-scene .choose__cmp, .has-scene .notes { isolation: isolate; position: relative; }
.has-scene .choose__adv::before, .has-scene .choose__cmp::before, .has-scene .notes::before { content: ''; position: absolute; z-index: -1; inset: 0; background: rgba(11, 14, 18, .88); box-shadow: 0 0 34px 30px rgba(11, 14, 18, .88); pointer-events: none; }

