/* ============================================================
   XENOR — xenor.work site theme
   Warm near-black + metallic gold/bronze. Embedded fonts.
   No purple, no glassmorphism, no terminal, no fabricated stats.
   ============================================================ */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/Cinzel.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "InterVar";
  src: url("/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #0b0a07;
  --bg-2: #100e0a;
  --panel: #15120c;
  --card: #17140d;
  --card-2: #1e1a11;
  --line: #2b2416;
  --line-2: #3a3020;
  --ink: #ece6d7;
  --ink-soft: #cfc6b2;
  --muted: #9d9480;
  --faint: #6f6752;

  --gold: #c89b54;
  --gold-lt: #e2c585;
  --gold-dk: #a37c3c;
  --bronze: #8a6a3a;
  --ember: #c6703a;

  --maxw: 1200px;
  --ff-display: "Cinzel", Georgia, serif;
  --ff-body: "InterVar", "Segoe UI", system-ui, sans-serif;

  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* No global scroll-behavior: smooth — it makes Chrome jump to the top while selecting text
   in a long block. Anchor/section-nav smoothness is done per-call in JS (scrollIntoView). */
html { -webkit-text-size-adjust: 100%; }
/* Clip horizontal overflow on <html> only. Putting overflow-x on <body> turns body into a
   scroll container (overflow-y computes to auto), which breaks position:sticky (price box). */
html { overflow-x: hidden; max-width: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* subtle warm vignette, single tone */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(200, 155, 84, 0.08), transparent 60%),
    linear-gradient(180deg, #0b0a07 0%, #090804 100%);
}

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.12; letter-spacing: .01em; color: var(--ink); }
.kicker {
  font-family: var(--ff-display); font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.rule { width: 54px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); border: 0; margin: 14px 0 0; }
.muted { color: var(--muted); }
.gold { color: var(--gold-lt); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--ff-body); font-weight: 600; font-size: 14px; letter-spacing: .01em;
  padding: 13px 22px; border-radius: 4px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-lt), var(--gold)); color: #241a09; border-color: var(--gold-dk); box-shadow: 0 10px 26px -14px rgba(200, 155, 84, 0.7); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-lt); }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 6, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; }
