/* ============================================================
   aepryus.com — "Software for exploring strange systems"
   Static landing page. Dark terminal aesthetic, node-graph motif.
   ============================================================ */

:root {
  --bg:      #000000;
  --bg-2:    #07090b;        /* panels / device bodies */
  --bg-3:    #0b0e11;        /* node pills */
  --ink:     #eaf1ec;        /* headlines */
  --txt:     #9aaaa4;        /* body copy */
  --dim:     #5c6a64;        /* faint labels */
  --grn:     #a6ff1f;        /* signature neon lime */
  --grn-dim: rgba(166,255,31,.55);
  --blu:     #aeb6ff;        /* blue node text */
  --blu-line:rgba(120,134,255,.55);
  --cyn:     #46e7d6;
  --mag:     #ff86e4;        /* diamond nodes */
  --mag-line:rgba(255,95,208,.6);
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.16);
  --disp: "Chakra Petch", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --read: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* faint dotted grid behind everything */
.grid-bg {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 70% 0%, #000 0%, transparent 75%);
  opacity: .8;
}

/* terminal cursor — static green underscore on wordmarks; only the hero blinks */
.cur { color: var(--grn); font-weight: 400; }
.hero-title .cur { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.grn { color: var(--grn); }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.orb { width: 42px; height: 42px; object-fit: contain;
       filter: drop-shadow(0 0 9px rgba(94,234,126,.45)); }
.brand-name { font-family: var(--disp); font-weight: 700; letter-spacing: .14em;
              font-size: 19px; color: var(--ink); }

.nav-main { display: flex; gap: 30px; margin-left: auto; }
.nav-main a {
  font-family: var(--disp); font-weight: 500; letter-spacing: .16em;
  font-size: 13px; color: var(--txt);
  padding: 4px 0; position: relative; transition: color .15s;
}
.nav-main a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--grn); transition: width .2s;
}
.nav-main a:hover { color: var(--ink); }
.nav-main a:hover::after { width: 100%; }

.nav-corner { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px;
              font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.nav-corner a { transition: color .15s; }
.nav-corner a:hover { color: var(--grn); }
.nav-corner .cc { color: var(--grn-dim); }
.js-mail { cursor: pointer; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2);
              color: var(--ink); font-size: 22px; line-height: 1; border-radius: 6px;
              width: 42px; height: 38px; cursor: pointer; }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 40px 0 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0,360px) 1fr;
              gap: 30px; align-items: start; min-height: 560px; }

.hero-title {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(46px, 6vw, 92px); line-height: .96;
  letter-spacing: .02em; color: var(--ink); margin: 8px 0 0;
  text-shadow: 0 0 40px rgba(0,0,0,.6);
}
.hero-title .grn { text-shadow: 0 0 28px rgba(166,255,31,.35); }
.hero-sub { font-size: 13px; letter-spacing: .18em; color: var(--grn);
            margin-top: 26px; line-height: 1.7; }

.hero-graph { align-self: center; }
/* keep the graph hugging the right so its left node cluster clears the title */
.hero-graph .graph-fit { max-width: 660px; margin-left: auto; }
.hero-rule { border-bottom: 1px solid var(--line); margin-top: 26px; }

/* ===================== NODE GRAPH ENGINE ===================== */
/* .graph-fit scales the fixed-size .graph down to fit its column (set by JS) */
.graph-fit { position: relative; width: 100%; }
.graph { position: relative; transform-origin: top left; }

.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: var(--blu-line); stroke-width: 1.25;
              opacity: .8; }
.wires path.green { stroke: var(--grn-dim); }

.nd {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 11px; line-height: 1.15; white-space: nowrap;
  padding: 6px 10px; border-radius: 7px; border: 1px solid var(--blu-line);
  background: var(--bg-3); color: var(--blu);
  box-shadow: 0 0 14px rgba(120,134,255,.12);
}
.nd-green { color: var(--grn); border-color: var(--grn-dim);
            box-shadow: 0 0 16px rgba(166,255,31,.14); }
.nd-blue  { color: var(--blu); border-color: var(--blu-line); }

.nd-diamond {
  transform: translate(-50%, -50%) rotate(45deg);
  border-color: var(--mag-line); color: var(--mag);
  box-shadow: 0 0 16px rgba(255,95,208,.16); padding: 13px;
}
.nd-diamond span { display: block; transform: rotate(-45deg); font-size: 10px; }

.nd-stack { padding: 0; overflow: hidden; min-width: 78px; text-align: center; }
.nd-stack .nd-stack-h { padding: 5px 12px; color: var(--blu);
  border-bottom: 1px solid var(--blu-line); background: rgba(120,134,255,.08); }
.nd-stack .nd-stack-r { padding: 4px 12px; color: var(--txt);
  border-bottom: 1px solid rgba(255,255,255,.06); }
.nd-stack .nd-stack-r:last-child { border-bottom: 0; }


