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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #87ff71;
  --cyan: #01cdfe;
  --dark: #192617;
  --dark2: #0d1a0b;
  --dark3: #1a2a3a;
  --pink: #FF71CE;
  --purple: #B967FF;
  --card-bg: rgba(25, 38, 23, 0.72);
  --glass-border: rgba(135, 255, 113, 0.18);
  --text-main: #e8ffe0;
  --text-muted: #7eb87a;
  --radius-card: 18px;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', Arial, sans-serif;
  --nav-h: 96px;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body.vaporwave-body {
  background: #0d1a0b;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* ===== SCANLINES ===== */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
}

/* ===== RETRO GRID ===== */
.retro-grid {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  perspective: 600px;
}
.retro-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1,205,254,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.18) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: rotateX(60deg) translateY(-40%);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 80%);
}

/* ===== SCROLL MARGIN ===== */
article[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 26, 11, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(135,255,113,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand-row {
  background: linear-gradient(90deg, rgba(135,255,113,0.06), rgba(1,205,254,0.04));
  border-bottom: 1px solid rgba(135,255,113,0.08);
}
.header-brand-row .header-inner { min-height: 52px; }

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green);
}
.brand-logo { height: 36px; width: auto; }
.brand-mark { height: 30px; width: auto; }
.brand-text {
  font-family: var(--font-cond);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 18px rgba(135,255,113,0.8), 0 0 40px rgba(135,255,113,0.4);
}
.brand-badge {
  font-family: var(--font-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 4px;
  padding: 2px 7px;
  text-shadow: 0 0 8px rgba(1,205,254,0.8);
  box-shadow: 0 0 8px rgba(1,205,254,0.25);
  white-space: nowrap;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.hdr-contact-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.hdr-contact-label {
  color: var(--text-muted);
  font-family: var(--font-cond);
  letter-spacing: 0.05em;
}
.hdr-contact-val {
  color: var(--cyan);
  font-weight: 600;
}
.hdr-tag {
  font-family: var(--font-cond);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--pink);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255,113,206,0.6);
}

.header-nav-row { background: rgba(9,18,8,0.6); }
.header-nav-row .header-inner { min-height: 44px; }

.site-nav ol {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.site-nav ol li a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  font-family: var(--font-cond);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}
.nav-icon {
  font-size: 0.75em;
  color: var(--cyan);
  opacity: 0.8;
}
.site-nav ol li a:hover,
.site-nav ol li a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
  text-shadow: 0 0 12px rgba(135,255,113,0.7);
}

/* ===== HERO ===== */
.hero-section {
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0d1a0b 0%, #12203a 50%, #1a0a2e 100%);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(1,205,254,0.2);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(1,205,254,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

/* Media: dual offset collage */
.hero-media {
  position: relative;
  flex: 0 0 42%;
  height: 260px;
}
.hero-img-slot {
  position: absolute;
  overflow: hidden;
  border-radius: 10px;
}
.hero-img-back {
  left: 0;
  top: 20px;
  width: 72%;
  height: 220px;
  border: 1px solid rgba(135,255,113,0.3);
  box-shadow: 0 0 28px rgba(135,255,113,0.18);
}
.hero-img-front {
  right: 0;
  top: 0;
  width: 58%;
  height: 200px;
  border: 1px solid rgba(1,205,254,0.4);
  box-shadow: 0 0 28px rgba(1,205,254,0.22);
  z-index: 2;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(135,255,113,0.12), rgba(1,205,254,0.12));
}
.hero-img-placeholder--alt {
  background: linear-gradient(135deg, rgba(1,205,254,0.15), rgba(185,103,255,0.15));
}
.hero-glitch-bar {
  position: absolute;
  left: 10%;
  bottom: 8px;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink));
  z-index: 3;
  animation: glitch-shift 4s infinite;
}

/* Hero copy: right-aligned */
.hero-copy {
  flex: 1;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}
.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(1,205,254,0.7);
}
.hero-h1 {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--green);
  text-shadow: 0 0 30px rgba(135,255,113,0.6), 0 0 60px rgba(135,255,113,0.3);
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 400px;
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.8rem;
  min-height: 44px;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  background: linear-gradient(90deg, var(--green), #5ddd44);
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(135,255,113,0.5);
  transition: box-shadow 0.2s, transform 0.2s;
}
.hero-cta:hover {
  box-shadow: 0 0 36px rgba(135,255,113,0.8);
  transform: translateY(-2px);
}

/* ===== PAGE BODY ===== */
.page-body {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0d1a0b 0%, #101c28 60%, #0d1a0b 100%);
}

.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-areas: "article aside";
  gap: 2.5rem;
  align-items: start;
}

/* ===== ARTICLE / CONTENT ===== */
.content-article {
  grid-area: div;
  min-width: 0;
}
.content-section {
  width: 100%;
}

/* Prose from page.content */
.content-section h2 {
  font-family: var(--font-cond);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 16px rgba(135,255,113,0.5);
  margin-top: 2.5rem;
  margin-bottom: 0.4rem;
}
.content-section h2 + hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--green), var(--cyan), transparent);
  margin-bottom: 1.2rem;
  opacity: 0.55;
}
.content-section h3 {
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.05em;
  margin-top: 1.8rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 10px rgba(1,205,254,0.5);
}
.content-section h3 + hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-bottom: 1rem;
  opacity: 0.4;
}
.content-section p {
  margin-bottom: 1.1rem;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
}
.content-section ul, .content-section ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}
.content-section li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}
.content-section a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-section a:hover { color: var(--green); }
.content-section strong { color: var(--green); font-weight: 600; }
.content-section em { color: var(--pink); }
.content-section blockquote {
  border-left: 3px solid var(--cyan);
  padding: 0.6rem 1.2rem;
  margin: 1.2rem 0;
  background: rgba(1,205,254,0.06);
  border-radius: 0 8px 8px 0;
  color: var(--text-muted);
}
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}
.content-section th {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dark);
  background: var(--green);
  padding: 0.55rem 0.9rem;
  text-align: left;
}
.content-section td {
  border-bottom: 1px solid rgba(135,255,113,0.12);
  padding: 0.5rem 0.9rem;
  color: var(--text-main);
}
.content-section tr:hover td { background: rgba(135,255,113,0.04); }

