:root {
  --bg: #03040a;
  --bg-soft: #070916;
  --panel: rgba(8, 10, 23, .88);
  --panel-strong: rgba(2, 3, 8, .95);
  --text: #f5f7ff;
  --muted: #a7afc7;
  --cyan: #23e6ff;
  --cyan-2: #159dff;
  --magenta: #ff31e6;
  --purple: #8d45ff;
  --green: #62ff78;
  --yellow: #ffe44f;
  --border: rgba(35, 230, 255, .3);
  --shell: 1220px;
  --shadow-cyan: 0 0 30px rgba(35, 230, 255, .13);
  --shadow-magenta: 0 0 32px rgba(255, 49, 230, .12);
  --shadow-green: 0 0 30px rgba(98, 255, 120, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 9%, rgba(100, 45, 255, .13), transparent 33rem),
    radial-gradient(circle at 13% 36%, rgba(0, 183, 255, .07), transparent 29rem),
    var(--bg);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
code, pre { font-family: inherit; }

.skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  z-index: 100;
  padding: 8px 12px;
  transform: translateY(-150%);
  color: #000;
  background: var(--cyan);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(35,230,255,.7) 0 1px, transparent 1.3px),
    radial-gradient(circle, rgba(255,49,230,.6) 0 1px, transparent 1.3px);
  background-size: 103px 103px, 157px 157px, 211px 211px;
  background-position: 13px 17px, 63px 91px, 111px 22px;
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;

    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.025) 0px,
        rgba(255, 255, 255, 0.025) 1px,
        transparent 1px,
        transparent 4px
    );

    opacity: 0.35;

    /* Important: avoid Chrome compositor crashes */
    mix-blend-mode: normal;
}

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow { width: min(100%, 880px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(35,230,255,.14);
  background: rgba(3,4,10,.87);
  backdrop-filter: blur(18px);
}
.nav-shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 230px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 0 12px rgba(35,230,255,.16)); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: #e8ebf6;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: right .18s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { right: 0; }
.site-nav .github-link { color: var(--cyan); }
.menu-button { display: none; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.hero {
  padding: 62px 0 70px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.hero h1,
.page-hero h1,
.section-heading h2,
.content-section h2,
.about-section h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: .045em;
}
.hero h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
.hero h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-lead {
  max-width: 800px;
  margin: 27px auto 0;
  color: #c8cee0;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}
.hero-lead strong { color: var(--cyan); }
.wip-note {
  max-width: 780px;
  margin: 18px 0 0;
  padding: 9px 0 9px 14px;
  border-left: 3px solid var(--yellow);
  color: #aeb7cf;
  font-size: .88rem;
}
.wip-note strong { color: var(--yellow); }

.section { padding: 84px 0; }
.section-alt {
  border-block: 1px solid rgba(35,230,255,.14);
  background: linear-gradient(180deg, rgba(15,17,38,.57), rgba(4,5,13,.58));
}
.section-heading { margin-bottom: 32px; }
.section-heading h2,
.about-section h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); }
.section-intro { max-width: 760px; margin: 16px 0 0; color: var(--muted); }

