*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "HirondelleArrow";
  src: url("../fonts/HirondelleArrow.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AlteHaasGroteskBold";
  src: url("../fonts/AlteHaasGroteskBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "HirondelleArrow", "Permanent Marker", cursive;
  --font-body: "AlteHaasGroteskBold", "Inter", system-ui, sans-serif;
  --green-bg: #c6e0b4;
  --green-mid: #a9d08e;
  --green-dark: #3d6b4a;
  --green-page: #007f0e;
  --black: #051405;
  --white: #f5f5f0;
  --border: 2px solid var(--white);
  --radius: 18px;
  --card-ratio: 1024 / 484;
  --beat: 1.8s;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--green-page);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  overflow-x: hidden;
}

/* Gradient wave background */

.bg-waves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--green-page);
}

.bg-waves__frame {
  position: absolute;
  inset: -3%;
  animation: film-frame-drift 9s ease-in-out infinite;
}

.bg-waves__layer {
  position: absolute;
  border-radius: 45%;
  filter: blur(60px);
  opacity: 0.7;
  will-change: transform;
}

.film-vignette {
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(
      ellipse 78% 74% at 50% 46%,
      transparent 42%,
      rgba(0, 12, 3, 0.28) 68%,
      rgba(0, 0, 0, 0.62) 100%
    );
  animation: film-vignette 7s ease-in-out infinite;
}

.film-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-shift 0.35s steps(3) infinite;
}

.bg-waves__layer--1 {
  width: 70vmax;
  height: 70vmax;
  top: -25%;
  left: -20%;
  background: radial-gradient(circle, rgba(0, 200, 50, 0.55) 0%, transparent 65%);
  animation: wave-drift-1 22s ease-in-out infinite;
}

.bg-waves__layer--2 {
  width: 60vmax;
  height: 60vmax;
  bottom: -30%;
  right: -15%;
  background: radial-gradient(circle, rgba(0, 80, 15, 0.65) 0%, transparent 60%);
  animation: wave-drift-2 18s ease-in-out infinite;
}

.bg-waves__layer--3 {
  width: 50vmax;
  height: 50vmax;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(169, 208, 142, 0.2) 0%, transparent 55%);
  animation: wave-drift-3 26s ease-in-out infinite;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: clamp(3rem, 8vw, 5.5rem);
  width: auto;
  mix-blend-mode: screen;
  transform: translate(0, 0);
  opacity: 1;
  will-change: transform, opacity;
}

.nav-pill {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  background: var(--black);
  border: var(--border);
  border-radius: 999px;
  padding: 0.6rem 0.25rem;
  max-width: 100%;
  box-shadow: 0 0 0 rgba(198, 224, 180, 0);
  transition: box-shadow 0.3s ease;
}

.site-header:has(.nav-link:hover) .nav-pill {
  box-shadow: 0 0 24px rgba(169, 208, 142, 0.35), inset 0 0 20px rgba(0, 127, 14, 0.15);
  animation: nav-pill-pulse var(--beat) ease-in-out infinite;
}

.nav-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 1.1rem;
  text-align: center;
  border-radius: 999px;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1),
    text-shadow 0.25s ease,
    color 0.25s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 120%, rgba(0, 127, 14, 0.85), transparent 65%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--green-bg);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: 0 0 8px rgba(198, 224, 180, 0.8);
}

.nav-link:hover {
  transform: scale(1.08) translateY(-2px);
  text-shadow: 0 0 10px rgba(198, 224, 180, 0.6);
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link:hover .nav-label {
  color: var(--green-bg);
  animation: nav-label-flicker 0.35s steps(2) 1;
}

.nav-link:hover .nav-action {
  letter-spacing: 0.1em;
  opacity: 1;
  color: rgba(198, 224, 180, 0.95);
}

.nav-link[aria-current="page"] .nav-label {
  color: var(--green-bg);
}

.nav-link[aria-current="page"]::after {
  width: 70%;
}

.nav-action {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1.2;
  transition: letter-spacing 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.nav-label {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

/* Hero */

.hero {
  text-align: center;
  max-width: 70rem;
  margin: 0 auto 3.5rem;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  animation: hero-fade-in 1.2s ease-out both;
}

.hero p {
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1000px) {
  .hero p {
    white-space: nowrap;
  }
}

.hero p + p {
  margin-top: 0.25rem;
  animation: hero-fade-in 1.2s ease-out 0.2s both;
}

/* Subpage hero (art / projects / contact) */

.page-hero {
  max-width: 52rem;
  margin: 0 auto 3.5rem;
  text-align: center;
  animation: hero-fade-in 1.2s ease-out both;
}

.page-hero__eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green-bg);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  line-height: 0.95;
  text-transform: lowercase;
  color: var(--white);
  -webkit-text-stroke: 3px var(--black);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--black);
  margin-bottom: 1rem;
}

