/* ============================================================
   805 SOFTWARE — main lander
   palette + tokens
   ============================================================ */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --surface:     #141414;
  --surface-2:   #1a1a1a;
  --border:      #262626;
  --border-2:    #333333;
  --yellow:      #FFD60A;
  --yellow-dim:  #b8990a;
  --text:        #e8e8e8;
  --text-2:      #b5b5b5;
  --text-dim:    #777777;
  --text-faint:  #4a4a4a;
  --red:         #ff5252;
  --green:       #7fff5a;

  --font-mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-pixel:  "VT323", "JetBrains Mono", monospace;

  --max-w:       1280px;
  --gutter:      clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* clear sticky topbar (56px) */
  overflow-x: clip; /* clip without establishing a scroll container (preserves sticky) */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* faint dot grid (matches existing site) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
}
/* faint scanlines on top */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

main, header, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
a.link {
  color: var(--yellow);
  border-bottom: 1px dashed var(--yellow-dim);
}
a.link:hover { background: rgba(255,214,10,0.08); }

::selection { background: var(--yellow); color: #000; }

/* ----------- shared layout primitives ----------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}
.hr-yellow {
  border: 0;
  border-top: 1px solid var(--yellow);
  opacity: 0.4;
  margin: 0;
}
.hr-dashed {
  border: 0;
  border-top: 1px dashed var(--border-2);
  margin: 0;
}

/* section header chip   ── // 01 ── SERVICES ─────────────────── */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.section-head .num {
  font-family: var(--font-pixel);
  font-size: 28px;
  line-height: 1;
  color: var(--yellow);
  letter-spacing: 0;
  padding-top: 2px;
}
.section-head .label {
  color: var(--text);
  font-weight: 700;
}
.section-head .slash { color: var(--text-faint); }
.section-head .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-2), transparent);
}

