/*
Theme Name: Noctra Davidatb
Theme URI: https://davidatb.com/
Author: Davidatb
Author URI: https://davidatb.com/
Description: Tema clásico content-first para Davidatb. Incluye migración de home desde XML a bloques editables, Manrope, color #2F26F8 y ReactBits-style islands opcionales.
Version: 0.18.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noctra
Tags: blog, portfolio, custom-logo, custom-menu, editor-style, full-width-template, block-patterns
*/

:root {
  --noctra-bg: #05060d;
  --noctra-bg-soft: #080a14;
  --noctra-surface: rgba(255, 255, 255, 0.045);
  --noctra-surface-strong: rgba(255, 255, 255, 0.075);
  --noctra-border: rgba(255, 255, 255, 0.12);
  --noctra-text: #f6f7fb;
  --noctra-muted: #a9adc1;
  --noctra-soft: #d9dcf1;
  --noctra-accent: #2F26F8;
  --noctra-accent-2: #00c2ff;
  --noctra-radius: 22px;
  --noctra-container: 1120px;
  --noctra-content: 780px;
  --noctra-shadow: 0 24px 90px rgba(47, 38, 248, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 8%, rgba(47, 38, 248, 0.18), transparent 34rem),
    radial-gradient(circle at 15% 28%, rgba(0, 194, 255, 0.07), transparent 26rem),
    linear-gradient(180deg, var(--noctra-bg), #03040a 72%);
  color: var(--noctra-text);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .noctra-header { top: 32px; }

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: #ffffff; }

.noctra-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 99999;
  padding: 10px 14px;
  background: var(--noctra-accent);
  color: #fff;
  border-radius: 10px;
}
.noctra-skip-link:focus { left: 12px; }

.noctra-site { min-height: 100vh; display: flex; flex-direction: column; }

.noctra-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.noctra-header__inner,
.noctra-footer__inner {
  width: min(var(--noctra-container), calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.noctra-header__inner { min-height: 74px; }

.noctra-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.noctra-brand__logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px rgba(47, 38, 248, 0.42));
}

.noctra-brand__text { display: grid; min-width: 0; }
.noctra-brand__name { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.noctra-brand__tagline {
  color: var(--noctra-muted);
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.noctra-menu,
.noctra-footer-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.noctra-menu a,
.noctra-footer-menu a {
  color: var(--noctra-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.noctra-menu a:hover,
.noctra-menu .current-menu-item > a,
.noctra-footer-menu a:hover { color: #fff; }

.noctra-main { flex: 1; }

.noctra-shell {
  width: min(var(--noctra-container), calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(48px, 8vw, 96px);
}

.noctra-entry-header {
  max-width: var(--noctra-content);
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.noctra-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--noctra-accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.noctra-entry-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.noctra-entry-meta {
  margin-top: 18px;
  color: var(--noctra-muted);
  font-size: 0.94rem;
}

.noctra-entry-content {
  max-width: var(--noctra-content);
  margin-inline: auto;
}

.noctra-entry-content > * { margin-block-start: 0; margin-block-end: 1.25rem; }
.noctra-entry-content > :last-child { margin-bottom: 0; }

.noctra-entry-content h1,
.noctra-entry-content h2,
.noctra-entry-content h3,
.noctra-entry-content h4 {
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-top: 2.4em;
}

.noctra-entry-content h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.noctra-entry-content h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
.noctra-entry-content p,
.noctra-entry-content li { color: var(--noctra-soft); }
.noctra-entry-content strong { color: #fff; }

.noctra-entry-content .alignwide,
.noctra-page-canvas .alignwide { max-width: var(--noctra-container); margin-left: calc((var(--noctra-content) - var(--noctra-container)) / 2); margin-right: calc((var(--noctra-content) - var(--noctra-container)) / 2); }
.noctra-entry-content .alignfull,
.noctra-page-canvas .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.noctra-entry-content a:not(.wp-block-button__link) { color: #fff; }

.noctra-entry-content code {
  padding: 0.15em 0.38em;
  border: 1px solid var(--noctra-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.noctra-entry-content pre {
  overflow: auto;
  padding: 1.2rem;
  border: 1px solid var(--noctra-border);
  border-radius: 18px;
  background: #02030a;
}

.wp-block-button__link {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--noctra-accent), var(--noctra-accent-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 44px rgba(47, 38, 248, 0.22);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--noctra-border);
  box-shadow: none;
}

.wp-block-group.is-style-noctra-card,
.noctra-card {
  border: 1px solid var(--noctra-border);
  border-radius: var(--noctra-radius);
  background: linear-gradient(180deg, var(--noctra-surface), rgba(255,255,255,0.025));
  box-shadow: var(--noctra-shadow);
}

.wp-block-group.is-style-noctra-card { padding: clamp(22px, 4vw, 42px); }

.wp-block-columns { gap: clamp(22px, 4vw, 42px); }

.noctra-page-canvas {
  width: min(var(--noctra-container), calc(100% - 32px));
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px);
}
.noctra-page-canvas > * { margin-block-start: 0; }

.noctra-blank-canvas { min-height: 100vh; }

.noctra-loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.noctra-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--noctra-border);
  border-radius: var(--noctra-radius);
  background: rgba(255,255,255,0.035);
  overflow: hidden;
}
.noctra-post-card__media { aspect-ratio: 16 / 10; background: rgba(255,255,255,0.06); overflow: hidden; }
.noctra-post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noctra-post-card__body { padding: 20px; }
.noctra-post-card__title { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.18; letter-spacing: -0.03em; }
.noctra-post-card__title a { color: #fff; text-decoration: none; }
.noctra-post-card__excerpt { color: var(--noctra-muted); font-size: 0.94rem; }
.noctra-post-card__date { display: block; margin-top: 18px; color: var(--noctra-muted); font-size: 0.78rem; }

.noctra-pagination { margin-top: 42px; text-align: center; }
.noctra-pagination .nav-links { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.noctra-pagination a, .noctra-pagination span {
  padding: 8px 12px;
  border: 1px solid var(--noctra-border);
  border-radius: 999px;
  color: var(--noctra-muted);
  text-decoration: none;
}
.noctra-pagination .current { color: #fff; background: var(--noctra-surface-strong); }

.noctra-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(3,4,10,0.72);
}
.noctra-footer__inner {
  min-height: 92px;
  padding-block: 22px;
}
.noctra-footer__copy { color: var(--noctra-muted); font-size: 0.82rem; }

.noctra-aurora {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--noctra-radius);
  border: 1px solid var(--noctra-border);
  background: #02030a;
}
.noctra-aurora__canvas {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 35% 50%, rgba(47,38,248,.52), transparent 28%),
    radial-gradient(circle at 65% 35%, rgba(0,194,255,.25), transparent 26%),
    radial-gradient(circle at 50% 70%, rgba(255,255,255,.08), transparent 18%);
  filter: blur(18px);
  animation: noctraAurora 9s ease-in-out infinite alternate;
}
@keyframes noctraAurora { from { transform: translate3d(-4%, 3%, 0) scale(1); } to { transform: translate3d(5%, -4%, 0) scale(1.14); } }

.noctra-orbital-logo {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin-inline: auto;
}
.noctra-orbital-logo::before,
.noctra-orbital-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.noctra-orbital-logo::before { animation: noctraSpin 10s linear infinite; border-left-color: var(--noctra-accent-2); }
.noctra-orbital-logo::after { inset: 18px; animation: noctraSpin 7s linear reverse infinite; border-top-color: var(--noctra-accent); }
.noctra-orbital-logo img { width: 104px; height: 104px; filter: drop-shadow(0 0 28px rgba(47,38,248,.64)); }
@keyframes noctraSpin { to { transform: rotate(360deg); } }

.noctra-magnetic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--noctra-accent), var(--noctra-accent-2));
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  will-change: transform;
  transition: transform .18s ease, filter .18s ease;
}
.noctra-magnetic-cta:hover { filter: brightness(1.08); color: #fff; }

/* Elementor compatibility: never constrain Elementor layouts from the theme. */
body.elementor-page .noctra-entry-content,
body.elementor-page .noctra-page-canvas { max-width: none; width: 100%; padding: 0; }
body.elementor-page .noctra-entry-header { display: none; }

@media (max-width: 900px) {
  body.admin-bar .noctra-header { top: 0; }
  .noctra-header__inner, .noctra-footer__inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  .noctra-menu, .noctra-footer-menu { flex-wrap: wrap; gap: 12px 16px; }
  .noctra-brand__tagline { max-width: 240px; }
  .noctra-loop { grid-template-columns: 1fr; }
  .noctra-entry-content .alignwide,
  .noctra-page-canvas .alignwide { margin-left: 0; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}


/* Migrated Davidatb home from BizBoost -> editable page content. */
.noctra-migrated-home {
  --wp--style--global--content-size: var(--noctra-content);
  --wp--style--global--wide-size: var(--noctra-container);
}

.noctra-migrated-home .wp-block-section {
  padding-top: clamp(54px, 7vw, 110px);
  padding-bottom: clamp(54px, 7vw, 110px);
}

.noctra-migrated-home .wp-block-header-media-no-image {
  min-height: auto;
  padding-top: clamp(64px, 8vw, 118px);
  padding-bottom: clamp(44px, 6vw, 80px);
  background: radial-gradient(circle at 50% 14%, rgba(47,38,248,.28), transparent 28rem);
}

.noctra-migrated-home .wp-block-header-media-no-image .wp-block-cover__inner-container {
  max-width: 780px;
  margin-inline: auto;
}

.noctra-migrated-home .header-title-wrapper {
  max-width: 720px;
  margin-inline: auto;
}

.noctra-migrated-home .header-animate.has-huge-font-size {
  font-size: clamp(1.6rem, 3.4vw, 3.5rem) !important;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.noctra-migrated-home p.header-animate.has-huge-font-size {
  max-width: 640px;
  margin-inline: auto;
  color: var(--noctra-muted);
  font-size: clamp(1.1rem, 2vw, 1.65rem) !important;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.noctra-hero-react-frame {
  margin-top: 22px;
  margin-bottom: 24px;
  max-width: 620px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #000;
  overflow: hidden;
  box-shadow: 0 20px 90px rgba(47,38,248,.18);
}

.noctra-hero-react-frame video {
  display: block;
  width: 100%;
}

.noctra-migrated-home .wp-block-media-text {
  gap: clamp(28px, 5vw, 72px);
}

.noctra-migrated-home .wp-block-media-text__media img {
  filter: drop-shadow(0 32px 70px rgba(47,38,248,.22));
}

.noctra-migrated-home .wp-block-hero-content {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.015));
}

.noctra-migrated-home .wp-block-group-heading h2,
.noctra-migrated-home .wp-block-group-heading .has-upper-heading-font-size {
  color: var(--noctra-muted) !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.noctra-migrated-home h2.wp-block-heading,
.noctra-migrated-home h3.wp-block-heading {
  color: #fff;
}

.noctra-migrated-home .wp-block-stats {
  padding-top: clamp(32px, 5vw, 70px);
  padding-bottom: clamp(32px, 5vw, 70px);
}

.noctra-migrated-home .stats-four-columns {
  text-align: center;
}

.noctra-migrated-home .stat-block {
  padding: 12px;
}

.noctra-migrated-home .stat-block .has-extra-large-font-size {
  color: #fff;
  margin-bottom: 2px;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem) !important;
  line-height: 1;
}

.noctra-migrated-home .wp-block-post-group {
  height: 100%;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--noctra-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}

.noctra-migrated-home .wp-block-post-group img {
  border-radius: 10px;
}

.noctra-migrated-home .wp-block-promotional-contact {
  min-height: 340px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.noctra-migrated-home .wp-block-promotional-contact .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
}

.noctra-migrated-home .wp-block-query .wp-block-post-title {
  margin-top: 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.noctra-migrated-home .wp-block-query .wp-block-post-title a {
  color: #fff;
  text-decoration: none;
}

.noctra-migrated-home .wp-block-query .wp-block-post-title a:hover {
  color: var(--noctra-accent-2);
}

.noctra-migrated-home .wp-block-query .wp-block-post-featured-image img {
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 782px) {
  .noctra-migrated-home .wp-block-media-text {
    display: block;
  }
  .noctra-migrated-home .wp-block-media-text__media {
    margin-bottom: 28px;
  }
  .noctra-migrated-home .stats-four-columns {
    gap: 14px;
  }
}

/* v0.8 header/nav: curated, compact, no inherited custom-logo sizing. */
.noctra-header__inner {
  min-height: 62px;
  gap: 20px;
}

.noctra-brand {
  flex: 0 1 auto;
  max-width: min(440px, 52vw);
}

.noctra-brand__logo,
.noctra-brand__logo img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}

.noctra-brand__logo {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
}

.noctra-brand__logo img {
  display: block;
  object-fit: contain;
}

.noctra-brand__name {
  font-size: 0.96rem;
}

.noctra-brand__tagline {
  max-width: 300px;
  font-size: 0.72rem;
}

.noctra-nav {
  margin-left: auto;
}

.noctra-menu {
  gap: clamp(14px, 2.2vw, 26px);
}

.noctra-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: rgba(217, 220, 241, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.noctra-menu .is-current > a,
.noctra-menu a[aria-current="page"] {
  color: #fff;
}

.noctra-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.noctra-nav-toggle i,
.noctra-nav-toggle i::before,
.noctra-nav-toggle i::after {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.noctra-nav-toggle i {
  position: relative;
}

.noctra-nav-toggle i::before,
.noctra-nav-toggle i::after {
  content: "";
  position: absolute;
  left: 0;
}

.noctra-nav-toggle i::before { transform: translateY(-5px); }
.noctra-nav-toggle i::after { transform: translateY(5px); }
.noctra-nav-toggle[aria-expanded="true"] i { background: transparent; }
.noctra-nav-toggle[aria-expanded="true"] i::before { transform: rotate(45deg); }
.noctra-nav-toggle[aria-expanded="true"] i::after { transform: rotate(-45deg); }

/* v0.8 generic support for portfolio/project pages and plugin shortcode outputs. */
.noctra-entry-content .wp-block-gallery,
.noctra-entry-content .wp-block-columns:has(.wp-block-image),
.noctra-entry-content .davidatb-projects,
.noctra-entry-content .portfolio-grid,
.noctra-entry-content .projects-grid {
  gap: 22px;
}

.noctra-entry-content .wp-block-gallery.has-nested-images figure.wp-block-image,
.noctra-entry-content .wp-block-gallery .blocks-gallery-item,
.noctra-entry-content .project-card,
.noctra-entry-content .portfolio-card {
  border: 1px solid var(--noctra-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  overflow: hidden;
}

.noctra-entry-content .wp-block-gallery img,
.noctra-entry-content .project-card img,
.noctra-entry-content .portfolio-card img {
  border-radius: 14px;
}

.noctra-entry-content .project-card,
.noctra-entry-content .portfolio-card {
  padding: clamp(18px, 2.5vw, 28px);
}

@media (max-width: 900px) {
  .noctra-header__inner {
    position: relative;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    padding-block: 12px;
  }

  .noctra-brand {
    max-width: calc(100% - 104px);
  }

  .noctra-brand__tagline {
    max-width: 210px;
  }

  .noctra-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .noctra-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(5, 6, 13, .96);
    box-shadow: 0 24px 70px rgba(0,0,0,.46);
    backdrop-filter: blur(18px);
  }

  body.noctra-menu-open .noctra-nav {
    display: block;
  }

  .noctra-menu {
    display: grid;
    gap: 4px;
  }

  .noctra-menu a {
    justify-content: space-between;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 12px;
  }

  .noctra-menu a:hover,
  .noctra-menu .is-current > a {
    background: rgba(255,255,255,.06);
  }
}


/* v0.9 social header/footer + home cleanup + about page. */
.noctra-header-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.noctra-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: rgba(217, 220, 241, .78);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.noctra-social-link:hover { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.065); }

.noctra-footer {
  position: relative;
  overflow: hidden;
}
.noctra-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(0,194,255,.08), transparent 30rem),
    radial-gradient(circle at 80% 30%, rgba(47,38,248,.1), transparent 28rem);
  pointer-events: none;
}
.noctra-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
}
.noctra-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.noctra-footer__logo,
.noctra-footer__logo img {
  width: 34px !important;
  height: 34px !important;
  display: block;
}
.noctra-footer__title { display: block; color: #fff; font-weight: 850; line-height: 1.1; }
.noctra-footer__tagline { display: block; max-width: 300px; color: var(--noctra-muted); font-size: .76rem; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noctra-footer__copy { grid-column: 1 / -1; text-align: center; opacity: .78; }
.noctra-footer__social { justify-content: flex-end; display: flex; gap: 10px; flex-wrap: wrap; }

/* Home migrated cleanup. */
.noctra-migrated-home .wp-block-video-featured:empty,
.noctra-migrated-home .wp-block-video-featured .wp-block-group-content:empty {
  display: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}
.noctra-migrated-home .wp-block-hero-content {
  padding-top: clamp(52px, 8vw, 110px);
  padding-bottom: clamp(52px, 8vw, 110px);
}
.noctra-migrated-home .wp-block-feature-content,
.noctra-migrated-home .wp-block-stats {
  position: relative;
  z-index: 1;
}
.noctra-migrated-home .wp-block-promotional-contact {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: clamp(40px, 7vw, 90px);
  margin-bottom: clamp(42px, 7vw, 92px);
}
.noctra-migrated-home .wp-block-promotional-contact #iframe-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  opacity: .46;
  pointer-events: none;
}
.noctra-migrated-home .wp-block-promotional-contact .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}
.noctra-migrated-home .noctra-featured-posts-list {
  max-width: 760px;
  margin: 18px auto 0;
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-post-template {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-post {
  list-style: none;
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-columns {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-columns:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-post-featured-image {
  margin: 0;
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-post-title {
  font-size: clamp(.92rem, 1.2vw, 1.05rem);
}

/* About page editorial treatment. */
.noctra-about-shell .noctra-entry-header {
  max-width: 960px;
  text-align: left;
}
.noctra-about-shell .noctra-entry-title {
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  max-width: 820px;
}
.noctra-about-shell .noctra-entry-content {
  max-width: 960px;
}
.noctra-about-shell .noctra-entry-content > h1:first-of-type {
  margin: 0 0 clamp(28px, 5vw, 48px);
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 16%, rgba(47,38,248,.2), transparent 25rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: var(--noctra-shadow);
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -.065em;
}
.noctra-about-shell .noctra-entry-content > p {
  max-width: 780px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.noctra-about-shell .noctra-entry-content > h2 {
  margin-top: clamp(46px, 7vw, 84px);
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}
.noctra-about-shell .noctra-entry-content > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.noctra-about-shell .noctra-entry-content > ul > li {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.noctra-about-shell .noctra-entry-content > ul > li p {
  margin: 0;
  color: var(--noctra-soft);
}

@media (max-width: 1080px) {
  .noctra-header-social { display: none; }
}
@media (max-width: 900px) {
  .noctra-footer__inner {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }
  .noctra-footer__social { justify-content: flex-start; }
  .noctra-footer__copy { text-align: left; }
  .noctra-migrated-home .noctra-featured-posts-list .wp-block-columns { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
  .noctra-about-shell .noctra-entry-content > ul { grid-template-columns: 1fr; }
}


/* v0.10 ReactBits-style wow layer. */
.noctra-pixel-trail {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 20% 24%, rgba(47,38,248,.28), transparent 24rem),
    radial-gradient(circle at 78% 70%, rgba(0,194,255,.18), transparent 22rem),
    rgba(255,255,255,.025);
  box-shadow: var(--noctra-shadow);
}
.noctra-pixel-trail__stage { position: absolute; inset: 0; overflow: hidden; }
.noctra-pixel-trail__grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, #000, transparent 76%);
}
.noctra-pixel-trail__pixel {
  position: absolute;
  display: block;
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 18px currentColor;
  animation: noctraPixelFade .76s ease-out forwards;
  mix-blend-mode: screen;
}
@keyframes noctraPixelFade {
  0% { transform: scale(1) rotate(0); opacity: .95; }
  100% { transform: translateY(-24px) scale(.1) rotate(30deg); opacity: 0; }
}

.noctra-target-cursor {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}
.noctra-target-cursor__ring,
.noctra-target-cursor__dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, width .18s ease, height .18s ease;
}
.noctra-target-cursor-on .noctra-target-cursor__ring,
.noctra-target-cursor-on .noctra-target-cursor__dot { opacity: 1; }
.noctra-target-cursor__ring {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(47,38,248,.45), inset 0 0 18px rgba(47,38,248,.2);
}
.noctra-target-cursor__ring::before,
.noctra-target-cursor__ring::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.8);
}
.noctra-target-cursor__ring::before { width: 10px; height: 1px; left: 50%; top: -5px; transform: translateX(-50%); }
.noctra-target-cursor__ring::after { width: 1px; height: 10px; left: -5px; top: 50%; transform: translateY(-50%); }
.noctra-target-cursor__dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 16px #fff;
}

.noctra-spotlight-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  padding: 1px;
  border-radius: 26px;
  color: var(--noctra-text);
  text-decoration: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(47,38,248,.68), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  box-shadow: 0 28px 80px rgba(0,0,0,.36);
  transition: transform .22s ease, filter .22s ease;
}
.noctra-spotlight-card:hover { transform: translateY(-4px); filter: brightness(1.08); color: #fff; }
.noctra-spotlight-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 220px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 25px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.09), transparent 22%),
    rgba(5,6,13,.82);
  backdrop-filter: blur(18px);
}
.noctra-spotlight-card__eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--noctra-accent-2);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.noctra-spotlight-card__title {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.noctra-spotlight-card p {
  max-width: 48ch;
  margin: 14px 0 0;
  color: var(--noctra-soft);
}
.noctra-spotlight-card__cta {
  display: inline-flex;
  margin-top: 24px;
  color: #fff;
  font-size: .82rem;
  font-weight: 850;
}
.noctra-spotlight-card__cta::after { content: " →"; margin-left: 4px; }

.noctra-shiny-text,
.noctra-shiny-text__text {
  display: inline-block;
  color: transparent;
  background: linear-gradient(110deg, #fff 0%, #9fa5ff 18%, #2F26F8 34%, #00d5ff 52%, #fff 68%, #a9adc1 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: noctraShinyText 3.8s linear infinite;
  font-weight: 850;
}
@keyframes noctraShinyText { to { background-position: -240% 0; } }

.noctra-editor-note {
  padding: 16px 18px;
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 14px;
  background: rgba(47,38,248,.12);
  color: var(--noctra-soft);
}

@media (prefers-reduced-motion: reduce) {
  .noctra-aurora__canvas,
  .noctra-orbital-logo::before,
  .noctra-orbital-logo::after,
  .noctra-shiny-text,
  .noctra-shiny-text__text { animation: none !important; }
}
@media (pointer: coarse) {
  .noctra-target-cursor { display: none; }
}

/* v0.11 ReactBits-forward system + page templates polish. */
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image {
  position: relative;
  overflow: hidden;
  padding-top: clamp(54px, 9vw, 128px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background:
    radial-gradient(circle at 52% 8%, rgba(47,38,248,.28), transparent 26rem),
    radial-gradient(circle at 72% 40%, rgba(0,194,255,.11), transparent 22rem);
  filter: blur(4px);
  pointer-events: none;
}
.noctra-decrypted-text-wrap.is-hero,
.noctra-migrated-home .header-title-wrapper h2 .noctra-decrypted-text {
  display: inline-block;
  max-width: 760px;
  color: #fff;
  text-shadow: 0 0 32px rgba(47,38,248,.28);
}
.noctra-decrypted-text {
  font-variant-ligatures: none;
  letter-spacing: -.055em;
}
.noctra-split-text { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .02em; }
.noctra-split-text__item {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  filter: blur(10px);
  animation: noctraSplitIn .68s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * 26ms);
}
@keyframes noctraSplitIn {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.noctra-scroll-reveal { display: inline; }
.noctra-scroll-reveal__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  animation: noctraWordReveal .72s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * 34ms);
}
@keyframes noctraWordReveal { to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.noctra-star-border-wrap { display: inline-flex; justify-content: center; width: 100%; }
.noctra-star-border {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 2px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transform: translateZ(0);
}
.noctra-star-border::before,
.noctra-star-border::after {
  content: "";
  position: absolute;
  inset: -80%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(255,255,255,.9), #00d5ff, #2F26F8, transparent 86% 100%);
  animation: noctraStarOrbit 3.7s linear infinite;
  z-index: -2;
}
.noctra-star-border::after { animation-duration: 5.4s; animation-direction: reverse; opacity: .65; }
.noctra-star-border__content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(5,6,13,.88);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: -.02em;
  box-shadow: inset 0 0 22px rgba(47,38,248,.16);
}
@keyframes noctraStarOrbit { to { transform: rotate(360deg); } }
.noctra-hero-react-frame {
  position: relative;
  display: grid;
  gap: 16px;
  place-items: center;
  max-width: 560px !important;
  margin: clamp(20px, 3vw, 30px) auto !important;
}
.noctra-hero-react-frame .wp-block-video {
  width: 100%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #000;
  box-shadow: 0 34px 120px rgba(47,38,248,.18);
}
.noctra-hero-react-frame video { display: block; width: 100%; max-height: 280px; object-fit: cover; }

.noctra-dock-mount { display: flex; justify-content: center; }
.noctra-dock {
  display: inline-flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 18px 60px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.03);
  backdrop-filter: blur(18px);
}
.noctra-dock__item {
  --dock-scale: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 50% 15%, rgba(255,255,255,.14), transparent 55%),
    rgba(47,38,248,.16);
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 900;
  transform: scale(var(--dock-scale));
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.noctra-dock__item:hover { --dock-scale: 1.18; background: rgba(47,38,248,.34); border-color: rgba(255,255,255,.22); }
.noctra-footer__social-wrap { display: grid; gap: 14px; justify-items: end; }
.noctra-footer__social-wrap .noctra-dock { padding: 8px; border-radius: 20px; }
.noctra-footer__social-wrap .noctra-dock__item { width: 36px; height: 36px; border-radius: 13px; }

/* About. */
.noctra-about-shell {
  width: min(1040px, calc(100% - 32px));
}
.noctra-about-shell .noctra-entry-header::after {
  content: "Webmaster técnico · WordPress · Python · SEO técnico · Seguridad web";
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: var(--noctra-muted);
  font-size: .78rem;
  font-weight: 750;
}
.noctra-about-shell .noctra-entry-content > p:first-of-type {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 20%, rgba(47,38,248,.16), transparent 20rem),
    rgba(255,255,255,.035);
}

/* Portfolio and projects. */
.noctra-portfolio-shell { width: min(1180px, calc(100% - 32px)); }
.noctra-portfolio-shell .noctra-entry-header { max-width: 960px; }
.noctra-portfolio-shell .noctra-entry-content { max-width: 1100px; }
.noctra-portfolio-shell .noctra-entry-content > .wp-block-columns,
.noctra-entry-content .davidatb-projects,
.noctra-entry-content .portfolio-grid,
.noctra-entry-content .projects-grid,
.noctra-entry-content [class*="project"] ul,
.noctra-entry-content [class*="portfolio"] ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.noctra-portfolio-shell .wp-block-column,
.noctra-entry-content .project-card,
.noctra-entry-content .portfolio-card,
.noctra-entry-content [class*="project"] li,
.noctra-entry-content [class*="portfolio"] li {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: 0 24px 70px rgba(0,0,0,.2);
  list-style: none;
}
.noctra-portfolio-shell img,
.noctra-entry-content .project-card img,
.noctra-entry-content .portfolio-card img {
  border-radius: 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.noctra-portfolio-shell .wp-block-button__link,
.noctra-entry-content .project-card a,
.noctra-entry-content .portfolio-card a {
  border-radius: 999px;
}

/* Blog archive and single. */
.noctra-loop {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.noctra-loop .noctra-card {
  min-height: 100%;
  background:
    radial-gradient(circle at 80% 0%, rgba(47,38,248,.11), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.noctra-single-shell {
  width: min(1040px, calc(100% - 32px));
}
.noctra-single-shell .noctra-entry-title { font-size: clamp(2.2rem, 6vw, 5.4rem); }
.noctra-single-shell .noctra-entry-content {
  max-width: 780px;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
}
.noctra-single-shell .noctra-entry-content > p:first-of-type {
  color: #fff;
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
}
.noctra-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 100%;
  height: 3px;
  background: transparent;
}
.admin-bar .noctra-reading-progress { top: 32px; }
.noctra-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--noctra-accent), var(--noctra-accent-2));
  box-shadow: 0 0 18px rgba(47,38,248,.65);
}
.noctra-toc {
  max-width: 780px;
  margin: 0 auto 34px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.noctra-toc strong { display: block; margin-bottom: 8px; color: #fff; }
.noctra-toc ol { display: grid; gap: 6px; margin: 0; padding-left: 1.2rem; }
.noctra-toc a { color: var(--noctra-soft); text-decoration: none; font-size: .9rem; }
.noctra-toc a:hover { color: #fff; }
.noctra-toc .is-sub { margin-left: 1rem; opacity: .78; }

@media (max-width: 980px) {
  .noctra-portfolio-shell .noctra-entry-content > .wp-block-columns,
  .noctra-entry-content .davidatb-projects,
  .noctra-entry-content .portfolio-grid,
  .noctra-entry-content .projects-grid,
  .noctra-entry-content [class*="project"] ul,
  .noctra-entry-content [class*="portfolio"] ul,
  .noctra-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noctra-footer__social-wrap { justify-items: start; }
}
@media (max-width: 640px) {
  .noctra-portfolio-shell .noctra-entry-content > .wp-block-columns,
  .noctra-entry-content .davidatb-projects,
  .noctra-entry-content .portfolio-grid,
  .noctra-entry-content .projects-grid,
  .noctra-entry-content [class*="project"] ul,
  .noctra-entry-content [class*="portfolio"] ul,
  .noctra-loop { grid-template-columns: 1fr; }
  .noctra-dock { gap: 7px; padding: 8px; }
  .noctra-dock__item { width: 36px; height: 36px; border-radius: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .noctra-split-text__item,
  .noctra-scroll-reveal__word,
  .noctra-star-border::before,
  .noctra-star-border::after { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* v0.12 release-candidate polish: layout no longer looks like a page inside a page. */
.noctra-home-canvas {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: clip;
}
.noctra-home-canvas > .noctra-entry-content {
  max-width: none;
  width: 100%;
}
.noctra-home-canvas > .noctra-entry-content > .noctra-migrated-home {
  max-width: none;
  width: 100%;
}
.noctra-migrated-home {
  position: relative;
  isolation: isolate;
}
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(47,38,248,.24), transparent 32rem),
    radial-gradient(circle at 82% 22%, rgba(0,194,255,.10), transparent 28rem) !important;
}
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image::before {
  inset: -18% 0 auto;
  height: 680px;
  opacity: .92;
}
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image .wp-block-cover__inner-container {
  width: min(780px, calc(100% - 32px));
  max-width: 780px;
}
.noctra-migrated-home .wp-block-header-media-no-image .wp-block-group,
.noctra-migrated-home .wp-block-header-media-no-image .header-title-wrapper,
.noctra-migrated-home .wp-block-header-media-no-image .header-animate-wrap {
  max-width: 100%;
}
.noctra-migrated-home .header-title-wrapper h2 {
  margin-bottom: 14px;
}
.noctra-migrated-home .header-animate.has-huge-font-size {
  word-spacing: normal;
  overflow-wrap: normal;
}
.noctra-migrated-home p.header-animate.has-huge-font-size {
  white-space: normal;
  letter-spacing: -.028em;
  word-spacing: .05em;
}
.noctra-decrypted-text,
.noctra-decrypted-text-wrap,
.noctra-scroll-reveal {
  white-space: normal;
  word-spacing: normal;
}
.noctra-scroll-reveal {
  display: inline;
  line-height: inherit;
}
.noctra-scroll-reveal__word {
  margin-right: .28em;
}
.noctra-scroll-reveal__word:last-child {
  margin-right: 0;
}
.noctra-split-text {
  white-space: normal;
  word-spacing: .12em;
}
.noctra-split-text__space {
  width: .28em;
}
.noctra-hero-react-frame {
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(47,38,248,.18), transparent 18rem),
    #000;
}
.noctra-hero-react-frame .noctra-star-border-wrap {
  position: absolute;
  z-index: 2;
  top: -18px;
  left: 0;
  right: 0;
  pointer-events: auto;
}
.noctra-hero-react-frame .wp-block-video {
  margin: 0;
  border: 1px solid rgba(255,255,255,.10);
}
.noctra-migrated-home .wp-block-hero-content {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background:
    radial-gradient(circle at 16% 52%, rgba(0,194,255,.09), transparent 28rem),
    linear-gradient(180deg, transparent, rgba(255,255,255,.018) 40%, transparent);
}
.noctra-migrated-home .wp-block-hero-content > .wp-block-group {
  width: min(var(--noctra-container), calc(100% - 32px));
  margin-inline: auto;
}
.noctra-migrated-home .wp-block-stats {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-top: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
  background: rgba(0,0,0,.18);
}
.noctra-migrated-home .wp-block-stats .stats-four-columns {
  width: min(960px, calc(100% - 32px));
  margin-inline: auto;
}
.noctra-migrated-home .wp-block-feature-content {
  width: min(980px, calc(100% - 32px));
  margin-inline: auto;
}
.noctra-migrated-home .wp-block-feature-content .wp-block-columns {
  align-items: stretch !important;
}
.noctra-migrated-home .wp-block-post-group {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.noctra-migrated-home .wp-block-post-group:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.20);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.024));
}
.noctra-migrated-home .wp-block-promotional-contact {
  overflow: hidden;
}
.noctra-migrated-home .wp-block-promotional-contact::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
}
.noctra-migrated-home .noctra-featured-posts-list {
  width: min(740px, calc(100% - 32px));
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-columns {
  min-height: 92px;
  border-radius: 16px;
}
.noctra-migrated-home .noctra-featured-posts-list .wp-block-post-title {
  font-size: clamp(.98rem, 1.4vw, 1.1rem) !important;
}

/* v0.12 footer: editorial first, dock as supporting interaction. */
.noctra-footer {
  margin-top: 0;
  background:
    radial-gradient(circle at 84% 12%, rgba(47,38,248,.16), transparent 22rem),
    linear-gradient(180deg, rgba(8,10,20,.95), rgba(3,4,10,.98));
}
.noctra-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(260px, 1fr) minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 132px;
  padding-block: 28px 20px;
}
.noctra-footer__brand {
  justify-self: start;
}
.noctra-footer__brand,
.noctra-footer__brand:hover {
  text-decoration: none;
}
.noctra-footer-menu,
.noctra-footer .noctra-menu {
  justify-content: center;
  gap: 16px;
}
.noctra-footer__social-wrap {
  justify-self: end;
}
.noctra-footer__copy {
  grid-column: 1 / -1;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.075);
  text-align: center;
  font-size: .78rem;
}

