/*
* Cyberpunk / terminal skin for the portfolio.
* Loaded after css/main.css and only overrides what the theme needs.
*
*  1. Design tokens
*  2. Base layer (background, grid, scanlines, type, scrollbar)
*  3. Boot screen (preloader)
*  4. Shell (page container, header, nav)
*  5. Hero (glitch, roles, actions, photo frame)
*  6. Blocks (stats, terminal, block titles)
*  7. Timeline
*  8. Credentials
*  9. Forms & buttons
* 10. Footer, 404, utilities
* 11. Responsive
* 12. Motion preferences
*/

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=JetBrains+Mono:wght@300;400;500;700&display=swap');

/* =============================================================================
   1. Design tokens
============================================================================= */
:root {
  --cp-bg: #04060b;
  --cp-bg-soft: #070b12;
  --cp-panel: #0a0e16;
  --cp-panel-2: #0d1220;
  --cp-line: #182233;
  --cp-line-soft: rgba(0, 240, 255, 0.14);
  --cp-cyan: #00f0ff;
  --cp-cyan-dim: #0a8f99;
  --cp-magenta: #ff2bd6;
  --cp-lime: #b6ff3c;
  --cp-violet: #7b5cff;
  --cp-white: #eaf7ff;
  --cp-text: #b7c4d6;
  --cp-dim: #6d7f95;
  --cp-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --cp-display: 'Chakra Petch', 'JetBrains Mono', ui-monospace, sans-serif;
  --cp-glow-cyan: 0 0 14px rgba(0, 240, 255, 0.45);
  --cp-glow-magenta: 0 0 14px rgba(255, 43, 214, 0.4);
  --cp-cut: 16px;
}

/* =============================================================================
   2. Base layer
============================================================================= */
body.page.cp-page {
  background-color: var(--cp-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(0, 240, 255, 0.11), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255, 43, 214, 0.1), transparent 45%),
    radial-gradient(circle at 50% 120%, rgba(123, 92, 255, 0.12), transparent 55%);
  background-size: 100% 100%;
  background-attachment: fixed;
  color: var(--cp-text);
}

/* Fixed layer that holds the ambient background effects */
.cp-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Animated code rain drawn on a canvas by js/cyberpunk.js */
.cp-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Faint technical grid */
.cp-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

.cp-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.cp-glow--cyan {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  background: rgba(0, 240, 255, 0.22);
  animation: cp-drift 26s ease-in-out infinite alternate;
}

.cp-glow--magenta {
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -140px;
  background: rgba(255, 43, 214, 0.18);
  animation: cp-drift 32s ease-in-out infinite alternate-reverse;
}

@keyframes cp-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.15); }
}

/* CRT scanlines */
.cp-scanlines {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.16;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.5) 3px,
    rgba(0, 0, 0, 0.5) 4px
  );
  mix-blend-mode: multiply;
}

.cp-beams {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 240, 255, 0.035) 48%,
    rgba(0, 240, 255, 0.07) 50%,
    rgba(0, 240, 255, 0.035) 52%,
    transparent 100%
  );
  background-size: 100% 220vh;
  animation: cp-beam 14s linear infinite;
}

@keyframes cp-beam {
  from { background-position: 0 -110vh; }
  to { background-position: 0 110vh; }
}

/* The template ships with a missing main_bg.png; replace it with a gradient */
.lm-animated-bg {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: none;
  background-color: transparent;
  z-index: 0;
  overflow: hidden;
}

.page-scroll {
  position: relative;
  z-index: 3;
}

::selection {
  background: rgba(0, 240, 255, 0.28);
  color: #ffffff;
}

/* Custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #1d2b3d transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #05080e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--cp-cyan), var(--cp-violet));
  border: 2px solid #05080e;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--cp-cyan), var(--cp-magenta));
}

/* Typography */
body,
p {
  font-family: 'Poppins', Helvetica, sans-serif;
  color: var(--cp-text);
  font-size: 14.5px;
  line-height: 1.85;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cp-display);
  color: var(--cp-white);
  letter-spacing: 0.01em;
}

a {
  color: var(--cp-cyan);
}

a:hover,
a:focus {
  color: #9dfbff;
}

strong {
  color: var(--cp-white);
  font-weight: 600;
}

code,
kbd,
pre,
samp {
  font-family: var(--cp-mono);
}

pre {
  background: #060910;
  border: 1px solid var(--cp-line);
  border-radius: 6px;
  color: var(--cp-text);
}

/* Shared type helpers */
.cp-mono {
  font-family: var(--cp-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-dim);
}

.cp-accent {
  color: var(--cp-cyan);
}

/* Scroll reveal */
html.js .cp-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js .cp-reveal.cp-in {
  opacity: 1;
  transform: none;
}

/* =============================================================================
   3. Boot screen
============================================================================= */
.preloader,
.preloader-portfolio {
  background-color: #03050a;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.preloader-animation {
  width: min(560px, calc(100% - 48px));
}

.cp-boot {
  text-align: left;
  font-family: var(--cp-mono);
}