/* ===================== CONTENT BLOCKS ===================== */
.block { padding: 84px 0; border-bottom: 1px solid var(--line); }
.block-inner { display: grid;
  grid-template-columns: 34px minmax(0, 320px) 1fr; gap: 22px 40px;
  align-items: start; }
/* let the art column shrink instead of being forced to the image's intrinsic
   width (which otherwise crushes the copy column) */
.block-art { min-width: 0; }
.block-index { font-family: var(--disp); font-weight: 600; font-size: 22px;
               color: var(--dim); letter-spacing: .05em; }

.eyebrow { font-size: 12px; letter-spacing: .18em; color: var(--grn);
           margin-bottom: 22px; }
.prod-name { font-family: var(--disp); font-weight: 700; letter-spacing: .04em;
  font-size: clamp(40px, 4.6vw, 62px); color: var(--ink); margin: 0 0 14px; }
.prod-tag { font-family: var(--disp); font-weight: 600; letter-spacing: .08em;
  font-size: 17px; color: var(--ink); margin: 0 0 22px; line-height: 1.3;
  text-transform: uppercase; }
.block-copy p { margin: 0 0 16px; max-width: 34ch; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  font-family: var(--disp); font-weight: 600; letter-spacing: .12em; font-size: 13px;
  color: var(--grn); padding: 13px 22px; border: 1px solid var(--grn-dim);
  border-radius: 8px; transition: all .18s;
}
.btn .arr { transition: transform .18s; }
.btn:hover { background: var(--grn); color: #04130b; border-color: var(--grn);
             box-shadow: 0 0 28px rgba(166,255,31,.3); }
.btn:hover .arr { transform: translateX(4px); }
/* unreleased product — non-interactive badge */
.btn-soon { color: var(--dim); border-color: var(--line-2); cursor: default; }
.btn-soon:hover { background: none; color: var(--dim); border-color: var(--line-2);
             box-shadow: none; }

.platform { margin-top: 26px; font-size: 13px; color: var(--dim);
            display: flex; align-items: center; gap: 9px; letter-spacing: .04em; }
.apple { width: 14px; height: 16px; background: var(--dim);
  -webkit-mask: var(--apple-svg) center/contain no-repeat;
          mask: var(--apple-svg) center/contain no-repeat; }
:root { --apple-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16.4 12.6c0-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.1-2.8.9-3.5.9-.7 0-1.8-.8-3-.8-1.5 0-2.9.9-3.7 2.3-1.6 2.7-.4 6.8 1.1 9 .7 1.1 1.6 2.3 2.8 2.2 1.1 0 1.5-.7 2.9-.7 1.3 0 1.7.7 2.9.7 1.2 0 2-1.1 2.7-2.1.8-1.2 1.2-2.4 1.2-2.4s-2.3-.9-2.3-3.5zM14.2 5.3c.6-.8 1-1.8.9-2.9-.9 0-2 .6-2.6 1.3-.6.7-1.1 1.7-1 2.7 1 .1 2-.5 2.7-1.1z'/></svg>"); }

/* framed real app screenshot */
.shot { display: block; border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--line-2); transition: border-color .18s, box-shadow .18s;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.04); }
.shot img { width: 100%; display: block; }
.shot:hover { border-color: var(--grn-dim);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 34px rgba(166,255,31,.12); }

/* floating widget shots (AepCalc) — no frame, just a drop shadow */
.block-art--center { display: flex; justify-content: center; align-items: center; }
.calc-shot { display: block; width: 100%; max-width: 520px;
  filter: drop-shadow(0 26px 55px rgba(0,0,0,.65)); transition: transform .18s, filter .18s; }
.calc-shot img { width: 100%; height: auto; display: block; }
.calc-shot:hover { transform: translateY(-3px);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.7)) drop-shadow(0 0 26px rgba(166,255,31,.14)); }

/* ===================== FOOTER ===================== */
.site-footer { position: relative; padding: 70px 0 36px; overflow: hidden; }
.terrain-mesh { position: absolute; right: -20px; bottom: -40px; height: 460px; width: auto;
  z-index: 0; opacity: .5; pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(118,226,118,.25)); }