/* v0.12 about page: more authority, less plain article. */
.noctra-about-shell .noctra-entry-header {
  position: relative;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 16%, rgba(47,38,248,.22), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 30px 110px rgba(47,38,248,.12);
}
.noctra-about-shell .noctra-entry-content {
  max-width: 860px;
}
.noctra-about-shell .noctra-entry-content > h2 {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.noctra-about-shell .noctra-entry-content > .wp-block-columns,
.noctra-about-shell .noctra-entry-content > ul {
  margin-top: 28px;
}

/* v0.12 portfolio and plugin shortcode hardening. */
.noctra-portfolio-shell .noctra-entry-content > *:first-child {
  margin-top: 0;
}
.noctra-entry-content .davidatb-projects,
.noctra-entry-content .portfolio-grid,
.noctra-entry-content .projects-grid {
  margin-top: 28px;
}
.noctra-entry-content .project-card,
.noctra-entry-content .portfolio-card,
.noctra-entry-content [class*="project"] li,
.noctra-entry-content [class*="portfolio"] li {
  position: relative;
  overflow: hidden;
}
.noctra-entry-content .project-card::before,
.noctra-entry-content .portfolio-card::before,
.noctra-entry-content [class*="project"] li::before,
.noctra-entry-content [class*="portfolio"] li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(47,38,248,.16), transparent 18rem);
  opacity: .6;
  pointer-events: none;
}