/* section ASCII title (big) */
.section-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  color: var(--text);
}
.section-sub {
  color: var(--text-dim);
  max-width: 64ch;
  margin: 0 0 40px 0;
  font-size: 15px;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.topbar .brand .brand-logo {
  height: 32px;
  width: auto;
  display: block;
}
.topbar nav {
  display: flex;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.topbar nav a { transition: color .15s; }
.topbar nav a:hover,
.topbar nav a.active { color: var(--yellow); }
.topbar .cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  padding: 8px 14px;
  transition: background .15s, color .15s;
}
.topbar .cta:hover { background: var(--yellow); color: #000; }
@media (max-width: 760px) {
  .topbar nav { display: none; }
}

/* status strip under nav */
.status-strip {
  background: #000;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.status-strip .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 28px;
  white-space: nowrap;
  overflow: hidden;
}
.status-strip .item { display: flex; align-items: center; gap: 8px; }
.status-strip .blink {
  width: 8px; height: 8px;
  background: var(--green);
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.6s infinite;
}
@keyframes blink { 0%, 60% { opacity: 1; } 70%, 100% { opacity: 0.25; } }
.status-strip .pipe { color: var(--text-faint); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 64px var(--gutter) 96px;
  position: relative;
}
@media (max-width: 760px) {
  .hero { padding-bottom: 50px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-left { min-width: 0; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 28px;
}
.hero-eyebrow .caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.hero h1 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 28px 0;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 .y { color: var(--yellow); }

.hero-sub {
  color: var(--text-2);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 0 36px 0;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  cursor: pointer;
  transition: background .15s, color .15s, transform .05s;
}
.btn:hover { background: var(--yellow); color: #000; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  border-color: var(--border-2);
  color: var(--text);
}
.btn.ghost:hover { background: var(--surface); color: var(--yellow); border-color: var(--yellow); }
.btn .brk { color: currentColor; opacity: 0.6; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.hero-meta div {
  padding: 14px 0;
  border-right: 1px dashed var(--border);
}
.hero-meta div:last-child { border-right: 0; }
.hero-meta .k { color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; margin-bottom: 4px; }
.hero-meta .v { color: var(--text); font-weight: 700; }

/* logo panel (right side) */
.logo-panel {
  background: var(--yellow);
  color: #000;
  padding: 36px 28px 28px;
  position: relative;
  box-shadow:
    0 0 0 1px var(--yellow),
    8px 8px 0 0 #000,
    8px 8px 0 1px var(--border-2);
}
.logo-panel::before {
  content: "// SYS.805";
  position: absolute;
  top: -22px; left: 0;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
}
.logo-panel::after {
  content: "v.MMXXVI";
  position: absolute;
  top: -22px; right: 0;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
}
.logo-805 {
  font-family: var(--font-pixel);
  font-size: clamp(140px, 22vw, 240px);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: #000;
  text-align: center;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.logo-805 .glitch {
  display: inline-block;
  position: relative;
}
.logo-805 .glitch::before,
.logo-805 .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
}
.logo-805 .glitch::before {
  color: #000;
  clip-path: polygon(0 0, 100% 0, 100% 12%, 0 12%, 0 28%, 100% 28%, 100% 35%, 0 35%, 0 58%, 100% 58%, 100% 62%, 0 62%, 0 80%, 100% 80%, 100% 86%, 0 86%, 0 100%, 100% 100%);
  transform: translateX(-3px);
  mix-blend-mode: multiply;
  opacity: 0.85;
  animation: glitchA 4.2s steps(8) infinite;
}
.logo-805 .glitch::after {
  color: #000;
  clip-path: polygon(0 5%, 100% 5%, 100% 18%, 0 18%, 0 42%, 100% 42%, 100% 50%, 0 50%, 0 72%, 100% 72%, 100% 78%, 0 78%, 0 92%, 100% 92%, 100% 100%, 0 100%);
  transform: translateX(3px);
  mix-blend-mode: multiply;
  opacity: 0.7;
  animation: glitchB 3.7s steps(7) infinite;
}
@keyframes glitchA {
  0%, 92%, 100% { transform: translate(0,0); opacity: 0; }
  93% { transform: translate(-4px, 1px); opacity: 0.9; }
  95% { transform: translate(2px, -1px); opacity: 0.9; }
  97% { transform: translate(-2px, 0); opacity: 0.9; }
}
@keyframes glitchB {
  0%, 88%, 100% { transform: translate(0,0); opacity: 0; }
  90% { transform: translate(3px, -1px); opacity: 0.75; }
  93% { transform: translate(-2px, 1px); opacity: 0.75; }
  96% { transform: translate(4px, 0); opacity: 0.75; }
}
.logo-software {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: 0.55em;
  text-align: center;
  color: #000;
  padding-left: 0.55em; /* compensate for trailing tracking */
  margin-top: 4px;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
section.s {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
section.s:first-of-type { border-top: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
@media (max-width: 920px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.svc {
  padding: 28px 26px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  background: var(--bg);
  transition: background .2s;
}
.svc:hover { background: var(--surface); }
.svc:hover .svc-num { color: var(--yellow); }
.svc-num {
  font-family: var(--font-pixel);
  font-size: 30px;
  color: var(--text-faint);
  line-height: 1;
  margin-bottom: 18px;
  transition: color .2s;
}
.svc-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 10px 0;
  color: var(--text);
}
.svc-desc {
  color: var(--text-2);
  font-size: 13.5px;
  margin: 0 0 18px 0;
  flex: 1;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.svc-tags span {
  border: 1px solid var(--border-2);
  padding: 3px 7px;
  letter-spacing: 0.04em;
}

/* ============================================================
   STACK
   ============================================================ */
.stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 920px) { .stack { grid-template-columns: 1fr; } }

.stack-col {
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.stack-col header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #000;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.stack-col header strong {
  color: var(--yellow);
  font-weight: 700;
}
.stack-col .body { padding: 18px 18px 22px; }
.stack-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.stack-row:last-child { border-bottom: 0; }
.stack-row .name { color: var(--text); }
.stack-row .role { color: var(--text-dim); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.stack-col footer {
  padding: 12px 18px 16px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
}
.stack-col footer .yel { color: var(--yellow); }

/* ============================================================
   WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 820px) { .work-grid { grid-template-columns: minmax(0, 1fr); } }

.work-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* show the top/hero of each screenshot */
  display: block;
}

.work {
  border: 1px solid var(--border);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}
.work-img {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(
      45deg,
      #161616 0 12px,
      #1c1c1c 12px 24px
    );
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.work-img .label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  padding: 0 24px;
}
.work-img .label span {
  background: var(--bg-2);
  padding: 6px 10px;
  border: 1px dashed var(--border-2);
  max-width: 100%;
}
.work-body {
  padding: 22px 22px 24px;
}
.work-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.work-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.work-head .url {
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 0.04em;
}
.work-desc {
  color: var(--text-2);
  font-size: 13.5px;
  margin: 0 0 16px 0;
}
.work-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  font-size: 12px;
  color: var(--text-dim);
}
.work-meta dt { letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; align-self: center; }
.work-meta dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }

.work.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-style: dashed;
  padding: 40px 24px;
  text-align: center;
}
.work.empty .inner { color: var(--text-dim); font-size: 13px; max-width: 36ch; }
.work.empty .nda {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--yellow);
  border: 1px solid var(--yellow-dim);
  padding: 4px 10px;
  margin-bottom: 14px;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.process-row {
  display: grid;
  grid-template-columns: 70px 1.1fr 1fr 150px;
  gap: 28px;
  align-items: start;
  padding: 24px 26px;
  border-top: 1px solid var(--border);
}
.process-row:first-child { border-top: 0; }
.process-row .num {
  font-family: var(--font-pixel);
  font-size: 38px;
  line-height: 1;
  color: var(--yellow);
}
.process-row .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.process-row .desc {
  color: var(--text-2);
  font-size: 13.5px;
}
.process-row .when {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: right;
  padding-top: 4px;
}
.process-row .when .bar {
  display: inline-block;
  width: 80px;
  height: 4px;
  background: var(--border-2);
  position: relative;
  margin-top: 6px;
}
.process-row .when .bar i {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  width: var(--w, 30%);
}
.process-row > .desc { padding-top: 4px; } /* desktop: align you-get to row baseline */
@media (max-width: 820px) {
  .process-row {
    grid-template-columns: 60px 1fr;
    gap: 14px;
  }
  .process-row .when { grid-column: 1 / -1; text-align: left; padding-top: 0; }
  .process-row .title { grid-column: 1 / -1; }
  .process-row .desc { grid-column: 1 / -1; }
  .process-row > .desc { padding-top: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.about p { color: var(--text-2); font-size: 15px; }
.about p + p { margin-top: 16px; }
.about .lead {
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}
.about-card {
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 22px;
}
.about-card h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px 0;
  color: var(--text-dim);
}
.about-card .stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.about-card .stat:last-child { border-bottom: 0; }
.about-card .stat .k { color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.about-card .stat .v { color: var(--text); font-weight: 700; }
.about-card .stat .v .y { color: var(--yellow); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  border: 1px solid var(--yellow);
  background:
    linear-gradient(180deg, rgba(255,214,10,0.04), rgba(255,214,10,0.0));
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.contact::before {
  content: "// CONTACT";
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  background: var(--bg);
  padding: 0 8px;
  color: var(--yellow);
}
@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; padding: 32px 22px; }
}
.contact h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  margin: 0 0 14px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.contact p { color: var(--text-2); margin: 0 0 22px 0; }
.contact .email {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--yellow);
  letter-spacing: 0.02em;
  border-bottom: 1px dashed var(--yellow-dim);
  display: inline-block;
  padding-bottom: 4px;
}
.contact .email:hover { background: var(--yellow); color: #000; border-bottom-color: var(--yellow); }
.contact-side {
  font-size: 13px;
  color: var(--text-dim);
}
.contact-side dl { margin: 0; }
.contact-side dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 12px;
}
.contact-side dt:first-child { margin-top: 0; }
.contact-side dd { margin: 2px 0 0 0; color: var(--text); font-size: 13.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  font-size: 12px;
  color: var(--text-dim);
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
footer h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px 0;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer ul li { padding: 4px 0; }
footer ul a:hover { color: var(--yellow); }
.foot-logo {
  width: 110px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}
.foot-tag {
  color: var(--text-2);
  font-size: 12px;
  max-width: 38ch;
  line-height: 1.5;
  margin: 15px 0 0 0;
}
.foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  width: 100%;
}
.foot-bottom span { white-space: nowrap; }

/* ============================================================
   HERO MOCKUP — code editor + phone
   ============================================================ */
.hero-right { min-width: 0; }
@media (max-width: 760px) {
  .hero-right { display: none; }
}
.hero-mockup {
  background: #000;
  border: 1px solid var(--border-2);
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: 8px 8px 0 0 #050505, 8px 8px 0 1px var(--border-2);
  margin-top: -25px;
}
@media (max-width: 560px) {
  .hero-mockup { grid-template-columns: 1fr; }
}

.code-pane {
  background: #0d0d0d;
  border-right: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  overflow: hidden;
  min-width: 0; /* let grid track shrink below content; code clips, doesn't wrap */
}
.window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: #050505;
  font-size: 10.5px;
}
.wc-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.85;
}
.wc-dot.r { background: #ff5f56; }
.wc-dot.y { background: #ffbd2e; }
.wc-dot.g { background: #27c93f; }
.window-chrome .tab {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.window-chrome .tab.active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-2);
}
.window-chrome .filler { flex: 1; }
.window-chrome .branch { color: var(--text-dim); font-size: 10.5px; }
.window-chrome .branch .b { color: var(--green); }

.code-body {
  padding: 12px 0;
  flex: 1;
  position: relative;
  overflow: hidden;
}
.code-body::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
}
.ln {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 1px 14px 1px 0;
  font-size: 11.5px;
  line-height: 1.65;
  opacity: 0;
  animation: ln-in 0.35s forwards;
}
.ln .num {
  color: var(--text-faint);
  text-align: right;
  padding-right: 12px;
  user-select: none;
}
.ln code {
  font-family: var(--font-mono);
  color: #cfcfcf;
  white-space: pre;
  overflow: hidden;
  text-overflow: clip;
  min-width: 0;
}
.ln .kw  { color: #d29b66; }
.ln .str { color: #98c379; }
.ln .fn  { color: #61afef; }
.ln .com { color: var(--text-faint); font-style: italic; }
.ln .y   { color: var(--yellow); }

@keyframes ln-in { to { opacity: 1; } }
.code-body .ln:nth-child(1)  { animation-delay: 0.05s; }
.code-body .ln:nth-child(2)  { animation-delay: 0.20s; }
.code-body .ln:nth-child(3)  { animation-delay: 0.32s; }
.code-body .ln:nth-child(4)  { animation-delay: 0.44s; }
.code-body .ln:nth-child(5)  { animation-delay: 0.50s; }
.code-body .ln:nth-child(6)  { animation-delay: 0.60s; }
.code-body .ln:nth-child(7)  { animation-delay: 0.72s; }
.code-body .ln:nth-child(8)  { animation-delay: 0.84s; }
.code-body .ln:nth-child(9)  { animation-delay: 0.96s; }
.code-body .ln:nth-child(10) { animation-delay: 1.08s; }
.code-body .ln:nth-child(11) { animation-delay: 1.20s; }
.code-body .ln:nth-child(12) { animation-delay: 1.32s; }
.code-body .ln:nth-child(13) { animation-delay: 1.44s; }
.code-body .ln:nth-child(14) { animation-delay: 1.56s; }

.cursor {
  display: inline-block;
  width: 7px;
  height: 11px;
  background: var(--yellow);
  margin-left: 2px;
  vertical-align: -1px;
  animation: caret 1s steps(1) infinite;
}

.code-foot {
  display: flex;
  gap: 16px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: #050505;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.code-foot span:first-child { color: var(--green); }
.code-foot span:nth-child(2) { color: var(--green); }
.code-foot .right { margin-left: auto; }

/* phone */
.phone-frame {
  padding: 18px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,214,10,0.05), transparent 60%),
    #0a0a0a;
}
.phone {
  width: 100%;
  max-width: 178px;
  aspect-ratio: 9 / 18.5;
  background: #060606;
  border: 1.5px solid #2a2a2a;
  border-radius: 22px;
  padding: 6px;
  position: relative;
  box-shadow: 0 0 0 1px #000, 4px 4px 0 #161616;
}
.phone .notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 5px;
  background: #000;
  border-radius: 4px;
  z-index: 2;
}
.phone-screen {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 10px 10px;
  position: relative;
  overflow: hidden;
}
.phone-screen::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.025) 0 1px, transparent 1px 2px);
  border-radius: 16px;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--text-dim);
  padding: 6px 2px 0;
  letter-spacing: 0.06em;
}
.phone-header {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--yellow);
  text-align: center;
  padding: 10px 0 6px;
  border-bottom: 1px dashed #222;
  margin-bottom: 8px;
}
.phone-list { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.phone-row {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--text-dim);
  border-bottom: 1px dashed #1a1a1a;
  padding-bottom: 4px;
  letter-spacing: 0.06em;
}
.phone-row .v { color: var(--text); font-weight: 700; font-size: 10px; }
.phone-row .v.y { color: var(--yellow); }
.phone-spark {
  height: 28px;
  margin: 10px 2px 6px;
  border: 1px solid #1a1a1a;
  padding: 2px;
  position: relative;
}
.phone-spark svg { width: 100%; height: 100%; display: block; }
.phone-spark polyline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: spark-draw 2.4s ease-out 0.6s forwards;
}
@keyframes spark-draw { to { stroke-dashoffset: 0; } }
.phone-btn {
  margin-top: auto;
  text-align: center;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #000;
  background: var(--yellow);
  padding: 6px;
  border-radius: 2px;
  font-weight: 700;
}