.cp-boot-title {
  color: var(--cp-lime);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.cp-boot-title span {
  color: var(--cp-cyan);
}

.cp-boot-log {
  display: block;
  font-size: 12px;
  line-height: 2;
  color: var(--cp-dim);
}

.cp-boot-log span {
  display: block;
  opacity: 0;
  animation: cp-boot-line 0.4s ease forwards;
}

.cp-boot-log span:nth-child(1) { animation-delay: 0.15s; }
.cp-boot-log span:nth-child(2) { animation-delay: 0.5s; }
.cp-boot-log span:nth-child(3) { animation-delay: 0.85s; }
.cp-boot-log span:nth-child(4) { animation-delay: 1.2s; }

.cp-boot-log b {
  color: var(--cp-cyan);
  font-weight: 500;
}

@keyframes cp-boot-line {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

.preloader-spinner {
  width: 100%;
  height: 3px;
  margin: 22px 0 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--cp-cyan), var(--cp-magenta));
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.6);
  -webkit-transform-origin: left center;
  transform-origin: left center;
  -webkit-animation: cp-boot-bar 1.7s cubic-bezier(0.6, 0, 0.2, 1) forwards;
  animation: cp-boot-bar 1.7s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}

@keyframes cp-boot-bar {
  0% { transform: scaleX(0); opacity: 1; }
  85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* =============================================================================
   4. Shell — page container, header, navigation
============================================================================= */
.page-container {
  background-color: rgba(8, 11, 18, 0.94);
  background-image:
    linear-gradient(180deg, rgba(0, 240, 255, 0.045), transparent 220px),
    linear-gradient(180deg, #080b12 0%, #070a11 100%);
  border: 1px solid rgba(0, 240, 255, 0.16);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 40px 120px -40px rgba(0, 0, 0, 0.95),
    0 0 70px -30px rgba(0, 240, 255, 0.35);
}

/* No backdrop-filter here on purpose: it would turn the container into the
   containing block of the fixed mobile header and drawer, making them scroll
   with the page. */

/* Header */
.header {
  padding-bottom: 22px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--cp-line);
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--cp-cyan), transparent);
}

.logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 3px;
  margin-right: 14px;
  margin-top: 3px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 18px -4px rgba(0, 240, 255, 0.6);
  filter: saturate(0.4) contrast(1.1) brightness(1.1);
  transition: filter 0.35s ease, box-shadow 0.35s ease;
}

.text-logo:hover .logo-symbol {
  filter: saturate(1.15) contrast(1.05) brightness(1.05);
  box-shadow: 0 0 26px -2px rgba(0, 240, 255, 0.85);
}

.cp-logo-mark {
  display: inline-grid;
  place-items: center;
  float: left;
  width: 42px;
  height: 46px;
  margin: 2px 14px 0 0;
  background: linear-gradient(140deg, rgba(255, 59, 31, 0.4), rgba(255, 194, 51, 0.2) 55%, rgba(138, 70, 35, 0.3));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: #ffd97a;
  font-family: var(--cp-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 150, 40, 0.85);
  transition: color 0.3s ease, filter 0.3s ease;
}

.text-logo a:hover .cp-logo-mark {
  color: #ffc233;
  filter: drop-shadow(0 0 10px rgba(255, 110, 25, 0.9));
}

.logo-text {
  font-family: var(--cp-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cp-white);
  line-height: 50px;
}

.logo-text::after {
  content: '_';
  color: var(--cp-cyan);
  margin-left: 2px;
  animation: cp-caret 1.1s steps(2, start) infinite;
}

@keyframes cp-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Nav */
.site-main-menu li {
  margin-right: 6px;
}

.site-main-menu li a {
  position: relative;
  display: inline-block;
  font-family: var(--cp-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cp-dim);
  opacity: 1;
  padding: 0 12px;
  line-height: 50px;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.site-main-menu li a::before {
  content: '[';
  color: transparent;
  margin-right: 4px;
  transition: color 0.25s ease;
}

.site-main-menu li a::after {
  content: ']';
  color: transparent;
  margin-left: 4px;
  transition: color 0.25s ease;
}

.site-main-menu li a:hover,
.site-main-menu li a:focus,
.site-main-menu li.current-menu-item > a,
body.cp-page-home .site-main-menu li:nth-child(1) > a,
body.cp-page-experience .site-main-menu li:nth-child(2) > a,
body.cp-page-contact .site-main-menu li:nth-child(3) > a {
  color: var(--cp-cyan);
  opacity: 1;
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.65);
}

.site-main-menu li a:hover::before,
.site-main-menu li a:hover::after,
body.cp-page-home .site-main-menu li:nth-child(1) > a::before,
body.cp-page-home .site-main-menu li:nth-child(1) > a::after,
body.cp-page-experience .site-main-menu li:nth-child(2) > a::before,
body.cp-page-experience .site-main-menu li:nth-child(2) > a::after,
body.cp-page-contact .site-main-menu li:nth-child(3) > a::before,
body.cp-page-contact .site-main-menu li:nth-child(3) > a::after {
  color: var(--cp-magenta);
}

/* Live status chip in the header */
.cp-head-meta {
  float: right;
  margin-left: 22px;
}

.cp-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid rgba(182, 255, 60, 0.3);
  border-radius: 2px;
  background: rgba(182, 255, 60, 0.06);
  font-family: var(--cp-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cp-lime);
}

.cp-clock {
  padding-left: 8px;
  border-left: 1px solid rgba(182, 255, 60, 0.25);
  color: #d8ff9e;
  letter-spacing: 0.1em;
}

.cp-foot-prompt {
  color: var(--cp-cyan);
  margin-right: 4px;
}

.cp-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cp-lime);
  box-shadow: 0 0 10px var(--cp-lime);
  animation: cp-pulse 1.8s ease-in-out infinite;
}

