/* ============ BOLT. — brutalist dark portfolio ============ */

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #888888;
  --muted-2: #737373;
  --line: #1c1917; /* hairline stone-900 */
  --line-2: #171717; /* neutral-900 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

em {
  font-style: italic;
}

/* ---------- grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 2%); }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 40;
}

.logo {
  font-family: "Instrument Serif", serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}

.logo-dot {
  color: var(--muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--fg);
}

.status {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (min-width: 640px) {
  .status { display: inline-flex; }
}

/* ---------- hero ---------- */
main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  color: var(--muted-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-sub {
  color: var(--muted);
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  text-wrap: pretty;
}

/* ---------- preview frame ---------- */
.frame {
  margin-top: 4rem;
  border: 1px solid var(--line);
  background: #050505;
}

.frame-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--muted-2);
}

.frame-url {
  margin-left: 0.75rem;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.frame-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.frame-line {
  height: 10px;
  background: var(--line-2);
}

.frame-line-lg { width: 55%; height: 26px; }
.frame-line-md { width: 35%; }
.frame-line-sm { width: 20%; }

.frame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0.5rem 0;
}

.frame-cell {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

/* ---------- sections ---------- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.section-link {
  color: var(--muted-2);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.section-link:hover {
  color: var(--fg);
}

/* ---------- projects ---------- */
.project-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.project-item {
  border-bottom: 1px solid var(--line);
}

.project-link {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0.5rem;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.project-link:hover {
  background: #0a0a0a;
  padding-left: 1rem;
}

.project-index {
  color: var(--muted-2);
  font-size: 0.75rem;
}

.project-name {
  display: block;
  font-family: "Instrument Serif", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.project-desc {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  max-width: 40rem;
  text-wrap: pretty;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.project-arrow {
  color: var(--muted-2);
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-link:hover .project-arrow {
  color: var(--fg);
  transform: translate(2px, -2px);
}

@media (max-width: 640px) {
  .project-link {
    grid-template-columns: 1fr auto;
  }
  .project-index { display: none; }
  .project-meta { justify-content: flex-start; }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-card {
  background: var(--bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.discord-icon { color: var(--muted-2); }

.contact-value {
  font-size: 1.05rem;
  word-break: break-all;
}

.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover {
  color: var(--fg);
  border-color: var(--muted-2);
}

.copy-btn.copied {
  color: var(--fg);
  border-color: var(--fg);
}

/* ---------- social bar ---------- */
.social-bar {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: none;
}

@media (min-width: 768px) {
  .social-bar { grid-template-columns: repeat(4, 1fr); }
}

.social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--bg);
  color: var(--muted);
  text-decoration: none;
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.social-bar a:hover {
  color: var(--fg);
  background: #0a0a0a;
}

/* ---------- footer ---------- */
.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.7rem;
}

/* ---------- watchlist styles ---------- */
.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.movie-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--bg);
  padding: 1.5rem;
}

.movie-card-content {
  flex: 1;
  min-width: 0;
}

.movie-card-title {
  font-family: "Instrument Serif", serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.movie-card-meta {
  color: var(--muted-2);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.movie-card-location {
  color: var(--muted);
  font-size: 0.8rem;
}

.movie-card-status {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  white-space: nowrap;
  height: fit-content;
}

.movie-card-status.watched {
  color: var(--fg);
  border-color: var(--fg);
}

.movie-card-status.watching {
  color: var(--fg);
  border-color: var(--fg);
}

.movie-card-status.pending {
  color: var(--muted-2);
  border-color: var(--muted-2);
}

@media (max-width: 640px) {
  .watchlist-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    flex-direction: column;
    gap: 1rem;
  }

  .movie-card-status {
    align-self: flex-start;
  }
}

/* ---------- franchises ---------- */
.franchises-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.franchise-card {
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.franchise-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.franchise-name {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.franchise-tag {
  color: var(--muted-2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.franchise-movies {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.movie-in-franchise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-2);
}

.movie-in-franchise:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.movie-info {
  flex: 1;
}

.movie-title {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 1rem;
}

.movie-meta {
  color: var(--muted-2);
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.movie-status {
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  font-size: 0.65rem;
  white-space: nowrap;
}

.movie-status.watched {
  color: var(--fg);
  border-color: var(--fg);
}

.movie-status.watching {
  color: var(--fg);
  border-color: var(--fg);
}

.movie-status.pending {
  color: var(--muted-2);
  border-color: var(--muted-2);
}

/* ---------- stats ---------- */
.stats-section {
  border-top: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat-card {
  background: var(--bg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.stat-label {
  color: var(--muted-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- active nav indicator ---------- */
.header-nav a.active {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 0.25rem;
}

/* ---------- empty state ---------- */
.empty-state {
  color: var(--muted-2);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- sr-only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- selection ---------- */
::selection {
  background: var(--fg);
  color: var(--bg);
}