/* ============================================================
   AI CALLOUT (in process section)
   ============================================================ */
.ai-callout {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,214,10,0.05), transparent 70%),
    var(--bg-2);
  padding: 28px 30px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
  align-items: stretch;
  position: relative;
}
.ai-callout::before {
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 3px;
  background: var(--yellow);
}
@media (max-width: 820px) { .ai-callout { grid-template-columns: 1fr; gap: 24px; padding: 22px; } }

.ai-callout-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin-bottom: 10px;
}
.ai-callout-h {
  font-size: 20px;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  color: var(--text);
  font-weight: 700;
  text-wrap: balance;
}
.ai-callout p { margin: 0 0 14px 0; color: var(--text-2); font-size: 13.5px; }
.ai-bullets { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.ai-bullets li { color: var(--text-2); padding: 4px 0; }
.ai-bullets .y { color: var(--yellow); margin-right: 8px; }

.ai-tool {
  border: 1px dashed var(--border-2);
  background: #000;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.ai-tool-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--yellow);
}
.ai-tool-name {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  font-weight: 700;
}
.ai-tool-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0;
  flex: 1;
}
.ai-tool-cta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  padding: 8px 10px;
  text-align: center;
  display: inline-block;
}
.ai-tool-cta:hover { background: var(--yellow); color: #000; }

/* full-width work card */
.work.empty.wide {
  grid-column: 1 / -1;
  padding: 28px 24px;
  text-align: left;
  flex-direction: row;
  justify-content: flex-start;
  gap: 24px;
  align-items: center;
}
.work.empty.wide .inner { max-width: 70ch; text-align: left; }

.work-sub-head {
  grid-column: 1 / -1;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--yellow);
  margin-bottom: -4px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

.work-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #000;
  background: var(--yellow);
  padding: 4px 8px;
  font-weight: 700;
}
.work-img { position: relative; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ln { opacity: 1 !important; animation: none !important; }
  .phone-spark polyline { stroke-dashoffset: 0; animation: none !important; }
  .cursor { animation: none; opacity: 1; }
  .logo-805 .glitch::before, .logo-805 .glitch::after { animation: none; }
}

