/* hecz.dev — cosmic hero into cream editorial. Uses real site assets. */
:root {
  --background: #faf8f5;
  --card: #f3f0eb;
  --foreground: #1d1c25;
  --muted-foreground: #635e6a;
  --border: #dad4c8;
  --mauve: #8b7da8;
  --mauve-strong: #6b5d82;
  --cosmic: #0f0f1a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.serif { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted-foreground);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2, h3, p { margin-top: 0; }

/* ---------- cosmic hero (mirrors hecz.dev) ---------- */
:root { --hecz-accent: 262 18% 44%; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(20px, 5vw, 72px) 64px;
  overflow: hidden;
  background: hsl(240 10% 4%);
  color: #f7f4ff;
}

/* nebula video backdrop + instant still fallback underneath */
.hero-still,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-bg { z-index: 1; }

/* darken + vignette so the logo and text stay readable */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(15, 15, 26, 0) 0%, rgba(15, 15, 26, 0.5) 68%, hsl(240 10% 4%) 100%),
    linear-gradient(180deg, rgba(15, 15, 26, 0.32), rgba(15, 15, 26, 0.55));
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  padding: 9px 14px;
  border: 1px solid rgba(139, 125, 168, 0.4);
  border-radius: 999px;
  color: #cfc8e0;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.nav a:hover { color: #fff; border-color: var(--mauve); background: rgba(139, 125, 168, 0.18); }

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(960px, 100%);
  margin: auto;
  text-align: center;
}

/* the live hecz.dev logo: floats gently, mauve glow */
.graffiti {
  display: block;
  width: min(640px, 88%);
  margin: 0 auto 20px;
}
.graffiti img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(139, 125, 168, 0.35));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .graffiti img { animation: none; }
}

.hero-tag {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #ece8f7;
}

.hero-sub {
  margin: 18px 0 0;
  color: #a79fc0;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* credential badges */
.creds {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}
.cred {
  padding: 5px 12px;
  border: 1px solid rgba(139, 125, 168, 0.45);
  border-radius: 999px;
  background: rgba(139, 125, 168, 0.1);
  color: #d8d2ec;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cred-school {
  border-color: var(--mauve);
  background: rgba(139, 125, 168, 0.22);
  color: #fff;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button.primary { background: var(--mauve); color: #15121d; border: 1px solid transparent; }
.button.primary:hover { background: #a394c2; }
.button.ghost { border: 1px solid rgba(139, 125, 168, 0.5); color: #d8d2ec; }
.button.ghost:hover { border-color: var(--mauve); background: rgba(139, 125, 168, 0.14); }

/* ---------- about / chicago seam ---------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 0;
}
.about-photo img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.about-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-style: italic;
  line-height: 1.08;
  margin-bottom: 22px;
}
.about-copy p { color: #2a2833; max-width: 48ch; }
.about-copy p + p { margin-top: 14px; }

/* ---------- work ---------- */
.work {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 clamp(56px, 8vw, 100px);
}
.section-heading { margin-bottom: 40px; }
.section-heading h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-style: italic; line-height: 1; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  transition: border-color 160ms ease, transform 160ms ease;
}
.work-card:hover { border-color: var(--mauve); transform: translateY(-3px); }
.thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cosmic); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.starfield {
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 125, 168, 0.3), transparent 40%),
    url("./assets/starlight-headliner.webp") center/cover no-repeat;
}
.work-body { display: flex; flex-direction: column; padding: 24px; flex: 1; }
.work-body h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.work-body p { color: var(--muted-foreground); line-height: 1.6; }
.work-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--mauve-strong);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.work-links a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.work-links a:hover { border-color: var(--mauve); }

/* ---------- toolkit ---------- */
.toolkit {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(64px, 9vw, 110px);
}
.toolkit h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: #2a2833;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 13px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(20px, 5vw, 72px);
  color: var(--muted-foreground);
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
}

@media (max-width: 820px) {
  .nav { justify-content: flex-start; flex-wrap: wrap; }
  .about, .work-grid, .toolkit { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
}