/* v0.12 blog/single reading polish. */
.noctra-single-shell .noctra-entry-content img {
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.noctra-single-shell .noctra-entry-content blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border-left: 3px solid var(--noctra-accent-2);
  border-radius: 0 18px 18px 0;
  background: rgba(255,255,255,.035);
  color: #fff;
}
.noctra-single-shell .noctra-entry-content pre,
.noctra-single-shell .noctra-entry-content .wp-block-code {
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(47,38,248,.08), 0 20px 80px rgba(0,0,0,.22);
}

@media (max-width: 920px) {
  .noctra-footer__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .noctra-footer-menu,
  .noctra-footer .noctra-menu { justify-content: flex-start; }
  .noctra-footer__social-wrap { justify-self: start; justify-items: start; }
  .noctra-footer__copy { text-align: left; }
}
@media (max-width: 782px) {
  .noctra-home-canvas .wp-block-cover.wp-block-header-media-no-image .wp-block-cover__inner-container {
    width: min(100% - 24px, 720px);
  }
  .noctra-migrated-home .wp-block-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .noctra-migrated-home .header-animate.has-huge-font-size {
    letter-spacing: -.045em;
  }
  .noctra-hero-react-frame {
    max-width: 100% !important;
  }
  .noctra-migrated-home .wp-block-feature-content .wp-block-columns {
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .noctra-migrated-home .wp-block-header-media-no-image {
    padding-top: 46px !important;
  }
  .noctra-migrated-home p.header-animate.has-huge-font-size {
    font-size: 1rem !important;
    line-height: 1.55;
  }
  .noctra-footer__tagline,
  .noctra-brand__tagline {
    white-space: normal;
  }
}

/* v0.13 ReactBits targeted integrations: Gradient Blinds, Magic Rings, Logo Loop and Magic Bento. */
.noctra-gradient-blinds {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  pointer-events: auto;
  --gb-x: 50%;
  --gb-y: 42%;
}
.noctra-home-canvas .wp-block-header-media-no-image .noctra-gradient-blinds {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  z-index: 0;
}
.noctra-home-canvas .wp-block-header-media-no-image .wp-block-cover__background { z-index: 0; }
.noctra-home-canvas .wp-block-header-media-no-image .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}
.noctra-gradient-blinds__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--gb-x) var(--gb-y), rgba(47,38,248,.42), transparent 30rem),
    radial-gradient(circle at 72% 16%, rgba(0,213,255,.18), transparent 27rem),
    linear-gradient(135deg, #03040b 0%, #050622 42%, #02030a 100%);
}
.noctra-gradient-blinds__spotlight {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at var(--gb-x) var(--gb-y), rgba(255,255,255,.14), transparent 18rem);
  filter: blur(12px);
  opacity: .78;
}
.noctra-gradient-blinds__strips {
  position: absolute;
  inset: -6%;
  display: flex;
  transform: rotate(-8deg) scale(1.08);
  opacity: .9;
  mix-blend-mode: screen;
}
.noctra-gradient-blinds__blind {
  flex: 1 1 auto;
  margin: 0 max(.5px, .13vw);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.015) 46%, rgba(47,38,248,.26)),
    linear-gradient(90deg, rgba(47,38,248,.1), rgba(0,213,255,.18), rgba(47,38,248,.04));
  animation: noctraGradientBlindFloat 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.42s);
}
@keyframes noctraGradientBlindFloat {
  0%, 100% { transform: translateY(-2%) scaleY(1); opacity: .42; }
  50% { transform: translateY(2%) scaleY(1.08); opacity: .78; }
}

