/* GECE KERVANI V3.4.0 — signature credit, three atmospheric palettes, responsive theme controls. */
:root{
  --gk-theme-bg:#040304;
  --gk-theme-deep:#080507;
  --gk-theme-accent:#d9a847;
  --gk-theme-bright:#f3d58a;
  --gk-theme-soft:#fff3d2;
  --gk-theme-panel:rgba(8,6,8,.66);
  --gk-theme-panel-soft:rgba(8,6,8,.38);
  --gk-theme-line:rgba(243,213,138,.30);
  --gk-theme-glow:rgba(217,168,71,.24);
  --gk-theme-video-filter:saturate(1.10) contrast(1.045) brightness(1.02);
  --gk-theme-entry-grade:linear-gradient(90deg,rgba(4,3,4,.48),rgba(4,3,4,.10) 52%,rgba(4,3,4,.16)),linear-gradient(180deg,rgba(4,3,4,.08),transparent 45%,rgba(4,3,4,.20));
  --gk-theme-scene-grade:linear-gradient(90deg,rgba(4,3,4,.16),rgba(4,3,4,.025) 54%,rgba(4,3,4,.10)),linear-gradient(180deg,rgba(4,3,4,.06),transparent 52%,rgba(4,3,4,.12));
}
html[data-gk-theme="moon"]{
  --ink:#f4f8ff;
  --muted:rgba(229,239,255,.76);
  --gold:#69bdf7;
  --gold-bright:#c7e7ff;
  --gk-entry-gold:#6ec5ff;
  --gk-entry-ivory:#f2f8ff;
  --gk-entry-bg:#020713;
  --gk-theme-bg:#020713;
  --gk-theme-deep:#06112b;
  --gk-theme-accent:#69bdf7;
  --gk-theme-bright:#c7e7ff;
  --gk-theme-soft:#eef8ff;
  --gk-theme-panel:rgba(4,13,34,.72);
  --gk-theme-panel-soft:rgba(4,13,34,.42);
  --gk-theme-line:rgba(143,207,255,.36);
  --gk-theme-glow:rgba(63,163,255,.28);
  --gk-theme-video-filter:saturate(1.16) contrast(1.07) brightness(.98) hue-rotate(14deg);
  --gk-theme-entry-grade:linear-gradient(90deg,rgba(2,7,19,.62),rgba(5,17,45,.16) 52%,rgba(3,10,28,.24)),linear-gradient(180deg,rgba(3,11,30,.14),transparent 40%,rgba(2,8,23,.30));
  --gk-theme-scene-grade:linear-gradient(90deg,rgba(2,9,28,.28),rgba(3,14,38,.06) 55%,rgba(2,8,24,.18)),linear-gradient(180deg,rgba(7,23,58,.12),transparent 46%,rgba(2,8,24,.18));
}
html[data-gk-theme="ruby"]{
  --ink:#fff5ee;
  --muted:rgba(255,229,216,.76);
  --gold:#e89375;
  --gold-bright:#ffd0a8;
  --gk-entry-gold:#ee9d7e;
  --gk-entry-ivory:#fff5ed;
  --gk-entry-bg:#120305;
  --gk-theme-bg:#100305;
  --gk-theme-deep:#26070b;
  --gk-theme-accent:#e89375;
  --gk-theme-bright:#ffd0a8;
  --gk-theme-soft:#fff2e8;
  --gk-theme-panel:rgba(30,5,10,.70);
  --gk-theme-panel-soft:rgba(30,5,10,.40);
  --gk-theme-line:rgba(255,174,137,.34);
  --gk-theme-glow:rgba(232,101,75,.27);
  --gk-theme-video-filter:saturate(1.16) contrast(1.06) brightness(.99) sepia(.08) hue-rotate(-10deg);
  --gk-theme-entry-grade:linear-gradient(90deg,rgba(22,3,7,.60),rgba(44,7,10,.13) 53%,rgba(28,4,8,.22)),linear-gradient(180deg,rgba(28,4,8,.12),transparent 42%,rgba(22,3,7,.28));
  --gk-theme-scene-grade:linear-gradient(90deg,rgba(31,4,9,.25),rgba(38,7,10,.045) 56%,rgba(24,3,8,.16)),linear-gradient(180deg,rgba(53,10,12,.10),transparent 48%,rgba(26,4,8,.18));
}
html[data-gk-theme="gold"]{
  --ink:#f7f1e6;
  --muted:rgba(247,241,230,.72);
  --gold:#d9a847;
  --gold-bright:#f3d58a;
  --gk-entry-gold:#e2b85b;
  --gk-entry-ivory:#fff4d6;
  --gk-entry-bg:#030407;
}
html,body,.experience{background-color:var(--gk-theme-bg)!important}
body,.experience,.gk-entry{transition:background-color .55s ease,color .55s ease}
::selection{background:var(--gk-theme-accent)!important;color:var(--gk-theme-deep)!important}