.page-hero--projects .page-hero__title {
  letter-spacing: 0.02em;
}

.page-hero--contact .page-hero__title {
  letter-spacing: 0.04em;
}

.page-hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 auto 2.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-bg);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-home:hover {
  opacity: 1;
  transform: translateX(-3px);
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--card-ratio);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  animation: card-enter 0.7s ease-out both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198, 224, 180, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(169, 208, 142, 0.25);
  border-color: var(--green-bg);
}

.card:hover::before {
  opacity: 1;
}

.card:hover .card-bg {
  transform: scale(1.05);
  filter: brightness(1.08) saturate(1.1);
}

.card-socials {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: calc((100% - 1.5rem) / 2);
}

.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.35s ease;
}

.card-title {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  z-index: 1;
}

/* Boiler card */

.card-boiler {
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(169, 208, 142, 0.12) 3px,
      rgba(169, 208, 142, 0.12) 4px
    ),
    var(--black);
}

.card-boiler .card-tagline {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: lowercase;
  opacity: 0.9;
  z-index: 1;
}

.card-boiler .card-title {
  font-family: "Black Ops One", "Staatliches", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 0.02em;
}

/* Fonts card */

.card-fonts {
  background: var(--black);
}

.fonts-wall {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  padding: 1rem;
  overflow: hidden;
}

.fonts-wall span {
  color: var(--white);
  white-space: nowrap;
  opacity: 0.9;
}

.font-a {
  font-family: "Permanent Marker", cursive;
  font-size: 1.4rem;
  transform: rotate(-8deg);
}

.font-b {
  font-family: "Black Ops One", sans-serif;
  font-size: 1.6rem;
  transform: rotate(5deg);
}

.font-c {
  font-family: "Press Start 2P", monospace;
  font-size: 0.75rem;
  transform: rotate(-3deg);
}

.font-d {
  font-family: "Rubik Wet Paint", cursive;
  font-size: 1.5rem;
  transform: rotate(12deg);
}

.font-e {
  font-family: "Staatliches", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  transform: rotate(-6deg);
}

.font-f {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  transform: rotate(4deg);
}

.font-g {
  font-family: "Permanent Marker", cursive;
  font-size: 1.1rem;
  transform: rotate(10deg);
}

.font-h {
  font-family: "Black Ops One", sans-serif;
  font-size: 1.2rem;
  transform: rotate(-12deg);
}

/* Art card */

.card-title-graffiti {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(3.5rem, 9vw, 6rem);
  text-transform: lowercase;
  color: var(--white);
  -webkit-text-stroke: 3px var(--black);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--black);
}

/* Projects card */

.card-projects .card-title {
  text-transform: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Socials card — title is baked into the image */

.card-socials .card-title {
  display: none;
}

/* Art gallery */

.gallery {
  column-count: 3;
  column-gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .gallery { column-count: 2; }
}

@media (max-width: 560px) {
  .gallery { column-count: 1; }
}

.art-tile {
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
  animation: card-enter 0.7s ease-out both;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery .art-tile:nth-child(1) { animation-delay: 0.05s; }
.gallery .art-tile:nth-child(2) { animation-delay: 0.1s; }
.gallery .art-tile:nth-child(3) { animation-delay: 0.15s; }
.gallery .art-tile:nth-child(4) { animation-delay: 0.2s; }
.gallery .art-tile:nth-child(5) { animation-delay: 0.25s; }
.gallery .art-tile:nth-child(6) { animation-delay: 0.3s; }

.art-tile:hover,
.art-tile:focus-within {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(169, 208, 142, 0.25);
  border-color: var(--green-bg);
}

.art-tile__frame {
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
  line-height: 0;
}

.art-tile__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1), filter 0.35s ease;
}