@keyframes cp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.menu-toggle {
  color: var(--cp-cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}

/* =============================================================================
   5. Hero
============================================================================= */
.home-content {
  margin: 4% 2% 0;
}

.home-text.hp-left {
  padding-left: 34px;
}

.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 2px;
  background: rgba(0, 240, 255, 0.05);
  font-family: var(--cp-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cp-cyan);
}

.cp-eyebrow .cp-caret {
  color: var(--cp-magenta);
}

.cp-eyebrow .cp-type::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 12px;
  margin-left: 3px;
  background: var(--cp-cyan);
  vertical-align: -1px;
  animation: cp-caret 1s steps(2, start) infinite;
}

/* Glitch name */
.cp-glitch {
  position: relative;
  display: inline-block;
  margin: 0 0 6px;
  font-family: var(--cp-display);
  font-weight: 700;
  color: var(--cp-white);
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.22);
}

.cp-glitch::before,
.cp-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
}

.cp-glitch::before {
  color: var(--cp-cyan);
  text-shadow: 2px 0 var(--cp-magenta);
  animation: cp-slice-a 9s infinite linear alternate;
}

.cp-glitch::after {
  color: var(--cp-magenta);
  text-shadow: -2px 0 var(--cp-cyan);
  animation: cp-slice-b 11s infinite linear alternate;
}

@keyframes cp-slice-a {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: translate3d(0, 0, 0); }
  91.5% { clip-path: inset(14% 0 62% 0); transform: translate3d(-4px, 0, 0); }
  93% { clip-path: inset(58% 0 20% 0); transform: translate3d(4px, 0, 0); }
  94.5% { clip-path: inset(32% 0 44% 0); transform: translate3d(-3px, 0, 0); }
  96% { clip-path: inset(0 0 100% 0); transform: translate3d(0, 0, 0); }
}

@keyframes cp-slice-b {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); transform: translate3d(0, 0, 0); }
  89.5% { clip-path: inset(46% 0 32% 0); transform: translate3d(3px, 0, 0); }
  91% { clip-path: inset(22% 0 58% 0); transform: translate3d(-3px, 0, 0); }
  92.5% { clip-path: inset(70% 0 8% 0); transform: translate3d(2px, 0, 0); }
  94% { clip-path: inset(0 0 100% 0); transform: translate3d(0, 0, 0); }
}

.home-text h1 {
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 10px;
}

.cp-alias {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--cp-mono);
  font-size: 13px;
}

.cp-alias-key {
  color: var(--cp-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.cp-alias-key::after {
  content: ':';
}

.cp-alias-val {
  color: var(--cp-magenta);
  text-shadow: 0 0 16px rgba(255, 43, 214, 0.45);
}

/* Rotating roles */
.cp-role {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid rgba(0, 240, 255, 0.5);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.07), transparent 70%);
}

.cp-role > .cp-role-key {
  flex: 0 0 auto;
  font-family: var(--cp-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cp-dim);
}

.cp-role > .text-rotation {
  flex: 1 1 auto;
  min-width: 0;
}

/* Rotating roles: owl only clips once it has booted, so hide the extra items
   until then to avoid a flash of three stacked roles. */
.text-rotation:not(.owl-loaded) .item {
  display: none;
}

.text-rotation:not(.owl-loaded) .item:first-child {
  display: block;
}

.home-text .text-rotation .item h4 {
  margin: 0;
  font-family: var(--cp-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cp-cyan);
  text-shadow: 0 0 22px rgba(0, 240, 255, 0.35);
}

.cp-lead {
  color: var(--cp-text);
  font-size: 14.5px;
  line-height: 1.9;
  max-width: 52ch;
  margin-bottom: 26px;
}

.cp-lead strong {
  color: var(--cp-white);
  border-bottom: 1px dashed rgba(0, 240, 255, 0.45);
}

/* Hero actions */
.cp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 2px;
  background: rgba(0, 240, 255, 0.05);
  font-family: var(--cp-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-cyan);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.28s ease;
}

.cp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(0, 240, 255, 0.18), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.cp-btn:hover,
.cp-btn:focus {
  color: #02121a;
  border-color: var(--cp-cyan);
  background: var(--cp-cyan);
  box-shadow: 0 0 30px -6px rgba(0, 240, 255, 0.9);
}

.cp-btn:hover::before {
  transform: translateX(120%);
}

.cp-btn--primary {
  border-color: var(--cp-magenta);
  background: rgba(255, 43, 214, 0.08);
  color: var(--cp-magenta);
}

.cp-btn--primary:hover,
.cp-btn--primary:focus {
  background: var(--cp-magenta);
  color: #12010e;
  box-shadow: 0 0 30px -6px rgba(255, 43, 214, 0.9);
}

.cp-btn span {
  position: relative;
  z-index: 1;
}

/* Photo frame */
.cp-photo-wrap {
  position: relative;
  padding: 14px;
  margin-bottom: 10px;
}

.cp-photo-wrap::before,
.cp-photo-wrap::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.cp-photo-wrap::before {
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--cp-cyan);
  border-right: 2px solid var(--cp-cyan);
}

.cp-photo-wrap::after {
  left: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  border-left: 2px solid var(--cp-magenta);
  border-bottom: 2px solid var(--cp-magenta);
}

