*{box-sizing:border-box}
:root{
  --bg:#08090b;
  --panel:#111318;
  --text:#f3f5f7;
  --muted:#a7adb7;
  --line:#252934;
  --accent:#ff9e3d;
  --accent2:#ffd39a;
  --max:1180px;
}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:
    radial-gradient(circle at 70% 5%,rgba(255,158,61,.08),transparent 28rem),
    var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,sans-serif;
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
.nav{
  width:min(calc(100% - 40px),var(--max));
  margin:auto;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:2;
}
.brand{
  font-family:"Space Grotesk",sans-serif;
  font-weight:700;
  letter-spacing:.16em;
}
.nav nav{display:flex;gap:28px;align-items:center}
.nav nav>a:not(.button){color:var(--muted);font-size:.95rem}
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--accent),#ff7433);
  color:#101010;
  font-weight:700;
  padding:14px 20px;
  border-radius:999px;
  box-shadow:0 8px 30px rgba(255,126,51,.18);
}
.button.small{padding:10px 16px}
.hero{
  width:min(calc(100% - 40px),var(--max));
  margin:auto;
  min-height:690px;
  display:grid;
  grid-template-columns:1fr 1.08fr;
  align-items:center;
  gap:56px;
  padding:80px 0;
}
.eyebrow{
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--accent2);
  font-weight:700;
  font-size:.78rem;
}
h1,h2,h3{font-family:"Space Grotesk",sans-serif;margin-top:0;line-height:1.05}
h1{font-size:clamp(4rem,9vw,7.6rem);letter-spacing:-.07em;margin-bottom:24px}
h1 span{color:var(--accent)}
h2{font-size:clamp(2.4rem,5vw,4.5rem);letter-spacing:-.05em}
h3{font-size:1.3rem}
.lede{font-size:1.2rem;color:var(--muted);max-width:650px}
.actions{display:flex;gap:24px;align-items:center;margin-top:34px;flex-wrap:wrap}
.text-link{font-weight:600;color:var(--muted)}
.hero-media{
  aspect-ratio:4/5;
  border-radius:28px;
  border:1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%,rgba(255,157,61,.22),transparent 28%),
    linear-gradient(145deg,#171a20,#0e0f12);
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
.placeholder{display:grid;place-items:center;text-align:center;color:var(--muted)}
.placeholder strong{display:block;color:var(--text);font-size:1.1rem}
.placeholder span{font-size:.9rem}
.section{
  width:min(calc(100% - 40px),var(--max));
  margin:auto;
  padding:110px 0;
  border-top:1px solid var(--line);
}
.split{display:grid;grid-template-columns:1fr 1fr;gap:70px}
.body-copy{font-size:1.12rem;color:var(--muted)}
.gallery{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  margin-top:42px;
}
.photo{
  min-height:360px;
  margin:0;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(145deg,#16191f,#0d0f12);
}
.video-wrap{
  aspect-ratio:16/9;
  background:#0e1014;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  margin-top:38px;
}
.video-wrap iframe{width:100%;height:100%;border:0}
.video-placeholder{height:100%;display:grid;place-items:center;align-content:center;color:var(--muted);text-align:center}
.video-placeholder code{color:var(--accent2)}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.features article{
  padding:30px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
}
.features article>span{color:var(--accent);font-weight:700}
.features p{color:var(--muted)}
.cta{
  width:min(calc(100% - 40px),var(--max));
  margin:40px auto 90px;
  padding:90px 50px;
  text-align:center;
  background:
    radial-gradient(circle at 50% 20%,rgba(255,158,61,.18),transparent 40%),
    var(--panel);
  border:1px solid var(--line);
  border-radius:28px;
}
.cta p{color:var(--muted);max-width:640px;margin:0 auto 28px}
.cta .eyebrow{color:var(--accent2);margin-bottom:16px}
footer{
  width:min(calc(100% - 40px),var(--max));
  margin:auto;
  padding:35px 0 55px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:.9rem;
}
@media(max-width:800px){
  .nav nav>a:not(.button){display:none}
  .hero{grid-template-columns:1fr;min-height:auto;padding:55px 0}
  .hero-media{aspect-ratio:4/3}
  .split{grid-template-columns:1fr;gap:20px}
  .gallery{grid-template-columns:1fr}
  .photo{min-height:260px}
  .features{grid-template-columns:1fr}
  .section{padding:80px 0}
  .cta{padding:65px 24px}
}


.brand{
  display:flex;
  align-items:center;
}
.brand img{
  display:block;
  width:210px;
  max-width:38vw;
  height:auto;
  border-radius:4px;
}
.footer-logo img{
  display:block;
  width:165px;
  max-width:45vw;
  height:auto;
  border-radius:4px;
}
@media(max-width:800px){
  .brand img{width:170px;max-width:48vw}
  .footer-logo img{width:145px}
}


img.hero-media{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.gallery{
  align-items:stretch;
}
.photo{
  overflow:hidden;
  min-height:320px;
  background:#0d0f12;
}
.photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.photo.portrait{
  min-height:520px;
}
@media(max-width:800px){
  .photo,
  .photo.portrait{min-height:auto}
  .photo img{height:auto;object-fit:contain}
}


/* Optimized logo styling */
.brand img{
  display:block;
  width:210px;
  max-width:38vw;
  height:auto;
  border-radius:4px;
}
.footer-logo img{
  display:block;
  width:165px;
  max-width:45vw;
  height:auto;
  border-radius:4px;
}
.meet-title{
  margin-bottom:10px;
}
.hero-logo-wrap{
  margin:6px 0 24px;
}
.hero-logo{
  display:block;
  width:min(680px, 100%);
  height:auto;
}
@media(max-width:800px){
  .brand img{width:170px;max-width:48vw}
  .footer-logo img{width:145px}
  .hero-logo{width:min(520px, 100%)}
}

/* Full, uncropped hero image */
img.hero-media{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
  background:#0b0c0e;
}

/* Gallery layout */
.gallery{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.photo{
  min-height:0;
  aspect-ratio:16/10;
}
.photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.photo.portrait{
  aspect-ratio:4/5;
}
.photo.portrait img{
  object-fit:contain;
  background:#0b0c0e;
}
@media(max-width:800px){
  .gallery{grid-template-columns:1fr}
  .photo,.photo.portrait{aspect-ratio:auto}
  .photo img,.photo.portrait img{height:auto;object-fit:contain}
}

/* Click-to-open full-size gallery */
.gallery-link{
  display:block;
  width:100%;
  height:100%;
  cursor:zoom-in;
}
.gallery-link img{
  transition:transform .2s ease, opacity .2s ease;
}
.gallery-link:hover img{
  transform:scale(1.015);
  opacity:.96;
}
body.lightbox-open{
  overflow:hidden;
}
.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(0,0,0,.92);
  cursor:zoom-out;
}
.lightbox.open{
  display:flex;
}
.lightbox img{
  display:block;
  max-width:96vw;
  max-height:94vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 18px 70px rgba(0,0,0,.55);
}
.lightbox-close{
  position:fixed;
  top:16px;
  right:22px;
  z-index:10000;
  width:46px;
  height:46px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:white;
  font-size:34px;
  line-height:1;
  cursor:pointer;
}
@media(max-width:800px){
  .lightbox{padding:12px}
  .lightbox img{max-width:98vw;max-height:90vh}
}

/* Keep the Telegram thumbnail focused on the left side so the left display remains visible */
.telegram-photo img{
  object-position:left center;
}


/* Updated logo and hero layout */
.brand img{
  width:280px;
  max-width:44vw;
  height:auto;
  border-radius:4px;
}
.footer-logo img{
  width:200px;
  max-width:52vw;
  height:auto;
  border-radius:4px;
}
.hero{
  width:min(calc(100% - 40px),1320px);
  margin:auto;
  min-height:auto;
  display:block;
  padding:72px 0 42px;
}
.hero-copy{
  max-width:760px;
  margin-bottom:28px;
}
.hero h1{
  font-size:clamp(3.2rem,7vw,6rem);
  letter-spacing:-.06em;
  margin-bottom:20px;
}
.hero .lede{
  max-width:760px;
}
img.hero-media{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
  border-radius:28px;
  border:1px solid var(--line);
  background:#0b0c0e;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}
@media(max-width:800px){
  .brand img{width:210px;max-width:58vw}
  .footer-logo img{width:165px;max-width:55vw}
  .hero{padding:52px 0 28px}
  .hero-copy{margin-bottom:20px}
}

/* "Meet NixieGraph" hero heading using the logo */
.meet-logo-title{
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  margin:0 0 20px;
}
.meet-logo-title span{
  font-family:"Space Grotesk",sans-serif;
  font-size:clamp(3.2rem,7vw,6rem);
  line-height:1;
  letter-spacing:-.06em;
  font-weight:700;
}
.meet-logo-title img{
  display:block;
  width:min(430px,52vw);
  height:auto;
}
@media(max-width:800px){
  .meet-logo-title{
    gap:14px;
  }
  .meet-logo-title span{
    font-size:clamp(2.6rem,12vw,4rem);
  }
  .meet-logo-title img{
    width:min(300px,70vw);
  }
}


/* Kickstarter Story — text and images imported from the saved Kickstarter editor page */
.story-section{display:block}
.story-section>h2{max-width:900px;margin-bottom:36px}
.story-content{max-width:960px;margin:0 auto}
.story-content h3{font-size:clamp(1.65rem,3vw,2.35rem);margin:64px 0 18px}
.story-content p{font-size:1.08rem;color:var(--muted);margin:0 0 20px}
.story-content ul,.story-content ol{color:var(--muted);font-size:1.08rem;margin:0 0 28px;padding-left:1.5rem}
.story-content li{margin:8px 0}
.story-figure{margin:28px 0 38px}
.story-figure img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;border-radius:18px;border:1px solid var(--line);background:#0b0c0e}
.story-figure figcaption{color:var(--muted);font-size:.92rem;margin-top:10px;text-align:center}
@media(max-width:800px){
  .story-content{max-width:100%}
  .story-content h3{margin-top:48px}
  .story-figure{margin:22px 0 30px}
}


/* Preserve intrinsic size for smaller Kickstarter Story images */
.story-figure.natural-size{
  text-align:center;
}
.story-figure.natural-size img{
  width:auto !important;
  height:auto !important;
  max-width:100%;
  display:inline-block;
}