.brand .name { font-family: var(--ff-display); font-weight: 700; font-size: 20px; letter-spacing: .14em; color: var(--ink); }
.brand .name b { color: var(--gold); font-weight: 700; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-links a {
  font-size: 14px; color: var(--ink-soft); font-weight: 500; letter-spacing: .02em;
  padding: 9px 14px; border-radius: 4px; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lt); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; gap: 2px; font-family: var(--ff-display); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lang a { padding: 6px 8px; color: var(--muted); }
.lang a.on { color: var(--gold-lt); }
.burger { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--ink); border-radius: 4px; width: 42px; height: 38px; cursor: pointer; font-size: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.hero-bg.placeholder {
  background:
    radial-gradient(900px 500px at 70% 20%, rgba(198, 112, 58, 0.18), transparent 60%),
    radial-gradient(700px 500px at 20% 80%, rgba(200, 155, 84, 0.12), transparent 55%),
    repeating-linear-gradient(135deg, #0e0c08 0 2px, #0b0a07 2px 24px);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(8, 7, 4, 0.92) 0%, rgba(8, 7, 4, 0.72) 48%, rgba(8, 7, 4, 0.4) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 30ch; margin: 18px 0 18px; }
.hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 46ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
section[id] { scroll-margin-top: 84px; }  /* sticky header'in altinda kalmasin */
.section.tight { padding: 64px 0; }
.sec-head { margin-bottom: 40px; }
.sec-head h1, .sec-head h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); margin-top: 12px; font-weight: inherit; }
.sec-head p { color: var(--muted); margin-top: 12px; max-width: 54ch; }
.sec-head .rule { margin-top: 16px; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- system cards (big image) ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sys {
  position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease;
}
.sys:hover { transform: translateY(-4px); border-color: var(--gold-dk); }
.sys-media { position: relative; aspect-ratio: 16 / 10; background: #0d0b07; overflow: hidden; }
.sys-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.sys:hover .sys-media .sys-bg { transform: scale(1.04); }
/* Optional foreground PNG that "pops out" on hover (3D depth). It lives outside .sys-media
   (which clips the cover), so on a has-front card it can overflow the whole frame. */
.sys.has-front { overflow: visible; }
.sys.has-front .sys-media { border-radius: 8px 8px 0 0; }
.sys.has-front:hover { z-index: 5; }
/* pointer-events:none is required: when the popped image overflows over the filter buttons
   (or any control), clicks must pass THROUGH it to the element underneath. The card's own
   <a> click still works (its box doesn't grow). Keep the look; never make this layer clickable. */
.sys .sys-front { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 16 / 10; z-index: 3;
  object-fit: contain; object-position: bottom; pointer-events: none;
  transform: translateY(0) scale(1); transform-origin: center bottom;
  transition: transform .5s cubic-bezier(.2,.8,.25,1), filter .5s ease;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.sys.has-front:hover .sys-front { transform: translateY(-24%) scale(1.42); filter: drop-shadow(0 38px 38px rgba(0,0,0,.64)); }
/* On hover, the cover behind the popping PNG blurs + dims (depth of field). */
.sys.has-front .sys-bg { transition: transform .5s ease, filter .5s ease; }
.sys.has-front:hover .sys-bg { filter: blur(3px) brightness(.82); }
.sys-media .cat { position: absolute; top: 12px; left: 12px; font-family: var(--ff-display); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); background: rgba(10, 8, 4, 0.72); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 3px; }
.sys-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sys-body h3 { font-size: 19px; }
.sys-body .short { color: var(--muted); font-size: 13.5px; margin-top: 7px; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 11px; color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; letter-spacing: .02em; }
.sys-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.price { font-family: var(--ff-display); font-weight: 600; color: var(--gold-lt); font-size: 15px; }
.price.ask { font-family: var(--ff-body); font-weight: 500; color: var(--muted); font-size: 13px; }

/* ---------- filters / search ---------- */
.catalog-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cats a { font-size: 13.5px; color: var(--muted); padding: 8px 15px; border: 1px solid var(--line); border-radius: 4px; transition: .15s; }
.cats a:hover { color: var(--ink); }
.cats a.on { color: var(--gold-lt); border-color: var(--gold-dk); background: rgba(200, 155, 84, 0.07); }
.search { margin-left: auto; position: relative; }
.search input { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); border-radius: 4px; padding: 10px 14px 10px 38px; font-family: var(--ff-body); font-size: 14px; width: 240px; }
.search input:focus { outline: none; border-color: var(--gold-dk); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
.gallery .main { aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0d0b07; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs img { width: 92px; height: 60px; object-fit: cover; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; opacity: .7; transition: .15s; }
.gallery .thumbs img:hover, .gallery .thumbs img.on { opacity: 1; border-color: var(--gold); }
.video-embed { margin-top: 14px; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.video-embed iframe, .video-embed video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.detail h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.detail .lead { color: var(--ink-soft); margin: 14px 0; font-size: 1.02rem; }
.feat { list-style: none; margin: 18px 0; display: grid; gap: 10px; }
.feat li { display: flex; gap: 10px; color: var(--ink-soft); font-size: 14.5px; }
.feat li svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }
.spec { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; display: grid; gap: 10px; }
.spec .row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.spec .row span { color: var(--muted); }
.buybox { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-top: 18px; }
.buybox .price-lg { font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold-lt); }
.buybox .ask-lg { color: var(--muted); font-size: 1rem; }
/* Price box sticks under the title while the page scrolls (desktop). */
.detail-info .buybox { position: sticky; top: 84px; z-index: 1; }
.tag-more { color: var(--gold-lt); border-color: var(--gold-dk); }
/* Technical details block (all tags + compat + language), full width below the detail grid. */
.tech { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.tech h2 { font-size: 1.3rem; }
.tech .tags { margin: 16px 0 20px; }
.tech .spec { border-top: 0; margin-top: 0; padding-top: 0; max-width: 520px; }

/* ---------- discord contact ---------- */
.discord { display: inline-flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; padding: 12px 16px; }
.discord .handle { font-family: var(--ff-display); font-weight: 600; letter-spacing: .04em; color: var(--gold-lt); }
.copy { cursor: pointer; background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 4px; padding: 5px 10px; font-size: 12px; font-family: var(--ff-body); transition: .15s; }
.copy:hover { color: var(--gold-lt); border-color: var(--gold-dk); }
.copy.done { color: var(--gold-lt); border-color: var(--gold); }

/* ---------- services (editorial list, not icon-box grid) ---------- */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.svc { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 30px 1fr; gap: 16px; }
.svc .no { font-family: var(--ff-display); color: var(--gold-dk); font-size: 15px; padding-top: 2px; }
.svc h3 { font-size: 17px; font-family: var(--ff-body); font-weight: 600; color: var(--ink); }
.svc p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }

/* ---------- unpack block ---------- */
.unpack { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.unpack .panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; }
.unpack ul { list-style: none; display: grid; gap: 11px; margin-top: 6px; }
.unpack li { display: flex; gap: 10px; color: var(--ink-soft); font-size: 14px; }
.unpack li svg { width: 17px; height: 17px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- coming soon ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.soon { background: var(--card); border: 1px dashed var(--line-2); border-radius: 8px; padding: 26px; text-align: center; }
.soon h3 { font-size: 20px; }
.soon .lbl { font-family: var(--ff-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin-top: 10px; display: inline-block; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 30px; margin-top: 40px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.ftr p { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 34ch; }
.ftr h5 { font-family: var(--ff-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.ftr a { display: block; color: var(--muted); font-size: 13.5px; padding: 5px 0; }
.ftr a:hover { color: var(--gold-lt); }
.ftr-bot { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); flex-wrap: wrap; gap: 10px; }

.empty { color: var(--muted); border: 1px dashed var(--line-2); border-radius: 8px; padding: 40px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sys-grid, .soon-grid { grid-template-columns: repeat(2, 1fr); }
  .detail, .unpack { grid-template-columns: 1fr; gap: 28px; }
  .detail-info .buybox { position: static; }
  .svc-list { grid-template-columns: 1fr; gap: 0; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .burger { display: block; }
  .sys-grid, .soon-grid, .ftr-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .catalog-top { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Page structure additions (systems filter, pager, unpack, server files) ---- */
.nav-links a.on { color: var(--gold-lt); }
.nav-links a.on::after { content: ""; display: block; height: 2px; margin-top: 3px; background: linear-gradient(90deg, var(--gold), transparent); }

/* hero shared bits */

/* tag filter chips on /sistemler */
.tag-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: -10px 0 22px; }
.tag-chip { font-size: 12.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; transition: .15s; }
.tag-chip:hover { color: var(--ink); border-color: var(--line-2); }
.tag-chip.on { color: var(--gold-lt); border-color: var(--gold-dk); background: rgba(200, 155, 84, 0.08); }
a.tag:hover { color: var(--gold-lt); border-color: var(--gold-dk); }

/* catalog meta + count + clear */
.catalog-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.catalog-meta .clear { color: var(--gold-lt); border-bottom: 1px solid var(--gold-dk); }
.catalog-meta .clear:hover { color: var(--gold); }

/* pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 42px; }
.pager .pg { font-size: 13.5px; color: var(--ink-soft); border: 1px solid var(--line-2); border-radius: 4px; padding: 9px 16px; transition: .15s; }
.pager .pg:hover { border-color: var(--gold); color: var(--gold-lt); }
.pager .pg.disabled { color: var(--faint); border-color: var(--line); cursor: default; }
.pager .pg-info { font-size: 13px; color: var(--muted); font-family: var(--ff-display); letter-spacing: .05em; }

/* soon card as link */
.soon { display: block; color: inherit; transition: .15s; }
.soon:hover { border-color: var(--gold-dk); transform: translateY(-2px); }

/* version badge + prose */
.ver-badge { display: inline-block; font-family: var(--ff-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lt); border: 1px solid var(--gold-dk); border-radius: 999px; padding: 2px 11px; margin: 10px 0 4px; }
.prose { color: var(--ink-soft); line-height: 1.7; margin: 14px 0; font-size: .97rem; }
.prose p { margin: 0 0 .7em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-lt); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { margin: .5em 0 .8em; padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote { margin: .8em 0; padding: .4em 0 .4em 1em; border-left: 2px solid var(--gold-dk); color: var(--muted); }
.prose code { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 4px; padding: .08em .4em; font-size: .9em; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; margin: .5em 0; }

/* free vs licensed split (unpack) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 4px; }
.split-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.split-card p { color: var(--ink-soft); font-size: 13.5px; margin-top: 8px; line-height: 1.55; }
.split-card .lbl { font-family: var(--ff-display); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.split-card .lbl.ok { color: var(--gold-lt); }
.split-card .lbl.pro { color: var(--ember); }
.gallery .main.placeholder { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 50% 0%, var(--card-2), #0d0b07); }
.mark-xl { font-family: var(--ff-display); font-size: 2.6rem; color: var(--gold-dk); letter-spacing: .04em; }
.mark-xl b { color: var(--gold-lt); }

/* (Server Files carousel styles live in carousel.css — coverflow rebuild.) */

/* server files page (detailed list below the carousel) */
.sf-list { display: grid; gap: 22px; }
.sf-card { display: grid; grid-template-columns: 300px 1fr; gap: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.sf-card .sf-media { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: #0d0b07; }
.sf-card .sf-media img { width: 100%; height: 100%; object-fit: cover; }
.sf-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sf-head { display: flex; align-items: center; gap: 14px; }
.sf-head h3 { font-size: 1.3rem; }
.sf-head .lbl { font-family: var(--ff-display); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 11px; }
.sf-gallery { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-gallery img { width: 110px; height: 70px; object-fit: cover; border: 1px solid var(--line-2); border-radius: 4px; }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .sf-card { grid-template-columns: 1fr; gap: 16px; }
  .sf-card .sf-media { max-width: 420px; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; } /* reached via contact section + burger on mobile */
  .nav { gap: 12px; }
  .nav-right { gap: 8px; }
  .brand .name { font-size: 18px; letter-spacing: .1em; }
  .brand .mark { width: 30px; height: 30px; }
  .wrap { padding: 0 16px; }
  .hero-text, .hero h1, .hero p { max-width: 100%; }
  .hero p, .hero h1 { overflow-wrap: anywhere; }
  .nav-right { flex-wrap: nowrap; }
}
/* ============ Hero variants A/B (original compositions) ============ */
.hero-a, .hero-b { min-height: 600px; }

/* Variant A — cinematic: full-width image, title lower-left, figure right, horizontal info row */
.hero-a-inner { position: relative; z-index: 2; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 110px; padding-bottom: 54px; }
.hero-a .hero-text { max-width: 60ch; }
.hero-a .hero-text h1 { max-width: 30ch; }
/* "Alive" motion (no ring): slow background zoom + rising gold embers + gently floating figure. */
.hero.moving .hero-bg { animation: hero-zoom 30s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero-embers { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-embers span { position: absolute; bottom: -16px; width: 4px; height: 4px; border-radius: 50%; background: radial-gradient(circle, var(--gold-lt), rgba(200,155,84,0) 70%); opacity: 0; animation: ember-rise linear infinite; }
@keyframes ember-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: .9; } 85% { opacity: .45; } 100% { transform: translateY(-80vh) scale(1.15); opacity: 0; } }
.hero-embers span:nth-child(1){left:6%;animation-duration:9s;animation-delay:0s;}
.hero-embers span:nth-child(2){left:14%;animation-duration:12s;animation-delay:2s;width:3px;height:3px;}
.hero-embers span:nth-child(3){left:22%;animation-duration:10s;animation-delay:4s;}
.hero-embers span:nth-child(4){left:31%;animation-duration:13s;animation-delay:1s;width:5px;height:5px;}
.hero-embers span:nth-child(5){left:39%;animation-duration:8s;animation-delay:3s;}
.hero-embers span:nth-child(6){left:47%;animation-duration:11s;animation-delay:5s;width:3px;height:3px;}
.hero-embers span:nth-child(7){left:55%;animation-duration:14s;animation-delay:.5s;}
.hero-embers span:nth-child(8){left:63%;animation-duration:9.5s;animation-delay:2.5s;width:5px;height:5px;}
.hero-embers span:nth-child(9){left:70%;animation-duration:12.5s;animation-delay:4.5s;}
.hero-embers span:nth-child(10){left:78%;animation-duration:10.5s;animation-delay:1.5s;width:3px;height:3px;}
.hero-embers span:nth-child(11){left:85%;animation-duration:13.5s;animation-delay:3.5s;}
.hero-embers span:nth-child(12){left:91%;animation-duration:9s;animation-delay:5.5s;width:5px;height:5px;}
.hero-embers span:nth-child(13){left:50%;animation-duration:15s;animation-delay:6s;}
.hero-embers span:nth-child(14){left:35%;animation-duration:11.5s;animation-delay:7s;width:3px;height:3px;}
.hero-figure { position: absolute; right: 2%; bottom: 0; height: 98%; width: auto; max-width: 46%; object-fit: contain; object-position: bottom; z-index: 1; filter: drop-shadow(0 40px 60px rgba(0,0,0,.65)); pointer-events: none; }
.hero.moving .hero-figure { animation: fig-float 7s ease-in-out infinite alternate; }
@keyframes fig-float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
/* Optional second figure on the LEFT. Kept at the image's own orientation (no mirror).
   Lifted above the dark left scrim (.hero::after, 0.92 alpha on the left) so it stays visible;
   text still paints on top (it comes later in the DOM at the same z-index). */
.hero-figure-left { right: auto; left: 2%; z-index: 2; filter: drop-shadow(0 40px 60px rgba(0,0,0,.65)) brightness(.6) saturate(.82) contrast(.95); }

/* Slow horizontal fog/haze drifting across the lower hero (CSS-only, very subtle). */
.hero-fog { position: absolute; left: -50%; right: -50%; bottom: 0; height: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(120,100,70,.05) 30%, rgba(150,120,80,.08) 50%, rgba(120,100,70,.05) 70%, transparent);
  mix-blend-mode: screen; }
.hero.moving .hero-fog { animation: fog-drift 46s linear infinite; }
@keyframes fog-drift { from { transform: translateX(-6%); } to { transform: translateX(6%); } }

/* JS pauses hero motion when the tab is hidden or the hero scrolls off-screen (perf). */
.hero.paused .hero-bg, .hero.paused .hero-embers span, .hero.paused .hero-fog, .hero.paused .hero-figure { animation-play-state: paused; }

/* Section reveal: fade + slight rise, once, when first scrolled into view (JS adds body.js-reveal + .in). */
body.js-reveal .section { opacity: 0; transform: translateY(18px); }
body.js-reveal .section.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* Card hover: gentle image zoom + a thin gold edge. */
.sys { transition: border-color .2s ease, transform .2s ease; }
.sys:hover { border-color: var(--gold-dk); transform: translateY(-3px); }
.sys .sys-media img { transition: transform .5s ease; }
.sys:hover .sys-media .sys-bg { transform: scale(1.06); }
.sf-slide { will-change: transform; }
.svc { transition: border-color .2s ease; }
.hero-row { display: flex; gap: 0; flex-wrap: wrap; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-row-item { display: flex; gap: 11px; align-items: flex-start; padding: 0 26px; border-left: 1px solid var(--line); }
.hero-row-item:first-child { padding-left: 0; border-left: 0; }
.hero-row-item .ic { color: var(--gold-lt); margin-top: 2px; flex: none; }
.hero-row-item strong { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.hero-row-item span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Variant B — obelisk: text left, dotted info line, tall stone slab on the right (no ring) */
.hero-b-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 70px; }
.hero-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-line .hl-item { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.hero-line .hl-item .ic { color: var(--gold-lt); }
.hero-obelisk { position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.obelisk { position: relative; z-index: 2; width: 230px; min-height: 400px; border-radius: 120px 120px 14px 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--card-2), #0c0a06); display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 50px rgba(0,0,0,.6), 0 30px 60px -30px rgba(0,0,0,.8); overflow: hidden; }
.obelisk img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.obelisk .mark-xl { font-size: 1.8rem; }

/* ============ Right-side section nav (home, >1200px) ============ */
.section-nav { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; }
@media (min-width: 1201px) { .section-nav { display: block; } }
.section-nav::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }
.section-nav ul { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; }
.section-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 2px 0 2px 0; }
.section-nav .snv-mark { width: 11px; height: 11px; transform: rotate(45deg); border: 1px solid var(--line-2); background: var(--bg); transition: .18s; flex: none; margin-left: 0; }
.section-nav a:hover .snv-mark, .section-nav a:focus-visible .snv-mark { border-color: var(--gold); }
.section-nav a.on .snv-mark { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,155,84,.14); }
.section-nav .snv-label { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; background: rgba(13,11,7,.92); border: 1px solid var(--line); border-radius: 5px; padding: 4px 10px; opacity: 0; transform: translateX(6px); transition: .18s; pointer-events: none; position: absolute; right: 22px; }
.section-nav a:hover .snv-label, .section-nav a:focus-visible .snv-label, .section-nav a.on .snv-label { opacity: 1; transform: translateX(0); }

/* ============ XENOR Unpack strip ============ */
.unpack-strip { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.us-item { flex: 1 1 220px; padding: 22px 24px; border-left: 1px solid var(--line); }
.us-item:first-child { border-left: 0; }
.us-item .us-k { font-family: var(--ff-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.us-item .us-k.ok { color: var(--gold-lt); }
.us-item .us-k.pro { color: var(--ember); }
.us-item p { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.5; }
.unpack-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ============ Services marker (no 01/02/03 numbers) ============ */
.svc .svc-mark { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 9px; color: var(--gold-lt); background: var(--card); }
.svc .svc-mark .ic { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .hero-b-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-obelisk { min-height: 340px; order: 2; }
  .hero-figure { max-width: 60%; opacity: .5; }
  .hero-a-inner { padding-top: 90px; }
}
@media (max-width: 640px) {
  .hero-figure { display: none; }
  .hero-row { flex-direction: column; gap: 14px; }
  .hero-row-item { padding: 0; border-left: 0; }
  .obelisk { width: 180px; min-height: 320px; }
  .us-item { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--line); }
  .us-item:first-child { border-top: 0; }
}

/* All motion (bg zoom, embers, fog, figure breathe, section reveal) stops for reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .hero.moving .hero-bg, .hero-embers span, .hero.moving .hero-figure, .hero-fog { animation: none !important; }
  .hero-embers, .hero-fog { display: none; }
  body.js-reveal .section { opacity: 1 !important; transform: none !important; }
  .sys.has-front:hover .sys-front, .sys:hover .sys-media .sys-bg { transform: none !important; }
}

/* ============ Home enrichment: depth, textures, liveliness ============ */
/* Bolder section headings + warmer gold accent on the rule. */
.sec-head h2 { font-weight: 700; letter-spacing: .005em; }
.sec-head .rule { height: 2px; background: linear-gradient(90deg, var(--gold-lt), var(--gold-dk) 60%, transparent); border: 0; width: 72px; }
/* Faint warm glow behind each section (very subtle, does not overpower content). */
.section { position: relative; }
.section > .wrap { position: relative; z-index: 1; }
.section::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 18% 0%, rgba(200,155,84,.05), transparent 70%); }
.section.alt::before { background: radial-gradient(55% 55% at 82% 100%, rgba(198,112,58,.05), transparent 70%); }


/* Services — rich card grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--gold-dk); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8), 0 0 0 1px rgba(200,155,84,.18); }
.svc-card::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(226,197,133,.08), transparent); transform: skewX(-18deg); transition: left .5s ease; }
.svc-card:hover::after { left: 130%; }
.svc-ic { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 11px; color: var(--gold-lt); background: rgba(200,155,84,.06); margin-bottom: 14px; }
.svc-ic .ic { width: 22px; height: 22px; }
.svc-card h3 { font-size: 1.12rem; }
.svc-card p { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.55; }

/* XENOR Unpack product block + mockup window */
.unpack-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.unpack-info .unpack-strip { margin-top: 20px; }
.mock-win { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #0d0b07; box-shadow: var(--shadow); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar span:first-child { background: var(--ember); }
.mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--muted); font-family: var(--ff-display); letter-spacing: .08em; }
.mock-body { position: relative; padding: 18px; min-height: 230px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 9px; font-size: 13px; }
.mock-row b { color: var(--ink-soft); font-weight: 500; }
.mock-row i { font-style: normal; color: var(--faint); font-size: 11.5px; }
.mock-row.on { border-color: var(--gold-dk); background: rgba(200,155,84,.07); }
.mock-row.on b { color: var(--gold-lt); }
.mock-mark { position: absolute; right: 16px; bottom: 10px; font-family: var(--ff-display); font-size: 1.4rem; color: rgba(200,155,84,.12); letter-spacing: .05em; }
.mock-mark b { color: rgba(226,197,133,.2); }

/* FAQ — two-part layout + accordion */
.faq-wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 40px; align-items: start; }
.faq-aside .faq-ask { margin-top: 22px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.faq-aside .faq-ask strong { display: block; font-size: 1.05rem; color: var(--ink); }
.faq-aside .faq-ask p { color: var(--muted); font-size: 13.5px; margin: 8px 0 14px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; transition: border-color .2s ease, background .2s ease; }
.faq-item.open { border-color: var(--gold-dk); background: linear-gradient(180deg, rgba(200,155,84,.06), var(--card)); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 18px; background: transparent; border: 0; cursor: pointer; text-align: left; color: var(--ink); font-family: var(--ff-body); }
.faq-no { font-family: var(--ff-display); font-size: 12px; color: var(--gold-dk); flex: none; }
.faq-item.open .faq-no { color: var(--gold-lt); }
.faq-qt { flex: 1; font-size: 1rem; font-weight: 500; }
.faq-item.open .faq-qt { color: var(--gold-lt); }
.faq-ind { position: relative; width: 18px; height: 18px; flex: none; }
.faq-ind::before, .faq-ind::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold); transition: transform .25s ease, opacity .25s ease; }
.faq-ind::before { width: 13px; height: 2px; transform: translate(-50%,-50%); }
.faq-ind::after { width: 2px; height: 13px; transform: translate(-50%,-50%); }
.faq-item.open .faq-ind::before { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-item.open .faq-ind::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-in { padding: 0 18px 18px 50px; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; max-width: 70ch; }
.faq-a-in a { color: var(--gold-lt); text-decoration: underline; }
.faq-a-in ul, .faq-a-in ol { margin: 8px 0 8px 18px; }

/* Section-entry stagger (children reveal in sequence once the section is in view). */
body.js-reveal [data-stagger] > * { opacity: 0; transform: translateY(16px); }
body.js-reveal .section.in [data-stagger] > * { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
body.js-reveal .section.in [data-stagger] > *:nth-child(1) { transition-delay: .04s; }
body.js-reveal .section.in [data-stagger] > *:nth-child(2) { transition-delay: .10s; }
body.js-reveal .section.in [data-stagger] > *:nth-child(3) { transition-delay: .16s; }
body.js-reveal .section.in [data-stagger] > *:nth-child(4) { transition-delay: .22s; }
body.js-reveal .section.in [data-stagger] > *:nth-child(5) { transition-delay: .28s; }
body.js-reveal .section.in [data-stagger] > *:nth-child(6) { transition-delay: .34s; }
body.js-reveal .section.in [data-stagger] > *:nth-child(n+7) { transition-delay: .40s; }

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .unpack-block, .faq-wrap { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; }
  .faq-a-in { padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card::after { display: none; }
  .faq-a { transition: none !important; }
  body.js-reveal [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
