/*
Theme Name: Dylan Thrust Neural
Theme URI: https://dylanthrust.com/
Author: YNOT
Description: A cinematic science-fiction WordPress theme for Dylan Thrust. Posts appear as circular transmissions bursting outward from a neural-brain core.
Version: 2026.10.05.21.45
Requires at least: 6.9
Requires PHP: 8.1
Text Domain: dylan-thrust-neural
*/

:root {
  --dt-bg: #020711;
  --dt-panel: rgba(5, 14, 27, .78);
  --dt-panel-soft: rgba(7, 18, 34, .58);
  --dt-text: #effbff;
  --dt-muted: #9fc5d2;
  --dt-cyan: #66e8ff;
  --dt-blue: #2098ff;
  --dt-gold: #ffd85a;
  --dt-border: rgba(122, 232, 255, .25);
  --dt-shadow: 0 18px 55px rgba(0, 0, 0, .48);
  --dt-radius: 24px;
  --dt-content: min(1180px, calc(100% - 36px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,
body.custom-background {
  margin: 0;
  color: var(--dt-text);

  /*
   * One continuous page background.
   * !important intentionally overrides WordPress custom-background inline
   * styles so the artwork can never tile into separate panels.
   */
  background-color: var(--dt-bg) !important;
  background-image:
    linear-gradient(rgba(0,5,14,.38), rgba(0,5,14,.66)),
    url("assets/images/neural-brain.jpg") !important;
  background-position: center center, center center !important;
  background-size: cover, cover !important;
  background-repeat: no-repeat, no-repeat !important;
  background-attachment: fixed, fixed !important;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--dt-cyan); text-decoration: none; }
a:hover, a:focus-visible { color: white; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px;
  background: #fff; color: #111; z-index: 99999;
}

.dt-site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 7, 16, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(102,232,255,.14);
}
.dt-header-inner {
  width: var(--dt-content); margin: 0 auto; min-height: 72px;
  display: flex; align-items: center; gap: 26px;
}
.dt-brand { margin-right: auto; min-width: 0; }
.dt-brand-title {
  display: inline-block; color: white; font-weight: 800; font-size: clamp(20px,2.1vw,31px);
  letter-spacing: .13em; text-transform: uppercase; line-height: 1;
  text-shadow: 0 0 24px rgba(102,232,255,.36);
}
.dt-brand-tagline {
  display: block; color: var(--dt-muted); font-size: 11px;
  letter-spacing: .21em; text-transform: uppercase; margin-top: 7px;
}
.dt-main-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.dt-main-nav a {
  display: block; color: #d7f7ff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 999px;
}
.dt-main-nav a:hover, .dt-main-nav a:focus-visible {
  background: rgba(102,232,255,.12); color: white;
}
.dt-mobile-menu {
  display: none; border: 1px solid var(--dt-border); background: rgba(4,15,30,.8);
  color: white; border-radius: 999px; padding: 9px 13px;
}

.dt-neural-hero {
  min-height: 930px;
  position: relative;
  isolation: isolate;
  overflow: hidden;

  /* The body owns the only background image. This section is transparent. */
  background:
    radial-gradient(circle at 50% 50%, rgba(255,218,90,.15), transparent 16%),
    radial-gradient(circle at 50% 48%, rgba(26,173,255,.08), transparent 36%);
}
.dt-neural-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.02) 0%,
    rgba(0,5,14,.08) 68%,
    rgba(0,5,14,.18) 100%
  );
}
.dt-neural-stage {
  width: min(1500px, 100%);
  height: 820px;
  margin: 0 auto;
  position: relative;
}
.dt-neural-lines {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none; overflow: visible;
}
.dt-neural-lines line {
  stroke: rgba(101, 231, 255, .24);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(68,197,255,.45));
}
.dt-neural-core {
  position: absolute; z-index: 4; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: min(520px, 58vw);
  text-align: center;
  padding: 36px 26px;
  pointer-events: none;
}
.dt-neural-core::before {
  content: ""; position: absolute; inset: 4% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,229,148,.20), rgba(32,152,255,.08) 42%, transparent 70%);
  filter: blur(16px);
}
.dt-kicker {
  font-size: 11px; text-transform: uppercase; letter-spacing: .34em;
  color: var(--dt-cyan); margin-bottom: 10px;
}
.dt-neural-core h1 {
  margin: 0; font-size: clamp(42px, 7vw, 94px); line-height: .92;
  text-transform: uppercase; letter-spacing: .1em; color: white;
  text-shadow: 0 0 18px rgba(102,232,255,.5), 0 0 52px rgba(32,152,255,.25);
}
.dt-neural-core p {
  margin: 14px auto 0; color: #d5f6ff; font-size: clamp(13px,1.45vw,19px);
  letter-spacing: .18em; text-transform: uppercase;
}
.dt-scroll-cue {
  position: absolute; z-index: 10; left: 50%; bottom: 24px; transform: translateX(-50%);
  color: rgba(224,250,255,.75); font-size: 11px; text-transform: uppercase;
  letter-spacing: .2em; padding: 9px 14px; border: 1px solid rgba(102,232,255,.20);
  border-radius: 999px; background: rgba(3,12,22,.58); backdrop-filter: blur(8px);
}