.home-photo {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(140deg, var(--cp-cyan), #0a2230 34%, #1a0a24 66%, var(--cp-magenta));
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  box-shadow: 0 30px 80px -40px rgba(0, 240, 255, 0.75);
}

/* Frame variant for the monogram: a calmer rim, the hologram is the focus */
.home-photo.cp-avatar {
  perspective: 900px;
  background: linear-gradient(140deg, rgba(0, 240, 255, 0.55), #0a1a24 40%, #150a1e 66%, rgba(255, 43, 214, 0.55));
  box-shadow: 0 30px 80px -40px rgba(0, 240, 255, 0.55);
}

/* Monogram avatar: a rotating neon hexagon instead of a portrait.
   Flat top on purpose: a pointy vertex would slice the crown of the head. */
.cp-hex {
  position: absolute;
  inset: 16%;
  /* above .hp-grid / .hp-scan, which would otherwise sweep across the figure */
  z-index: 2;
  display: grid;
  place-items: center;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.cp-hex-spin {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    var(--cp-cyan),
    var(--cp-violet) 18%,
    var(--cp-magenta) 34%,
    rgba(0, 240, 255, 0.08) 52%,
    rgba(0, 240, 255, 0.08) 74%,
    var(--cp-cyan)
  );
  animation: cp-spin 9s linear infinite;
}

@keyframes cp-spin {
  to { transform: rotate(360deg); }
}

.cp-hex-face {
  position: absolute;
  inset: 3px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background:
    radial-gradient(circle at 50% 24%, rgba(0, 240, 255, 0.18), transparent 62%),
    radial-gradient(circle at 50% 104%, rgba(255, 43, 214, 0.16), transparent 62%),
    #05080e;
}

/* --- 3D anime hologram --------------------------------------------------- */
.cp-anime {
  position: absolute;
  inset: 5%;
  perspective: 720px;
}

.cp-anime-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: cp-holo-idle 8s ease-in-out infinite;
}

@keyframes cp-holo-idle {
  0%, 100% { transform: rotateY(-7deg) translateY(0); }
  50% { transform: rotateY(7deg) translateY(-7px); }
}

.cp-anime-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* Each layer offsets against the pointer (--cp-px / --cp-py, set by js/cyberpunk.js)
   and sits at its own depth, which is what makes the head feel volumetric. */
.cp-anime-layer--back {
  transform: translate3d(calc(var(--cp-px, 0) * -18px), calc(var(--cp-py, 0) * -18px), -70px);
}

.cp-anime-layer--mid {
  transform: translate3d(calc(var(--cp-px, 0) * 14px), calc(var(--cp-py, 0) * 12px), 12px);
}

.cp-anime-layer--front {
  transform: translate3d(calc(var(--cp-px, 0) * 34px), calc(var(--cp-py, 0) * 26px), 80px);
}

/* watermark monogram behind the character */
.cp-avatar-mark {
  font-family: var(--cp-display);
  font-size: clamp(110px, 16vw, 240px);
  font-weight: 700;
  line-height: 1;
  color: rgba(0, 240, 255, 0.07);
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.12);
  user-select: none;
}

/* projector pool at the base of the hexagon */
.cp-holo-base {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 64%;
  height: 13%;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.55), rgba(0, 240, 255, 0) 70%);
  filter: blur(7px);
  animation: cp-holo-pulse 4s ease-in-out infinite;
}

@keyframes cp-holo-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.95; }
}

.cp-anime-cast {
  display: block;
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(-4px 0 10px rgba(0, 240, 255, 0.35))
    drop-shadow(4px 0 10px rgba(255, 43, 214, 0.3));
  transition: filter 0.4s ease;
}

/* HUD brackets and the scan line on the layer closest to the viewer */
.cp-anime-layer--front i {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 240, 255, 0.55);
}

.cp-anime-layer--front i:nth-child(1) { top: 5%; left: 5%; border-right: 0; border-bottom: 0; }
.cp-anime-layer--front i:nth-child(2) { top: 5%; right: 5%; border-left: 0; border-bottom: 0; border-color: rgba(255, 43, 214, 0.5); }
.cp-anime-layer--front i:nth-child(3) { bottom: 5%; left: 5%; border-right: 0; border-top: 0; border-color: rgba(255, 43, 214, 0.5); }
.cp-anime-layer--front i:nth-child(4) { bottom: 5%; right: 5%; border-left: 0; border-top: 0; }

.cp-anime-scan {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.8), transparent);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  animation: cp-anime-scan 3.8s ease-in-out infinite;
}

@keyframes cp-anime-scan {
  0% { top: 8%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}

/* orbiting rings, tilted in 3D around the hexagon */
.cp-orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.cp-orbit::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--cp-cyan);
  box-shadow: 0 0 12px var(--cp-cyan);
}

.cp-orbit--1 {
  animation: cp-orbit-a 9s linear infinite;
}

.cp-orbit--2 {
  inset: 5%;
  border-color: rgba(255, 43, 214, 0.22);
  animation: cp-orbit-b 15s linear infinite;
}

.cp-orbit--2::after {
  background: var(--cp-magenta);
  box-shadow: 0 0 12px var(--cp-magenta);
}

@keyframes cp-orbit-a {
  from { transform: rotateX(74deg) rotateZ(0deg); }
  to { transform: rotateX(74deg) rotateZ(360deg); }
}

@keyframes cp-orbit-b {
  from { transform: rotateX(74deg) rotateY(14deg) rotateZ(0deg); }
  to { transform: rotateX(74deg) rotateY(14deg) rotateZ(-360deg); }
}