/* Theme the complete cinematic world, not only one accent. */
html[data-gk-theme] .gk-entry__video,
html[data-gk-theme] .scene-video,
html[data-gk-theme] .scene-video-shell.v316-hero .scene-video,
html[data-gk-theme].gk-mobile-desktop-parity .variant-celestial .scene-video,
html[data-gk-theme].gk-mobile-desktop-parity .variant-celestial .scene-video-shell.v316-hero>video.scene-video{
  filter:var(--gk-theme-video-filter)!important;
}
html[data-gk-theme] .gk-entry__veil{background:var(--gk-theme-entry-grade)!important;box-shadow:inset 0 0 120px color-mix(in srgb,var(--gk-theme-bg) 62%,transparent)!important}
html[data-gk-theme] .video-grade,
html[data-gk-theme] .variant-celestial .video-grade,
html[data-gk-theme] .experience[data-scene='0'] .video-grade{
  opacity:1!important;background:var(--gk-theme-scene-grade)!important;mix-blend-mode:normal!important
}
html[data-gk-theme] .gk-entry__content{
  border-color:var(--gk-theme-line)!important;
  background:linear-gradient(145deg,var(--gk-theme-panel),var(--gk-theme-panel-soft))!important;
  box-shadow:0 34px 110px rgba(0,0,0,.43),0 0 70px var(--gk-theme-glow),inset 0 1px rgba(255,255,255,.08)!important;
}
html[data-gk-theme] .gk-entry__frame{border-color:color-mix(in srgb,var(--gk-theme-bright) 26%,transparent)!important}
html[data-gk-theme] .gk-entry__frame:before,html[data-gk-theme] .gk-entry__frame:after{border-color:color-mix(in srgb,var(--gk-theme-bright) 62%,transparent)!important}
html[data-gk-theme] .gk-entry h1 em{color:var(--gk-theme-bright)!important}
html[data-gk-theme] .gk-entry__button--music{background:linear-gradient(135deg,var(--gk-theme-bright),var(--gk-theme-accent))!important;color:var(--gk-theme-deep)!important;box-shadow:0 15px 46px var(--gk-theme-glow)!important}
html[data-gk-theme] .gk-entry__button--quiet{background:color-mix(in srgb,var(--gk-theme-deep) 42%,transparent)!important}
html[data-gk-theme] .topbar{border-color:color-mix(in srgb,var(--gk-theme-bright) 18%,transparent)!important;background:color-mix(in srgb,var(--gk-theme-deep) 56%,transparent)!important;box-shadow:0 22px 80px rgba(0,0,0,.28),0 0 45px color-mix(in srgb,var(--gk-theme-glow) 55%,transparent),inset 0 1px rgba(255,255,255,.07)!important}
html[data-gk-theme] .topbar:after,html[data-gk-theme] .chapter-rail i,html[data-gk-theme] .media-panel-head i{background:linear-gradient(90deg,var(--gk-theme-accent),var(--gk-theme-bright))!important;box-shadow:0 0 18px var(--gk-theme-glow)!important}
html[data-gk-theme] .glass-panel{border-color:color-mix(in srgb,var(--gk-theme-bright) 19%,transparent)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--gk-theme-deep) 74%,transparent),color-mix(in srgb,var(--gk-theme-bg) 54%,transparent))!important}
html[data-gk-theme] .button-gold{border-color:var(--gk-theme-accent)!important;background:linear-gradient(180deg,var(--gk-theme-bright),var(--gk-theme-accent))!important;color:var(--gk-theme-deep)!important;box-shadow:0 18px 55px var(--gk-theme-glow)!important}
html[data-gk-theme] .tag-row span,html[data-gk-theme] .button-glass{background:color-mix(in srgb,var(--gk-theme-deep) 48%,transparent)!important;border-color:color-mix(in srgb,var(--gk-theme-bright) 18%,transparent)!important}

