/* ============================================================
   S J LOGISTICS — misc.css
   Team · Affiliations · Gallery · Careers · Legal · Cookie bar
   Light is default; every component has explicit dark rules.
   ============================================================ */
.sx-tintbg { background: linear-gradient(180deg, #f6f3fc, #ffffff); }
[data-theme="dark"] .sx-tintbg { background: linear-gradient(180deg, #160f28, #0d0719); }

/* ===== TEAM ===== */
/* Two per row — half-width cards give the portraits room to read. */
.tm-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: clamp(28px, 4vw, 40px); }
.tm-people.lead { grid-template-columns: repeat(2, 1fr); }
.tm-person { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: 22px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 18px 42px -34px rgba(60,43,93,.45);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
[data-theme="dark"] .tm-person { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.16); }
.tm-person:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.42); box-shadow: 0 28px 54px -30px rgba(99,53,153,.45); }
.tm-photo { position: relative; flex: none; width: 132px; height: 160px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(150deg, #3c2b5d, #8b5cf6); display: grid; place-items: center; }
.tm-people.lead .tm-photo { width: 152px; height: 184px; }
.tm-init { position: absolute; font-family: "Space Grotesk"; font-weight: 700; font-size: 46px; color: rgba(255,255,255,.9); }
.tm-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tm-tx b { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(18px, 2.1vw, 21px); color: var(--ink); line-height: 1.25; }
.tm-people.lead .tm-tx b { font-size: clamp(20px, 2.4vw, 24px); }
.tm-tx .role { display: block; margin-top: 6px; font-family: "JetBrains Mono", monospace; font-size: 11px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7c46c9; }
[data-theme="dark"] .tm-tx .role { color: #c4a5ff; }
.tm-tx p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
@media (max-width: 820px) { .tm-people, .tm-people.lead { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .tm-person { flex-direction: column; gap: 16px; }
  .tm-photo, .tm-people.lead .tm-photo { width: 100%; height: 220px; }
}

/* ===== AFFILIATIONS ===== */
.af-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 40px); }
.af-card { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border); text-align: center;
  box-shadow: 0 16px 38px -32px rgba(60,43,93,.45); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
[data-theme="dark"] .af-card { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.16); }
.af-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,.42); box-shadow: 0 26px 50px -30px rgba(99,53,153,.45); }
.af-logo { position: relative; height: 76px; display: grid; place-items: center; background: #fff; border-radius: 12px;
  padding: 12px; margin-bottom: 14px; overflow: hidden; }
.af-fb { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; font-family: "Space Grotesk";
  font-weight: 600; font-size: 12.5px; color: #6B5E8C; text-align: center; }
.af-logo img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; }
.af-card b { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.af-card span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 940px) { .af-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .af-grid { grid-template-columns: 1fr; } }

/* ===== GALLERY ===== */
.gl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(22px, 3vw, 30px); }
.gl-filters button { cursor: pointer; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: transparent;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
  transition: background .2s ease, color .2s ease, border-color .2s ease; }
.gl-filters button:hover { color: var(--ink); border-color: rgba(139,92,246,.4); }
.gl-filters button.on { color: #fff; background: linear-gradient(135deg, #3c2b5d, #8b5cf6); border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(99,53,153,.6); }
.gl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gl-item { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(150deg, #3c2b5d, #8b5cf6); border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease; }
[data-theme="dark"] .gl-item { border-color: rgba(196,181,253,.16); }
.gl-item:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -28px rgba(99,53,153,.5); }
.gl-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.gl-item:hover img { transform: scale(1.07); }
.gl-item figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 13px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(18,12,30,.85)); }
.gl-item figcaption .tag { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: 9px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c4a5ff; }
.gl-item figcaption b { display: block; margin-top: 3px; font-family: "Space Grotesk"; font-weight: 600; font-size: 14px; }
.gl-item.hide { display: none; }
/* the whole tile is the trigger */
.gl-open { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0;
  background: none; cursor: zoom-in; display: block; }
.gl-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.gl-item:hover .gl-open img { transform: scale(1.07); }
.gl-zoom { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(20,14,33,.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(196,181,253,.32);
  opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease; }
.gl-item:hover .gl-zoom, .gl-open:focus-visible .gl-zoom { opacity: 1; transform: none; }
.gl-zoom svg { width: 16px; height: 16px; }
.gl-item figcaption { z-index: 3; pointer-events: none; }
.gl-none { text-align: center; padding: 40px 20px; font-size: 15px; color: var(--muted); }
.gl-none[hidden] { display: none; }

/* ===== LIGHTBOX ===== */
.lb { position: fixed; inset: 0; z-index: 96; display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 2vw, 24px); padding: clamp(16px, 4vw, 48px);
  background: rgba(8,5,16,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: lb-in .22s ease; }
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column;
  align-items: center; gap: 14px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; border-radius: 14px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.8); animation: lb-pop .3s cubic-bezier(.22,1,.36,1); background: #17102a; }