/* Section styling within page.content */
.content-section article {
  margin-bottom: 2.5rem;
  padding: 1.6rem 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(135,255,113,0.08);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.content-section article:hover {
  box-shadow: 0 6px 40px rgba(135,255,113,0.12), 0 4px 32px rgba(0,0,0,0.3);
  border-color: rgba(135,255,113,0.32);
}

/* ===== ASIDE ===== */
.content-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.aside-block {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.3rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.aside-block--glow {
  background: linear-gradient(135deg, rgba(135,255,113,0.1), rgba(1,205,254,0.08));
  border-color: rgba(1,205,254,0.3);
  text-align: center;
}
.aside-title {
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.aside-title + hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  margin-bottom: 0.9rem;
  opacity: 0.4;
}
.aside-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.aside-nav-list li a {
  display: block;
  padding: 0.35rem 0.5rem;
  min-height: 40px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.aside-nav-list li a:hover {
  color: var(--green);
  background: rgba(135,255,113,0.07);
}
.aside-slogan {
  font-family: var(--font-cond);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  color: var(--green);
  text-shadow: 0 0 18px rgba(135,255,113,0.6);
}
.aside-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #080f07 0%, #050d04 100%);
  border-top: 1px solid rgba(135,255,113,0.15);
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}
.footer-brand-col { }
.footer-brand-big {
  font-family: var(--font-cond);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  text-shadow: 0 0 40px rgba(135,255,113,0.5), 0 0 80px rgba(135,255,113,0.2);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.footer-brand-sub {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(1,205,254,0.5);
}
.footer-col h4.footer-col-title {
  font-family: var(--font-cond);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.9rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(1,205,254,0.2);
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-col ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-col ul li a:hover { color: var(--green); }

.footer-col--contact address {
  font-style: normal;
  margin-bottom: 1rem;
}
.footer-contact-item {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-link-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-link-list li a:hover { color: var(--cyan); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(135,255,113,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(135,255,113,0.4);
}
.footer-bottom-links {
  font-size: 0.82rem;
  color: rgba(1,205,254,0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes glitch-shift {
  0%   { transform: scaleX(1) translateX(0); opacity: 1; }
  10%  { transform: scaleX(0.98) translateX(3px); opacity: 0.8; }
  20%  { transform: scaleX(1) translateX(0); opacity: 1; }
  80%  { transform: scaleX(1) translateX(0); opacity: 1; }
  90%  { transform: scaleX(1.02) translateX(-2px); opacity: 0.7; }
  100% { transform: scaleX(1) translateX(0); opacity: 1; }
}

@keyframes neon-pulse {
  0%, 100% { text-shadow: 0 0 18px rgba(135,255,113,0.8), 0 0 40px rgba(135,255,113,0.4); }
  50%       { text-shadow: 0 0 30px rgba(135,255,113,1),   0 0 70px rgba(135,255,113,0.6); }
}

.brand-text { animation: neon-pulse 3s ease-in-out infinite; }

/* Stagger list animation */
.site-nav ol li {
  animation: fade-in-down 0.4s both;
}
.site-nav ol li:nth-child(1) { animation-delay: 0.05s; }
.site-nav ol li:nth-child(2) { animation-delay: 0.10s; }
.site-nav ol li:nth-child(3) { animation-delay: 0.15s; }
.site-nav ol li:nth-child(4) { animation-delay: 0.20s; }
.site-nav ol li:nth-child(5) { animation-delay: 0.25s; }
.site-nav ol li:nth-child(6) { animation-delay: 0.30s; }
.site-nav ol li:nth-child(7) { animation-delay: 0.35s; }

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE: tablet ===== */
@media (max-width: 960px) {
  .main-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "article" "aside";
  }
  .content-aside { position: static; }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .hero-inner { flex-direction: column; }
  .hero-media { flex: none; width: 100%; height: 220px; }
  .hero-copy { text-align: left; align-items: flex-start; }
}

/* ===== RESPONSIVE: mobile ===== */
@media (max-width: 600px) {
  :root { --nav-h: 80px; }
  .header-brand-row .header-inner { flex-direction: column; align-items: flex-start; gap: 0.3rem; padding: 0.6rem 1rem; }
  .header-contact { gap: 0.7rem; }
  .hdr-tag { display: none; }
  .header-nav-row .header-inner { padding: 0 0.5rem; }
  .site-nav ol { gap: 0; }
  .site-nav ol li a { padding: 0.5rem 0.55rem; font-size: 0.78rem; letter-spacing: 0.03em; }
  .hero-section { min-height: auto; }
  .hero-inner { padding: 1.5rem 1rem; gap: 1.2rem; }
  .hero-media { height: 170px; }
  .hero-img-back { width: 78%; height: 160px; }
  .hero-img-front { width: 62%; height: 145px; }
  .hero-h1 { font-size: 1.7rem; }
  .main-wrap { padding: 1.8rem 1rem 2.5rem; }
  .content-section article { padding: 1.1rem 1.1rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem 1rem 1.5rem; }
  .footer-brand-big { font-size: 2.6rem; }
  .footer-bottom { padding: 0.8rem 1rem; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .brand-text { font-size: 1.5rem; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