.cp-avatar-role {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.5%;
  z-index: 4;
  text-align: center;
  font-family: var(--cp-mono);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(0, 240, 255, 0.7);
}

.cp-photo-wrap:hover .cp-hex-spin {
  animation-duration: 2.2s;
}

.cp-photo-wrap:hover .cp-anime-cast {
  filter:
    drop-shadow(-6px 0 16px rgba(0, 240, 255, 0.6))
    drop-shadow(6px 0 16px rgba(255, 43, 214, 0.5));
}

.hp-grid,
.hp-scan {
  position: absolute;
  inset: 3px;
  pointer-events: none;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}

.hp-grid {
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.55;
}

.hp-scan {
  inset: 3px 3px auto 3px;
  height: 32%;
  background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.18), transparent);
  animation: cp-scan 4.5s ease-in-out infinite;
}

@keyframes cp-scan {
  0% { transform: translateY(-120%); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

.cp-photo-tag {
  position: absolute;
  z-index: 4;
  padding: 4px 8px;
  background: rgba(4, 7, 12, 0.86);
  border: 1px solid rgba(0, 240, 255, 0.35);
  font-family: var(--cp-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cp-cyan);
}

.cp-photo-tag--tl {
  top: 24px;
  left: 24px;
}

.cp-photo-tag--br {
  right: 24px;
  bottom: 24px;
  border-color: rgba(255, 43, 214, 0.4);
  color: var(--cp-magenta);
}

/* =============================================================================
   6. Blocks — stats, terminal, section titles
============================================================================= */
.cp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px 0 8px;
  border: 1px solid var(--cp-line);
  background: rgba(7, 10, 17, 0.7);
}

.cp-stat {
  position: relative;
  padding: 18px 20px;
  border-right: 1px solid var(--cp-line);
}

.cp-stat:last-child {
  border-right: 0;
}

.cp-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--cp-cyan);
  opacity: 0.7;
}

.cp-stat-key {
  display: block;
  margin-bottom: 6px;
  font-family: var(--cp-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cp-dim);
}

.cp-stat-val {
  display: block;
  font-family: var(--cp-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cp-white);
}

.cp-stat-val--live {
  color: var(--cp-lime);
  text-shadow: 0 0 20px rgba(182, 255, 60, 0.45);
}

/* Terminal window */
.cp-terminal {
  position: relative;
  margin: 26px 0 10px;
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #070b12 0%, #05080e 100%);
  box-shadow:
    0 30px 70px -40px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(0, 240, 255, 0.03);
  overflow: hidden;
}

.cp-term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cp-line);
  background: #0a0f19;
  font-family: var(--cp-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--cp-dim);
}

.cp-dots {
  display: inline-flex;
  gap: 6px;
}

.cp-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #223047;
}

.cp-dots i:nth-child(1) { background: #ff5f57; }
.cp-dots i:nth-child(2) { background: #ffbd2e; }
.cp-dots i:nth-child(3) { background: #28c840; }

.cp-term-title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-term-hint {
  flex: 0 0 auto;
  color: #55697f;
}

.cp-term-body {
  padding: 24px 26px 26px;
  font-family: var(--cp-mono);
  font-size: 13px;
  line-height: 1.95;
  color: #9db0c7;
}

.cp-term-body p {
  font-family: var(--cp-mono);
  font-size: 13px;
  line-height: 1.95;
  color: #9db0c7;
  margin-bottom: 14px;
}

.cp-term-line {
  margin-bottom: 12px;
  color: var(--cp-white);
  font-size: 12.5px;
}

.cp-prompt {
  color: var(--cp-lime);
  margin-right: 8px;
}

.cp-term-note {
  color: var(--cp-dim) !important;
  border-left: 2px solid rgba(0, 240, 255, 0.25);
  padding-left: 12px;
}

.cp-term-note strong {
  color: var(--cp-cyan);
}

.cp-term-line--end {
  margin: 4px 0 0;
}

.cp-blink {
  color: var(--cp-cyan);
  animation: cp-caret 1s steps(2, start) infinite;
}

/* Section titles */
.block-title h2,
h3.comment-reply-title {
  position: relative;
  padding: 0 0 0 16px;
  margin: 0 0 26px;
  font-family: var(--cp-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cp-white);
}

.block-title h2::before,
h3.comment-reply-title::before {
  content: '';
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  height: auto;
  background: linear-gradient(180deg, var(--cp-cyan), var(--cp-magenta));
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.65);
}

.block-title h2::after,
h3.comment-reply-title::after {
  display: none;
}

/* Page title band */
.page-title {
  position: relative;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.08), transparent 55%),
    #080c14;
  border-top: 1px solid var(--cp-line);
  border-bottom: 1px solid var(--cp-line);
  padding: 52px 70px;
  margin-bottom: 50px;
  overflow: hidden;
}

.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}

.page-title::after {
  content: '';
  position: absolute;
  left: 70px;
  bottom: 0;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, var(--cp-cyan), transparent);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.7);
}

.page-title h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cp-white);
}

.page-title h1 .cp-slash {
  color: var(--cp-magenta);
  margin-right: 10px;
}

.page-title .page-subtitle {
  z-index: 1;
}

.page-title .page-subtitle h4 {
  margin: 6px 0;
  font-family: var(--cp-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--cp-dim);
}