.noctra-magic-rings {
  width: min(420px, 92vw);
  aspect-ratio: 1;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.noctra-magic-rings__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.noctra-magic-rings__stage::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(47,38,248,.42), transparent 68%);
  filter: blur(28px);
}
.noctra-magic-rings__ring {
  position: absolute;
  inset: var(--ring-inset, 10%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 28px rgba(47,38,248,.24), 0 0 50px rgba(47,38,248,.12);
  transform: rotate(0deg);
  animation: noctraRingSpin 14s linear infinite;
}
.noctra-magic-rings__ring--one { --ring-inset: 9%; border-top-color: rgba(0,213,255,.6); }
.noctra-magic-rings__ring--two { --ring-inset: 20%; animation-duration: 18s; animation-direction: reverse; border-right-color: rgba(47,38,248,.7); }
.noctra-magic-rings__ring--three { --ring-inset: 31%; animation-duration: 9s; border-left-color: rgba(255,255,255,.48); }
@keyframes noctraRingSpin { to { transform: rotate(360deg); } }
.noctra-magic-rings__core {
  position: relative;
  z-index: 2;
  width: 26%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.24), rgba(47,38,248,.95) 44%, rgba(47,38,248,.25));
  box-shadow: 0 0 60px rgba(47,38,248,.52);
}
.noctra-magic-rings__core img { width: 72%; height: 72%; object-fit: contain; }
.noctra-magic-rings__orbit {
  position: absolute;
  inset: 0;
  animation: noctraRingSpin 28s linear infinite;
}
.noctra-magic-rings__chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: rotate(calc(360deg / var(--total) * var(--i))) translateX(46%) rotate(calc(-360deg / var(--total) * var(--i)));
  transform-origin: 0 0;
  padding: .42rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,7,18,.76);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}