.art-tile:hover .art-tile__img,
.art-tile:focus-within .art-tile__img {
  transform: scale(1.05);
  filter: brightness(1.05) saturate(1.1);
}

.art-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(0deg, rgba(5, 20, 5, 0.92), rgba(5, 20, 5, 0));
  text-align: left;
  pointer-events: none;
}

.art-tile__title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.art-tile__meta {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.art-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  max-width: min(90vw, 720px);
  max-height: 85vh;
  width: 100%;
  height: fit-content;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.art-lightbox::backdrop {
  background: rgba(0, 20, 5, 0.75);
  backdrop-filter: blur(3px);
}

.art-lightbox__img {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: var(--black);
  border-bottom: var(--border);
}

.art-lightbox__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.art-lightbox__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.art-lightbox__meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.art-lightbox__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.92;
}

.art-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: var(--border);
  background: rgba(5, 20, 5, 0.7);
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.art-lightbox__close:hover {
  background: var(--green-page);
  transform: scale(1.08);
}

/* Projects list */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: start;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--black);
  padding: 1.5rem 1.75rem;
  animation: card-enter 0.7s ease-out both;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card__thumb {
  width: 96px;
  height: 96px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(245, 245, 240, 0.35);
  object-fit: cover;
  flex-shrink: 0;
}

.projects-list .project-card:nth-child(1) { animation-delay: 0.05s; }
.projects-list .project-card:nth-child(2) { animation-delay: 0.15s; }
.projects-list .project-card:nth-child(3) { animation-delay: 0.25s; }
.projects-list .project-card:nth-child(4) { animation-delay: 0.35s; }

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(169, 208, 142, 0.2);
  border-color: var(--green-bg);
}

.project-card__head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.project-card__title {
  font-size: 1.3rem;
  font-weight: 700;
}

.project-card__status {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.project-card__status--live { color: var(--green-bg); }
.project-card__status--wip { color: #e0c25a; }
.project-card__status--archived { color: #9a9a92; }

.project-card__desc {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-card__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(198, 224, 180, 0.12);
  opacity: 0.85;
}

.project-card__link {
  align-self: center;
  justify-self: end;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-bg);
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.project-card__link:hover {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__thumb {
    width: 100%;
    height: 140px;
  }

  .project-card__link {
    justify-self: start;
  }
}

/* Contact / socials */

.social-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

@media (max-width: 720px) {
  .social-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--black);
  padding: 1.1rem 0.5rem;
  overflow: hidden;
  animation: card-enter 0.7s ease-out both;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.social-grid .social-card:nth-child(1) { animation-delay: 0.05s; }
.social-grid .social-card:nth-child(2) { animation-delay: 0.1s; }
.social-grid .social-card:nth-child(3) { animation-delay: 0.15s; }
.social-grid .social-card:nth-child(4) { animation-delay: 0.2s; }
.social-grid .social-card:nth-child(5) { animation-delay: 0.25s; }
.social-grid .social-card:nth-child(6) { animation-delay: 0.3s; }

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(198, 224, 180, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.social-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px rgba(169, 208, 142, 0.25);
  border-color: var(--green-bg);
}

.social-card:hover::before {
  opacity: 1;
}

.social-card__icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.social-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-note {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.contact-note a {
  color: var(--green-bg);
  font-weight: 700;
  border-bottom: 1px dashed rgba(198, 224, 180, 0.5);
}

.hero a,
.page-hero p a,
.art-lightbox__desc a {
  color: var(--green-bg);
  font-weight: 700;
  border-bottom: 1px dashed rgba(198, 224, 180, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero a:hover,
.page-hero p a:hover,
.art-lightbox__desc a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* World — category listing */

.world-category {
  max-width: 900px;
  margin: 0 auto 2.5rem;
}

.world-category__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-bg);
  border-bottom: 1px solid rgba(198, 224, 180, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.character-chip {
  display: flex;
  flex-direction: column;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  transition: border-color 0.2s ease;
}

.character-chip:hover {
  border-color: #000;
}

.character-chip__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.character-chip__name {
  padding: 0.5rem 0.6rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.character-chip:hover .character-chip__name {
  color: var(--green-bg);
}

/* World — character page */

.character-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 2.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.character-info {
  text-align: left;
}

.character-info__name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 0.95;
  text-transform: none;
  color: var(--white);
  -webkit-text-stroke: 3px var(--black);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--black);
  margin-bottom: 0.75rem;
}

.character-info .character-meta {
  justify-content: flex-start;
}

.character-info p a {
  color: var(--green-bg);
  font-weight: 700;
  border-bottom: 1px dashed rgba(198, 224, 180, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.character-info p a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.character-meta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-bg);
  opacity: 0.9;
  margin-bottom: 1rem;
}

.character-meta__sep {
  opacity: 0.5;
}

.character-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.character-gallery__main {
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
  padding: 0;
  display: block;
  transition: border-color 0.3s ease;
}

.character-gallery__main:hover {
  border-color: #000;
}

.character-gallery__main img {
  display: block;
  width: 100%;
  height: auto;
}

.character-gallery__thumbs {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
}

.character-gallery__thumb {
  flex: 1 1 0;
  min-width: 0;
  border: var(--border);
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
  padding: 0;
  display: block;
  aspect-ratio: 1;
  transition: border-color 0.3s ease;
}

.character-gallery__thumb:hover {
  border-color: #000;
}

.character-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .character-layout {
    grid-template-columns: 1fr;
  }

  .character-info {
    text-align: center;
  }

  .character-info .character-meta {
    justify-content: center;
  }
}

.art-lightbox__credit {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.art-lightbox__credit a {
  color: var(--green-bg);
  border-bottom: 1px dashed rgba(198, 224, 180, 0.5);
}

.art-lightbox__credit a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* Keyframes */

@keyframes wave-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(8%, 6%) scale(1.08); }
  66% { transform: translate(-5%, 10%) scale(0.95); }
}

@keyframes wave-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-10%, -8%) scale(1.1); }
  70% { transform: translate(6%, -4%) scale(0.92); }
}

