:root {
  --bg: #000;
  --fg: #e8e8e8;
  --muted: #888;
  --line: #1e1e1e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: transparent;
  color: var(--fg);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 20px;
  line-height: 1.7;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;   
  -moz-osx-font-smoothing: grayscale; 
}

html {
  background-color: #000;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  width: 60vh;
  height: 60vh;
  background-image: url('nn-logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: brightness(0) invert(1);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

#asciiArt {
  position: fixed;
  top: 55%;
  left: 2vw;
  margin: 0;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1;
  white-space: pre;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.10);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
  will-change: transform, opacity;
}

#asciiArt.on {
  opacity: 1;
  animation: breath 8s ease-in-out infinite;
}

@keyframes breath {
  0%   { transform: translateY(-50%)   translateX(0);    filter: brightness(1);    }
  25%  { transform: translateY(-52%)   translateX(1px);  filter: brightness(1.15); }
  50%  { transform: translateY(-48%)   translateX(0);    filter: brightness(1);    }
  75%  { transform: translateY(-51%)   translateX(-1px); filter: brightness(1.10); }
  100% { transform: translateY(-50%)   translateX(0);    filter: brightness(1);    }
}

#asciiArt.on.glitching {
  animation: glitch 0.35s steps(1, end) 1;
}

@keyframes glitch {
  0%   { opacity: 1; transform: translateY(-50%)   translateX(0); }
  10%  { opacity: 0; transform: translateY(-50%)   translateX(0); }
  20%  { opacity: 1; transform: translateY(-50.8%) translateX(0.8px); }
  30%  { opacity: 0; transform: translateY(-50%)   translateX(0); }
  45%  { opacity: 1; transform: translateY(-49.2%) translateX(-0.7px); }
  60%  { opacity: 0; transform: translateY(-50%)   translateX(0); }
  75%  { opacity: 1; transform: translateY(-50.5%) translateX(0.5px); }
  100% { opacity: 1; transform: translateY(-50%)   translateX(0); }
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 1px; }

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  position: relative;
  top: -3px;
}

.brand-name { font-family: 'Instrument Serif', serif; font-size: 20px; }


.topnav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 13px;
  transition: color .2s;
}

.topnav a:hover { color: #fff; }

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--muted);           /* grey at rest */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1),
              background-color .3s ease;
}

.topnav a:hover::after {
  transform: scaleX(1);
  background: #fff;                    /* white on hover */
}

.sidenav {
  position: fixed;
  right: calc(50% - 440px - 62px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 10;
  transition: right .45s cubic-bezier(.22,.61,.36,1);
}
.sidenav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
  transition: color .2s;
}
.sidenav a:hover { color: var(--fg); }

main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 120px 24px 120px;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;   
  font-weight: 400;
  font-size: clamp(1.85rem, 5vw, 2.9rem);           
  line-height: 1.16;
  letter-spacing: -0.015em;                     
  color: #f2f2f2;                                   
  margin-bottom: 20px;
}

.nowrap { white-space: nowrap; }

.cursor {
  display: inline-block;
  margin-left: 6px;
  font-weight: 300;
  animation: blink 1s steps(1, end) infinite;
  white-space: nowrap;
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero p { color: var(--muted); max-width: 60ch; font-size: 13.5px; line-height: 1.7; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 60px 0;
}



.section h2 {
  font-family: Georgia, 'Times New Roman', serif;   
  font-weight: 400;
  font-size: 1.45rem;                                
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #f2f2f2;
  margin-bottom: 18px;
}

.section p { color: var(--muted); margin-bottom: 28px; font-size: 13.5px; line-height: 1.7; }

.download {
  display: inline-block;
  margin-top: 4px;
  color: var(--fg);
  text-decoration: underline;
  font-size: 13.5px;
}
.download:hover { color: #fff; text-decoration: none; }


footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 60px;
  text-align: right;
}

footer hr {
  margin: 60px 0 16px;
}

footer .credit {
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color .2s;
}

.credit:hover {
  color: var(--fg);
}

@media (max-width: 1100px) {
  #asciiArt { display: none; }
  .sidenav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #asciiArt.on { animation: none; }
}

@media (max-width: 640px) {
  .topbar { padding: 12px 20px; }
  .sidenav { display: none; }
  main { padding: 100px 20px 80px; }
  .watermark { font-size: 40vh; }
  footer { padding: 0 20px 40px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(30px, 8vw, 40px); }
}


.links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lnk {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.lnk:first-child {
  border-top: none;
  padding-top: 0;
}

.lnk .lb {
  font-size: 13px;
  color: var(--fg);
  min-width: 88px;
}

.lnk .hd {
  font-size: 12px;
  color: var(--muted);
}

.lnk:hover .lb {
  color: #fff;
}

.lnk:hover .hd {
  color: var(--fg);
}


#asciiArtR {
  position: fixed;
  top: 62%;
  right: 2vw;
  left: auto;
  margin: 0;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px;
  line-height: 1;
  white-space: pre;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.10);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 1.2s ease 0.4s;
  will-change: transform, opacity;
  text-align: right;
}