.noctra-logo-loop-mount { overflow: hidden; margin-block: 24px; }
.noctra-logo-loop {
  width: 100%;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.025);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.noctra-logo-loop__track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: noctraLogoLoop 26s linear infinite;
}
.noctra-logo-loop:hover .noctra-logo-loop__track { animation-play-state: paused; }
@keyframes noctraLogoLoop { to { transform: translateX(-50%); } }
.noctra-logo-loop__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: .58rem .78rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}
.noctra-logo-loop__mark {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 6px;
  border-radius: 10px;
  background: rgba(47,38,248,.24);
  color: #fff;
  font-size: .68rem;
  letter-spacing: -.04em;
}
.noctra-logo-loop__label { white-space: nowrap; color: var(--noctra-soft); }

.noctra-about-visual-intro,
.noctra-portfolio-visual-intro {
  margin: 0 auto 44px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 18%, rgba(47,38,248,.16), transparent 28rem),
    radial-gradient(circle at 82% 36%, rgba(0,213,255,.08), transparent 22rem),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.018));
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.noctra-about-visual-intro {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1fr);
  gap: clamp(18px, 5vw, 54px);
  align-items: center;
}
.noctra-kicker {
  margin: 0 0 10px !important;
  color: var(--noctra-accent-2) !important;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 900;
}
.noctra-about-visual-intro h2,
.noctra-portfolio-visual-intro h2 {
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -.055em;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: .95;
}
.noctra-about-visual-intro__copy > p:not(.noctra-kicker) {
  color: var(--noctra-soft);
  font-size: 1.02rem;
}

