/* KOD DUSHI • 31 October 2026
   Surgical desktop/mobile fixes, uses approved palette, type & photos. */

/* Remove only the redundant small Russian wordmark with compass. */
#app > .header .brand {
  display:none!important;
}
#app > .header {
  justify-content:flex-end!important;
}
#app > .header nav {margin-left:auto;}
#app > .header .mobile-account {margin-left:auto;}

/* Restore the presence of the large Latin identity over unused vertical space. */
#matrix-page .matrix-hero > .watermark {
  top:clamp(-54px,-3.6vw,-16px)!important;
  left:0!important;
  width:100%!important;
  max-width:none!important;
  font-size:clamp(126px,18.8vw,290px)!important;
  letter-spacing:-.082em;
  text-align:center!important;
  opacity:.28;
  z-index:-1;
  white-space:nowrap;
  line-height:1;
  pointer-events:none;
}
@media(min-width:1200px){
  #matrix-page .matrix-hero {
    padding-top:clamp(136px,13vw,194px);
    min-height:670px;
  }
}
@media(max-width:760px) {
  #matrix-page .matrix-hero {padding-top:clamp(104px,23vw,147px)}
  #matrix-page .matrix-hero >.watermark {
    top:clamp(-5px,1vw,20px)!important;
    font-size:clamp(61px,17.7vw,138px)!important;
    opacity:.30;
  }
}

/* Remove only the blown-out upper calligraphic highlight; preserve fine outline. */
#home-page .hero-copy h1 .script::after {
  color:transparent!important;
  -webkit-text-stroke:.48px #f9e7ce!important;
  text-shadow:none!important;
  opacity:.48;
  mix-blend-mode:normal!important;
  filter:none!important;
  clip-path:inset(0 0 69% 0);
}
#home-page .hero-copy h1 .script {
  text-shadow:none;
}

/* Main page: a very quiet pool of shifting gold light below the globe.
   Do not animate or redraw the source photograph or its fixed pedestal. */
#home-page #main-content>.scene .scene-platform-glow::before,
#home-page #main-content>.scene .scene-platform-glow::after {
  content:"";
  position:absolute;
  pointer-events:none;
  inset:-9% -2%;
  border-radius:50%;
  border:1px solid rgba(255,246,211,.52);
  background:
    radial-gradient(ellipse at 18% 43%,rgba(255,251,216,.62),transparent 18%),
    radial-gradient(ellipse at 72% 57%,rgba(255,230,176,.4),transparent 21%),
    linear-gradient(100deg,transparent 16%,rgba(255,244,206,.33) 42%,transparent 72%);
  background-size:160% 100%;
  mix-blend-mode:screen;
  opacity:.34;
  animation:kd-ground-shimmer 10s ease-in-out infinite;
}
#home-page #main-content>.scene .scene-platform-glow::after {
  inset:10% 6%;
  opacity:.22;
  animation-delay:-5s;
  animation-duration:13s;
  filter:blur(3px);
}
@keyframes kd-ground-shimmer {
  0%,100%{background-position:0 50%;opacity:.20;box-shadow:0 0 14px rgba(255,237,193,.12)}
  45%{background-position:100% 53%;opacity:.51;box-shadow:0 0 23px rgba(255,245,220,.27)}
  70%{opacity:.28}
}

/* Matrix landing: NEVER rotate numerals or the SVG diagram. */
#matrix-page .example-chart svg,
#matrix-page .matrix-example .scene-matrix,
#matrix-page .matrix-example .scene-canvas {
  animation:none!important;
  transform:none!important;
}
#matrix-page .example-chart svg {
  will-change:auto!important;
  filter:drop-shadow(0 0 8px rgba(255,255,255,.85));
}
/* The printed planet/pedestal image remains stationary while a subtle
   illuminated meridian and rotating glass shimmer indicate axial rotation. */
#matrix-page .matrix-example .scene-object {
  animation:none!important;
  transform:none!important;
}
#matrix-page .matrix-example .scene-core {
  animation:none!important;
  isolation:isolate;
  overflow:hidden;
}
#matrix-page .matrix-example .scene-core::before {
  content:"";
  position:absolute;
  inset:-18%;
  border-radius:50%;
  background:conic-gradient(
    from 0deg,
    transparent 0 21%,rgba(255,250,229,.17) 27%,transparent 33% 55%,
    rgba(192,219,232,.30) 65%,transparent 70% 100%
  );
  mix-blend-mode:screen;
  animation:kd-matrix-planet-orbit 26s linear infinite;
  pointer-events:none;
}
#matrix-page .matrix-example .scene-core::after {
  content:"";
  position:absolute;
  inset:1.5%;
  border-radius:50%;
  background:repeating-linear-gradient(98deg,transparent 0 20%,rgba(255,252,230,.09) 23%,transparent 28% 46%);
  background-size:225% 100%;
  mix-blend-mode:screen;
  animation:kd-matrix-glass-spin 19s linear infinite;
  pointer-events:none;
}
@keyframes kd-matrix-planet-orbit {to{transform:rotate(360deg)}}
@keyframes kd-matrix-glass-spin {to{background-position:225% 0}}

