/* hackhog — shared design system (dark, shadcn-flavoured) */

:root {
  --bg: #09090b;
  --bg-2: #0c0c0e;
  --panel: #111114;
  --panel-2: #16161a;
  --line: #1f1f24;
  --line-2: #27272a;
  --muted: #a1a1aa;
  --soft: #71717a;
  --fg: #fafafa;
  --fg-dim: #d4d4d8;
  --accent: oklch(0.82 0.11 78);
  --accent-dim: oklch(0.55 0.10 78);
  --green: oklch(0.72 0.15 150);
  --red: oklch(0.65 0.20 25);
  --quill: #a06838;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}
::selection { background: var(--accent); color: #1a1410; }
.mono { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }

/* ------ ambient ------ */
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(212,162,93,0.10), transparent 60%),
    radial-gradient(700px 400px at 0% 30%, rgba(160,104,56,0.06), transparent 70%);
}

/* ------ layout ------ */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
section { padding: 80px 0; position: relative; z-index: 1; }

/* ------ nav ------ */
nav.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9,9,11,0.7);
  border-bottom: 1px solid var(--line);
}
nav.top .inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; color: inherit; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.navlinks { display: flex; gap: 28px; margin-left: 24px; }
.navlinks a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s; position: relative;
}
.navlinks a:hover { color: var(--fg); }
.navlinks a.active { color: var(--fg); }
.navlinks a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px;
  height: 1px; background: var(--accent);
}
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ------ buttons + tags ------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 8px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fg); color: #18181b; }
.btn-primary:hover { background: #e4e4e7; }
.btn-ghost { background: transparent; color: var(--fg-dim); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--fg); }
.btn-accent { background: transparent; color: var(--accent); border-color: oklch(0.55 0.10 78 / 0.4); }
.btn-accent:hover { background: oklch(0.55 0.10 78 / 0.1); }
.btn-icon { width: 14px; height: 14px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px 5px 8px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 12px; color: var(--fg-dim);
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px oklch(0.72 0.15 150 / 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px oklch(0.72 0.15 150 / 0.18); }
  50%     { box-shadow: 0 0 0 6px oklch(0.72 0.15 150 / 0.04); }
}

.chip {
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line-2);
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  color: var(--fg-dim);
  display: inline-block;
}
.badge {
  font-family: "Geist Mono", monospace; font-size: 10.5px;
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
}
.badge.ok    { color: var(--green); border-color: oklch(0.72 0.15 150 / 0.4); background: oklch(0.72 0.15 150 / 0.07); }
.badge.warn  { color: var(--accent); border-color: oklch(0.55 0.10 78 / 0.5); background: oklch(0.55 0.10 78 / 0.07); }
.badge.live  { color: var(--green); border-color: oklch(0.72 0.15 150 / 0.4); }

/* ------ hero ------ */
section.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 12px; color: var(--soft);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--line-2); }
h1.title {
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 0.98; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 0 24px;
}
h1.title .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.lede { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 32px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.hero-meta .item .k {
  font-family: "Geist Mono", monospace;
  font-size: 11px; color: var(--soft);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-meta .item .v { font-size: 16px; color: var(--fg); margin-top: 4px; font-weight: 500; }

/* ------ hog stage ------ */
.hog-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(160,104,56,0.18), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
}
.hog-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hog-stage svg.hog { position: absolute; inset: 8% 4% 4% 4%; width: 92%; height: 92%; }
.hog-stage .corner {
  position: absolute;
  font-family: "Geist Mono", monospace;
  font-size: 10px; color: var(--soft);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hog-stage .corner.tl { top: 16px; left: 18px; }
.hog-stage .corner.tr { top: 16px; right: 18px; }
.hog-stage .corner.bl { bottom: 16px; left: 18px; }
.hog-stage .corner.br { bottom: 16px; right: 18px; }
.hog-stage .ring {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%);
  width: 78%; aspect-ratio: 1;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* ------ section heads ------ */
.sec-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.sec-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em; font-weight: 600;
  margin: 8px 0 0; line-height: 1.05;
}
.sec-head .lead { color: var(--muted); max-width: 520px; font-size: 15px; margin: 0; }

/* ------ stats ------ */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats .row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats .cell { padding: 28px 24px; border-right: 1px solid var(--line); }
.stats .cell:last-child { border-right: none; }
.stats .num {
  font-size: 36px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--fg); line-height: 1; margin-bottom: 8px;
}
.stats .num .unit { color: var(--accent); font-size: 22px; margin-left: 2px; vertical-align: 8px; }
.stats .lab {
  font-family: "Geist Mono", monospace; font-size: 11px;
  color: var(--soft); letter-spacing: 0.12em; text-transform: uppercase;
}

/* ------ about / principles ------ */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about-grid .left .tag {
  font-family: "Geist Mono", monospace; font-size: 12px;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
}
.about-grid .left h3 {
  font-size: 32px; letter-spacing: -0.025em; font-weight: 600;
  margin: 12px 0 0; line-height: 1.1;
}
.principles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.principle { background: var(--panel); padding: 24px; }
.principle .n { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--soft); letter-spacing: 0.14em; }
.principle h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 14px 0 6px; }
.principle p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ------ crew ------ */
.crew { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.crew.deep { grid-template-columns: 1fr; gap: 24px; }
.member {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 22px;
  transition: border-color .2s, transform .2s;
}
.member:hover { border-color: var(--line-2); transform: translateY(-2px); }
.member.deep {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px;
}
.avatar {
  aspect-ratio: 1 / 1; width: 100%;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--panel-2) 0 8px, var(--bg-2) 8px 16px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  color: var(--soft); font-family: "Geist Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.member.deep .avatar { margin-bottom: 0; }
.member .name { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.member.deep .name { font-size: 24px; }
.member .role {
  font-family: "Geist Mono", monospace; font-size: 11px;
  color: var(--muted); margin-top: 4px; letter-spacing: 0.06em;
}
.member .meta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.member .bio { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0 0; }
.member.deep .grid-kv {
  display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line); padding-top: 14px;
}
.member.deep .grid-kv .k { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--soft); letter-spacing: 0.1em; text-transform: uppercase; }
.member.deep .grid-kv .v { font-size: 14px; color: var(--fg-dim); }