#asciiArtR.on {
  opacity: 1;
}

@media (max-width: 1100px) {
  #asciiArtR { display: none; }
}

/* FAQ accordion — matched to site variables */

.faq {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
  font-size: 13px;
  color: var(--fg);
  transition: color .2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-item summary:hover {
  color: #fff;
}

.faq-arrow {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: transform .25s ease, color .2s;
  line-height: 1;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
  color: var(--fg);
}

.faq-item p {
  margin: 0 0 13px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  max-width: 62ch;
}

.faq-item p a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}

.faq-item p a:hover {
  color: #fff;
  text-decoration: none;
}



/* ============================================
   Background effects — grey on black (site palette)
   ============================================ */

#ct-site-bg {
  --ct-accent: #e8e8e8;      /* matches --fg */
  --ct-accent-dim: #888;     /* matches --muted */
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

#ct-site-bg,
#ct-site-bg * {
  pointer-events: none !important;
  user-select: none;
}

/* --- Dot matrix grid (very subtle grey) --- */
#ct-site-bg .ct-bg-dotmatrix {
  position: absolute;
  inset: -30%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M0 28h56M28 0v56' stroke='%23fff' stroke-opacity='0.035' stroke-width='0.5'/%3E%3Ccircle cx='28' cy='28' r='1' fill='%23fff' fill-opacity='0.15'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 56px 56px;
  animation: ct-bg-drift 50s linear infinite;
  will-change: transform;
}

#ct-site-bg .ct-bg-dotmatrix--b {
  opacity: 0.45;
  animation: ct-bg-drift-rev 70s linear infinite;
}

@keyframes ct-bg-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(56px, 56px); }
}

@keyframes ct-bg-drift-rev {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-56px, -40px); }
}

/* --- Soft grey glow (top + bottom) --- */
#ct-site-bg .ct-bg-glow {
  position: absolute;
  width: 80%;
  height: 60%;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06), transparent 68%);
  filter: blur(48px);
  animation: ct-bg-glow 7s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes ct-bg-glow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.08); }
}

/* --- Scan beam (sweeps top → bottom) --- */
#ct-site-bg .ct-bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 46%,
    rgba(255, 255, 255, 0.015) 48%,
    rgba(255, 255, 255, 0.05)  50%,
    rgba(255, 255, 255, 0.015) 52%,
    transparent 54%,
    transparent 100%
  );
  opacity: 1;
  animation: ct-bg-scan 10s linear infinite;
  will-change: transform;
}

#ct-site-bg .ct-bg-scan--fast {
  animation: ct-bg-scan 4s linear infinite;
  animation-delay: -0s;
  filter: brightness(1.7);
}

@keyframes ct-bg-scan {
  0%   { transform: translateY(-140px); }
  100% { transform: translateY(110vh); }
}

/* --- Film grain (subtle shimmer) --- */
#ct-site-bg .ct-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: ct-bg-grain 0.4s steps(2) infinite;
}

@keyframes ct-bg-grain {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-1%, 0.5%); }
  100% { transform: translate(0.5%, -0.5%); }
}

/* --- Respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  #ct-site-bg .ct-bg-dotmatrix,
  #ct-site-bg .ct-bg-glow,
  #ct-site-bg .ct-bg-scan,
  #ct-site-bg .ct-bg-grain {
    animation: none;
  }
}


/* Hero + About paragraphs — brighten on hover, vertical line appears on the left */

.hero p,
.section#about p {
  position: relative;
  padding-left: 14px;             /* room for the line */
  color: var(--muted);
  transition: color .25s ease;
}

/* the vertical line — hidden at rest, grows in from the top on hover */
.hero p::before,
.section#about p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--muted);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1),
              background-color .3s ease;
}

/* text brightens on hover */
.hero p:hover,
.section#about p:hover {
  color: #c8c8c8;
}

/* line grows from top to bottom on hover */
.hero p:hover::before,
.section#about p:hover::before {
  transform: scaleY(1);
  background: #c8c8c8;
}

/* no effect on touch devices — nobody can hover there anyway */
@media (hover: none) {
  .hero p::before,
  .section#about p::before {
    display: none;
  }
  .hero p,
  .section#about p {
    padding-left: 0;
  }
}

.hero p,
.section p,
.faq-item p,
.lnk,
.lnk .lb,
.lnk .hd {
  cursor: default;
}

/* Stone statues — barely visible, behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('statues.png');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% 95%;   /* ← stretch to fill viewport — statues reach the edges */
  opacity: 0.1;                 /* ← start higher so you can SEE it, then lower */
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