.noctra-magic-bento-mount { margin-top: 26px; }
.noctra-magic-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  perspective: 1100px;
}
.noctra-magic-bento__card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  color: #fff !important;
  text-decoration: none !important;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,255,255,.16), transparent 18rem),
    linear-gradient(160deg, rgba(47,38,248,.2), rgba(255,255,255,.035) 48%, rgba(0,213,255,.08));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .22s ease, border-color .22s ease, filter .22s ease;
  box-shadow: 0 28px 90px rgba(0,0,0,.28);
}
.noctra-magic-bento__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 0%, rgba(47,38,248,.32), transparent 18rem),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 48%);
  opacity: .85;
  pointer-events: none;
}
.noctra-magic-bento__card > * { position: relative; z-index: 1; }
.noctra-magic-bento__card--0,
.noctra-magic-bento__card--3 { grid-column: span 2; }
.noctra-magic-bento__card:hover { border-color: rgba(255,255,255,.22); filter: brightness(1.08); }
.noctra-magic-bento__eyebrow {
  color: var(--noctra-accent-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 900;
}
.noctra-magic-bento__title {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.32rem, 2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.noctra-magic-bento__card p { max-width: 42ch; color: var(--noctra-soft); }
.noctra-magic-bento__cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  color: #fff;
  font-weight: 900;
}
.noctra-magic-bento__cta::after { content: " →"; margin-left: 4px; }

@media (max-width: 900px) {
  .noctra-about-visual-intro { grid-template-columns: 1fr; }
  .noctra-magic-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noctra-magic-bento__card--0,
  .noctra-magic-bento__card--3 { grid-column: span 1; }
}
@media (max-width: 600px) {
  .noctra-magic-bento { grid-template-columns: 1fr; }
  .noctra-magic-rings { width: min(340px, 92vw); }
  .noctra-magic-rings__chip { font-size: .62rem; padding: .34rem .48rem; }
}
@media (prefers-reduced-motion: reduce) {
  .noctra-gradient-blinds__blind,
  .noctra-magic-rings__ring,
  .noctra-magic-rings__orbit,
  .noctra-logo-loop__track { animation: none !important; }
}

/* v0.14: closer ReactBits-style integrations. */
.noctra-gradient-blinds__stage--canvas {
  background: #02030a;
}
.noctra-gradient-blinds__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.noctra-home-canvas .wp-block-header-media-no-image .noctra-gradient-blinds {
  opacity: .96;
}
.noctra-home-canvas .wp-block-header-media-no-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1,2,8,.1) 0%, rgba(1,2,8,.06) 54%, rgba(1,2,8,.82) 100%),
    radial-gradient(circle at 50% 45%, rgba(0,0,0,.05), rgba(0,0,0,.68) 72%);
}
.noctra-home-canvas .wp-block-header-media-no-image .wp-block-cover__inner-container {
  z-index: 3;
}
.noctra-home-canvas .wp-block-header-media-no-image {
  background: #02030a !important;
}
.noctra-home-canvas .wp-block-header-media-no-image .noctra-gradient-blinds__strips,
.noctra-home-canvas .wp-block-header-media-no-image .noctra-gradient-blinds__spotlight {
  display: none !important;
}

/* Ensure ReactBits-style intros appear even on Elementor-authored pages. */
.noctra-elementor-page > .noctra-shell {
  margin-top: clamp(42px, 7vw, 92px);
  margin-bottom: clamp(28px, 5vw, 64px);
}

.noctra-about-visual-intro,
.noctra-portfolio-visual-intro {
  position: relative;
  overflow: hidden;
}
.noctra-about-visual-intro::before,
.noctra-portfolio-visual-intro::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,159,252,.08), transparent 22rem),
    radial-gradient(circle at 82% 0%, rgba(82,39,255,.16), transparent 26rem),
    linear-gradient(135deg, rgba(255,255,255,.055), transparent 48%);
  pointer-events: none;
}
.noctra-about-visual-intro > *,
.noctra-portfolio-visual-intro > * {
  position: relative;
  z-index: 1;
}
.noctra-magic-rings__stage::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  border: 1px dashed rgba(255,255,255,.13);
  animation: noctraRingSpin 34s linear infinite reverse;
}
.noctra-magic-rings__chip {
  backdrop-filter: blur(10px);
}
.noctra-logo-loop {
  box-shadow: inset 0 0 38px rgba(82,39,255,.08), 0 20px 80px rgba(0,0,0,.24);
}
.noctra-magic-bento {
  grid-auto-rows: minmax(190px, auto);
}
.noctra-magic-bento__card {
  min-height: 240px;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255,159,252,.18), transparent 15rem),
    radial-gradient(circle at 18% 10%, rgba(82,39,255,.24), transparent 20rem),
    linear-gradient(155deg, rgba(255,255,255,.075), rgba(7,10,24,.92) 48%, rgba(0,213,255,.09));
}
.noctra-magic-bento__card--0 {
  min-height: 320px;
}
.noctra-magic-bento__card--1,
.noctra-magic-bento__card--2 {
  min-height: 230px;
}
.noctra-magic-bento__card--3 {
  min-height: 260px;
}
.noctra-magic-bento__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .42;
  pointer-events: none;
}
.noctra-magic-bento__card:hover {
  transform: translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@media (max-width: 700px) {
  .noctra-home-canvas .wp-block-header-media-no-image::after {
    background: linear-gradient(180deg, rgba(1,2,8,.05), rgba(1,2,8,.75));
  }
  .noctra-magic-bento__card,
  .noctra-magic-bento__card--0,
  .noctra-magic-bento__card--1,
  .noctra-magic-bento__card--2,
  .noctra-magic-bento__card--3 {
    min-height: 210px;
  }
}

/* v0.15: replace grotesque hero background with subtle Shape Grid, move motion to metrics, fix social icons and rings. */
.noctra-home-canvas .wp-block-header-media-no-image {
  position: relative;
  overflow: hidden;
  background: #03040b !important;
}
.noctra-home-canvas .wp-block-header-media-no-image .noctra-shape-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100vw;
  max-width: none;
  min-height: 100% !important;
  margin: 0 !important;
  pointer-events: auto;
}
.noctra-home-canvas .wp-block-header-media-no-image .wp-block-cover__background {
  opacity: 0 !important;
}
.noctra-home-canvas .wp-block-header-media-no-image .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}
.noctra-home-canvas .wp-block-header-media-no-image::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 26%, rgba(47,38,248,.14), transparent 24rem),
    linear-gradient(180deg, rgba(2,3,10,.18) 0%, rgba(2,3,10,.02) 38%, rgba(2,3,10,.72) 100%) !important;
}
.noctra-shape-grid {
  position: relative;
  overflow: hidden;
  background: #03040b;
  --sg-x: 52%;
  --sg-y: 22%;
}
.noctra-shape-grid__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--sg-x) var(--sg-y), rgba(47,38,248,.36), transparent 22rem),
    radial-gradient(circle at 82% 8%, rgba(0,213,255,.10), transparent 28rem),
    linear-gradient(180deg, #040613 0%, #02030a 100%);
}
.noctra-shape-grid__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at var(--sg-x) var(--sg-y), #000 0, #000 24rem, transparent 46rem);
  opacity: .55;
}
.noctra-shape-grid__glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at var(--sg-x) var(--sg-y), rgba(255,255,255,.13), rgba(47,38,248,.18) 14rem, transparent 34rem);
  filter: blur(10px);
}
.noctra-shape-grid__cells {
  position: absolute;
  inset: -6% -4%;
}
.noctra-shape-grid__cell {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(24px, 3.1vw, 54px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255, calc(.025 + var(--light, 0) * .26));
  border-radius: 14px;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255, calc(.04 + var(--light, 0) * .28)), transparent 42%),
    linear-gradient(135deg, rgba(47,38,248, calc(.04 + var(--light, 0) * .32)), rgba(0,213,255, calc(.015 + var(--light, 0) * .16)));
  box-shadow:
    0 0 calc(8px + var(--light, 0) * 38px) rgba(47,38,248, calc(var(--light, 0) * .42)),
    inset 0 0 22px rgba(255,255,255, calc(.015 + var(--light, 0) * .08));
  opacity: calc(.08 + var(--depth, .22) * .74);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 7deg)) scale(calc(.68 + var(--light, 0) * .36));
  transition: opacity .2s linear, border-color .2s linear, box-shadow .2s linear, transform .2s linear;
}
.noctra-shape-grid__cell--circle { border-radius: 999px; }
.noctra-shape-grid__cell--diamond { border-radius: 12px; transform: translate(-50%, -50%) rotate(45deg) scale(calc(.64 + var(--light, 0) * .34)); }
.noctra-shape-grid__cell:nth-child(3n) { width: clamp(18px, 2.2vw, 38px); }
.noctra-shape-grid__cell:nth-child(4n) { opacity: calc(.04 + var(--depth, .22) * .45); }
.noctra-shape-grid__cell:nth-child(5n) { filter: blur(.2px); }