/* Keep the named tagline in visual balance with its trailing rule.
   Scope to the matrix FAQ; do not alter the global typography. */
#matrix-page .faq-grid {
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(28px,5vw,84px);
  align-items:start;
}
#matrix-page .faq-grid>h2 {
  position:relative;
  max-width:480px;
  padding-top:0;
  margin:0;
  font-size:clamp(34px,3.35vw,50px);
  line-height:1.16;
}
#matrix-page .faq-grid>h2::after {
  content:"";
  display:block;
  height:1px;
  width:clamp(115px,64%,265px);
  margin-top:26px;
  background:linear-gradient(90deg,var(--terra),var(--line),transparent);
  opacity:.36;
}
#matrix-page .faq-grid>div {
  min-width:0;
  align-self:start;
}
#matrix-page .faq-grid details:first-child {margin-top:0;}
@media(max-width:760px){
  #matrix-page .faq-grid{display:block}
  #matrix-page .faq-grid>h2{margin-bottom:26px}
  #matrix-page .faq-grid>h2::after{margin-top:18px}
}

/* Segmented DD / MM / YYYY for deterministic keyboard/mobile entry. */
#matrix-page .kd-date-ready #birth-date {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  clip-path:inset(50%)!important;
  opacity:0!important;
  pointer-events:none!important;
  border:0!important;
}
#matrix-page .kd-date-ready {position:relative}
#matrix-page .kd-date-segments {
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(0,.82fr) minmax(0,1.32fr);
  align-items:center;
  gap:clamp(5px,.8vw,9px);
  min-width:0;
}
#matrix-page .kd-date-segments input {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  min-height:55px;
  text-align:center;
  padding:12px 5px;
  border-radius:13px;
  background:rgba(255,255,255,.66);
  border:1px solid rgba(153,122,96,.38);
  box-shadow:inset 0 1px 2px rgba(88,50,26,.04);
  font-family:Manrope,Arial,sans-serif;
  font-size:clamp(15px,1.16vw,18px);
  font-variant-numeric:tabular-nums;
  font-weight:500;
  color:var(--ink);
  letter-spacing:.05em;
  outline-offset:3px;
}
#matrix-page .kd-date-segments input:focus-visible {
  outline:2px solid var(--terra);
  border-color:var(--terra);
}
#matrix-page .kd-date-segments input[aria-invalid="true"] {
  border-color:#9a4754;
  box-shadow:0 0 0 1px rgba(154,71,84,.1);
}
#matrix-page .kd-date-segments input::placeholder{
  color:#947c78;
  opacity:1;
}
#matrix-page .kd-date-hint {
  display:block;
  min-height:18px;
  margin-top:5px;
  font-size:11px;
  line-height:1.45;
  color:var(--muted);
}
#matrix-page .kd-date-hint.is-error{color:#973d50}
@media(max-width:760px){
  #matrix-page .kd-date-segments input{
    min-height:56px;
    font-size:17px;
    padding:13px 6px;
  }
}
@media(prefers-reduced-motion:reduce){
  #home-page #main-content>.scene .scene-platform-glow::before,
  #home-page #main-content>.scene .scene-platform-glow::after,
  #matrix-page .matrix-example .scene-core::before,
  #matrix-page .matrix-example .scene-core::after {animation:none!important}
}
/* Globe-like rotating glass rim in front of the still planet photo. */
#matrix-page .matrix-example>.scene::after{
  content:"";
  position:absolute;
  z-index:4;
  pointer-events:none;
  top:7%;
  left:11%;
  width:77%;
  height:72%;
  border-radius:50%;
  background:conic-gradient(from 30deg,
    transparent 0 11%,rgba(255,249,230,.20) 18%,transparent 29% 61%,
    rgba(171,207,220,.20) 71%,transparent 83% 100%);
  -webkit-mask-image:radial-gradient(circle,transparent 0 34%,black 58%,black 78%,transparent 93%);
  mask-image:radial-gradient(circle,transparent 0 34%,black 58%,black 78%,transparent 93%);
  mix-blend-mode:screen;
  opacity:.48;
  transform-origin:center;
  animation:kd-matrix-planet-orbit 38s linear infinite;
}
@media(prefers-reduced-motion:reduce) {
  #matrix-page .matrix-example>.scene::after {animation:none!important}
}