/* ------ builds ------ */
.builds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.builds.archive { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.builds.archive .build { border-radius: 0; border: none; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 80px 1fr 280px 120px; gap: 24px; align-items: center; padding: 18px 22px; }
.builds.archive .build:last-child { border-bottom: none; }
.builds.archive .build:hover { background: var(--panel-2); transform: none; }
.builds.archive .build .preview { aspect-ratio: 1; width: 64px; border-radius: 8px; border: 1px solid var(--line); }
.builds.archive .build .body { padding: 0; }
.builds.archive .build h4 { margin-bottom: 4px; }
.builds.archive .build .meta { border: none; padding: 0; }
.builds.archive .build .desc { color: var(--muted); font-size: 13px; margin: 0; }
.builds.archive .year { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--soft); text-align: right; }

.build {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.build:hover { border-color: var(--line-2); transform: translateY(-2px); }
.build .preview {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, var(--panel-2) 0 10px, #131316 10px 20px);
  border-bottom: 1px solid var(--line);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.build .preview .logo-mark { width: 56%; height: 56%; opacity: 0.85; }
.build .body { padding: 18px 20px 20px; }
.build .body .row1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.build .body h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.build .body p { color: var(--muted); font-size: 14px; margin: 0 0 14px; line-height: 1.55; }
.build .meta { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }

/* ------ terminal ------ */
.feed-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: stretch; }
.feed-copy h3 { font-size: 30px; letter-spacing: -0.025em; font-weight: 600; margin: 12px 0 16px; }
.feed-copy p { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #08080a;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.terminal .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  font-family: "Geist Mono", monospace; font-size: 11.5px;
  color: var(--soft);
}
.tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal .bar .title { margin-left: 10px; }
.terminal .body {
  padding: 18px 20px;
  font-family: "Geist Mono", monospace;
  font-size: 13px; line-height: 1.85;
  color: var(--fg-dim);
  min-height: 320px;
}
.terminal .body .ts { color: var(--soft); }
.terminal .body .ok { color: var(--green); }
.terminal .body .err { color: var(--red); }
.terminal .body .info { color: var(--accent); }
.terminal .body .cmd { color: var(--fg); }
.terminal .body .ln { display: block; }
.caret { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ------ CTA + footer ------ */
.cta-band {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(212,162,93,0.12), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 44px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band h3 { font-size: 32px; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 10px; }
.cta-band p { color: var(--muted); margin: 0; max-width: 500px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: end; }

footer { border-top: 1px solid var(--line); padding: 36px 0 28px; margin-top: 64px; }
footer .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-family: "Geist Mono", monospace;
  font-size: 12px; color: var(--soft);
}
footer .links { display: flex; gap: 22px; }
footer .links a { color: var(--muted); text-decoration: none; }
footer .links a:hover { color: var(--fg); }

/* ------ page header (subpages) ------ */
.page-head { padding: 80px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; font-weight: 700; margin: 14px 0 16px; line-height: 1.02; }
.page-head h1 .accent { color: var(--accent); font-style: italic; font-weight: 500; }
.page-head p.lede { font-size: 17px; max-width: 640px; }
.crumbs { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--fg-dim); }

/* ------ focus areas ------ */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.focus { background: var(--panel); padding: 28px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; transition: background .15s; }
.focus:hover { background: var(--panel-2); }
.focus .ic { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 6px; }
.focus h4 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.focus p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.focus .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* ------ journal ------ */
.journal { display: grid; gap: 14px; }
.entry { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 24px 26px; display: grid; grid-template-columns: 140px 1fr; gap: 28px; transition: border-color .2s; }
.entry:hover { border-color: var(--line-2); }
.entry .when { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--soft); letter-spacing: 0.06em; }
.entry .when .tag { color: var(--accent); display: block; margin-top: 6px; font-size: 11px; }
.entry h4 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.entry p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.entry .footer-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ------ contact form ------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--soft); letter-spacing: 0.12em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 11px 13px; color: var(--fg);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent-dim); background: #0e0e10;
}
.field textarea { min-height: 130px; resize: vertical; }

.contact-side { display: flex; flex-direction: column; gap: 18px; }
.contact-row { display: flex; align-items: start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row .ic { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-row .lab { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--soft); letter-spacing: 0.12em; text-transform: uppercase; }
.contact-row .val { color: var(--fg); font-size: 15px; margin-top: 2px; }
.contact-row .val a { color: var(--fg); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.contact-row .val a:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ------ responsive ------ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .feed-wrap { grid-template-columns: 1fr; }
  .crew { grid-template-columns: 1fr; }
  .builds { grid-template-columns: 1fr; }
  .stats .row { grid-template-columns: repeat(2, 1fr); }
  .stats .cell:nth-child(2) { border-right: none; }
  .stats .cell:nth-child(1), .stats .cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: start; }
  .navlinks { display: none; }
  .principles { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .member.deep { grid-template-columns: 1fr; }
  .builds.archive .build { grid-template-columns: 1fr; }
  .builds.archive .year { text-align: left; }
  .entry { grid-template-columns: 1fr; gap: 12px; }
}