/* Hero text stays readable; ReactBits-style movement belongs to metrics, not paragraphs. */
.noctra-migrated-home .header-title-wrapper h2,
.noctra-migrated-home .header-title-wrapper h2.wp-block-heading {
  color: #fff;
  text-shadow: 0 0 34px rgba(47,38,248,.28);
}
.noctra-migrated-home .wp-block-stats .stat-block .has-extra-large-font-size {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(47,38,248,.3);
}
.noctra-migrated-home .wp-block-stats .stat-block {
  transform: translateY(0);
  transition: transform .18s ease, color .18s ease;
}
.noctra-migrated-home .wp-block-stats .stat-block:hover {
  transform: translateY(-3px);
}

/* Social links: one icon system, no duplicated text/dock blocks. */
.noctra-social-link {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  gap: 0;
}
.noctra-social-icon,
.noctra-social-fallback {
  display: block;
  width: 16px;
  height: 16px;
}
.noctra-social-fallback {
  display: grid;
  place-items: center;
  font-size: .62rem;
  line-height: 1;
}
.noctra-social-label { margin-left: 8px; }
.noctra-footer__social .noctra-social-label,
.noctra-header-social .noctra-social-label { display: none; }
.noctra-footer__social-wrap { display: flex; justify-content: flex-end; align-items: center; }
.noctra-footer__social { display: flex; gap: 10px; justify-content: flex-end; }
.noctra-footer__social-wrap .noctra-dock { display: none !important; }

/* Magic Rings: keep chips outside the logo and stop overlapping. */
.noctra-magic-rings {
  width: min(430px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  overflow: visible;
}
.noctra-magic-rings__stage {
  overflow: visible;
  isolation: isolate;
}
.noctra-magic-rings__orbit {
  position: absolute;
  inset: 0;
  animation: none !important;
  z-index: 2;
  pointer-events: none;
}
.noctra-magic-rings__chip {
  transform: translate(-50%, -50%) !important;
  transform-origin: center !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 128px;
  min-height: 34px;
  padding: .32rem .52rem;
  font-size: .66rem;
  line-height: 1;
  animation: noctraChipFloat 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .13s);
}
.noctra-magic-rings__chip-mark {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(47,38,248,.32);
  color: #fff;
  font-size: .56rem;
  font-weight: 900;
}
.noctra-magic-rings__chip-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.noctra-magic-rings__core {
  z-index: 4;
  width: 23%;
}
@keyframes noctraChipFloat {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -6px; }
}
.noctra-about-visual-intro__rings {
  overflow: visible;
  min-width: 0;
}
.noctra-about-visual-intro {
  overflow: hidden;
}

/* Portfolio bento should be visible before legacy grid content. */
.noctra-portfolio-visual-intro {
  width: min(1120px, calc(100% - 32px));
  margin-top: clamp(36px, 6vw, 76px);
}

@media (max-width: 900px) {
  .noctra-shape-grid__cell { width: clamp(18px, 7vw, 38px); }
  .noctra-magic-rings { width: min(340px, 92vw); }
  .noctra-magic-rings__chip {
    max-width: 104px;
    font-size: .58rem;
    padding: .26rem .42rem;
  }
  .noctra-magic-rings__chip-mark { min-width: 21px; height: 21px; font-size: .5rem; }
  .noctra-footer__social-wrap { justify-content: flex-start; }
}
.screen-reader-text {
  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;
}

/* v0.16: animated React hero background. Shape Grid remains available as optional lab component. */
.noctra-home-canvas .wp-block-header-media-no-image .noctra-shape-grid {
  display: none !important;
}

.noctra-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.noctra-hero-bg__stage,
.noctra-hero-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.noctra-hero-bg__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 15, .18), rgba(3, 4, 15, .18) 45%, rgba(3, 4, 15, .66) 100%),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.08), transparent 34%);
  pointer-events: none;
}

.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image {
  background: #02030a !important;
  overflow: hidden !important;
}

.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image .wp-block-cover__background,
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image::before {
  opacity: 0 !important;
}

.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image .wp-block-cover__inner-container::before {
  content: "";
  position: absolute;
  inset: -48px 50% auto;
  width: min(760px, 84vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47,38,248,.24), rgba(47,38,248,.08) 42%, transparent 72%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}