.project-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(35,230,255,.36);
  background: linear-gradient(145deg, rgba(9,11,27,.96), rgba(4,5,14,.9));
  box-shadow: var(--shadow-cyan);
  overflow: hidden;
}
.project-card.gime { border-color: rgba(98,255,120,.4); box-shadow: var(--shadow-green); }
.project-card.modem { border-color: rgba(255,49,230,.4); box-shadow: var(--shadow-magenta); }
.project-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #010207;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-media.pixel img { image-rendering: pixelated; }
.project-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.project-type {
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid rgba(35,230,255,.35);
  color: var(--cyan);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gime .project-type { border-color: rgba(98,255,120,.4); color: var(--green); }
.modem .project-type { border-color: rgba(255,49,230,.4); color: #ff86ef; }
.project-card h3 { margin: 18px 0 8px; font-size: 1.55rem; }
.project-card p { margin: 0 0 20px; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 0 20px; }
.chip-row span {
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.13);
  color: #9ba7c5;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.project-link { color: var(--cyan); font-weight: 700; text-decoration: none; }
.gime .project-link { color: var(--green); }
.modem .project-link { color: #ff79ed; }
.project-link:hover, .project-link:focus-visible { text-decoration: underline; }

.about-section { padding: 82px 0 94px; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 66px; align-items: start; }
.about-copy { color: #c6cce0; font-size: 1.03rem; }
.about-copy p:first-child { margin-top: 0; }
.text-link { color: var(--cyan); font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.breadcrumb { padding: 26px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; color: #8490ad; font-size: .75rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 9px; color: #59647f; }
.breadcrumb a { color: var(--cyan); text-decoration: none; }

.page-hero { padding: 55px 0 66px; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.page-hero .lead { margin: 25px 0 0; max-width: 700px; color: #d2d7e8; font-size: 1.08rem; }
.page-hero-media { border: 1px solid rgba(35,230,255,.46); background: #010207; box-shadow: var(--shadow-cyan); }
.page-hero-media.gime-media { border-color: rgba(98,255,120,.52); box-shadow: var(--shadow-green); }
.page-hero-media.modem-media { border-color: rgba(255,49,230,.48); box-shadow: var(--shadow-magenta); }
.page-hero-media img { width: 100%; height: auto; }
.page-hero-media.pixel img { image-rendering: pixelated; }
.hero-video-media { overflow: hidden; }
.hero-video-stage { min-height: 0; padding: 18px; }
.hero-video-note { margin: 0; padding: 10px 13px 12px; border-top: 1px solid rgba(35,230,255,.18); color: #7e89a7; font-size: .7rem; }
.hero-video-note a { color: var(--cyan); text-decoration: none; }
.hero-video-note a:hover, .hero-video-note a:focus-visible { text-decoration: underline; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { border-color: var(--cyan); color: var(--cyan); background: rgba(35,230,255,.06); box-shadow: var(--shadow-cyan); }
.button-primary:hover, .button-primary:focus-visible { background: rgba(35,230,255,.12); }
.button-secondary { border-color: var(--magenta); color: #ff7eef; background: rgba(255,49,230,.05); box-shadow: var(--shadow-magenta); }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255,49,230,.1); }
.button-green { border-color: var(--green); color: var(--green); background: rgba(98,255,120,.05); box-shadow: var(--shadow-green); }

.content-section { padding: 76px 0; }
.content-section + .content-section { border-top: 1px solid rgba(255,255,255,.06); }
.content-section h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
.content-section h3 { margin-top: 30px; color: var(--cyan); }
.content-section p { color: #c7cde0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.feature-card { padding: 22px; border: 1px solid rgba(35,230,255,.24); background: rgba(8,10,23,.68); }
.feature-card h3 { margin: 0 0 7px; font-size: 1rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.gime-accent .feature-card { border-color: rgba(98,255,120,.22); }
.gime-accent .feature-card h3 { color: var(--green); }
.modem-accent .feature-card { border-color: rgba(255,49,230,.22); }
.modem-accent .feature-card h3 { color: #ff78eb; }

.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.media-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-card { margin: 0; min-width: 0; border: 1px solid rgba(35,230,255,.3); background: var(--panel-strong); box-shadow: var(--shadow-cyan); }
.media-card.green { border-color: rgba(98,255,120,.35); box-shadow: var(--shadow-green); }
.media-card.magenta { border-color: rgba(255,49,230,.36); box-shadow: var(--shadow-magenta); }
.media-card img { width: 100%; height: auto; object-fit: cover; }
.media-card.pixel img { image-rendering: pixelated; }
.media-card figcaption { padding: 10px 12px 12px; color: #8390ac; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }

.video-shell { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; border: 1px solid rgba(141,69,255,.72); background: #010207; box-shadow: 0 0 46px rgba(141,69,255,.12); }
.video-stage { min-height: 600px; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle, rgba(35,230,255,.07), transparent 48%), #010207; }
.short-frame { width: min(100%, 330px); aspect-ratio: 9/16; border: 1px solid rgba(35,230,255,.4); }
.short-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-info { padding: 25px 20px; border-left: 1px solid rgba(35,230,255,.3); }
.video-info h3 { margin: 0 0 14px; color: var(--magenta); }
.video-info p { color: var(--muted); font-size: .9rem; }

.spec-table { margin-top: 28px; border: 1px solid rgba(255,49,230,.32); background: rgba(2,3,8,.72); }
.spec-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
.spec-row:last-child { border-bottom: 0; }
.spec-row strong { color: var(--magenta); }
.spec-row span { color: #d5d9e7; }

.callout { margin-top: 30px; padding: 24px; border-left: 3px solid var(--cyan); background: rgba(35,230,255,.055); }
.callout.green { border-color: var(--green); background: rgba(98,255,120,.05); }
.callout.magenta { border-color: var(--magenta); background: rgba(255,49,230,.05); }
.callout h3 { margin-top: 0; }

.faq-list { display: grid; gap: 14px; margin-top: 28px; }
.faq-item { padding: 22px; border: 1px solid rgba(255,255,255,.11); background: rgba(8,10,23,.7); }
.faq-item h3 { margin: 0 0 8px; color: var(--cyan); font-size: 1rem; }
.faq-item p { margin: 0; color: var(--muted); }

.related-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.related-card { padding: 22px; border: 1px solid rgba(255,255,255,.13); background: rgba(8,10,23,.7); }
.related-card h3 { margin: 0 0 8px; color: var(--text); }
.related-card p { color: var(--muted); }
.related-card a { color: var(--cyan); font-weight: 700; text-decoration: none; }

.site-footer { padding: 34px 0; border-top: 1px solid rgba(255,49,230,.28); background: rgba(2,3,8,.93); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.footer-brand { display: flex; gap: 18px; align-items: center; color: #7f89a4; font-size: .76rem; }
.footer-brand img { width: 140px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 22px; }
.footer-links a { color: #9ca6c2; text-decoration: none; font-size: .72rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--cyan); }
.footer-copy { margin: 10px 0 0; color: #68738f; font-size: .7rem; text-align: right; }

@media (max-width: 1040px) {
  .project-showcase { grid-template-columns: 1fr; }
  .project-card { display: grid; grid-template-columns: minmax(280px, .9fr) 1.1fr; }
  .project-media { aspect-ratio: auto; min-height: 290px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.08); }
  .page-hero-grid, .content-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 820px; }
  .media-grid.three { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: .7rem; }
}

@media (max-width: 780px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .nav-shell { min-height: 72px; }
  .brand { width: 184px; }
  .menu-button {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 45px;
    height: 40px;
    border: 1px solid rgba(35,230,255,.34);
    background: transparent;
    color: var(--cyan);
  }
  .menu-button span { display: block; width: 21px; height: 2px; background: var(--cyan); }
  .site-nav {
    position: absolute;
    inset: 100% 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(35,230,255,.34);
    background: rgba(3,4,10,.99);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav a::after { display: none; }
  .hero { padding-top: 58px; }
  .project-card { display: flex; }
  .project-media { min-height: 0; aspect-ratio: 4/3; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .about-grid, .feature-grid, .media-grid, .media-grid.three, .related-projects { grid-template-columns: 1fr; }
  .video-shell { grid-template-columns: 1fr; }
  .video-stage { min-height: 535px; }
  .video-info { border-left: 0; border-top: 1px solid rgba(35,230,255,.3); }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .footer-copy { text-align: left; }
  .footer-brand { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(2.6rem, 14vw, 4rem); }
  .page-hero h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .video-stage { min-height: 0; padding: 14px; }
  .short-frame { width: min(100%, 292px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .scanlines { display: none; }
}
.media-card.photo img { aspect-ratio: 4 / 3; object-fit: contain; background: #03050a; }
.gime-title { color: var(--green); }
.roadmap-list { display: grid; gap: 14px; margin-top: 28px; }
.roadmap-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(98,255,120,.12); }
.roadmap-item strong { color: var(--green); text-transform: uppercase; font-size: .76rem; letter-spacing: .08em; }
.roadmap-item p { margin: 0; }
@media (max-width: 620px) { .roadmap-item { grid-template-columns: 1fr; gap: 5px; } }

/* v10.5: keep GiME ANSi! specification details in the project's green accent. */
.gime-accent .spec-table { border-color: rgba(98,255,120,.32); }
.gime-accent .spec-row strong { color: var(--green); }


/* v10.6: GiME ANSi! connected gallery shows full photos and supports click-to-zoom. */
.lightbox-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #03050a;
  color: inherit;
  cursor: zoom-in;
}
.lightbox-trigger:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(98,255,120,.45);
  background: rgba(3,5,10,.86);
  color: var(--green);
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(0,0,0,.92);
  cursor: zoom-out;
}
.lightbox-content {
  margin: 0;
  max-width: min(94vw, 1200px);
  max-height: 92vh;
  display: grid;
  gap: 10px;
  justify-items: center;
  cursor: default;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 54px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 28px rgba(98,255,120,.18);
}
.lightbox-caption {
  color: #c7d0e5;
  font-size: .72rem;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 1001;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(98,255,120,.55);
  background: rgba(3,5,10,.9);
  color: var(--green);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus-visible { background: rgba(98,255,120,.12); }
body.lightbox-open { overflow: hidden; }


/* v10.7: GiME ANSi! hero keeps the 676x469 screen capture at natural size on wide screens. */
.gime-page-hero .gime-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 678px);
  gap: 32px;
  align-items: start;
}
.gime-page-hero h1 { font-size: clamp(2.65rem, 4.2vw, 4.6rem); }
.gime-hero-copy { padding-top: 18px; }
.gime-hero-copy .chip-row { margin-top: 24px; }
.gime-hero-visual { min-width: 0; }
.gime-hero-media {
  width: fit-content;
  max-width: 100%;
  margin: 0;
}
.gime-hero-media img {
  width: auto;
  max-width: 100%;
  height: auto;
}
.gime-hero-visual .wip-note,
.gime-hero-visual .hero-actions { max-width: 676px; }
.gime-hero-visual .wip-note { margin-top: 18px; }
.gime-hero-visual .hero-actions { margin-top: 18px; }

@media (max-width: 1040px) {
  .gime-page-hero .gime-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .gime-hero-copy { padding-top: 0; }
  .gime-hero-visual { width: min(100%, 678px); }
}

@media (max-width: 520px) {
  .gime-page-hero h1 { font-size: clamp(2.35rem, 12vw, 3.65rem); }
}

.gime-page-title {
    text-transform: none !important;
    margin: 0 0 1.5rem;
    line-height: 1.05;
}

.gime-title-name {
    display: block;
    font-size: clamp(3.25rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 0.95;
    margin-bottom: 0.75rem;
    text-transform: none !important;

    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #f4fff4 35%,
        #aaffaa 70%,
        #63e86f 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff;
}

.gime-title-description {
    display: block;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
    text-transform: none !important;
}