@keyframes wave-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, -12%) scale(1.15); }
}

@keyframes film-frame-drift {
  0%, 100% { transform: translate(0, 0) scale(1.02); }
  25% { transform: translate(0.4%, -0.3%) scale(1.025); }
  50% { transform: translate(-0.35%, 0.45%) scale(1.018); }
  75% { transform: translate(0.25%, 0.2%) scale(1.022); }
}

@keyframes film-vignette {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  8% { transform: translate(0.5px, -0.3px) scale(1.008); }
  16% { transform: translate(-0.4px, 0.4px) scale(1.012); opacity: 0.98; }
  25% { transform: translate(0.35%, -0.25%) scale(1.02); opacity: 0.96; }
  50% { transform: translate(-0.45%, 0.4%) scale(1.03); opacity: 0.93; }
  75% { transform: translate(0.3%, 0.15%) scale(1.015); opacity: 0.97; }
  84% { transform: translate(-0.3px, 0.5px) scale(1.01); }
  92% { transform: translate(0.4px, -0.2px) scale(1.006); opacity: 0.99; }
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

@keyframes nav-pill-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(169, 208, 142, 0.25), inset 0 0 16px rgba(0, 127, 14, 0.1); }
  36% { box-shadow: 0 0 32px rgba(198, 224, 180, 0.45), inset 0 0 24px rgba(0, 127, 14, 0.2); }
}

@keyframes nav-label-flicker {
  0%, 100% { opacity: 1; transform: translateX(0); }
  25% { opacity: 0.7; transform: translateX(-1px); }
  50% { opacity: 1; transform: translateX(1px); }
  75% { opacity: 0.85; transform: translateX(0); }
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes footer-float {
  0%, 100% { transform: translateY(0); }
  36% { transform: translateY(-5px); }
}

/* Responsive */

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-pill {
    border-radius: var(--radius);
    width: 100%;
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-socials {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-link {
    padding: 0.35rem 0.65rem;
  }

  .nav-action {
    font-size: 0.55rem;
  }

  .nav-label {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body {
    animation: none;
  }

  .bg-waves__layer,
  .bg-waves__frame,
  .film-vignette,
  .film-grain {
    animation: none;
  }

  .logo-img {
    transform: none !important;
    opacity: 1 !important;
  }
}