.dt-orb {
  --size: 140px;
  position: absolute; z-index: 5;
  left: var(--left); top: var(--top);
  width: var(--size); height: var(--size);
  border-radius: 50%;
  display: block;
  opacity: 0;
  will-change: transform, opacity;
}
.dt-orb.is-ready { opacity: 1; }
.dt-orb-shell {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  border: 2px solid rgba(154,240,255,.72);
  background: rgba(4,16,31,.82);
  box-shadow:
    0 0 0 5px rgba(26,173,255,.06),
    0 0 35px rgba(47,188,255,.40),
    0 18px 46px rgba(0,0,0,.48);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: visible;
}
.dt-orb:hover .dt-orb-shell,
.dt-orb:focus-visible .dt-orb-shell {
  transform: scale(1.09);
  border-color: #fff;
  box-shadow: 0 0 0 7px rgba(102,232,255,.12), 0 0 52px rgba(102,232,255,.68), 0 18px 54px rgba(0,0,0,.56);
}
.dt-orb-image {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  display: block; background: radial-gradient(circle at 40% 35%, #3ad8ff, #0b2e54 55%, #040c16 100%);
}
.dt-orb-fallback {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 28px; color: rgba(235,252,255,.88);
  background: radial-gradient(circle at 40% 35%, #35caff, #0f3a69 50%, #030a12 100%);
}
.dt-orb-title {
  position: absolute; z-index: 6; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  width: max-content; max-width: 260px;
  background: rgba(3,12,24,.88); border: 1px solid rgba(102,232,255,.25);
  color: white; border-radius: 999px; padding: 8px 11px;
  font-size: 11px; line-height: 1.2; letter-spacing: .035em; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.dt-orb:hover .dt-orb-title,
.dt-orb:focus-visible .dt-orb-title {
  opacity: 1; transform: translateX(-50%) translateY(3px);
}

.dt-home-feed {
  position: relative;
  z-index: 12;
  width: min(1420px, calc(100% - 64px));

  /* Deliberately lower than the brain/orbit section. */
  margin: 78px auto 96px;

  padding: 30px;
  border: 1px solid var(--dt-border);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(7,19,35,.68), rgba(3,11,22,.82));
  box-shadow: var(--dt-shadow);
  backdrop-filter: blur(12px);
}
.dt-section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px;
}
.dt-section-head h2 {
  margin: 0; font-size: clamp(24px,3vw,40px); letter-spacing: .05em;
}
.dt-section-head p { margin: 4px 0 0; color: var(--dt-muted); }
.dt-button {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(102,232,255,.34);
  background: rgba(16,84,122,.18); color: white; border-radius: 999px;
  padding: 10px 15px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.dt-button:hover { background: rgba(51,176,230,.22); }
.dt-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.dt-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(102,232,255,.14);
  border-radius: 18px;
  background: rgba(5,17,31,.62);
  backdrop-filter: blur(7px);
}
.dt-card-thumb {
  display: block; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  background: rgba(10,38,62,.55); margin-bottom: 14px;
}
.dt-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.dt-card:hover .dt-card-thumb img { transform: scale(1.04); }
.dt-card h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.28; }
.dt-card h3 a { color: white; }
.dt-card-meta { color: var(--dt-muted); font-size: 11px; }
.dt-card-excerpt { color: #cce4ec; font-size: 12px; margin-top: 9px; }

.dt-main {
  width: var(--dt-content); margin: 52px auto 72px;
}
.dt-panel {
  background: var(--dt-panel); border: 1px solid var(--dt-border);
  border-radius: var(--dt-radius); box-shadow: var(--dt-shadow); backdrop-filter: blur(16px);
  padding: clamp(24px,4vw,54px);
}
.dt-page-title, .dt-entry-title {
  margin-top: 0; color: white; line-height: 1.08;
  font-size: clamp(34px,5vw,64px);
}
.dt-entry-meta { color: var(--dt-muted); font-size: 13px; margin: -14px 0 28px; }
.dt-entry-media img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 20px; }
.dt-entry-content {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px,2vw,21px); color: #e6f2f5;
}
.dt-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.dt-entry-content h2, .dt-entry-content h3 { font-family: Inter, ui-sans-serif, sans-serif; color: white; }
.dt-entry-content iframe { max-width: 100%; }
.dt-taxonomy { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--dt-border); font-size: 13px; }
.dt-pagination { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.dt-pagination .page-numbers {
  padding: 8px 12px; border-radius: 999px; background: rgba(8,27,48,.7); border: 1px solid var(--dt-border);
}
.dt-pagination .current { background: rgba(38,150,207,.32); color: white; }

.dt-site-footer {
  border-top: 1px solid rgba(102,232,255,.14);
  background: rgba(1,7,15,.92);
}
.dt-footer-inner {
  width: var(--dt-content); margin: 0 auto; padding: 30px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--dt-muted); font-size: 12px;
}

