/* NaN2 home page 2026-10-21: graphics comparison (Clasic / Ultra).
   Loaded by index.php only on the news page. Sources C:/m2/web/site_home2. */

/* ---------- graphics comparison ---------- */
.n2-gfx {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 11fr); gap: 56px; align-items: center;
	max-width: 1360px; margin: 0 auto; padding-top: 72px !important;
}
.n2-gfx-copy h2 { margin: 0 0 16px; font-size: clamp(30px, 2.5vw, 40px); line-height: 1.05; letter-spacing: -.005em; }
.n2-gfx-lead { margin: 0 0 26px; font-size: 18px; line-height: 1.55; color: var(--text, #ece5d8); }
.n2-gfx-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.n2-gfx-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.45; color: #c9bfb2; }
.n2-gfx-list li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--red-hi, #dd3b2c); }
.n2-gfx-list b { display: block; color: #f4ecdd; font-size: 17px; }
.n2-gfx-how { margin: 0 0 26px; font-size: 15px; color: #b3a99c; }
.n2-gfx-how kbd { padding: 2px 8px; border-radius: 4px; background: #241f20; color: var(--gold-hi, #f2d79c); font: 700 13px/1.4 inherit; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .5); }

.n2-gfx-view { min-width: 0; }
.n2-cmp2 {
	--pos: 50%; position: relative; aspect-ratio: 1500 / 844; overflow: hidden; border-radius: 6px; background: #0a0705;
	touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(210, 166, 90, .35);
}
.n2-cmp2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.n2-cmp2-after { transform: scale(1.04); transition: transform 1.6s var(--ease, ease); }
.n2-cmp2-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.n2-cmp2-before img { transform: scale(1.04); transition: transform 1.6s var(--ease, ease); }
.n2-cmp2.seen .n2-cmp2-after, .n2-cmp2.seen .n2-cmp2-before img { transform: none; }
.n2-cmp2-bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; outline: none; }
.n2-cmp2-bar::before { content: ''; position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #f2d79c; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.n2-cmp2-knob {
	position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; gap: 7px; color: #2a1a0b; font-size: 16px;
	background: #f2d79c; border: 3px solid #fff6dc; box-shadow: 0 8px 22px rgba(0, 0, 0, .55); transition: transform .2s var(--ease, ease);
}
.n2-cmp2:hover .n2-cmp2-knob, .n2-cmp2.drag .n2-cmp2-knob { transform: scale(1.1); }
.n2-cmp2-bar:focus-visible .n2-cmp2-knob { outline: 3px solid #fff; outline-offset: 3px; }
.n2-cmp2-tag {
	position: absolute; bottom: 16px; padding: 6px 14px; border-radius: 4px; font-family: var(--display, serif); font-size: 18px; font-weight: 700;
	color: #fff; background: rgba(10, 9, 9, .78); pointer-events: none; transition: opacity .2s;
}
.n2-cmp2-tag.l { left: 16px; }
.n2-cmp2-tag.r { right: 16px; color: var(--gold-hi, #f2d79c); }
.n2-gfx-pick { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.n2-gfx-pick button {
	min-width: 104px; padding: 10px 18px; border: 0; border-radius: 4px; background: #1b1819; color: #d9d0c2;
	font: 600 14px/1 inherit; letter-spacing: .04em; cursor: pointer; transition: background-color .2s, color .2s, transform .2s;
}
.n2-gfx-pick button:hover { background: #262122; color: #fff; }
.n2-gfx-pick button:active { transform: translateY(1px); }
.n2-gfx-pick button[aria-pressed="true"] { background: var(--red, #b5281f); color: #fff; }
.n2-gfx-pick button:focus-visible { outline: 2px solid var(--gold-hi, #f2d79c); outline-offset: 2px; }

@media (max-width: 1080px) {
	.n2-gfx { grid-template-columns: 1fr; gap: 32px; }
	.n2-gfx-copy { max-width: 680px; }
	.n2-gfx-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.n2-gfx { padding-top: 48px !important; }
	.n2-gfx-list { grid-template-columns: 1fr; }
	.n2-cmp2-knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
	.n2-cmp2-tag { font-size: 15px; bottom: 10px; }
	.n2-cmp2-tag.l { left: 10px; } .n2-cmp2-tag.r { right: 10px; }
	.n2-gfx-pick button { min-width: 0; flex: 1; }
}

/* ---------- scroll video: the world on Ultra (#lume) ----------
   Static by default (poster + lines stacked). home2.js adds .n2-gate-live when GSAP runs: the stage is pinned
   for the whole section and the lines take turns. */
.n2-gate { position: relative; background: #0a0606; }
.n2-gate-stage { position: relative; min-height: 100vh; overflow: hidden; }
.n2-gate-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.n2-gate-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 6, .82) 0%, rgba(8, 6, 6, .45) 42%, rgba(8, 6, 6, 0) 70%); pointer-events: none; }
.n2-gate-lines { position: relative; z-index: 2; display: grid; gap: 70px; max-width: 1360px; margin: 0 auto; padding: 120px 20px; }
.n2-gate-line { max-width: 620px; }
.n2-gate-line h2 { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.04; color: #fbf4e6; text-shadow: 0 4px 30px rgba(0, 0, 0, .85); }
.n2-gate-line p { margin: 0; font-size: 19px; line-height: 1.55; color: #e6ddcf; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.n2-gate-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.n2-gate-progress { display: none; }

.n2-gate-live .n2-gate-stage { height: 100vh; min-height: 0; }
.n2-gate-live .n2-gate-lines { position: absolute; inset: 0; display: block; padding: 0 20px; }
.n2-gate-live .n2-gate-line { position: absolute; left: max(20px, calc((100% - 1360px) / 2 + 20px)); top: 0; bottom: 0; width: min(620px, calc(100% - 40px));
	display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; }
.n2-gate-live .n2-gate-progress { display: block; position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 160px; height: 3px; margin-left: -80px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.n2-gate-progress i { display: block; height: 100%; width: 100%; background: var(--red-hi, #dd3b2c); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 700px) {
	.n2-gate-shade { background: linear-gradient(0deg, rgba(8, 6, 6, .88) 0%, rgba(8, 6, 6, .55) 45%, rgba(8, 6, 6, .15) 100%); }
	.n2-gate-live .n2-gate-line { justify-content: flex-end; padding-bottom: 70px; }
	.n2-gate-line p { font-size: 17px; }
	.n2-gate-video { object-position: 46% 50%; }
}

/* ---------- windows made for NaN2 (#sisteme): big window on the left, the list on the right ---------- */
.n2-sys { max-width: 1360px; margin: 0 auto; }
.n2-sys-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 40px; margin-bottom: 34px; }
.n2-sys-head h2 { margin: 0; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; }
.n2-sys-head p { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.5; color: #c9bfb2; }
.n2-sys-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: stretch; }
.n2-sys-stage { position: relative; min-height: 640px; display: grid; place-items: center; padding: 36px; border-radius: 6px; overflow: hidden;
	background: #141011 radial-gradient(70% 60% at 50% 55%, rgba(181, 40, 31, .2), transparent 70%); }
.n2-sys-shot { margin: 0; grid-area: 1 / 1; }
.n2-sys-shot[hidden] { display: none; }
.n2-sys-shot img { display: block; max-width: 100%; height: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.n2-sys-shot.in img { animation: n2-sys-in .55s var(--ease, ease) both; }
@keyframes n2-sys-in { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.n2-sys-list { display: flex; flex-direction: column; gap: 4px; max-height: 640px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #5a2520 transparent; }
.n2-sys-list button { position: relative; display: block; width: 100%; padding: 12px 16px 12px 20px; border: 0; border-radius: 4px; background: #181415; text-align: left; cursor: pointer;
	color: #d9d0c2; font: inherit; transition: background-color .2s; }
.n2-sys-list button::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--red-hi, #dd3b2c); transform: scaleY(0); transition: transform .3s var(--ease, ease); }
.n2-sys-list button:hover { background: #221d1e; }
.n2-sys-list button[aria-selected="true"] { background: #2a1a19; }
.n2-sys-list button[aria-selected="true"]::before { transform: none; }
.n2-sys-list button:focus-visible { outline: 2px solid var(--gold-hi, #f2d79c); outline-offset: -2px; }
.n2-sys-list b { display: flex; align-items: center; gap: 10px; font-family: var(--display, serif); font-size: 18px; color: #f4ecdd; }
.n2-sys-list kbd { padding: 1px 7px; border-radius: 4px; background: #2c2627; color: var(--gold-hi, #f2d79c); font: 700 12px/1.5 var(--body, sans-serif); }
.n2-sys-list span { display: none; margin-top: 6px; font-size: 15px; line-height: 1.5; color: #d2c9bc; }
.n2-sys-list button[aria-selected="true"] span { display: block; }

@media (max-width: 1080px) {
	.n2-sys-body { grid-template-columns: 1fr; }
	.n2-sys-stage { min-height: 0; padding: 20px; }
	.n2-sys-list { order: -1; flex-direction: row; max-height: none; overflow-x: auto; padding-bottom: 6px; }
	.n2-sys-list button { flex: none; width: auto; padding: 10px 16px; }
	.n2-sys-list button::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 3px; transform: scaleX(0); }
	.n2-sys-list button[aria-selected="true"]::before { transform: none; }
	.n2-sys-list button[aria-selected="true"] span { display: none; }
	.n2-sys-cap { display: block; }
}
.n2-sys-cap { display: none; margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: #d2c9bc; }

@media (prefers-reduced-motion: reduce) {
	.n2-cmp2-after, .n2-cmp2-before img { transform: none; transition: none; }
	.n2-sys-shot.in img { animation: none; }
}
