@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root{
  --bg: #0D0F0E;
  --panel: #161A19;
  --panel-raised: #1C211F;
  --hairline: #1E3B2A;
  --text: #E4E1D6;
  --text-muted: #93998F;
  --green: #55D67F;
  --green-dim: #1E2C24;
  --amber: #E3A94C;
  --teal: #2F585F;
  --teal-light: #4C8B94;
  --teal-dim: #16262A;
  --nav-height: 60px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
html,body{ margin:0; padding:0; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0px,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.65;
}
a{ color: var(--green); text-decoration: none; }
a:hover{ text-decoration: underline; }
.wrap{ max-width: 900px; margin: 0 auto; padding: 0 24px; }
.wrap-wide{ max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section{ position: relative; padding: 90px 0; }

.cursor-blink{
  display: inline-block;
  width: 0.5em;
  height: 1em;
  background: var(--green);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: hbCursorBlink 1s steps(1) infinite;
  box-shadow: 0 0 6px rgba(85, 214, 127, 0.7);
}
@keyframes hbCursorBlink{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}

/* ---- Nav ---- */
.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 14, 0.92);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(4px);
}
.site-nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo{
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 0 10px rgba(85, 214, 127, 0.4);
}
.nav-links{
  display: flex;
  gap: 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a{ color: var(--text-muted); }
.nav-links a:hover{ color: var(--green); text-decoration: none; }

/* ---- Hero ---- */
.hero-band{
  width: 100%;
  background: #000000;
  border-bottom: 1px solid var(--hairline);
}
#hero{
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - var(--nav-height)) * 16 / 9));
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-scanline-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: lighten;
}
@media (prefers-reduced-motion: reduce){
  .hero-scanline-svg{ display: none; }
}
.hero-boot-text{
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  border-right: 13px solid var(--green);
  animation:
    heroBootFullType 29.115s linear infinite,
    heroBootCursorBlink 1s steps(1) infinite;
}
@keyframes heroBootFullType{
  0%{ width: 0; opacity: 1; }
  10.3040%{ width: 0; animation-timing-function: steps(19, end); }
  17.1733%{ width: calc(19ch + 28px); opacity: 1; }
  27.4772%{ width: calc(19ch + 28px); opacity: 1; animation-timing-function: steps(21, end); }
  34.3466%{ width: calc(40ch + 33px); opacity: 1; }
  54.9545%{ width: calc(40ch + 33px); opacity: 1; animation-timing-function: steps(16, end); }
  61.8238%{ width: calc(56ch + 40px); opacity: 1; }
  72.1278%{ width: calc(56ch + 40px); opacity: 1; animation-timing-function: steps(16, end); }
  78.9971%{ width: calc(72ch + 54px); opacity: 1; animation-timing-function: steps(6, end); }
  92.3922%{ opacity: 1; }
  92.7357%{ opacity: 0; }
  99.6050%{ width: calc(79ch + 55px); }
  99.9%{ opacity: 0; }
  99.7%{ width: 0; }
  100%{ opacity: 1; width: 0; }
}
@keyframes heroBootCursorBlink{
  0%, 49%{ border-right-color: var(--green); }
  50%, 100%{ border-right-color: transparent; }
}
@media (prefers-reduced-motion: reduce){
  .hero-boot-text{ animation: none; width: calc(79ch + 55px); border-right-color: transparent; }
}
.hero-empty-note{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ---- Hero callout cards ---- */
.callout-wrap{
  width: 100%;
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-left: 24px;
  padding-right: 24px;
}
.callout-arrow{
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-size: 18px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.callout-arrow:hover{ border-color: var(--green); color: var(--green); }

.callout-wrap .cut-frame{
  width: 100%;
  max-width: 560px;
}
.callout-card{
  position: relative;
  background: #121B1C;
  padding: 22px 26px;
  max-width: 560px;
  width: 100%;
  overflow: hidden;
  text-align: left;
}
.callout-card-content{
  display: flex;
  align-items: center;
  gap: 20px;
  transition: opacity 0.16s ease;
}
.callout-card-content.centered{ justify-content: center; }
.callout-card-content.centered .callout-card-title{ text-align: center; }
.callout-card-text{ flex: 1; min-width: 0; text-align: left; }
.callout-card-image{
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.callout-card-image img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.callout-card-title{
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 6px;
  text-shadow: 0 0 10px rgba(85, 214, 127, 0.3);
}
.callout-card-body{
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Glitch transition on card swap — same static-noise language as the hero */
.callout-card.glitching::after{
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.22) 0px, rgba(255,255,255,0.22) 1px, transparent 1px, transparent 2px),
    repeating-linear-gradient(to right, rgba(255,255,255,0.08) 0px, rgba(255,255,255,0.08) 1px, transparent 1px, transparent 3px);
  animation: calloutGlitch 0.42s steps(1, end);
}
.callout-card.glitching{
  animation: calloutShake 0.42s steps(1, end);
}
@keyframes calloutGlitch{
  0%{ opacity: 0; }
  8%{ opacity: 0.75; }
  16%{ opacity: 0.1; }
  24%{ opacity: 0.7; }
  32%{ opacity: 0.05; }
  42%{ opacity: 0.6; }
  52%{ opacity: 0.15; }
  62%{ opacity: 0.65; }
  74%{ opacity: 0.1; }
  88%{ opacity: 0.3; }
  100%{ opacity: 0; }
}
@keyframes calloutShake{
  0%, 100%{ transform: translateX(0) skewX(0deg); }
  8%{ transform: translateX(-4px) skewX(1.2deg); }
  16%{ transform: translateX(3px) skewX(-0.8deg); }
  24%{ transform: translateX(-2px) skewX(0.6deg); }
  32%{ transform: translateX(4px) skewX(-1deg); }
  42%{ transform: translateX(-3px) skewX(0.8deg); }
  52%{ transform: translateX(2px) skewX(-0.5deg); }
  62%{ transform: translateX(-2px) skewX(0.4deg); }
  74%{ transform: translateX(1px) skewX(-0.3deg); }
  88%{ transform: translateX(-1px) skewX(0.2deg); }
}
@media (prefers-reduced-motion: reduce){
  .callout-card.glitching::after{ animation: none; opacity: 0; }
  .callout-card.glitching{ animation: none; transform: none; }
}

@media (max-width: 720px){
  .callout-card{ padding: 18px 20px; }
  .callout-card-content{ flex-direction: column; align-items: flex-start; gap: 12px; }
  .callout-card-image{ width: 110px; height: 110px; align-self: center; }
  .callout-card-content .callout-card-text{ width: 100%; }
  .callout-wrap{ margin-top: 30px; }
  .hero-boot-text{ display: none; }
}

/* ---- Section headings ---- */
.section-label{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin: 0 0 8px;
}
.section-heading{
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 30px;
  text-shadow: 0 0 12px rgba(85, 214, 127, 0.25);
}
.section-divider{
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---- Cut corner accent on the larger content boxes ----
   A single clip-path can't both cut a corner AND draw a border tracing
   that cut, so this uses two layers: an outer "frame" painted in the
   hairline color and clipped to the full shape, with the actual content
   box inset by 1px on top of it in the real background color — the
   sliver of frame color left showing is the border, cut corner included. */
.cut-frame{
  background: var(--hairline);
  padding: 1px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}
.gallery-main{
  background: var(--hairline);
  padding: 1px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
}
.about-card,
.news-card,
.callout-card,
.about-image-inner,
.gallery-main-inner{
  clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
  border: none;
  border-radius: 0;
}
.gallery-main-inner,
.about-image-inner{
  width: 100%;
  height: 100%;
}

/* ---- About ---- */
.about-card{
  background: var(--panel);
  padding: 36px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.about-flex{
  display: flex;
  align-items: center;
  gap: 24px;
}
.about-image-frame{
  flex: 0 0 380px;
  width: 380px;
  height: 380px;
}
.about-image-inner img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text-frame{ flex: 1; min-width: 0; }

@media (max-width: 720px){
  .about-flex{ flex-direction: column; align-items: center; }
  .about-image-frame{ width: 320px; height: 320px; flex: none; align-self: center; }
  .about-text-frame{ width: 100%; }
}

/* ---- Gallery ---- */
#gallery{
  background: #121B1C;
}

.gallery-stage{
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-side{
  position: absolute;
  top: 50%;
  width: 42%;
  height: 78%;
  transform: translateY(-50%);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  border-radius: 0;
  overflow: hidden;
  opacity: 0.35;
  filter: saturate(0.7) brightness(0.7);
  border: 1px solid var(--hairline);
}
.gallery-side img{ width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.gallery-side.left{ left: -6%; z-index: 1; }
.gallery-side.right{ right: -6%; z-index: 1; }
.gallery-main{
  position: relative;
  z-index: 2;
  width: 70%;
  height: 100%;
  cursor: zoom-in;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.gallery-main img{ width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.gallery-main .play-icon{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: rgba(228, 225, 214, 0.9);
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
}
.empty-frame{
  background: rgba(147, 153, 143, 0.13);
  padding: 1px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}
.gallery-empty{
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  background: var(--bg);
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 0 100%, 0 13px);
}
#gallery .gallery-empty{ background: #121B1C; }

.gallery-category-buttons{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.gallery-cat-btn{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.gallery-cat-btn:hover:not(:disabled){ color: var(--text); border-color: var(--text-muted); }
.gallery-cat-btn.active{
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}
.gallery-cat-btn:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---- Lightbox ---- */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(22, 40, 43, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 90px;
  animation: lbFade 0.15s ease;
}
@keyframes lbFade{ from{ opacity: 0; } to{ opacity: 1; } }
.lightbox-media{
  max-width: 100%;
  max-height: 100%;
  position: relative;
}
.lightbox-media img, .lightbox-media video, .lightbox-media iframe{
  max-width: 100%;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}
.lightbox-close{
  position: fixed;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 1002;
  font-family: 'IBM Plex Sans', sans-serif;
}
.lightbox-close:hover{ color: var(--green); }
.lightbox-arrow{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline);
  color: var(--text);
  font-size: 22px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-arrow:hover{ border-color: var(--green); color: var(--green); }
.lightbox-arrow.prev{ left: 20px; }
.lightbox-arrow.next{ right: 20px; }
.lightbox-counter{
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  padding: 5px 14px;
  border-radius: 4px;
  z-index: 1002;
}
@media (max-width: 720px){
  .lightbox-overlay{ padding: 70px 16px; }
  .lightbox-arrow{ width: 38px; height: 38px; font-size: 18px; }
  .lightbox-arrow.prev{ left: 6px; }
  .lightbox-arrow.next{ right: 6px; }
}

/* ---- News ---- */
.news-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.news-card{
  background: var(--panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.news-card .cat-tag{
  align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--hairline);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.news-card .news-date{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.news-card h3{
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.25;
}
.news-card h3 a{ color: var(--text); }
.news-card p{ color: var(--text-muted); font-size: 13.5px; margin: 0 0 14px; flex-grow: 1; }
.news-card .read-more{ font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; }
.see-all-link{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
  display: inline-block;
}

.category-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.category-links .cat-label{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-right: 6px;
}
.category-links a, .category-links span.inactive{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
}
.category-links a{ color: var(--green); background: var(--green-dim); }
.category-links a:hover{ text-decoration: none; border-color: var(--green); }
.category-links span.inactive{ color: var(--text-muted); opacity: 0.5; background: transparent; }

/* ---- Footer ---- */
footer.site-footer{
  background: #121B1C;
  border-top: 1px solid var(--hairline);
  padding: 40px 0 60px;
  position: relative;
}
footer.site-footer .footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-subscribe{ width: 100%; max-width: 400px; }
.footer-socials{ display: flex; gap: 16px; justify-content: center; }

/* Deliberately understated — colored to the same dark hairline green
   used for dividers, so it reads as part of the footer's background
   texture rather than an actual link. Tucked into the bottom-right
   corner, out of the normal reading flow. Brightens on hover/focus so
   it's still easy to find once you know it's there. */
.footer-admin-link{
  position: absolute;
  bottom: 12px;
  right: 24px;
  color: var(--hairline);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-decoration: none;
}
.footer-admin-link:hover, .footer-admin-link:focus{ color: var(--text-muted); }

/* ---- Return to top ---- */
.return-top{
  position: absolute;
  bottom: 18px;
  right: 24px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--panel);
}
.return-top:hover{ color: var(--green); border-color: var(--green); text-decoration: none; }

@media (max-width: 720px){
  .gallery-stage{ height: 320px; }
  .gallery-side{ display: none; }
  .gallery-main{ width: 100%; }
  .nav-links{ gap: 14px; font-size: 11px; }
  section{ padding: 60px 0; }
}
