:root {
  --ink: #111114;
  --sand: #f6f2ea;
  --acid: #c6ff3f;
  --night: #0f172a;
  --peach: #ffb38a;
  --lilac: #b7a6ff;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

.grain-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Crect width='160' height='160' fill='rgba(0,0,0,0.02)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.border-3 {
  border-width: 3px;
}

.nav-link {
  position: relative;
  color: var(--ink);
  padding-bottom: 0.25rem;
  transition: color 200ms ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nav-link:hover {
  color: var(--acid);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.5rem;
  border: 3px solid var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 6px 6px 0 0 rgba(15, 23, 42, 0.7);
}

.hero-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 rgba(15, 23, 42, 0.8);
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.85rem;
  border: 2px solid var(--ink);
  background: #fff;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.7);
}

.pill--mini {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  padding: 0.2rem 0.7rem;
}

.pill--loud {
  background: var(--acid);
  color: var(--ink);
}

.pill--peach {
  background: var(--peach);
  color: var(--night);
}

.pill--lilac {
  background: var(--lilac);
  color: var(--night);
}

.pill--night {
  background: var(--night);
  color: var(--acid);
  border-color: var(--acid);
  box-shadow: 4px 4px 0 rgba(198, 255, 63, 0.4);
}

.work-card,
.project-card,
.contact-card,
.writing-card {
  padding: 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 6px 6px 0 0 rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
}

.project-card {
  background: #fff;
}

.writing-card a,
.work-card a {
  font-weight: 600;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 6px 6px 0 0 rgba(15, 23, 42, 0.6);
}

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

.timeline-date {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
}

[data-scroll] {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-scroll].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-card {
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.95);
}

.contact-label {
  display: inline-flex;
  background: #fff3d9;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, 0.5);
}

.contact-title {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--night);
}

.contact-cta-card {
  border: 4px solid var(--ink);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.6);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border: 3px solid var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: transform 160ms ease;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.6);
}

.contact-button:hover {
  transform: translate(-2px, -2px);
}

.contact-button--primary {
  background: var(--sand);
  color: var(--ink);
}

.contact-button--ghost {
  background: transparent;
  color: var(--ink);
}

.contact-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.6rem;
  color: var(--night);
}

.contact-stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-chip {
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 6px 6px 0 rgba(15, 23, 42, 0.5);
  display: grid;
  gap: 0.5rem;
}

.social-chip__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--night);
}

.social-chip__icon {
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 3px 3px 0 rgba(15, 23, 42, 0.6);
}

.social-chip__value {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  text-transform: lowercase;
  color: var(--night);
  text-decoration: none;
}

.social-chip__value:hover {
  color: var(--acid);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--night);
  display: inline-flex;
}

.writing-card {
  color: inherit;
}

.link-simple {
  color: var(--acid);
  border-bottom: 2px solid transparent;
  font-weight: 600;
  transition: color 150ms ease, border-color 150ms ease;
}

.link-simple:hover {
  color: var(--peach);
  border-color: var(--peach);
}

.link-ema {
  color: var(--peach);
}

.link-ema:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.writing-card h3,
.work-card h3 {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.project-card h4 {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
}

.crazy-name {
  position: relative;
  display: inline-flex;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2em 0.4em;
  color: var(--night);
  transform: skew(-6deg);
}

.crazy-name::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: skew(-4deg);
  background: var(--acid);
  z-index: -1;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.15);
}

.work-card p,
.project-card p,
.timeline-entry p,
.writing-card p,
.contact-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.experience-story {
  font-size: 1.15rem;
  line-height: 1.8;
  width: 100%;
  background: rgba(6, 12, 24, 0.9);
  padding: 2rem;
  border-radius: 32px;
  border: 3px dashed var(--acid);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 12px 12px 0 rgba(6, 12, 24, 0.8);
}

.experience-projects {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-badge-card {
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 1.2rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 12px 12px 0 rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  font-weight: 700;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.experience-badge-card span {
  font-family: 'General Sans', sans-serif;
  letter-spacing: normal;
  text-transform: none;
  color: #111;
  font-size: 0.95rem;
  font-weight: 500;
}

.experience-badge-card--peach {
  background: #ffb38a;
}

.experience-badge-card--lilac {
  background: #b7a6ff;
}

.experience-badge-card--acid {
  background: #c6ff3f;
}

.experience-badge-card--sand {
  background: #f6f2ea;
}

.experience-badge-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 200ms ease;
}

.experience-badge-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 16px 16px 0 rgba(15, 23, 42, 0.65);
}

.experience-badge-card:hover::after {
  opacity: 1;
}


.experience-badge {
  border: 4px solid var(--acid);
  border-radius: 2rem;
  padding: 1.5rem;
  min-width: 180px;
  text-align: center;
  background: rgba(198, 255, 63, 0.1);
  box-shadow: 8px 8px 0 rgba(198, 255, 63, 0.4);
}

.experience-badge span {
  display: block;
  font-size: 3rem;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  color: var(--acid);
}

.story-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.story-card {
  border: 4px solid var(--acid);
  border-radius: 1.75rem;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 8px 8px 0 rgba(198, 255, 63, 0.22);
  display: grid;
  gap: 1rem;
}

.story-card__label {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--acid);
}

.story-card h3 {
  margin: 0;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
}

.story-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.story-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.story-chip {
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.writing-card.bg-night\/60 {
  border-color: #f6f2ea;
  box-shadow: 6px 6px 0 0 rgba(198, 255, 63, 0.4);
}

.nav-link,
.hero-cta,
.project-card,
.timeline-entry,
.work-card,
.writing-card,
.contact-card,
.news-marquee {
  position: relative;
  isolation: isolate;
}

.nav-link::before,
.work-card::before,
.project-card::before,
.writing-card::before,
.contact-card::before,
.timeline-entry::before,
.news-marquee::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: -1;
}

.work-card:hover::before,
.project-card:hover::before,
.writing-card:hover::before,
.contact-card:hover::before,
.timeline-entry:hover::before {
  opacity: 1;
}

.timeline-entry:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 0 rgba(15, 23, 42, 0.7);
}

.writing-card:hover,
.work-card:hover,
.project-card:hover,
.contact-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 0 rgba(15, 23, 42, 0.7);
}

.writing-card:hover {
  box-shadow: 10px 10px 0 0 rgba(198, 255, 63, 0.45);
}

.news-marquee {
  margin-top: 1.5rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--night);
  color: var(--acid);
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(15, 23, 42, 0.5);
}

.news-marquee__label {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(198, 255, 63, 0.25);
  border-right: 3px solid var(--ink);
}

.news-marquee__track {
  display: inline-flex;
  gap: 4rem;
  padding-left: 2rem;
  animation: marqueeSlide 16s linear infinite;
}

.news-marquee__track span {
  white-space: nowrap;
}

.news-marquee-wrapper {
  width: 100%;
  margin-top: -1rem;
}

@keyframes marqueeSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