/* ============================================================
   SR-ONLY
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================================================
   LEGAL PAGES — privacy / terms
   ============================================================ */
.legal { padding: 56px 0 80px; line-height: 1.65; }
.legal > .wrap { max-width: 880px; }

.crumb { font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 32px; }
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--yellow); }

.legal-head { margin-bottom: 36px; }
.legal-head .kicker { font-size: 11px; letter-spacing: 0.16em; color: var(--yellow); margin-bottom: 12px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 16px 0; font-weight: 700; letter-spacing: -0.01em; }
.legal-head .meta { font-size: 12px; color: var(--text-dim); display: flex; gap: 24px; flex-wrap: wrap; }
.legal-head .meta strong { color: var(--text); font-weight: 700; }

.tldr { border: 1px solid var(--yellow); background: rgba(255,214,10,0.04); padding: 18px 22px; margin-bottom: 40px; position: relative; }
.tldr-label { font-size: 11px; letter-spacing: 0.14em; color: var(--yellow); margin-bottom: 6px; }
.tldr p { margin: 0; color: var(--text-2); font-size: 13.5px; }

.toc { border: 1px solid var(--border); background: var(--bg-2); padding: 20px 22px; margin-bottom: 48px; }
.toc-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 32px; }
.toc ol li { counter-increment: toc; padding: 4px 0; font-size: 13px; break-inside: avoid; }
.toc ol li::before { content: counter(toc, decimal-leading-zero) "  ·  "; color: var(--text-faint); }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--yellow); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.legal section { margin-bottom: 36px; scroll-margin-top: 80px; }
.legal h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  color: var(--text);
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.legal h3 { font-size: 14px; letter-spacing: 0.02em; margin: 22px 0 8px 0; color: var(--text); font-weight: 700; }
.legal p, .legal li { color: var(--text-2); font-size: 14px; }
.legal p { margin: 0 0 12px 0; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px 0; }
.legal ul li, .legal ol li { margin-bottom: 6px; }
.legal ul li::marker { color: var(--yellow); }
.legal code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  padding: 1px 6px;
  color: var(--yellow);
}
.legal strong { color: var(--text); font-weight: 700; }
.legal em { color: var(--text); font-style: normal; border-bottom: 1px dotted var(--text-faint); }


.table-wrap { border: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table-wrap th {
  background: #000;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 11px;
  text-transform: uppercase;
}
.table-wrap td:first-child { color: var(--yellow); font-weight: 500; white-space: nowrap; }

.legal-foot {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.legal-foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.legal-foot a:hover { color: var(--yellow); }