/* Closing call-to-action strip */
.cp-endnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 24px 0 0;
  padding: 18px 22px;
  border: 1px dashed rgba(0, 240, 255, 0.22);
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.03);
}

.cp-endnote-cmd {
  font-family: var(--cp-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cp-dim);
}

.cp-endnote .cp-btn {
  margin-left: auto;
}

/* Scroll to top */
.lmpixels-scroll-to-top {
  width: 46px;
  height: 46px;
  line-height: 44px;
  border-radius: 0;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(6, 10, 17, 0.9);
  color: var(--cp-cyan);
  font-size: 18px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 24px -8px rgba(0, 240, 255, 0.7);
}

.lmpixels-scroll-to-top:hover {
  color: #04121a;
  background: var(--cp-cyan);
  box-shadow: 0 0 30px -4px rgba(0, 240, 255, 0.9);
}

/* =============================================================================
   7. Timeline (rendered as a log stream)
============================================================================= */
.timeline-item {
  padding: 10px 0 26px 40px;
}

.timeline-item:before {
  left: 8px;
  top: 17px;
  bottom: 0;
  width: 1px;
  height: auto;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.55), rgba(0, 240, 255, 0.05));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.timeline-item:after {
  left: 3px;
  top: 17px;
  bottom: auto;
  width: 11px;
  height: 11px;
  background: var(--cp-bg);
  border: 2px solid var(--cp-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.75);
  transform: rotate(45deg);
}

.timeline-item:first-child {
  padding-top: 10px;
}

.timeline-item:last-child:after {
  display: block;
}

.timeline-item:last-child:before {
  bottom: 26px;
}

.timeline-item h5.item-period {
  margin: 0 0 10px;
  padding: 2px 10px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 2px;
  background: rgba(0, 240, 255, 0.07);
  font-family: var(--cp-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-cyan);
  line-height: 20px;
}

.timeline-item h5.item-period.current {
  border-color: rgba(182, 255, 60, 0.45);
  background: rgba(182, 255, 60, 0.08);
  color: var(--cp-lime);
  box-shadow: 0 0 16px -6px rgba(182, 255, 60, 0.8);
}

.timeline-item h5.item-period.current::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cp-lime);
  vertical-align: 1px;
  animation: cp-pulse 1.8s ease-in-out infinite;
}

.timeline-item .item-company {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--cp-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cp-magenta);
  opacity: 0.85;
}

.timeline-item .item-company::before {
  content: '@ ';
  color: var(--cp-dim);
}

.timeline-item .item-title {
  margin: 8px 0 8px;
  font-family: var(--cp-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cp-white);
}

.timeline-item p {
  font-size: 13.5px;
  line-height: 1.8;
  color: #93a3b8;
}

/* =============================================================================
   8. Credentials
============================================================================= */
.page-content {
  counter-reset: cp-cert;
}