@keyframes lb-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-stage figcaption { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lb-cap { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 15.5px; color: #fff; text-align: center; }
.lb-count { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .12em;
  color: rgba(225,216,250,.6); border: 1px solid rgba(196,181,253,.24); border-radius: 999px; padding: 5px 11px; }
.lb-nav, .lb-close { flex: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(196,181,253,.26);
  transition: background .2s ease, transform .2s ease; }
.lb-nav { width: 52px; height: 52px; }
.lb-nav:hover, .lb-close:hover { background: rgba(139,92,246,.4); transform: scale(1.06); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav[hidden] { display: none; }
.lb-close { position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px); width: 44px; height: 44px; }
.lb-close svg { width: 18px; height: 18px; }
@media (max-width: 700px) {
  .lb { padding: 14px; }
  .lb-nav { position: absolute; bottom: 20px; width: 46px; height: 46px; }
  .lb-nav.prev { left: 22px; } .lb-nav.next { right: 22px; }
  .lb-stage img { max-height: calc(100vh - 210px); }
}
@media (prefers-reduced-motion: reduce) { .lb, .lb-stage img { animation: none !important; } }
@media (max-width: 940px) { .gl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gl-grid { grid-template-columns: 1fr; } }

/* ===== CAREERS ===== */
.cr-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(26px, 3.6vw, 38px); }
.cr-value { position: relative; padding: 24px 20px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 18px 40px -34px rgba(60,43,93,.45); }
[data-theme="dark"] .cr-value { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.16); }
.cr-value .n { position: absolute; top: 16px; right: 18px; font-family: "Space Grotesk"; font-weight: 700; font-size: 32px;
  line-height: 1; color: rgba(139,92,246,.14); }
[data-theme="dark"] .cr-value .n { color: rgba(196,181,253,.17); }
.cr-value b { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: 16px; color: var(--ink); max-width: 16ch; }
.cr-value p { margin: 9px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 940px) { .cr-values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cr-values { grid-template-columns: 1fr; } }
/* role accordion */
.cr-roles { display: flex; flex-direction: column; gap: 11px; margin-top: clamp(26px, 3.6vw, 36px); }
.cr-role { border: 1px solid var(--border); border-radius: 18px; background: #fff; overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease; }
[data-theme="dark"] .cr-role { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.16); }
.cr-role.open { border-color: rgba(139,92,246,.45); box-shadow: 0 20px 40px -28px rgba(99,53,153,.42); }
.cr-role-top { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px; cursor: pointer;
  background: none; border: 0; text-align: left; font-family: inherit; color: var(--ink); }