.footer-inner { position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.6fr; gap: 30px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand .orb { width: 30px; height: 30px; }
.foot-brand .brand-name { font-size: 15px; letter-spacing: .1em; }
.foot-brand p { font-size: 13px; max-width: 26ch; margin: 0 0 12px; }
.foot-brand .copy { color: var(--dim); font-size: 12px; }
.foot-col h4, .foot-news h4 { font-family: var(--disp); font-weight: 600;
  letter-spacing: .14em; font-size: 12px; color: var(--ink); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 13px; color: var(--txt); margin-bottom: 9px;
  transition: color .15s; }
.foot-col a:hover { color: var(--grn); }
.foot-news p { font-size: 13px; margin: 0 0 14px; max-width: 24ch; }
.news-form { display: flex; border: 1px solid var(--line-2); border-radius: 8px;
  overflow: hidden; max-width: 280px; }
.news-form input { flex: 1; background: rgba(255,255,255,.03); border: 0;
  color: var(--ink); font-family: var(--mono); font-size: 13px; padding: 11px 13px; }
.news-form input::placeholder { color: var(--dim); }
.news-form input:focus { outline: none; background: rgba(166,255,31,.05); }
.news-form button { background: none; border: 0; border-left: 1px solid var(--line-2);
  color: var(--grn); font-size: 18px; width: 46px; cursor: pointer; transition: background .15s; }
.news-form button:hover { background: var(--grn); color: #04130b; }
.socials { display: flex; gap: 16px; margin-top: 18px; font-size: 18px; }
.socials a { color: var(--txt); transition: color .15s; display: inline-flex; align-items: center; }
.socials a:hover { color: var(--grn); }
.socials svg { width: 19px; height: 19px; fill: currentColor; display: block; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .nav-main, .nav-corner { display: none; }
  .nav-main.open { display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(0,0,0,.96);
    border-bottom: 1px solid var(--line); padding: 8px 28px; }
  .nav-main.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-inner { gap: 0; }
  .brand { margin-right: auto; }

  .hero-inner { grid-template-columns: 1fr; gap: 10px; min-height: 0; }
  .hero-graph { overflow-x: auto; }

  .block-inner { grid-template-columns: 28px 1fr; }
  .block-art { grid-column: 1 / 3; margin-top: 10px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .foot-brand, .foot-news { grid-column: 1 / 3; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .foot-brand, .foot-news { grid-column: auto; }
}

/* ===================== ARTICLE / ABOUT ===================== */
.article { max-width: 768px; margin: 0 auto; padding: 72px 28px 96px; }
.article .eyebrow { margin-bottom: 18px; }
.article h1 { font-family: var(--disp); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.05; color: var(--ink); margin: 0 0 16px; }
.article h2 { font-family: var(--disp); font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; font-size: 23px; color: var(--ink);
  margin: 52px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.article h3 { font-family: var(--disp); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: 16px; color: var(--grn); margin: 36px 0 12px; }
.article p { font-family: var(--read); font-size: 16px; line-height: 1.8;
  color: var(--txt); margin: 0 0 20px; }
.article ul { font-family: var(--read); color: var(--txt); font-size: 16px;
  line-height: 1.75; margin: 0 0 22px; padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article li::marker { color: var(--grn-dim); }
.article a { color: var(--grn); border-bottom: 1px solid var(--grn-dim); }
.article a:hover { color: var(--ink); border-color: var(--ink); }

/* editor's note at the top */
.article .lede { font-family: var(--read); font-style: italic; font-size: 14px;
  line-height: 1.7; color: var(--dim); border-left: 2px solid var(--line-2);
  padding: 4px 0 4px 18px; margin: 0 0 36px; }

/* pull quotes (Newton / Maxwell) */
.article blockquote { margin: 30px 0; padding: 8px 0 8px 24px;
  border-left: 2px solid var(--grn-dim); font-family: var(--read); font-style: italic;
  font-size: 17px; line-height: 1.7; color: var(--ink); }
.article blockquote cite { display: block; margin-top: 12px; font-style: normal;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--dim); }
.article blockquote cite a { font-style: normal; }

.article .colophon { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--dim); line-height: 1.9; }

/* back-to-home crumb */
.article .crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--dim); margin-bottom: 30px; display: inline-block; }
.article .crumb:hover { color: var(--grn); }

/* ===================== ARCHIVE PAGE ===================== */
.archive .arch-item + .arch-item { border-top: 1px solid var(--line);
  margin-top: 30px; padding-top: 30px; }
.archive .arch-item h3 { margin-top: 0; }
.archive .arch-shots { display: flex; flex-wrap: wrap; gap: 12px;
  margin: 16px 0 20px; align-items: flex-start; }
.archive .arch-shots img { max-height: 168px; max-width: 100%; display: block;
  border: 1px solid var(--line-2); border-radius: 6px; background: #000; }
.archive .arch-shots a { display: inline-flex; line-height: 0; border-bottom: 0; }
.archive .arch-dl { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--grn);
  border: 1px solid var(--grn-dim); border-radius: 7px; padding: 9px 16px; transition: all .15s; }
.archive .arch-dl:hover { background: var(--grn); color: #04130b; border-color: var(--grn); }
.archive .arch-years { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.archive .arch-years a { font-family: var(--disp); font-weight: 600; font-size: 22px;
  letter-spacing: .08em; color: var(--ink); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 18px 28px; transition: all .15s; }
.archive .arch-years a:hover { border-color: var(--grn-dim); color: var(--grn);
  box-shadow: 0 0 22px rgba(166,255,31,.12); }