.certificate-item {
  position: relative;
  border: 1px solid var(--cp-line);
  border-left: 2px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(13, 18, 30, 0.85), rgba(8, 12, 19, 0.85));
  padding: 2px 4px;
  counter-increment: cp-cert;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.certificate-item::before {
  content: '0x' counter(cp-cert, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--cp-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #3d5169;
  transition: color 0.3s ease;
}

.certificate-item:hover {
  transform: translateY(-3px);
  border-left-color: var(--cp-cyan);
  box-shadow: 0 0 30px -10px rgba(0, 240, 255, 0.7);
}

.certificate-item:hover::before {
  color: var(--cp-cyan);
}

.certi-content {
  padding: 18px 46px 18px 20px;
}

.certi-title h4 {
  margin: 0 0 6px;
  padding-right: 26px;
  font-family: var(--cp-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cp-white);
  transition: color 0.3s ease;
}

.certificate-item:hover .certi-title h4 {
  color: var(--cp-cyan);
}

.certi-id,
.certi-date,
.certi-company {
  font-family: var(--cp-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: #6a7f96;
}

.certi-date span {
  color: var(--cp-magenta);
}

.certi-company {
  display: none;
}

.certi-company:empty {
  display: none;
}

/* =============================================================================
   9. Forms & buttons
============================================================================= */
.cp-form-shell {
  position: relative;
  margin-bottom: 40px;
  border: 1px solid var(--cp-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #070b12, #05080e);
  overflow: hidden;
}

.cp-form-shell > .contact-form {
  padding: 26px 26px 22px;
}

.cp-form-shell .cp-term-bar {
  margin: 0;
}

.contact-form .messages:empty {
  display: none;
}

.contact-form .messages {
  margin-bottom: 18px;
}

.contact-form .alert {
  border-radius: 2px;
  border: 1px solid var(--cp-line);
  background: rgba(0, 240, 255, 0.06);
  color: var(--cp-text);
  font-family: var(--cp-mono);
  font-size: 12px;
  padding: 10px 14px;
}

.contact-form .alert-success {
  border-color: rgba(182, 255, 60, 0.5);
  color: var(--cp-lime);
}

.contact-form .alert-danger {
  border-color: rgba(255, 43, 214, 0.5);
  color: var(--cp-magenta);
}

.form-control,
.form-control:focus,
.has-error .form-control,
.has-error .form-control:focus,
input[type="search"],
input[type="password"],
input[type="text"],
textarea.form-control {
  border: 1px solid var(--cp-line);
  border-radius: 3px;
  background: #060910;
  padding: 12px 14px;
  font-family: var(--cp-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--cp-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-control,
.form-control:focus {
  height: 46px;
}

textarea.form-control,
textarea.form-control:focus {
  height: auto;
  min-height: 186px;
  resize: vertical;
}

.form-control:focus {
  border-color: rgba(0, 240, 255, 0.65);
  background: #070d16;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.22), 0 0 28px -12px rgba(0, 240, 255, 0.9);
}

.form-control + .form-control-border {
  display: none;
}

.form-control::-webkit-input-placeholder,
.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder {
  color: #45566c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.form-group .help-block {
  border-radius: 2px;
  background: var(--cp-magenta);
  color: #12010e;
  font-family: var(--cp-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.form-group .help-block:after {
  border-bottom-color: var(--cp-magenta);
}

/* Buttons */
.btn-primary,
.btn-secondary,
button,
input[type="button"],
input[type="submit"],
.wp-block-button .wp-block-button__link {
  position: relative;
  padding: 13px 28px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 2px;
  background: rgba(0, 240, 255, 0.07);
  color: var(--cp-cyan);
  font-family: var(--cp-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.28s ease;
}

.btn-primary:hover,
.btn-primary:focus,
button:hover,
button:focus,
input[type="button"]:hover,
input[type="button"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  border-color: var(--cp-cyan);
  background: var(--cp-cyan);
  color: #02121a;
  box-shadow: 0 0 34px -8px rgba(0, 240, 255, 0.95);
}

input[type="submit"].disabled,
input[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  border-color: rgba(255, 43, 214, 0.5);
  background: rgba(255, 43, 214, 0.07);
  color: var(--cp-magenta);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--cp-magenta);
  background: var(--cp-magenta);
  color: #12010e;
}

/* Honeypot: real in the DOM so bots fill it, invisible and unreachable
   for people and screen readers. */
.cp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

input[type="submit"].is-sending {
  opacity: 0.6;
  cursor: progress;
}

/* Contact channels */
.cp-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.cp-channel {
  display: block;
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--cp-line);
  border-radius: 3px;
  background: rgba(9, 13, 21, 0.8);
  transition: all 0.3s ease;
}

.cp-channel:hover {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(0, 240, 255, 0.9);
}

.cp-channel-key {
  display: block;
  margin-bottom: 6px;
  font-family: var(--cp-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cp-dim);
}

.cp-channel-val {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--cp-mono);
  font-size: 12.5px;
  color: var(--cp-cyan);
}

.cp-channel:hover .cp-channel-val {
  color: #b6fbff;
}

/* =============================================================================
   10. Footer, 404, utilities
============================================================================= */
.site-footer {
  background: #060a11;
  border-top: 1px solid var(--cp-line);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 16px 45px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 45px;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, var(--cp-magenta), transparent);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.7);
}

.site-footer .footer-social-links li {
  margin-right: 20px;
}

.site-footer .footer-social-links li a {
  font-family: var(--cp-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cp-dim);
  opacity: 1;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.site-footer .footer-social-links li a::before {
  content: '[';
  color: #2a3a4e;
  margin-right: 2px;
}

.site-footer .footer-social-links li a::after {
  content: ']';
  color: #2a3a4e;
  margin-left: 2px;
}

.site-footer .footer-social-links li a:hover {
  color: var(--cp-cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
  opacity: 1;
}

.footer-copyrights p {
  font-family: var(--cp-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--cp-dim);
}

/* 404 */
.nothing-found .page-content {
  margin: 8% 0 12%;
}

.nothing-found h1.nf-page-title {
  font-family: var(--cp-display);
  font-size: 140px;
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 240, 255, 0.65);
  text-shadow: 0 0 60px rgba(0, 240, 255, 0.35);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.nothing-found p {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 43, 214, 0.12);
  border: 1px solid rgba(255, 43, 214, 0.4);
  color: var(--cp-magenta);
  font-family: var(--cp-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nothing-found .cp-hint {
  padding: 0;
  background: none;
  border: 0;
  color: var(--cp-dim);
  font-size: 11px;
}

.cp-nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

/* Small helper used on the 404 + section footers */
.cp-hint {
  margin-top: 18px;
  font-family: var(--cp-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--cp-dim);
}

/* =============================================================================
   11. Responsive
============================================================================= */
/* The template opts into a full-bleed layout on desktop; bring back a framed
   console window so the HUD corners read as part of the interface. */
@media only screen and (min-width: 992px) {
  .page-container {
    max-width: 1240px;
    margin: 2.5% auto;
    min-height: calc(100vh - 5%);
    /* no bare strip above the bar: the header owns the top edge of the window */
    padding-top: 0;
  }

  /* Keep the navigation reachable while scrolling long pages. The sticky
     element has to be the injected wrapper: the header div itself is only as
     tall as its content and would never get any scroll slack. */
  #header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
    /* full-bleed like .page-title and .site-footer, which both use -70px */
    width: calc(100% + 140px);
    margin-left: -70px;
    margin-bottom: 0;
    /* follows the container's 6px radius + 1px border so the corner stays round */
    border-radius: 5px 5px 0 0;
    background-color: #080b12;
  }

  /* the bar spans edge to edge, the logo and nav stay inset with the content */
  #header .header {
    width: 100%;
    margin: 0;
    padding: 20px 70px 22px;
  }
}

@media only screen and (max-width: 1199px) {
  .cp-head-meta {
    display: none;
  }

  .home-text h1 {
    font-size: 40px;
  }
}

@media only screen and (max-width: 991px) {
  .page-container {
    padding: 88px 30px 40px;
    margin: 0;
  }

  /* The template pins the header on small screens. Give it a fixed height so
     the page padding above always clears it, whatever the logo does. */
  .header {
    padding: 0;
    margin: 0;
    border: 0;
  }

  .header::after {
    display: none;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    background-color: #060a11;
    border-bottom: 1px solid var(--cp-line);
  }

  .header-content .text-logo {
    float: none;
  }

  .cp-logo-mark {
    width: 30px;
    height: 34px;
    margin: 0 10px 0 0;
    font-size: 14px;
  }

  .logo-text {
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0.1em;
  }

  .menu-toggle {
    float: none;
    line-height: 1;
    font-size: 20px;
  }

  .site-nav {
    top: 64px;
    height: calc(100% - 64px);
    background-color: #060a11;
    border-left: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: -20px 0 60px -20px rgba(0, 240, 255, 0.35);
  }

  .site-nav.mobile-menu-hide {
    visibility: hidden;
    pointer-events: none;
  }

  .page-title {
    margin-left: -30px;
    margin-right: -30px;
    padding: 40px 30px;
  }

  .page-title::after {
    left: 30px;
  }

  .site-footer {
    margin: 50px -30px -40px;
    padding: 14px 30px;
  }

  .site-footer::before {
    left: 30px;
  }

  .home-content {
    margin: 2% 0 0;
  }

  .home-text.hp-left {
    padding-left: 0;
    margin-top: 30px;
  }

  .cp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cp-stat:nth-child(2n) {
    border-right: 0;
  }

  .cp-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cp-line);
  }

  .cp-channels {
    grid-template-columns: 1fr;
  }

  .site-nav {
    background-color: #060a11;
    border-left: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: -20px 0 60px -20px rgba(0, 240, 255, 0.35);
  }

  .site-main-menu li {
    margin: 0 20px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  }

  .site-main-menu li a {
    padding: 0;
    line-height: 54px;
  }
}

@media only screen and (max-width: 767px) {
  .home-text h1 {
    font-size: 32px;
    line-height: 1.16;
  }

  /* the template centres the heading on small screens; keep the hero flush left */
  .home-text h1.cp-glitch {
    text-align: left;
  }

  .cp-role .item h4 {
    text-align: left;
  }

  .cp-photo-wrap {
    max-width: 340px;
    margin: 0 auto 24px;
  }

  .cp-lead {
    font-size: 14px;
  }

  .cp-role {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .cp-role > .text-rotation {
    width: 100%;
  }

  .cp-stats {
    grid-template-columns: 1fr;
  }

  .cp-stat {
    border-right: 0;
    border-bottom: 1px solid var(--cp-line);
  }

  .cp-stat:last-child {
    border-bottom: 0;
  }

  .cp-term-body {
    padding: 18px 18px 20px;
  }

  .cp-term-body p {
    font-size: 12.5px;
  }

  .controls.two-columns .left-column,
  .controls.two-columns .right-column {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .timeline-item h5.item-period {
    margin-left: 0;
  }

  .timeline-item {
    padding-left: 30px;
  }

  .timeline-item:before {
    left: 5px;
  }

  .timeline-item:after {
    left: 0;
  }

  .cp-endnote .cp-btn {
    margin-left: 0;
  }

  .page-title h1 {
    font-size: 30px;
  }

  .page-title {
    padding: 30px 20px;
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: 36px;
  }

  .page-title::after {
    left: 20px;
    width: 100px;
  }

  .nothing-found h1.nf-page-title {
    font-size: 88px;
  }

  .cp-photo-tag--tl {
    top: 26px;
    left: 26px;
  }

  .cp-photo-tag--br {
    right: 26px;
    bottom: 26px;
  }
}

@media only screen and (max-width: 480px) {
  .page-container {
    padding: 88px 20px 32px;
  }

  .page-title {
    margin-left: -20px;
    margin-right: -20px;
    padding: 26px 20px;
  }

  .site-footer {
    margin: 44px -20px -32px;
    padding: 14px 20px;
    text-align: center;
  }

  .footer-social,
  .footer-copyrights {
    float: none;
  }

  .footer-copyrights {
    margin-top: 10px;
  }

  .site-footer .footer-social-links li {
    margin-right: 14px;
  }

  .cp-actions {
    gap: 10px;
  }

  .cp-btn {
    padding: 11px 16px;
    font-size: 11px;
  }

  .cp-photo-tag {
    font-size: 8.5px;
    padding: 3px 6px;
  }
}

/* =============================================================================
   12. Motion preferences
============================================================================= */
@media (prefers-reduced-motion: reduce) {
  .cp-rain,
  .cp-beams,
  .cp-glow,
  .hp-scan {
    display: none;
  }

  .cp-glitch::before,
  .cp-glitch::after,
  .cp-blink,
  .cp-eyebrow .cp-type::after,
  .logo-text::after,
  .cp-status i,
  .cp-hex-spin,
  .cp-anime-stage,
  .cp-orbit--1,
  .cp-orbit--2,
  .cp-anime-scan,
  .cp-holo-base,
  .timeline-item h5.item-period.current::before {
    animation: none;
  }

  .hp-scan {
    animation: none;
    opacity: 0;
  }

  .cp-glitch::before,
  .cp-glitch::after {
    display: none;
  }

  html.js .cp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cp-btn,
  .cp-channel,
  .certificate-item {
    transition: none;
  }
}