.cr-role-top .tx { flex: 1; min-width: 0; }
.cr-role-top b { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.3; }
.cr-role-top .chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.cr-role-top .chips span { font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.cr-role-top .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, #633599, #8b5cf6); transition: transform .35s ease; }
.cr-role-top .chev svg { width: 15px; height: 15px; }
.cr-role.open .chev { transform: rotate(180deg); }
.cr-role-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1); }
.cr-role.open .cr-role-body { grid-template-rows: 1fr; }
.cr-role-body .in { overflow: hidden; }
.cr-role-body .about { margin: 0; padding: 0 20px; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 66ch; }
.cr-role-body .lk { display: block; padding: 18px 20px 10px; font-family: "JetBrains Mono", monospace; font-size: 10px;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7c46c9; }
[data-theme="dark"] .cr-role-body .lk { color: #c4a5ff; }
.cr-role-body ul { list-style: none; margin: 0; padding: 0 20px; display: flex; flex-direction: column; gap: 9px; }
.cr-role-body li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cr-role-body li svg { flex: none; width: 14px; height: 14px; margin-top: 4px; stroke: #8b5cf6; fill: none; }
[data-theme="dark"] .cr-role-body li svg { stroke: #c4a5ff; }
.cr-apply { display: inline-flex; align-items: center; gap: 9px; margin: 20px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #3c2b5d, #633599 58%, #8b5cf6 125%);
  box-shadow: 0 14px 28px -12px rgba(99,53,153,.6); transition: transform .2s ease; }
.cr-apply:hover { transform: translateY(-2px); }
.cr-apply svg { width: 15px; height: 15px; }
/* benefits */
.cr-benefits { list-style: none; margin: clamp(26px, 3.6vw, 36px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cr-benefits li { display: flex; gap: 13px; align-items: flex-start; padding: 16px 18px; border-radius: 15px;
  background: #fff; border: 1px solid var(--border); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
[data-theme="dark"] .cr-benefits li { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.16); }
.cr-benefits .tick { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, #633599, #8b5cf6); }
.cr-benefits .tick svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .cr-benefits { grid-template-columns: 1fr; } }

/* ===== CSR blocks ===== */
.csr-block { margin-top: clamp(22px, 3vw, 32px); padding: clamp(22px, 3vw, 30px); border-radius: 20px;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 18px 42px -34px rgba(60,43,93,.45); }
[data-theme="dark"] .csr-block { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.16); }
.csr-head { display: flex; align-items: flex-start; gap: 15px; }
.csr-head .ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, #633599, #8b5cf6); box-shadow: 0 12px 24px -10px rgba(99,53,153,.6); }
.csr-head .ic svg { width: 23px; height: 23px; }
.csr-head .kicker { display: block; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #7c46c9; }
[data-theme="dark"] .csr-head .kicker { color: #c4a5ff; }
.csr-head h3 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(18px, 2.3vw, 23px);
  color: var(--ink); margin: 6px 0 0; }
.csr-text { margin: 16px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 72ch; }
.csr-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.csr-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink); }
[data-theme="dark"] .csr-points li { color: rgba(231,224,250,.86); }
.csr-points svg { flex: none; width: 14px; height: 14px; margin-top: 4px; stroke: #8b5cf6; fill: none; }
[data-theme="dark"] .csr-points svg { stroke: #c4a5ff; }
@media (max-width: 760px) { .csr-points { grid-template-columns: 1fr; } }

/* ===== APPLICATION MODAL ===== */
.ap-scrim { position: fixed; inset: 0; z-index: 88; background: rgba(10,6,20,.6); backdrop-filter: blur(4px); }
.ap-scrim[hidden] { display: none; }
.ap-modal { position: fixed; inset: 0; z-index: 89; display: flex; align-items: flex-start; justify-content: center;
  padding: min(8vh, 70px) 16px 24px; overflow-y: auto; }
.ap-modal[hidden] { display: none; }
.ap-panel { width: 100%; max-width: 640px; border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 60px 120px -40px rgba(20,12,36,.6);
  animation: ap-in .28s cubic-bezier(.22,1,.36,1); }
[data-theme="dark"] .ap-panel { background: #17102a; border-color: rgba(196,181,253,.22); }
@keyframes ap-in { from { opacity: 0; transform: translateY(-14px) scale(.985); } to { opacity: 1; transform: none; } }
.ap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px;
  color: #fff; background: linear-gradient(135deg, #3c2b5d, #633599 60%, #7a45b8); }
.ap-head .k { font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(225,216,250,.75); }
.ap-head h2 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(18px, 2.4vw, 23px); margin: 8px 0 0; color: #fff; }
.ap-x { flex: none; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); }
.ap-x svg { width: 16px; height: 16px; }
.ap-form { padding: 24px; }
.ap-err { margin-bottom: 16px; padding: 12px 15px; border-radius: 12px; font-size: 13.5px; color: #9f1239;
  background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.3); }
[data-theme="dark"] .ap-err { color: #fda4af; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-f { display: flex; flex-direction: column; gap: 7px; }
.ap-f.full { grid-column: 1 / -1; }
.ap-f > span { font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
.ap-f > span i { color: #d946ef; font-style: normal; }
.ap-f input, .ap-f select, .ap-f textarea { width: 100%; padding: 12px 14px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--bg-2); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif; font-size: 14.5px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease; }
[data-theme="dark"] .ap-f input, [data-theme="dark"] .ap-f select, [data-theme="dark"] .ap-f textarea {
  background: rgba(10,6,22,.5); border-color: rgba(196,181,253,.22); }
.ap-f input:focus, .ap-f select:focus, .ap-f textarea:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
.ap-f input[type="file"] { padding: 10px 12px; font-size: 13px; }
.ap-f textarea { resize: vertical; }
.ap-f em { font-style: normal; font-size: 12.5px; font-weight: 600; color: #c026d3; }
.ap-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.ap-send { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; border: none;
  cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #3c2b5d, #633599 58%, #8b5cf6 125%);
  box-shadow: 0 16px 32px -12px rgba(99,53,153,.6); transition: transform .2s ease; }
.ap-send:hover { transform: translateY(-2px); }
.ap-send svg { width: 16px; height: 16px; }
.ap-foot > span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .ap-grid { grid-template-columns: 1fr; } }
/* success banner */
.cr-done { padding: var(--sec-pad-lg) var(--gut) clamp(20px, 3vw, 30px); background: var(--bg-2); }
[data-theme="dark"] .cr-done { background: #0d0719; }
.cr-done-in { max-width: 640px; margin: 0 auto; text-align: center; padding: 32px 24px; border-radius: 22px;
  background: #fff; border: 1.5px solid rgba(139,92,246,.4); box-shadow: 0 30px 60px -40px rgba(99,53,153,.5); }
[data-theme="dark"] .cr-done-in { background: rgba(255,255,255,.04); }
.cr-done .stamp { display: inline-block; font-family: "Space Grotesk"; font-weight: 700; font-size: 22px;
  letter-spacing: .1em; color: #7c46c9; border: 3px solid #8b5cf6; border-radius: 10px; padding: 8px 20px;
  transform: rotate(-5deg); }
[data-theme="dark"] .cr-done .stamp { color: #c4a5ff; }
.cr-done h2 { font-family: "Space Grotesk"; font-weight: 700; font-size: clamp(20px, 3vw, 27px); color: var(--ink); margin: 22px 0 0; }
.cr-done p { margin: 10px auto 18px; max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ===== LEGAL ===== */
.lg-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.lg-toc { position: sticky; top: 100px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 20px 44px -38px rgba(60,43,93,.45); }
[data-theme="dark"] .lg-toc { background: rgba(255,255,255,.04); border-color: rgba(196,181,253,.16); }
.lg-toc .k { display: block; font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.lg-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.lg-toc li::marker { color: #8b5cf6; font-family: "JetBrains Mono", monospace; font-size: 11px; }
.lg-toc a { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.lg-toc a:hover { color: #7c46c9; }
[data-theme="dark"] .lg-toc a:hover { color: #c4a5ff; }
.lg-body section { scroll-margin-top: 110px; margin-bottom: 34px; }
.lg-body h2 { display: flex; align-items: baseline; gap: 12px; font-family: "Space Grotesk"; font-weight: 700;
  letter-spacing: -.015em; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; color: var(--ink); margin: 0 0 14px; }
.lg-body h2 .num { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; color: #8b5cf6; }
.lg-body p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.78; color: var(--muted); max-width: 70ch; }
.lg-body p strong { color: var(--ink); font-weight: 700; }
.lg-foot { margin-top: 40px; padding: 22px; border-radius: 18px; border: 1.5px dashed rgba(139,92,246,.35); }
.lg-foot b { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: 16px; color: var(--ink); }
.lg-foot span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.lg-foot a { color: #7c46c9; font-weight: 600; } [data-theme="dark"] .lg-foot a { color: #c4a5ff; }
.lg-foot .upd { margin-top: 12px; font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 880px) { .lg-wrap { grid-template-columns: 1fr; } .lg-toc { position: static; } }

/* ===== COOKIE CONSENT ===== */
.ck { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; width: min(760px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px; color: #fff;
  background: linear-gradient(165deg, rgba(38,30,58,.98), rgba(24,18,36,.98));
  border: 1px solid rgba(196,181,253,.24); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -34px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
  animation: ck-in .45s cubic-bezier(.22,1,.36,1) .6s both; }
@keyframes ck-in { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%); } }
.ck[hidden] { display: none; }
.ck-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #c4a5ff;
  background: rgba(139,92,246,.18); border: 1px solid rgba(139,92,246,.36); }
.ck-ic svg { width: 22px; height: 22px; }
.ck-tx { flex: 1; min-width: 0; }
.ck-tx b { display: block; font-family: "Space Grotesk"; font-weight: 700; font-size: 15.5px; }
.ck-tx p { margin: 5px 0 0; font-size: 13px; line-height: 1.55; color: rgba(225,216,250,.72); }
.ck-tx a { color: #d6c4ff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ck-btns { flex: none; display: flex; gap: 9px; }
.ck-btns button { cursor: pointer; font-family: inherit; font-weight: 700; font-size: 13.5px; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; transition: transform .2s ease, background .2s ease; }
.ck-no { color: rgba(231,224,250,.85); background: rgba(255,255,255,.07); border: 1px solid rgba(196,181,253,.24); }
.ck-no:hover { background: rgba(255,255,255,.13); color: #fff; }
.ck-yes { color: #fff; border: none; background: linear-gradient(135deg, #3c2b5d, #633599 58%, #8b5cf6 125%);
  box-shadow: 0 14px 28px -12px rgba(99,53,153,.7); }
.ck-yes:hover { transform: translateY(-2px); }
@media (max-width: 720px) {
  .ck { flex-direction: column; align-items: flex-start; gap: 14px; bottom: 12px; padding: 18px; }
  .ck-btns { width: 100%; }
  .ck-btns button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ck { animation: none !important; } }