@media (max-width: 1050px) {
  .dt-main-nav { display: none; }
  .dt-mobile-menu { display: inline-flex; }
  body.dt-menu-open .dt-main-nav {
    display: block; position: absolute; top: 72px; left: 18px; right: 18px;
    background: rgba(1,8,17,.97); border: 1px solid var(--dt-border); border-radius: 18px; padding: 12px;
  }
  body.dt-menu-open .dt-main-nav ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dt-neural-stage { height: 760px; }
  .dt-orb { --size: 116px !important; }
  .dt-card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}


@media (max-width: 900px) {
  .dt-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dt-home-feed { width: min(100% - 36px, 1180px); }
}

@media (max-width: 720px) {
  body,
  body.custom-background {
    background-attachment: scroll, scroll !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: auto 100vh, auto 100vh !important;
  }
  .dt-header-inner { min-height: 64px; }
  .dt-brand-tagline { display: none; }
  .dt-neural-hero {
    min-height: auto; padding: 42px 0 34px;
    background-position: center top;
  }
  .dt-neural-stage {
    height: auto; padding: 300px 18px 0;
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px;
  }
  .dt-neural-core {
    top: 135px; width: calc(100% - 40px); padding: 20px 10px;
  }
  .dt-neural-core h1 { font-size: clamp(38px,13vw,62px); }
  .dt-neural-core p { font-size: 11px; }
  .dt-neural-lines, .dt-scroll-cue { display: none; }
  .dt-orb {
    position: relative; left: auto !important; top: auto !important;
    width: min(38vw,142px); height: min(38vw,142px);
    margin: 0 auto 40px; opacity: 1 !important;
  }
  .dt-orb-title {
    opacity: 1; width: min(190px,44vw); max-width: none;
    border-radius: 14px; white-space: normal;
  }
  .dt-home-feed { margin-top: 42px; padding: 20px; width: calc(100% - 28px); }
  .dt-section-head { align-items: start; flex-direction: column; }
  .dt-card-grid { grid-template-columns: 1fr; }
  .dt-main { margin-top: 28px; }
  .dt-panel { padding: 22px; border-radius: 20px; }
  .dt-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important; animation: none !important; transition: none !important;
  }
  .dt-orb { opacity: 1 !important; transform: none !important; }
}


/* v12.55 category-orbit homepage */
.dt-orb-count {
  position:absolute;
  right:-8px;
  bottom:-5px;
  z-index:8;
  min-width:34px;
  height:34px;
  padding:0 8px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(2,12,24,.94);
  border:1px solid rgba(102,232,255,.58);
  color:#fff;
  font-size:11px;
  font-weight:800;
  box-shadow:0 0 18px rgba(102,232,255,.35);
}
.dt-orb-title small {
  display:block;
  color:var(--dt-muted);
  font-size:10px;
  margin-top:3px;
  font-weight:500;
}