/* Entry palette selector. */
.gk-entry__theme-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:10px 11px 10px 14px;border:1px solid color-mix(in srgb,var(--gk-theme-bright) 20%,transparent);border-radius:18px;background:color-mix(in srgb,var(--gk-theme-deep) 48%,transparent);box-shadow:inset 0 1px rgba(255,255,255,.05);contain:layout paint}
.gk-entry__theme-label{display:grid;gap:3px;min-width:0;color:var(--gk-theme-soft);font:700 8px/1.15 Inter,Arial,sans-serif;letter-spacing:.18em;text-transform:uppercase}
.gk-entry__theme-label small{color:color-mix(in srgb,var(--gk-theme-soft) 52%,transparent);font-size:6px;letter-spacing:.13em}
.gk-entry__themes{display:flex;align-items:center;gap:7px}
.gk-entry__theme-choice{position:relative;width:35px;height:35px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.17);border-radius:50%;background:rgba(0,0,0,.24);cursor:pointer;transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease}
.gk-entry__theme-choice:hover{transform:translateY(-2px)}
.gk-entry__theme-choice.is-active{border-color:var(--gk-theme-bright);box-shadow:0 0 0 3px color-mix(in srgb,var(--gk-theme-accent) 17%,transparent),0 0 24px var(--gk-theme-glow)}
.gk-theme-swatch{width:23px;height:23px;display:block;border-radius:50%;box-shadow:inset 0 1px rgba(255,255,255,.35),0 4px 12px rgba(0,0,0,.35)}
[data-gk-theme-choice="gold"] .gk-theme-swatch{background:radial-gradient(circle at 32% 28%,#fff0b0 0 12%,#dba94a 40%,#3a1d08 100%)}
[data-gk-theme-choice="moon"] .gk-theme-swatch{background:radial-gradient(circle at 32% 28%,#e9f7ff 0 12%,#4aaefa 43%,#07143d 100%)}
[data-gk-theme-choice="ruby"] .gk-theme-swatch{background:radial-gradient(circle at 32% 28%,#ffe3c9 0 12%,#db694e 43%,#3b0710 100%)}

/* More visible, still elegant signature. */
.gk-entry__credit{position:relative;display:flex;align-items:center;gap:12px;margin-top:18px;padding-top:15px;color:var(--gk-theme-soft);text-transform:uppercase;isolation:isolate}
.gk-entry__credit:before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,var(--gk-theme-accent),color-mix(in srgb,var(--gk-theme-bright) 15%,transparent) 68%,transparent);box-shadow:0 0 18px var(--gk-theme-glow)}
.gk-entry__credit-mark{width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;border:1px solid color-mix(in srgb,var(--gk-theme-bright) 34%,transparent);border-radius:50%;background:radial-gradient(circle,var(--gk-theme-glow),transparent 68%);color:var(--gk-theme-bright);font:400 15px/1 "Instrument Serif",Georgia,serif;box-shadow:0 0 24px color-mix(in srgb,var(--gk-theme-glow) 68%,transparent)}
.gk-entry__credit-copy{display:grid;gap:3px;min-width:0}
.gk-entry__credit-copy span{color:color-mix(in srgb,var(--gk-theme-soft) 68%,transparent);font:700 7px/1 Inter,Arial,sans-serif;letter-spacing:.26em}
.gk-entry__credit-copy strong{font:500 13px/1.1 "Instrument Serif",Georgia,serif;letter-spacing:.13em;color:var(--gk-theme-bright);text-shadow:0 0 24px var(--gk-theme-glow)!important}
.gk-entry__credit-copy i{font:600 7px/1 Inter,Arial,sans-serif;font-style:normal;letter-spacing:.17em;color:color-mix(in srgb,var(--gk-theme-soft) 58%,transparent)}

/* Compact palette cycler inside the live site navigation. */
.gk-top-theme-button{height:42px;display:inline-flex;align-items:center;gap:8px;padding:0 13px;border:1px solid color-mix(in srgb,var(--gk-theme-bright) 20%,transparent);border-radius:999px;background:color-mix(in srgb,var(--gk-theme-deep) 48%,transparent);color:color-mix(in srgb,var(--gk-theme-soft) 75%,transparent);cursor:pointer;transition:transform .22s,border-color .22s,background .22s,color .22s;contain:layout paint}
.gk-top-theme-button:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--gk-theme-bright) 55%,transparent);color:var(--gk-theme-bright);background:color-mix(in srgb,var(--gk-theme-accent) 11%,var(--gk-theme-deep))}
.gk-top-theme-button__orbits{display:flex;align-items:center;gap:3px}
.gk-top-theme-button__orbits i{width:6px;height:6px;display:block;border-radius:50%;box-shadow:0 0 8px currentColor}
.gk-top-theme-button__orbits i:nth-child(1){background:#d9a847}.gk-top-theme-button__orbits i:nth-child(2){background:#69bdf7}.gk-top-theme-button__orbits i:nth-child(3){background:#e89375}
.gk-top-theme-button__label{font:800 8px/1 Inter,Arial,sans-serif;letter-spacing:.10em;text-transform:uppercase;white-space:nowrap}

.gk-entry__theme-panel,.gk-entry__theme-panel *,
.gk-entry__credit,.gk-entry__credit *,
.gk-top-theme-button,.gk-top-theme-button *{-webkit-text-stroke:0!important;paint-order:normal!important}
.gk-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Performance-safe rendering hints: no visual reduction. */
.gk-entry__theme-panel,.gk-entry__credit,.gk-top-theme-button{transform:translateZ(0)}
.chapter-module img,.video-card img{content-visibility:auto}

@media(max-width:1040px){
  .gk-top-theme-button{width:42px;padding:0;justify-content:center}.gk-top-theme-button__label{display:none}
}
@media(max-width:860px){
  .gk-entry__theme-panel{margin-top:14px;padding:8px 9px 8px 11px;border-radius:15px}
  .gk-entry__theme-label{font-size:7px}.gk-entry__theme-choice{width:32px;height:32px}.gk-theme-swatch{width:21px;height:21px}
  .gk-entry__credit{margin-top:14px;padding-top:12px}.gk-entry__credit-mark{width:28px;height:28px}.gk-entry__credit-copy strong{font-size:12px}
  .gk-top-theme-button{width:42px;min-width:42px}
}
@media(max-width:390px),(max-height:700px){
  .gk-entry__theme-panel{margin-top:10px}.gk-entry__theme-label small{display:none}
  .gk-entry__theme-choice{width:29px;height:29px}.gk-theme-swatch{width:19px;height:19px}
  .gk-entry__credit{margin-top:10px;padding-top:10px;gap:9px}.gk-entry__credit-mark{width:25px;height:25px;font-size:13px}.gk-entry__credit-copy span{font-size:6px}.gk-entry__credit-copy strong{font-size:11px}.gk-entry__credit-copy i{display:none}
}
@media(prefers-reduced-motion:reduce){body,.experience,.gk-entry,.gk-entry__theme-choice,.gk-top-theme-button{transition:none!important}}

/* Final readability lock over bright moving frames. */
html[data-gk-theme] .chapter-copy h1,
html[data-gk-theme] .chapter-copy h2,
html[data-gk-theme] .final-copy h2,
html[data-gk-theme] .spotify-panel h3,
html[data-gk-theme] .video-gallery h3{
  text-shadow:0 2px 9px rgba(0,0,0,.54),0 18px 58px rgba(0,0,0,.34)!important;
}
html[data-gk-theme] .chapter-copy p,
html[data-gk-theme] .eyebrow,
html[data-gk-theme] .scene-index{
  text-shadow:0 2px 8px rgba(0,0,0,.62),0 10px 34px rgba(0,0,0,.30)!important;
}