/* v0.17: guaranteed animated hero layer.
   This runs even if the React island is blocked by cache/minify, so the home hero never appears static. */
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image {
  isolation: isolate !important;
  position: relative !important;
  background:
    radial-gradient(circle at 50% 16%, rgba(47,38,248,.32), transparent 28%),
    radial-gradient(circle at 78% 24%, rgba(0,213,255,.16), transparent 26%),
    #02030a !important;
}
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
  background:
    radial-gradient(circle at var(--noctra-hero-x, 50%) var(--noctra-hero-y, 28%), rgba(255,255,255,.16), transparent 0 14%, rgba(47,38,248,.22) 15%, transparent 34%),
    linear-gradient(105deg, transparent 0 9%, rgba(0,213,255,.08) 10%, rgba(47,38,248,.18) 14%, transparent 20% 25%, rgba(93,77,255,.16) 26%, transparent 32% 100%),
    repeating-linear-gradient(104deg, rgba(255,255,255,.045) 0 1px, transparent 1px 82px),
    radial-gradient(circle at 20% 72%, rgba(0,213,255,.15), transparent 28%),
    radial-gradient(circle at 82% 52%, rgba(47,38,248,.22), transparent 34%);
  filter: saturate(135%);
  animation: noctraHeroSweep 12s ease-in-out infinite alternate, noctraHeroDrift 18s linear infinite;
  transform: translate3d(0,0,0);
}
.noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image .wp-block-cover__inner-container {
  position: relative !important;
  z-index: 2 !important;
}
.noctra-hero-bg {
  background:
    radial-gradient(circle at var(--noctra-hero-x, 52%) var(--noctra-hero-y, 28%), rgba(255,255,255,.16), transparent 18%),
    radial-gradient(circle at 34% 24%, rgba(47,38,248,.32), transparent 35%),
    radial-gradient(circle at 76% 34%, rgba(0,213,255,.14), transparent 32%),
    #02030a !important;
}
.noctra-hero-bg::before,
.noctra-hero-bg::after,
.noctra-hero-bg__fallback {
  content: "";
  position: absolute;
  inset: -16%;
  pointer-events: none;
  opacity: .85;
}
.noctra-hero-bg::before {
  background:
    linear-gradient(105deg, transparent 0 8%, rgba(0,213,255,.11) 9%, rgba(47,38,248,.22) 14%, transparent 19% 28%, rgba(145,92,255,.16) 29%, transparent 37% 100%),
    repeating-linear-gradient(105deg, rgba(255,255,255,.06) 0 1px, transparent 1px 78px);
  animation: noctraHeroSweep 10s ease-in-out infinite alternate;
}
.noctra-hero-bg::after {
  background:
    radial-gradient(circle at 18% 80%, rgba(0,213,255,.20), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(47,38,248,.28), transparent 26%),
    radial-gradient(circle at 48% 50%, rgba(255,255,255,.08), transparent 18%);
  animation: noctraHeroPulse 7s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.noctra-hero-bg__fallback {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(0,213,255,.45) 0 1px, transparent 1.4px);
  background-size: 76px 76px, 124px 124px;
  background-position: 0 0, 24px 48px;
  opacity: .16;
  animation: noctraHeroParticles 14s linear infinite;
}
@keyframes noctraHeroSweep {
  0% { transform: translate3d(-7%, -2%, 0) rotate(-3deg) scale(1.05); opacity: .52; }
  45% { opacity: .96; }
  100% { transform: translate3d(9%, 3%, 0) rotate(2deg) scale(1.12); opacity: .78; }
}
@keyframes noctraHeroDrift {
  0% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 260px 0, 180px 0, -80px 40px, 80px -40px; }
}
@keyframes noctraHeroPulse {
  0% { transform: scale(1) translate3d(-2%, 0, 0); opacity: .44; }
  100% { transform: scale(1.08) translate3d(2%, -2%, 0); opacity: .95; }
}
@keyframes noctraHeroParticles {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(86px,-86px,0); }
}
@media (prefers-reduced-motion: reduce) {
  .noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image::after,
  .noctra-hero-bg::before,
  .noctra-hero-bg::after,
  .noctra-hero-bg__fallback {
    animation: none !important;
  }
}

/* v0.18 RC hardening: spacing, CV block, centering, mobile and reduced motion. */
.noctra-migrated-home .wp-block-hero-content .noctra-contact-cta,
.noctra-migrated-home .wp-block-hero-content .wp-block-media-text__content > .wp-block-buttons:last-child {
  margin-top: clamp(18px, 2.6vw, 34px) !important;
}

.noctra-migrated-home .wp-block-feature-content .wp-block-group-content {
  width: 100%;
  display: flex;
  justify-content: center;
}
.noctra-migrated-home .wp-block-feature-content .noctra-certifications-grid,
.noctra-migrated-home .wp-block-feature-content .wp-block-group-content > .wp-block-columns {
  width: min(100%, 980px) !important;
  margin-inline: auto !important;
  justify-content: center !important;
  gap: clamp(18px, 2.2vw, 28px) !important;
}
.noctra-migrated-home .wp-block-feature-content .noctra-certifications-grid > .wp-block-column {
  flex: 0 1 300px !important;
  max-width: 320px;
}

.noctra-cv-section {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 32vw, 460px);
  display: grid;
  place-items: center;
  padding-block: clamp(76px, 10vw, 132px) !important;
  border-block: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 25% 60%, rgba(0,213,255,.10), transparent 34%),
    radial-gradient(circle at 72% 44%, rgba(47,38,248,.18), transparent 38%),
    linear-gradient(180deg, rgba(2,3,10,.9), rgba(3,4,14,.96)) !important;
  isolation: isolate;
}
.noctra-cv-section__content {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin-inline: auto;
}
.noctra-cv-section__content h2 {
  max-width: 760px;
  margin-inline: auto;
  text-wrap: balance;
}
.noctra-cv-section__text {
  max-width: 620px;
  margin-inline: auto;
  color: var(--noctra-muted);
}
.noctra-cv-motion {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.noctra-cv-motion::before {
  content: "";
  position: absolute;
  inset: auto 50% 20%;
  width: min(760px, 80vw);
  height: 220px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(47,38,248,.38), rgba(0,213,255,.12) 42%, transparent 72%);
  filter: blur(26px);
  animation: noctraCvGlow 6s ease-in-out infinite alternate;
}
.noctra-cv-motion__orb {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 35% 35%, rgba(0,213,255,.18), rgba(47,38,248,.12), transparent 68%);
  filter: blur(.2px);
  opacity: .75;
}
.noctra-cv-motion__orb--one {
  width: clamp(320px, 38vw, 620px);
  height: clamp(320px, 38vw, 620px);
  left: -10%;
  bottom: -42%;
  animation: noctraCvFloat 12s ease-in-out infinite alternate;
}
.noctra-cv-motion__orb--two {
  width: clamp(260px, 32vw, 520px);
  height: clamp(260px, 32vw, 520px);
  right: -6%;
  top: -36%;
  animation: noctraCvFloat 14s ease-in-out infinite alternate-reverse;
}
.noctra-cv-motion__line {
  position: absolute;
  left: -8%;
  right: -8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(47,38,248,.55), rgba(0,213,255,.32), transparent);
  transform-origin: center;
  opacity: .62;
  filter: drop-shadow(0 0 18px rgba(47,38,248,.32));
}
.noctra-cv-motion__line--one { top: 42%; transform: rotate(-8deg); animation: noctraCvLine 8s ease-in-out infinite alternate; }
.noctra-cv-motion__line--two { top: 58%; transform: rotate(7deg); animation: noctraCvLine 10s ease-in-out infinite alternate-reverse; }
.noctra-cv-motion__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,.65), transparent 72%);
  opacity: .42;
  animation: noctraCvGrid 18s linear infinite;
}
@keyframes noctraCvGlow { from { opacity: .45; transform: translateX(-50%) scale(.96); } to { opacity: .92; transform: translateX(-50%) scale(1.08); } }
@keyframes noctraCvFloat { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6%, -4%, 0) scale(1.08); } }
@keyframes noctraCvLine { from { background-position: 0 0; opacity: .38; } to { background-position: 280px 0; opacity: .84; } }
@keyframes noctraCvGrid { from { background-position: 0 0; } to { background-position: 74px -74px; } }

.noctra-migrated-home .noctra-featured-posts-list + .wp-block-buttons {
  margin-top: clamp(24px, 4vw, 40px) !important;
  margin-bottom: clamp(64px, 8vw, 116px) !important;
}
.noctra-migrated-home .noctra-featured-posts-list + .wp-block-buttons .wp-block-button__link {
  min-width: 190px;
}

@media (max-width: 900px) {
  .noctra-migrated-home .wp-block-hero-content .wp-block-media-text {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .noctra-migrated-home .wp-block-hero-content .wp-block-media-text__media {
    width: min(420px, 100%);
    margin-inline: auto;
  }
  .noctra-migrated-home .wp-block-hero-content .wp-block-media-text__content {
    text-align: center;
  }
  .noctra-migrated-home .wp-block-hero-content .wp-block-media-text__content h2,
  .noctra-migrated-home .wp-block-hero-content .wp-block-media-text__content h3,
  .noctra-migrated-home .wp-block-hero-content .wp-block-media-text__content p {
    text-align: center !important;
  }
  .noctra-migrated-home .wp-block-feature-content .noctra-certifications-grid > .wp-block-column {
    max-width: 420px;
  }
  .noctra-cv-section { min-height: 360px; padding-inline: 18px !important; }
}

@media (max-width: 640px) {
  .noctra-migrated-home .wp-block-cover.wp-block-header-media-no-image {
    min-height: auto !important;
    padding-block: 92px 64px !important;
  }
  .noctra-hero-react-frame { width: 100%; }
  .noctra-migrated-home .wp-block-header-media-no-image .header-title-wrapper h2 {
    font-size: clamp(2rem, 11vw, 3.1rem) !important;
  }
  .noctra-footer__inner { gap: 22px; }
  .noctra-footer-menu { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .noctra-cv-motion__grid,
  .noctra-cv-motion__line,
  .noctra-cv-motion__orb,
  .noctra-cv-motion::before {
    animation: none !important;
  }
}
